Description Usage Arguments Value Author(s) Examples
View source: R/tidy_lm_add_logical_significance.R
add a logical column of significance comparing p-values to alpha
1 | tidy_lm_add_logical_significance(tidy_df, alpha = 0.05)
|
tidy_df |
a |
alpha |
= 0.05 (default). can specify another alpha value or a vector |
logical column of significance (i.e., TRUE or FALSE) by comparing p
to the cut-off alpha. 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_logical_significance(., c("0.01", "0.05"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.