PYcalibrate | R Documentation |
The function PYcalibrate
elicits the strength parameter of the Pitman-Yor
process, given the discount parameter and the prior expected number of clusters.
PYcalibrate(Ek, n, discount = 0)
Ek |
prior expected number of cluster; |
n |
sample size; |
discount |
discount parameter; default is set equal to 0, corresponding to a Dirichlet process prior. |
A named list containingtthe values of strength and discount parameters.
PYcalibrate(5, 100) PYcalibrate(5, 100, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.