predict_outliers function

predict_outliers

predict_outliers

Predict outliers for a model using a machine learning model.

See the :ref:simeval <Individual OFV summary> documentation for a definition of the residual

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

predict_outliers(model, results, cutoff = 3)

Arguments

  • model: (Model) Pharmpy model
  • results: (ModelfitResults) ModelfitResults for the model
  • cutoff: (numeric) Cutoff threshold for a residual signaling an outlier

Returns

(data.frame) Dataframe over the individuals with a residual column containing the raw predicted residuals and a outlier column with a boolean to tell whether the individual is an outlier or not.

Examples

## Not run: model <- load_example_model("pheno") results <- load_example_modelfit_results("pheno") predict_outliers(model, results) ## End(Not run)

See Also

predict_influential_individuals

predict_influential_outliers

  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04