Bookmark and Share

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]

st: Generating missings/dropping specific data based on one variable


From   Nina Bjerre Andersen <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Generating missings/dropping specific data based on one variable
Date   Mon, 23 Apr 2012 10:27:47 +0200

Dear Statalist-subscribers

I have the peculiar problem of having to generate missings:
I have a dataset based on web-based questionnaire data, where some observations now include data on variables where they should be missing, i.e. some participants should not have been invited to answer those particular questions based on a "yes/no"-question given on another variable.
I therefore wish to generate missings, but I am finding that
 - using -drop- I am only allowed to drop entire observations
 - using -mvdecode- I can only generate missings based on the value of the variable itself.

Hoping someone can help,

Best regards

Nina Bjerre Andersen
Scholar
Centre for Medical Education
Aarhus University, Denmark
[email protected]<mailto:[email protected]>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index