Technology Innovations in Statistics Education
Discrete Bayes with R
- Author(s): Albert, Jim
- et al.
An attractive way of introducing Bayesian thinking is through a discrete model approach where the parameter is assigned a discrete prior. Two generic R functions are introduced for implementing posterior and predictive calculations for arbitrary choices of prior and sampling densities. Several examples illustrate the usefulness of these functions in summarizing the posterior distributions for one and two parameter problems and for comparing models by the use of Bayes factors.