Skip to content

Follow up on the bioavailablity fraction implementation #35

@melhemmr

Description

@melhemmr

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]-lambda
A[4]*conc
",
state_init = "A[4] = BSL;"
)
....

Kindly advise.

Murad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions