fit#
- pharmpy.tools.fit(model_or_models, esttool=None, path=None, context=None)[source]#
Fit models.
- Parameters:
model_or_models (Model | list[Model]) – List of models or one single model
esttool (str) – Estimation tool to use. None to use default
path (Path | str) – Path to fit directory
context (Context) – Run in this context
- Returns:
ModelfitResults | list[ModelfitResults] – ModelfitResults for the model or models
Examples
>>> from pharmpy.modeling import load_example_model >>> from pharmpy.tools import fit >>> model = load_example_model("pheno") >>> results = fit(model)
See also