Description Usage Arguments Value
A function to compute the marginal probability of belong to an occupied cluster for the SUGS algorithm
1 | sugsclusterProb(x, K, i, D, n, betaHat, phi, m, nu, S, lambda)
|
x |
The current observation under consideration. |
K |
The number of occupied clusters |
i |
The current iteration of the SUGS algorithm |
D |
The number of variables |
n |
A numeric vector containing the number of observations allocated to each cluster |
betaHat |
The grid of values for the dirichlet concentration parameter |
phi |
The weights associated with the dirichlet grid prior |
m |
The current posterior mean |
nu |
The current posterior degrees of freedom |
S |
The current posterior scale vector |
lambda |
The current posterior for the mean variance |
The numeric vector with the unnormalised probability of beloging to each cluster.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.