se: Calculate the standard error of the mean.

View source: R/miscellaneous.R

seR Documentation

Calculate the standard error of the mean.

Description

se returns the standard error of the mean.

Usage

se(y, na.rm = TRUE)

Arguments

y

a numeric vector/variable.

na.rm

Should missing values be removed before attempting to calculate the standard error (TRUE/FALSE)?

Author(s)

Craig P. Hutton, Craig.Hutton@gov.bc.ca

References

Altman, D. G., & Bland, J. M. (2005). Standard deviations and standard errors. Bmj, 331(7521), 903.

See Also

sd, sqrt, length

Examples

y <- c(1:100)
se(y)


bcgov/elucidate documentation built on Sept. 3, 2022, 7:16 p.m.