Hi Everyone,
Thanks for taking the time to read my query.
I currently am cleaning a very big dataset (52 variables, 82284 observations) for longitudinal analysis. The dataset is based on information returned from 6 different surveys. I have converted the dataset to long format so currently there are about 6 different observations (in years) for each ID. There are approximately 13,000 unique ID variables.
In the third survey that was sent, additional information was asked that was not included in any further surveys but is essential to my analysis. I therefore want to exclude all participants who did not complete the third survey (in 2010).
What I am trying to find is some kind of command like this: drop id if Survey3Completed=. in 2001
Thank-you very much.
Sarah
Related Posts with Dropping observations based on multiple conditions
cmp procedure to fit a model with sample selection and non-random treatment assignmentHi all, I just came across a STATA procedure called “cmp”. I am wondering if the “cmp” procedure c…
Commands to summarize a dataset (i.e., alternatives to codebook, describe, and sum, or ones that combine several of these outputs)Hi, I once saw either a Stata conference presentation or a Stata Journal article that had a series o…
No F-test valueHi, can anyone help me on how to deal with the problem of missing F-test value? Code: Multiple-i…
Issues on replicating contrasts with margins commandHi all, I've read the manual and Richard's guide about margins command, but could not understand so…
How to create a new variable based on household compositionHello, For my research, I have a demographic survey with different households and different observa…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping observations based on multiple conditions
Post a Comment