Print a tabular display of the results of Best Subsets Regression.
This is an alternate display for the object from the regsubsets
function. This function is based on regsubsets
.
The functions described here are designed for the HH package in R and
use the leaps package in R.
The leaps package is not in S-Plus, hence these functions
do not work in the HH package for S-Plus.
`summaryHH`(object, ...)# S3 method for regsubsets
summaryHH(object,
names = abbreviate(dimnames(incidence)[[2]], minlength = abbrev),
abbrev = 1, min.size = 1, max.size = dim(sumry$which)[2],
statistic = c("bic", "cp", "adjr2", "rsq", "rss", "stderr"),
las = par("las"),
cex.subsets = 1, ..., main=statistic)
# S3 method for summaryHH.regsubsets
plot(x, ...,
statistic="adjr2", legend=FALSE,
col="darkgray", cex=1, pch=16,
col.text="black", cex.text=1, col.abline="darkgray")
An object of class "regsubsets"
.
An object of class "summaryHH.regsubsets"
.
Name of statistic to be plotted for each model.
Other arguments to be passed down to
subsets.regsubsets
and plot
.
Abbreviations of variable names.
minimum number of letters in each abbreviation.
minimum size subset to plot; default is 1.
maximum size subset to plot; default is number of predictors.
logical variable, TRUE
if the legend should be
printed.
If the legend is printed, the execution halts until the user clicks an
empty space in the graph where the legend should be placed.
Orientation for model names on graph.
can be used to change the relative size of the characters used to
plot the regression subsets; default is 1
.
"main"
title for graph.
par
values for dot locating statistic.
par
values for abbreviations of
models on plot.
par
parameters for abline
when the
statistic is cp
.
summaryHH
produces a table of models, with
p, rsq, rss, adjr2, cp, bic, stderr
for each.
plot.summaryHH.regsubsets
plots the specified statistic
from the summary.
All the others are support functions.