run_modelfit#

pharmpy.tools.run_modelfit(model_or_models=None, n=None, **kwargs)#

Run modelfit tool.

Note

For most use cases the pharmpy.tools.fit() function is a more user friendly option for fitting a model.

Parameters:
  • model_or_models (Model) – A list of models are one single model object

  • n (int) – Number of models to fit. This is only used if the tool is going to be combined with other tools

  • kwargs – Arguments to pass to tool

Returns:

ModelfitResults – Modelfit tool result object

Examples

>>> from pharmpy.modeling import load_example_model
>>> model = load_example_model("pheno")
>>> from pharmpy.tools import run_modelfit     
>>> run_modelfit(model)