VARIMPUTE Procedure

Overview: VARIMPUTE Procedure

The VARIMPUTE procedure performs variable imputation on a data table. Imputation is a common step in data preparation.

The VARIMPUTE procedure can replace numeric missing values with a specified value, with the mean or median of the nonmissing values, or with some random value between the minimum value and the maximum value of the nonmissing values.

The VARIMPUTE procedure can replace nominal missing values with a specified value and with the nonmissing value which has the most frequent appearance for that variable.

The VARIMPUTE procedure also supports formatted values including user defined formats.

When PROC VARIMPUTE calculates the mean, median, mode, or a random value, it ignores any observation that has a value that is less than or equal to 0 for any variable that is named in the FREQ statement.

Last updated: May 14, 2026