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

RE: st: creating lag variables


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: creating lag variables
Date   Mon, 5 May 2003 14:01:52 +0100

REKA SUNDARAM-STUKEL

> Thanks to both Nick and Oleksandr. In reply to Nick's 
> question I am not sure why it doesn't work. 

What did you type? Can you remember or 
retrieve it from a log file?

One possibility is that 

. bysort id type (year) : ... 

is guaranteed to get -year- in the 
desired order, whereas 

. bysort id type (year) : ... 

is not so guaranteed. 

Nick 
[email protected] 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index