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: Replace missing values by 0
From
"Lachenbruch, Peter" <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: Replace missing values by 0
Date
Mon, 9 Aug 2010 14:58:36 -0700
In all of the discussion of this query, nobody has asked why it is important to do this? If you are computing means, the 0 values will distort the mean (or median if enough), and if you simply want to ignore zeros with "if x~=0") retaining the missing value will do this automatically.
I am unsure if I've ever had a reason to convert missing values to a numeric value, but have had many times when the -9 for missing (or whatever) had to be set to "."
Tony
Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Hobst
Sent: Monday, August 09, 2010 1:55 AM
To: [email protected]
Subject: st: Replace missing values by 0
I have two variabled called "prean" and "pa_kum" that contain missing values.
These missing values i would like to replace by 0 (zero). What command can i
use to do this?
Thanks in advance for your support. Regards
--
View this message in context: http://statalist.1588530.n2.nabble.com/Replace-missing-values-by-0-tp5388239p5388239.html
Sent from the Statalist mailing list archive at Nabble.com.
*
* 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/