Based on a posterior similarity matrix of a sample of clusterings medv
obtains a clustering by using 1-psm
as distance
matrix for hierarchical clustering with complete linkage. The dendrogram is cut at a value h
close to 1.
medv(psm, h=0.99)
a posterior similarity matrix, usually obtained from a call to comp.psm
.
The height at which the dendrogram is cut.
vector of cluster memberships.
Medvedovic, M. Yeung, K. and Bumgarner, R. (2004) Bayesian mixture model based clustering of replicated microarray data, Bioinformatics, 20, 1222-1232.
comp.psm
for computing posterior similarity matrix, maxpear
, minbinder
, relabel
for other possibilities for processing a sample of clusterings.
# NOT RUN {
data(cls.draw1.5)
# sample of 500 clusterings from a Bayesian cluster model
tru.class <- rep(1:8,each=50)
# the true grouping of the observations
psm1.5 <- comp.psm(cls.draw1.5)
medv1.5 <- medv(psm1.5)
table(medv1.5, tru.class)
# }
Run the code above in your browser using DataLab