rvCoefficient {partitionComparison} | R Documentation |
RV Coefficient
Description
Compute the RV coefficient
\frac{n + 2N_{11}(p)}{\sqrt{(2N_{21}(p) + n) (2N_{12}(p) + n)}}
Usage
rvCoefficient(p, q)
## S4 method for signature 'Partition,Partition'
rvCoefficient(p, q)
## S4 method for signature 'PairCoefficients,missing'
rvCoefficient(p, q = NULL)
Arguments
p |
The partition |
q |
The partition |
Methods (by class)
-
rvCoefficient(p = Partition, q = Partition)
: Compute the RV coefficient given two partitions -
rvCoefficient(p = PairCoefficients, q = missing)
: Compute the RV coefficient given the pair coefficients
Author(s)
Fabian Ball fabian.ball@kit.edu
References
Robert P, Escoufier Y (1976). “A Unifying Tool for Linear Multivariate Statistical Methods: The RV- Coefficient.” Journal of the Royal Statistical Society. Series C (Applied Statistics), 25(3), 257–265. ISSN 00359254.
Youness G, Saporta G (2004). “Some Measures of Agreement between Close Partitions.” Student, 51, 1–12.
Examples
isTRUE(all.equal(rvCoefficient(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 9/13))
[Package partitionComparison version 0.2.6 Index]