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?
Undo for "save" commandDear all, Are there any ways to cancel the "save" command in STATA 17? I preserved data on the memo…
Looping over many variables to create new variable "if any" ==0Dear Statalist: I am struggling with something that I know should be easy. My data is in long form, …
Imposing nonlinear constraint in moptimize()I am trying to find the coefficients of a system of linear regression equations defined as y = b*X +…
Fixed or Random Effect Model in Cross -Sectional dataDear All, I have a query regarding the fixed or random effect model in cross-sectional data (One ob…
correlation analysisHi, For small study/hypothesis generating work sometimes it is recommended to do correlation analys…
Subscribe to:
Post Comments (Atom)
0 Response to How to delete observation if one of these variables missing?
Post a Comment