createBayesianSetup function

Creates a standardized collection of prior, likelihood and posterior functions, including error checks etc.