R/AllGenerics.R
R/sem-methods.R
sem.Rd
Standard error of the mean
sem(x, ...) # S4 method for AsIs sem(x) # S4 method for numeric sem(x)
Object.
Additional arguments.
numeric.
numeric
Alternatively, can use: sd(x) / sqrt(length(x)).
sd(x) / sqrt(length(x))
Updated 2023-01-30.
https://stackoverflow.com/questions/2676554/
x <- seq(from = 1L, to = 10L, by = 1L) x <- sem(x) x #> [1] 0.9574271