View source: R/miscellaneous.R
se | R Documentation |
se
returns the standard error of the mean.
se(y, na.rm = TRUE)
y |
a numeric vector/variable. |
na.rm |
Should missing values be removed before attempting to calculate the standard error (TRUE/FALSE)? |
Craig P. Hutton, Craig.Hutton@gov.bc.ca
Altman, D. G., & Bland, J. M. (2005). Standard deviations and standard errors. Bmj, 331(7521), 903.
sd
, sqrt
, length
y <- c(1:100) se(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.