boot.mean: Bootstrap CI of the mean

View source: R/boot.mean.R

boot.meanR Documentation

Bootstrap CI of the mean

Description

This function accepts a vector, removes NAs, and returns a bootstrap-generated CI of the mean.

Usage

boot.mean(vec, b, ci = 0.95)

Arguments

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.

Value

A named numeric vector giving the lower and upper confidence limits.

Author(s)

Jason D. Carlisle, University of Wyoming

Examples

set.seed(333)
x <- runif(50, min=0, max=10)
boot.mean(vec=x, b=100, ci=0.95)

jcarlis3/ecoinfo documentation built on Sept. 9, 2023, 1:46 p.m.