Learn R Programming

BNPmix (version 0.2.5)

PYcalibrate: 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

Run this code
# NOT RUN {
PYcalibrate(5, 100)

PYcalibrate(5, 100, 0.5)

# }

Run the code above in your browser using DataLab