tl_plot_influence: Plot influence diagnostics

View source: R/diagnostics.R

tl_plot_influenceR Documentation

Plot influence diagnostics

Description

Plot influence diagnostics

Usage

tl_plot_influence(
  model,
  plot_type = "cook",
  threshold_cook = NULL,
  threshold_leverage = NULL,
  threshold_dffits = NULL,
  n_labels = 3,
  label_size = 3
)

Arguments

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)

Value

A ggplot object


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.