Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: RE: RE: RE: RE: RE: RE: RE: summarize conditions within subjects in panel data
From 
 
"Dimitriy V. Masterov" <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: RE: RE: RE: RE: RE: RE: RE: RE: summarize conditions within subjects in panel data 
Date 
 
Mon, 29 Nov 2010 16:47:59 -0500 
I think you can construct a "fake" hour variable easily:
gsort id -hour;
bys id: gen hour2=_n;
bysort id hour2: do your thing
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/