Learn R Programming

mashr (version 0.2.79)

calc_lik_vector: Compute conditional likelihoods for bhat vector.

Description

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.

Usage

calc_lik_vector(bhat, V, Ulist, log = FALSE)

Value

Vector of length P in which the pth element contains the multivariate normal likelihood p(bhat | Ulist[[p]], V).

Arguments

bhat

bhat vector (length R)

V

R x R covariance matrix for likelihood.

Ulist

list of prior covariance matrices.

log

If TRUE, the return value is a matrix of log-likelihoods.