These functions are used internally by 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=TRUE)
leaps.seqrep(leaps.obj)
leaps.exhaustive(leaps.obj,really.big=FALSE)
leaps.backward(leaps.obj,nested)
leaps.forward(leaps.obj,nested)
A matrix of predictors
A response vector
Optional weight vector
Add an intercept to the model
vector indicating variable that must be in the model
vector indicating variable that must not be in the model
Number of subsets of each size to report
largest subset size to examine
warn if x
is not of full rank
An object of class leaps
as produced by leaps.setup
required before R gets sent off on a long uninterruptible computation
Use just the forward or backward selection models, not the models with variables 1:nvmax
constructed for free in the setup
regsubsets
, leaps