ewens: Partition Distributions

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/shallot.R

Description

These functions specify the Ewens, Ewens-Pitman, Ewens attraction, Ewens-Pitman attraction, and ddCRP distributions which would then be used in the sample.partitions function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ewens(mass, n.items, names = paste0("c", 1:n.items))

## S3 method for class 'shallot.distribution.ewens'
print(x, ...)

ewens.pitman(mass, discount, n.items, names = paste0("c", 1:n.items))

## S3 method for class 'shallot.distribution.ewensPitman'
print(x, ...)

ewens.attraction(mass, attraction)

## S3 method for class 'shallot.distribution.ewensAttraction'
print(x, ...)

ewens.pitman.attraction(mass, discount, attraction)

## S3 method for class 'shallot.distribution.ewensPitmanAttraction'
print(x, ...)

ddcrp(mass, attraction)

## S3 method for class 'shallot.distribution.ddcrp'
print(x, ...)

Arguments

mass

An object of class shallot.mass.

n.items

An integer containing the number of items to partition.

names

A character vector containing the names of the items. The default names are of the form “c1”, “c2”, etc.

x

An object of class shallot.distribution.

...

Currently ignored.

discount

An object of class shallot.discount.

attraction

An object of class shallot.attraction.

Value

An object of class shallot.distribution.

Author(s)

David B. Dahl dahl@stat.byu.edu

References

Dahl, D. B., Day, R., and Tsai, J. (2017), Random Partition Distribution Indexed by Pairwise Information, Journal of the American Statistical Association, 112, 721-732. <DOI:10.1080/01621459.2016.1165103>

See Also

mass, discount, attraction, sample.partitions

Examples

1
2
3
4
5
6
7

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