Description Usage Arguments References See Also Examples
Calculate Standard Error of the Mean
1 | error_se_mean(x, na.rm = FALSE)
|
x |
vector: Input numeric vector to be summarized |
na.rm |
logical: If TRUE, NA (missing) values will be ignored. |
http://en.wikipedia.org/wiki/Standard_error
Other functions for estimating sampling error:
error_me()
,
error_se_prop()
1 2 3 4 5 6 7 8 9 10 11 | # generate some measurements & estimate std. error
x <- rlnorm(50, 3)
summary(x)
error_se_mean(x)
# introduce some missing values
nas <- rbinom(50, 1, 0.1)
x <- ifelse(nas, NA_integer_, x)
summary(x)
error_se_mean(x) # doesn't work
error_se_mean(x, na.rm = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.