metrumresearchgroup / mrgsolve

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

Fix behavior for regimen::ii() #1170

Closed kylebaron closed 7 months ago

kylebaron commented 7 months ago

See #1169 for details. This PR changes regimen::ii() to just just update the dose interval, with no other fancy tricks. Look at the working example in #1169; I think that's what we want.

I put a note in the tests that I took the cutoffs for those tests from looking at a plot of the profile. The plot looks right to me. The tests check that the pattern we get is what we'd expect from the model code. But the exact cutoffs aren't obvious.

@kyleam I'd like to send this through as a hotfix if possible. As for general reliability, I've been kicking the tires for several hours on this working up a blog post and no other surprises found.