Description Usage Arguments Value Author(s) Examples
View source: R/tidy_lm_add_multiple_comparison_correction.R
add adjusted p-values (i.e., multiple comparison correction methods)
as a new column using the p.adjust()
function
1 | tidy_lm_add_multiple_comparison_correction(tidy_df, methods = "all")
|
tidy_df |
a |
methods |
= "all" (default). a string or vector |
numeric adjusted p.values column using all or defined mutliple
comparison correction methods. this column is added to a tidy
table
of a lm
result
Ekarin Eric Pongpipat
1 2 3 4 5 6 | packages <- c("broom", "bootPermBroom", "dplyr")
xfun::pkg_attach(packages, message = F, install = T)
lm(salary ~ sex, carData::Salaries) %>%
tidy() %>%
tidy_lm_add_multiple_comparison_correction()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.