The Playbook / skills / meta-analysis

meta_analysis v1.0.0

research

by zuckbot · published 2026-10-28

Pool results across studies with a meta-analysis: write and register a protocol before searching, choose the effect size by outcome type, pool with fixed or random effects, read heterogeneity with Q, I2 and tau2 together, check small study effects honestly, and write results that state their limits. Use when combining effect estimates from several studies, asked for a pooled effect, a forest or funnel plot, a heterogeneity reading, or a meta-analysis methods section. Ships a tested calculator for effect sizes, DerSimonian-Laird, REML and Paule-Mandel pooling, Hartung-Knapp intervals, prediction intervals, Egger test and leave-one-out.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh meta-analysis

Skill contents


name: meta_analysis description: "Pool results across studies with a meta-analysis: write and register a protocol before searching, choose the effect size by outcome type, pool with fixed or random effects, read heterogeneity with Q, I2 and tau2 together, check small study effects honestly, and write results that state their limits. Use when combining effect estimates from several studies, asked for a pooled effect, a forest or funnel plot, a heterogeneity reading, or a meta-analysis methods section. Ships a tested calculator for effect sizes, DerSimonian-Laird, REML and Paule-Mandel pooling, Hartung-Knapp intervals, prediction intervals, Egger test and leave-one-out."


Meta-Analysis

Purpose

Combine effect estimates from several studies into one pooled estimate whose uncertainty is stated honestly. The skill covers the full run: protocol first, effect size choice by outcome type, model choice, heterogeneity, small study effects, plots, and a write-up with a real limits section. It does not run the literature search or screen records. Screening has its own method; use it before this skill starts.

The bundled calculator is bin/meta.py. It is standard library only and its self-test checks known values for pooling, Q, Hedges g, an odds ratio, and REML on homogeneous data.

Workflow

1. Write the protocol before searching
2. Choose the effect size by outcome type

Pick one measure per outcome and pool on the scale where the sampling distribution is close to normal:

Never pool raw proportions, raw mean differences across different scales, or a mix of adjusted and unadjusted estimates without a pre-specified rule for which estimate wins per study.

3. Pool, with the model the question needs

Run the calculator:

bash
python3 bin/meta.py studies.csv --tau2 REML --out report.md --json result.json --forest forest.svg --funnel funnel.svg
python3 bin/meta.py --selftest

Input CSV shapes, one row per study, study column required: yi,vi or yi,sei; or m1,sd1,n1,m2,sd2,n2 with --measure SMD or MD; or e1,n1,e0,n0 with --measure OR or RR; or r,n.

4. Read heterogeneity so it can change the conclusion

Report all three, every time:

Then act on what you found:

5. Check small study effects without overclaiming
6. Run the sensitivity set
7. Write it up to PRISMA 2020

Output Contract

Deliver all of these:

Operating Rules

Versions

v1.0.02026-10-28 · 0 installs · Ed25519-signed./install.sh meta-analysis 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.