Learn R Programming

mashr (version 0.2.79)

compute_posterior_weights: Compute posterior probabilities that each effect came from each component

Description

This is an internal (non-exported) function. This help page provides additional documentation mainly intended for developers and expert users.

Usage

compute_posterior_weights(pi, lik_mat)

Value

a JxK matrix of posterior probabilities, the jth row contains posteriors for jth effect

Arguments

pi

a K vector of mixture proportions

lik_mat

a JxK matrix of likelihoods