This demo accompanies the paper "Hierarchical Bayesian propulsion power models for marine vessels", see https://arxiv.org/abs/2004.11267.
The model description and fitting can be found as a jupyter notebook in stan_fit.ipynb. In addition, the code needs numpy and pystan to run.