PartitionTypeAll {MultiStatM}R Documentation

Partitions, type and number of partitions

Description

Generates all partitions of N numbers and classify them by type

Usage

PartitionTypeAll(N)

Arguments

N

The (integer) number of elements to be partitioned

Value

Part.class The list of all possible partitions given as partition matrices

S_N_r A vector with the number of partitions of size r=1, r=2, etc. (Stirling numbers of second kind )

eL_r A list of partition types with respect to partitions of size r=1, r=2, etc.

S_r_j Vectors of number of partitions with given types grouped by partitions of size r=1, r=2, etc.

References

Gy. Terdik, Multivariate statistical methods - going beyond the linear, Springer 2021. Case 1.4, p.31 and Example 1.18, p.32.

See Also

Other Partitions: Partitions(), PermutationInv()

Examples

# See Example 1.18, p. 32, reference below
PTA<-PartitionTypeAll(4)
# Partitions generated
PTA$Part.class
# Partitions of size 2 includes two types
PTA$eL_r[[2]]
# Number of partitions with r=1 blocks, r=2 blocks, etc-
PTA$S_N_r
# Number of different types collected by  partitions of size r=1, r=2, etc.
PTA$S_r_j
# Partitions with size r=2, includes two types (above) each with number
PTA$S_r_j[[2]]


[Package MultiStatM version 2.0.0 Index]