predict_influential_outliers#

pharmpy.tools.predict_influential_outliers(model, results, outlier_cutoff=3.0, influential_cutoff=3.84)[source]#

Predict influential outliers for a model using a machine learning model.

Please refer to www.page-meeting.org/?abstract=10029 for more information on training and estimated precision and accuracy.

Parameters:
  • model (Model) – Pharmpy model

  • results (ModelfitResults) – Results for model

  • outlier_cutoff (float) – Cutoff threshold for a residual signaling an outlier

  • influential_cutoff (float) – Cutoff threshold for a dofv signaling an influential individual

Returns:

pd.DataFrame – Dataframe over the individuals with a outliers and dofv columns containing the raw predictions and influential, outlier and influential_outlier boolean columns.