R/std_err.R

Defines functions std_err

Documented in std_err

#' Calculate the standard error for a sample
#'
#' returns the standard error of
#' a numeric vector
#'
#' @param v numeric vector
#'
#' @return number
#' @export
#'
#' @examples
#' std_err(rnorm(50))
#'
#'
std_err <- function(v) {
  sd(v)/sqrt(length(v))
}
sebates1/mypackage documentation built on Jan. 8, 2020, 12:07 a.m.