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

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

From   "Kerry Kammire" <[email protected]>
To   <[email protected]>
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 [email protected] a dataset and do-file that reproduces this
error so that we can diagnose this problem?

-Kerry Kammire
 [email protected]

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index