The HPIMPUTE Procedure

Random Imputation

If you specify METHOD=RANDOM in the IMPUTE statement, PROC HPIMPUTE replaces missing values with a random value that is drawn between the minimum and maximum of the variable. For variable x, assume that the data set is {x Subscript i}, where i equals 1 comma 2 comma ellipsis comma n. Let m i n left-parenthesis x right-parenthesis equals min Underscript i element-of StartSet 1 period period n EndSet Endscripts left-brace x Subscript i Baseline right-brace, and let m a x left-parenthesis x right-parenthesis equals max Underscript i element-of StartSet 1 period period n EndSet Endscripts left-brace x Subscript i Baseline right-brace. The random value upper R equals m i n left-parenthesis x right-parenthesis plus left-parenthesis m a x left-parenthesis x right-parenthesis minus m i n left-parenthesis x right-parenthesis right-parenthesis asterisk r a n u n i left-parenthesis upper S upper E upper E upper D right-parenthesis, where r a n u n i left-parenthesis right-parenthesis is a function that takes a SEED (number) as input and returns a random value from a uniform distribution between 0 and 1. The SEED is set to 5 by default.

Last updated: March 06, 2023