Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


partitionComparison (version 0.2.6)

gammaStatistics: Gamma Statistics

Description

Compute the Gamma statistics N11N00N10N01N21N12N10N01

Usage

gammaStatistics(p, q)

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

# S4 method for 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)

  • gammaStatistics(p = Partition, q = Partition): Compute given two partitions

  • gammaStatistics(p = PairCoefficients, q = missing): Compute given the pair coefficients

Author

Fabian Ball fabian.ball@kit.edu

References

Yule1900partitionComparison

Examples

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

Run the code above in your browser using DataLab