View source: R/structurednessindices.R
c_hierarchy | R Documentation |
c-hierarchy captures how well a partition/ultrametric (obtained by hclust) explains the configuration distances. Uses variance explained for euclidean distances and deviance explained for everything else.
c_hierarchy(confs, voidarg = NULL, p = 2, agglmethod = "complete")
confs |
a numeric matrix |
voidarg |
a placeholder to allow to pass NULL as strucpar and not interfere with the other arguments |
p |
the parameter of the Minokwski distances (p=2 euclidean and p=1 is manhattan) |
agglmethod |
the method used for creating the clustering, see |
a numeric value; hierarchy (see cl_validity
)
delts<-smacof::kinshipdelta
conf<-smacofSym(delts)$conf
c_hierarchy(conf,p=2,agglmethod="single")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.