svy_pairwise_t_test | R Documentation |
This function calculates a t.test() for any pair of levels in a
srvyr
survey object. It does currently not do any p-value adjustment
for multiple comparisons, and print rather than returns the results.
svy_pairwise_t_test(data, dv, iv, cats, p.adjust = "holm", ...)
data |
A survey object |
dv |
Character. Name of the dependent variable for the t.test (numeric) |
iv |
Character. Name of the grouping variable for the t.test (factor) |
cats |
Character vector of factor levels to be included in the pairwise tests. If set to NULL, all levels are used. |
p.adjust |
Method to adjust p-values for multiple comparisons. One of "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr" or "none". |
... |
Arguments passed on to
|
A tibble with t-test results and Cohen's d for each pair
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.