Question: Apply a three-group discrete mixture model to the baseball average data. A two group mixture, with code as below, gives an LPML (for the original

Apply a three-group discrete mixture model to the baseball average data. A two group mixture, with code as below, gives an LPML (for the original data) of -726.5 , with plots of \(p_{\text {new }}\) suggesting some bimodality - though the posterior predictive criterion regarding maximum \(p_{\text {new }}\) is still approaching 0.9 .

model for (i in 1:380) (y[i] ~dbin (p[G[i]],n[i]); #latent groups G[i] dcat

model for (i in 1:380) (y[i] ~dbin (p[G[i]],n[i]); #latent groups G[i] dcat (pi [1:2]) ynew [i] ~dbin (p [G[i]],n[i]); pnew [i]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Bayesian Statistics An Introduction Questions!