Reproduces boot::boot.ci for the "norm",
"basic", "perc" and "bca" interval types
(BCa via the regression empirical-influence estimate, matching
boot's default).
Usage
morie_boot_ci(
boot_obj,
conf = 0.95,
type = c("perc", "norm", "basic", "bca"),
index = 1L
)Arguments
- boot_obj
A
morie_bootobject frommorie_boot().- conf
Confidence level (default 0.95).
- type
Character vector: any of
"perc","norm","basic","bca".- index
Which column of
tto summarise (default 1).
References
DiCiccio, T. J., & Efron, B. (1996). Bootstrap confidence intervals. Statistical Science, 11(3), 189-228.
Examples
set.seed(1)
b <- morie_boot_run(rnorm(50), statistic = mean, R = 200L)
morie_boot_ci(b)
#> $perc
#> [1] -0.1263354 0.3119452
#>
#> $norm
#> [1] -0.1206996 0.3312841
#>
#> $basic
#> [1] -0.1110486 0.3272320
#>
#> $bca
#> [1] -0.1338356 0.3082012
#>
