imputation | R Documentation |
This function is a wrapper of the functions mice
and complete
from the package mice
. Also to the impute
from the
package Hmisc
. The function is designed to use those functions
to impute missing values on exposures (not in phenotypes).
imputation(object, select, ..., messages = FALSE)
object |
|
select |
Exposures to be imputed. If missing, all exposes will be imputed. |
... |
Argument given to function |
messages |
(default |
A new ExposomeSet
with the imputed exposures.
plotMissings to plot the missing data of an ExposomeSet, tableMissings to get a table with the missing data of an ExposomeSet
## Not run: #Being x an ExposomeSet x <- imputation(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.