Description Usage Arguments Value Examples
View source: R/statistics-utils.R
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()
.
1 | pairwise_t_test(formula, data, p_adj = "bonferroni")
|
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 |
A data frame that contains the dependent and independent variables. |
p_adj |
The p-value adjustment method (see Description). |
An object of class pairwise.htest
as returned by stats::pairwise.t.test()
.
1 2 | data_df <- dplyr::mutate(vizverb, IV = interaction(task, response))
pairwise_t_test(time ~ IV, data = data_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.