Statalist The Stata Listserver


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

RE: st: RE: Smallest observation


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Smallest observation
Date   Thu, 30 Mar 2006 07:40:36 -0600

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of n j cox
> Sent: Thursday, March 30, 2006 7:31 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: RE: Smallest observation
> 
> Not quite.
> 
> bysort indiv (year) : gen byte index = _n != 1
> 
> The sorting by individuals doesn't guarantee
> year order within panels.
> 

True.  Thanks.

Scott



*
*   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–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index