plot.ssr {assist} | R Documentation |
Generate Diagnostic Plots for a ssr Object
Description
Creates a set of plots suitable for assessing a fitted smoothing spline model of class ssr
.
Usage
## S3 method for class 'ssr'
plot(x, ask=FALSE, ...)
Arguments
x |
a |
ask |
if TRUE, plot.ssr operates in interactive mode. |
... |
Other options used for plot, currently inactive. |
Details
This function is a method for the generic function plot for class ssr
.
It can be invoked by calling plot for an object of the appropriate class,
or directly by calling plot.ssr regardless of the class of the object.
An appropriate x-y plot is produced to display diagnostic plots. These can be one or all of the following choices:
Estimate of function with CIs
Residuals against Fitted values
Response against Fitted values
Normal QQplot of Residuals
The first plot of estimate of function with CIs is only useful for univariate smoothing spline fits.
When ask=TRUE, rather than produce each plot sequentially, plot.ssr displays a menu listing all the plots that can be produced. If the menu is not desired but a pause between plots is still wanted one must set par(ask=TRUE) before invoking this command with argument ask=FALSE.
Author(s)
Chunlei Ke chunlei_ke@yahoo.com and Yuedong Wang yuedong@pstat.ucsb.edu
See Also
plot
, ssr
, predict.ssr
Examples
## Not run: library(MASS)
## Not run: fit1<- ssr(accel~times, data=mcycle, scale=TRUE, rk=cubic(times))
## Not run: plot(fit1,ask=TRUE)