add_effect_compartment: add_effect_compartment

View source: R/functions_wrapper.R

add_effect_compartmentR Documentation

add_effect_compartment

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)

Usage

add_effect_compartment(model, expr)

Arguments

model

(Model) Pharmpy model

expr

(str) Name of the PD effect function.

Value

(Model) Pharmpy model object

Examples

## Not run: 
model <- load_example_model("pheno")
model <- add_effect_compartment(model, "linear")
model$statements$ode_system$find_compartment("EFFECT")

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.