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

View source: R/generate.r

fitallR Documentation

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

y <- swiss$Fertility
x <- swiss[, -1]
mods <- fitall(y, x, "lm")

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

Related to fitall in meifly...