meifly (version 0.3)

fitall: Fit all combinations of x variables ($2^p$).

Description

This technique generalises fitbest. While it is much slower it will work for any type of model.

Usage

fitall(y, x, method = "lm", ...)

Arguments

y

vector y values

x

matrix of x values

method

name of method used to fit the model, e.g lm,rlm

...

other arguments passed on to method

Examples

Run this code
# NOT RUN {
y <- swiss$Fertility
x <- swiss[, -1]
mods <- fitall(y, x, "lm")
# }

Run the code above in your browser using DataCamp Workspace