Learn R Programming

locfit (version 1.1-3)

plot.gcvplot: Produce a cross-validation plot.

Description

Plots the value of the GCV (or other statistic) in a gcvplot object against the degrees of freedom of the fit.

Usage

plot.gcvplot(x, xlab = "Fitted DF", ylab = x$cri, ...)

Arguments

x
A "gcvplot" object, produced by gcvplot, aicplot etc.
xlab
x axis label
ylab
y axis label
...
Other arguments to plot.

See Also

locfit, locfit.raw, gcv, aicplot, cpplot, gcvplot, lcvplot

Examples

Run this code
data(ethanol)
plot(gcvplot(NOx~E,data=ethanol,alpha=seq(0.2,1.0,by=0.05)))

Run the code above in your browser using DataLab