set_evaluation_step#

pharmpy.modeling.set_evaluation_step(model, idx=-1)[source]#

Set estimation step

Sets estimation step for a model. Methods currently supported are:

FO, FOCE, ITS, LAPLACE, IMPMAP, IMP, SAEM, BAYES

Parameters:
  • model (Model) – Pharmpy model

  • idx (int) – Index of estimation step, default is -1 (last estimation step)

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = set_evaluation_step(model)
>>> model.execution_steps[0]   
EstimationStep('FOCE', interaction=True, parameter_uncertainty_method='SANDWICH', evaluation=True, ...