Hello All!
I am analyzing an intrahousehold survey where a HUSBAND AND WIFE in the SAME HOUSEHOLD were asked the same question about adoption of...
Announcement
Collapse
No announcement yet.
79 results in 0.0106 seconds.
foreach
x
You can also choose from the popular tags.

 10 posts

Data Management Analysis with Data Graphics
Data Management is the great way to improve the performance of your archives through the effective way. it is the process that comprises with classical...
 1 post

Creating a loop to add a prefix to a variable
Hi,
I'm trying to create a loop to add a two letter prefix (e.g. AB) to a varlist I've merged into a dataset so I know that they weren't...
 5 posts

in a foreach v loop, reference v and "v+1"
In this example, I have four variables. I want to run some regressions on them and display the regression on the first two variables together, as well...
 3 posts

Repetitive, nonoverlapping ranking with a unique identifier
I have the data that you see on the attachment. They are ranked as: sort firm day
I want to generate a new variable that will rank the variable...
 5 posts

Stat Olivia started a topic Using foreach loops to map classroom composition to individual student observationsin GeneralUsing foreach loops to map classroom composition to individual student observations
Dear Statalist users,
We are using TIMSS panel data, where each student is one observation, with one StudentID, and each student is assigned...
 5 posts

question about foreacc/forvalues
Hi everbody
I have 100 datasets called database1 database2 database3 ... , and I have to make a manytimes merge: database1 merge with database2...
 4 posts

Replace and Reshape in Loop
I have daily data for the years 1960  2010. Each year's data is in a csv file, the files (in one directory) are named 1960, 1961,...2010. I would like...
 4 posts

Mariana Silveira started a topic How store and make some calculations with thre coefficients from five regressionsin GeneralHow store and make some calculations with thre coefficients from five regressions
Hello,
I'd like to know if somebody could help me finding a sintax to calculate the mean of the regression's coefficients from 5 different...
 3 posts

If in foreach
Good day all,
I have three files named A B C and four variables named time, timeA, timeB and timeC.
I regress variables X Y...
 9 posts

Generate variables created out of two foreach commands
Good day all,
I have 8 existing variables A, B, C, D, E, F, G, H.
For each variable I want to create a new variable for each...
 5 posts

Luce Mock started a topic Get alphas and betas plus tstat from panel estimation of the Fama French 3Factor Model (large dataset)in GeneralGet alphas and betas plus tstat from panel estimation of the Fama French 3Factor Model (large dataset)
Hello,
I have a panel data set with daily stock returns across a bunch of firms. I would like to estimate daily alphas (constant) and betas using...
 6 posts

Trouble with if statement in loop
Eventually, I would like to loop over about 5 years of data. Variable names differ by year, so I'm trying to make my "keep" statement conditional...
 3 posts

Generating new variables
Hi everyone.
I am fairly new to Stata and wondered if anyone of you more experienced users could give me a tip?
I am looking at the...
 5 posts