Learn R Programming

nlmixr2lib (version 0.3.0)

addEffectCmtLin: Add effect compartment

Description

Add effect compartment

Usage

addEffectCmtLin(
  ui,
  ke0 = "ke0",
  cc = "Cc",
  ce = "Ce",
  ek = "Ek",
  effect = "effect"
)

Value

a model with an effect compartment attached

Arguments

ui

rxode2 model

ke0

This is the effect compartment keo rate

cc

the concentration value

ce

This is the concentration in the effect compartment

ek

simulation linear constant

effect

the effect variable that will be modeled

Author

Matthew L. Fidler

Examples

Run this code

readModelDb("PK_2cmt_no_depot") |>
   addEffectCmtLin()

# Can also be changed to the more typical Emax with constant (estimated) baselie
readModelDb("PK_2cmt_no_depot") |>
  addEffectCmtLin() |>
  convertEmaxHill() |>
  addBaselineConst()

Run the code above in your browser using DataLab