Learn R Programming

partitionComparison (version 0.2.5)

lermanIndex: Lerman Index

Description

Compute the Lerman index $$\frac{N_{11} - E(N_{11})}{\sqrt{\sigma^2(N_{11})}}$$

Usage

lermanIndex(p, q, c = NULL)

# S4 method for Partition,Partition,missing lermanIndex(p, q, c = NULL)

# S4 method for Partition,Partition,PairCoefficients lermanIndex(p, q, c = NULL)

Arguments

p

The partition \(P\)

q

The partition \(Q\)

c

PairCoefficients or NULL

Methods (by class)

  • p = Partition,q = Partition,c = missing: Compute given two partitions

  • p = Partition,q = Partition,c = PairCoefficients: Compute given the partitions and pair coefficients

Author

Fabian Ball fabian.ball@kit.edu

References

Lerman1988partitionComparison

Hubert1985partitionComparison

Deneud2006partitionComparison

See Also

normalizedLermanIndex

Examples

Run this code
isTRUE(all.equal(lermanIndex(new("Partition", c(0, 0, 0, 1, 1)), 
                             new("Partition", c(0, 0, 1, 1, 1))), 2/sqrt(21)))

Run the code above in your browser using DataLab