lmSub: Best Linear Model in Subset Selection

View source: R/subsets.R

lmSubR Documentation

Best Linear Model in Subset Selection

Description

Produces the best linear model for a specific number of predictors in a subset selection.

Usage

lmSub(object, d)

Arguments

object

An object of type "regsubsets"

d

Number of data predictors

Value

The best linear model with d predictors

Examples

subs=leaps::regsubsets(mpg~.,mtcars)
summary(lmSub(subs,3))

smallstuff documentation built on June 2, 2022, 5:06 p.m.