R/printChiSqPVal.R

#' Functions to get p-value from Chi-sq
#' @description Functions to get p-value from Chi-sq, used by createNiceTable()

printChiSqPVal <- function(fmla, data) {
  tbl <- ftable(fmla, data)
  Xsq <- chisq.test(tbl)
  printPVal(Xsq$p.value)
}
mssm-msf-2019/BiostatsALL documentation built on May 22, 2019, 12:16 p.m.