PYcalibrate {BNPmix} | R Documentation |
Pitman-Yor prior elicitation
Description
The function PYcalibrate
elicits the strength parameter of the Pitman-Yor
process, given the discount parameter and the prior expected number of clusters.
Usage
PYcalibrate(Ek, n, discount = 0)
Arguments
Ek |
prior expected number of cluster; |
n |
sample size; |
discount |
discount parameter; default is set equal to 0, corresponding to a Dirichlet process prior. |
Value
A named list containingtthe values of strength and discount parameters.
Examples
PYcalibrate(5, 100)
PYcalibrate(5, 100, 0.5)
[Package BNPmix version 1.0.2 Index]