R/z_calc.R

Defines functions z_calc

#' Calculates the z_value
#' @noRd
#' @keywords internal
#'
#' @param sig_level the significance level
#' @param two_sided whether the two sided z statistics or single sided should be calculated
#'
#' @importFrom stats qnorm
z_calc <- function(sig_level = 0.05,
                   two_sided = TRUE) {
  ifelse(two_sided,
         abs(qnorm(sig_level / 2)),
         abs(qnorm(sig_level)))
}
RobertEmprechtinger/metaHelper documentation built on Aug. 5, 2024, 2:44 a.m.