pairwise_wilcox_test: Pairwise Wilcoxon tests

pairwise_wilcox_testR Documentation

Pairwise Wilcoxon tests

Description

pairwise_wilcox_test calculates pairwise comparisons on ordinal data between all group levels with corrections for multiple testing based on wilcox_test from package 'coin'.

Usage

pairwise_wilcox_test(
  dep_var,
  indep_var,
  strat_var = NA,
  adjmethod = "fdr",
  distr = "exact",
  plevel = 0.05,
  symbols = letters[-1],
  sep = ""
)

Arguments

dep_var

dependent variable, containing the data.

indep_var

independent variable, should be factor.

strat_var

optional factor for stratification.

adjmethod

method for adjusting p values (see p.adjust)

distr

Computation of p-values, see wilcox_test.

plevel

threshold for significance.

symbols

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

sep

text between statistics and range or other elements.

Value

A list with matrix of adjusted p-values and character vector with significance indicators.

Examples

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

wrappedtools documentation built on Sept. 24, 2023, 5:06 p.m.