Updated versions of the macros doing Hot-deck Imputation of missing
values are available on Kirill's macro page,

"Impute missing data" collection.

Check it out