fitall {meifly} | R 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 |
|
... |
other arguments passed on to |
Examples
y <- swiss$Fertility
x <- swiss[, -1]
mods <- fitall(y, x, "lm")
[Package meifly version 0.3.1 Index]