*Doing Bayesian Data Analysis* in brms and the tidyverse

*version 0.0.3*

*2019-11-09*

# What and why

Kruschke began his text with “This book explains how to actually do Bayesian data analysis, by real people (like you), for realistic data (like yours).” In the same way, this project is designed to help those real people do Bayesian data analysis. My contribution is converting Kruschke’s JAGS code for use in Bürkner’s **brms** package, which makes it easier to fit Bayesian regression models in **R** using Hamiltonian Monte Carlo (HMC). I also prefer plotting and data wrangling with the packages from the **tidyverse**. So we’ll be using those methods, too.

This project is not meant to stand alone. It’s a supplement to the second edition of Kruschke’s *Doing Bayesian Data Analysis*. Please give the source material some love.

## Caution: Work in progress

The first release of this project only contained Chapters 1 through 5. Version 0.0.2 added Chapters 6 through 10. Welcome to version 0.0.3! The notable updates are:

- the addition of Chapters 11, 12, and 15 through 18
- a minor typo fix in Chapter 8.

Version 0.0.3 is noteworthy in that it’s the first version containing placeholder chapters. To accommodate the formatting conventions of the bookdown package, I included Chapters 13 and 14, though their content is not yet fleshed out. Of greater interest, Chapter 11 in Kruschke’s text contains several examples I have yet to sucessfully reproduce. They and other difficulties are detailed in the GitHub progress log. If you would like to share your solutions to those sections or any other section in the project, please open an issue in this project’s GitHub repository. It would be a tremendous help.

Many of the remaining chapters have completed drafts and just need another round of edits. I’ll add them, soon.