-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi Ron, Hope things are OK.
I am tying to implement the F (bioav fraction) for an oral drug and I thought it is as simple as adding in the differentials as a ultiplier for the amount in cmt=1. Something like shown below. However, when I look at our put, it looks like the full amount was available at time=0 in cmt=1.
what is the right way to implement?
library(devtools)
install_github("ronkeizer/PKPDsim")
library(PKPDsim)
p_pkpd<- list(KA= 0.613, CL = 17.3, VC = 12.64, VP = 9, Q = 12.9, F=0.44,
BSL = 574, gg= 0.00019, lambda= 0.04)
pktgi <- new_ode_model(
code = "
dAdt[1] = -KAFA[1]
dAdt[2] = KAFA[1]-(CL/VC)*A[2]-(Q/VC)*A[2]+(Q/VP)*A[3]
dAdt[3] = (Q/VC)*A[2]-(Q/VP)A[3]
conc = A[2]/VC
dAdt[4] = GG * A[4]-lambdaA[4]*conc
",
state_init = "A[4] = BSL;"
)
....
Kindly advise.
Murad