Skip to content

shrinkr

0.4.5Package record

Modular Bayesian Hierarchical Shrinkage Models

0packages depend
1.2Kdownloads / year
72.6%test coverage
13/13flavors OK

Overview

About
Maintained by Jacob M. MarongeCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funder: GlaxoSmithKline Research & Development Limited

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.

Changes in 0.4.5

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 DESCRIPTION file.
  • **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_fit and 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_learning vignette to save and restore graphical settings after calls to par(), avoiding persistent changes to the user's plotting environment.

---

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-29
  • ERROR12 OK, 1 ERROR2026-07-27
  • OK7 OK2026-07-07
Advisories

none known

Documentation

In release 0.4.5
READMEYes · 1,263 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.4.5Citation fileNoWebsiteYes · pkgdown
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

1.2K
CRAN downloads in the past year
Rank #11,667 · ~3/day · ~102/mo
Daily download trend is not available in this view yet.
30330 days
92990 days
1.2K1 year
Compare downloads with other packages →
Also on60 r2u4 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
1Releases
14Commits
1Commit identities
License file reads as GPL-3.0 · 14 commits · Last activity 2026-07-06 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2026-07-07 · 02026-08-08 · 3
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-07-06 · The repository has a site deploy workflow

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
30 external dependencies (excludes base and recommended)

Installing shrinkr adds 52 packages (26 with compiled code, 47 MB of source tarballs). Heaviest: BH 14 MB, ggplot2 6.0 MB, loo 2.7 MB.

Depends (1)
R >= 4.1
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 0.4.5 (2026)
Copyright holder
R/stanmodels.R, configure, configure.win
Listed in earlier versions (1)
Maronge
no longer listed · 0.4.5
Releases (1)
  • 0.4.5Latest
    2026-07-06 · current release
  • R
    R 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")
Maronge, J. M., GlaxoSmithKline Research & Development Limited, & Columbia University, T. o. (2026). shrinkr: Modular Bayesian Hierarchical Shrinkage Models (Version 0.4.5) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for shrinkr version 0.4.5 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy