Description Usage Arguments Value Author(s) See Also Examples
Randomly replace some components in X_complete
with NA
based
on na_rate
specified.
1 | simulate_na(X_complete, na_rate)
|
X_complete |
A data or a matrix with no |
na_rate |
A number in (0, 1). |
A list:
X
: A generated data with missing components.
C
: !is.na(X)
na_rate
: A specified na_rate
when running the
function.
na_rate_actual
: The actual proportion of missing components
after running the function.
Junkyu Park
impute_em
,
Imputing missing data using EM algorithm
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.