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
How do I find out which excel file was imported into STATA (origin of data?)Hey all, Months ago, I imported an excel file into stata for analysis. However, I would like to do…
Stata Command: including interaction terms of the endogenous variable in 2SLS using xtivregHi, I am wondering if anyone had any experience in including an interaction term in 2SLS using xtiv…
Reminder: UK Stata Conference submission deadline 26 MayUK Stata Conference, 7-8 September 2023: reminder I'm bumping the thread at https://www.statalist.o…
Query on ordering coefficients from multiple models when using coefplotHi All We need help with using the coefplot command. Briefly, we have run a series logistic regress…
number increased or decreased?Dear All, I found this question here (in Chinese). The variable x denotes the product. Code: * Exam…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping observations based on multiple conditions
Post a Comment