From HMisc. A very fast implementation of the basic nonparametric bootstrap for obtaining confidence limits for the population mean without assuming normality.

ci_boot(x, conf_int = 0.95, B = 1000, na_rm = TRUE, reps = FALSE)

Arguments

x

a numeric vector from which NAs will be removed automatically

conf_int

specifies the confidence level (0-1) for interval estimation of the population mean.

B

number of bootstrap resamples

na_rm

defaults to TRUE unlike built-in functions, so that by default NAs are automatically removed.

reps

set to TRUE to have smean.cl.boot return the vector of bootstrapped means as the reps attribute of the returned object.

Value

A vector of summary statistics.