meifly (version 0.3)

fitbest: 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

Run this code
# NOT RUN {
y <- swiss$Fertility
mods <- fitbest(Fertility ~ ., swiss)
# }

Run the code above in your browser using DataCamp Workspace