Skip to contents

Thin extender over performance::check_model that returns the diagnostic-plot grob list for a fitted model.

Usage

morie_performance_check_model(model, ...)

Arguments

model

A fitted model object supported by insight / performance.

...

Further arguments forwarded to performance::check_model (e.g. check, panel, theme).

Value

A list with $method = "performance::check_model" and $raw (the upstream check_model object).

Examples

if (requireNamespace("performance", quietly = TRUE) &&
    requireNamespace("see", quietly = TRUE)) {
  set.seed(1)
  df <- data.frame(y = rnorm(50), x = rnorm(50))
  res <- morie_performance_check_model(stats::lm(y ~ x, df))
  class(res)
}
#> [1] "list"