Description Usage Arguments Value
Function to update posterior for dirichlet concentration parameters.
1 | phiUpdate(phi, i, clustnew, n, betaHat)
|
phi |
Current value of posterior dirichlet weights. |
i |
Current iteration of the SUGS algorithm. |
clustnew |
The cluster to which the |
n |
A vector indicating the number of observations allocated to each cluster. |
betaHat |
The grid prior for the dirichlet concentration parameter. |
An update value for phi.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.