removeTransit: To remove transit compartments from the model

View source: R/addTransit.R

removeTransitR Documentation

To remove transit compartments from the model

Description

To remove transit compartments from the model

Usage

removeTransit(
  ui,
  ntransit,
  central = "central",
  depot = "depot",
  transit = "transit",
  ktr = "ktr",
  ka = "ka"
)

Arguments

ui

The model as a function

ntransit

the number of transit compartments to be added

central

central compartment name

depot

depot compartment name

transit

The number of transit compartments to remove

ktr

the parameter name for the transit compartment rate

ka

absorption rate parameter name

Value

rxode2 model with transit compartment removed

See Also

Other absorption: addTransit(), addWeibullAbs()

Examples


# In this example the transit is added and then a few are removed

readModelDb("PK_1cmt_des") |> addTransit(4) |> removeTransit(3)

readModelDb("PK_1cmt_des") |> addTransit(4) |> removeTransit()

nlmixr2lib documentation built on Oct. 7, 2024, 5:08 p.m.