model.matrix.lmSubsets: Extract a model matrix from a subset regression

Description Usage Arguments Value See Also

Description

Returns the model matrix for the specified submodel.

Usage

1
2
3
4
5
## S3 method for class 'lmSubsets'
model.matrix(object, size, best = 1, ...)

## S3 method for class 'lmSelect'
model.matrix(object, best, ...)

Arguments

object

"lmSubsets", "lmSelect"—a subset regression

size

integer—the submodel size

best

integer—the submodel position

...

forwarded to model.frame()

Value

double[,]—the model matrix

See Also


lmSubsets documentation built on Feb. 8, 2021, 1:06 a.m.