bootstrap_ci: Boostrap Confidence Intervals

Description Usage Arguments Examples

Description

This function computes 95 percent confidence intervals via non-parametric bootstrap.

Usage

1
bootstrap_ci(x, .fun = NULL, bound, level, na.rm = T)

Arguments

x

A vector of numeric values for which you need a boostrapped confidence interval

.fun

The function that you want to be bootsrtrapped

bound

Which bound of the confidence interval: "upper" vs. "lower"

level

Level of confidence (numeric)

Examples

1
2
# returns a numeric with either the lower and upper bound of the CI
boostrap_ci(x = df$accuracy, .fun = mean, bound = "upper", level = 0.975, na.rm=T)

kemacdonald/kmr documentation built on May 20, 2019, 8:46 a.m.