goodmanKruskal {partitionComparison} | R Documentation |
Goodman & Kruskal Index
Description
Compute the index of Goodman and Kruskal
\frac{N_{11}N_{00} - N_{10}N_{01}}{N_{11}N_{00} + N_{10}N_{01}}
Usage
goodmanKruskal(p, q)
## S4 method for signature 'Partition,Partition'
goodmanKruskal(p, q)
## S4 method for signature 'PairCoefficients,missing'
goodmanKruskal(p, q)
Arguments
p |
The partition |
q |
The partition |
Methods (by class)
-
goodmanKruskal(p = Partition, q = Partition)
: Compute given two partitions -
goodmanKruskal(p = PairCoefficients, q = missing)
: Compute given the pair coefficients
Author(s)
Fabian Ball fabian.ball@kit.edu
References
Goodman LA, Kruskal WH (1954). “Measures of Association for Cross Classifications.” Journal of the American Statistical Association, 49(268), 732–764. ISSN 0162-1459, doi:10.1080/01621459.1954.10501231.
Examples
isTRUE(all.equal(goodmanKruskal(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 1/3))
[Package partitionComparison version 0.2.6 Index]