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

Description Usage Arguments Examples

View source: R/generate.r

Description

Use the leaps package to generate the best subsets.

Usage

1
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

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

Example output



meifly documentation built on May 2, 2019, 2:18 a.m.

Related to fitbest in meifly...