Learn R Programming

assist (version 2.0)

plot.ssr: 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

plot.ssr(x, ask=FALSE, ...)

Arguments

x
a ssr object.
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.

See Also

plot, ssr, predict.ssr

Examples

Run this code
library(MASS)
fit1<- ssr(accel~times, data=mcycle, scale=TRUE, rk=cubic(times))
plot(fit1,ask=TRUE)

Run the code above in your browser using DataLab