Return the posterior on beta given a prior (g) that is a mixture of normals (class normalmix) and observation \(betahat ~ N(beta,sebetahat)\)
posterior_dist(g, betahat, sebetahat)
A list, (pi1,mu1,sigma1) whose components are each k by n matrices where k is number of mixture components in g, n is number of observations in betahat
a normalmix with components indicating the prior; works only if g has means 0
(n vector of observations)
(n vector of standard errors/deviations of observations)
This can be used to obt