R/stdErrMean.R

Defines functions stdErrMean

Documented in stdErrMean

#' Calculate the standard error of the mean of a vector
#'
#' @param x numeric vector
#'
#' @return Standard error of the mean
#' 
#' @examples
#' x <- rnorm(100)
#' stdErrMean(x)
#' 
#' @export
#' 
stdErrMean <- function(x) {
  sd(x) / sqrt(length(x))
}
johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.