R Programming/Bayesian Methods