create_basic_pk_model#

pharmpy.modeling.create_basic_pk_model(administration='iv', dataset_path=None, cl_init=0.01, vc_init=1.0, mat_init=0.1)[source]#

Creates a basic pk model of given type. The model will be a one compartment model, with first order elimination and in the case of oral administration first order absorption with no absorption delay. The elimination rate will be \(CL/V\) and the absorption rate will be \(1/MAT\)

Parameters:
  • administration (str) – Type of PK model to create. Supported are ‘iv’, ‘oral’ and ‘ivoral’

  • dataset_path (str) – Optional path to a dataset

  • cl_init (float) – Initial estimate of the clearance parameter

  • vc_init (float) – Initial estimate of the central volume parameter

  • mat_init (float) – Initial estimate of the mean absorption time parameter (if applicable)

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = create_basic_pk_model('oral')