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

st: RE: how to tag the seqence in unbalanced panel data?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: how to tag the seqence in unbalanced panel data?
Date   Tue, 25 May 2004 17:04:31 +0100

These are panel data. Somewhere you have 
a time variable. So 

bysort ID (time) : gen order = _n 

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

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of chen jie
> Sent: 25 May 2004 16:42
> To: statalist@hsphsun2.harvard.edu
> Subject: st: how to tag the seqence in unbalanced panel data?
> 
> 
> Dear statalist friends
> 
> How to create the variable of "order" in this
> unbalanced panel data by stata?
> 
> ID order
> A 1
> A 2
> A 3
> A 4
> B 1
> B 2
> C 1
> C 2
> C 3
> ....(remaining data omitted)
> 
> Thanks!
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
> *
> *   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