se returns the standard error of the mean.

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)?

References

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

See also

Author

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

Examples

y <- c(1:100)
se(y)
#> [1] 2.901149