run_allometry#

pharmpy.tools.run_allometry(model=None, results=None, allometric_variable='WT', reference_value=70, parameters=None, initials=None, lower_bounds=None, upper_bounds=None, fixed=True, **kwargs)#

Run allometry tool. For more details, see allometry.

Parameters:
  • model (Model) – Pharmpy model

  • results (ModelfitResults) – Results for model

  • allometric_variable (str) – Name of the variable to use for allometric scaling (default is WT)

  • reference_value (float) – Reference value for the allometric variable (default is 70)

  • parameters (list) – Parameters to apply scaling to (default is all CL, Q and V parameters)

  • initials (list) – Initial estimates for the exponents. (default is to use 0.75 for CL and Qs and 1 for Vs)

  • lower_bounds (list) – Lower bounds for the exponents. (default is 0 for all parameters)

  • upper_bounds (list) – Upper bounds for the exponents. (default is 2 for all parameters)

  • fixed (bool) – Should the exponents be fixed or not. (default True

  • kwargs – Arguments to pass to tool

Returns:

AllometryResults – Allometry tool result object

Examples

>>> from pharmpy.modeling import *
>>> from pharmpy.tools import run_allometry, load_example_modelfit_results
>>> model = load_example_model("pheno")
>>> results = load_example_modelfit_results("pheno")
>>> run_allometry(model=model, results=results, allometric_variable='WGT')