addEffectCmtLin {nlmixr2lib} | R Documentation |
Add effect compartment
Description
Add effect compartment
Usage
addEffectCmtLin(
ui,
ke0 = "ke0",
cc = "Cc",
ce = "Ce",
ek = "Ek",
effect = "effect"
)
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 |
Value
a model with an effect compartment attached
Author(s)
Matthew L. Fidler
Examples
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()
[Package nlmixr2lib version 0.3.0 Index]