Learn R Programming

pharmr (version 0.96.0)

add_peripheral_compartment: 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.

Initial estimates:

== =================================================== n == =================================================== 1 :math:{CL} = {CL'}, :math:{VC} = {VC'}, :math:{QP1} = {CL'} and :math:{VP1} = {VC'} * 0.05 2 :math:{QP1} = {QP1' * 0.1}, :math:{VP1} = {VP1'}, :math:{QP2} = {QP1' * 0.9} and :math:{VP2} = {VP1'} == ===================================================

Usage

add_peripheral_compartment(model)

Value

(Model) Pharmpy model object

Arguments

model

(Model) Pharmpy model

See Also

set_peripheral_compartment

remove_peripheral_compartment

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- add_peripheral_compartment(model)
model$statements$ode_system
}

Run the code above in your browser using DataLab