fitbest: Use the leaps package to generate the best subsets.

View source: R/generate.r

fitbestR Documentation

Use the leaps package to generate the best subsets.

Description

Use the leaps package to generate the best subsets.

Usage

fitbest(formula, data, nbest = 10, ...)

Arguments

formula

model formula

data

data frame

nbest

number of subsets of each size to record

...

other arguments passed to regsubsets

Examples

y <- swiss$Fertility
mods <- fitbest(Fertility ~ ., swiss)

meifly documentation built on May 20, 2022, 5:06 p.m.

Related to fitbest in meifly...