fitted.lmSubsets {lmSubsets}R Documentation

Extract the fitted values from a subset regression

Description

Return the fitted values for the specified submodel.

Usage

## S3 method for class 'lmSubsets'
fitted(object, size, best = 1, ...)

## S3 method for class 'lmSelect'
fitted(object, best = 1, ...)

Arguments

object

"lmSubsets", "lmSelect"—a subset regression

size

integer—the submodel size

best

integer—the submodel position

...

ignored

Value

double[]—the fitted values

See Also


[Package lmSubsets version 0.5-2 Index]