partition.pmf: Obtain the Probability Mass Function of a Partition...

Description Usage Arguments Value Author(s) Examples

View source: R/shallot.R

Description

This function returns the probability mass function (pmf) of a partition distribution.

Usage

1

Arguments

x

An object of class shallot.distribution obtained, for example, from the ewens.pitman.attraction function.

Value

A function that takes a partition (as a vector in cluster label notation) and returns the probability — or, if log=TRUE, the log of the probability — of the supplied partition.

Author(s)

David B. Dahl dahl@stat.byu.edu

Examples

1
2
3
4
## Not run: 
example(shallot)

## End(Not run)

shallot documentation built on Nov. 10, 2020, 5:09 p.m.