se | R Documentation |
This function computes the standard error of the values in x. If na.rm
is TRUE
then missing values are removed before computation proceeds.
se(x, na.rm = FALSE)
x |
a numeric vector or an R object which is coercible to one by |
na.rm |
logical. Should missing values be removed? |
Equivalent to sd
divided by square root of n.
The standard error of a zero-length vector (after removal of NAs if na.rm = TRUE
) is not defined and gives an error. The standard error of a length-one vector is NA.
Jason Grafmiller
mean
, sd
x <- rnorm(100, mean = 10, sd = 5)
sd(x)/sqrt(100)
se(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.