Doing Bayesian Data Analysis in brms and the tidyverse
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)." Agreed. Similarly, 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 for fitting Bayeisn regression models in R using HMC. I also prefer plotting with Wickham's ggplot2, and recently converted to using tidyverse-style syntax (which you might learn about here or here). 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. I follow the structure of his text, chapter by chapter, translating his analyses into brms and tidyverse code. However, many of the sections in the text are composed entirely of equations and prose, leaving us nothing to translate. When we run into those sections, I typically just quote some of the prose.
I reproduce the bulk of the figures in the text, too. However, I don't always reproduce them exactly. I’m passionate about data visualization and like to play around with color palettes, formatting templates, and other conventions from time to time. For more on visualization, chapters 3, 7, and 28 in R4DS or Healy’s Data Visualization: A practical introduction.
While this is still in the working-project phase, I’ll update chapters in .Rmd files and those rendered as
output: github_document. In addition to checking the file list, you can also keep track of my progress by my notes in the Issues. The long-term goal is to stitch all this together as a coherent bookdown document. With any luck, I’ll have the first version of that up sometime in the spring of 2019.