At first parameters are estimated via norm::em.norm()
. Then these
parameters are used in regression like models to impute the missing values.
If stochachstic = FALSE
, the expected values (given the observed values and
the estimated parameters via EM) are imputed for the missing values of an
object. If stochastic = TRUE
, residuals from a multivariate normal
distribution are added to these expected values.
If all values in a row are NA
or the required part of the covariance matrix
for the calculation of the expected values is not invertible, parts of the
estimated mean vector will be imputed. If stochastic = TRUE
, residuals will
be added to these values. If verbose = TRUE
, a message will be given for
these rows.