Learn R Programming

pharmr (version 1.4.0)

set_initial_condition: set_initial_condition

Description

Set an initial condition for the ode system

If the initial condition is already set it will be updated. If the initial condition is set to zero at time zero it will be removed (since the default is 0).

Usage

set_initial_condition(model, compartment, expression, time = 0)

Value

(model) Pharmpy model object

Arguments

model

(Model) Pharmpy model

compartment

(str) Name of the compartment

expression

(numeric or str or Expr) The expression of the initial condition

time

(numeric or str or Expr) Time point. Default 0

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model <- set_initial_condition(model, "CENTRAL", 10)
get_initial_conditions(model)
}

Run the code above in your browser using DataLab