This is an internal (non-exported) function. This help page provides additional documentation mainly intended for developers and expert users.
posterior_mean_matrix(Bhat, Vinv, U1)
R vector of posterior mean
J by R matrix of observations
R x R inverse covariance matrix for the likelihood
R x R posterior covariance matrix, computed using posterior_cov
Computes posterior mean under multivariate normal model for each row of matrix Bhat. Note that if bhat is N_R(b,V) and b is N_R(0,U) then b|bhat N_R(mu1,U1). This function returns a matrix with jth row equal to mu1(bhat) for bhat= Bhat[j,].