Stacked Linear Mixed-Effects Framework for Multivariate Meta-Analysis

Implements the Stacked Linear Mixed-Effects (SLIM) framework for multivariate meta-analysis with correlated endpoints, as described in Rabbee (2026) . SLIM enables joint modeling of multiple endpoints across studies, estimation of between-study correlation structure, translation of treatment effects between endpoints via the eta coefficient, hypothesis testing for effect heterogeneity across strata (Cochran's Q and Dunnett tests), and sample size calculations for trial design. Built on top of the 'metafor' package.


slimeta

Stacked Linear Mixed-Effects Framework for Multivariate Meta-Analysis

Installation

# Install from GitHub
install.packages("remotes")
remotes::install_github("rabbee001/slimeta")

Quick Start

library(slimeta)

# Fit SLIM model
result <- slim_fit(
  data          = your_data,
  formula       = ~ 0 + Endpoint:factor(Stratum),
  random        = ~ Endpoint | Study,
  trial_col     = "Study",
  endpoint_col  = "Endpoint",
  y_col         = "Mean",
  se_col        = "SE",
  transform     = list(Endpoint2 = "log"),
  display_scale = list(Endpoint2 = 1000)
)

# Key results
result$eta         # translation coefficient
result$R2_between  # between-study R-squared
result$pooled      # pooled estimates

# Visualization
slim2EP_plot_by_study(result, data, endpoints = c("EP1", "EP2"))

# Test heterogeneity
eta_test <- slim_eta_by_stratum(data, strata_col = "Stratum", ...)
dunnett  <- slim_eta_dunnett(result, eta_test, data, ...)

# Sample size
slim_sample_size(result, endpoint = "EP1", effect_size = -0.5, sd = 2.0)

Main Functions

Function Purpose
slim_fit() Fit SLIM model
slim2EP_plot_by_covariate() Panel plot by covariate
slim2EP_plot_by_study() Scatter plot with E(Y2|Y1)
slim_eta_by_stratum() Cochran's Q test for eta
slim_eta_dunnett() Dunnett test for eta
slim_sample_size() Sample size calculation

References

Rabbee N. (2026). Translating treatment effects between correlated endpoints. BMC Medical Research Methodology, 26, 126. https://doi.org/10.1186/s12874-026-02852-x

License

MIT

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("slimeta")

0.1.1 by Nusrat Rabbee, 9 hours ago


https://github.com/rabbee001/slimeta


Report a bug at https://github.com/rabbee001/slimeta/issues


Browse source code at https://github.com/cran/slimeta


Authors: Nusrat Rabbee [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports metafor, ggplot2, grid, gridExtra, mvtnorm, stats, clubSandwich

Suggests knitr, rmarkdown, testthat


See at CRAN