calc_lik_vector: Compute conditional likelihoods for bhat vector.

Description Usage Arguments Value

View source: R/likelihoods_scaleddata.R

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

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

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.

Value

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


mashr documentation built on May 24, 2021, 1:06 a.m.