According to SAS documentation, In PROC SURVEYMEANS, the MISSING option "treats missing values as a valid (nonmissing) category for all categorical variables, which include CLASS, STRATA, CLUSTER, DOMAIN, and POSTSTRATA variables."
It doesn't turn blue and I only get error messages when I run it.
The MISSING option for Proc Surveymeans refers to the PROC statement, not the individual statements such as Domain.
If you clicked on the MISSING text in the Domain/Cluster etc statements in the documentation then you should notice that it took you to a different page.
The clue that this is not a per statement option is the "all categorical". Which means just that ALL of the variables used on any of those statements will treat missing as valid for all variables.
So you would use
Proc surveymeans data=&dataset nomcar MISSING;
MISSING
treats missing values as a valid (nonmissing) category for all categorical variables, which include CLASS , STRATA , CLUSTER , DOMAIN , and POSTSTRATA variables.
By default, if you do not specify the MISSING option, an observation is excluded from the analysis if it has a missing value. For more information, see the section Missing Values.
The MISSING option for Proc Surveymeans refers to the PROC statement, not the individual statements such as Domain.
If you clicked on the MISSING text in the Domain/Cluster etc statements in the documentation then you should notice that it took you to a different page.
The clue that this is not a per statement option is the "all categorical". Which means just that ALL of the variables used on any of those statements will treat missing as valid for all variables.
So you would use
Proc surveymeans data=&dataset nomcar MISSING;
MISSING
treats missing values as a valid (nonmissing) category for all categorical variables, which include CLASS , STRATA , CLUSTER , DOMAIN , and POSTSTRATA variables.
By default, if you do not specify the MISSING option, an observation is excluded from the analysis if it has a missing value. For more information, see the section Missing Values.
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.