predict_outliers {pharmr}R Documentation

predict_outliers

Description

Predict outliers for a model using a machine learning model.

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

Usage

predict_outliers(model, results, cutoff = 3)

Arguments

model

(Model) Pharmpy model

results

(ModelfitResults) ModelfitResults for the model

cutoff

(numeric) Cutoff threshold for a residual singalling an outlier

Value

(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.

See Also

predict_influential_individuals

predict_influential_outliers

Examples

## Not run: 
model <- load_example_model("pheno")
results <- model$modelfit_results
predict_outliers(model, results)

## End(Not run)

[Package pharmr version 0.96.0 Index]