Lag-time with NONMEM and nlmixr2
This is more of a methodology post, pointing out how things are done in nlmixr2 and how it likely doesn’t match what is done in NONMEM (and at least one reason why a drop-in replacement of rxode2 by another tool like PKPDsim, mrgslve, or deSolve is not an easy project); For the impatient, in focei lag time (and other dose based events) have improved in stability for this release of nlmixr2.