R/printAOVPVal.R

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

printAOVPVal <- function(fmla, data) {
  fit <- aov(fmla, data=data)
  pv <- summary(fit)[[1]][["Pr(>F)"]][1]
  printPVal(pv)
}
mssm-msf-2019/BiostatsALL documentation built on May 22, 2019, 12:16 p.m.