regsubsets
and leaps
. They are wrappers for Fortran routines that construct and manipulate a QR decomposition.leaps.setup(x,y,wt=rep(1,length(y)),force.in=NULL,force.out=NULL,intercept=TRUE,nvmax=8,nbest=1,warn.dep=T)
leaps.seqrep(leaps.obj)
leaps.exhaustive(leaps.obj,really.big=TRUE)
leaps.backward(leaps.obj)
leaps.forward(leaps.obj)
x
is not of full rankleaps
as produced by leaps.setup
regsubsets
, leaps