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/