mcmcdb functions related to rstan