summary.BranchGLMVS {BranchGLM} | R Documentation |
Summary Method for BranchGLMVS
## S3 method for class 'BranchGLMVS'
summary(object, ...)
object |
a |
... |
further arguments passed to other methods. |
An object of class summary.BranchGLMVS
which is a list with the
following components
results |
a data frame which has the metric values for the best models along with the variables included in each model |
initmodel |
the initial |
formulas |
a list containing the formulas of the best models |
metric |
the metric used to perform variable selection |
Data <- iris
Fit <- BranchGLM(Sepal.Length ~ ., data = Data, family = "gaussian", link = "identity")
# Doing branch and bound selection
VS <- VariableSelection(Fit, type = "branch and bound", metric = "BIC",
bestmodels = 10, showprogress = FALSE)
VS
## Getting summary of the process
Summ <- summary(VS)
Summ
## Plotting the BIC of the best models
plot(Summ, type = "b")
## Plotting the variables in the best models
plot(Summ, ptype = "variables")
## Getting the best model according to BIC
FinalModel <- fit(Summ, which = 1)
FinalModel