Get multiple imputation mean statistics using gouping variable.
1 2 | get_mi_mean_by_group(full_data, stat_var, group_var, weight_var = NULL,
ids = ".id", imps = ".imp", use_random = FALSE)
|
full_data |
ataframe that could be converted to the mids object to perform calculations on the multiple imputations data frame. |
stat_var |
variable to apply statistics |
group_var |
variable for grupping |
weight_var |
variable for weighting. NULL by default. |
ids |
names of the columns wit the observation-specific ID and number of imputation. |
imps |
names of the columns wit the observation-specific ID and number of imputation. |
use_random |
harmonise imputation of the unequal size randomly. By default if FALSE, therefore, to equalise sizes of the imputed samples, simplu n-first observations is used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.