Computes the standard error of the mean.

se(x, na.rm = FALSE)

Arguments

x

A numeric vector.

na.rm

Remove missing values before computing the standard error.

Value

A numeric scalar.

Examples

se(c(1, 2, 3, 4))
#> [1] 0.6454972