Description Usage Arguments Value Author(s) References See Also Examples
Function to compute adapted leaders clustering for modal multi valued symbolic data. Data must be saved in a symData
object.
1 |
dataset |
|
maxL |
number of clusters to produce |
initial |
provide initial leaders for clustering; if NULL they are selected randomly |
stabil |
stability of the results (how close should be the minimization functions of two algorithm steps to exit) |
report |
produce report while working |
interact |
do you want interaction during algorithm steps |
type |
switch describing dissimilarity measure used "d1" to "d6" or "d1w" (calculating with frequency distributions "fDist") (for measures see Table 1 in reference article below) |
Returned is a list of elements: list(clust=clust,leaders=L,R=R,p=p)
clust |
partition of clusterings |
leaders_symData |
|
R |
minimal error (distance to leader) for each cluster |
p |
sum of errors for each cluster |
Vladimir Batagelj
V. Batagelj, N. Kejzar, and S. Korenjak-Cerne. Clustering of Modal Valued Symbolic Data. ArXiv e-prints, 1507.06683, July 2015.
hclustSO
, create.symData
,print.symObject
1 2 3 4 5 6 7 8 9 10 11 12 | data(popul06f)
data(popul06m)
datalist <- list("M"=popul06f,"F"=popul06m)
dataset <- create.symData(datalist,"pDist")
# type = "d1w" can be used for dataset created with "fDist"
## Not run:
res2006 <- leaderSO(dataset,5)
# Times repeat (if <=0, no repetitions)
summary(res2006$leaders_symData)
print(res2006$leaders_symData$SOs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.