attraction: Attraction

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

View source: R/shallot.R

Description

This function creates an attraction from a permutation and a decay in preparation for use in the ewens.attraction, ewens.pitman.attraction, and ddcrp functions. For details on each of these arguments, please see the links below.

Usage

1
2
3
4
5
6
7
attraction(permutation, decay)

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

## S3 method for class 'shallot.attraction'
as.matrix(x, ...)

Arguments

permutation

An object of class shallot.permutation encoding the permutation of the items.

decay

An object of class shallot.decay detailing the transformation from distances to attractions.

x

An object of class shallot.attraction.

...

Currently ignored.

Value

An object of class shallot.attraction.

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

ddcrp, decay, ewens.attraction, ewens.pitman.attraction, permutation

Examples

1
2
3

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