plot.asm {asm} | R Documentation |
Generate diagnostic plots for an asm
regression model
Description
Generates plots of residuals vs fitted values, and the estimated convex loss
and antitonic score functions based on a fitted asm
regression model
Usage
## 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(),
...
)
Arguments
x |
asm object |
which |
a subset of the plots to be displayed |
caption |
a list of captions for the plots |
extend.ylim.f |
factor to extend the y-axis limits for the residuals vs fitted plot |
id.n |
number of residuals to label in the residuals vs fitted plot |
labels.id |
labels for the residuals in the residuals vs fitted plot |
label.pos |
position of the labels in the residuals vs fitted plot |
ext.xlim.f |
factor to extend the x-axis limits for the convex loss and antitonic score function plots |
grid.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() |
Value
No return value
Examples
model = asm(mpg ~ cyl + hp + disp, data=mtcars)
plot(model)