Computes the standard error of the mean (i.e., standard deviation divided by the square root of the sample size).
se(x, na.rm = TRUE)
| x | A numeric vector. |
|---|---|
| na.rm | A logical that indicates whether missing values should be removed before computing the standard error. |
A single numeric that is the standard error of the mean of x.
See se in sciplot for similar functionality.
Derek H. Ogle, derek@derekogle.com
#> [1] 1.322876se(x)#> [1] 1.322876#> [1] NA# Better if missing values are removed se(x2,na.rm=FALSE)#> [1] NA#> [1] 1.322876se(x2)#> [1] 1.322876