Skip to content

BMeta-analysis · meta.selection

Selection models and p-curve (publication bias)

If studies were more likely to be published when their results were significant, what would the average effect be, and do the significant results look real?

Vevea and Hedges' step-function selection model: the random-effects (or common-effect) model fitted by maximum likelihood together with selection weights for intervals of one-sided p-values, so the pooled effect is corrected for studies that went unpublished. One cutpoint at .025 is the three-parameter selection model (3PSM); Vevea and Woods' fixed weight functions give a sensitivity analysis when there are too few studies to estimate the weights. Likelihood-ratio tests ask whether selection and heterogeneity are needed. The p-curve of the significant results (right-skew and 33%-power tests, full and half curve) asks whether they carry evidential value.

Experimental Python and R agree to 6 decimals Also called selection model, 3PSM, three-parameter selection model…

A real result

Example “Hackshaw 3psm”, recorded in both engines. In the app, “Try this example” loads it into Analyze.

Selection model for 37 studies (random effects, 3PSM)Recorded · Python and R agreeRecorded 2026-11-17 · 39 values compared
R

adjusted ratio = 1.21, 95% CI [1.04, 1.42], p = .015; LRT χ²(1) = 0.12, p = .732

Adjusted ratio
1.215
p
.015
Unadjusted ratio
1.242
p (selection)
.732

Effect size

  • Adjusted ratio 1.215 95% CI [1.039, 1.420]

Plots

Estimated selection weightsHow much more likely were studies to be published when their one-sided p-value fell in each interval?
View data
CI highCI lowstudiesp top fromweight
——70.025001
1.93803010.02500.7644
Funnel plot with the selection-adjusted estimateAre small studies' effects distributed symmetrically around the pooled effect?
View data
log ratiostudystandard error
0.1655Garfinkel 19810.1370
0.3716Hirayama 19840.1818
0.7031Butler 19880.7350
0.1823Cardenas 19970.1768
−0.2877Chan 19820.2822
0.7275Correa 19830.4768
0.7561Trichopolous 19830.2982
−0.2231Buffler 19840.4390
−0.2357Kabat 19840.5823
0.6981Lam 19850.3132
0.2070Garfinkel 19850.2134
0.1823Wu 19850.4814
0.4187Akiba 19860.2822
0.0296Lee 19860.4663
0.4383Koo 19870.2774
0.0296Pershagen 19870.2674
0.8502Humble 19870.5409
0.5008Lam 19870.1801
0.1740Gao 19870.1905
0.4187Brownson 19870.6956
0.7701Geng 19880.3519
0.0770Shimizu 19880.2666
0.9361Inoue 19880.6310
0.4824Kalandidi 19900.2994
0.0583Sobue 19900.1836
−0.2357Wu-Williams 19900.1270
−0.3011Liu 19910.4245
0.8198Jockel 19910.5632
−0.0305Brownson 19920.1120
0.4700Stockwell 19920.3372
0.1740Du 19930.2989
0.5068Liu 19930.4195
0.2311Fontham 19940.1001
0.0953Kabat 19950.2936
0.5068Zaridze 19950.1997
0.1484Sun 19960.1908
0.1044Wang 19960.2577
p-curve of the significant resultsDo the significant results look like they come from real effects (right-skewed) or from selective reporting of null effects (flat or left-skewed)?
View data
p-valueno effect %observed %33% power %
0.01002014.28644.253
0.02002028.57119.514
0.03002042.85714.443
0.040020011.760
0.05002014.28610.030

Assumptions

  • Enough studies — 37 studies.
  • Selection acts on p-values — The model assumes publication depended only on each study's one-sided p-value; other causes of funnel asymmetry are not modeled.
  • Likelihood maximized — Newton iterations converged.

Pooled ratio with and without selection (95% CI)

ModelEstimateCI lowCI highpτ²
Without selection (ML)1.242———0.0204
With selection (weights estimated)1.2151.0391.4200.01480.0166

Selection weights by one-sided p-value (estimated; first interval fixed at 1)

IntervalStudiesWeightSECI lowCI high
0 < p ≤ 0.02571———
0.025 < p ≤ 1300.76440.598901.938

Likelihood-ratio tests

Testχ²p
Selection (all weights = 1), χ²(1)0.11710.7323
Heterogeneity (τ² = 0), χ²(1)2.0330.1539

p-curve of 7 significant result(s) (two-sided p < .05, favored direction)

TestStouffer Zp
Right skew, full curve (evidential value)−0.68820.2457
Right skew, half curve (p < .025)−0.02490.4900
Flatter than 33% power, full curve−0.91670.1796
Flatter than 33% power, half curve−1.0230.1530
Binomial: more p < .025 than half—0.5000
Binomial: fewer p < .025 than at 33% power—0.3210
  • Selection models correct for one assumed publication mechanism; read the adjusted estimate as a sensitivity analysis, not the truth.
  • The p-curve is inconclusive. p-curve reads only the significant results and says nothing about their size.
Python

adjusted ratio = 1.21, 95% CI [1.04, 1.42], p = .015; LRT χ²(1) = 0.12, p = .732

Adjusted ratio
1.215
p
.015
Unadjusted ratio
1.242
p (selection)
.732

Effect size

  • Adjusted ratio 1.215 95% CI [1.039, 1.420]

To keep this page light, the plots are shown once, under the R tab.

Assumptions

  • Enough studies — 37 studies.
  • Selection acts on p-values — The model assumes publication depended only on each study's one-sided p-value; other causes of funnel asymmetry are not modeled.
  • Likelihood maximized — Newton iterations converged.

Pooled ratio with and without selection (95% CI)

ModelEstimateCI lowCI highpτ²
Without selection (ML)1.242———0.0204
With selection (weights estimated)1.2151.0391.4200.01480.0166

Selection weights by one-sided p-value (estimated; first interval fixed at 1)

IntervalStudiesWeightSECI lowCI high
0 < p ≤ 0.02571———
0.025 < p ≤ 1300.76440.598901.938

Likelihood-ratio tests

Testχ²p
Selection (all weights = 1), χ²(1)0.11710.7323
Heterogeneity (τ² = 0), χ²(1)2.0330.1539

p-curve of 7 significant result(s) (two-sided p < .05, favored direction)

