Dear Statalisters,
I am running into an issue with rolling windows and I need your kind help with this. I am trying to calculate the exponentially...
Announcement
Collapse
No announcement yet.
203 results in 0.0093 seconds.
loop
x
You can also choose from the popular tags.

Overlappingrolling window
 3 posts

How to generate 6 lagged variables for thousands of underlying variables?
Hi all,
I'm new on here. I know some bits and pieces about STATA so am not completely green. The issue I have at the moment is:
...
 12 posts

create loop for discrete variable, panel data
Dear all,
I am new to stata and I can't figure out how to create a loop for the following code. This problem seems to be recurring in various forms...
 2 posts

Conditional dynamic text using putdocx
Hi everyone,
I'm trying to massproduce reports based on statistical output from using the putdocx command. Is there a way to use the putdocx...Last edited by June Parr; 10 Nov 2018, 05:23.
 3 posts

Generate variabile from date to date
Hello!
I'm working with a panel data, I have daily observations of prices from 01/01/2002 to 31/12/2007 for 35 companies. How can I create a new...
 1 post

Using filelist to import and append several tsv files
I would like to import and then append a multitude of tsv files which are located within different subfolders of my main folder. I am trying to replicate...
 2 posts

Solving nonlinear equations within a loop in Stata
Cross posted on Stack Overflow.
Hi I am trying to solve 3 nonlinear equations using nl command in Stata within a loop. The working program...Last edited by Sher Afghan Asad; 25 Oct 2018, 12:14.
 4 posts

Creating a Counter
Hi,
This may seem trivial but I am trying to create a counter of the following nature:
We have data on date, dummy for a capital...
 3 posts

Jim Steiner started a topic Replace dummy variable value when a variable has a numeric value somewhere in the list of all of another variable's valuesin GeneralReplace dummy variable value when a variable has a numeric value somewhere in the list of all of another variable's values
Using STATA 15.1 Windows 10
Hi All, firsttime poster.
I am attempting to replace a dummy variable (y_dummy) equal to 1 when...
 3 posts

Store regression coefficients from looping over multiple y variables
Hi everyone, I am new to the forum and hoping to get some help on storing regression results.
I would like to store the regression coefficients...
 4 posts

Mateo Barraza started a topic Storing means of a categorical variable and using them as reference linein GeneralStoring means of a categorical variable and using them as reference line
Greetings.
I have a dataset containing individual grades and indexes by institution and reference group (some institutions can belong to...Last edited by Mateo Barraza; 26 Aug 2018, 01:25.
 2 posts

leila salarpour started a topic changing value of observations to cumulative version over time for each idin Generalchanging value of observations to cumulative version over time for each id
Hi Guys,
I have a panel of frequencies looking like
# ID Year Freq
1 1 2000 2
2 1 2001 3
3 1 2002 2
4 2 2000 0...Last edited by leila salarpour; 11 Aug 2018, 07:37.
 4 posts

Computing bilateral flow using function
Dear all,
This is not a statistical question (I apologize) but one for a function.
I have data for origin and destination (data...
 7 posts

Marvin Hanisch started a topic Loop for creating number of prior events within a specific time framein GeneralLoop for creating number of prior events within a specific time frame
Dear all,
I am trying calculate the number of alliances that a given firm formed with other partners five years before forming the focal...
 7 posts

Creating different Event Windows, conditional sum of columns
I want to calculate cumulative returns for several event horizons, in the following data I need to create a sum of xstret (excess returns).
...
 3 posts