pairwise_t_test: Pairwise t-test

Description Usage Arguments Value Examples

View source: R/statistics-utils.R

Description

This is wrapper to the pairwise.t.test function. The p-value adjustment is "bonferroni" by default. Other possible values are "holm", "hochberg", "hommel", "BH", "BY", "fdr", "none". See stats::p.adjust().

Usage

1
pairwise_t_test(formula, data, p_adj = "bonferroni")

Arguments

formula

A two sided formula with one variable on either side, e.g. y ~ x, where the left hand side, dependent, variable is a numeric variable in data and the right hand side, independent, variable is a categorical or factor variable in data.

data

A data frame that contains the dependent and independent variables.

p_adj

The p-value adjustment method (see Description).

Value

An object of class pairwise.htest as returned by stats::pairwise.t.test().

Examples

1
2
data_df <- dplyr::mutate(vizverb, IV = interaction(task, response))
pairwise_t_test(time ~ IV, data = data_df)

psyntur documentation built on Sept. 15, 2021, 5:07 p.m.