powered by
regsubsets
leaps(x=, y=, wt=rep(1, NROW(x)), int=TRUE, method=c("Cp", "adjr2", "r2"), nbest=10, names=NULL, df=NROW(x), strictly.compatible=T)
x
nrow(x)
adjr2
r2
regsubsets.formula
regsubsets.default
x<-matrix(rnorm(100),ncol=4) y<-rnorm(25) leaps(x,y)
Run the code above in your browser using DataLab