set_tmdd#

pharmpy.modeling.set_tmdd(model, type, dv_types=None)[source]#

Sets target mediated drug disposition

Implemented target mediated drug disposition (TMDD) models are:

  • Full model

  • Irreversible binding approximation (IB)

  • Constant total receptor approximation (CR)

  • Irreversible binding and constant total receptor approximation (CR+IB)

  • Quasi steady-state approximation (QSS)

  • Wagner

  • Michaelis-Menten approximation (MMAPP)

Parameters:
  • model (Model) – Pharmpy model

  • type (str) – Type of TMDD model

  • dv_types (dict) – Dictionary of DV types for TMDD models with multiple DVs (e.g. dv_types = {‘drug’ : 1, ‘target’: 2}). Default is None which means that all observations are treated as drug observations. For dv = 1 the only allowed keys are ‘drug’ and ‘drug_tot’. If no DV for drug is specified then (free) drug will have dv = 1.

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = set_tmdd(model, "full")