ac: Clustering coefficients from package cluster.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/colpairs.R

Description

Computes clustering coefficients from cluster, where x and y give the object coordinates.

Usage

1
2
ac(x, y, ...)
sil(x, y, groups, ...)

Arguments

x

is a numeric vector.

y

is a numeric vector.

groups

is a vector of group memberships, used by sil only.

...

are passed to agnes in ac and to dist in sil.

Details

ac - Computes clustering coefficient from agnes{cluster}.

sil - Computes the silhouette coefficient from from package cluster.

Value

The clustering coefficient is returned.

Author(s)

Catherine B. Hurley

References

Kaufman, L. and Rousseeuw, P.J. (1990). Finding Groups in Data: An Introduction to Cluster Analysis . Wiley, New York.

See Also

agnes, silhouette, dist.

Examples

1
2
3
4
5
6
x <- runif(20)
y <- runif(20)
g <- rep(c("a","b"),10)

ac(x,y)
sil(x,y,g)

gclus documentation built on May 2, 2019, 5:08 a.m.