Skip to content

posterior

1.7.0

Tools for Working with Posterior Distributions

113packages depend
6.4Mdownloads / year
95.3%test coverage
13/13checks pass

Overview

About
Maintained by Paul-Christian BürknerFirst published 2021-07-1314 releasesCRAN page ↗GitHub ↗

Provides useful tools for both users and developers of packages for fitting Bayesian models or working with output from Bayesian models. The primary goals of the package are to: (a) Efficiently convert between many different useful formats of draws (samples) from posterior or prior distributions. (b) Provide consistent methods for operations commonly performed on draws, for example, subsetting, binding, or mutating draws. (c) Provide various summaries of draws in convenient formats. (d) Provide lightweight implementations of state of the art posterior inference diagnostics. References: Vehtari et al. (2021) doi:10.1214/20-BA1221.

Install

Health

CRAN checks
13OK
Slowest check: 4.7 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.58
95.3%
Coverage · measured lines
97%
Documentation · exports
12
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-24
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-14
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,395 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
99%
Documented parameters
98%
Return-value docs
96%
References docs
25%

Downloads

6.4M
CRAN downloads in the past year
Rank #85 · ~17.5K/day · ~531.7K/mo
Daily download trend is not available in this view yet.
785.9K30 days
2.4M90 days
6.4M1 year
Compare downloads with other packages →
Also on15.4K r2u19 autocran19.5K conda_forge312 c2d4u

Repository

Repository
171Stars
25Forks
61Open issues
10Open PRs
11Releases
1,378Commits
22Contributors
r-packagebayesianmcmcbayes
1,378 commits · Last activity 2026-08-04 · 0% stars, 30d

Stars over time

2025-08-13 · 1682026-08-16 · 171

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/stan-dev/posterior on 2026-08-16.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
Automation and maintenance (1)
Dependabot
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
Governance and community (1)
Funding
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2.0
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

People & History

People (11)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Contributors (7)
Contributor
Contributor · added in 1.6.0
Contributor
Contributor
Contributor
Contributor · added in 1.7.0
Contributor
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.7.0Latest
    2026-04-01 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.6.1
    2025-02-27 · diff ↗
  • 1.6.0
    2024-07-04 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.5.0
    2023-10-31 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.4.1
    2023-03-14 · diff ↗
  • 1.4.0
    2023-02-22 · diff ↗
  • 1.3.1
    2022-09-06 · diff ↗
  • 1.3.0
    2022-08-15 · diff ↗
  • 1.2.2
    2022-06-10 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.1
    2022-03-07 · diff ↗
  • 1.2.0
    2022-01-05 · diff ↗
Show 4 earlier events
  • 1.1.0
    2021-09-09 · diff ↗
  • 1.0.1
    2021-07-14 · diff ↗
  • 1.0.0
    2021-07-13
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-07-13
Total releases
14 / 5 yrs
License
BSD_3_clause + file LICENSE OSI
Minimum R
≥ 3.2.0
Download size
398 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("posterior")
Bürkner, P., Adıgüzel, O., Gabry, J., Kallioinen, N., Kay, M., Lambert, B., Magnusson, M., Socolar, J., Säilynoja, T., Vehtari, A., & Češnovar, R. (2026). posterior: Tools for Working with Posterior Distributions (Version 1.7.0) [Computer software]. https://doi.org/10.32614/CRAN.package.posterior

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 posterior version 1.7.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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