Generate diagnostic plots for an asm
regression model
asm
regression modelGenerates plots of residuals vs fitted values, and the estimated convex loss and antitonic score functions based on a fitted asm
regression model
## S3 method for class 'asm' plot( x, which = c(1, 2, 3), caption = list("Residuals vs fitted", "Convex loss function", "Antitonic score function"), extend.ylim.f = 0.08, id.n = 3, labels.id = rownames(x$residuals), label.pos = c(4, 2), ext.xlim.f = 0.08, grid.length.f = 10, ask = prod(par("mfcol")) < length(which) && dev.interactive(), ... )
x
: asm objectwhich
: a subset of the plots to be displayedcaption
: a list of captions for the plotsextend.ylim.f
: factor to extend the y-axis limits for the residuals vs fitted plotid.n
: number of residuals to label in the residuals vs fitted plotlabels.id
: labels for the residuals in the residuals vs fitted plotlabel.pos
: position of the labels in the residuals vs fitted plotext.xlim.f
: factor to extend the x-axis limits for the convex loss and antitonic score function plotsgrid.length.f
: the number of grid points for the convex loss plot is defined as grid.length.f * length(x$residuals)ask
: logical; if TRUE, the user is asked before each plot...
: additional arguments to ensure compatibility with the generic function plot()No return value
model = asm(mpg ~ cyl + hp + disp, data=mtcars) plot(model)
Useful links