sem: Standard Error of the Mean

View source: R/functions.R

semR Documentation

Standard Error of the Mean

Description

This function returns the standard error of the mean (SEM) of a given numeric vector.The SEM defined as the stadard deviation (SD) divided by the square root of the count of observations. In other words, SD(x)/sqrt(n).

Usage

sem(x)

Arguments

x

Array of which you want to calculate the SEM.

Value

Returns a numeric SEM.

Examples

sem(c(3, 3, 3.5, 4))
sem(iris$Sepal.Length)

codybj/codyverse documentation built on June 12, 2022, 4:15 p.m.