BranchGLM-package | R Documentation |
Performs efficient and scalable glm best subset selection using a novel implementation of a branch and bound algorithm. To speed up the model fitting process, a range of optimization methods are implemented in 'RcppArmadillo'. Parallel computation is available using 'OpenMP'.
Maintainer: Jacob Seedorff jacob-seedorff@uiowa.edu
Seedorff J, Cavanaugh JE. Assessing Variable Importance for Best Subset Selection. Entropy. 2024; 26(9):801. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.3390/e26090801")}
Useful links:
Report bugs at https://github.com/JacobSeedorff21/BranchGLM/issues
# Using iris data to demonstrate package usage
Data <- iris
# Fitting linear regression model
Fit <- BranchGLM(Sepal.Length ~ ., data = Data, family = "gaussian", link = "identity")
Fit
# Doing branch and bound best subset selection
VS <- VariableSelection(Fit, type = "branch and bound", metric = "BIC",
showprogress = FALSE, bestmodels = 10)
VS
## Plotting results
plot(VS, ptype = "variables")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.