best.r.sq(formula, data = parent.frame(), subset, var.subset,
n.xvars= min(3, length(xn)), R2="h", ...)
best.r.sq
finds the n.xvars
influence variables obtained by a
forward selection in a multivariate linear model given by formula
.
Only the response variables given by var.subset
are considered. However,
if var.subset
is NULL
all response variables are considered.
Interactions are excluded from the search mechanism, however the indices that are
returned correspond to the indices in the model. This function is intended as an
exploratory tool which can be used for example in plotting, and is not intended
as a tool for formal model selection.choose 'all possible subsets'the moment)data(spider)
spiddat <- mvabund(spider$abund)
X <- spider$x
best.r.sq( spiddat~X )
Run the code above in your browser using DataLab