powered by
RegBest(y,x, int = TRUE, wt=NULL, na.action = na.omit, method=c("r2","Cp", "adjr2"), nbest=1)
lm
data(milk) res = RegBest(y=milk[,6],x=milk[,-6]) res$best
Run the code above in your browser using DataLab