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

st: RE: tsset and r451


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: tsset and r451
Date   Fri, 26 Aug 2005 16:54:38 -0500

Try this:

bysort organization year: gen tag = 1 if year == year[_n +1]
l com year if tag  == 1

bysort organization (tag):gen group_tag = tag[1] 
sort com year
l organization year tag if group_tag  == 1


Scott

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Bradley, Steven W
> Sent: Friday, August 26, 2005 1:25 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: tsset and r451
> 
> I can't seem to get past the tsset and <r451> repeated time values within
> panel problem.
> 
> I have sorted by organzationnumber and year and I have looked through the
> complete dataset and have only one year for each organization.
> 
> Any ideas?
> 
> Many thanks
> 
> Steve Bradley
> 
> *
> *   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