Learn R Programming

fields (version 1.7.2)

plot.sreg: Plots smoothing spline regression object

Description

Plots a series of three plots that summarizes the smoothing spline regression object.

Usage

plot.sreg
(out, main = NA, digits = 4, which = c(TRUE, TRUE, TRUE, TRUE), graphics.reset
= TRUE, ...)

Arguments

Details

This function creates four summary plots of the sreg object-- the results of fitting a cubic smoothing spline to a data set. The first plot is a plot of the sreg fit(s) to the data. The second is predicted values vs residuals, and the third is effective number of parameters vs estimated average squared prediction errors. The fourth is a histogram ( or boxplots) of residuals.

See Also

sreg, plot

Examples

Run this code
fit<-sreg(rat.diet$t,rat.diet$con)
# fit rat data
plot(fit)                       # plot sreg fit

Run the code above in your browser using DataLab