bootstrap_ci: Compute bootstrap confidence intervals and correct for...

Description Usage Arguments Value

View source: R/bootstrap.R

Description

Compute bootstrap confidence intervals and correct for bootstrap bias

Usage

1
2
3
4
5
6
7
bootstrap_ci(
  bs_values,
  raw_mean,
  conf_level = 0.95,
  correction = FALSE,
  recenter = FALSE
)

Arguments

bs_values

A vector of bootstrap estimates to be corrected

raw_mean

The "raw" mean of the measure to be corrected, i.e., not the bootsrapped estimate of the mean.

conf_level

The confidence level. Default is 0.95, i.e. a 95 confidence interval will be computed.

correction

Controls whether to perform bias correction (TRUE) or not (FALSE).

recetner

Controls whetehr to center the confidence interval on the value of 'raw_mean'. Default is FALSE. Only relevant if 'correction' is FALSE.

Value

named vector with corrected "mean", "high" (upper CI limit), "low" (lower CI limit)


danm0nster/domstruc documentation built on Feb. 12, 2020, 8:58 a.m.