impute | R Documentation |
Impute missing at random data using the mice package in a tidyverse approach.
impute(
data,
impute,
fixed = NULL,
ignore = NULL,
quiet = T,
m = 5,
maxit = 5,
meth = "pmm",
seed = 500,
...
)
data |
Dataframe |
impute |
Vector of column names containing variables for use in the imputation algorithm and for imputation. |
fixed |
Optional vector of column names containing variables for use in the imputation algorithm but NOT for imputation. |
ignore |
Optional vector of column names containing variables NOT for use in the imputation algorithm OR for imputation. |
quiet |
Logical value to hide the output of the imputation process (default = T) |
m |
The number of imputations to be performed (default = 5) |
maxit |
is the number of iterations for each imputation (see mice::mice() function). |
seed |
random seed parameter which is useful for reproducibility. |
... |
Additional arguments to be passed to the mice::mice() function. |
method |
The imputation method to be used for each column in data (see mice::mice() function) |
Long dataset containing the original (unimputed) data, with each imputed dataset appended.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.