A common practice to reduce the size of the panel sample (to reduce the time that Stata process the data) is to delete the observation where one of the variables gets a missing value (Stata will ignore this observation anyway).
So, let's say I have a dataset of 40 variables, but I want to delete the observation where any of these variables contain missing: x1, x2, x5, x6
Can you tell me how to do that?
Related Posts with How to delete observation if one of these variables missing?
Share of working hours by a segment of race comparing to the total raceHello everyone, I'm working with basic monthly sample of CPS and I'd like to calculate for each occ…
Structural equation modeling: Whether and how to estimate margins w.r.t. a latent variableI’d like to get input from the Stata community on the advisability and potential utility of estimati…
How does the option"ties" work in psmatch2?Hello: It says in the user's manual : ties not only match nearest neighbor but also other controls w…
Should I use vce(robust) for my OLS regression?Hi everyone, this is my first time posting, so I hope that I include all the relevant information. I…
Estimating Risk Ratios from Survival DataHi all, Does anyone have any experience calculating risk ratios from survival data generated sts li…
Subscribe to:
Post Comments (Atom)
0 Response to How to delete observation if one of these variables missing?
Post a Comment