Skip to contents

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).

Usage

mean_impute(x)

Arguments

x

numeric matrix. Sample as rows, variables as columns. Impute for NAs in the columns.