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
extracting unique identifiers from a string variableDear all, I am using stata 15. I have a string variable named seriesid that represents reg…
Create dummy variable per group conditional on two other variablesGood afternoon, I am currently working on my data for my master's thesis but I am having some obsta…
Testing for structural break for time series dataHello everyone, I have a time series data where I regress air transport traffic against GDP, oil pr…
stset data for survival analysisIn setting up my data for survival analysis, I have already created spell data, including a variable…
Why doesn't -power- integrate cohen's d effect sizes well?It seems like the "standard" for calculating power is using Cohen's D. However, Stata's -power- comm…
Subscribe to:
Post Comments (Atom)
0 Response to Merging multiple files in multiple folder on different variables in a loop
Post a Comment