Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: repeated time


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: repeated time
Date   Sun, 3 Oct 2004 11:37:43 +0100

To tell Stata these are panel data, -sort-ing 
alone is not sufficient. Check out -tsset-. 

Nick 
n.j.cox@durham.ac.uk 

Yaojun Li
> 
> Could you just try
> 
> sort id year sex income

Paulo Loureiro
 
> I would like to convert these repeated time panel data (pooled data)
> 
>                      id   year   sex    inc
>                       -----------------------
>                        1     80     0   5000
>                        2     80     1   2000
>                        3     80     0   3000
>                        1     81     0   5500
>                        2     81     0   2200
>                        3     81     1   2000
>                        1     82     0   6000
>                        2     82     1   3300
>                        3     82     0   1000
> in the form of data of panel in series of time.
> Data should be in long format:
> 
>                       id   year   sex    inc
>                       -----------------------
>                        1     80     0   5000
>                        1     81     0   5500
>                        1     82     0   6000
>                        2     80     1   2000
>                        2     81     1   2200
>                        2     82     1   3300
>                        3     80     0   3000
>                        3     81     0   2000
>                        3     82     0   1000
> 

*
*   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