formula.lmSubsets {lmSubsets}R Documentation

Extract a formula from a subset regression

Description

Return the formula for the specified submodel.

Usage

## S3 method for class 'lmSubsets'
formula(x, size, best = 1, ...)

## S3 method for class 'lmSelect'
formula(x, best, ...)

Arguments

x

"lmSubsets", "lmSelect"—a subset regression

size

integer—the submodel size

best

integer—the submodel position

...

ignored

Value

"formula"—the submodel formula

See Also


[Package lmSubsets version 0.5-2 Index]