tidybayes
mjskay/tidybayes · Public GitHub repository
Bayesian analysis + tidy data + geoms (R package)
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
tidybayes is an R package that aims to make it easy to integrate popular Bayesian modeling methods into a tidy data + ggplot workflow. It builds on top of (and re-exports) several functions for visualizing uncertainty from its sister package, ggdist
Tidy data frames (one observation per row) are particularly convenient for use in a variety of R data manipulation and visualization packages. However, when using Bayesian modeling functions like JAGS or Stan in R, we often have to translate this data into a form the model understands, and then after running the model, translate the resulting sample (or predictions) into a more tidy format for use with other R functions. tidybayes aims to simplify these two common (often tedious) operations:
translating data from a data.frame into a list , making sure factors are encoded as numerical data, adding variables to store the length of indices, etc. This package helps automate these operations using the composedata() function, which automatically handles data types like numeric, logical, factor, and ordinal, and allows easy extensions for converting other data types into a format the model understands by providing your own implementation of the generic asdatalist().
- Composing data for use with the model. This often means
- Extracting tidy draws from the model. This often means extracting
- Extracting tidy fits and predictions from models. For models like
- Summarizing posterior distributions from models. tidybayes
- Visualizing priors and posteriors. The focus on tidy data makes
Requirements and intended audience
tidybayes is an R package that aims to make it easy to integrate popular Bayesian modeling methods into a tidy data + ggplot workflow. It builds on top of (and re-exports) several functions for visualizing uncertainty from its sister package, ggdist
Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-10-12. Source: https://github.com/mjskay/tidybayes/blob/master/README.md
Recorded maintenance information
Last recorded source update: 2024-09-17. Saved release: v3.0.7 · 2024-09-16. These dates do not guarantee ongoing maintenance.
- Technologies
- R
- Licence
- GPL-3.0. Distributing the software or derivatives can require sharing source under the same licence.
- Demo check
- A public page loaded on 2026-11-16. This does not test every feature.
Browse related categories
More projects to explore
iptv
iptv-org/iptv
Collection of publicly available IPTV channels from all over the world
HowToLiveBetter
eternity4719/HowToLiveBetter
高性价比人生指南: 长寿防病、急救、省钱理财、法律红线、失业与工伤、医保社保、恋爱婚育、怀孕育儿、创业与做平台合规、出国与技能。每条写明成本、收益、证据等级和原始出处,只引期刊论文与官方文件。
OpenManus
FoundationAgents/OpenManus
No fortress, purely open ground. OpenManus is Coming.
JavaScript30
wesbos/JavaScript30
30 Day Vanilla JS Challenge