For general stats questions this might be a better place to ask https://stats.stackexchange.com/ or at least a faster response.
You can code up a Bayes Factor model in Stan (Finding the Bayes factor using Stan and there are other topics on Bayes Factors here as well.