[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Replacing missing values only works one way?
The command described here works fine when I go one way: replace myvar
= myvar[_n-1] if myvar >= .
However, when I try to replace in the other direction replace myvar =
myvar[_n+1] if myvar >= ., it doesn't work and I have to repeat the
command for each time I want it to copy... Does anyone have any
suggestions?
I've read the below, but it doesn't quite make sense.
http://www.stata.com/support/faqs/data/missing.html
*
* 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/