implemented for a variety of Bayesian applications such as normal and binary response