The SURVEYMEANS Procedure

VAR Statement

VAR variables ;

The VAR statement names the variables to be analyzed.

A variable in the VAR statement should not appear in any of the BY, CLUSTER, DOMAIN, POSTSTRATA, REPWEIGHTS, STRATA, and WEIGHT statements.

If you want a categorical analysis for a numeric variable, you must also name that variable in the CLASS statement. For categorical variables, PROC SURVEYMEANS estimates the proportion in each category or level, instead of the overall mean. Character variables are always analyzed as categorical variables. See the section CLASS Statement for more information.

When you specify a variable in a RATIO statement but not in a VAR statement, PROC SURVEYMEANS includes this variable as an analysis variable.

If you do not specify a VAR statement, then PROC SURVEYMEANS analyzes all variables in the DATA= input data set, except those named in the BY, CLUSTER, DOMAIN, POSTSTRATA, REPWEIGHTS, STRATA, and WEIGHT statements.