Learn R Programming

FWDselect (version 1.1)

print.selection: Short selection summary

Description

selection summary

Usage

## S3 method for class 'selection':
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(pollution)
x=pollution[,-19]
y=pollution[,19]
obj1=selection(x,y,q=1,method="lm",criterion="R2")
obj1

Run the code above in your browser using DataLab