[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: panel data
egen panel_id = group( country industry )
tsset panel_id year
gen growth = D.log_output
Madhavi Pundit wrote:
Hi,
I have mulitple observations for each country within a year.
For example (hypothetical)
year country industry log(output)
1990 4 311 12
1990 4 312 20
1990 6 311 3
1990 8 311 12
1990 8 312 45
1991 4 311 15
1991 4 312 23
1991 6 311 6
1991 8 311 14
1991 8 312 44
How do I tsset the data inorder to calculate the growth in output within an industry for each country?
Madhavi Pundit
Department of Economics
Boston College
Chestnut Hill, MA 02467
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/