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 on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: replace missing values in different waves


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: replace missing values in different waves
Date   Tue, 25 Dec 2012 17:44:40 -0800 (PST)

Something like this?

replace w2gender = w1gender if missing(w2gender)
replace w3gender = w1gender if missing(w3gender)

David
--
David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

www.mprinc.com


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of benjamin von matt
> Sent: Tuesday, December 25, 2012 4:22 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: replace missing values in different waves
> 
> hi
> 
> i have many missing values in wave 2 and wave 3 in the gender variable.
> there is no missing value in wave 1.
> 
> how can i replace the missing values in wave 2 and wave 3 with the values
> of wave 1?
> 
> best regards
>  andrea

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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