-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error "'alag(.)'/'rate(.)'/'dur(.)' cannot depend on the state values" only when fitting a data structure that once worked #526
Comments
It seems that the You can use However since it takes a bit of time to run, I'm uploading the fit object without the table attached so I can debug by simply adding |
Hi @mattfidler, After updating nlmixr2 and rxode2 to version 2.0.9 and 2.0.12, respectively, I have been encountering the same issue with some models that used to run just fine prior to updating. I was actually (on and off) working on a reproducible example to share with you before I wanted to contact you, however, I didn't manage to successfully generate one at the time of writing. The reason I'm posting now is that I might have some additional information, which I hope helps in finding a solution to this issue. I noticed that changing slight things in my model specification (e.g. reducing the number of compartments, removing eta's) leads to different errors that might be related to this issue: And: which continues indefinitely (or at least for the many hours I left my nlmixr2 to run). One thing that all these models have in common in my case is that they incorporate a covariate when defining parameters in the Not sure if it is of any help, but figured it would be better than nothing! Best regards, |
Pull #529 fixes the issue for me (at least from the fit, the table output is produced). I can't say about the rest of the issues you describe. |
Dear Matt and Wouter, many thanks for far. Actually, setting foceiControl(calcTables=FALSE) worked for me, because I can access the $parFixedDf table. Of course, it would the nice to figure out what happens with addTable(fit), but for the moment, I guess, the issue is pragmatically solved for my purpose. Many thanks and best wishes Andreas |
Thanks @andreasmeid
I will mention it on this thread when it is done. |
Hi @andreasmeid
Will graciously fail and return the fit without the table step if something like this happens in the future. |
Dear Matt, Just wanted to let you know that also in my case the issues mentioned earlier are resolved after updating to the current development version of nlmixr2/rxode2. Thanks a lot! :) Best regards, |
Glad to hear it. |
I'm going to close this for now. |
Dear Matt,
I just have a strange problem with nlmixr2: When trying to fit a QSP model to two data sets that are actually identically structured, everything works fine with one data set, but with the other data set I get the inexplicable error message "'alag(.)'/'rate(.)'/'dur(.)' cannot depend on the state values". I attached the necessary elements so that the code below can be run (cave: estimation might take considerable time).
Where could my error lie and how should I proceed alternatively?
Many thanks and best wishes
Andreas
load("test.RData")
library(rxode2)
library(nlmixr2)
with potassium_data, everthing works fine
fit_potassium_data_oral <- nlmixr2(qsp_model_wo_max, potassium_data, est="focei")
with potassium_data_oral, the subsequent error message is returned
fit_potassium_data_oral <- nlmixr2(qsp_model_wo_max, potassium_data_oral, est="focei")
unhandled error message: EE:[lsoda] 500000 steps taken before reaching tout
@(lsoda.c:750)691)
Error : 'alag(.)'/'rate(.)'/'dur(.)' cannot depend on the state values
test.zip
The text was updated successfully, but these errors were encountered: