Hello all!
I have a data set with demographics first, followed by two scales each 12 variables long. Each scale has missing data randomly throughout.
I'd like to delete observations that are missing (all) on both scales (24 variables).
I've used:
to identify observations that have missing on the specified variables, but this code identifies observations (=1) that have any missing data at all.
Is there a code that would allow me to either identify observations that have missing on all 24 variables (much like using egen) or code that would find and deleted observations for which all 24 variables are missing.
Thank you!
Morgan
I have a data set with demographics first, followed by two scales each 12 variables long. Each scale has missing data randomly throughout.
I'd like to delete observations that are missing (all) on both scales (24 variables).
I've used:
Code:
generate no_miss = !missing(OEE2Y-OEE31X)
Is there a code that would allow me to either identify observations that have missing on all 24 variables (much like using egen) or code that would find and deleted observations for which all 24 variables are missing.
Thank you!
Morgan
Comment