se | R Documentation |
Calculates the standard error of the values in x
se(x, na.rm = FALSE)
x |
a numeric vector. |
na.rm |
a logical value indicating whether |
The standard error of a length one vector is NA
and if x
is not
a vector an error will be printed.
The standard error is defined as:
SE = sqrt(var(x)/length(x))
The standard error of x
is returned.
Thomas Kvalnes
var
, length
, sqrt
#The standard error of samples with the same mean and standard deviation, but #of different sizes. se(rnorm(n = 10, mean = 5, sd = 1)) se(rnorm(n = 100, mean = 5, sd = 1)) se(rnorm(n = 1000, mean = 5, sd = 1)) se(rnorm(n = 10000, mean = 5, sd = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.