Hello. I have a folder with about 50 data files. I want to merge the files either on 1 or 2 variables depending on if the data contains one or both of these variables. I have to repeat this process for about 10 different folders. Therefore, I would not like to open up each file and see which merging variables the file contains.
Also it is possible that a few files may have missing observations for the merging variables and would result in stata telling me the merging variables do not uniquely identify observations. I want to avoid checking each file and deleting these missing observations.
Any suggestions would be greatly appreciated! Thanks.
Amit
Related Posts with Merging multiple files in multiple folder on different variables in a loop
Rank Variable for Income, then further for regionHi, I am fairly new to this forum so please excuse me if I do not follow some guidelines I am not aw…
Regress individual and collective indicatorsHello STATA community! In my research I analyse how economy shapes public opinion (of social classes…
If condition with xtreg appropriate?Dear all, For my master's thesis, I'm trying to look at the effect of a policy change on women's la…
ranked quartiles each yearHi all, I'm working on the following sample. Code: * Example generated by -dataex-. To install: …
Question about probability weights and number of observationsHello Stata users, I am performing a cosinor analysis on seasonal iodine dispersion. To do this, I …
Subscribe to:
Post Comments (Atom)
0 Response to Merging multiple files in multiple folder on different variables in a loop
Post a Comment