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

Re: st: how to recode values to take account of missing values


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: how to recode values to take account of missing values
Date   Mon, 23 Sep 2002 09:12:47 +0000

Yap Keng Loong  wrote
> i am new to stata and having some trouble on recoding
> values to take account of missing values in the data
> set.

.. replace varname = x if varname == .

Note also that missing in Stata is plus infinity. Therefore

.. replace varname = x if varname >= y 

would set varname to x even for observations with missings on varname. 

regards
uli


 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index