set_initial_condition {pharmr}R Documentation

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)

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

Value

(model) Pharmpy model object

Examples

## Not run: 
model <- load_example_model("pheno")
model <- set_initial_condition(model, "CENTRAL", 10)
get_initial_conditions(model)

## End(Not run)


[Package pharmr version 1.0.1 Index]