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: AW: Replace missing values by 0


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Replace missing values by 0
Date   Mon, 9 Aug 2010 10:58:23 +0200

<> 



*************
clear*
input myvar
1
3
5
.
3
6
7
end

recode myvar (mis = 0)
l
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Hobst
Gesendet: Montag, 9. August 2010 10:55
An: statalist@hsphsun2.harvard.edu
Betreff: 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-tp5388239
p5388239.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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index