pairwise_t_test: Extended pairwise t-test

pairwise_t_testR Documentation

Extended pairwise t-test

Description

pairwise_t_testcalculate pairwise comparisons between group levels with corrections for multiple testing based on pairwise.t.test

Usage

pairwise_t_test(
  dep_var,
  indep_var,
  adjmethod = "fdr",
  plevel = 0.05,
  symbols = letters[-1]
)

Arguments

dep_var

dependent variable, containing the data

indep_var

independent variable, should be factor

adjmethod

method for adjusting p values (see p.adjust)

plevel

threshold for significance

symbols

predefined as b,c, d...; provides footnotes to mark group differences, e.g. b means different from group 2

Value

A list with method output of pairwise.t.test, matrix of p-values, and character vector with significance indicators.

Examples

pairwise_t_test(dep_var = mtcars$wt, indep_var = mtcars$cyl)

wrappedtools documentation built on Oct. 10, 2024, 5:07 p.m.