calcBCa | R Documentation |
Calculate BCa
calcBCa(bootObj = NULL, bootStat = NULL, origStat = NULL,
origData = NULL, bcaA = NULL, alpha = 0.05, ci = TRUE, type = "bca",
calcStat = NULL, B = 2000, bootPkgCI = FALSE, seed = NULL, ...)
bootObj |
object of class "boot". Object generated by |
bootStat |
numeric vector. Bootstrap samples. Optional if |
origStat |
numeric. Original sample estimate, i.e. value of |
origData |
numeric vector. Original sample. Required if |
bcaA |
numeric. Acceleration constant. |
alpha |
numeric. Dependent on |
ci |
logical. If |
type |
'bca' or 'bc'. Whether to return BCa or bias-corrected intervals. If type == "bc",
it sets |
calcStat |
function. Function of a single variable to calculate for each sample. |
B |
numeric. Number of bootstrap samples to generate, if required. |
bootPkgCI |
logical. If TRUE, then only functions from the |
seed |
numeric vector. If specified, then |
... |
arguments. Passed on to |
If ci
is TRUE
, then a numeric vector of length two is returned with the
upper and lower bound of the 1-alpha
confidence interval. If ci
is FALSE
, then
a single numeric is returned of the corresponding quantile.
calcBCa( origData = c( 0.096888, 0.115579, 0.13671, 0.086497, 0.5248, 1.676752, 0.46717, 0.360975, 0.118718 ),
calcStat = mean, bootPkgCI = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.