Last data update: 2014.03.03
|
R: Fit all combinations of x variables ($2^p$).
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")
Results
|