Fits sparse generalized linear models under an exact cardinality constraint using Feature Selection with Annealing (FSA), the method of Barbu, She, Ding and Gramajo (2017) <doi:10.1109/TPAMI.2016.2544315>. Rather than inducing sparsity through an L1 (lasso-type) penalty, FSA alternates a gradient step on the loss with a step that removes the lowest-magnitude coefficients according to an annealing schedule, so the user specifies the number of variables directly and the surviving coefficients carry no shrinkage bias. The working design matrix physically shrinks as iterations proceed, which makes the cost of a fit fall over time and the method well suited to problems with very many features. Gaussian, binomial, Poisson, multinomial, multi-response Gaussian and Cox proportional hazards families are supported, with robust Lorenz and smoothed support vector machine (SVM) losses available for classification with noisy labels. Dense and sparse design matrices are both handled, and the interface mirrors that of the 'glmnet' package.
| Version: | 1.0.1 |
| Depends: | R (≥ 3.5.0) |
| Imports: | Rcpp (≥ 1.0.0), Matrix, methods, graphics, grDevices, stats, tools, utils |
| LinkingTo: | Rcpp, RcppArmadillo |
| Suggests: | testthat (≥ 3.0.0), knitr, rmarkdown, glmnet, survival, foreach, doParallel, MASS |
| Published: | 2026-11-03 |
| DOI: | 10.32614/CRAN.package.glmfsa (may not be active yet) |
| Author: | Adrian Barbu [aut, cre, cph], Yiyuan She [aut], Liangjing Ding [ctb], Gary Gramajo [ctb] |
| Maintainer: | Adrian Barbu <abarbu at fsu.edu> |
| BugReports: | https://github.com/barbua/FSA/issues |
| License: | GPL-3 |
| URL: | https://github.com/barbua/FSA |
| NeedsCompilation: | yes |
| Materials: | README, NEWS |
| CRAN checks: | glmfsa results |
| Reference manual: | glmfsa.html , glmfsa.pdf |
| Vignettes: |
Getting started with glmfsa (source, R code) glmfsa and glmnet (source, R code) |
| Package source: | glmfsa_1.0.1.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): glmfsa_1.0.1.tgz, r-oldrel (arm64): glmfsa_1.0.1.tgz, r-release (x86_64): glmfsa_1.0.1.tgz, r-oldrel (x86_64): glmfsa_1.0.1.tgz |
Please use the canonical form https://CRAN.R-project.org/package=glmfsa to link to this page.