R/se.R

Defines functions se

Documented in se

#' Standard error of a sample mean
#'
#' @param x vector of numbers
#'
#' @return numeric value
#' @export
#'
#' @examples se(1:5)
se <-
  function(x) {
    stats::sd(x)/sqrt(length(x))
  }
jmringenberg/packr documentation built on May 11, 2022, 12:36 a.m.