A function to calculate posterior quanties for a normal-normal model with known variance (pages 70-72). It produces the posterior mean, variance, and 95% credible interval for user-specified prior.
norm.known.var(data.vec,pop.var,prior.mean,prior.var)
a vector of assumed normally distributed data
known population variance
mean of specified prior distribution for mu
variance of specified prior distribution for mu
Jeff Gill