add_effect_compartment function

add_effect_compartment

add_effect_compartment

Add an effect compartment.

Implemented PD models are:

  • Linear:

(equation could not be rendered, see API doc on website)

  • Emax:

(equation could not be rendered, see API doc on website)

  • Step effect:

(equation could not be rendered, see API doc on website)

  • Sigmoidal:

(equation could not be rendered, see API doc on website)

  • Log-linear:

(equation could not be rendered, see API doc on website)

(equation could not be rendered, see API doc on website)

add_effect_compartment(model, expr)

Arguments

  • model: (Model) Pharmpy model
  • expr: (str) Name of the PD effect function.

Returns

(Model) Pharmpy model object

Description

Add an effect compartment.

Implemented PD models are:

  • Linear:

(equation could not be rendered, see API doc on website)

  • Emax:

(equation could not be rendered, see API doc on website)

  • Step effect:

(equation could not be rendered, see API doc on website)

  • Sigmoidal:

(equation could not be rendered, see API doc on website)

  • Log-linear:

(equation could not be rendered, see API doc on website)

(equation could not be rendered, see API doc on website)

Examples

## Not run: model <- load_example_model("pheno") model <- add_effect_compartment(model, "linear") model$statements$ode_system$find_compartment("EFFECT") ## End(Not run)
  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04