Computes the standard errors for a numeric vector.
Usage
se(x, na.rm = TRUE)
Arguments
x
A vector of class numeric or integer.
na.rm
A logical value indicating whether NA values should be stripped before the computations.
Value
An object of the same type as x.
encoding
UTF-8
Details
The standard error of the mean (SEM) (assuming statistical independence of the values in the sample) is estimated by taking the standard deviation of the population sample, divided by the square root of the sample size: $$se = \frac{{s}}{{\sqrt{n}}}$$
References
Agresti, A., and Finlay, B. (1997). Statistical methods for the social sciences.
Kenney, J. F. and Keeping, E. S. (1951) Standard Error of the Mean. In Mathematics of Statistics, Pt. 2, 2nd ed. Princeton, NJ: Van Nostrand, pp. 110 and 132--133.