svy_interact | R Documentation |
Survey interaction means
svy_interact(
design,
interact_cols,
group = NULL,
arrange = TRUE,
unnest_interaction = TRUE,
na_rm = TRUE,
stat_name = "prop",
...
)
design |
A srvyr::design object |
interact_cols |
A vector of columns to get interactions from |
group |
A vector of columns to group by. Default to NULL |
unnest_interaction |
Should interaction be unnested? Default to TRUE |
na_rm |
Should NAs from |
stat_name |
What should the statistic's column be named? Default to "prop" |
... |
Parameters to pass to srvyr::survey_mean() |
A survey-summarized-interaction tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.