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
Generalized DDDGood day, all of you. My name is Franco Vegas and I'm currently doing my thesis on the effect on av…
Merge datasets with different structuresHi All, I want to merge some datasets with my main data set but the structure of the datasets diff…
New on SSC: CONJOINT: a module to analyse and visualise conjoint (factorial) experimentsWith thanks as always to Kit Baum, a new package called -conjoint- is now available on the SCC. con…
stata panel dataI am going to measure the standarized mean value of 4 environmental indicators (AA, BB, CC and DD). …
Seek help for concentration curveDear Sir/Madam, colleagues, I tried to plot a concentration curve with the following commend from s…
Subscribe to:
Post Comments (Atom)
0 Response to looping over multiple files - there are new variables in some files
Post a Comment