Skip to content
Discussion options

You must be logged in to vote

Hi @arindampal1981,

I think you need to use dose0(depot) and tad0(depot) to make this
work with arbitrary doses and dosing times.

See:

library(rxode2)
#> rxode2 3.0.4 using 10 threads (see ?getRxThreads)
#>   no cache: create with `rxCreateCache()`

mod1 <-rxode2({
  alag(depot) = tlag;
  C1 = centr/V1;
  C2 = peri/V2;
  diss = (t^b/(MDT^b+t^b));
  CLind = CLindss*((dose0(depot)/Dref))*(1-exp(-0.693*tad0(depot)/T50))
  CL = CL0 + CLind;

  d/dt(depot) =-ka*depot*diss;
  d/dt(centr) =  - CL*C1 - Q*C1 + Q*C2 + ka*depot *diss;
  d/dt(peri)  = Q*C1 - Q*C2;
});
#> using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’

ini <- c(depot=0,centr=0,peri=0);

theta <- c(ka=2,tlag=0.5, CL0 = 1…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@arindampal1981
Comment options

@mattfidler
Comment options

@mattfidler
Comment options

@mattfidler
Comment options

Answer selected by mattfidler
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@arindampal1981
Comment options

@mattfidler
Comment options

@arindampal1981
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #852 on February 21, 2025 23:14.