lmSelect.matrix {lmSubsets}R Documentation

Best-subset regression

Description

Matrix interface to best-variable-subset selection in ordinary linear regression.

Usage

## S3 method for class 'matrix'
lmSelect(formula, y, intercept = TRUE, ...)

Arguments

formula

"matrix"—the model matrix

y

double[]—the model response

intercept

logical[]—if FALSE, remove intercept term

...

forwarded to lmSelect.default()

Details

This is a utility interface. Use the standard formula interface wherever possible.

Value

"lmSelect"—a best-subset regression

See Also


[Package lmSubsets version 0.5-2 Index]