Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: missing values


From   "NEYMOTIN, FLORENCE" <neymotin@calmail.berkeley.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: missing values
Date   Wed, 21 Sep 2005 21:11:46 -0700

Hi, is it normal to have a problem with recoding things to missing values based on some sort of boolean condition. I checked the condition several times, and when I write: "gen extra=0 if(condition)" then this gives me the correct values. If, however, I write: "replace mainvar=. if (condition)" then this does not work. The problem was solved by doing "replace mainvar=.a" this seems strange to me and I'm not sure why it's happening. any suggestions?
thanks,
Florence
*
* 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