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
Pie graph with missing values in spmapHi all, I wonder if its possible get a graph pie in blank if exist missing value in the data, examp…
RESET testHi, How can I run the RESET test for a gravity model with pair-fixed effects?: ppmlhdfe TRADE RTA …
Data interpretationHelp please with interpretation. Code: xtpcse ta rank score b safety health human ict prioritizatio…
Graph title in different colors to replace legendHi, I am trying to use the graph title to replace the legend. In this example, I would like the wor…
Please help in codingDear all, I tried to code ethnic group but have difficulty. Survey question-What is your ethnicity?,…
Subscribe to:
Post Comments (Atom)
0 Response to looping over multiple files - there are new variables in some files
Post a Comment