adjust_pvalue {rstatix} | R Documentation |
Adjust P-values for Multiple Comparisons
Description
A pipe-friendly function to add an adjusted p-value column into a data frame. Supports grouped data.
Usage
adjust_pvalue(data, p.col = NULL, output.col = NULL, method = "holm")
Arguments
data |
a data frame containing a p-value column |
p.col |
column name containing p-values |
output.col |
the output column name to hold the adjusted p-values |
method |
method for adjusting p values (see
|
Value
a data frame
Examples
# Perform pairwise comparisons and adjust p-values
ToothGrowth %>%
t_test(len ~ dose) %>%
adjust_pvalue()
[Package rstatix version 0.7.2 Index]