Easy and reliable maximum a posteriori Bayesian estimation of pharmacokinetic parameters with the open-source R package mapbayr
- PMID: 34342170
- PMCID: PMC8520754
- DOI: 10.1002/psp4.12689
Easy and reliable maximum a posteriori Bayesian estimation of pharmacokinetic parameters with the open-source R package mapbayr
Abstract
Pharmacokinetic (PK) parameter estimation is a critical and complex step in the model-informed precision dosing (MIPD) approach. The mapbayr package was developed to perform maximum a posteriori Bayesian estimation (MAP-BE) in R from any population PK model coded in mrgsolve. The performances of mapbayr were assessed using two approaches. First, "test" models with different features were coded, for example, first-order and zero-order absorption, lag time, time-varying covariates, Michaelis-Menten elimination, combined and exponential residual error, parent drug and metabolite, and small or large inter-individual variability (IIV). A total of 4000 PK profiles (combining single/multiple dosing and rich/sparse sampling) were simulated from each test model, and MAP-BE of parameters was performed in both mapbayr and NONMEM. Second, a similar procedure was conducted with seven "real" previously published models to compare mapbayr and NONMEM on a PK outcome used in MIPD. For the test models, 98% of mapbayr estimations were identical to those given by NONMEM. Some discordances could be observed when dose-related parameters were estimated or when models with large IIV were used. The exploration of objective function values suggested that mapbayr might outdo NONMEM in specific cases. For the real models, a concordance close to 100% on PK outcomes was observed. The mapbayr package provides a reliable solution to perform MAP-BE of PK parameters in R. It also includes functions dedicated to data formatting and reporting and enables the creation of standalone Shiny web applications dedicated to MIPD, whatever the model or the clinical protocol and without additional software other than R.
© 2021 The Authors. CPT: Pharmacometrics & Systems Pharmacology published by Wiley Periodicals LLC on behalf of American Society for Clinical Pharmacology and Therapeutics.
Conflict of interest statement
The authors declared no competing interests for this work.
Figures




Similar articles
-
A hybrid machine learning/pharmacokinetic approach outperforms maximum a posteriori Bayesian estimation by selectively flattening model priors.CPT Pharmacometrics Syst Pharmacol. 2021 Oct;10(10):1150-1160. doi: 10.1002/psp4.12684. Epub 2021 Jul 26. CPT Pharmacometrics Syst Pharmacol. 2021. PMID: 34270885 Free PMC article.
-
Performance comparison of first-order conditional estimation with interaction and Bayesian estimation methods for estimating the population parameters and its distribution from data sets with a low number of subjects.BMC Med Res Methodol. 2017 Dec 1;17(1):154. doi: 10.1186/s12874-017-0427-0. BMC Med Res Methodol. 2017. PMID: 29191177 Free PMC article.
-
Estimation of population pharmacokinetic parameters in the presence of non-compliance.J Pharmacokinet Pharmacodyn. 2003 Feb;30(1):53-81. doi: 10.1023/a:1023297426153. J Pharmacokinet Pharmacodyn. 2003. PMID: 12800807
-
Open-source maximum a posteriori-bayesian dosing AdDS to current therapeutic drug monitoring: Adapting to the era of individualized therapy.Pharmacotherapy. 2021 Nov;41(11):953-963. doi: 10.1002/phar.2631. Epub 2021 Oct 15. Pharmacotherapy. 2021. PMID: 34618919 Review.
-
Population Pharmacokinetic Modelling and Bayesian Estimation of Tacrolimus Exposure: Is this Clinically Useful for Dosage Prediction Yet?Clin Pharmacokinet. 2016 Nov;55(11):1295-1335. doi: 10.1007/s40262-016-0396-1. Clin Pharmacokinet. 2016. PMID: 27138787 Review.
Cited by
-
Free and Open-Source Posologyr Software for Bayesian Dose Individualization: An Extensive Validation on Simulated Data.Pharmaceutics. 2022 Feb 18;14(2):442. doi: 10.3390/pharmaceutics14020442. Pharmaceutics. 2022. PMID: 35214174 Free PMC article.
-
Application of machine-learning models to predict the ganciclovir and valganciclovir exposure in children using a limited sampling strategy.Antimicrob Agents Chemother. 2024 Oct 8;68(10):e0086024. doi: 10.1128/aac.00860-24. Epub 2024 Aug 28. Antimicrob Agents Chemother. 2024. PMID: 39194260 Free PMC article.
-
A machine learning approach to predict daptomycin exposure from two concentrations based on Monte Carlo simulations.Antimicrob Agents Chemother. 2024 May 2;68(5):e0141523. doi: 10.1128/aac.01415-23. Epub 2024 Mar 19. Antimicrob Agents Chemother. 2024. PMID: 38501807 Free PMC article.
-
Estimation of Ganciclovir Exposure in Adults Transplant Patients by Machine Learning.AAPS J. 2025 Feb 28;27(2):53. doi: 10.1208/s12248-025-01034-9. AAPS J. 2025. PMID: 40021573
-
Development and Validation of Open-Source R Package HMCtdm for Therapeutic Drug Monitoring.Pharmaceuticals (Basel). 2022 Jan 21;15(2):127. doi: 10.3390/ph15020127. Pharmaceuticals (Basel). 2022. PMID: 35215240 Free PMC article.
References
-
- Definitions of TDM &CT. https://www.iatdmct.org/about‐us/about‐association/about‐definitions‐tdm.... Accessed June 21, 2021.
-
- Ting LSL, Villeneuve E, Ensom MHH. Beyond cyclosporine: A systematic review of limited sampling strategies for other immunosuppressants. Ther Drug Monit. 2006;28:419‐430. - PubMed
-
- Chatelut E, Pivot X, Otto J, et al. A limited sampling strategy for determining carboplatin AUC and monitoring drug dosage. Eur J Cancer. 2000;36:264‐269. - PubMed
-
- Tranchand B, Amsellem C, Chatelut E, et al. A limited‐sampling strategy for estimation of etoposide pharmacokinetics in cancer patients. Cancer Chemotherapy Pharmacology. 1999;43:316‐322. - PubMed
MeSH terms
LinkOut - more resources
Full Text Sources
Medical