Description Usage Arguments Details Value Author(s) References See Also Examples
This function manipulates a distance matrix as created via dist
for Variability-based Neighbor Clustering (VNC), see, e.g., Gries and Hilpert (2008, 2012), so that only temporally adjacent data points (i.e. texts) are allowed to cluster with one another.
1 | distvnc(d)
|
d |
a distance matrix as produced by |
The vnc
function takes the same input as hclust
, but manipulates the dissimilarity matrix so that only temporally adjacent data points (i.e. texts) are allowed to cluster with one another via the application of the distvnc
function. distvnc
sets all distance values which describe distances between non-temporally adjacent data points to the value which equals the maximum value of the dissimilarity matrix. As similarity is measured in terms of the minimum distance, it is highly unlikely that two data points which have these maximized distances to one another will be merged in the clustering process. This in turn allows for the application of hclust
– which is called inside vnc
after the manipulation of the dissimilarity matrix – for clustering according to the ideas of VNC, instead of having to implement a separate clustering algorithm.
An object of class dist
.
Christin Schätzle
Stefan Th. Gries and Martin Hilpert. 2008. The identification of stages in diachronic data: variability-based neighbour clustering. Corpora, 3(1):59–81. Stefan Th. Gries and Martin Hilpert. 2012. Variability-based neighbor clustering: A bottom-up approach to periodization in historical linguistics. In Nevalainen Terttu and Elizabeth Closs Traugott, editors, The Oxford Handbook of the History of English, pages 134–144. Oxford University Press, Oxford. Christin Schätzle and Hannah Booth. 2019. DiaHClust: an iterative hierarchical clustering apprach for identifying stages in language change. to appear.
1 2 3 4 5 6 7 8 9 10 | icelandic=data(icelandic)
icelandic.cor=cor(icelandic[,-1]) #[,-1] because rows are labeled
icelandic.dist=dist(icelandic.cor)
##only manipulate distance matrix
icelandic.distvnc=distvnc(icelandic.dist)
###distvnc() implemented in vnc()
icelandic.vnc=vnc(icelandic.dist, method="average")
plot(icelandic.vnc, hang=-1) #plotting the resulting dendrogram
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.