Hello, I need some help
I have large unbalance panel data and I need to drop the Person ID (PID) if its next year data is missing. See the sample:
PID Year Explanatory variable
1 2009 12
1 2010 12
1 2011 7
1 2012 8
1 2013 14
2 2009 12
3 2009 45
3 2010 56
3 2011 34
3 2012 23
4 2009 212
5 2009 12
5 2010 34
So at time 1 which is 2009, I am considering data of Persons then its impact will be on the Dependent Variable next year data time 2. So, if PID is missing in next year these observations are useless for me. Example PID: 2 and 4 above. How I can drop them I cannot do it manually its huge data base.
Related Posts with Drop variables in STATA if next year data is missing
Inform the user of Python script progress when called from Stata do-file.Hello, Apologies if this has been answered elsewhere - I've searched (here and in other places), bu…
Interpretation of multilevel poisson modelHello stata folks, I am learning about multilevel poisson model and I have some questions on the int…
Checking Model Fit in Part 1 and 2 of TWOPMHello, Does anyone know how to test model fit when using the twopm command? I am using twopm to exa…
Kernel-based Propensity Score Matching diff-in-diffHi Stata Users, Below is an example of my data set. I want to perform the Kernel-based Propensity S…
Bug in the connect option of twoway graph?I am trying to plot a number of graphs using the ascending and stairstep connect styles of the conne…
Subscribe to:
Post Comments (Atom)
0 Response to Drop variables in STATA if next year data is missing
Post a Comment