Obtain the standard error of the mean
se_mean(x, na.rm = FALSE)
x | a numeric vector |
---|---|
na.rm | a logical value indicating whether NA values should be stripped before the computation proceeds. |
a scalar equal to the standard error of the mean, computed as sd(x)/(sqrt(n)).
x <- rnorm(100) mean(x)#> [1] 0.03102274se_mean(x)#> [1] 0.08982355