remove_residuals#

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

Remove residuals

Remove residuals from estimation step.

Parameters:
  • model (Model) – Pharmpy model

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

Returns:

Model – Pharmpy model object

Examples

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