Learn R Programming

nlmixr2lib (version 0.3.0)

convertEmaxHill: Convert linear effect to Emax-Hill effect

Description

Convert linear effect to Emax-Hill effect

Usage

convertEmaxHill(
  ui,
  emax = "Emax",
  ec50 = "EC50",
  g = "g",
  imax = "Imax",
  ic50 = "IC50",
  ek = c("Ik", "Ek"),
  cc = c("Ec", "Cc")
)

Value

Model with the linear effect converted to an Emax effect

Arguments

ui

rxode2 model

emax

Emax parameter

ec50

EC50 parameter

g

hill coefficient

imax

Imax parameter used when input model contains "Ik" instead of "Ek"

ic50

IC50 parameter used when input model contains "Ik" instead of "Ek"

ek

simulation linear constant

cc

the concentration value

Author

Matthew L. Fidler

Examples

Run this code

readModelDb("PK_2cmt_no_depot") |>
  addIndirectLin(stim="in") |>
  convertEmaxHill()

# can also specify as emax=1

readModelDb("PK_2cmt_no_depot") |>
  addIndirectLin(stim="in") |>
  convertEmaxHill(emax=1)

Run the code above in your browser using DataLab