wtd_group_means_mi | R Documentation |
This function groups srvyr data by a grouping variable and then calculates and displays group means and counts with standard errors.
wtd_group_means_mi(mi_list, mean_var, gr, weights)
mi_list |
A list of dataframes of multiple imputation results |
mean_var |
Variable in mi_list to calculate means for. |
gr |
Grouping variable in mi_list |
weights |
Variable within mi_list that gives the survey weights |
A tiblle with means (M), standard deviations (SD) and weighted counts (N) per group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.