plotDiagnostics: Plot Results from Diagnostics Collected During Model Fitting

View source: R/plot_diagnostics.R

plotDiagnosticsR Documentation

Plot Results from Diagnostics Collected During Model Fitting

Description

This function plots various diagnostics collected during the model fitting resulting from a call to SLOPE() provided that diagnostics = TRUE.

Usage

plotDiagnostics(
  object,
  ind = max(object$diagnostics$penalty),
  xvar = c("time", "iteration")
)

Arguments

object

an object of class "SLOPE".

ind

either "last"

xvar

what to place on the x axis. iteration plots each iteration, time plots the wall-clock time.

Value

Invisibly returns NULL. The function is called for its side effect of producing a plot.

See Also

SLOPE()

Examples

x <- SLOPE(abalone$x, abalone$y, diagnostics = TRUE)
plotDiagnostics(x)

SLOPE documentation built on Jan. 28, 2026, 9:07 a.m.