-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
92 lines (64 loc) · 3.69 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Bindings for Bayesian TidyModels [<img src="man/figures/bayesian.png" align="right" width="160" alt="bayesian logo" />](https://hsbadr.github.io/bayesian/)
<!-- badges: start -->
[![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)
<!-- badges: end -->
[**`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/).