sd(x) / sqrt(n), the sampling error of a mean such as an average 1-5
rating. Packages the inline sem calculation from the report appendix.
Details
The standard error of the mean is the sample standard deviation divided by the
square root of the (non-missing) sample size, sd(x) / sqrt(n). It shrinks as
the sample grows, and is the basis of the margin of error you quote for an
average rating. Fewer than two values gives NA (no spread to estimate).
See also
se_prop(), rse(), margin_of_error(), diagnose().
Other diagnostics:
diagnose(),
margin_of_error(),
precision_summary(),
rse(),
rse_rating(),
se_prop()
Examples
se_mean(c(4, 5, 3, 4, 5, 2, 4))
#> [1] 0.404061
