Learn R Programming

FWDselect (version 1.1)

plot.qselection: Visualization of qselection object

Description

This function plots the cross-validation information criterion for several subsets of size $q$ chosen by the user.

Usage

## S3 method for class 'qselection':
plot(x=object,y=NULL, ...)

Arguments

x
qselection object.
y
NULL
...
Other options.

Value

  • Simply returns a plot.

See Also

qselection

Examples

Run this code
library(FWDselect)
data(polution)
x=pollution[,-19]
y=pollution[,19]
obj2=qselection(x,y,qvector=c(1:4),method="lm",
criterion="R2")
plot(obj2)

Run the code above in your browser using DataLab