This repository contains the development of spider, an R package implementing the SPIDER model-search algorithm for sparse regression models.
The algorithm screens predictors, constructs candidate models, evaluates model performance, and retains competitive models at each dimension. The package also investigates the Rashomon effect, where structurally different regression models can achieve similar performance.
This project is developed as part of the R Programming for Data Science course at Auburn University.
| Member | Responsibility |
|---|---|
| Conley | Baseline algorithm, SPIDER variant and technical design |
| Emir | Package engineering, documentation, methods and testing |
| Dawson | Simulation, real-data analysis and final report |
The SPIDER R package can be installed directly from the project's GitHub repository using:
install.packages("remotes")
remotes::install_github(
"AU-R-Programming/FinalProject-Group2"
)
The following example demonstrates the baseline SPIDER algorithm and its associated model-search methods.
library(spider)
y <- mtcars$mpg
X <- as.matrix(mtcars[, 2:8])
result <- spider(
y = y,
X = X,
p_max = 3,
q = 0.5,
m = 100,
seed = 123
)
print(result)
summary(result)
plot(result)
extract_models(result)
spider(): Baseline SPIDER model-search algorithm.spider_diversity(): Diversity-based SPIDER variant.print.spider(): Displays a concise search overview.summary.spider(): Summarizes model-search results.plot.spider(): Visualizes model-search results.extract_models(): Converts model-search results into a tidy table.R/: Package functions and algorithm implementation.man/: Generated function documentation.tests/: Automated tests and invariant verification.vignettes/: Simulation, real-data analysis and final report.DESCRIPTION: Package metadata and dependencies.NAMESPACE: Package exports and method registrations.DESIGN.md: Algorithm design and implementation decisions.AI_USAGE.md: AI assistance, attribution and validation.The package implements the baseline SPIDER algorithm and a Jaccard-based diversity variant.
The integrated package was validated through 573 automated assertions, with no failures, errors, warnings, or skipped assertions.
The package check completed with:
The final project report includes reproducible simulation and real-data analyses, a comparison of the baseline and diversity variant, a documented bug investigation, and an explanation of implementation limitations.
MIT License.
spider() still needs fixes from #3, plus additional issues
https://github.com/AU-R-Programming/FinalProject-Group2/issues/4
Labels: None
New Feedback
https://github.com/AU-R-Programming/FinalProject-Group2/issues/3
Labels: None
Bug Found
https://github.com/AU-R-Programming/FinalProject-Group2/issues/2
Labels: None
Final Project - SPIDER Algorithm To-Do list
https://github.com/AU-R-Programming/FinalProject-Group2/issues/1
Labels: good first issue
No CONTRIBUTING document was found. Please check the README and open issues.