rstanarm
‹2.32.2
- 2.32.230 Sep 2025, current
- 2.32.119 Jan 2024
- 2.26.114 Sep 2023
- 2.21.48 Apr 2023
- 2.21.39 Apr 2022
- 2.21.120 Jul 2020
- 2.19.311 Feb 2020
- 2.19.23 Oct 2019
- 2.18.210 Nov 2018
- 2.18.121 Oct 2018
- 2.17.413 Apr 2018
- 2.17.318 Feb 2018
- 2.17.221 Dec 2017
- 2.15.329 Apr 2017
- 2.15.219 Apr 2017
- 2.14.117 Jan 2017
- 2.13.120 Nov 2016
- 2.12.113 Sep 2016
- 2.11.129 Jul 2016
- 2.10.125 Jun 2016
- 2.9.0-424 May 2016
- 2.9.0-313 Feb 2016
- 2.9.0-19 Jan 2016
Bayesian Applied Regression Modeling via Stan
- CRAN checks, method
Method
Checks and health
CRAN runs every current package through
R CMD checkon a set of machines and publishes a result for each one. The health shown on a package page comes from these results alone.- Problems
- Notes alone never count against a package, but a warning, an error or a failure on any platform is a problem. Open CRAN deadlines are a fact of their own, shown as a clock after the mark, so the mark always says what the checks found.
- Checks only
- Health reflects CRAN's check results and nothing else. Even a package with no tests, no coverage or no recent release can have every platform OK.
- Once a day
- Results are collected once a day from files CRAN publishes. Each platform is one machine set-up, named by its R version, operating system, architecture and compiler, such as r-devel-linux-x86_64-fedora-clang.
- Platforms counted
- The 13 in 3 of 13 is the number of platform rows CRAN published for that package on the day of collection. The set of machines changes over time, so the number is not fixed, and a package missing from a platform counts as neither passing nor failing there.
- All OK13 platforms
- CRAN 30-day downloads, method
- 32,162+1.1% up on the 30 days before, the better direction
- Dependent packages, method
Method
Reverse dependencies
Dependent packages are other packages that list this one under
Depends,ImportsorLinkingToin theirDESCRIPTIONfile. Those fields list the packages a package needs to install, so dependents break if this one is archived or broken.- As declared
- The counts follow the declarations as written, not whether a package uses the other one when it runs.
- Suggests apart
- Packages that list this one only under
Suggestsinstall and run without it, and use it for tests, examples or an optional feature. They are counted as Suggested by, never among the dependents, and a package that also lists it under one of the three fields is a dependent and is not counted again. - Zero
- Zero dependents means no current CRAN package declares a need for this one, though some may suggest it. On 28 Oct 2026, 19,572 of the 25,583 current CRAN packages had no dependent package.
- 1146 more suggest it
- Test coverage, method
Method
Test coverage
Test coverage is measured by downloading each CRAN package's current source file, installing its dependencies, building it and running its tests under covr.
- Almost half of CRAN has no tests to run
- Only CRAN packages are measured. Many have no percentage, most often because the package has no tests, and that blank is a recorded outcome, not missing data.
- NOT_CRAN
- Tests run with NOT_CRAN=true, so tests that skip themselves on CRAN run here, and the figure can differ from what CRAN's own checks see.
- Current version only
- Only the current version is measured, and a new version on CRAN is measured again. Older rows are kept but never filled in later. This is one package's run.
- Never 0%
- On a package page three states stay apart: measured, no tests, and not measured. Neither of the last two is ever shown as 0%.
- Not measuredthe run failed
- Advisories, method
Method
Security advisories
Advisories come from the R Consortium advisory database, a community record of security problems in R packages, as OSV publishes it.
- The copy
- The record is read once a day. The data is published under the Apache License 2.0 and is credited on the advisories list.
- Box under the name
- Under the package's name, a box names any advisory that affects the current release, with its fix or that there is none.
- Ranges
- Advisories state ranges, such as from 0.9.12 up to but not including 1.8.8. Each range is checked against every version CRAN has published, using the version rules R itself uses, so a release that came out after the advisory was written is still caught by its range.
- Not the package
- The rating is for the library flaw itself, not for how exposed the R package is, and it is never added up into a figure for the package.
- None known
About
Method, About Method Licence figures come from the Licences
License field of each package's DESCRIPTION file, read the way R itself reads it. No licence file is opened.tools::analyze_license() and R's own licence database, as CRAN's checks read it.| is read, so one string can offer two families.
Estimates previously compiled regression models using the 'rstan' package, which provides the R interface to the Stan C++ library for Bayesian estimation. Users specify models via the customary R syntax with a formula and data.frame plus some additional arguments for priors.
- Maintainer
- Ben Goodrich
- Licence
- GPL (>= 3)
- Latest release
- 30 Sep 2025
- First release
- 9 Jan 2016
More details
- Releases
- 23
- Needs compilation
- Yes
- Needs R
- >= 3.4.0
- Date
- 2025-09-29
- LazyData
- true
- RoxygenNote
- 7.3.3
- SystemRequirements
- GNU make, pandoc (>= 1.12.3), pandoc-citeproc
Subjects (1) Method, SubjectsMethod
Subjects and collections
Subjects are the site's own grouping of CRAN packages, found by clustering. Collections are sets of packages that communities declare, such as the tidyverse.
- Subjects
- Subjects are found by clustering the words of current CRAN packages and the packages they use. No one edits them by hand.
- Collections
- Collections are sets that communities declare, through a package that installs the set or an organization on GitHub. The site finds them by rules.
- Who made each
- Subjects are marked Site and collections Community. Subjects, collections and task views are never mixed in one list.
- The day of the data
- Subjects and collections were last worked out on 22 Oct 2026.
Cite
Package
Run in R for the authors' preferred citation:
citation("rstanarm")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
Balamuta, J. J. (2026). R Observatory: Metrics for rstanarm version 2.32.2 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About
From data release v2026-10-28, which the citation names so these numbers can be found later.
Health
All 13 check platforms pass.
r-devel-linux-x86_64-debian-clangThe unreleased R on Linux, x86_64, debian-clang
OK
- Version checked
- 2.32.2
- Time taken
- 2,243 s
r-devel-linux-x86_64-debian-gccThe unreleased R on Linux, x86_64, debian-gcc
OK
- Version checked
- 2.32.2
- Time taken
- 1,961 s
r-devel-linux-x86_64-fedora-clangThe unreleased R on Linux, x86_64, fedora-clang
OK
- Version checked
- 2.32.2
- Time taken
- 1,298 s
r-devel-linux-x86_64-fedora-gccThe unreleased R on Linux, x86_64, fedora-gcc
OK
- Version checked
- 2.32.2
- Time taken
- 1,761 s
r-devel-windows-x86_64The unreleased R on Windows, x86_64
OK
- Version checked
- 2.32.2
- Options
- --no-examples --no-tests --no-vignettes
- Time taken
- 2,158 s
r-oldrel-macos-arm64The previous release of R on macOS, arm64
OK
- Version checked
- 2.32.2
r-oldrel-macos-x86_64The previous release of R on macOS, x86_64
OK
- Version checked
- 2.32.2
- Time taken
- 799 s
r-oldrel-windows-x86_64The previous release of R on Windows, x86_64
OK
- Version checked
- 2.32.2
- Options
- --no-examples --no-tests --no-vignettes
- Time taken
- 2,366 s
r-patched-linux-x86_64The patched release of R on Linux, x86_64
OK
- Version checked
- 2.32.2
- Time taken
- 2,629 s
r-release-linux-x86_64The current release of R on Linux, x86_64
OK
- Version checked
- 2.32.2
- Time taken
- 2,610 s
r-release-macos-arm64The current release of R on macOS, arm64
OK
- Version checked
- 2.32.2
- Time taken
- 213 s
r-release-macos-x86_64The current release of R on macOS, x86_64
OK
- Version checked
- 2.32.2
- Time taken
- 1,425 s
r-release-windows-x86_64The current release of R on Windows, x86_64
OK
- Version checked
- 2.32.2
- Options
- --no-examples --no-tests --no-vignettes
- Time taken
- 2,049 s
- 13 OK
Over time
No change since 4 Aug 2026
As a list (12)
| Changed | Worst status | OK | Notes | Warnings | Errors |
|---|---|---|---|---|---|
| 4 Aug 2026 | OK | 13 | 0 | 0 | 0 |
| 1 Aug 2026 | Note | 12 | 1 | 0 | 0 |
| 29 Jul 2026 | OK | 13 | 0 | 0 | 0 |
| 27 Jul 2026 | Error | 12 | 0 | 0 | 1 |
| 23 Jun 2026 | OK | 13 | 0 | 0 | 0 |
| 20 Jun 2026 | Error | 12 | 0 | 0 | 1 |
| 9 Jun 2026 | OK | 13 | 0 | 0 | 0 |
| 7 Jun 2026 | Error | 12 | 0 | 0 | 1 |
| 25 Apr 2026 | OK | 12 | 0 | 0 | 0 |
| 22 Apr 2026 | Note | 11 | 3 | 0 | 0 |
| 18 Apr 2026 | Error | 10 | 3 | 0 | 1 |
| 10 Mar 2026 | Note | 11 | 3 | 0 | 0 |
Since March 2026
Downloads
Method, Downloads Method Download figures count requests logged by each distribution channel. They are not counts of installs or of users, because each channel publishes its own totals and this site reads them.Downloads
- Total downloads in the last 30 days
- 34,107+4.8% up on the 30 days before, the better directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.
CRAN rank
612 of 26,530
CRAN
32,162 downloads in the last 30 days
- Rank
- 612 of 26,530
- Change
- +1.1% up on the 30 days before, the better direction
It is in the total. Take it out
r2u
807 downloads in the last 30 days
- Rank
- 912 of 30,526
- Change
- +58.6% up on the 30 days before, the better direction
It is in the total. Take it out
autoCRAN
5 downloads in the last 30 days
- Rank
- 10,893 of 29,212
- Change
- −68.8% down on the 30 days before, the worse direction
It is in the total. Take it out
conda-forge
1,095 downloads in the last 30 days
- Rank
- 959 of 3,828
- Change
- +630% up on the 30 days before, the better direction
It is in the total. Take it out
c2d4u, no longer updated
38 downloads in the last 30 days
- Rank
- 561 of 7,575
- Change
- −24% down on the 30 days before, the worse direction
It is in the total. Take it out
The total is 34,107 downloads in the last 30 days. It is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.
Over time
Dependencies
- Needs
- 20
- Dependent packages
- 11
- Suggested by
- 46
Needs (20)
- bayesplot
- BH
- ggplot2
- lme4
- loo
- Matrix
- methods
- nlme
- posterior
- Rcpp
- RcppEigen
- RcppParallel
- reformulas
- rstan
- rstantools
- shinystan
- StanHeaders
- stats
- survival
- utils
- Installing it adds
- 111 packages, 114.0 MB of source
- Of those, need compilation
- 56
Optional extras (16)
Dependent packages (11)
| Package | Title | Downloads in 30 days |
|---|---|---|
| bayesrules | Datasets and Supplemental Functions from Bayes Rules! Book | 1,100 |
| tidyposterior | Bayesian Analysis to Compare Models using Resampling Statistics | 527 |
| BayesERtools | Bayesian Exposure-Response Analysis Tools | 485 |
| SIMPLE.REGRESSION | OLS, Moderated, Logistic, and Count Regressions Made Simple | 413 |
| AuxSurvey | Survey Analysis with Auxiliary Discretized Variables | 361 |
| fbst | The Full Bayesian Evidence Test, Full Bayesian Significance Test and the e-Value | 351 |
| IRexamples | Collection of Practical Institutional Research Examples and Tutorials | 314 |
| JMbdirect | Joint Model for Longitudinal and Multiple Time to Events Data | 271 |
| webSDM | Including Known Interactions in Species Distribution Models | 259 |
| jmBIG | Joint Longitudinal and Survival Model for Big Data | 246 |
| outstandR | Model-Based Standardisation for Indirect Treatment Comparison with Limited Subject-Level Data | 225 |
Code
Method, Code Method Code metrics come from reading the released source of each package version. The package is never installed, loaded or run.Code metrics
README, vignettes, a NEWS file and the shares read from its help pages. Files kept only in the repository, such as a pkgdown configuration or CI files, are read by the repository scan instead.
- Functions
- 551
- Public exports
- 90
- Lines of R code
- 23,563
- Median complexity
- 3
Functions (551)
Size and composition
Lines by kind (107,421)
| Kind | Lines | Share |
|---|---|---|
| R code | 23,563 | 22% |
| Tests | 5,713 | 5% |
| Documentation | 8,598 | 8% |
| Guides | 7,415 | 7% |
| Compiled code | 62,132 | 58% |
Lines by language
| Language | Lines | Share |
|---|---|---|
| C | 61,837 | 58% |
| R | 29,276 | 27% |
| Rd | 8,598 | 8% |
| Vignettes | 7,252 | 7% |
| C++ | 295 | 0.3% |
| Other | 163 | 0.2% |
Languages are counted from file extensions.
- Files
- 355
- R functions
- 516
- Compiled functions
- 37
- Object systems
- S3: 98 methods
- Deprecated functions
- 1
Complexity
- Median
- 3
- Mean
- 5.77
- Highest
- 154
- Median lines per function
- 10
About complexity
Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.
Call graph figures
- R functions
- 516
- Calls
- 1,103
- Unconnected
- 63
- Groups
- 7
Growth (23 releases)
Release changes
Tests
The run took too long and was stopped.
- Test cases
- 342
- Lines of tests
- 5,713
- Exports named in tests
- 73.3%
Test suite
- Has tests
- Yes
- Test frameworks
- testthat, tinytest
- Test cases
- 342
- Test lines per line of code
- 0.24
Documentation
- Exports documented
- 100%
- Arguments documented
- 72.9%
- Return value documented
- 87.8%
- Help pages with examples
- 62.1%
- Examples run in checks
- 100%
Guides (14)
- How to Use the rstanarm Package
- Hierarchical Partial Pooling
- MRP with rstanarm
- Prior Distributions
- Probabilistic A/B Testing with rstanarm
- stan_aov: ANOVA Models
- stan_betareg: Models for Rate/Proportion Data
- stan_glm: GLMs for Binary and Binomial Data
- stan_glm: GLMs for Continuous Data
- stan_glm: GLMs for Count Data
- stan_glmer: GLMs with Group-Specific Terms
- stan_jm: Joint Models for Longitudinal and Time-to-Event Data
- stan_lm: Regularized Linear Models
- stan_polr: Ordinal Models
Other documentation
- README
- No
- Release notes file
- Yes
- Help pages
- 66
- Lines of documentation
- 8,598
Datasets
Method, Datasets Method The datasets inside packages are read from their R objects in datasets
data/ folders when the code is analysed. Each object is described by its class, its shape and its columns, and fingerprinted so the same data can be found in other packages.data() are listed, 76,180 on CRAN and 8,045 on Bioconductor, so the list is not every file in data/.
| Dataset | Size | Columns |
|---|---|---|
| bball1970Datasets for rstanarm examples | 18 × 5 | Player, AB, Hits, RemainingAB, RemainingHits |
| bball2006Datasets for rstanarm examples | 308 × 2 | y, K |
| kidiqDatasets for rstanarm examples | 434 × 4 | kid_ |
| mortalityDatasets for rstanarm examples | 12 × 2 | y, K |
| pbcLongDatasets for rstanarm examples | 304 × 8 | id, age, sex, trt, year, logBili and 2 more |
| pbcSurvDatasets for rstanarm examples | 40 × 7 | id, age, sex, trt, futimeYears, status and 1 more |
| radonDatasets for rstanarm examples | 919 × 4 | floor, county, log_ |
| roachesDatasets for rstanarm examplesalso in 1 other package | 262 × 5 | y, roach1, treatment, senior, exposure2 |
| tumorsDatasets for rstanarm examples | 71 × 2 | y, K |
| wellsDatasets for rstanarm examples | 3,020 × 5 | switch, arsenic, dist, assoc, educ |
People
Method, People Method People on the site are the names packages give them in their Author and maintainer identity
DESCRIPTION files: authors from the author list, and the maintainer from the Maintainer field. Spellings of one name become one person only where the rules below allow it, and when in doubt the rules keep people apart.
Maintainer since 2.9.0-1 (2016), author
AstraZeneca, an organisation
Contributor
Contributor
Copyright holder
Copyright holder
Contributor
Copyright holder
Trustees of Columbia University
Copyright holder
Copyright holder
Author
Copyright holder
Contributor
Copyright holder
Copyright holder
Copyright holder
Copyright holder
Repository
Method, figures by host Method Repository signals are the figures read from the source repository a package links to: stars, forks, issues, commits, releases and the time issues take to close. They are read from GitHub, GitLab, Codeberg and Bitbucket.Repository signals
URL and BugReports fields of its DESCRIPTION file. Read-only mirrors, the cran and bioc accounts on GitHub and git.bioconductor.org, are left out.
stan-dev / rstanarm on github.com
- Stars
- 402+0.25% up on 30 days ago, the better direction
- Forks
- 136
- Open issues
- 165
- Last commit
- 13 Oct 2026
Activity
- Commits
- 3,394
- Open pull requests
- 9
- Tagged releases
- 8
- Latest tagged release
- v2.32.2, 6 Oct 2025
- Issues closed in
- 100 days (median)
- Pull requests closed in
- 5 days (median)
- Pull requests merged
- 86%
- Created
- 16 Jul 2013
- Licence file reads as
- GPL-3.0
Development practices (10)
| Kind | Found |
|---|---|
| Continuous integration | GitHub Actions, R CMD check workflow The R CMD check workflow runs on Linux, macOS and Windows |
| Governance and community | Issue templates, Funding Funding links: GitHub Sponsors, mc-stan.org The repository owner accepts GitHub Sponsors |
| Docs source | pkgdown GitHub Pages site last deployed 2026-10-14 The repository has a site deploy workflow pkgdown site last built 2026-10-14 |
| Automation and maintenance | Dependabot |
| Lint, format, editor | RStudio project |
Method, repository practices Method Beta Each week a scan of the public source repository a package links to looks for the tools a maintainer has set up, and the Repository section lists the findings. Repositories on GitHub and GitLab are scanned.Repository practices
R CMD build reads .Rbuildignore and leaves out files used only in development, such as .github/, .lintr, renv/, a Dockerfile and cran-comments.md, so the released source file holds almost none of them. The repository is the one place these files stay visible.
History
Method, History Method Archived is built from CRAN's archive records, its list of check deadlines and Bioconductor's package records. Every figure is counted to 28 Oct 2026, the day the data was read.Packages leaving
- On CRAN
- Release
| Version | Released | R |
|---|---|---|
| 2.32.2 current | 30 Sep 2025 | 4.5.1 |
| 2.32.1 | 19 Jan 2024 | 4.3.2 |
| 2.26.1 | 14 Sep 2023 | 4.3.1 |
| 2.21.4 | 8 Apr 2023 | 4.2.3 |
| 2.21.3 | 9 Apr 2022 | 4.1.3 |
| 2.21.1 | 20 Jul 2020 | 4.0.2 |
| 2.19.3 | 11 Feb 2020 | 3.6.2 |
| 2.19.2 | 3 Oct 2019 | 3.6.1 |
Earlier versions (15)
| Version | Released | R |
|---|---|---|
| 2.18.2 | 10 Nov 2018 | 3.5.0 |
| 2.18.1 | 21 Oct 2018 | 3.5.0 |
| 2.17.4 | 13 Apr 2018 | 3.4.4 |
| 2.17.3 | 18 Feb 2018 | 3.4.3 |
| 2.17.2 | 21 Dec 2017 | 3.4.3 |
| 2.15.3 | 29 Apr 2017 | 3.4.0 |
| 2.15.2 | 19 Apr 2017 | 3.3.3 |
| 2.14.1 | 17 Jan 2017 | 3.3.2 |
| 2.13.1 | 20 Nov 2016 | 3.3.2 |
| 2.12.1 | 13 Sep 2016 | 3.3.1 |
| 2.11.1 | 29 Jul 2016 | 3.3.1 |
| 2.10.1 | 25 Jun 2016 | 3.3.1 |
| 2.9.0-4 | 24 May 2016 | 3.3.0 |
| 2.9.0-3 | 13 Feb 2016 | 3.2.3 |
| 2.9.0-1 | 9 Jan 2016 | 3.2.3 |