R/sem.R

Defines functions sem

Documented in sem

#' Calculate Standard Error of the Meam (SEM)
#'
#' @param x Input Vector
#'
#' @return Standard Error of the Mean. A single value
#'
#' @name sem
#'
#' @examples
#'
#' library(summaryStatsR)
#'
#' sem(iris[['Petal.Length']])
#' 
#' @importFrom stats na.omit sd
#' @export
sem <- function(x) sd(na.omit(x))/sqrt(length(na.omit(x)))
bigpas/summaryStatsR documentation built on Dec. 1, 2019, 6:33 p.m.