savvyGLM
0.1.4Generalized Linear Models with Slab and Shrinkage Estimators
Overview
Provides a flexible framework for fitting generalized linear models (GLMs) with slab and shrinkage estimators. Methods include the Stein estimator (St), Diagonal Shrinkage (DSh), Simple Slab Regression (SR), Generalized Slab Regression (GSR), Ledoit-Wolf Linear Shrinkage (LW), Quadratic-Inverse Shrinkage (QIS), and Shrinkage (Sh), all integrated into the iteratively reweighted least squares (IRLS) algorithm. This approach enhances estimation accuracy, convergence, and robustness in the presence of multicollinearity. The best-fitting model is selected based on the Akaike Information Criterion (AIC). Methods are related to methods described in Marschner (2011) doi:10.32614/RJ-2011-012, Asimit et al. (2025) https://openaccess.city.ac.uk/id/eprint/35005/, Ledoit and Wolf (2004) doi:10.1016/S0047-259X(03)00096-4, and Ledoit and Wolf (2022) doi:10.3150/20-BEJ1315.
Install
Health
- OK2026-05-037 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 96%
- Return-value docs
- 100%
- References docs
- 100%
Downloads
Repository
Stars over time
Repository practices
Checks run against github.com/ziwei-chenchen/savvyglm on 2026-07-19.
No development-tooling practices detected in the upstream repository.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 1.0 median / 114 max
- Test cases
- 77 / 1.07 per code line
Test coverage
Line coverage
86%
Expression
84.8%
Tests / Examples
85.8% / 67% ex
Functions
16 2 exported
Complexity
10.3 avg / 114 max
Call network
16 nodes / 15 edges
Call graph
Open call graph →Lowest coverage
16 functions| Function | Cyclo | Coverage |
|---|---|---|
| savvy_glm.fit2 exp | 114 | 81% |
| qis | 3 | 85% |
| LW_est | 1 | 89% |
| QIS_est | 1 | 89% |
| cov1Para | 2 | 91% |
| savvy_glm2 exp | 27 | 92% |
People & History
4 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2026-05-02
- Total releases
- 4 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.6.0
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet