IntHout 2014 - HKSJ and DerSimonian-Laird Formal Specification
Summary
DL and HKSJ share the same pooled estimate (weights ). They differ only in the variance and reference distribution: DL uses with normal tests; HKSJ uses the weighted residual variance with a reference. Equivalently, with .
Overview
Appendix 1 gives the entire formal basis. Notation follows the paper (not metafor’s ): is the within-study variance.
Main Content
Random-effects model (Appendix 1)
For studies, , , with and independent. is the within-study variance (estimation error of ) and the between-study heterogeneity. For dichotomous outcomes with zero events in one or both arms, 0.5 was added to all cells of that study before analysis.
DerSimonian-Laird estimate
Fixed-effects weights , fixed-effects estimate , heterogeneity statistic and
Random-effects weights , estimate . DL variance and test:
(The formula for is the DerSimonian-Laird (1986) moment estimator, see Viechtbauer 2010 - tau2 Estimators, Q-Test and Heterogeneity Statistics.)
HKSJ estimate (Hartung 1999; Hartung and Knapp 2001a,b; Sidik and Jonkman 2002)
Same and , but
HKSJ as a rescaled DL variance
Proof. Divide by . Consequences (interpretation added in this vault, not stated in the paper): (i) is the random-effects heterogeneity statistic per degree of freedom; if the model fits ( estimated well) its expectation is about 1 and HKSJ is close to DL apart from the -quantile; (ii) when is underestimated (typical with small ) and HKSJ widens the interval; (iii) the weights enter only as ratios, so HKSJ can be computed from DL weights reported as percentages (“Sum = 100”), which is what enables the conversion in IntHout 2014 - Converting DL Results to HKSJ Worked Examples; (iv) the paper does not truncate at 1, so is possible (observed in Example 2 where HKSJ’s CI is slightly narrower).
Heterogeneity measure (Higgins and Thompson 2002)
where is the within-study variance of a “typical” study (Borenstein et al. 2009). Used in the simulations to set (IntHout 2014 - Simulation Design).
Both methods give the identical point estimate; “the methods differ with respect to the calculation of the confidence interval and the statistical test. For DL, these are based on the normal distribution, whereas for the HKSJ method, they are based on the -distribution with the degrees of freedom equal to the number of trials minus one, and a weighted version of the DL standard error.”
Examples
The two variances on the zinc data
Five studies, DL weights as percentages (sum 100), : , so and , versus the DL SE implied by the published DL CI ( to ) of about . With the HKSJ CI is , so DL becomes HKSJ . Full steps: IntHout 2014 - Converting DL Results to HKSJ Worked Examples.
import numpy as np
from scipy import stats
def dl_and_hksj(y, v):
k = len(y); w = 1/v; yF = (w*y).sum()/w.sum(); Q = (w*(y-yF)**2).sum()
tau2 = max(0, (Q-(k-1))/(w.sum()-(w**2).sum()/w.sum()))
wt = 1/(v+tau2); yR = (wt*y).sum()/wt.sum()
var_dl = 1/wt.sum(); q = (wt*(y-yR)**2).sum()/(k-1); var_hk = q*var_dl
p_dl = 2*stats.norm.sf(abs(yR)/np.sqrt(var_dl)); p_hk = 2*stats.t.sf(abs(yR)/np.sqrt(var_hk), k-1)
return dict(est=yR, tau2=tau2, q=q, se_dl=var_dl**.5, se_hk=var_hk**.5, p_dl=p_dl, p_hk=p_hk)Connections
- metafor equivalence:
rma(yi, vi, method="DL", knha=TRUE)(Viechtbauer 2010 - Fitting Models with rma, Moderators and Knapp-Hartung); Röver (2020) lists these as the “exceptions” that account for uncertainty in via inflated SE and Student- (Roever 2020 - Overview and Motivation of Bayesian Meta-Analysis). - On BCG, DL gives and (computed here), versus REML+HKSJ 95% CI on the log RR, wider than the Wald (Viechtbauer 2010 - BCG Vaccine Worked Example).