Skip to content

transit absorption #4

@vjd

Description

@vjd

hi @kylebmetrum -

What parts are missing to be able to simulate a transit curve? Not sure about the following

  1. is lgamma in the correct representation in the depot compartment?
  2. not sure if podo is required here, but it seems to be the dose that is scaled by bio at least in the paper
code <- '
// Table 3 from Savic 2007

$PARAM cl = 17.2, vc = 45.1, ka = 0.38, mtt = 0.37, bio=1, n = 20.1, podo=100
$SET delta=0.1

$CMT depot cen

$MAIN
  double k = cl/vc;
  double ktr = (n+1)/mtt;
  
  $ODE
  dxdt_depot = exp(log(bio*podo)+log(ktr)+n*log(ktr*SOLVERTIME)-ktr*SOLVERTIME-lgamma(n+1))-ka*depot;
  dxdt_cen = ka*depot-k*cen;

$TABLE
double CP = cen/vc;
'




mod <- mcode_cache("transit", code)
mod %>% ev(amt = 100) %>% 
  mrgsim %>% plot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions