add_peripheral_compartment {pharmr}R Documentation

add_peripheral_compartment

Description

Add a peripheral distribution compartment to model

The rate of flow from the central to the peripheral compartment will be parameterized as QPn / VC where VC is the volume of the central compartment. The rate of flow from the peripheral to the central compartment will be parameterized as QPn / VPn where VPn is the volumne of the added peripheral compartment.

If name is set, the peripheral compartment will be added to the compartment with the specified name instead.

Initial estimates:

== =================================================== n == =================================================== 1 (equation could not be rendered, see API doc on website) 2 (equation could not be rendered, see API doc on website) == ===================================================

Usage

add_peripheral_compartment(model, name = NULL)

Arguments

model

(Model) Pharmpy model

name

(str) Name of compartment to add peripheral to.

Value

(Model) Pharmpy model object

See Also

set_peripheral_compartment

remove_peripheral_compartment

Examples

## Not run: 
model <- load_example_model("pheno")
model <- add_peripheral_compartment(model)
model$statements$ode_system

## End(Not run)

[Package pharmr version 1.0.1 Index]