Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bootMeanDF

Bootsrap confidence intervals in the mean


Description

A utility function to calculation the uncertainty intervals in the mean of a vector. The function removes any missing data before the calculation.

Usage

bootMeanDF(x, conf.int = 0.95, B = 1000)

Arguments

x

A vector from which the mean and bootstrap confidence intervals in the mean are to be calculated

conf.int

The confidence interval; default = 0.95.

B

The number of bootstrap simulations

Value

Returns a data frame with the mean, lower uncertainty, upper uncertainty and number of values used in the calculation

Examples

test <- rnorm(20, mean = 10)
bootMeanDF(test)

openair

Tools for the Analysis of Air Pollution Data

v2.10-0
GPL (>= 2)
Authors
David Carslaw [aut, cre], Karl Ropkins [aut]
Initial release
2022-06-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.