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]
RE: st: RE: replace missing values in different waves
From
"[email protected]" <[email protected]>
To
<[email protected]>
Subject
RE: st: RE: replace missing values in different waves
Date
Tue, 25 Dec 2012 19:14:48 -0800 (PST)
Try -carryforward- freom SSC. Use it witha -by personnumber:- prefix.
Sent with Verizon Mobile Email
---Original Message---
From: [email protected]
Sent: 12/25/2012 9:53 pm
To: [email protected]
Subject: st: RE: replace missing values in different waves
my dataset looks like this:
personnumber Gender different other variables
100 1
100 .
100 .
101 2
101 2
101 .
102 2
102 .
102 .
for each person i have 3 waves in the dataset. now i want to replace the missing values (.) in with the value of the first wave. (e.g. 1 for person 100, 2 for person 101, 2 for person 3).
*
* 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/
*
* 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/