R/pvalue_description.R

Defines functions pvalue_description

Documented in pvalue_description

#' A function describes how p values being calcualted
#'
#' This function describes how p values being calcualted
#' @param 
#' @keywords p-value
#' @export


pvalue_description <- function(...
                             , label = c(
                                   "The default test for categorical variables is chi-squared test with Yates correction for continuity."
                                 , "The default test for continuous variables is one-way ANOVA on means assuming equal variance. Kruskal-Wallis rank sum test has been applied for the variables where median and interquartile range (IQR) are shown on the table.")
                             , notation = "symbol"
                               ) {
    kableExtra::add_footnote(
                    ...
                  , label = label
                  , notation = notation
                )
}
ghowoo/Wu documentation built on June 10, 2022, 3:47 p.m.