bayesian

Bindings for Bayesian TidyModels

https://github.com/hsbadr/bayesian

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.5%) to scientific vocabulary

Keywords

bayesian brms stan tidymodels
Last synced: 6 months ago · JSON representation ·

Repository

Bindings for Bayesian TidyModels

Basic Info
Statistics
  • Stars: 47
  • Watchers: 4
  • Forks: 3
  • Open Issues: 5
  • Releases: 11
Topics
bayesian brms stan tidymodels
Created about 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Support

README.Rmd

---
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 [bayesian logo](https://hsbadr.github.io/bayesian/)


[![Lifecycle: Stable](https://img.shields.io/badge/Lifecycle-Stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![Codecov Test Coverage](https://codecov.io/gh/hsbadr/bayesian/branch/main/graph/badge.svg)](https://app.codecov.io/gh/hsbadr/bayesian?branch=main)
[![Last commit](https://img.shields.io/github/last-commit/hsbadr/bayesian)](https://github.com/hsbadr/bayesian/commits/main)
[![Commits since release](https://img.shields.io/github/commits-since/hsbadr/bayesian/latest.svg?color=green)](https://github.com/hsbadr/bayesian/commit/main)
[![R](https://github.com/hsbadr/bayesian/workflows/R/badge.svg)](https://github.com/hsbadr/bayesian/actions)

[![CRAN Status](https://www.r-pkg.org/badges/version/bayesian)](https://CRAN.R-project.org/package=bayesian)
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/grand-total/bayesian)](https://cran.r-project.org/package=bayesian)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/hsbadr/bayesian/blob/main/LICENSE.md)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4426836.svg)](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/).

Owner

  • Name: Hamada S. Badr
  • Login: hsbadr
  • Kind: user
  • Location: Washington, District of Columbia
  • Company: Amazon Web Services (AWS)

Senior Applied Scientist

Citation (CITATION.cff)

# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# --------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "bayesian" in publications use:'
type: software
license: MIT
title: 'bayesian: Bindings for Bayesian TidyModels'
version: 1.0.1
doi: 10.5281/zenodo.4426836
identifiers:
- type: doi
  value: 10.32614/CRAN.package.bayesian
abstract: Fit Bayesian models using 'brms'/'Stan' with 'parsnip'/'tidymodels' via
  'bayesian' <https://doi.org/10.5281/zenodo.4426836>. 'tidymodels' is a collection
  of packages for machine learning; see Kuhn and Wickham (2020) <https://www.tidymodels.org>).
  The technical details of 'brms' and 'Stan' are described in Bürkner (2017) <https://doi.org/10.18637/jss.v080.i01>,
  Bürkner (2018) <https://doi.org/10.32614/RJ-2018-017>, and Carpenter et al. (2017)
  <https://doi.org/10.18637/jss.v076.i01>.
authors:
- family-names: Badr
  given-names: Hamada S.
  email: badr@jhu.edu
  orcid: https://orcid.org/0000-0002-9808-2344
- family-names: Bürkner
  given-names: Paul-Christian
  email: paul.buerkner@gmail.com
preferred-citation:
  type: manual
  title: 'bayesian: Bindings for Bayesian TidyModels'
  authors:
  - family-names: Badr
    given-names: Hamada S.
    email: badr@jhu.edu
    orcid: https://orcid.org/0000-0002-9808-2344
  - family-names: Bürkner
    given-names: Paul C.
    email: paul.buerkner@gmail.com
  year: '2024'
  journal: Comprehensive R Archive Network (CRAN)
  url: https://hsbadr.github.io/bayesian/
  doi: 10.5281/zenodo.4426836
repository: https://CRAN.R-project.org/package=bayesian
repository-code: https://github.com/hsbadr/bayesian
url: https://hsbadr.github.io/bayesian/
contact:
- family-names: Badr
  given-names: Hamada S.
  email: badr@jhu.edu
  orcid: https://orcid.org/0000-0002-9808-2344
keywords:
- bayesian
- brms
- stan
- tidymodels
references:
- type: software
  title: brms
  abstract: 'brms: Bayesian Regression Models using ''Stan'''
  notes: Depends
  url: https://discourse.mc-stan.org/
  repository: https://CRAN.R-project.org/package=brms
  authors:
  - family-names: Bürkner
    given-names: Paul-Christian
    email: paul.buerkner@gmail.com
  year: '2025'
  doi: 10.32614/CRAN.package.brms
  version: '>= 2.21.0'
- type: software
  title: parsnip
  abstract: 'parsnip: A Common API to Modeling and Analysis Functions'
  notes: Depends
  url: https://parsnip.tidymodels.org/
  repository: https://CRAN.R-project.org/package=parsnip
  authors:
  - family-names: Kuhn
    given-names: Max
    email: max@posit.co
  - family-names: Vaughan
    given-names: Davis
    email: davis@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.parsnip
  version: '>= 1.2.1'
- type: software
  title: 'R: A Language and Environment for Statistical Computing'
  notes: Depends
  url: https://www.R-project.org/
  authors:
  - name: R Core Team
  institution:
    name: 'R Foundation for Statistical Computing (ROR: <https://ror.org/05qewa988>)'
    address: Vienna, Austria
  year: '2025'
  doi: 10.32614/R.manuals
  version: '>= 4.1.0'
- type: software
  title: dplyr
  abstract: 'dplyr: A Grammar of Data Manipulation'
  notes: Imports
  url: https://dplyr.tidyverse.org
  repository: https://CRAN.R-project.org/package=dplyr
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: François
    given-names: Romain
    orcid: https://orcid.org/0000-0002-2444-4226
  - family-names: Henry
    given-names: Lionel
  - family-names: Müller
    given-names: Kirill
    orcid: https://orcid.org/0000-0002-1416-3412
  - family-names: Vaughan
    given-names: Davis
    email: davis@posit.co
    orcid: https://orcid.org/0000-0003-4777-038X
  year: '2025'
  doi: 10.32614/CRAN.package.dplyr
- type: software
  title: purrr
  abstract: 'purrr: Functional Programming Tools'
  notes: Imports
  url: https://purrr.tidyverse.org/
  repository: https://CRAN.R-project.org/package=purrr
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: Henry
    given-names: Lionel
    email: lionel@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.purrr
- type: software
  title: rlang
  abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
  notes: Imports
  url: https://rlang.r-lib.org
  repository: https://CRAN.R-project.org/package=rlang
  authors:
  - family-names: Henry
    given-names: Lionel
    email: lionel@posit.co
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.rlang
- type: software
  title: stats
  abstract: 'R: A Language and Environment for Statistical Computing'
  notes: Imports
  authors:
  - name: R Core Team
  institution:
    name: 'R Foundation for Statistical Computing (ROR: <https://ror.org/05qewa988>)'
    address: Vienna, Austria
  year: '2025'
  doi: 10.32614/R.manuals
- type: software
  title: tibble
  abstract: 'tibble: Simple Data Frames'
  notes: Imports
  url: https://tibble.tidyverse.org/
  repository: https://CRAN.R-project.org/package=tibble
  authors:
  - family-names: Müller
    given-names: Kirill
    email: kirill@cynkra.com
    orcid: https://orcid.org/0000-0002-1416-3412
  - family-names: Wickham
    given-names: Hadley
    email: hadley@rstudio.com
  year: '2025'
  doi: 10.32614/CRAN.package.tibble
- type: software
  title: utils
  abstract: 'R: A Language and Environment for Statistical Computing'
  notes: Imports
  authors:
  - name: R Core Team
  institution:
    name: 'R Foundation for Statistical Computing (ROR: <https://ror.org/05qewa988>)'
    address: Vienna, Austria
  year: '2025'
  doi: 10.32614/R.manuals
- type: software
  title: covr
  abstract: 'covr: Test Coverage for Packages'
  notes: Suggests
  url: https://covr.r-lib.org
  repository: https://CRAN.R-project.org/package=covr
  authors:
  - family-names: Hester
    given-names: Jim
    email: james.f.hester@gmail.com
  year: '2025'
  doi: 10.32614/CRAN.package.covr
- type: software
  title: devtools
  abstract: 'devtools: Tools to Make Developing R Packages Easier'
  notes: Suggests
  url: https://devtools.r-lib.org/
  repository: https://CRAN.R-project.org/package=devtools
  authors:
  - family-names: Wickham
    given-names: Hadley
  - family-names: Hester
    given-names: Jim
  - family-names: Chang
    given-names: Winston
  - family-names: Bryan
    given-names: Jennifer
    email: jenny@rstudio.com
    orcid: https://orcid.org/0000-0002-6983-2759
  year: '2025'
  doi: 10.32614/CRAN.package.devtools
- type: software
  title: future
  abstract: 'future: Unified Parallel and Distributed Processing in R for Everyone'
  notes: Suggests
  url: https://future.futureverse.org
  repository: https://CRAN.R-project.org/package=future
  authors:
  - family-names: Bengtsson
    given-names: Henrik
    email: henrikb@braju.com
    orcid: https://orcid.org/0000-0002-7579-5165
  year: '2025'
  doi: 10.32614/CRAN.package.future
- type: software
  title: knitr
  abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
  notes: Suggests
  url: https://yihui.org/knitr/
  repository: https://CRAN.R-project.org/package=knitr
  authors:
  - family-names: Xie
    given-names: Yihui
    email: xie@yihui.name
    orcid: https://orcid.org/0000-0003-0645-5666
  year: '2025'
  doi: 10.32614/CRAN.package.knitr
- type: software
  title: recipes
  abstract: 'recipes: Preprocessing and Feature Engineering Steps for Modeling'
  notes: Suggests
  url: https://recipes.tidymodels.org/
  repository: https://CRAN.R-project.org/package=recipes
  authors:
  - family-names: Kuhn
    given-names: Max
    email: max@posit.co
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  - family-names: Hvitfeldt
    given-names: Emil
    email: emil.hvitfeldt@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.recipes
- type: software
  title: rmarkdown
  abstract: 'rmarkdown: Dynamic Documents for R'
  notes: Suggests
  url: https://pkgs.rstudio.com/rmarkdown/
  repository: https://CRAN.R-project.org/package=rmarkdown
  authors:
  - family-names: Allaire
    given-names: JJ
    email: jj@posit.co
  - family-names: Xie
    given-names: Yihui
    email: xie@yihui.name
    orcid: https://orcid.org/0000-0003-0645-5666
  - family-names: Dervieux
    given-names: Christophe
    email: cderv@posit.co
    orcid: https://orcid.org/0000-0003-4474-2498
  - family-names: McPherson
    given-names: Jonathan
    email: jonathan@posit.co
  - family-names: Luraschi
    given-names: Javier
  - family-names: Ushey
    given-names: Kevin
    email: kevin@posit.co
  - family-names: Atkins
    given-names: Aron
    email: aron@posit.co
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  - family-names: Cheng
    given-names: Joe
    email: joe@posit.co
  - family-names: Chang
    given-names: Winston
    email: winston@posit.co
  - family-names: Iannone
    given-names: Richard
    email: rich@posit.co
    orcid: https://orcid.org/0000-0003-3925-190X
  year: '2025'
  doi: 10.32614/CRAN.package.rmarkdown
- type: software
  title: roxygen2
  abstract: 'roxygen2: In-Line Documentation for R'
  notes: Suggests
  url: https://roxygen2.r-lib.org/
  repository: https://CRAN.R-project.org/package=roxygen2
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
    orcid: https://orcid.org/0000-0003-4757-117X
  - family-names: Danenberg
    given-names: Peter
    email: pcd@roxygen.org
  - family-names: Csárdi
    given-names: Gábor
    email: csardi.gabor@gmail.com
  - family-names: Eugster
    given-names: Manuel
  year: '2025'
  doi: 10.32614/CRAN.package.roxygen2
- type: software
  title: rstan
  abstract: 'rstan: R Interface to Stan'
  notes: Suggests
  url: https://mc-stan.org/rstan/
  repository: https://CRAN.R-project.org/package=rstan
  authors:
  - family-names: Guo
    given-names: Jiqiang
    email: guojq28@gmail.com
  - family-names: Gabry
    given-names: Jonah
    email: jsg2201@columbia.edu
  - family-names: Goodrich
    given-names: Ben
    email: benjamin.goodrich@columbia.edu
  - family-names: Johnson
    given-names: Andrew
    email: andrew.johnson@arjohnsonau.com
  - family-names: Weber
    given-names: Sebastian
    email: sdw.post@waebers.de
  - family-names: Badr
    given-names: Hamada S.
    email: badr@jhu.edu
    orcid: https://orcid.org/0000-0002-9808-2344
  year: '2025'
  doi: 10.32614/CRAN.package.rstan
- type: software
  title: spelling
  abstract: 'spelling: Tools for Spell Checking in R'
  notes: Suggests
  url: https://ropensci.r-universe.dev/spelling
  repository: https://CRAN.R-project.org/package=spelling
  authors:
  - family-names: Ooms
    given-names: Jeroen
    email: jeroenooms@gmail.com
    orcid: https://orcid.org/0000-0002-4035-0289
  - family-names: Hester
    given-names: Jim
    email: james.hester@rstudio.com
  year: '2025'
  doi: 10.32614/CRAN.package.spelling
- type: software
  title: testthat
  abstract: 'testthat: Unit Testing for R'
  notes: Suggests
  url: https://testthat.r-lib.org
  repository: https://CRAN.R-project.org/package=testthat
  authors:
  - family-names: Wickham
    given-names: Hadley
    email: hadley@posit.co
  year: '2025'
  doi: 10.32614/CRAN.package.testthat
- type: software
  title: workflows
  abstract: 'workflows: Modeling Workflows'
  notes: Suggests
  url: https://workflows.tidymodels.org
  repository: https://CRAN.R-project.org/package=workflows
  authors:
  - family-names: Vaughan
    given-names: Davis
    email: davis@posit.co
  - family-names: Couch
    given-names: Simon
    email: simon.couch@posit.co
    orcid: https://orcid.org/0000-0001-5676-5107
  - family-names: Frick
    given-names: Hannah
    email: hannah@posit.co
    orcid: https://orcid.org/0000-0002-6049-5258
  year: '2025'
  doi: 10.32614/CRAN.package.workflows

GitHub Events

Total
  • Watch event: 4
  • Push event: 33
Last Year
  • Watch event: 4
  • Push event: 33

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 385
  • Total Committers: 4
  • Avg Commits per committer: 96.25
  • Development Distribution Score (DDS): 0.029
Past Year
  • Commits: 39
  • Committers: 1
  • Avg Commits per committer: 39.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Hamada S. Badr h****r@g****m 374
Paul Buerkner p****r@g****m 7
GitHub Actions a****s@g****m 3
topepo m****n@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 16
  • Total pull requests: 2
  • Average time to close issues: 13 days
  • Average time to close pull requests: about 10 hours
  • Total issue authors: 14
  • Total pull request authors: 2
  • Average comments per issue: 2.56
  • Average comments per pull request: 5.5
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hsbadr (2)
  • DoktorMike (2)
  • bonddr (1)
  • instantkaffee (1)
  • joscani (1)
  • paul-buerkner (1)
  • jzicker (1)
  • evesch (1)
  • michaelgaunt404 (1)
  • davidkane9 (1)
  • JamesHWade (1)
  • bnicenboim (1)
  • mdancho84 (1)
  • tonyelhabr (1)
Pull Request Authors
  • paul-buerkner (1)
  • topepo (1)
Top Labels
Issue Labels
enhancement (2) good first issue (1) documentation (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 691 last-month
  • Total docker downloads: 41,971
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 9
  • Total maintainers: 1
cran.r-project.org: bayesian

Bindings for Bayesian TidyModels

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 691 Last month
  • Docker Downloads: 41,971
Rankings
Stargazers count: 8.5%
Forks count: 14.9%
Average: 22.3%
Downloads: 22.7%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 4.1.0 depends
  • brms >= 2.17.0 depends
  • parsnip >= 1.0.0 depends
  • dplyr * imports
  • purrr * imports
  • rlang * imports
  • stats * imports
  • tibble * imports
  • utils * imports
  • covr * suggests
  • devtools * suggests
  • future * suggests
  • knitr * suggests
  • recipes * suggests
  • rmarkdown * suggests
  • roxygen2 * suggests
  • rstan * suggests
  • spelling * suggests
  • testthat * suggests
  • workflows * suggests
.github/workflows/R.yml actions
  • JamesIves/github-pages-deploy-action v4 composite
  • actions/checkout v3 composite
  • actions/create-release v1 composite
  • actions/download-artifact v2 composite
  • actions/download-artifact v3 composite
  • actions/upload-artifact v3 composite
  • actions/upload-release-asset v1 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/pr-fetch v2 composite
  • r-lib/actions/pr-push v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
  • r-lib/actions/setup-tinytex v2 composite