Title | How to read panel data in Stata |
---|---|
Author | laura hadok |
Course | Economics Workshop |
Institution | Western Michigan University |
Pages | 1 |
File Size | 28.1 KB |
File Type | |
Total Downloads | 33 |
Total Views | 152 |
This is a short Word document that tells you how to make Stata software read a panel data file....
To run panel regression, import the excel file (do not open it from stata) and make sure that you click the option which says take first row as variable names. After that make sure that you convert the variable of country names to ID(or count) by this command: Egen ID = group (country) After this command you should see numbers for each country in the edit window. To read it as panel data, type: Xtset ID year, yearly If you want drop few year from the data just type: drop if year...