coef.lmSubsets {lmSubsets}R Documentation

Extract the ceofficients from a subset regression

Description

Return the coefficients for the specified submodels.

Usage

## S3 method for class 'lmSubsets'
coef(object, size, best = 1, ..., na.rm = TRUE, drop = TRUE)

## S3 method for class 'lmSelect'
coef(object, best = 1, ..., na.rm = TRUE, drop = TRUE)

Arguments

object

"lmSubsets", "lmSelect"—a subset regression

size

integer[]—the submodel sizes

best

integer[]—the submodel positions

...

ignored

na.rm

logical—if TRUE, remove NA entries

drop

logical—if TRUE, simplify structure

Value

double[,], "data.frame"—the submodel coefficients

See Also


[Package lmSubsets version 0.5-2 Index]