Learn R Programming

nlmixr2lib (version 0.3.0)

addCmtProp: Add a property to a compartment

Description

Add a property to a compartment

Usage

addCmtProp(ui, prop = c("f", "lag", "dur", "rate", "ini"), cmt)

addBioavailability(ui, cmt)

addLag(ui, cmt)

addDur(ui, cmt)

addRate(ui, cmt)

addIni(ui, cmt)

Value

rxode2 ui object with property applied

Arguments

ui

rxode2 ui object

prop

property to add to a compartment:

- F: bioavailability

- lag: absorption lag time

- dur: modeled duration of infusion

- rate: modeled infusion rate

- ini: initial value of the compartment

cmt

compartment to apply the property to

Functions

  • addBioavailability(): Adds the bioavailability to a compartment in the model

  • addLag(): Adds the lag-time to a compartment in the model

  • addDur(): Adds the modeled duration to a compartment in the model

  • addRate(): Adds the modeled rate to a compartment in the model

  • addIni(): Adds the initial value to the compartment

Author

Matthew L. Fidler

Examples

Run this code

readModelDb("PK_3cmt_des") |> addCmtProp("f", "depot")

readModelDb("PK_3cmt_des") |> addBioavailability(depot)

readModelDb("PK_3cmt_des") |> addLag(depot)

readModelDb("PK_3cmt_des") |> addDur(depot)

readModelDb("PK_3cmt_des") |> addRate(depot)

readModelDb("PK_3cmt_des") |> addIni(depot)

Run the code above in your browser using DataLab