Systeamatic

Validation

How we check our statistics

Every number below is worked out as you load this page, by the same code our free tools and Systeamatic use, beside the result the reference software gives for the same published example.

✓ All 33 numbers match their reference

Random-effects meta-analysis (REML)

The 13 BCG vaccine trials (Colditz et al., 1994), pooled as risk ratios.

Reference: metafor: rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, method="REML")

NumberReferenceSysteamatic
Pooled log risk ratio−0.7145−0.7145✓ matches
Its standard error0.17980.1798✓ matches
Risk ratio0.48940.4894✓ matches
95% CI, lower0.34410.3441✓ matches
95% CI, upper0.69620.6962✓ matches
τ²0.31320.3132✓ matches
Q152.2330152.2330✓ matches

DerSimonian–Laird and fixed-effect models

The same trials, pooled with the other two models.

Reference: metafor: rma(…, method="DL") and rma(…, method="FE")

NumberReferenceSysteamatic
DerSimonian–Laird: log risk ratio−0.7141−0.7141✓ matches
DerSimonian–Laird: τ²0.30880.3088✓ matches
Fixed effect: log risk ratio−0.4303−0.4303✓ matches
Fixed effect: standard error0.04050.0405✓ matches
I² (%)92.1292.12✓ matches

Prediction interval

Where a new trial's true risk ratio would likely fall, from the DerSimonian–Laird result: the estimate ± 1.96 × √(τ² + SE²).

Reference: statsmodels: combine_effects(…, method_re="chi2"), its estimate, standard error and τ²

NumberReferenceSysteamatic
95% prediction interval, lower0.1559600.155960✓ matches
95% prediction interval, upper1.5371331.537133✓ matches

Hartung–Knapp adjustment

The DerSimonian–Laird result, adjusted for the uncertainty in τ², with the t distribution on 12 degrees of freedom.

Reference: statsmodels: combine_effects(y, v, method_re="chi2", use_t=True), the "random effect wls" row

NumberReferenceSysteamatic
Standard error0.1806970.180697✓ matches
95% CI, lower (log)−1.107821−1.107821✓ matches
95% CI, upper (log)−0.320413−0.320413✓ matches

Egger's test

The regression test for funnel plot asymmetry (Egger et al., 1997).

Reference: statsmodels: OLS of y/se on 1/se; metafor: regtest(…, model="lm")

NumberReferenceSysteamatic
Intercept−2.112042−2.112042✓ matches
t−1.401282−1.401282✓ matches
p-value0.1887070.188707✓ matches

Subgroup analysis

The trials grouped by how they allocated people, each group pooled with DerSimonian–Laird, then compared.

Reference: statsmodels: combine_effects(…, method_re="chi2") for each group, then Q between the groups

NumberReferenceSysteamatic
Random allocation: log risk ratio−1.113756−1.113756✓ matches
Alternate allocation: log risk ratio−0.540793−0.540793✓ matches
Systematic allocation: standard error0.2291850.229185✓ matches
Test for subgroup differences: Q1.7954221.795422✓ matches
Its p-value0.4075010.407501✓ matches

Cohen's kappa

Two raters, 50 items: 20 and 15 agreed, 15 didn't.

Reference: statsmodels: cohens_kappa([[20, 5], [10, 15]])

NumberReferenceSysteamatic
Kappa0.4000000.400000✓ matches
Standard error0.1269960.126996✓ matches
95% CI, lower0.1510920.151092✓ matches
95% CI, upper0.6489080.648908✓ matches

Weighted kappa

Three ordered categories (include, maybe, exclude), 100 items.

Reference: statsmodels: cohens_kappa(table, wt=None / "linear" / "quadratic")

NumberReferenceSysteamatic
Unweighted kappa0.6224630.622463✓ matches
Linear weights0.6511120.651112✓ matches
Quadratic weights0.6757190.675719✓ matches
Quadratic: standard error0.073920.07392✓ matches