Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Attrition question...


From   David Torres <torresd@umich.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Attrition question...
Date   Sun, 24 Oct 2010 10:40:07 -0400

I have a longitudinal file on which I just completed multiple imputation. It has been reshaped to long format. I need to cycle through each case and drop all instances for which someone was missing in a round and was never interviewed again up to the most recent survey round. Is there a quick and easy way to do this?

For a case like this:

id     interviewed?     ...      ...

1           y
1           n
1           y
1           y
1           y
1           n
1           n
1           n
1           n

I would like to drop all information from round six on.

The purpose is to drop the fully attrited cases, then reshape wide, then back to long. Then I can calculate IPTW weights.

Thanks,
Diego Torres

--
David Diego Torres, MA(Sociology)
PhD Candidate in Sociology

2044 Population Studies Center
University of Michigan Institute for Social Research
Ann Arbor MI  48106-1248
Tel 734.763.4098
Fax 734.763.1428
torresd at umich dot edu




*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index