Bootsrap confidence intervals in the meanSource:
A utility function to calculation the uncertainty intervals in the mean of a vector. The function removes any missing data before the calculation.
A vector from which the mean and bootstrap confidence intervals in the mean are to be calculated
The confidence interval; default = 0.95.
The number of bootstrap simulations
Returns a data frame with the mean, lower uncertainty, upper uncertainty and number of values used in the calculation
test <- rnorm(20, mean = 10) bootMeanDF(test) #> mean min max n #> Mean 9.959414 9.591018 10.3094 20