Hi everbody
I have 100 datasets called database1 database2 database3 ... , and I have to make a manytimes merge: database1 merge with database2...
Announcement
Collapse
No announcement yet.
73 results in 0.0083 seconds.
foreach
x
You can also choose from the popular tags.

question about foreacc/forvalues
 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

Repetitive but simple programming using foreach
I wrote a program for repetitive but simple work using foreach. But it didn't work.
For a variable of fc1, I recoded the variable, creating...
 5 posts

Advice on looping within dofile
Hello I am trying to write a dofile that allows me to be the most specific with my results using looping code, but have struggled to think of anything...
 4 posts

Syntax error forvalues and two if statements
Hi all,
I'm not too experienced with coding or with STATA.
For an experiment I'm currently generating new variables, let's say...
 8 posts

how to set starting/end point to values of variables in loop
Dear all,
I have the following data and want to generate a new policy variable weighted by the variables p_age and CumP_age. For example,...
 2 posts

Making a loop
Dear Stata users,
I would like your help for the following problem. I have a data set with 22 countries and 20 years and a variable Total...
 2 posts

Arnab Dutta started a topic Searching for a string variable among numeric variables and making changes to the same.in GeneralSearching for a string variable among numeric variables and making changes to the same.
I have several variables  some numeric and some string  in my dataset. The string variables are so because the missing values are denoted as "NA"...
 3 posts