run_iivsearch#

pharmpy.modeling.run_iivsearch(algorithm, iiv_strategy='no_add', rankfunc='bic', cutoff=None, model=None)#

Run IIVsearch tool. For more details, see IIVsearch.

Parameters
  • algorithm (str) – Which algorithm to run (brute_force, brute_force_no_of_etas, brute_force_block_structure)

  • iiv_strategy (str) – If/how IIV should be added to start model. Possible strategies are ‘no_add’, ‘diagonal’, or ‘fullblock’. Default is ‘no_add’

  • rankfunc (str) – Which ranking function should be used (OFV, AIC, BIC). Default is BIC

  • cutoff (float) – Cutoff for which value of the ranking function that is considered significant. Default is None (all models will be ranked)

  • model (Model) – Pharmpy model

Returns

IIVResults – IIVsearch tool result object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> run_iivsearch('brute_force', model=model)