Fits survey::svyglm() for each outcome against a categorical grouping
variable and runs survey::regTermTest(). Optionally returns pairwise
contrasts via emmeans.
Arguments
- svy_df
A data frame containing the survey data.
- outcomes
Character vector of (continuous) outcome variables.
- group_var
A string naming the categorical grouping variable. Will be coerced to factor.
- wt_var
A string naming the survey weight column.
- pairwise
If
TRUE, also return pairwise contrasts fromemmeans::emmeans().- adjust
Multiple-comparison adjustment for pairwise contrasts. See
?emmeans::summary.emmGrid.