Modular Bayesian Hierarchical Shrinkage Models
Overview
Implements a two-stage Bayesian hierarchical modeling framework for applying shrinkage to subgroup-specific effects. The package separates model fitting (Stage 1) from hierarchical shrinkage (Stage 2), enabling modular sensitivity analyses without refitting expensive Markov chain Monte Carlo (MCMC) chains. Supports flexible prior specifications through the 'distributional' package, mixture approximations via 'mclust', and efficient 'Stan'-based inference.
Documentation
- **Improved CRAN compatibility.** Updated package metadata and documentation following CRAN review comments, including expanding Markov chain Monte Carlo (MCMC) on first use in the
DESCRIPTIONfile. - **Modernized examples.** Reworked documentation examples so lightweight examples are executable and self-contained. Replaced unnecessary
\dontrun{}blocks with executable examples or\donttest{}where appropriate. - **Protected computationally intensive examples.** Kept examples that require fitting Bayesian hierarchical models with Stan inside
\dontrun{}because they are not suitable for routine CRAN example checks. - **Improved method documentation examples.** Added small example objects for selected
shrinkr_fitand mixture-method documentation so examples no longer depend on objects created in other help pages.
Show all changes in 0.4.5Hide the rest of the changes in 0.4.5
Vignettes
- **Restored graphical parameters.** Updated the
federated_learningvignette to save and restore graphical settings after calls topar(), avoiding persistent changes to the user's plotting environment.
---
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-29
- ERROR12 OK, 1 ERROR2026-07-27
- OK7 OK2026-07-07
Documentation
- Help pages
- 36 (6 internal)includes a package overview page
- Examples that run
- 88%23 run in a plain check · 3 never run
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 3%
Downloads
Repository
Stars over time
Releases over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/gsk-biostatistics/shrinkr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-06 · The repository has a site deploy workflow
Dependencies
Code & Tests
People & History
- 0.4.5Latest2026-07-06 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-07-06
- Total releases
- 1 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1
- Download size
- 3.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("shrinkr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.