The HPIMPUTE Procedure

IMPUTE Statement

IMPUTE variables <options> ;

The IMPUTE statement names the variables whose values PROC HPIMPUTE imputes. You can specify multiple IMPUTE statements. The IMPUTE statement takes only numeric variables; character variables are reported as an error. The variables in an IMPUTE statement must appear in an INPUT statement; if they do not appear in an INPUT statement, an error is reported.

You can specify the following options:

METHOD=MEAN | RANDOM | PMEDIAN

specifies the method of imputation. You can specify the following values:

MEAN

replaces missing values with the algebraic mean of the variable. If there is no nonmissing value, the mean is 0.

RANDOM

replaces missing values with a random value that is drawn between the minimum and maximum of the variable. If there is no nonmissing value, the random value is 0.

PMEDIAN

replaces missing values with the pseudo-median of the variable. If there is no nonmissing value, the pseudo-median is 0.

VALUE=value

replaces missing values with the specified value.