nlmixrdevelopment / nlmixr

nlmixr: an R package for population PKPD modeling
https://nlmixrdevelopment.github.io/nlmixr/
GNU General Public License v2.0
115 stars 45 forks source link

Model SC and IV dosing simultaneously? #47

Closed KyleBarrett closed 6 years ago

KyleBarrett commented 6 years ago

Is it possible to have extravascular and intravascular dosing regimens within the same nnlmixr model?

mattfidler commented 6 years ago

Yes, it is when using ODEs.

If you are talking about subcutaneous + IV it would just be adding a the correct event information to input data set. If you are familiar with nonmem, the easiest way to do this is to use the nmDataConvert function. Otherwise you code the events in the EVID column;

The EVIDs match the evid definition of RxODE

https://nlmixrdevelopment.github.io/RxODE/articles/RxODE-events.html

mattfidler commented 6 years ago

Therefore a bolus dose to compartment 1 would be 101 and a Infusion/zero order release would start with 100101 with the amount defining the zero order release rate. It would stop with 100101 with a negative amount removing that zero order release rate.

KyleBarrett commented 6 years ago

Thanks so much