Within‐chain parallelization—Giving Stan Jet Fuel for population modeling in pharmacometrics

Stan is a powerful probabilistic programming language designed mainly for Bayesian data analysis. Torsten is a collection of Stan functions that handles the events (e.g., dosing events) and solves the ODE systems that are frequently present in pharmacometric models. To perform a Bayesian data analysis, most models in pharmacometrics require Markov Chain Monte Carlo (MCMC) methods to sample from the posterior distribution. However, MCMC is computationally expensive and can be time-consuming, enough so that people will often forgo Bayesian methods for a more traditional approach. This paper shows how to speed up the sampling process in Stan by within-chain parallelization through both multi-threading using Stan's reduce_sum() function and multi-processing using Torsten's group ODE solver. Both methods show substantial reductions in the time necessary to sufficiently sample from the posterior distribution compared with a basic approach with no within-chain parallelization.

Authors

Institutions

Publication Details

Journal
CPT Pharmacometrics & Systems Pharmacology
Published
2024-10-28
DOI
https://doi.org/10.1002/psp4.13238
Citations
1
Primary Topic
Statistical Methods in Clinical Trials
Type
article
Field-Weighted Citation Impact
0.71
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Within‐chain parallelization—Giving Stan Jet Fuel for population modeling in pharmacometrics

Casey Davis, Pavan Vaddady
1 citations
CPT Pharmacometrics & Systems Pharmacology
Statistical Methods in Clinical Trials
0.71
article

Within‐chain parallelization—Giving Stan Jet Fuel for population modeling in pharmacometrics

Casey Davis, Pavan Vaddady
article en
1 citations

Abstract

Stan is a powerful probabilistic programming language designed mainly for Bayesian data analysis. Torsten is a collection of Stan functions that handles the events (e.g., dosing events) and solves the ODE systems that are frequently present in pharmacometric models. To perform a Bayesian data analysis, most models in pharmacometrics require Markov Chain Monte Carlo (MCMC) methods to sample from the posterior distribution. However, MCMC is computationally expensive and can be time-consuming, enough so that people will often forgo Bayesian methods for a more traditional approach. This paper shows how to speed up the sampling process in Stan by within-chain parallelization through both multi-threading using Stan's reduce_sum() function and multi-processing using Torsten's group ODE solver. Both methods show substantial reductions in the time necessary to sufficiently sample from the posterior distribution compared with a basic approach with no within-chain parallelization.

CPT Pharmacometrics & Systems PharmacologyVol. 14(1)
Merck & Co., Inc., Rahway, NJ, USA (United States) (US), Daiichi Sankyo (United States) (US)
Openalex Percentile: Top 25%
Statistical Methods in Clinical Trials
0.71
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.