Learn R Programming

auditor (version 1.3.5)

print.auditor_model_cooksdistance: Prints Model Cook's Distances Summary

Description

Prints Model Cook's Distances Summary

Usage

# S3 method for auditor_model_cooksdistance
print(x, ...)

Arguments

x

an object auditor_model_cooksdistance created with model_cooksdistance function.

...

other parameters

Examples

Run this code
dragons <- DALEX::dragons[1:100, ]

# fit a model
model_lm <- lm(life_length ~ ., data = dragons)

# create an explainer
lm_audit <- audit(model_lm, data = dragons, y = dragons$life_length)

# calculate score
model_cooksdistance(lm_audit)

Run the code above in your browser using DataLab