Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: panel data


From   Kyle Hood <kyle.hood@yale.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: panel data
Date   Wed, 18 Jun 2008 11:44:15 -0400

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index