tidybayes: Tidy Data and 'Geoms' for Bayesian Models

Compose data for and extract, manipulate, and visualize posterior draws from Bayesian models ('JAGS', 'Stan', 'rstanarm', 'brms', 'MCMCglmm', 'coda', ...) in a tidy data format. Functions are provided to help extract tidy data frames of draws from Bayesian models and that generate point summaries and intervals in a tidy format. In addition, 'ggplot2' 'geoms' and 'stats' are provided for common visualization primitives like points with multiple uncertainty intervals, eye plots (intervals plus densities), and fit curves with multiple, arbitrary uncertainty bands.

Version: 3.0.7
Depends: R (≥ 4.0.0)
Imports: methods, ggdist (≥ 3.0.0), dplyr (≥ 1.1.0), tidyr (≥ 1.0.0), ggplot2 (≥ 3.3.5), coda, rlang (≥ 0.3.0), arrayhelpers, tidyselect, tibble, magrittr, posterior (≥ 1.0.1), withr, cli, vctrs
Suggests: knitr, testthat, purrr (≥ 0.2.3), forcats, vdiffr (≥ 1.0.0), svglite, rstan (≥ 2.17.0), rstantools (≥ 2.1.0), runjags, rjags, jagsUI, rstanarm (≥ 2.19.2), emmeans, broom (≥ 0.4.3), MCMCglmm, bayesplot, modelr, brms (≥ 2.16.0), cowplot, covr, rmarkdown, ggrepel, bindrcpp, RColorBrewer, gganimate, gifski, png, ragg, pkgdown, distributional, transformr
Published: 2024-09-15
DOI: 10.32614/CRAN.package.tidybayes
Author: Matthew Kay [aut, cre], Timothy Mastny [ctb]
Maintainer: Matthew Kay <mjskay at northwestern.edu>
BugReports: https://github.com/mjskay/tidybayes/issues
License: GPL (≥ 3)
URL: https://mjskay.github.io/tidybayes/, https://github.com/mjskay/tidybayes/
NeedsCompilation: no
Language: en-US
Citation: tidybayes citation info
Materials: NEWS
CRAN checks: tidybayes results

Documentation:

Reference manual: tidybayes.pdf
Vignettes: Extracting and visualizing tidy draws from brms models (source, R code)
Using tidybayes with the posterior package (source, R code)
Extracting and visualizing tidy draws from rstanarm models (source, R code)
Extracting and visualizing tidy residuals from Bayesian models (source, R code)
Using tidy data with Bayesian models (source, R code)

Downloads:

Package source: tidybayes_3.0.7.tar.gz
Windows binaries: r-devel: tidybayes_3.0.7.zip, r-release: tidybayes_3.0.7.zip, r-oldrel: tidybayes_3.0.7.zip
macOS binaries: r-release (arm64): tidybayes_3.0.7.tgz, r-oldrel (arm64): tidybayes_3.0.7.tgz, r-release (x86_64): tidybayes_3.0.7.tgz, r-oldrel (x86_64): tidybayes_3.0.7.tgz
Old sources: tidybayes archive

Reverse dependencies:

Reverse imports: bartMan, BayesGrowth, bennu, fido, INSPECTumours, mcmsupply, mcp, ppcseq, rcbayes, reslr, surveil, tidytreatment, trialr
Reverse suggests: bmm, multiverse

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tidybayes to link to this page.