remove_predictions#

pharmpy.modeling.remove_predictions(model, to_remove=None)[source]#

Remove predictions and/or residuals

Remove predictions from estimation step.

Parameters:
  • model (Model) – Pharmpy model

  • to_remove (Optional[Iterable[str]]) – Predictions to remove

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = remove_predictions(model)
>>> model.execution_steps[-1].predictions
()