Description Usage Arguments Value See Also Examples
impute
returns a vector of values imputed from sampling from the ecdf of x
.
1 | impute_ecdf(x, n = 1)
|
x |
A vector. |
n |
The number of values to impute. |
The output of impute_ecdf
is a vector of imputed values of length n
Other imputers: impute_mode
,
impute_sample
, impute
1 2 3 4 5 6 7 | x <- c(1, 2, 3, 4, 5, NA, NA)
# Impute via ecdf sampling
x_impute <- impute(x, impute_ecdf)
# Compare
data.frame(x, x_impute)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.