Learn R Programming

lmSubsets (version 0.5-2)

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

Description

Returns the model matrix for the specified submodel.

Usage

# S3 method for lmSubsets
model.matrix(object, size, best = 1, ...)

# S3 method for 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