A beginner's walkthrough of pharmacokinetic/pharmacodynamic (PK/PD) simulation using the mrgsolve package in R. The author implements a two-compartment population PK model for ceftriaxone based on a published paper, simulating 1000 virtual patients via Monte Carlo methods to calculate Probability of Target Attainment (PTA) across different MIC values. The tutorial covers model setup with fixed and random effects (theta/eta), dosing event specification, and explores scenarios including varying creatinine clearance, hypoalbuminemia with a nonlinear protein binding equation, and experimental q48h dosing. Results showed surprisingly high PTA even under worst-case conditions, raising questions the author couldn't fully explain.
Table of contents
MotivationsObjectives:What Is Population PKWhat Are The Parameters of Interest On a Paper?Let’s CodeOpportunities For ImprovementLessons learntSort: