subj_mi | R Documentation |
multiply imputes unobserved subject level data using mice
subj_mi(dt, num_ms = 10, maxit = 20, x_inc = TRUE)
dt |
tibble, subject level data |
num_ms |
numeric, Default: 10, number of imputed datasets |
maxit |
numeris, Default: 20, number of maximum iterations per imputation |
x_inc |
logic, Default: TRUE, indicates whether covariate should be included in the multiple imputation |
the function reads a partially observed subject level data, then multiple imputes it using mice with logistic model
tibble, contains summary of the multiply imputed responses
tibble
map2
cor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.