run_amd#

pharmpy.modeling.run_amd(input, modeltype='pk_oral', cl_init=0.01, vc_init=1, mat_init=0.1, search_space=None, lloq=None, order=None, categorical=None, continuous=None, allometric_variable=None, occasion=None)[source]#

Run Automatic Model Development (AMD) tool

Runs structural modelsearch, IIV building, and resmod

Parameters
  • input (Model) – Read model object/Path to a dataset

  • modeltype (str) – Type of model to build. Either ‘pk_oral’ or ‘pk_iv’

  • cl_init (float) – Initial estimate for the population clearance

  • vc_init (float) – Initial estimate for the central compartment population volume

  • mat_init (float) – Initial estimate for the mean absorption time (not for iv models)

  • search_space (str) – MFL for search space for structural model

  • lloq (float) – Lower limit of quantification. LOQ data will be removed.

  • order (list) – Runorder of components

  • categorical (list) – List of categorical covariates

  • continuous (list) – List of continuouts covariates

  • allometric_variable (str or Symbol) – Variable to use for allometry

  • occasion (str) – Name of occasion column

Returns

Model – Reference to the same model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> run_amd(model)      

See also

run_iiv, run_tool