Description Usage Arguments Details Value See Also Examples
Summary methods for objects of class mcsSubset
.
1 2 |
object |
An object of class |
penalty |
The AIC penalty. |
... |
Ignored. |
The summary
method for mcsSubset
objects computes the AIC
for the desired penalty
.
An object of class summary.mcsSubset
. The subset models
contained in the summary object are sorted in order of increasing AIC.
Extractor methods may be called on summary objects to obtain
information about the best subset models. See methods
for more details.
mcsSubset
, methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## load data
data("AirPollution", package = "mcsSubset")
## fit best subsets
xs <- mcsSubset(mortality ~ ., data = AirPollution)
## summarize (BIC)
sx <- summary(xs, penalty = log(nrow(AirPollution)))
sx
## refit (best BIC)
lm <- refit(sx)
summary(lm)
## refit (second best BIC)
lm <- refit(sx, best=2)
summary(lm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.