calc_relative_lik_matrix {mashr} | R Documentation |
Calculate matrix of relative likelihoods.
Description
Computes matrix of relative likelihoods for each of J rows of 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_relative_lik_matrix(data, Ulist, algorithm.version = c("Rcpp", "R"))
Arguments
data |
A |
Ulist |
List containing the prior covariance matrices. |
algorithm.version |
indicates R or Rcpp |
Value
The return value is a list containing the following components:
lik_matrix |
J x P matrix containing likelihoods p(bhat[j] + Ulist[p], V), but normalized so that the largest entry in each row is 1. |
lfactors |
Vector which will recover the original
likelihoods; for example, |
[Package mashr version 0.2.79 Index]