View source: R/adjust_pvalue.R
adjust_pvalue | R Documentation |
A pipe-friendly function to add an adjusted p-value column into a data frame. Supports grouped data.
adjust_pvalue(data, p.col = NULL, output.col = NULL, method = "holm")
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
|
a data frame
# Perform pairwise comparisons and adjust p-values ToothGrowth %>% t_test(len ~ dose) %>% adjust_pvalue()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.