You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear @ronkeizer,
Can you please advise how would one try to write an ODE with an if/else statement in PKPDsim? I'm trying to write the following from Berkeley Madonna but not sure about the syntax/structure in PKPDsim...
Thanks in advance,
Mohamed
In principle, you can write any C/C++ code inside a PKPDsim model declaration. So in C the way to write an if-statement is basically the same as in R, which is in your case something like:
You’ll notice that in PKPDsim you have to work with numerical indices for the compartments (like NONMEM), it doesn’t support labeled compartments.
I didn’t test the above code.
Dear @ronkeizer,
Can you please advise how would one try to write an ODE with an if/else statement in PKPDsim? I'm trying to write the following from Berkeley Madonna but not sure about the syntax/structure in PKPDsim...
Thanks in advance,
Mohamed
d/dt(Imax_FLT3) =
IF (C_FLT3>KC50_FLT3) THEN kdes * (1 - Imax_FLT3 * (1 + fu_FLT3 * C_FLT3/KC50_FLT3 )) ELSE kdes * (1 - Imax_FLT3 * (1 - fu_FLT3 * C_FLT3/KC50_FLT3 ))
The text was updated successfully, but these errors were encountered: