This function plots various diagnostics collected during the model fitting resulting from a call to SLOPE() provided that diagnostics = TRUE.
SLOPE()
diagnostics = TRUE
plotDiagnostics( object, ind = max(object$diagnostics$penalty), xvar = c("time", "iteration"), yvar, ... )
an object of class "SLOPE".
"SLOPE"
either "last"
what to place on the x axis. iteration plots each iteration, time plots the wall-clock time.
iteration
time
deprecated (and ignored)
other arguments that will be used to modify the call to lattice::xyplot()
lattice::xyplot()
An object of class "trellis", which, unless stored in a variable, will be plotted when its default print() method is called.
"trellis"
print()
# NOT RUN { x <- SLOPE(abalone$x, abalone$y, alpha = 2, diagnostics = TRUE) plotDiagnostics(x) # }
Run the code above in your browser using DataCamp Workspace