R/myci.R

Defines functions myci

Documented in myci

#' 95% Confidence Interval
#'
#' @param x Data frame to calculate ci on.
#'
#' @return 95% confidence interval for the data set.
#' @export
#'
#' @examples myci(c(1,2,3,4))
#' -> (0.4457397, 4.5542603)
#'
#'
myci = function(x) {
  return(t.test(x,conf.level=0.95)$conf.int)
}
matthewCmatt/MATH4753CARROLL documentation built on April 20, 2021, 7:25 p.m.