Hello,
The first row in my dataset is nonmissing for all variables (first row is labels). Besides the first row, however, many variables are completely missing. I understand the below code functions essentially as -dropmiss-, that is it will remove variables with missing data for all observations. Is there a way to modify it to exclude the first row?
Thanks!
Reese
The first row in my dataset is nonmissing for all variables (first row is labels). Besides the first row, however, many variables are completely missing. I understand the below code functions essentially as -dropmiss-, that is it will remove variables with missing data for all observations. Is there a way to modify it to exclude the first row?
Code:
foreach var of varlist _all { capture assert mi(`var') if !_rc { drop `var' } }
Reese
Comment