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

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