Instruction: Explain how to perform advanced Bayesian data analysis in R, including model building, inference, and diagnostics.
Context: This question tests the candidate's ability to apply Bayesian statistics to complex data analysis problems in R.
easy
medium
hard