sem.RdThis function calculates the standard error of the mean for a set of numeric values.
sem(x, na.rm = TRUE)A numeric vector.
Logical; if TRUE, removes NA
values first.
The standard error of the mean.
Given the standard deviation \(s_x\) and sample size \(n\) of a sample \(x\), the standard error of the mean is:
$$ \frac{s_x}{\sqrt{n}}. $$