Learn R Programming

FWDselect (version 2.1.0)

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

"plot"(x = object, y = NULL, ylab = NULL, ...)

Arguments

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

Value

Simply returns a plot.

See Also

selection.

Examples

Run this code
library(FWDselect)
data(diabetes)
x = diabetes[ ,2:11]
y = diabetes[ ,1]
obj2 = qselection(x, y, qvector = c(1:9), method = "lm", criterion = "variance", cluster = FALSE)
plot(obj2)

Run the code above in your browser using DataLab