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
Map with labels for only a select countriesHi, I would like to be able to draw a map while labelling only a few countries. I have implemented t…
Generating a Variable Conditional on Many Variable that are not Dummy VariablesHi everyone, I have this dataset that contains information on the relationship of each household mem…
Fixed effects panel regression with robust standard error- which code to use?Hi, I'm using the following code to perform fixed effects panel regression Code: areg y x1 x2 i.ye…
error ) required r(100);Dear all, The code below gives me the error Code: ) required ; Code: twoway (line RM_RF Year), yt…
How can I transform the data structure?Dear all, How can i transform the data structure below Code: * Example generated by -dataex-. For m…
Subscribe to:
Post Comments (Atom)
0 Response to Read multiple databases with loops
Post a Comment