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
How do I incorporate 'or' in to a stata command for generating a new variableHi Statalist, I am trying to create a new variable (choice) which notes whether a graduate attended…
xtlogit re or pooled logit?When I ran a logit model with random effects, I could reject the null of the LR test that the random…
Wingdings characters in graphI want to use a single Wingdings character in a graph, specifically I want the telephone icon as an …
Matching firmsDear all, I am currently writing a code to capture the differences in earnings management between U…
nbvar downloadHello, I have Stata11 and I'm trying to run the nbvargr command. I have been able to download this s…
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