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?
Wishlist for Stata 17In the spirit of previous threads serving the same purpose, please use this thread to add your desir…
Randomly generating an ID which is same for duplicates of an observationThere are 4 states coded 1,2,3 and 4. Within each state, I have generated a unique id to identify mo…
Calling a program whose name is a localHi all, My question is quite straightforward I guess but I did not find any answer on the web. Let…
Mediation analysis using path models with continuous mediator and binary outcomeDear Statalisters, I am performing a mediation analysis using path models (using sem or gsem) where…
Cohort variableHello! I am using data about households and I am interested in analyzing homeownership and mortgage …
Subscribe to:
Post Comments (Atom)
0 Response to How can I correctly remove the missing values within group in Stata?
Post a Comment