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

Can nlmixr solve General Linear Models #407

Open faisalhhu opened 3 years ago

faisalhhu commented 3 years ago

Can we run Generalized Linear Models (ADVAN5 based in NONMEM) using nlmixr? If yes, any example model if available may help.

mattfidler commented 3 years ago

Not currently. However draft inductive linearization is included in the next RxODE which degrades to generalized linear models. In theory it could eventually work with nlmixr.

faisalhhu commented 3 years ago

This means at present we can not run models coded as ADVAN 5/7 subroutine and we only can code and run our models as according to ADVAN6 subroutine?

mattfidler commented 3 years ago

In the current implementation of inductive linearization you would write the Odes the same between the routines and have RxODE/syengine/parsing set up the matrix exponential for generalized linear models.

Advan 5 and 7 coding wouldn't apply.

Also I don't think Advan6 is the same Ode solver that nlmixr uses by default. Rather we use lsoda or liblsoda which is closer to advan13.

mattfidler commented 3 years ago

And yes at present you need to run your systems as odes

mattfidler commented 3 years ago

Just tested, doesn't work yet but will try with next release.

faisalhhu commented 3 years ago

Thank you for looking. It will be helpful. Looking forward to it. Many thanks

mattfidler commented 3 years ago

This feature will skip the next release but it will be worked on.