dendro.subjects: Subjects dendrogram

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

View source: R/dendro.subjects.R

Description

Get dendrogram for subjects (observations) based on variables of mixed data types

Usage

1
dendro.subjects(data, weights, linkage="ward.D2")

Arguments

data

data frame

weights

optional vector of weights for variables in data

linkage

agglomeration method used for hierarchical clustering; corresponds to parameter method of hclust

Details

Distances between subjects are based on Gower's general similarity coefficient with an extension of Podani for ordinal variables, see gowdis. In the case that all variables are quantitative, Euclidean distances are used. Then a dendrogram is derived by standard hierarchical clustering (hclust with agglomeration method = "ward.D2" by default).

Value

An object of class dendrogram

Author(s)

Manuela Hummel

References

Gower J (1971). A general coefficient of similarity and some of its properties. Biometrics, 27:857-871.

Podani J (1999). Extending Gower's general coefficient of similarity to ordinal characters. Taxon, 48(2):331-340.

See Also

dendro.variables, dist.subjects, mix.heatmap

Examples

1
2
3
4
5
6
7
8
9
data(mixdata)

dend <- dendro.subjects(mixdata)
plot(dend)

## example with weights
w <- rep(1:2, each=5)
dend <- dendro.subjects(mixdata, weights=w)
plot(dend)

CluMix documentation built on Jan. 21, 2019, 5:05 p.m.