Learn R Programming

BNPmix (version 1.0.2)

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)

Value

A named list containingtthe values of strength and discount parameters.

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.

Examples

Run this code
PYcalibrate(5, 100)

PYcalibrate(5, 100, 0.5)

Run the code above in your browser using DataLab