Overview
Protocols describe dropout in different ways: as an average follow-up time, as a proportion of participants dropping out per year, or as an inflation of the sample size. These are not interchangeable. For a negative binomial (NB) endpoint, information depends on each participant’s exposure. Both the average exposure and its variability affect the required sample size.
This vignette uses a fictional trial to show how the choices differ
and how to make them consistent with
dropout_rate_from_followup() and
sample_size_nbinom().
A fictional design statement
A 1:1 randomized trial will have 90% power (one-sided \(\alpha = 0.025\)) to detect a 25% reduction (rate ratio 0.75) in the annualized event rate. The control rate is 0.9 events per year and the NB dispersion is 0.8. Treatment lasts 18 months. The calculation assumes an average follow-up of 16 months, approximately equivalent to a 10% annual dropout rate.
All times below are in years.
lambda1 <- 0.9
lambda2 <- 0.9 * 0.75
k <- 0.8
max_fu <- 1.5 # 18-month potential follow-up
mean_fu <- 16 / 12 # stated average follow-upThree descriptions of dropout
With independent exponential dropout at hazard \(\delta\) and a common potential follow-up \(F\), participant exposure is \(t = \min(D, F)\), where \(D \sim \text{Exponential}(\delta)\). The three descriptions are related by:
| Description | Formula |
|---|---|
| Proportion dropping out within 1 year | \(p_1 = 1 - e^{-\delta}\) |
| Proportion dropping out before \(F\) | \(p_F = 1 - e^{-\delta F}\) |
| Average follow-up | \(\mathrm{E}[t] = (1 - e^{-\delta F}) / \delta\) |
dropout_rate_from_followup() solves the last equation
for \(\delta\):
delta_mean <- dropout_rate_from_followup(mean_fu, max_fu)
delta_10 <- -log(1 - 0.10) # 10% annual dropout
dropout_summary <- function(delta) {
c(
hazard_per_year = delta,
dropout_within_1_year = 1 - exp(-delta),
dropout_before_F = 1 - exp(-delta * max_fu),
mean_followup_months = 12 * (1 - exp(-delta * max_fu)) / delta
)
}
knitr::kable(
rbind(
"Average follow-up 16 months" = dropout_summary(delta_mean),
"10% annual dropout" = dropout_summary(delta_10)
),
digits = 3,
caption = "The two stated dropout assumptions are not equivalent."
)| hazard_per_year | dropout_within_1_year | dropout_before_F | mean_followup_months | |
|---|---|---|---|---|
| Average follow-up 16 months | 0.160 | 0.148 | 0.214 | 16.00 |
| 10% annual dropout | 0.105 | 0.100 | 0.146 | 16.65 |
An average of 16 months out of 18 needs about 15% annual dropout, not 10%. And 10% annual dropout gives an average of about 16.6 months. The design statement mixes two different assumptions.
Why variability in exposure matters
The NB information for a participant with exposure \(t\) is \(\lambda
t / (1 + k \lambda t)\), a concave function of \(t\). So an average exposure of 16 months,
made up of some short and some full follow-up, gives less information
than 16 months for everyone. sample_size_nbinom() accounts
for this, following Zhu and Lakkis (2014),
by inflating the dispersion by
\[ Q = \frac{\mathrm{E}[t^2]}{\mathrm{E}[t]^2} \ge 1. \]
For capped exponential dropout, \(\mathrm{E}[t^2] = 2\{1 - e^{-\delta F}(1 + \delta F)\} / \delta^2\):
Sample size under four conventions
The accrual inputs below are placeholders. With a fixed design and a common potential follow-up for everyone, they do not affect per-subject information.
ss <- function(fu, dropout = 0) {
sample_size_nbinom(
lambda1 = lambda1, lambda2 = lambda2, dispersion = k,
power = 0.9, alpha = 0.025, sided = 1,
accrual_rate = 1000, accrual_duration = 0.001,
trial_duration = fu + 0.001, max_followup = fu,
dropout_rate = dropout
)
}- Common exposure. Everyone is followed for exactly the average follow-up (16 months). This is the standard Zhu–Lakkis/PASS calculation, with \(Q = 1\).
- Average follow-up, calibrated dropout. Exponential dropout is set so that the average follow-up is 16 months, with an 18-month cap.
- Annual dropout rate. Exponential dropout at 10% per year, with an 18-month cap.
- Inflation factor. Size the trial for complete 18-month follow-up, then divide by \(1 - p_F\) for the 10% annual rate. This treats dropouts as contributing no information.
full <- ss(max_fu)
p_F <- 1 - exp(-delta_10 * max_fu)
designs <- list(
"1. Common 16-month exposure" = ss(mean_fu),
"2. Mean 16 months, calibrated dropout" = ss(max_fu, delta_mean),
"3. 10% annual dropout" = ss(max_fu, delta_10)
)
conv <- data.frame(
convention = c(names(designs), "4. Inflate full follow-up for 10%/year"),
mean_followup_months = c(
sapply(designs, function(d) 12 * d$exposure[1]),
12 * max_fu
),
n_per_arm = c(
sapply(designs, function(d) d$n1),
ceiling(full$n1 / (1 - p_F))
)
)
conv$total <- 2 * conv$n_per_arm
knitr::kable(conv, digits = 2, row.names = FALSE)| convention | mean_followup_months | n_per_arm | total |
|---|---|---|---|
| 1. Common 16-month exposure | 16.00 | 451 | 902 |
| 2. Mean 16 months, calibrated dropout | 16.00 | 467 | 934 |
| 3. 10% annual dropout | 16.65 | 452 | 904 |
| 4. Inflate full follow-up for 10%/year | 18.00 | 496 | 992 |
In this example:
- 1 vs 2: The average follow-up is the same, but calibrated dropout makes exposure vary between participants. That raises the sample size from 902 to 934. The common-exposure convention therefore underestimates the requirement when the average comes from dropout.
- 2 vs 3: These are the two halves of the design statement. They differ by 30 participants because they assume different amounts of dropout.
- 4: Inflation is the most conservative convention. It discards the partial follow-up that the NB likelihood actually uses. The observed-exposure analysis retains every randomized participant’s events and exposure.
Checking the \(Q\) approximation
The expected Fisher information per participant can also be computed exactly, by integrating \(\lambda t / (1 + k\lambda t)\) over the distribution of \(t\). For convention 2:
exact_info <- function(lambda, delta, F = max_fu) {
f <- function(t) lambda * t / (1 + k * lambda * t)
integrate(function(t) f(t) * delta * exp(-delta * t), 0, F)$value +
exp(-delta * F) * f(F)
}
w <- sapply(c(lambda1, lambda2), exact_info, delta = delta_mean)
z <- qnorm(0.975) + qnorm(0.9)
c(
exact = z^2 * sum(1 / w) / log(0.75)^2,
q_approximation = designs[[2]]$n1,
common_exposure = designs[[1]]$n1
)
#> exact q_approximation common_exposure
#> 463.2899 467.0000 451.0000The exact expected information needs about 463 per arm. The \(Q\) approximation (467) is slightly conservative. Common exposure (451) is too small.
Sensitivity to average follow-up
The gap between conventions 1 and 2 widens as average follow-up falls further below the cap:
fu_months <- seq(12, 17.5, by = 0.5)
n_common <- sapply(fu_months, function(m) ss(m / 12)$n_total)
n_dropout <- sapply(fu_months, function(m) {
ss(max_fu, dropout_rate_from_followup(m / 12, max_fu))$n_total
})
plot(fu_months, n_dropout,
type = "b", pch = 19, ylim = range(n_common, n_dropout),
xlab = "Average follow-up (months), 18-month cap",
ylab = "Total sample size"
)
lines(fu_months, n_common, type = "b", pch = 1, lty = 2)
legend("topright",
legend = c("Calibrated exponential dropout", "Common exposure"),
pch = c(19, 1), lty = c(1, 2), bty = "n"
)
Recommendations
- State dropout one way, and make every other description consistent
with it. Use
dropout_rate_from_followup()to convert an average follow-up into a hazard, and the formulas above to report the implied annual and cumulative dropout. - When the average follow-up comes from dropout, use the calibrated
dropout_rateinsample_size_nbinom()rather than a common exposure equal to the average. This accounts for the variability in exposure. - Report a common-exposure calculation only to reproduce published or
PASS results (see
vignette("sample-size-nbinom")). Note that it assumes every participant has the average exposure. - Use an inflation factor only for participants expected to contribute no usable data. Retained partial follow-up is handled by the dropout model.
- The conversion assumes independent exponential dropout and the same
potential follow-up for everyone. With staggered enrollment and a
calendar cutoff before all participants reach \(F\), specify accrual and
trial_durationso that administrative censoring is modeled as well.