pearson {partitionComparison} | R Documentation |
Pearson Index
Description
Compute the Pearson index
\frac{N_{11}N_{00} - N_{10}N_{01}}{N_{21}N_{12}N'_{01}N'_{10}}
Usage
pearson(p, q)
## S4 method for signature 'Partition,Partition'
pearson(p, q)
## S4 method for signature 'PairCoefficients,missing'
pearson(p, q)
Arguments
p |
The partition |
q |
The partition |
Methods (by class)
-
pearson(p = Partition, q = Partition)
: Compute given two partitions -
pearson(p = PairCoefficients, q = missing)
: Compute given the pair coefficients
Author(s)
Fabian Ball fabian.ball@kit.edu
References
Pearson K (1926). “On the Coefficient of Racial Likeness.” Biometrika, 18(1/2), 105–117. ISSN 0006-3444, doi:10.2307/2332498.
Examples
isTRUE(all.equal(pearson(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 1/144))
[Package partitionComparison version 0.2.6 Index]