R/output.ci.R

Defines functions output.ci

Documented in output.ci

#' function to format output
#'
#' @keywords internal
output.ci <- function(i.type, i.level, i.tails) {
  paste(switch(i.type, "Arithmetic mean", "Geometric mean", "Median", "Median", "Arithmetic mean", "Geometric mean"),
    " and its ",
    switch(i.tails, "one sided", "two sided"),
    " ",
    paste(i.level * 100, collapse = ", "),
    "% CI using ",
    switch(i.type, "the normal approximation", "the (log) normal approximation", "the KC Method", "bootstrap", "2*SD", "(log) 2*SD"),
    sep = ""
  )
}
lozalojo/mem documentation built on July 7, 2023, 10 a.m.