-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receiving drastically different results when comparing ODEs with linCmt() #635
Comments
Hi Wouter, The These two tests were part of the original tests for the I am re-running these again to see if anything changed in the solutions. As a note, the ODE solutions and |
Looking at the models above again, we ran the proportional errors only. |
Hi Matthew, Thanks for your very fast response! I am indeed aware that slight differences in results are to be expected when comparing ODEs with linCmt(), however, when I was comparing these two types of model specification some parameter estimates turned out to increase/decrease by more than 25%. I appreciate you re-running these tests to see if you can reproduce the differences I find between specifying a two-compartment model with ODEs and linCmt(). Best, (p.s. I see now that I made a mistake in my initial parameter values and meant to switch around initial values for V2 and Q, doing so makes the population parameter estimates a lot more comparable but predictions and individual parameter estimates still seem to be way off for the solved model) |
I can see there are differences between the two, but I'm unsure why. We have many tests that test for equality of the solved and ODE systems. The only thing I can think of is that perhaps using a multi-exponential rather than an advan solution would possibly do a bit better. This is only a possibility and takes alot of time to code, so I'm not going to immediately do anything for except for file a bug in |
Thanks again, I understand that you won't immediately be able to do anything about this issue. For now I'll continue using ODEs for my model development and I'll keep an eye out on the RxODE github to follow any progress. |
I see another |
Thanks for coming back to me, I haven't had the time to read through it in depth but it certainly looks interesting as I also want to incorporate a non-zero initial condition in the model that I am working on. I'll make sure to follow that issue on the rxode2 GitHub as well and am very curious to see if this alternative analytical solution can at some point be incorporated in nlmixr2/rxode2! |
In theory the non-zero initial condition currently works, if the system is stable. The current solution matches NONMEM's output (based on nonmem2rx check so far). |
Hi @mattfidler, I am encountering an issue when comparing a 2-compartment model specified using ODEs with a 2-compartment model specified using linCmt(). When fitting these two models to the same data they produce different results. Below I pasted a simplified version of my code/models, using the simulated Infusion_2CPT data (my original data also only includes infusion data and is structured in a similar manner). Running this code reproduces the issue I am experiencing with my original model. This got me wondering whether one of the models presented here is not specified correctly in nlmixr syntax and brings me to the question of why switching from ODEs to linCmt() might in this case produce different results?
Best regards,
Wouter
The text was updated successfully, but these errors were encountered: