Stan Model Adjustments and Sensitivity Analyses using Importance Sampling
Overview
Assess the sensitivity of a Bayesian model (fitted using 'Stan' via 'rstan', 'brms', or 'cmdstanr') to the specification of its likelihood and priors. Users provide a series of alternate sampling specifications, and the package uses Pareto-smoothed importance sampling (PSIS) to estimate posterior quantities of interest under each specification, without needing to refit the model. Methods are based on Vehtari, Simpson, Gelman, Yao, and Gabry (2024) doi:10.48550/arXiv.1507.02646.
- First CRAN submission.
- Replaced fragile regex-based Stan model parser with a robust token-based parser. Supports modern Stan syntax including the
array[]declaration style, new constrained types (sum_to_zero_vector, etc.), andtarget +=statements with_lupdf/_lupmfsuffixes. - Expanded test suite from 108 to 197 tests, covering parsing, log probability calculations, specification creation, weight computation, and summary functions.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK8 OK2026-05-30
Documentation
- Help pages
- 11 (2 internal)includes a package overview page
- Examples that run
- 100%8 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 9%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 43
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Releases over time
Issues over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/corymccartan/adjustr on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-29 · The repository has a site deploy workflow
Dependencies
Code & Tests
Datasets
People & History
- 0.2.0Latest2026-05-29 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-05-29
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6.0
- Bundled data
- 38 KB / 1 file
- Download size
- 369 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("adjustr")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.