Bayesian factor estimation for model selection

Hi,
is there a quick/easy way to estimate Bayesian factors from MCMC traces?
Cheers and TYIA