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/