| tl_plot_influence | R Documentation |
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
)
model |
A tidylearn model object |
plot_type |
Type of influence plot: "cook", "leverage", "index" |
threshold_cook |
Cook's distance threshold (default: 4/n) |
threshold_leverage |
Leverage threshold (default: 2*(p+1)/n) |
threshold_dffits |
DFFITS threshold (default: 2*sqrt((p+1)/n)) |
n_labels |
Number of points to label (default: 3) |
label_size |
Text size for labels (default: 3) |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.