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.
This skill teaches Trial Sequential Analysis, a method that applies formal stopping boundaries to cumulative meta-analysis to control the risks of type I and II errors due to sparse data and repetitive testing.
Trial Sequential Analysis combines cumulative meta-analysis with group sequential monitoring boundaries. It helps determine whether the evidence in a meta-analysis is conclusive or if more trials are needed, preventing both premature claims of effect and unnecessary continuation of research.
Activate this skill when users:
Why Standard Meta-Analysis Can Mislead:
Analogy:
"Imagine checking your stock portfolio every hour vs once a year. The more you check, the more likely you'll see extreme values that don't reflect true performance. TSA is like setting rules for when to actually act on what you see."
Socratic Questions:
Required Information Size (RIS):
Information Fraction:
Monitoring Boundaries:
Types of Boundaries:
| Boundary | Meaning | Action |
|---|---|---|
| Benefit | Effect is conclusively positive | Stop, recommend intervention |
| Harm | Effect is conclusively negative | Stop, do not recommend |
| Futility | Effect unlikely to reach significance | Stop, effect too small to matter |
| Inner wedge | Inconclusive | Continue research |
Visual Representation:
Benefit Boundary
/
/
Z-score /
/
─────────────────────────────── No effect line
\
\
\
\
Futility/Harm Boundary
──────────────────────────────────────────►
Information Fraction (%)
Formula Components:
RIS = f(α, β, δ, σ², D²)
Where:
α = Type I error (usually 0.05)
β = Type II error (usually 0.20 for 80% power)
δ = Minimal clinically important difference
σ² = Variance of outcome
D² = Diversity (heterogeneity adjustment)
Heterogeneity Adjustment:
RIS_adjusted = RIS × (1 + D²)
Where D² ≈ I²/(100 - I²) for I² < 100%
Example Calculation:
# For binary outcome (OR)
# Assuming OR = 0.80, control event rate = 20%
# α = 0.05 (two-sided), β = 0.20, I² = 50%
# Unadjusted RIS
ris_unadjusted <- 2 * ((1.96 + 0.84)^2) / (log(0.80)^2 * 0.20 * 0.80)
# ≈ 3,900 participants
# Adjusted for heterogeneity
D2 <- 0.50 / (1 - 0.50) # = 1.0
ris_adjusted <- ris_unadjusted * (1 + D2)
# ≈ 7,800 participants
Using the RTSA package:
# Install if needed
# install.packages("RTSA")
library(RTSA)
# Prepare data
data <- data.frame(
study = c("Trial1", "Trial2", "Trial3", "Trial4", "Trial5"),
year = c(2010, 2012, 2014, 2016, 2018),
events_treat = c(15, 22, 18, 25, 20),
n_treat = c(100, 150, 120, 180, 140),
events_ctrl = c(20, 28, 25, 32, 28),
n_ctrl = c(100, 150, 120, 180, 140)
)
# Perform TSA
tsa_result <- RTSA(
type = "binary",
outcome = "RR",
data = data,
alpha = 0.05,
beta = 0.20,
RRR = 0.20, # 20% relative risk reduction
Pc = 0.20, # Control event rate
fixed = FALSE,
tau2 = "DL"
)
# View results
summary(tsa_result)
plot(tsa_result)
Using TSA Software (Copenhagen Trial Unit):
# TSA software provides GUI interface
# Available at: https://ctu.dk/tsa/
# Key inputs:
# - Effect measure (OR, RR, MD, SMD)
# - Alpha and beta spending functions
# - Anticipated intervention effect
# - Control group event rate/mean
# - Heterogeneity correction
Scenario 1: Crosses Benefit Boundary
Interpretation: "The cumulative Z-curve has crossed the
monitoring boundary for benefit. The evidence is sufficient
to conclude that the intervention is effective. Further
trials may not be necessary for this outcome."
Scenario 2: Within Inner Wedge
Interpretation: "The cumulative Z-curve remains within the
futility boundaries. The current evidence is inconclusive.
The information fraction is X%, meaning we have collected
only X% of the required information size. More trials are
needed before firm conclusions can be drawn."
Scenario 3: Crosses Futility Boundary
Interpretation: "The cumulative Z-curve has crossed the
futility boundary. Even if future trials show positive
results, it is unlikely the pooled effect will reach
statistical significance. The intervention effect, if
any, is likely too small to be clinically meaningful."
Essential Elements:
Example Reporting:
"Trial sequential analysis was conducted with α=5% (two-sided), β=20%, anticipated RRR=20%, and control event rate=25%. The diversity-adjusted required information size was 4,500 participants. The current meta-analysis includes 2,800 participants (62% of RIS). The cumulative Z-curve has not crossed any monitoring boundaries, indicating that the evidence remains inconclusive. Additional trials enrolling approximately 1,700 participants would be needed to reach firm conclusions."
Important Considerations:
Basic: "What problem does TSA solve that standard meta-analysis doesn't address?"
Intermediate: "What is the Required Information Size and how is it affected by heterogeneity?"
Advanced: "A TSA shows the Z-curve within the inner wedge at 40% information fraction. What do you conclude?"
"Crossing the conventional significance line (Z=1.96) is sufficient"
"TSA can prove no effect exists"
"TSA boundaries are the same as in single trials"
User: "My meta-analysis shows a significant effect (p=0.03) with 5 trials. Is this conclusive?"
Response Framework:
Glass (the teaching agent) MUST adapt this content to the learner:
Example Adaptations:
meta-analysis-fundamentals - Basic concepts prerequisiteheterogeneity-analysis - Understanding D² adjustmentpublication-bias-detection - Complementary quality assessmentbayesian-meta-analysis - Alternative approach to sequential updating