Plot influence diagnostics
tl_plot_influence(
model,
plot_type = "cook",
threshold_cook = NULL,
threshold_leverage = NULL,
threshold_dffits = NULL,
n_labels = 3,
label_size = 3
)A ggplot object
A tidylearn model object
Type of influence plot: "cook", "leverage", "index"
Cook's distance threshold (default: 4/n)
Leverage threshold (default: 2*(p+1)/n)
DFFITS threshold (default: 2*sqrt((p+1)/n))
Number of points to label (default: 3)
Text size for labels (default: 3)