sem: Standard Error of the Mean

Description Usage Arguments Details Value Examples

View source: R/summarising.R

Description

Calculates the standard error of the mean statistic, an estimate of the variability of the sampling distribution of the mean. See "details" for equation.

Usage

1
sem(x, na.rm = FALSE)

Arguments

x

A numeric or logical atomic vector

na.rm

a logical value indicating whether NA values should be removed from the input.

Details

Uses the following forumula:

S.E.M. = sqrt(Var(x)/N)

Value

A scalar numeric vector

Examples

1
2
x <- runif(30, 5, 2)
sem(x)

wjhopper/whoppeR documentation built on May 4, 2019, 7:33 a.m.