
Impute missing values in a matrix by column means
mean_impute.Rd
For categorical variables (which we expect to be dichotomized already), we also simply compute the mean, which is the (marginal) Bernoullie probability to be in the positive class (1).