I have a small data set laid out in longitudinal format,
* Example generated by -dataex-.
clear
input byte (id success)
1 0
1 .
1 .
1 .
2 1
2 0
2 0
2 0
3 .
3 .
3 .
3 .
4 .
4 .
4 .
end
I want to drop all missing values in the dataset. How can I use Stata code to do this?
Thank you!
Related Posts with How can I correctly remove the missing values within group in Stata?
Generating a Variable Conditional on Many Variable that are not Dummy VariablesHi everyone, I have this dataset that contains information on the relationship of each household mem…
error ) required r(100);Dear all, The code below gives me the error Code: ) required ; Code: twoway (line RM_RF Year), yt…
How to clear all graphs saved in macroHi, I am 'foreach' loop command to save and combine 9 different catplot (ssc) graphs (local graphnam…
Fixed effects panel regression with robust standard error- which code to use?Hi, I'm using the following code to perform fixed effects panel regression Code: areg y x1 x2 i.ye…
Direct Standardisation- two in-built Stata methods, different resultsWhile doing analysis recently, I came across a peculiar problem. For reproducibility, the two .dta f…
Subscribe to:
Post Comments (Atom)
0 Response to How can I correctly remove the missing values within group in Stata?
Post a Comment