Hi!
I have just appended three datasets from 2010, 2011 and 2012. They have many identical variables, but the 2011 dataset has some new variables that aren't in the 2010 dataset, and the 2012 dataset has some new variables that aren't in either the 2010 or 2011 dataset.
In the new dataset, I therefore have lots of missing observations for the new variables that aren't available in 2010. How can I drop all these new variables and keep only the ones that are observed in all years?
Note: there are roughly 250 new variables in 2011 and 200 new variables in 2012, so it would be tedious to drop them manually.
Thank you!
Related Posts with Drop variables which are missing all observations in a year
quaids elasticity calculationwhat is the difference between the following in estimating expenditure elasticity in QUAIDS 1. esta…
Dummy variables - how to determine significanceDear experts, I have a panel data set with 77 variables and about 68,184 observations for the years…
Doubt on data structure/fixed effectsDear Statalist users, I could really use some advice on how to handle the data I have for a piece o…
metaprop command: where is "logit" option?Dear all, I am writing to ask if any of you have ever used the "metaprop" command for a Meta-analysi…
Convergence in SEMI was having trouble getting a multiple indicators, multiple causes model to converge, so I simplifi…
Subscribe to:
Post Comments (Atom)
0 Response to Drop variables which are missing all observations in a year
Post a Comment