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 should not be used for model selection,
but only in plots.data(spider)
spiddat <- mvabund(spider$abund)
X <- spider$x
best.r.sq( spiddat~X )
Run the code above in your browser using DataLab