Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

partitionComparison (version 0.2.6)

fagerMcGowan: Fager & McGowan Index

Description

Compute the index of Fager and McGowan N11N21N1212N21

Usage

fagerMcGowan(p, q)

# S4 method for Partition,Partition fagerMcGowan(p, q)

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

Arguments

p

The partition P or an instance of PairCoefficients

q

The partition Q or NULL

Methods (by class)

  • fagerMcGowan(p = Partition, q = Partition): Compute given two partitions

  • fagerMcGowan(p = PairCoefficients, q = missing): Compute given the pair coefficients

Author

Fabian Ball fabian.ball@kit.edu

References

Fager1963partitionComparison

Examples

Run this code
isTRUE(all.equal(fagerMcGowan(new("Partition", c(0, 0, 0, 1, 1)), 
                              new("Partition", c(0, 0, 1, 1, 1))), 0.25))

Run the code above in your browser using DataLab