add_indirect_effect: add_indirect_effect

View source: R/functions_wrapper.R

add_indirect_effectR Documentation

add_indirect_effect

Description

Add indirect (turnover) effect

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

  • Production:

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

  • Degradation:

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

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

Models:

  • Linear:

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

  • Emax:

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

  • Sigmoidal:

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

Usage

add_indirect_effect(model, expr, prod = TRUE, variable = NULL)

Arguments

model

(Model) Pharmpy model

expr

(str) Production (TRUE) (default) or degradation (FALSE)

prod

(logical) Name of PD effect function.

variable

(str (optional)) Name of variable to use (if NULL concentration will be used)

Value

(Model) Updated Pharmpy model

Examples

## Not run: 
model <- load_example_model("pheno")
model <- add_indirect_effect(model, expr='linear', prod=TRUE)

## End(Not run)


pharmr documentation built on May 28, 2026, 5:08 p.m.