metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
129 stars 36 forks source link

Smart alag record insert #1185

Closed kylebaron closed 3 months ago

kylebaron commented 5 months ago

Lag times can really increase simulation time, especially when the data set has explicit doses.

Rather that inserting right away and then sorting, try walking forward in time to find out the exact right place to insert.