Bookmark and Share

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]

st: Replacing missing values only works one way?


From   Dana Chandler <[email protected]>
To   [email protected]
Subject   st: Replacing missing values only works one way?
Date   Tue, 27 Jul 2010 16:13:02 -0500

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index