boot.mean | R Documentation |
This function accepts a vector, removes NAs, and returns a bootstrap-generated CI of the mean.
boot.mean(vec, b, ci = 0.95)
vec |
Vector, must be numeric. |
b |
Scalar, the number of bootstrap iterations to perform. |
ci |
Scalar, the level of confidence interval (CI), Default is 95% CI. |
A named numeric vector giving the lower and upper confidence limits.
Jason D. Carlisle, University of Wyoming
set.seed(333)
x <- runif(50, min=0, max=10)
boot.mean(vec=x, b=100, ci=0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.