gammaStatistics {partitionComparison}R Documentation

Gamma Statistics

Description

Compute the Gamma statistics

\frac{N_{11}N_{00} - N_{10}N_{01}}{\sqrt{ N_{21}N_{12}N'_{10}N'_{01} }}

Usage

gammaStatistics(p, q)

## S4 method for signature 'Partition,Partition'
gammaStatistics(p, q)

## S4 method for signature 'PairCoefficients,missing'
gammaStatistics(p, q = NULL)

Arguments

p

The partition P or an instance of PairCoefficients

q

The partition Q or NULL

Methods (by class)

Author(s)

Fabian Ball fabian.ball@kit.edu

References

Yule GU (1900). “On the Association of Attributes in Statistics: With Illustrations from the Material of the Childhood Society, &c.” Philosophical Transactions of the Royal Society of London. Series A, Containing Papers of a Mathematical or Physical Character, 194, 257–319.

Examples

isTRUE(all.equal(gammaStatistics(new("Partition", c(0, 0, 0, 1, 1)), 
                                 new("Partition", c(0, 0, 1, 1, 1))), 1/6))


[Package partitionComparison version 0.2.6 Index]