Hello
I am working with multiple databases that correspond to different countries and years, I need to make a loop that can open and modify all databases. The names of the databases follow the rule XXYYAAAA.dta where XX is the country code, YY is the database code and AAAA is an almost random code. I was able to make a loop that generates all the combinations of XXYY. Is there a way that I can open the different databases using only the XXYY code?
Thank you very much.
Related Posts with Read multiple databases with loops
missing values with egen anycountHi there. Is it possible to generate a newvar that counts up the number of particular values for a v…
Panel data: how to weight observations for each year for different dummy categories.Hi, I have a question regarding my dataset. It looks like this (a simplified version, I am not allo…
MULTILEVEL – Mixed Effects Model Specification with Random Intercept and SlopesDear STATA colleagues, I am working with data containing approximately 300 000 individuals, grouped…
Linking matches in StataHi everyone! I was wondering if it is possible in Stata to turn Table1 into Table2. I simply want t…
Multilevel Models and DHS DataHello, I am trying to fit a multilevel model examining HIV risk behaviors among those living with H…
Subscribe to:
Post Comments (Atom)
0 Response to Read multiple databases with loops
Post a Comment