sem: Standard error of the mean

Description Usage Arguments Details Value Author(s) Examples

View source: R/sem.R

Description

Calculate the standard error of the mean (SEM) for a vector of numbers.

Usage

1
sem(x)

Arguments

x

A vector of numbers.

Details

The returned value is s/sqrt(n) where s is the sample standard deviation (SD) and n is the sample size. Missing values are discarded.

Value

The estimated standard error of the estimate of the mean of the population from which the numbers were drawn.

Author(s)

Karl W Broman, broman@wisc.edu

Examples

1
2
3
x <- rnorm(100,10,2)
mean(x)
sem(x)

kbroman/labstat documentation built on Jan. 6, 2021, 4:51 a.m.