R/se.R

Defines functions se

Documented in se

#' Standard Error
#'
#' Calculate the standard error of the mean.
#'
#' @param x a numeric vector.
#'
#' @return Standard error as a number.
#'
#' @export

se <- function(x)
{
  s <- sd(x)
  n <- length(x)

  s / sqrt(n)
}
arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.