Statalist


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

st: Re: lag operator and "not sorted" problem


From   "Kerry Kammire" <kkammire@stata.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: lag operator and "not sorted" problem
Date   Fri, 21 Sep 2007 14:34:37 -0600

We couldn't reproduce your error with the lag operator.

--begin log--

. sysuse auto,clear
(1978 Automobile Data)

. generate time = _n

. tsset for time
       panel variable:  foreign (unbalanced)
        time variable:  time, 1 to 74
                delta:  1 unit

. sort for time

. replace rep=l.rep if rep==. & l.rep != .
(5 real changes made)

--end of log--

Could you send tech@stata.com a dataset and do-file that reproduces this
error so that we can diagnose this problem?

-Kerry Kammire
 kkammire@stata.com

*
*   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