Learn R Programming

partitionComparison (version 0.2.6)

rvCoefficient: 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 Partition,Partition rvCoefficient(p, q)

# S4 method for PairCoefficients,missing rvCoefficient(p, q = NULL)

Arguments

p

The partition \(P\) or an instance of PairCoefficients

q

The partition \(Q\) or NULL

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

Fabian Ball fabian.ball@kit.edu

References

Robert1976partitionComparison

Youness2004partitionComparison

Examples

Run this code
isTRUE(all.equal(rvCoefficient(new("Partition", c(0, 0, 0, 1, 1)), 
                               new("Partition", c(0, 0, 1, 1, 1))), 9/13))

Run the code above in your browser using DataLab