Signature
J_bar = (J_1 + J_2 + J_3 + J_4 + J_5 + J_6 + J_7 + J_8) / 8; S_2 = (J_bar - J_1)^2 + (J_bar - J_2)^2 + (J_bar - J_3)^2 + (J_bar - J_4)^2 + (J_bar - J_5)^2 + (J_bar - J_6)^2 + (J_bar - J_7)^2 + (J_bar - J_8)^2; S_3 = (J_bar - J_1)^3 + (J_bar - J_2)^3 + (J_bar - J_3)^3 + (J_bar - J_4)^3 + (J_bar - J_5)^3 + (J_bar - J_6)^3 + (J_bar - J_7)^3 + (J_bar - J_8)^3; a = S_3 / (6 * S_2^1.5)
| Inputs | Definition | Unit |
|---|---|---|
J_1 | Statistic recomputed with row 1 of the sample removed | unit of the statistic |
J_2 | Statistic recomputed with row 2 of the sample removed | unit of the statistic |
J_3 | Statistic recomputed with row 3 of the sample removed | unit of the statistic |
J_4 | Statistic recomputed with row 4 of the sample removed | unit of the statistic |
J_5 | Statistic recomputed with row 5 of the sample removed | unit of the statistic |
J_6 | Statistic recomputed with row 6 of the sample removed | unit of the statistic |
J_7 | Statistic recomputed with row 7 of the sample removed | unit of the statistic |
J_8 | Statistic recomputed with row 8 of the sample removed | unit of the statistic |
J_bar | Mean of the eight leave-one-out values of the statistic | unit of the statistic |
|---|---|---|
S_2 | Sum over the rows of the squared deviations of the leave-one-out values from their mean | unit of the statistic squared |
S_3 | Sum over the rows of the cubed deviations of J_bar minus each leave-one-out value | unit of the statistic cubed |
a | Acceleration constant estimated from the leave-one-out values | none |
Function
Bootstrap confidence interval from paired trial replicates
Maps patient-level costs and QALYs in two trial arms, a value per QALY, a replicate count and a tail probability to a confidence interval for incremental net monetary benefit read from percentiles of the replicates. Each replicate redraws whole patients with replacement within each arm, and its incremental cost, incremental effect and net benefit are differences in resampled means, the numerator and denominator of HE-FM-ICER-001 and the INMB of HE-FM-NMB-002. HE-FM-BOO-001 reads interval endpoints from the ordered replicates, HE-FM-BOO-002 moves the cut points for the bias-corrected and accelerated forms, HE-FM-BOO-003 estimates the acceleration by the jackknife and HE-CF-BOO-001 runs the resampling. The standard error from the same replicates is HE-FM-BSE-001, the normal interval built on it is HE-CF-BSE-001 and its closed form is HE-CF-BSE-002. The share of replicates with positive net benefit takes the form of HE-FM-CEAC-001, which is written for probabilistic simulations and which Fenwick, O'Brien and Briggs (HE-SR-CEAC-002) state for bootstrap replicates as well, so it is not restated. Notation follows the Bootstrapping article.
Try this function
Implementations
Excel
Jackknife acceleration from a column of leave-one-out values
With the leave-one-out values in a range named JackValues, the four formulas return, in order, cells named JackMean, JackSquares, JackCubes and AccelJack. For a sample mean in a range named CostsArm, each value is =(SUM(CostsArm)-cost)/(COUNT(CostsArm)-1). AVERAGE ignores blanks but SUMPRODUCT arithmetic treats a blank cell as 0, so the range must hold no blanks. Equal values return #DIV/0! in AccelJack.
=AVERAGE(JackValues); =SUMPRODUCT((JackMean-JackValues)^2); =SUMPRODUCT((JackMean-JackValues)^3); =JackCubes/(6*JackSquares^1.5)
Assumptions
One sample of independent rows
The jackknife removes one row at a time from one sample of independent rows, so this record suits a one-arm statistic such as the mean cost of an arm. It does not set out how to combine two arms, and HE-FM-BOO-002 with a of 0, the bias-corrected form, is the form used here for two-arm net benefit.
Leave-one-out values that differ
At least two leave-one-out values must differ, or S_2 is 0 and the ratio is undefined. In Excel the ratio then returns #DIV/0!.
Worked examples
Acceleration for mean cost in arm T of the illustrative trial
Each value is the mean of the article's arm T costs with one patient removed, (29,200 minus that patient's cost) / 7. Patient 7's cost of 6,900 gives the low value 3,185.7143 and a positive acceleration.
J_1 = 3800; J_2 = 3728.5714; J_3 = 3757.1429; J_4 = 3571.4286; J_5 = 3700; J_6 = 3771.4286; J_7 = 3185.7143; J_8 = 3685.7143; J_bar = 3650; S_2 = 280408.16; S_3 = 93516033.5; a = 0.105
Acceleration for mean cost in arm U of the illustrative trial
The same calculation on the article's arm U costs, which total 18,400. The costs are less skewed, so a is smaller than in arm T.
J_1 = 2357.1429; J_2 = 2300; J_3 = 2385.7143; J_4 = 2257.1429; J_5 = 2328.5714; J_6 = 2285.7143; J_7 = 2171.4286; J_8 = 2314.2857; J_bar = 2300; S_2 = 30204.08; S_3 = 1364430.3; a = 0.0433
Symmetric leave-one-out values give zero acceleration
A limiting case with invented values spaced evenly around their mean of 450. The cubes cancel, so a is 0 and HE-FM-BOO-002 returns the bias-corrected cut.
J_1 = 100; J_2 = 200; J_3 = 300; J_4 = 400; J_5 = 500; J_6 = 600; J_7 = 700; J_8 = 800; J_bar = 450; S_2 = 420000; S_3 = 0; a = 0
Common errors
Reversing the sign of the jackknife deviations
The deviations are the mean minus each leave-one-out value. Taking them the other way round flips a to minus 0.105 in arm T. In the fourth worked example of HE-FM-BOO-002 that moves the upper cut level from 0.9978 to 0.9693 and the upper limit from about 5,194 to about 4,620 GBP, shortening the tail the correction should lengthen.
Omitting the power on the sum of squares
Dividing S_3 by 6 times S_2, without the power 3/2, returns 55.58 for arm T in place of 0.105, a value that depends on the currency unit. The correct ratio has no unit, and a value far from zero with the units of the statistic points to this slip.
Sources
Jackknife acceleration in van Garderen and van Giersbergen
van Garderen KJ, van Giersbergen N. Moderating the Mediation Bootstrap for Causal Inference. arXiv preprint 2412.11285, version 1, 15 December 2024. Preprint section 3, item (iv), equation 15 gives the estimate from jackknife values, the sum of cubed deviations of the jackknife mean minus each value over 6 times the sum of squared deviations raised to the power 3/2, and describes it as commonly used.
Efron and Narasimhan jackknife differences for the acceleration estimate
Efron B, Narasimhan B. The automatic construction of bootstrap confidence intervals. Authors' manuscript as posted on Efron's Stanford page, published in Journal of Computational and Graphical Statistics. 2020;29(3):608-619 (published version not seen). Section 3, equations 3.11 and 3.12 give the nonparametric estimate of a from the jackknife differences, one sixth of the sum of their cubes over the sum of their squares raised to the power 3/2, the same ratio as HE-FM-BOO-003. The manuscript prints each difference as the leave-one-out value minus the mean, the opposite sign to these records, whereas the authors' own code in HE-SR-BOO-011 takes the mean minus the leave-one-out value. These records follow the code and the preprint equation. A positive a for right-skewed costs also fits the positive a of 0.108 that Table 7 of Efron and Tibshirani 1986 gives for a right-skewed example (derived).
Efron and Tibshirani skewness approximation for acceleration
Efron B, Tibshirani R. Bootstrap methods for standard errors, confidence intervals, and other measures of statistical accuracy. Statistical Science. 1986;1(1):54-75. Section 7, equation 7.16 (page 69) gives, in one-parameter families, a as approximately the skewness of the score statistic divided by 6.
Authors' bcaboot code for the jackknife acceleration
Efron B, Narasimhan B. bcaboot, Bias Corrected Bootstrap Confidence Intervals. R package version 0.2-3. 2021. In the source file R/bcajack.R the function bcajack forms each jackknife difference as the mean of the leave-one-out values minus that value, times m minus 1, and computes a as one sixth of the sum of their cubes over the sum of their squares raised to the power 1.5. The multiplier m minus 1 cancels in the ratio (derived).
boot package influence values in the BCa acceleration
Canty A, Ripley B. boot, Bootstrap Functions. R package version 1.3-32. 2025. The internal function bca.ci computes a as the sum of the cubed influence values over 6 times the sum of their squares raised to the power 1.5, and the jackknife option of empinf builds each value as the group size minus 1 times the full-sample estimate minus the leave-one-out estimate. For a sample mean that is the same deviation as HE-FM-BOO-003 up to the multiplier (derived). Run on the arm T costs of the illustrative trial, the package gives 0.1049661, the value of the first worked example before rounding.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
