Methods for Adaptive Shrinkage, using Empirical Bayes
Overview
The R package 'ashr' implements an Empirical Bayes approach for large-scale hypothesis testing and false discovery rate (FDR) estimation based on the methods proposed in M. Stephens, 2016, "False discovery rates: a new deal", DOI:10.1093/biostatistics/kxw041. These methods can be applied whenever two sets of summary statistics---estimated effects and standard errors---are available, just as 'qvalue' can be applied to previously computed p-values. Two main interfaces are provided: ash(), which is more user-friendly; and ash.workhorse(), which has more options and is geared toward advanced users. The ash() and ash.workhorse() also provides a flexible modeling interface that can accommodate a variety of likelihoods (e.g., normal, Poisson) and mixture priors (e.g., uniform, normal).
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 99includes a package overview page
- Examples that run
- 100%20 run in a plain check
- Exported functions with examples
- 28%
- Documented parameters
- 92%
- Return-value docs
- 49%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 12
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/stephens999/ashr on 2026-10-21.
Dependencies
Installing ashr adds 8 packages (5 with compiled code, 6.1 MB of source tarballs). Heaviest: invgamma 2.5 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.2-63Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 2.2-54
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 2.2-472020-02-20 · diff ↗
- unarchivedReturned to CRAN2020-02-03
- 2.2-402020-02-03 · diff ↗
- archivedRemoved from CRAN2020-01-16requires archived package 'mixsqp'
- 2.2-39
- RR 3.6.0 released · 2019-04-26
- unarchivedReturned to CRAN2019-02-22
Show 7 earlier eventsHide 7 earlier events
- 2.2-32
- archivedRemoved from CRAN2019-02-05check errors were not corrected despite reminders
- RR 3.5.0 released · 2018-04-23
- 2.2-72018-03-01 · diff ↗ ·
removed 3 exports
logF_lik, normal_lik, t_likadded 17 exports
compute_lfsr, cxxMixSquarem, get_post_sample, lik_binom, lik_logF, lik_normal, lik_normalmix, lik_pois, lik_t, my_e2truncbeta, my_e2truncgamma, my_etruncbeta, my_etruncgamma, plot_diagnostic, post_sample, prune, w_mixEM - RR 3.4.0 released · 2017-04-21
- 2.0.52016-12-27
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-12-27
- Total releases
- 8 / 10 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.1.0
- Download size
- 913 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ashr")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-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.