Calculate p-values for 2x3-way analysis

calc_stats_2x3(
  data,
  outcome,
  group,
  padj.method,
  test = c("t.test", "wilcoxon"),
  exact = FALSE
)

Arguments

data

Dataframe or matrix with variables in columns and samples in rows

outcome

Factor with 2 levels

group

Factor with 3 levels

padj.method

Can be "qvalue" or any method available in p.adjust. The option "none" is a pass-through.

test

Character value specifying the statistical test between the 2 level response outcome. Current options are "t.test" or "wilcoxon".

exact

Logical for whether to use an exact test (Wilcoxon test only)

Value

A list containing a data frame with summary statistics for the comparisons between the outcome, for each group level.