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: replacing missing values in one variable with values of another variable
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: replacing missing values in one variable with values of another variable
Date
Fri, 5 Apr 2013 08:25:59 +0100
This is an FAQ.
FAQ . . . . . . . . . . . . . . . . . . . . . . . Replacing missing values
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox
2/03 How can I replace missing values with previous or
following nonmissing values?
http://www.stata.com/support/faqs/data/missing.html
See also David Kantor's convenience command -carryforward- (SSC).
Nick
[email protected]
On 5 April 2013 05:34, Alison McCarthy <[email protected]> wrote:
> I have cross-sectional time series dataset of unemployment, occupation (when employed), and health. There are about 10,000 people and 10 years.
>
> I want to examine whether a persons last observed occupation influences their health when unemployed. At the moment, there are missing values for occupation if a person is unemployed. I would like to replace these missing values with their last observed occupation.
*
* 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/