Chapter 21 Bayesian statistics in R

21.2 Estimating posterior distributions (Section 20.4)

Computing likelihood

Computing marginal likelihood

Comuting posterior

21.3 Bayes factors (Section 20.6.1)

Example showing how BFs and p-values relate