I have created a bayesian model and now I'd like to visualize the model's output by plotting the credible intervals for certain parameter. How would I do that?
The above code is just a working example, but how would I plot the posterior mean of foreign and its credible intervals? Additionally, some assistance in making a triplot (likelihood, prior probability and posterior probability) would be much appreciated.
Code:
sysuse auto, clear set seed 12345 bayesmh mpg foreign, likelihood(normal({var})) prior({mpg:_cons foreign}, flat) prior({var}, jeffreys)
Comment