A Bayesian hierarchical model for demand curve analysis. (July 2018)