Description Usage Arguments Value References Examples
This function imputes for all missing responses using predictive mean matching. The mice () function with default settings from the mice package (Van Buuren & Groothuis-Oudshoorn, 2011 <doi: 10.18637/jss.v045.i03>) is used to impute for the missing responses.
1 |
test.data |
Test data set (a data frame or a matrix) containing missing responses. Missing values are coded as NA or other values (e.g., 8, 9). |
Mvalue |
Missing response indicators in the data (e.g. "NA", "8", "9", etc.). Mvalue="NA" by default. |
A data frame with all missing responses replaced by integrated imputed values.
Van Buuren, S., & Groothuis-Oudshoorn, K. (2011). "mice: Multivariate imputation by chained equations in R." Journal of statistical software, 45(1), 1-67. DOI: 10.18637/jss.v045.i03.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.