Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: Re: removing undesired responses (for A. Baker)


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: Re: removing undesired responses (for A. Baker)
Date   Sat, 16 Aug 2003 16:30:58 +0100

Andie Baker

> I'm trying to delete variable values of 
> "99" from my dataset
> and each time I use the command:
> 
> Drop if w1==99
> participants who have answered "99" on the survey are 
> dropped from the
> study entirely.  By the time I've dropped all of the "99"s 
> for each variable
> I've lost almost all of my data.  I would like to eliminate 
> a participant's
> "99" answer on a single variable without eliminating them 
> from the study.

Howard Burkom suggested 
 
> If you want to change those 99's to no response, how about:
> replace w1=. if w1==99       ?

For a more general approach, check out -mvdecode-. 

Nick 
[email protected] 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index