calc_lik_vector: Compute conditional likelihoods for bhat vector.

View source: R/likelihoods_scaleddata.R

calc_lik_vectorR Documentation

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)

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 Oct. 18, 2023, 5:08 p.m.