Calculates the standard error of the mean statistic, an estimate of the variability of the sampling distribution of the mean. See "details" for equation.
sem(x, na.rm = FALSE)
x | A numeric or logical atomic vector |
---|---|
na.rm | a logical value indicating whether NA values should be removed from the input. |
A scalar numeric vector
Uses the following forumula:
$$S.E.M. = \sqrt{\frac{Var(x)}{N}}$$
#> Warning: NAs producedsem(x)#> Warning: Contains missing values (element 1)#> [1] NA