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(df, dv, iv, cats, ...)
df |
A dataframe |
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. |
... |
Arguments passed on to
|
Invisibly returns a names lists of lists including the t.test() output 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.