Description Usage Arguments Value
Single imputation of covariates by two methods: predictive mean matching and median imputation. Predictive mean matching (default) aggregates the variable to the child level, imputes the covariates by predictive mean matching, and expands the result to all observations per individual (strIDVariable
). This method accounts for the correlations between the variables. Median imputation imputes the median imputation per individual of data frame (without correlation) of covariates in covariates vector.
1 2 | ImputeCovariates(df, StudyObj, strIDVariable = "ID", method = c("pmm",
"median"))
|
df |
A |
StudyObj |
A FAIRsimulator |
strIDVariable |
A string with the name of the columns in |
method |
A string identifying the imputation method. Current implemented methods are
|
A data.frame
with all missing covariates imputed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.