https://github.com/hsbadr/bayesian
Bindings for Bayesian TidyModels
https://github.com/hsbadr/bayesian
bayesian brms stan tidymodels
Last synced: about 2 months ago
JSON representation
Bindings for Bayesian TidyModels
- Host: GitHub
- URL: https://github.com/hsbadr/bayesian
- Owner: hsbadr
- License: other
- Created: 2021-01-06T20:13:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T12:17:22.000Z (2 months ago)
- Last Synced: 2025-03-29T08:08:09.714Z (2 months ago)
- Topics: bayesian, brms, stan, tidymodels
- Language: R
- Homepage: https://hsbadr.github.io/bayesian/
- Size: 6.69 MB
- Stars: 47
- Watchers: 4
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# Bindings for Bayesian TidyModels [
](https://hsbadr.github.io/bayesian/)
[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://app.codecov.io/gh/hsbadr/bayesian?branch=main)
[](https://github.com/hsbadr/bayesian/commits/main)
[](https://github.com/hsbadr/bayesian/commit/main)
[](https://github.com/hsbadr/bayesian/actions)[](https://CRAN.R-project.org/package=bayesian)
[](https://cran.r-project.org/package=bayesian)
[](https://github.com/hsbadr/bayesian/blob/main/LICENSE.md)
[](https://zenodo.org/doi/10.5281/zenodo.4426836)[**`bayesian`**](https://hsbadr.github.io/bayesian/) supports Bayesian modeling using [`brms`](https://paul-buerkner.github.io/brms/)/[`Stan`](https://mc-stan.org/)
with [`parsnip`](https://parsnip.tidymodels.org/)/[`tidymodels`](https://www.tidymodels.org/).## Installation
The stable version of [`bayesian`](https://hsbadr.github.io/bayesian/) can be installed from [CRAN](https://CRAN.R-project.org/package=bayesian) using:
``` r
install.packages("bayesian")
```The development version of [`bayesian`](https://hsbadr.github.io/bayesian/) can be installed from [GitHub](https://github.com/hsbadr/bayesian) using:
``` r
install.packages("pak")
pak::pkg_install("hsbadr/bayesian")
```## Example
``` r
library(bayesian)bayesian_mod <-
bayesian() |>
set_engine("brms") |>
fit(
rating ~ treat + period + carry + (1 | subject),
data = inhaler
)summary(bayesian_mod$fit)
```For more details, [get started with `bayesian`](https://hsbadr.github.io/bayesian/articles/GetStarted.html).
## Citation
To cite `bayesian` in publications, please use:
```r
citation("bayesian")
```> Hamada S. Badr and Paul C. Bürkner (2024):
bayesian: Bindings for Bayesian TidyModels,
[_Comprehensive R Archive Network (CRAN)_](https://cran.r-project.org/package=bayesian).
URL: [https://hsbadr.github.io/bayesian/](https://hsbadr.github.io/bayesian/).## Contributing
This project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://forum.posit.co/).
- If you think you have encountered a bug, please [submit an issue](https://github.com/hsbadr/bayesian/issues).
- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org) (a minimal, reproducible example), to clearly communicate about your code.
- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).