R/sm_stdErr.R

Defines functions sm_stdErr

Documented in sm_stdErr

#' Standard error
#'
#' @param data
#' Numerical vector of data.
#' @import stats
#' @export
#' @return
#' A double vector is returned with a standard error of the input (given sample).
#' @examples
#' library(smplot2)
#' sm_stdErr(rnorm(10,0,1))
#'
#'
#'
sm_stdErr <- function(data) {
  sd(data)/sqrt(length(data))
}
smin95/sesplot documentation built on July 2, 2024, 9:35 a.m.