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: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Bradley, Steven W
> Sent: Friday, August 26, 2005 1:25 PM
> To: [email protected]
> 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/