This function creates a models via multiple imputation and returns model parameters
1 2 | runImputation(df, m = 5, method, interaction = FALSE, donors = 3,
outcomeType)
|
df |
The dataset with missing values generated by generateData() |
m |
Number of imputations. |
method |
The method of imputing univariate missingness |
interaction |
Want to add interaction to the imputation model? Defaults to FALSE. |
donors |
Number of donors if using predictive mean matching. Defaults to 3. |
outcomeType |
Is the outcome variable binary or continuous? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.