Computes vector of likelihoods for bhat for each of P prior covariances.
This is an internal (non-exported) function. This help page provides additional documentation mainly intended for developers and expert users.
calc_lik_vector(bhat, V, Ulist, log = FALSE)
Vector of length P in which the pth element contains the multivariate normal likelihood p(bhat | Ulist[[p]], V).
bhat vector (length R)
R x R covariance matrix for likelihood.
list of prior covariance matrices.
If TRUE
, the return value is a matrix of
log-likelihoods.