Agent skill
publication-bias-detection
Detect and assess publication bias in meta-analysis using funnel plots, Egger's test, trim-and-fill, and selection models. Use when users need to evaluate whether missing studies might affect their conclusions.
Install this agent skill to your Project
npx add-skill https://github.com/matheus-rech/meta-agent-mobile/tree/meta/agentskills/publication-bias-detection
Metadata
Additional technical details for this skill
- author
- meta-agent
- domain
- evidence-synthesis
- version
- 1.0.0
- category
- statistics
- difficulty
- intermediate
- prerequisites
- meta-analysis-fundamentals, forest-plot-creation
- estimated time
- 12 minutes
SKILL.md
Publication Bias Detection
This skill teaches methods to detect and assess publication bias, a critical threat to meta-analysis validity.
Overview
Publication bias occurs when studies with statistically significant or "positive" results are more likely to be published than those with null or negative findings. This can inflate pooled effect estimates.
When to Use This Skill
Activate this skill when users:
- Ask about "missing studies" or "file drawer problem"
- Want to create or interpret a funnel plot
- Ask about Egger's test or trim-and-fill
- Are concerned about bias in their meta-analysis
- Need to assess the robustness of their findings
The Problem of Publication Bias
Why it happens:
- Journals prefer "significant" findings
- Researchers may not submit null results
- Industry may suppress unfavorable results
Consequences:
- Overestimation of treatment effects
- False conclusions about efficacy
- Wasted resources on ineffective interventions
Key Teaching Point: "If only positive studies are published, our meta-analysis is like reading only 5-star reviews—we're missing the complete picture."
Detection Methods
1. Funnel Plot
What it is: Scatter plot of effect sizes vs. precision (1/SE or sample size).
Expected pattern (no bias):
Precision
│
High │ * *
│ * * * *
│ * * *
│ * * *
Low │* * *
└──────┼──────→
│ Effect Size
Pooled Effect
Asymmetry suggests bias:
Precision
│
High │ * *
│ * * *
│ * *
│ * *
Low │* *
└──────┼──────→
│ Effect Size
Missing studies here?
2. Egger's Regression Test
What it is: Statistical test for funnel plot asymmetry.
Interpretation:
- p < 0.10 → Evidence of asymmetry (possible bias)
- p ≥ 0.10 → No strong evidence of asymmetry
Limitations:
- Low power with < 10 studies
- Can be significant due to heterogeneity, not bias
3. Trim-and-Fill Method
What it is: Estimates number of "missing" studies and adjusts the pooled effect.
Output:
- Number of imputed studies
- Adjusted pooled effect
- Adjusted funnel plot with imputed studies
Caution: Assumes bias is the ONLY cause of asymmetry.
4. Selection Models
What they are: Statistical models that estimate the probability of publication based on p-values.
Advantage: More sophisticated than trim-and-fill. Disadvantage: Requires assumptions about selection mechanism.
R Code for Publication Bias Assessment
Funnel Plot
library(metafor)
# Fit model
res <- rma(yi = yi, sei = sei, data = dat)
# Basic funnel plot
funnel(res)
# Enhanced funnel plot
funnel(res,
xlab = "Effect Size",
ylab = "Standard Error",
main = "Funnel Plot",
level = c(90, 95, 99),
shade = c("white", "gray75", "gray55"),
refline = 0)
# Contour-enhanced funnel plot
funnel(res,
level = c(0.90, 0.95, 0.99),
shade = c("white", "gray", "darkgray"),
legend = TRUE)
Egger's Test
# Egger's regression test
regtest(res, model = "lm")
# Output interpretation:
# z = 2.34, p = 0.019 → Evidence of asymmetry
# Alternative: Begg's rank correlation
ranktest(res)
Trim-and-Fill
# Trim-and-fill analysis
taf <- trimfill(res)
print(taf)
# Output shows:
# - Number of studies imputed (e.g., "Estimated number of missing studies: 3")
# - Adjusted pooled effect
# Funnel plot with imputed studies
funnel(taf)
# Imputed studies shown as open circles
Selection Models
# Vevea-Hedges selection model
# Assumes step function for selection probability
selmodel(res, type = "stepfun", steps = c(0.025, 0.5))
# Output shows:
# - Adjusted effect estimate
# - Estimated selection probabilities
Teaching Framework
Step 1: Visual Assessment
"Let's start by looking at your funnel plot. In an unbiased meta-analysis, we expect a symmetric, inverted funnel shape."
Step 2: Statistical Tests
"Now let's run Egger's test to quantify what we see:
- If p < 0.10, there's evidence of asymmetry
- But remember, asymmetry doesn't always mean publication bias"
Step 3: Sensitivity Analysis
"Let's use trim-and-fill to see how the results might change if we account for potentially missing studies."
Step 4: Interpret Holistically
"Consider:
- How many studies might be missing?
- Does the adjusted effect change the conclusion?
- Are there other explanations for asymmetry?"
Alternative Explanations for Asymmetry
| Explanation | Description |
|---|---|
| True heterogeneity | Small studies in different populations |
| Methodological quality | Small studies often lower quality |
| Chance | Random variation, especially with few studies |
| Artefactual | Choice of effect measure |
Teaching Point: "Funnel plot asymmetry is a red flag, but it's not proof of publication bias. We need to consider all possibilities."
Reporting Guidelines
When reporting publication bias assessment:
-
State the method used
- "We assessed publication bias using funnel plots and Egger's test"
-
Report results
- "Egger's test: z = 1.8, p = 0.07"
- "Trim-and-fill imputed 2 studies"
-
Report adjusted estimates
- "Original: OR = 0.65 [0.50, 0.85]"
- "Adjusted: OR = 0.72 [0.55, 0.94]"
-
Interpret implications
- "Results remained significant after adjustment, suggesting conclusions are robust"
Assessment Questions
-
Basic: "What does an asymmetric funnel plot suggest?"
- Correct: Possible publication bias (or other sources of asymmetry)
-
Intermediate: "Egger's test p = 0.15 with 8 studies. What do you conclude?"
- Correct: Cannot rule out bias; test is underpowered with few studies
-
Advanced: "Trim-and-fill imputes 4 studies and changes OR from 0.6 to 0.8. How do you interpret this?"
- Correct: Original effect may be overestimated; adjusted effect still favors treatment but is attenuated
Related Skills
meta-analysis-fundamentals- Understanding effect sizesforest-plot-creation- Visualizing resultsheterogeneity-analysis- Another source of asymmetry
Adaptation Guidelines
Glass (the teaching agent) MUST adapt this content to the learner:
- Language Detection: Detect the user's language from their messages and respond naturally in that language
- Cultural Context: Adapt examples to local healthcare systems and research contexts when relevant
- Technical Terms: Maintain standard English terms (e.g., "forest plot", "effect size", "I²") but explain them in the user's language
- Level Adaptation: Adjust complexity based on user's demonstrated knowledge level
- Socratic Method: Ask guiding questions in the detected language to promote deep understanding
- Local Examples: When possible, reference studies or guidelines familiar to the user's region
Example Adaptations:
- 🇧🇷 Portuguese: Use Brazilian health system examples (SUS, ANVISA guidelines)
- 🇪🇸 Spanish: Reference PAHO/OPS guidelines for Latin America
- 🇨🇳 Chinese: Include examples from Chinese medical literature
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
data-extraction
Extract and prepare study data for meta-analysis including effect size calculation, variance estimation, and handling missing data. Use when users need to convert reported statistics into analyzable format or calculate effect sizes from raw data.
network-meta-analysis
Teach network meta-analysis (NMA) for comparing multiple treatments simultaneously. Use when users need to compare more than two interventions, understand indirect comparisons, or create network plots and league tables.
trial-sequential-analysis
Teach Trial Sequential Analysis (TSA) for controlling type I and II errors in cumulative meta-analyses. Use when users need to assess if meta-analysis has sufficient information, want to avoid premature conclusions, or need to plan future trials.
forest-plot-creation
Generate and interpret forest plots for meta-analysis visualization using R and the metafor package. Use when users need to create forest plots, understand visual representation of pooled effects, or interpret study weights and confidence intervals.
heterogeneity-analysis
Assess and interpret between-study heterogeneity in meta-analysis using I², Q statistic, tau², and prediction intervals. Use when users need to evaluate consistency across studies, understand sources of variation, or decide if pooling is appropriate.
grade-assessment
Apply the GRADE framework to assess certainty of evidence in systematic reviews. Use when users need to rate evidence quality, create Summary of Findings tables, or understand the factors that affect confidence in effect estimates.
Didn't find tool you were looking for?