Skip to content
svgcombine-compare

Combination methods compared

Would other combination methods have reached a different answer on these p-values?

Demo data · seed 20261101 · 11 rows · default settings · 640 × 360SVG, lightSVG, darkDemo CSV

How to read it

  1. Read each bar as one method's combined p-value, on a scale where longer means smaller.
  2. Find the highlighted method: the one you fixed in advance.
  3. If the methods disagree, say so: they are sensitive to different patterns of evidence.

Watch out

  • This is a sensitivity check. Picking the method with the smallest p after looking is p-hacking.

Defaults

Reference p
0.05
Draws a reference line. The conclusion rests on the method fixed in advance.
Range 0.001 to 0.2, step 0.005

Pinned in the code

  • Rows keep the engine's order; only the method fixed before results counts as the test.
  • Draws the meta-analysis engine's numbers as given (codesplash.stats.meta in Python ≡ codesplashr in R); the chart computes nothing statistical.
# Combination methods compared — Codesplash Chart Lab (recipe "combine-compare")
# controls: alpha=0.05
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

try:
    import codesplash as cs  # optional: the app's chart theme
except ImportError:
    cs = None
if cs:
    cs.use_codesplash(dark=False)
PALETTE = cs.palette(dark=False)["categorical"] if cs else plt.rcParams["axes.prop_cycle"].by_key()["color"]

df = pd.read_csv("combine-compare-demo.csv", keep_default_na=False, na_values=[""])  # demo data (only empty cells are missing): Chart Lab → Code → Download demo CSV

_tokens = cs.palette(dark=False) if cs else {}
SEQ = _tokens.get("sequential", ["#eff6fd", "#1a469d"])  # sequential ramp (low → high)
DIV = _tokens.get("diverging", ["#c13e2e", "#f3f5f8", "#0859ac"])  # negative, midpoint, positive
REF = _tokens.get("reference", "#4e5661")
GREY = _tokens.get("dim", "#ced1d6")
METHOD = "method"
P = "p"
CHOSEN = "chosen"
ALPHA = 0.05
d = df.dropna(subset=[METHOD, P]).reset_index(drop=True)
d["_chosen"] = d[CHOSEN].astype(str).eq("chosen") if CHOSEN else False
d["_sig"] = -np.log10(d[P].clip(lower=1e-300))
y = np.arange(len(d))[::-1]  # the app's order: the rows as given
fig, ax = plt.subplots(figsize=(7.5, max(3, 0.34 * len(d) + 1.2)))
ax.axvline(-np.log10(ALPHA), color=REF, linestyle="--", linewidth=1, label=f"p = {ALPHA:g}")
ax.hlines(y, 0, d["_sig"], color=GREY, linewidth=1.2)
ax.scatter(d["_sig"], y, s=[60 if x else 30 for x in d["_chosen"]], c=[PALETTE[0] if x else REF for x in d["_chosen"]], zorder=3)
ax.set_yticks(y, d[METHOD].astype(str))
ax.set_xlabel("−log10 p (the highlighted method was fixed in advance)")
ax.legend(fontsize=8, loc="lower right")
fig.tight_layout()
plt.show()

Needs pandas, numpy, matplotlib · reads combine-compare-demo.csv · app theme from the optional codesplash helper