TestStouffer Zp
Right skew, full curve (evidential value)−0.68820.2457
Right skew, half curve (p < .025)−0.02490.4900
Flatter than 33% power, full curve−0.91670.1796
Flatter than 33% power, half curve−1.0230.1530
Binomial: more p < .025 than half—0.5000
Binomial: fewer p < .025 than at 33% power—0.3210
  • Selection models correct for one assumed publication mechanism; read the adjusted estimate as a sensitivity analysis, not the truth.
  • The p-curve is inconclusive. p-curve reads only the significant results and says nothing about their size.

Do it in CodeSplash Run it on your own data. It's in the Experimental lane in the app.

Worked examples in the app

  • Hackshaw 3psmm1_hackshaw · ci_high: or_high · ci_low: or_low · effect: or · study: study
  • Hackshaw four stepsm1_hackshaw · ci_high: or_high · ci_low: or_low · effect: or · study: study
  • Hackshaw vw moderatem1_hackshaw · ci_high: or_high · ci_low: or_low · effect: or · study: study
  • Bcg rr severe lessm1_bcg · events_1: events_1 · events_2: events_2 · study: trial · total_1: total_1 · total_2: total_2
  • Molloy fixedm1_molloy · n: n · r: r · study: study
  • Guide vw severem1_guide · effect: effect · se: se · study: study
  • Degenerate constantm1_hackshaw · ci_high: or_high · ci_low: or_low · effect: or · study: study
  • Degenerate n3m1_hackshaw · ci_high: or_high · ci_low: or_low · effect: or · study: study

What you need

Study labels (optional)categorical · 0–1 column
Names the studies in tables and the forest plot.
Estimate (or ratio)numeric · 0–1 column
Generic: each study's estimate on an additive scale (log OR, SMD …). With CI limits: the ratio itself (OR, RR, HR).
Standard errornumeric · 0–1 column
Generic design: the estimate's standard error.
Lower CI limit (ratio)numeric · 0–1 column
Ratio with CI design: the reported lower limit; the SE comes from the CI width on the log scale.
Upper CI limit (ratio)numeric · 0–1 column
Ratio with CI design: the reported upper limit.
Events, group 1numeric · 0–1 column
Two-arm counts: events in the first (treatment) arm.
Total, group 1numeric · 0–1 column
Participants in the first arm (counts and means designs).
Events, group 2numeric · 0–1 column
Two-arm counts: events in the second (control) arm.
Total, group 2numeric · 0–1 column
Participants in the second arm (counts and means designs).
Mean, group 1numeric · 0–1 column
Means design: mean of the first arm.
SD, group 1numeric · 0–1 column
Means design: standard deviation of the first arm (not the SE).
Mean, group 2numeric · 0–1 column
Means design: mean of the second arm.
SD, group 2numeric · 0–1 column
Means design: standard deviation of the second arm.
Correlationnumeric · 0–1 column
Correlation design: each study's Pearson r.
Sample size (correlation)numeric · 0–1 column
Correlation design: the number of pairs behind each r.

Choices you make

hypothesis

Study datadefault auto

What each row reports. Auto picks it from the columns you bound.

  • Detect from the columns(default) — Counts → two-arm counts; means → means; r → correlations; CI limits → ratio with CI; else estimate + SE.
  • Two-arm counts — Each study gives events and totals in two arms; pick it for yes/no outcomes.
  • Means and SDs — Each study gives means, SDs and sizes in two arms; pick it for numeric outcomes.
  • Correlations — Each study gives a correlation and its sample size; pick it for associations.
  • Ratio with CI — Each study gives a ratio with its CI, worked back to a log-scale SE; pick it for published OR, RR or HR.
  • Estimate and SE — Each study gives an estimate and its SE; pick it when effects are already computed.
Effect measuredefault auto

The scale studies are pooled on (ratios on the log scale and reported back as ratios).

  • Default for the data(default) — Odds ratio for counts, Hedges' g for means, Fisher's z for correlations.
  • Odds ratio — Odds ratio from two-arm counts; steady across baseline risks, and the usual choice for rare events.
  • Risk ratio — Risk ratio from two-arm counts; easier to explain than odds, on a ratio scale.
  • Risk difference — Risk difference from two-arm counts; gives the absolute effect, which often varies more across studies.
  • Standardized mean difference (Hedges' g) — Mean difference in SD units (Hedges' g); pick it when studies use different scales.
  • Mean difference — Raw units; only when every study measured the outcome on the same scale.
  • Fisher's z (reported as r) — Transforms correlations by Fisher's z before pooling and reports r; the usual choice for correlations.
  • Raw correlation — Pools correlations on their raw scale; easy to read, but each one's variance depends on r.
Selection weightsdefault estimate

Estimate the weights from the studies, or fix them at a priori values from Vevea and Woods (2005) as a sensitivity analysis.

  • Estimate from the studies(default) — Fits one weight per p-value interval; needs studies in every interval and works best with 20 or more.
  • Fixed: moderate, one-tailed — Vevea and Woods' moderate selection for significant results in the expected direction.
  • Fixed: severe, one-tailed — Vevea and Woods' severe selection for significant results in the expected direction.
  • Fixed: moderate, two-tailed — Moderate selection for significant results in either direction.
  • Fixed: severe, two-tailed — Severe selection for significant results in either direction.
Cutpoints (one-sided p)default 0.025

0.025 alone is the 3PSM. Add .05 or .5 only when every interval keeps several studies.

Direction favored by selectiondefault greater

The sign of effect that publication favored; one-sided p-values are computed in that direction.

  • Positive effects(default) — Studies with significant positive effects were more likely to be published.
  • Negative effects — Studies with significant negative effects (e.g. a protective log ratio) were favored.
Modeldefault random

Random effects lets true effects vary; common effect assumes one true effect.

  • Random effects(default) — Estimates τ² along with the selection weights; the usual choice.
  • Common effect (fixed) — One true effect for all studies; the selection weights then carry all asymmetry.
Confidence leveldefault 0.95

How sure the intervals should be: 0.95 gives 95% confidence intervals. Higher confidence means wider intervals.

statistics

Add a p-curvedefault on

p-curve of the significant results in the favored direction (two-sided p < .05 from each study's z).

options

Zero cellsdefault only0

Continuity correction for log OR / RR when a study has a zero cell.

  • Add ½ to studies with a zero cell(default) — Adds ½ to the cells of studies with a zero; the usual choice.
  • Add ½ to every study — Adds ½ to every study's cells; matches some older software, and pulls small studies towards no effect.
  • No correction (drop undefined) — Adds nothing, so studies with an undefined effect drop out; pick it as a sensitivity check.
Leave out double-zero studiesdefault on

Studies with no events (or only events) in both arms carry no information about OR or RR.

Reported CI level (ratio design)default 0.95

The level of the confidence intervals the studies reported (usually 95%).

Checks and remedies

CodeSplash checks each testable assumption on every run and shows the result on the card; premises the data can’t test are marked. If a check fails, these are the ways forward.

  • Comparable studiesNot checked from data: state why it holds

    Studies estimate the same kind of effect in comparable populations.

  • Independent estimatesNot checked from data: state why it holds

    One estimate per study; several outcomes or arms from one study need a multilevel model.

  • Enough studies

    Estimated weights need roughly 20+ studies with some in every interval; otherwise use fixed weights.

  • Likelihood maximized

    The selection model is fitted by maximum likelihood; without convergence, treat the estimates with caution.

  • Selection acts on p-values

    The model assumes publication depended on the one-sided p-value only; other causes of asymmetry are not modeled.

What it reports

  • Tests: Adjusted pooled effect differs from zero
  • Tests: Selection weights differ from 1 (likelihood ratio)
k
How many groups, studies or clusters the analysis used. Many methods are less reliable when k is small.
est
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
se
The typical size of the error in an estimate, the standard deviation of its sampling distribution.
z
An estimate in standard-error units, compared with the standard normal distribution.
p
How surprising your data would be if the null hypothesis were true, as a probability.
ci_low
A range of effect values compatible with your data at the chosen confidence level.
ci_high
A range of effect values compatible with your data at the chosen confidence level.
est_bt
The average effect across studies from a meta-analysis, weighted by each study's precision.
ci_low_bt
A range of effect values compatible with your data at the chosen confidence level.
ci_high_bt
A range of effect values compatible with your data at the chosen confidence level.
est_unadj
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
est_unadj_bt
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
tau2
How much the studies' true effects vary around their mean; τ is the same on the effect's own scale.
se_tau2
The typical size of the error in an estimate, the standard deviation of its sampling distribution.
tau2_unadj
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
ll
Each site's outcome depends on its neighbors' outcomes through ρ, so a change at one site spills over to others.
ll_unadj
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
lrt
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
lrt_df
How much independent information is left to estimate variability after fitting the model.
lrt_p
The selection model with one cutpoint at a one-sided p of .025, so its three parameters are μ, τ² and one selection weight.
lrt_tau2
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
lrt_tau2_p
How surprising your data would be if the null hypothesis were true, as a probability.
steps
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
counts
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
delta
A meta-analysis model that adds the chance of a study being published, as a function of its p-value, to the usual random-effects model.
delta_se
The typical size of the error in an estimate, the standard deviation of its sampling distribution.
n_sig
How many independent units the analysis used; it sets precision and power.
pc_right_full_p
The distribution of the significant p-values in a set of studies, used to judge whether they come from real effects.
pc_right_half_p
How surprising your data would be if the null hypothesis were true, as a probability.
pc_flat_full_p
The distribution of the significant p-values in a set of studies, used to judge whether they come from real effects.
pc_flat_half_p
How surprising your data would be if the null hypothesis were true, as a probability.
pc_binom_right_p
How surprising your data would be if the null hypothesis were true, as a probability.
pc_binom_flat_p
How surprising your data would be if the null hypothesis were true, as a probability.
pc_verdict
What a set of significant results has when they are more right-skewed than they would be if every true effect were zero.
measure
The exact variant that ran (for example Welch vs classic F), shown so the result can be reported and reproduced.
measure_label
The exact variant that ran (for example Welch vs classic F), shown so the result can be reported and reproduced.
effect_label
Which group counts as first (or treated, or positive) decides the sign of differences and ratios on the card.
weights_label
Kappa for ordered categories, giving partial credit for near misses by linear or quadratic weights.
model_label
The exact variant that ran (for example Welch vs classic F), shown so the result can be reported and reproduced.

Python and R

Python and R agree to 6 decimals (relative tolerance 1e-8). Python uses pandas, numpy, scipy, codesplash; R uses stats, nanoparquet, codesplashr.

Default traps between the two languages

  • Both engines run the same damped Newton iterations (analytic gradient, central-difference Hessian) to a step below 1e-12, so they reach the same optimum. metafor::selmodel stops optim earlier: its μ, τ² and δ differ in the 6th–7th digit and its log-likelihood is never higher (tests/crosscheck/w3lb1_meta_lab.R).
  • p-curve follows the p-curve app's handling of z tests: each study's z enters as χ²(1) = z², so the 33%-power curve is that of a two-sided z test with power 1/3. pp-values are kept inside (1e-15, 1 − 1e-15) before Stouffer's method.
Python

The exact script CodeSplash ran for example “Hackshaw 3psm” · Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0

# Selection models and p-curve (publication bias)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method meta.selection 1.0.2 · spec 0f4bd5606c457350
# Dataset: m1_hackshaw (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.

# %% Setup
import math

import numpy as np
import pandas as pd

import codesplash as cs
from codesplash.stats import meta  # effect sizes (twins of codesplashr::cs_meta_*)
from codesplash.stats import meta_lab  # selection models and p-curve (twins of codesplashr::cs_meta_selmodel / cs_meta_pcurve)

# %% Data
df = pd.read_parquet("tests/parity/fixtures/m1_hackshaw.parquet", columns=["study", "or", "or_low", "or_high"])
n_input = len(df)
df["study"] = pd.Categorical(df["study"], categories=["Garfinkel 1981", "Hirayama 1984", "Butler 1988", "Cardenas 1997", "Chan 1982", "Correa 1983", "Trichopolous 1983", "Buffler 1984", "Kabat 1984", "Lam 1985", "Garfinkel 1985", "Wu 1985", "Akiba 1986", "Lee 1986", "Koo 1987", "Pershagen 1987", "Humble 1987", "Lam 1987", "Gao 1987", "Brownson 1987", "Geng 1988", "Shimizu 1988", "Inoue 1988", "Kalandidi 1990", "Sobue 1990", "Wu-Williams 1990", "Liu 1991", "Jockel 1991", "Brownson 1992", "Stockwell 1992", "Du 1993", "Liu 1993", "Fontham 1994", "Kabat 1995", "Zaridze 1995", "Sun 1996", "Wang 1996"])  # stored level order
df = df.dropna(subset=["study", "or", "or_low", "or_high"])  # listwise deletion over the analysis columns
df["study"] = df["study"].cat.remove_unused_categories()
n_dropped = n_input - len(df)
warnings = []
if n_dropped:
    warnings.append(cs.cs_warning("CS_W_ROWS_DROPPED", dropped=n_dropped, total=n_input))
if n_input and not len(df):
    cs.cs_error("CS_E_NO_ROWS")
cs.check_finite_columns(df, ["study", "or", "or_low", "or_high"])  # infinite values stop the run (registry/errors.yaml)
# %% Studies
design = "ratio_ci"  # inferred from the bound columns
measure = "GEN"
cols = {
    "effect": df["or"].to_numpy(dtype=float),
    "ci_low": df["or_low"].to_numpy(dtype=float),
    "ci_high": df["or_high"].to_numpy(dtype=float),
}
es = meta.escalc(design, measure, cols, zero_cells="only0", drop00=True, ci_level=0.95)
measure = es["measure"]
labels_all = df["study"].astype(str).tolist()
keep = es["keep"]
left_out = [labels_all[i] for i in np.flatnonzero(~keep)]
idx = np.flatnonzero(keep)
y, v = es["yi"][idx], es["vi"][idx]
labels = [labels_all[i] for i in idx]
k = len(y)
if k < 2:
    cs.cs_error("CS_E_TOO_FEW_ROWS", what="A meta-analysis", min=2, n=k)  # one usable study can't be pooled
if left_out:
    warnings.append(f"Left out ({len(left_out)}): " + ", ".join(left_out) + (" — no events (or only events) in both arms." if design == "binary" else " — effect or variance not computable."))
bt = meta.back_transform(measure)
MEASURE_LABEL = {"GEN": "effect", "LOG": "log ratio", "OR": "log odds ratio", "RR": "log risk ratio", "RD": "risk difference",
                 "MD": "mean difference", "SMD": "Hedges' g", "ZCOR": "Fisher's z", "COR": "correlation"}[measure]
RATIO = measure in ("OR", "RR", "LOG")
# What a back-transformed number is: a ratio, not a log ratio; a correlation, not Fisher's z.
DISPLAY_LABEL = {"OR": "odds ratio", "RR": "risk ratio", "LOG": "ratio", "ZCOR": "correlation"}.get(measure, MEASURE_LABEL)

# %% Selection model (maximum likelihood)
conf = 0.95
weights = "estimate"
steps = [float(t) for t in [0.025]]
alternative = "greater"
model = "random"
sel = meta_lab.selection_model(y, v, steps=steps, alternative=alternative, model=model, weights=weights, level=conf)
WEIGHTS_LABEL = {"estimate": "weights estimated", "moderate_one": "Vevea–Woods moderate one-tailed weights",
                 "severe_one": "Vevea–Woods severe one-tailed weights", "moderate_two": "Vevea–Woods moderate two-tailed weights",
                 "severe_two": "Vevea–Woods severe two-tailed weights"}[weights]
MODEL_LABEL = ("random effects" if model == "random" else "common effect") + (", 3PSM" if weights == "estimate" and len(sel["steps"]) == 2 and model == "random" else "")
est_delta = weights == "estimate"

# %% p-curve of the significant results
pc = meta_lab.pcurve(y / np.sqrt(v), side=alternative)

# %% Assumptions
assumptions = [
    {"key": "k_studies", "label": "Enough studies", "status": "warn" if (k < 20 and est_delta) else "pass",
     "detail": f"{k} studies" + ("; estimated selection weights are unstable below about 20 studies — compare with fixed Vevea–Woods weights." if k < 20 and est_delta else ".")},
    {"key": "selection_on_p", "label": "Selection acts on p-values", "status": "info",
     "detail": "The model assumes publication depended only on each study's one-sided p-value; other causes of funnel asymmetry are not modeled."},
    {"key": "converged", "label": "Likelihood maximized", "status": "pass" if sel["converged"] else "warn",
     "detail": "Newton iterations converged." if sel["converged"] else "The optimizer stopped before convergence; treat the estimates with caution."},
]

# %% Result
lows, highs = sel["lows"], sel["steps"]
nan = lambda x: None if x is None or (isinstance(x, float) and math.isnan(x)) else x  # noqa: E731
rows_w = [{"interval": f"{lows[j]:g} < p ≤ {highs[j]:g}", "k": int(sel["counts"][j]), "weight": float(sel["delta"][j]),
           "se": nan(float(sel["se_delta"][j])), "low": nan(float(sel["delta_ci_low"][j])), "high": nan(float(sel["delta_ci_high"][j]))}
          for j in range(len(highs))]
rows_m = [
    {"model": "Without selection (ML)", "estimate": float(bt(sel["mu_unadj"])), "low": None, "high": None, "p": None, "tau2": sel["tau2_unadj"]},
    {"model": f"With selection ({WEIGHTS_LABEL})", "estimate": float(bt(sel["mu"])), "low": float(bt(sel["ci_low"])), "high": float(bt(sel["ci_high"])),
     "p": sel["p"], "tau2": sel["tau2"]},
]
rows_t = []
if est_delta:
    rows_t.append({"test": f"Selection (all weights = 1), χ²({sel['lrt_df']})", "statistic": sel["lrt"], "p": sel["lrt_p"]})
if model == "random":
    rows_t.append({"test": "Heterogeneity (τ² = 0), χ²(1)", "statistic": sel["lrt_tau2"], "p": sel["lrt_tau2_p"]})
tables = [
    {"key": "estimates", "title": f"Pooled {DISPLAY_LABEL} with and without selection ({conf:.0%} CI)",
     "columns": [{"key": "model", "label": "Model", "type": "string"}, {"key": "estimate", "label": "Estimate", "type": "number"},
                 {"key": "low", "label": "CI low", "type": "number"}, {"key": "high", "label": "CI high", "type": "number"},
                 {"key": "p", "label": "p", "type": "number"}, {"key": "tau2", "label": "τ²", "type": "number"}],
     "rows": rows_m},
    {"key": "weights", "title": "Selection weights by one-sided p-value (" + ("estimated; first interval fixed at 1" if est_delta else "fixed a priori") + ")",
     "columns": [{"key": "interval", "label": "Interval", "type": "string"}, {"key": "k", "label": "Studies", "type": "integer"},
                 {"key": "weight", "label": "Weight", "type": "number"}, {"key": "se", "label": "SE", "type": "number"},
                 {"key": "low", "label": "CI low", "type": "number"}, {"key": "high", "label": "CI high", "type": "number"}],
     "rows": rows_w},
]
if rows_t:
    tables.append({"key": "lrt", "title": "Likelihood-ratio tests",
                   "columns": [{"key": "test", "label": "Test", "type": "string"}, {"key": "statistic", "label": "χ²", "type": "number"},
                               {"key": "p", "label": "p", "type": "number"}], "rows": rows_t})
charts = []
if est_delta:
    charts.append(cs.chart("weights", "selection-weights", "Estimated selection weights",
                           {"p_low": cs.col("p from", [float(t) for t in lows]), "p_high": cs.col("p to", [float(t) for t in highs]),
                            "weight": cs.col("weight", [float(t) for t in sel["delta"]]), "ci_low": cs.col("CI low", [float(t) for t in sel["delta_ci_low"]]),
                            "ci_high": cs.col("CI high", [float(t) for t in sel["delta_ci_high"]]), "n": cs.col("studies", [float(t) for t in sel["counts"]])},
                           controls={"logP": True, "reference": 1}))
charts.append(cs.chart("funnel", "meta-funnel", "Funnel plot with the selection-adjusted estimate",
                       {"estimate": cs.col(MEASURE_LABEL, [float(t) for t in y]), "se": cs.col("standard error", [float(t) for t in np.sqrt(v)]), "label": cs.col("study", labels)},
                       controls={"center": sel["mu_unadj"], "adjusted": sel["mu"], "contours": True}))
pc_values = {"n_sig": 0, "pc_right_full_p": None, "pc_right_half_p": None, "pc_flat_full_p": None, "pc_flat_half_p": None,
             "pc_binom_right_p": None, "pc_binom_flat_p": None, "pc_verdict": "not run"}
notes = ["Selection models correct for one assumed publication mechanism; read the adjusted estimate as a sensitivity analysis, not the truth."]
if pc is not None:
    pc_values = {"n_sig": pc["n_sig"], "pc_right_full_p": pc["right_full_p"], "pc_right_half_p": pc["right_half_p"], "pc_flat_full_p": pc["flat_full_p"],
                 "pc_flat_half_p": pc["flat_half_p"], "pc_binom_right_p": pc["binom_right_p"], "pc_binom_flat_p": pc["binom_flat_p"], "pc_verdict": pc["verdict"]}
    if pc["n_sig"] > 0:
        tables.append({"key": "pcurve", "title": f"p-curve of {pc['n_sig']} significant result(s) (two-sided p < .05, favored direction)",
                       "columns": [{"key": "test", "label": "Test", "type": "string"}, {"key": "z", "label": "Stouffer Z", "type": "number"},
                                   {"key": "p", "label": "p", "type": "number"}],
                       "rows": [{"test": "Right skew, full curve (evidential value)", "z": pc["right_full_z"], "p": pc["right_full_p"]},
                                {"test": "Right skew, half curve (p < .025)", "z": nan(pc["right_half_z"]), "p": nan(pc["right_half_p"])},
                                {"test": "Flatter than 33% power, full curve", "z": pc["flat_full_z"], "p": pc["flat_full_p"]},
                                {"test": "Flatter than 33% power, half curve", "z": nan(pc["flat_half_z"]), "p": nan(pc["flat_half_p"])},
                                {"test": "Binomial: more p < .025 than half", "z": None, "p": pc["binom_right_p"]},
                                {"test": "Binomial: fewer p < .025 than at 33% power", "z": None, "p": pc["binom_flat_p"]}]})
        charts.append(cs.chart("pcurve", "pcurve", "p-curve of the significant results",
                               {"bin": cs.col("p-value", [float(t) for t in pc["bins"]]), "observed": cs.col("observed %", [float(t) for t in pc["observed"]]),
                                "null": cs.col("no effect %", [float(t) for t in pc["expected_null"]]), "power33": cs.col("33% power %", [float(t) for t in pc["expected_33"]])},
                               controls={"k": pc["n_sig"]}))
        verdict_txt = {"evidential": "The significant results are right-skewed: they carry evidential value.",
                       "inadequate": "The significant results are flatter than 33% power would give: evidential value is inadequate.",
                       "inconclusive": "The p-curve is inconclusive."}[pc["verdict"]]
        notes.append(verdict_txt + " p-curve reads only the significant results and says nothing about their size.")
    else:
        notes.append("No study is significant in the favored direction, so there is no p-curve.")
cs.publish({
    "method": "meta.selection",
    "methodVersion": "1.0.2",
    "title": f"Selection model for {k} studies ({MODEL_LABEL})",
    "engine": cs.engine_info("numpy", "scipy"),
    "n": k,
    "summary": f"Adjusted {DISPLAY_LABEL} {bt(sel['mu']):.3g}, {conf:.0%} CI [{bt(sel['ci_low']):.3g}, {bt(sel['ci_high']):.3g}], {cs.fmt_p(sel['p'])} (unadjusted {bt(sel['mu_unadj']):.3g})"
               + (f"; selection LRT {cs.fmt_p(sel['lrt_p'])}." if est_delta else "."),
    "apa": f"adjusted {DISPLAY_LABEL} = {cs.fmt_num(float(bt(sel['mu'])))}, {conf:.0%} CI [{cs.fmt_num(float(bt(sel['ci_low'])))}, {cs.fmt_num(float(bt(sel['ci_high'])))}], {cs.fmt_p(sel['p'])}"
           + (f"; LRT χ²({sel['lrt_df']}) = {cs.fmt_num(sel['lrt'])}, {cs.fmt_p(sel['lrt_p'])}" if est_delta else ""),
    "statistics": [{"key": "est_bt", "label": f"Adjusted {DISPLAY_LABEL}", "value": float(bt(sel["mu"]))}, {"key": "p", "label": "p", "value": sel["p"], "format": "p"},
                   {"key": "est_unadj_bt", "label": f"Unadjusted {DISPLAY_LABEL}", "value": float(bt(sel["mu_unadj"]))}]
                  + ([{"key": "lrt_p", "label": "p (selection)", "value": sel["lrt_p"], "format": "p"}] if est_delta else []),
    "tables": tables,
    "effectSizes": [{"key": "est_bt", "label": f"Adjusted {DISPLAY_LABEL}", "value": float(bt(sel["mu"])), "ciLow": float(bt(sel["ci_low"])), "ciHigh": float(bt(sel["ci_high"])),
                     "ciLevel": conf, "method": f"step-function selection model ({WEIGHTS_LABEL})"}],
    "assumptions": assumptions,
    "warnings": warnings,
    "notes": notes,
    "charts": charts,
    "values": {
        "k": k, "est": sel["mu"], "se": sel["se"], "z": sel["z"], "p": sel["p"], "ci_low": sel["ci_low"], "ci_high": sel["ci_high"],
        "est_bt": float(bt(sel["mu"])), "ci_low_bt": float(bt(sel["ci_low"])), "ci_high_bt": float(bt(sel["ci_high"])),
        "est_unadj": sel["mu_unadj"], "est_unadj_bt": float(bt(sel["mu_unadj"])), "tau2": sel["tau2"], "se_tau2": sel["se_tau2"], "tau2_unadj": sel["tau2_unadj"],
        "ll": sel["ll"], "ll_unadj": sel["ll_unadj"], "lrt": sel["lrt"], "lrt_df": float(sel["lrt_df"]), "lrt_p": sel["lrt_p"],
        "lrt_tau2": sel["lrt_tau2"], "lrt_tau2_p": sel["lrt_tau2_p"],
        "steps": [float(t) for t in sel["steps"]], "counts": [float(t) for t in sel["counts"]], "delta": [float(t) for t in sel["delta"]],
        "delta_se": [float(t) for t in sel["se_delta"]],
        **pc_values,
        "measure": measure, "measure_label": MEASURE_LABEL, "effect_label": DISPLAY_LABEL, "weights_label": WEIGHTS_LABEL, "model_label": MODEL_LABEL,
    },
})
R

The exact script CodeSplash ran for example “Hackshaw 3psm” · R version 4.5.1 (2025-06-13)

# Selection models and p-curve (publication bias)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method meta.selection 1.0.2 · spec 0f4bd5606c457350
# Dataset: m1_hackshaw (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.

# %% Setup
library(codesplashr) # cs_meta_escalc, cs_meta_selmodel, cs_meta_pcurve (twins of codesplash.stats.meta / meta_lab)

# %% Data
df <- as.data.frame(nanoparquet::read_parquet("tests/parity/fixtures/m1_hackshaw.parquet", col_select = c("study", "or", "or_low", "or_high")))
n_input <- nrow(df)
df[["study"]] <- factor(df[["study"]], levels = c("Garfinkel 1981", "Hirayama 1984", "Butler 1988", "Cardenas 1997", "Chan 1982", "Correa 1983", "Trichopolous 1983", "Buffler 1984", "Kabat 1984", "Lam 1985", "Garfinkel 1985", "Wu 1985", "Akiba 1986", "Lee 1986", "Koo 1987", "Pershagen 1987", "Humble 1987", "Lam 1987", "Gao 1987", "Brownson 1987", "Geng 1988", "Shimizu 1988", "Inoue 1988", "Kalandidi 1990", "Sobue 1990", "Wu-Williams 1990", "Liu 1991", "Jockel 1991", "Brownson 1992", "Stockwell 1992", "Du 1993", "Liu 1993", "Fontham 1994", "Kabat 1995", "Zaridze 1995", "Sun 1996", "Wang 1996"))  # stored level order
df <- df[stats::complete.cases(df[c("study", "or", "or_low", "or_high")]), , drop = FALSE]  # listwise deletion
df[] <- lapply(df, function(x) if (is.factor(x)) droplevels(x) else x)
n_dropped <- n_input - nrow(df)
warnings <- list()
if (n_dropped > 0) {
  warnings <- c(warnings, cs_warning("CS_W_ROWS_DROPPED", dropped = n_dropped, total = n_input))
}
if (n_input > 0 && nrow(df) == 0) cs_error("CS_E_NO_ROWS")
cs_check_finite_columns(df, c("study", "or", "or_low", "or_high"))  # infinite values stop the run (registry/errors.yaml)
# %% Studies
design <- "ratio_ci"  # inferred from the bound columns
measure <- "GEN"
cols <- list(
  effect = as.numeric(df[["or"]]),
  ci_low = as.numeric(df[["or_low"]]),
  ci_high = as.numeric(df[["or_high"]]),
  NULL
)
cols <- Filter(Negate(is.null), cols)
es <- cs_meta_escalc(design, measure, cols, zero_cells = "only0", drop00 = TRUE, ci_level = 0.95)
measure <- es$measure
labels_all <- as.character(df[["study"]])
keep <- es$keep
left_out <- labels_all[!keep]
idx <- which(keep)
y <- es$yi[idx]; v <- es$vi[idx]
labels <- labels_all[idx]
k <- length(y)
if (k < 2) cs_error("CS_E_TOO_FEW_ROWS", what = "A meta-analysis", min = 2, n = k)  # one usable study can't be pooled
if (length(left_out)) {
  warnings <- c(warnings, paste0(sprintf("Left out (%d): ", length(left_out)), paste(left_out, collapse = ", "),
                                 if (design == "binary") " — no events (or only events) in both arms." else " — effect or variance not computable."))
}
bt <- cs_meta_back(measure)
MEASURE_LABEL <- c(GEN = "effect", LOG = "log ratio", OR = "log odds ratio", RR = "log risk ratio", RD = "risk difference",
                   MD = "mean difference", SMD = "Hedges' g", ZCOR = "Fisher's z", COR = "correlation")[[measure]]
RATIO <- measure %in% c("OR", "RR", "LOG")
# What a back-transformed number is: a ratio, not a log ratio; a correlation, not Fisher's z.
DISPLAY_LABEL <- if (measure %in% c("OR", "RR", "LOG", "ZCOR")) c(OR = "odds ratio", RR = "risk ratio", LOG = "ratio", ZCOR = "correlation")[[measure]] else MEASURE_LABEL

# %% Selection model (maximum likelihood)
conf <- 0.95
weights <- "estimate"
steps <- as.numeric(unlist(c(0.025)))
alternative <- "greater"
model <- "random"
sel <- cs_meta_selmodel(y, v, steps = steps, alternative = alternative, model = model, weights = weights, level = conf)
WEIGHTS_LABEL <- c(estimate = "weights estimated", moderate_one = "Vevea–Woods moderate one-tailed weights",
                   severe_one = "Vevea–Woods severe one-tailed weights", moderate_two = "Vevea–Woods moderate two-tailed weights",
                   severe_two = "Vevea–Woods severe two-tailed weights")[[weights]]
MODEL_LABEL <- paste0(if (model == "random") "random effects" else "common effect",
                      if (weights == "estimate" && length(sel$steps) == 2 && model == "random") ", 3PSM" else "")
est_delta <- weights == "estimate"

# %% p-curve of the significant results
pc <- cs_meta_pcurve(y / sqrt(v), side = alternative)

# %% Assumptions
assumptions <- list(
  list(key = "k_studies", label = "Enough studies", status = if (k < 20 && est_delta) "warn" else "pass",
       detail = paste0(sprintf("%d studies", k), if (k < 20 && est_delta) "; estimated selection weights are unstable below about 20 studies — compare with fixed Vevea–Woods weights." else ".")),
  list(key = "selection_on_p", label = "Selection acts on p-values", status = "info",
       detail = "The model assumes publication depended only on each study's one-sided p-value; other causes of funnel asymmetry are not modeled."),
  list(key = "converged", label = "Likelihood maximized", status = if (sel$converged) "pass" else "warn",
       detail = if (sel$converged) "Newton iterations converged." else "The optimizer stopped before convergence; treat the estimates with caution.")
)

# %% Result
lows <- sel$lows; highs <- sel$steps
na_or <- function(x) if (is.na(x)) NULL else x
g3 <- function(x) format(signif(x, 3))
pct <- sprintf("%.0f%%", conf * 100)
rows_w <- lapply(seq_along(highs), function(j) list(interval = sprintf("%s < p ≤ %s", sprintf("%g", lows[j]), sprintf("%g", highs[j])), k = sel$counts[j],
                                                    weight = sel$delta[j], se = na_or(sel$se_delta[j]), low = na_or(sel$delta_ci_low[j]),
                                                    high = na_or(sel$delta_ci_high[j])))
rows_m <- list(
  list(model = "Without selection (ML)", estimate = bt(sel$mu_unadj), low = NULL, high = NULL, p = NULL, tau2 = sel$tau2_unadj),
  list(model = sprintf("With selection (%s)", WEIGHTS_LABEL), estimate = bt(sel$mu), low = bt(sel$ci_low), high = bt(sel$ci_high), p = sel$p, tau2 = sel$tau2)
)
rows_t <- list()
if (est_delta) rows_t[[length(rows_t) + 1]] <- list(test = sprintf("Selection (all weights = 1), χ²(%d)", as.integer(sel$lrt_df)), statistic = sel$lrt, p = sel$lrt_p)
if (model == "random") rows_t[[length(rows_t) + 1]] <- list(test = "Heterogeneity (τ² = 0), χ²(1)", statistic = sel$lrt_tau2, p = sel$lrt_tau2_p)
tables <- list(
  list(key = "estimates", title = sprintf("Pooled %s with and without selection (%s CI)", DISPLAY_LABEL, pct),
       columns = list(list(key = "model", label = "Model", type = "string"), list(key = "estimate", label = "Estimate", type = "number"),
                      list(key = "low", label = "CI low", type = "number"), list(key = "high", label = "CI high", type = "number"),
                      list(key = "p", label = "p", type = "number"), list(key = "tau2", label = "τ²", type = "number")),
       rows = rows_m),
  list(key = "weights", title = paste0("Selection weights by one-sided p-value (", if (est_delta) "estimated; first interval fixed at 1" else "fixed a priori", ")"),
       columns = list(list(key = "interval", label = "Interval", type = "string"), list(key = "k", label = "Studies", type = "integer"),
                      list(key = "weight", label = "Weight", type = "number"), list(key = "se", label = "SE", type = "number"),
                      list(key = "low", label = "CI low", type = "number"), list(key = "high", label = "CI high", type = "number")),
       rows = rows_w)
)
if (length(rows_t)) {
  tables[[length(tables) + 1]] <- list(key = "lrt", title = "Likelihood-ratio tests",
                                       columns = list(list(key = "test", label = "Test", type = "string"), list(key = "statistic", label = "χ²", type = "number"),
                                                      list(key = "p", label = "p", type = "number")), rows = rows_t)
}
charts <- list()
if (est_delta) {
  charts[[length(charts) + 1]] <- cs_chart("weights", "selection-weights", "Estimated selection weights",
    list(p_low = cs_col("p from", lows), p_high = cs_col("p to", highs), weight = cs_col("weight", sel$delta), ci_low = cs_col("CI low", sel$delta_ci_low),
         ci_high = cs_col("CI high", sel$delta_ci_high), n = cs_col("studies", sel$counts)),
    controls = list(logP = TRUE, reference = 1))
}
charts[[length(charts) + 1]] <- cs_chart("funnel", "meta-funnel", "Funnel plot with the selection-adjusted estimate",
  list(estimate = cs_col(MEASURE_LABEL, y), se = cs_col("standard error", sqrt(v)), label = cs_col("study", labels)),
  controls = list(center = sel$mu_unadj, adjusted = sel$mu, contours = TRUE))
pc_values <- list(n_sig = 0, pc_right_full_p = NULL, pc_right_half_p = NULL, pc_flat_full_p = NULL, pc_flat_half_p = NULL,
                  pc_binom_right_p = NULL, pc_binom_flat_p = NULL, pc_verdict = "not run")
notes <- list("Selection models correct for one assumed publication mechanism; read the adjusted estimate as a sensitivity analysis, not the truth.")
if (!is.null(pc)) {
  pc_values <- list(n_sig = pc$n_sig, pc_right_full_p = pc$right_full_p, pc_right_half_p = pc$right_half_p, pc_flat_full_p = pc$flat_full_p,
                    pc_flat_half_p = pc$flat_half_p, pc_binom_right_p = pc$binom_right_p, pc_binom_flat_p = pc$binom_flat_p, pc_verdict = pc$verdict)
  if (pc$n_sig > 0) {
    tables[[length(tables) + 1]] <- list(key = "pcurve", title = sprintf("p-curve of %d significant result(s) (two-sided p < .05, favored direction)", pc$n_sig),
      columns = list(list(key = "test", label = "Test", type = "string"), list(key = "z", label = "Stouffer Z", type = "number"), list(key = "p", label = "p", type = "number")),
      rows = list(list(test = "Right skew, full curve (evidential value)", z = pc$right_full_z, p = pc$right_full_p),
                  list(test = "Right skew, half curve (p < .025)", z = na_or(pc$right_half_z), p = na_or(pc$right_half_p)),
                  list(test = "Flatter than 33% power, full curve", z = pc$flat_full_z, p = pc$flat_full_p),
                  list(test = "Flatter than 33% power, half curve", z = na_or(pc$flat_half_z), p = na_or(pc$flat_half_p)),
                  list(test = "Binomial: more p < .025 than half", z = NULL, p = pc$binom_right_p),
                  list(test = "Binomial: fewer p < .025 than at 33% power", z = NULL, p = pc$binom_flat_p)))
    charts[[length(charts) + 1]] <- cs_chart("pcurve", "pcurve", "p-curve of the significant results",
      list(bin = cs_col("p-value", pc$bins), observed = cs_col("observed %", pc$observed), null = cs_col("no effect %", pc$expected_null),
           power33 = cs_col("33% power %", pc$expected_33)),
      controls = list(k = pc$n_sig))
    verdict_txt <- c(evidential = "The significant results are right-skewed: they carry evidential value.",
                     inadequate = "The significant results are flatter than 33% power would give: evidential value is inadequate.",
                     inconclusive = "The p-curve is inconclusive.")[[pc$verdict]]
    notes[[length(notes) + 1]] <- paste(verdict_txt, "p-curve reads only the significant results and says nothing about their size.")
  } else {
    notes[[length(notes) + 1]] <- "No study is significant in the favored direction, so there is no p-curve."
  }
}
stats_list <- list(list(key = "est_bt", label = sprintf("Adjusted %s", DISPLAY_LABEL), value = bt(sel$mu)), list(key = "p", label = "p", value = sel$p, format = "p"),
                   list(key = "est_unadj_bt", label = sprintf("Unadjusted %s", DISPLAY_LABEL), value = bt(sel$mu_unadj)))
if (est_delta) stats_list[[length(stats_list) + 1]] <- list(key = "lrt_p", label = "p (selection)", value = sel$lrt_p, format = "p")
cs_publish(list(
  method = "meta.selection",
  methodVersion = "1.0.2",
  title = sprintf("Selection model for %d studies (%s)", k, MODEL_LABEL),
  engine = cs_engine_info("stats", "nanoparquet"),
  n = k,
  summary = paste0(sprintf("Adjusted %s %s, %s CI [%s, %s], %s (unadjusted %s)", DISPLAY_LABEL, g3(bt(sel$mu)), pct, g3(bt(sel$ci_low)), g3(bt(sel$ci_high)),
                           cs_fmt_p(sel$p), g3(bt(sel$mu_unadj))), if (est_delta) sprintf("; selection LRT %s.", cs_fmt_p(sel$lrt_p)) else "."),
  apa = paste0(sprintf("adjusted %s = %s, %s CI [%s, %s], %s", DISPLAY_LABEL, cs_fmt_num(bt(sel$mu)), pct, cs_fmt_num(bt(sel$ci_low)), cs_fmt_num(bt(sel$ci_high)), cs_fmt_p(sel$p)),
               if (est_delta) sprintf("; LRT χ²(%d) = %s, %s", as.integer(sel$lrt_df), cs_fmt_num(sel$lrt), cs_fmt_p(sel$lrt_p)) else ""),
  statistics = stats_list,
  tables = tables,
  effectSizes = list(list(key = "est_bt", label = sprintf("Adjusted %s", DISPLAY_LABEL), value = bt(sel$mu), ciLow = bt(sel$ci_low), ciHigh = bt(sel$ci_high),
                          ciLevel = conf, method = sprintf("step-function selection model (%s)", WEIGHTS_LABEL))),
  assumptions = assumptions,
  warnings = warnings,
  notes = notes,
  charts = charts,
  values = c(list(
    k = k, est = sel$mu, se = sel$se, z = sel$z, p = sel$p, ci_low = sel$ci_low, ci_high = sel$ci_high,
    est_bt = bt(sel$mu), ci_low_bt = bt(sel$ci_low), ci_high_bt = bt(sel$ci_high),
    est_unadj = sel$mu_unadj, est_unadj_bt = bt(sel$mu_unadj), tau2 = sel$tau2, se_tau2 = sel$se_tau2, tau2_unadj = sel$tau2_unadj,
    ll = sel$ll, ll_unadj = sel$ll_unadj, lrt = sel$lrt, lrt_df = sel$lrt_df, lrt_p = sel$lrt_p, lrt_tau2 = sel$lrt_tau2, lrt_tau2_p = sel$lrt_tau2_p,
    steps = sel$steps, counts = as.numeric(sel$counts), delta = sel$delta, delta_se = sel$se_delta),
    pc_values,
    list(measure = measure, measure_label = MEASURE_LABEL, effect_label = DISPLAY_LABEL, weights_label = WEIGHTS_LABEL, model_label = MODEL_LABEL))
))

Sources

  • Vevea, J. L., & Hedges, L. V. (1995). A general linear model for estimating effect size in the presence of publication bias. Psychometrika, 60, 419–435.
  • Vevea, J. L., & Woods, C. M. (2005). Publication bias in research synthesis: Sensitivity analysis using a priori weight functions. Psychological Methods, 10, 428–443.
  • Iyengar, S., & Greenhouse, J. B. (1988). Selection models and the file drawer problem. Statistical Science, 3, 109–135.
  • McShane, B. B., Böckenholt, U., & Hansen, K. T. (2016). Adjusting for publication bias in meta-analysis: An evaluation of selection methods and some cautionary notes. Perspectives on Psychological Science, 11, 730–749.
  • Simonsohn, U., Nelson, L. D., & Simmons, J. P. (2014). P-curve: A key to the file-drawer. Journal of Experimental Psychology: General, 143, 534–547.
  • Simonsohn, U., Simmons, J. P., & Nelson, L. D. (2015). Better p-curves: Making p-curve analysis more robust to errors, fraud, and ambitious p-hacking. Journal of Experimental Psychology: General, 144, 1146–1152.

From the CodeSplash method registry · meta.selection v1.0.2.