What parts are missing to be able to simulate a transit curve? Not sure about the following
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
hi @kylebmetrum -
What parts are missing to be able to simulate a transit curve? Not sure about the following
lgammain the correct representation in the depot compartment?podois required here, but it seems to be the dose that is scaled bybioat least in the paper