Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Replacing missing values only works one way?


From   Dana Chandler <dchandler@gmail.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index