Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lambda

Goodman- Kruskal Lambda Index of Classification Association


Description

Compares two classifications by calculating the Goodman-Kruskal Index of association

Usage

lambda(x,y,digits=5)

Arguments

x

an object of class ‘clustering’, ‘partana’, ‘partition’ or a vector identifying membership of objects in classes with names attribute

y

an object of class ‘clustering’, ‘partana’, ‘partition’ or a vector identifying membership of objects in classes with names attribute

digits

the number of digits of the statsitic to report

Details

lambda calculates the Goodman-Kruskal index of association:

∑_i max_j (n_{ij}) + ∑_j max_i (n_{ij}) - max(n_{i,}) - max(n{_.j}) \over 2*∑_i∑_j n_{ij} - max(n_{i,}) - max(n{_.j)}

Value

Prints a cross-tabulated table and the lambda statistic, and (invisibly) returns the lambda statistic

Author(s)

David W. Roberts droberts@montana.edu

References

See Also

Examples

data(shoshveg)
dis.bc <- dsvdis(shoshveg,'bray/curtis')
opt.5 <- optpart(5,dis.bc)
pam.5 <- pam(dis.bc,5)
lambda(opt.5,pam.5)

optpart

Optimal Partitioning of Similarity Relations

v3.0-3
GPL (>= 2)
Authors
David W. Roberts <droberts@montana.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.