Description Usage Arguments Value Author(s) References See Also Examples
View source: R/specContrasts2.R
Computes specificities for a variable comparing two cluster leaders and contrasts (partial importances) of the second cluster leader towards first for each variable component.
1 | specContrasts(rs,rc,j)
|
rs |
first cluster leader in the form of |
rc |
second cluster leader in the form of |
j |
an index (or a name) of a variable. |
A list of
specificity |
A value. |
contrasts |
A vector of components of NaN, Inf (see reference) or a value x where |x| > 1. |
Natasa Kejzar
Batagelj,~V., Kejzar,~N. and Korenjak-Cerne,~S., Clustering of Modal Valued Data, a chapter in Analysis of Distributional Data (Ed. Brito,~P.), (submitted)
hclust
, hclustSO
, leaderSO
, print.symObject
, empty.symObject
1 2 3 4 5 6 7 | data(TIMSSSlo)
tsdata = create.symData(TIMSSSlo)
dendro <- hclustSO(tsdata)
rs = dendro$leaders[[nrow(dendro$merge)]] # the whole dataset
rc = dendro$leaders[[84]] # first cluster from reference chapter
specContrasts(rs,rc,1) # first variable ("MT2GTAUT")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.