View source: R/mice.impute.sample.R
| mice.impute.sample | R Documentation |
Imputes a random sample from the observed y data
mice.impute.sample(y, ry, x = NULL, wy = NULL, ...)
y |
Vector to be imputed |
ry |
Logical vector of length |
x |
Numeric design matrix with |
wy |
Logical vector of length |
... |
Other named arguments. |
This function takes a simple random sample from the observed values in
y, and returns these as imputations.
Vector with imputed data, same type as y, and of length
sum(wy)
Stef van Buuren, Karin Groothuis-Oudshoorn, 2000, 2017
van Buuren S and Groothuis-Oudshoorn K (2011). mice:
Multivariate Imputation by Chained Equations in R. Journal of
Statistical Software, 45(3), 1-67.
\Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v045.i03")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.