Skip to contents

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

Usage

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.

Examples

if (FALSE) { # \dontrun{
fit <- mars(
  data = teacher_expectancy,
  studyID = "study",
  effectID = NULL,
  sample_size = NULL,
  formula = yi ~ 1,
  variance = "vi",
  varcov_type = "univariate",
  structure = "univariate"
)
influence_diagnostics(fit, top_n = 5)
} # }