load_example_model#

pharmpy.modeling.load_example_model(name)[source]#

Load an example model

Load an example model from models built into Pharmpy

Parameters:

name (str) – Name of the model. Currently available models are “pheno” and “pheno_linear”

Returns:

Model – Loaded model object

Example

>>> from pharmpy.modeling import load_example_model
>>> model = load_example_model("pheno")
>>> model.statements
TVCL = POP_CL⋅WGT
TVV = POP_VC⋅WGT
      ⎧TVV⋅(COVAPGR + 1)  for APGR < 5

TVV = ⎩       TVV          otherwise
           ETA_CL
CL = TVCL⋅ℯ
          ETA_VC
VC = TVV⋅ℯ
V = VC
S₁ = VC
Bolus(AMT, admid=1) → CENTRAL
┌───────┐
│CENTRAL│──CL/V→
└───────┘
    A_CENTRAL(t)
    ────────────
F =      S₁
Y = EPS₁⋅F + F