The SURVEYIMPUTE Procedure

VAR Statement

  • VAR variable <(options)> <…variable <(options)>> </ global-options>;

The VAR statement names the analysis variables to be imputed. The analysis variables can be either character or numeric. The categorical variables in the VAR statement, which can be either character or numeric, must also be specified in the CLASS statement. Only variables that you specify in the VAR statement are imputed. If you specify METHOD=FEFI or METHOD=FHDI, then you must also specify a CLEVELS= or CLEVVAR= option for all numeric variables that are not specified in the CLASS statement.

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

You can specify the following global-options or options in the VAR statement:

CLEVELS=k

specifies the number of levels by which to categorize numeric variables that are in the VAR statement but not in the CLASS statement. The procedure divides the range of these variables into k equally spaced bins. You can specify the CLEVELS= option either as a global-option or as an individual option.

CLEVVAR=variable

specifies a variable that contains the bins for a numeric variable that is specified in the VAR statement but not in the CLASS statement. Both the CLEVVAR= variable and the numeric variable to which the CLEVVAR=variable applies to should have the same missing values.

Last updated: December 09, 2022