From this site you can download EViews code to implement Markov Chain Monte Carlo (MCMC) methods to simulate marginal distributions; as well as background notes that discuss two examples, which are then implemented in EViews.