Description
Doing Bayesian Data Analysis: A Tutorial with R, JAGS, and Stan, Second Edition provides an accessible approach for conducting Bayesian data analysis, as material is explained clearly with concrete examples. Included are stepbystep instructions on how to carry out Bayesian data analyses in the popular and free software R and WinBugs, as well as new programs in JAGS and Stan. The new programs are designed to be much easier to use than the scripts in the first edition. In particular, there are now compact highlevel scripts that make it easy to run the programs on your own data sets.
The book is divided into three parts and begins with the basics: models, probability, Bayes’ rule, and the R programming language. The discussion then moves to the fundamentals applied to inferring a binomial probability, before concluding with chapters on the generalized linear model. Topics include metricpredicted variable on one or two groups; metricpredicted variable with one metric predictor; metricpredicted variable with multiple metric predictors; metricpredicted variable with one nominal predictor; and metricpredicted variable with multiple nominal predictors. The exercises found in the text have explicit purposes and guidelines for accomplishment.
This book is intended for firstyear graduate students or advanced undergraduates in statistics, data analysis, psychology, cognitive science, social sciences, clinical sciences, and consumer sciences in business.
 Accessible, including the basics of essential concepts of probability and random sampling
 Examples with R programming language and JAGS software
 Comprehensive coverage of all scenarios addressed by nonBayesian textbooks: ttests, analysis of variance (ANOVA) and comparisons in ANOVA, multiple regression, and chisquare (contingency table analysis)
 Coverage of experiment planning
 R and JAGS computer programming code on website
 Exercises have explicit purposes and guidelines for accomplishment

Provides stepbystep instructions on how to conduct Bayesian data analyses in the popular and free software R and WinBugs