Dear stata members,
I am trying to loop over multiple files (rounds) of data. In the first two rounds of data, there are only 2 wage variables. However, in the later rounds there are 5 wage variables. Even when I generate the 3 wage variables that are missing in rounds 1 and 2 in those rounds using a unique round_ID, I get the error that those variables are already defined. What command do I add into the loop to tell stata to either skip over these variables in the first two rounds or generate the variables such that it doesn't give me an error later?
Thanks in advance.
Best,
Janaki
Related Posts with looping over multiple files - there are new variables in some files
combine Several observations to one observation in a given yearDear all, I need to get the SUM of Var 1. for each ID observation in 2016, for example, A person w…
Create change variable for timeseries data.Hi, my problem is twofold. I downloaded a database containing gvkey, sic code, year (1995 - 2005), y…
How to do a special histogram like this in Stata?Hello, I saw a histogram by group like below. I want to use the classical Stata data auto.dta to mim…
Omitted variable in logistic regressionHi , I have a problem with the Logit regression result in Stata. Some of the dummy variables have be…
Tabout+graph dummy variablesHi, I'd like to generate two, or three-way tables and graphs using tabout and graph, but without di…
Subscribe to:
Post Comments (Atom)
0 Response to looping over multiple files - there are new variables in some files
Post a Comment