inst/templates/MB_model_rxode2.R

my_fcn = function (){
   description <- "One compartment PK model with linear clearance"
   ini({
       lka <- 0.45
       label("Absorption rate (Ka)")
       lcl <- 1
       label("Clearance (CL)")
       lvc <- 3.45
       label("Central volume of distribution (V)")
       propSd <- c(0, 0.5)
       label("Proportional residual error (fraction)")
   })
   model({
       ka <- exp(lka)
       cl <- exp(lcl)
       vc <- exp(lvc)
       cp <- linCmt()
       cp ~ prop(propSd)
   })
}

Try the ruminate package in your browser

Any scripts or data that you put into this service are public.

ruminate documentation built on Nov. 5, 2025, 5:34 p.m.