Hello,
I have a dataset with several variables (I send an example below). I wouldlike to know the commands to:
1 - display the frequency of observations "inapplicable" by variable (for al variables in the dataset)
2 - Drop all the variables that have more than 400 observations with "inapplicable"
Thank you very much
I have a dataset with several variables (I send an example below). I wouldlike to know the commands to:
1 - display the frequency of observations "inapplicable" by variable (for al variables in the dataset)
2 - Drop all the variables that have more than 400 observations with "inapplicable"
Thank you very much
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(childpno nch14resp nch3resp nch8resp) -8 2 1 0 -8 0 0 0 -8 0 0 0 -8 3 0 0 -8 0 0 0 -8 0 0 0 -8 1 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 2 1 0 -8 1 0 0 -8 1 0 0 -8 0 0 0 -8 1 0 0 -8 0 0 0 -8 0 0 0 -8 1 0 0 4 2 0 0 -8 1 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 2 0 1 -8 1 0 0 -8 2 0 0 -8 0 0 0 -8 3 0 0 -8 3 1 0 -8 2 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 1 0 0 -8 0 0 0 -8 1 1 0 -8 2 0 0 -8 2 1 0 -8 2 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 3 0 0 -8 0 0 0 -8 0 0 0 -8 3 0 0 -8 0 0 0 -8 1 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 0 0 0 -8 3 1 0 -8 2 0 0 -8 0 0 0 3 0 0 0 -8 2 0 0 -8 0 0 0 -8 0 0 0 -8 3 0 0 -8 0 0 0 -8 0 0 0 -8 2 0 0 -8 0 0 0 -8 2 0 0 -8 0 0 0 -8 1 0 0 -8 1 0 0 -8 0 0 0 -8 1 1 0 -8 0 0 0 -8 1 0 0 -8 1 1 0 -8 0 0 0 -8 0 0 0 -8 1 0 0 -8 0 0 0 -8 0 0 0 -8 1 0 0 -8 1 0 0 -8 0 0 0 -8 1 0 0 end label values childpno c_childpno label def c_childpno -8 "inapplicable", modify label values nch14resp c_nch14resp label values nch3resp c_nch3resp label values nch8resp c_nch8resp

Comment