Learn R Programming

FWDselect (version 2.1.0)

print.selection: Short selection summary

Description

selection summary

Usage

"print"(x = model, ...)

Arguments

x
selection object.
...
Other options.

Value

The function returns the best subset of size q and its information criterion value. In the case of seconds=TRUE this information is returned for each alternative model.

See Also

selection.

Examples

Run this code
library(FWDselect)
data(diabetes)
x = diabetes[ ,2:11]
y = diabetes[ ,1]
obj1 = selection(x, y, q = 1, method = "lm", criterion = "variance", cluster = FALSE)
obj1

Run the code above in your browser using DataLab