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?
Keeping only unique combination of observations in 2 columnsHi I have observations in two columns. Many of the values get repeated. I would like to keep only un…
Gravity model - PPML fixed-effect estimationDear all, I am doing a study on how Brexit can impact the EU export by using the gravity model. My …
Different number of decimals for different scalars in esttabHello! I am adding several scalars to my regression table and want different numbers of decimals fo…
Measuring Spells - two special cases in panel dataHi Statalist. I have code to identify and measure the length of a spell - the spell relates to coup…
What is the best method to test these relationships with Stata? Multiple regression? SEMDear all, I hope you can give me your opinion about this. I have to test the following relationship…
Subscribe to:
Post Comments (Atom)
0 Response to How to delete observation if one of these variables missing?
Post a Comment