Open krinaj opened 7 years ago
Hi Krina,
The problem appears to be a misunderstanding about the correct signature for generalOdeModel_rk45. The correct signature is:
generalOdeModel_rk45(ODE system, nCmt,
time, amt, rate, ii, evid, cmt, addl, ss,
theta, biovar, tlag,
rel tol, abs tol, max step)
This is for Torsten version 0.83. All of the model parameters need to be passed in theta (parms in your example) even if they are fixed values. Your arguments CL, V1, V2 and Q are not recognized by the compiler. Also keep in mind that Stan only understands the order and types of function arguments. Names are not recognized.
I should also mention that the active github repo has moved to https://github.com/metrumresearchgroup/example-models.
Regards, Bill
thanks, Bill. Very helpful. I am now able to compile the stan model.
Hello,
I am learning stan for PK PD modeling and running my model that I wrote using your neutropenia example. In my model, I just need to estimate Ka and Kdeg. All other parameters are supplied in the dataset. Below is the code. I am getting error message: SYNTAX ERROR, MESSAGE(S) FROM PARSER:
ERROR at line 111
109: V2[start[i]:end[i]], 110: Q[start[i]:end[i]], 111: parms, 1e-6, 1e-6, 1e-6); ^ 112:
PARSER EXPECTED: ","
I have spent a lot of time trying to debug this, but no luck. Any help/suggestions will be appreciated.
Thanks, Krina