Description Usage Arguments Value Author(s) See Also Examples
Impute missing components in X
using the EM algorithm, assuming
each row is a sample of multivariate normal distribution.
1 | impute_em(X, max_iter = 3000, eps = 1e-08)
|
X |
A data or a matrix with or without |
max_iter |
A natural number; the number of iterations.
|
eps |
A small positive number; 1e-08 by default. |
A list:
mu
: The resulting mean vector estimate. If X
(input)
has no missing components, then this is the MLE.
Sigma
: The resulting variance matrix estimate. If X
(input) has no missing components, then this is the MLE.
X_imputed
: An imputed data.
C
: !is.na(X)
, where X
is the input.
iter
: The number of iterations.
Junkyu Park
simulate_na
,
Imputing missing data using EM algorithm
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.