powered by
This technique generalises fitbest. While it is much slower it will work for any type of model.
fitbest
fitall(y, x, method = "lm", ...)
vector y values
matrix of x values
name of method used to fit the model, e.g lm,rlm
lm
rlm
other arguments passed on to method
method
# NOT RUN { y <- swiss$Fertility x <- swiss[, -1] mods <- fitall(y, x, "lm") # }
Run the code above in your browser using DataLab