nsubsets.random: Number of Subsets

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

View source: R/shallot.R

Description

These functions either sample the number of subsets for supported partition distributions or computes probabilities, means, and variances of these distributions.

Usage

1
2
3
4
5
6
7

Arguments

x

An object of class shallot.distribution.

n.samples

An integer containing the number of samples.

n.subsets

An integer containing the number of subsets.

Value

The nsubsets.random function returns a vector of random samples of the number of subsets in the distribution x.

The nsubsets.probability function returns the probability that the number of subsets is n.subsets in the distribution x. Depending on the number of items and the value of n.subsets, this function can be computationally intensive.

The nsubsets.average and nsubsets.variance functions return the mean and variances, respectively, of the number of subsets in the distribution x.

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

partition.distribution

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

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