ferx_example("mbma_naproxen") is the published naproxen-vs-placebo case study of Boucher M, Bennetts M, “Many Flavors of Model-Based Meta-Analysis: Part II - Modeling Summary Level Longitudinal Responses”, CPT: Pharmacometrics & Systems Pharmacology 2018;7(5):288-297, doi:10.1002/psp4.12299. Eighteen osteoarthritis trials each report the mean WOMAC pain score of a placebo arm and a naproxen arm over time: 36 arms, 122 arm-by-visit means. The model is a compartment-free Emax time course on the arm mean, with between-study variability on the baseline (E0) and on the maximum effect (Emax), covariate effects of a flare trial design and of naproxen, and each arm mean weighted by its reported standard error. The fit reproduces Table 2 of the paper.
ImportantLicence of the data: CC BY-NC 4.0, not MIT
The data are derived from the article’s supplementary file PSP4-7-288-s007.csv (columns renamed, DV divided by WPSE), licensed CC BY-NC 4.0. They are the one bundled dataset the MIT licence of the ferx R package does not cover. ferx ships them by the authors’ written permission (2026-12-04), which allows distribution with the ferx R package but does not relicense the data: commercial use of the data is not granted. Cite the article above when you use them. Provenance, the modifications made to the original file and its checksums are in the installed package: system.file("COPYRIGHTS", package = "ferx") (section 3) and system.file("examples", "mbma_naproxen", "README.md", package = "ferx"). This page loads the data from the installed package and does not copy them. The model file and the example script are part of the package and are MIT.
The page follows the bundled script, ex_mbma_naproxen.R:
One row per arm and visit. ID is the study, so a random effect on ID is between-study variability. ARM and TRT mark the arm (0 = placebo, 1 = naproxen), FLARE a flare-design trial, TIME weeks since randomisation, WPSE the reported standard error of the arm mean and NIND the arm size.
The weighting
DV is not the arm mean: it is the arm mean divided by its standard error, DV = WP / WPSE, and the model divides its prediction by the same WPSE. With the residual variance fixed to 1, each arm mean enters the likelihood with weight 1 / WPSE^2, so a precisely measured arm counts for more. This is the published weighting. The arm mean on its own scale is DV * WPSE:
d$WP <- d$DV * d$WPSEsummary(d$WP)
Min. 1st Qu. Median Mean 3rd Qu. Max.
2.500 3.872 4.505 4.604 5.250 7.410
Model
There are no compartments. The Emax time course is the structural model, and the division by WPSE is the weighting, not a unit conversion:
# [structural_model]
# No compartments: the Emax time-course IS the structural model, and the
# SE division is the MBMA weighting, not a unit conversion.
EFF = EMAX * TIME / (TIME + ET50)
y = (E0 - EFF) / WPSE
ferx_model_get_section(ex$model, "error_model")
# [error_model]
DV ~ additive(ADD_ERR)
Sign convention. The paper adds a negative Emax to the baseline; this model subtracts a positive EMAX. Every Emax-family estimate here is therefore the negation of the published one: the naproxen effect on Emax is −0.79 in the paper and B_EMAX_TRT ≈ 0.79 here. B_LET50_TRT is the naproxen effect on log ET50, so ET50 for naproxen is TVET50 * exp(B_LET50_TRT).
The fit warns of positive autocorrelation of the individual weighted residuals (dw_autocorrelation), which is what visits of one arm sharing what the model leaves out would produce. The published model has no between-arm variability, and the model here is the published one, so it has none either. ARM is in the data as the occasion for a between-arm kappa, should you want to add one.
Against the published analysis
Boucher & Bennetts, Table 2, NONMEM column. The Emax-family values are negated to compare like with like, and fit$omega holds variances while the paper reports SDs:
The headline estimate, the naproxen effect on Emax, with its 95% confidence interval. The paper reports standard errors of 0.06 (BUGS), 0.09 (NONMEM) and 0.07 (nlme) for it:
est <- th[["B_EMAX_TRT"]]se <- fit$se_theta[["B_EMAX_TRT"]]round(c(estimate = est, se = se, lower95 = est -1.96* se,upper95 = est +1.96* se), 3)
estimate se lower95 upper95
0.793 0.065 0.666 0.920
Typical time courses
The typical arm mean (random effects at 0) for each design and treatment, on the WOMAC scale, beside the observed arm means:
PRED is on the model’s scale, the SE-scaled arm mean, like DV. Multiply by WPSE to read it on the WOMAC scale. The rows follow the data file, so the arm and WPSE are carried across by position:
pred <-ferx_predict(ex$model, ex$data, fit = fit)head(transform(pred, ARM = d$ARM, PRED_WP = PRED * d$WPSE, WP = d$WP))
Chapter 24 (Model-based meta-analysis) of the FeRx book: arm-level data, weight = on the error model and on a kappa, theta level blocks, and this case study beside the synthetic mbma_placebo example.