run_modelfit#

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

Run modelfit tool.

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.

  • tool (str) – Which tool to use for fitting. Currently, ‘nonmem’, ‘nlmixr’, ‘rxode’ can be used

  • 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)