svy_pairwise.t.test: Pairwise t.tests with effect sizes and survey weights

View source: R/stat_tests.R

svy_pairwise.t.testR Documentation

Pairwise t.tests with effect sizes and survey weights

Description

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.

Usage

svy_pairwise.t.test(df, dv, iv, cats, ...)

Arguments

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 svy_cohen_d_pair

ttest

Logical. Should t.test be run and displayed? Otherwise, only Cohen's d is calculated. Defaults to TRUE.

Value

Invisibly returns a names lists of lists including the t.test() output and Cohen's D for each pair


LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.