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)
a JxK matrix of posterior probabilities, the jth row contains posteriors for jth effect
a K vector of mixture proportions
a JxK matrix of likelihoods