Hi,
I'm quite new to Stata so I am in a bit of a pickle. I need to get a long format firm-year panel done. I have all the raw data in excel sheets and this is the description of my excel sheets:
- 10 Excel Files
- Each File has multiple worksheets: AU, BG, CN, IN, etc
- Each region has 2 worksheets, one for each variable
- 2 variables in question: UP and NOSH
- Each excel file corresponds to a year and each of the AU_UP, AU_NOSH, BG_UP, BG_NOSH sheets have monthly data, so the column names are end of month dates (ex: 12/31/2010)
I am lost as to how to create a long format firm-year panel for these because the data is across multiple excel files and across multiple sheets. So each excel file has AU_UP and AU_NOSH monthly data for example, only for that particular year. I do not understand how I can cycle through these files and basically have stata append the 2011 AU_UP data to the end of the 2010 AU_UP data in another file and so on. Any sort of help would be amazing, thank you so much.
Related Posts with Reshape to Long-Firm Year Panel - Data in Multiple excel files and multiple worksheets
Trying to create a Unique Identifier for a Survey Data. (Have tried following other posts but nothing has worked)Hello, I hope this post finds you well ! The version of STATA being used is 14.2 The following is a…
Problem Renaming Variables That Contain "."Hello, I am using the 2018 dataset from Latinobarometro. A lot of variables are named something lik…
Plotting multiple bar graphs with CII want to plot crude and age-adjusted rates with CI on a single graph. I'm using the following code …
how to deal with '' xthenreg'' for dynamic threshold modelsDear all Finally we get the stata' command to deal with the endogeneity issue for threshold model, …
How do you determine if you should use a quadratic term or a cubed term?Is there a test to determine if you should use a quadratic term or a cubed term? …
Subscribe to:
Post Comments (Atom)
0 Response to Reshape to Long-Firm Year Panel - Data in Multiple excel files and multiple worksheets
Post a Comment