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

View source: R/posterior.R

compute_posterior_weightsR Documentation

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)

Arguments

pi

a K vector of mixture proportions

lik_mat

a JxK matrix of likelihoods

Value

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


mashr documentation built on Oct. 18, 2023, 5:08 p.m.