I have a piece of Stan code based from the following website (https://discourse.mc-stan.org/t/updating-model-with-new-data/5532/8) The stan code is based on the paper of Bai