Algorithm A1: Impute missing values with random forest [28]. |
Require: X is an n × p matrix, setup stopping criterion () setup initial guess for missing values; vector of sorted indices of columns in w.r.t. increasing amount of missing values; while not do store previously imputed matrix; for s in do Fit a random forest: ; Predict using ; update imputed matrix, using predicted ; end for update end while return the imputed matrix |