doHB function

Estimate a Hierarchical Bayesian Model