Compute case-level and grouped influence summaries using studentized residuals, leverage, and Cook's distance.

influence_diagnostics(object, cluster = NULL, outcome = NULL, top_n = 10L)

Arguments

object

A fitted mars object.

cluster

Optional cluster column in object$data.

outcome

Optional outcome column in object$data.

top_n

Number of top influential rows to retain.

Value

A list with row-level influence diagnostics, grouped summaries, thresholds, and top influential rows.