pairwise_t_test: Pairwise T Tests

View source: R/pairwise_t_test.R

pairwise_t_testR Documentation

Pairwise T Tests

Description

A tidy calculation of pairwise comparisons between group levels with corrections for multiple testing

Usage

pairwise_t_test(df, outcome, subgroups, vs_rest = FALSE, min_n = 30, ...)

Arguments

df

A data frame or tibble of raw observations

outcome

Response vector

subgroups

Grouping vector

vs_rest

Logical indicating whether to test each level of a subgroup to the rest of the data

min_n

A scalar numeric indicating the minimum sample size to test on. Defaulted to n=30.

...

Additional arguments passed on to pairwise.t.test and t.test

Value

A tibble with output from pairwise.t.test

Examples

pairwise_t_test(iris, Sepal.Length, Species)

pstraforelli/tidytests documentation built on Oct. 28, 2023, 3:30 p.m.