calcBCaZ0: Calculate BCa bias quantile

View source: R/calcBootEst.R

calcBCaZ0R Documentation

Calculate BCa bias quantile

Description

Returns the estimated bias quantile for the BCa confidence interval.

Usage

calcBCaZ0(bootStat, origStat)

Arguments

bootStat

numeric vector. Bootstrap sample statistics.

origStat

numeric. Original sample statistic.

Value

A numeric vector of length one that is the estimate of the bias quantile.

Examples

respVec = c( 0.096888, 0.115579, 0.13671, 0.086497, 0.5248,
1.676752, 0.46717, 0.360975, 0.118718 )
origStat = mean(respVec)
bootVec = boot::boot( respVec, function(x,w) mean(x[w]), R = 2e3 )$t
calcBCaZ0( bootVec, origStat )

MiguelRodo/ggboot documentation built on Nov. 9, 2023, 5:45 p.m.