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: RE: Replacing all values


From   "Kieran McCaul" <Kieran.McCaul@uwa.edu.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Replacing all values
Date   Sun, 16 Jan 2011 16:05:59 +0800

...

If you are sure that 99 means missing for all the variables, then a recode would work:

recode * (99=.)




-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Jonathan Brown
Sent: Sunday, 16 January 2011 11:36 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: Replacing all values

I have a dataset in which missing data has been coded as 99. I would like to replace all 99 values with "."

I know how to replace values for each variable but typing the command for each variable is time consuming.

Is there a command that can replace values for all variables without having
to type in each variable name?
 
Thanks,
Jonathan 



      

*
*   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/

*
*   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