Draw pi from posterior distribution
1 | drawpi(g, alpha, K)
|
g: |
Vector, group memberships |
alpha: |
Vector, parameters of Dirichlet prior |
K: |
Integer, number of groups |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.