A Bayesian approach to the g-formula. (October 2018)