comp.fams: Compare two sets of clusters

View source: R/family.R

comp.famsR Documentation

Compare two sets of clusters

Description

Give diagnostic information indicating how well two sets of clusters conform.

Usage

comp.fams(fam1,fam2)

Arguments

fam1

A list of clusters; each component in the list is one family, containing the indices of the individuals in that family.

fam2

A list, just like fam1.

Value

A list with two components. The first component is a contingency table whose (i,j)th element is the number of individuals in cluster i in fam1 and cluster j in fam2. The second component is a list indicating, for each cluster from fam1, the cluster assignment in fam2.

Author(s)

Karl W Broman broman@wisc.edu

See Also

cluster.stat, fingers, true.fams

Examples

data(aedes)
f <- freq(aedes)
co <- cutoff(f)
d <- calc.dist(aedes)
fam <- fingers(d,co,make.plot=TRUE)
tf <- true.fams(aedes)
comp.fams(fam,tf)

kbroman/fingers documentation built on May 17, 2023, 11:50 p.m.