powered by
Add p-value significance symbols into a data frame.
add_significance( data, p.col = NULL, output.col = NULL, cutpoints = c(0, 1e-04, 0.001, 0.01, 0.05, 1), symbols = c("****", "***", "**", "*", "ns") )
a data frame
a data frame containing a p-value column.
column name containing p-values.
the output column name to hold the adjusted p-values.
numeric vector used for intervals.
character vector, one shorter than cutpoints, used as significance symbols.
# Perform pairwise comparisons and adjust p-values ToothGrowth %>% t_test(len ~ dose) %>% adjust_pvalue() %>% add_significance("p.adj")
Run the code above in your browser using DataLab