Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationThu, 19 Nov 2015 17:37:05 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Nov/19/t1447954701rkywq2wvp9ibu4t.htm/, Retrieved Mon, 13 May 2024 21:48:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=283663, Retrieved Mon, 13 May 2024 21:48:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsdf
Estimated Impact58
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [variable] [2015-11-19 17:37:05] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.33 0.66 0.66 0.33 0.66 0.66 1.00 1.00 1.00 0.66 0.66 0.66 0.66 0.25 0.33 0.33 0.33 0.33 0.33 0.33 0.25 0.25 0.00 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.66 0.66 0.66 0.33 0.66 0.66 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33
0.50 0.50 0.50 0.50 1.00 1.00 1.00 0.00 1.00 1.00 1.00 1.00 1.00 0.50 0.50 0.50 1.00 1.00 0.00 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.00 0.00 0.00 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.00 0.50 0.50 1.00 0.50 0.50 0.50 1.00 0.00 1.00 1.00
0.00 0.00 0.75 0.00 0.66 0.66 0.66 1.00 1.00 0.66 1.00 1.00 0.66 0.66 0.33 0.33 0.33 0.33 0.66 0.33 0.33 0.66 0.33 0.66 0.33 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.33 0.66 0.66 0.33 0.33 0.33 0.33 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 1.00
0.25 0.66 0.25 0.25 0.66 0.66 0.66 1.00 1.00 0.66 1.00 0.66 0.66 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.00 0.00 0.33 0.00 0.33 0.33 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.33 0.33 0.66 0.66 0.66 1.00
0.00 0.75 0.25 0.50 0.75 0.50 0.75 0.75 1.00 0.75 1.00 1.00 0.75 0.50 0.00 0.33 0.00 0.25 0.25 0.00 0.00 0.33 0.00 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.25 0.25 0.25 0.25 0.00 0.25 0.25 0.25 0.25 0.25 0.25 0.50 0.75 0.50 1.00
0.00 0.33 0.33 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.00 0.00 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.66 0.66 0.66 0.66 1.00
0.33 0.75 0.75 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.25 0.75 0.66 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.00 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.66 0.33 0.00 0.33 0.33 0.66 0.66 0.66 0.66 0.33 0.66 0.66 0.66 1.00
0.25 0.75 0.50 0.50 0.75 0.75 0.75 0.75 1.00 0.75 1.00 0.75 0.50 0.50 0.33 0.33 0.25 0.25 0.50 0.25 0.25 0.25 0.25 0.50 0.33 0.33 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.50 0.50 0.50 0.50 0.50 0.33 0.50 0.50 0.50 0.75 0.75 0.50 0.75 0.75 0.75 1.00
0.50 0.50 0.50 0.50 1.00 1.00 1.00 1.00 0.00 0.50 1.00 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.00 0.50 0.50 0.50 0.50 0.00 0.50 0.50 0.50 0.00 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.50 1.00 1.00 1.00
1.00 0.75 0.33 0.66 0.66 0.66 1.00 1.00 1.00 0.66 0.66 0.66 0.33 0.66 1.00 1.00 0.66 0.66 0.66 1.00 1.00 1.00 1.00 0.66 0.66 0.66 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00
0.33 0.66 0.33 0.33 0.33 0.33 0.66 0.66 1.00 0.33 0.66 0.66 0.33 0.66 0.00 0.33 0.00 0.33 0.66 0.00 0.33 0.33 0.00 0.33 0.33 0.33 0.33 0.33 0.00 0.00 0.33 0.66 0.66 0.66 0.66 0.66 0.66 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00
0.33 0.33 0.75 0.66 0.66 0.66 0.66 0.66 1.00 0.33 0.66 0.66 0.33 0.33 0.00 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.66 0.66 0.66 1.00 1.00 1.00 1.00 1.00 0.66 0.66 0.66 0.66 0.66 1.00 1.00 1.00 1.00
1.00 0.66 1.00 0.33 0.33 0.33 0.33 0.33 0.33 0.66 0.33 0.66 0.33 0.66 1.00 0.66 0.66 0.66 0.66 1.00 0.66 1.00 1.00 1.00 1.00 1.00 0.66 0.66 0.66 0.66 0.66 0.66 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 0.66 1.00 0.66 0.66 0.66 1.00 1.00 1.00 1.00 1.00
1.00 0.66 0.75 0.66 0.66 0.66 0.66 0.66 0.66 1.00 0.66 0.66 0.66 0.33 0.33 0.33 0.33 0.66 0.66 0.33 0.33 0.33 0.00 0.33 0.00 0.00 0.33 0.00 0.33 0.33 0.33 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00
0.00 0.33 0.33 0.33 0.66 0.33 0.66 0.66 1.00 0.66 0.66 0.66 0.33 0.33 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.00 0.00 0.00 0.33 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.33 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66 0.66
0.00 0.33 0.75 0.00 0.66 0.33 1.00 0.66 1.00 0.66 0.66 0.33 0.33 0.33 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.33 0.33 0.33 0.00 0.00 0.00 0.33 0.33 0.66 0.66 0.66 0.33 0.66 0.66 0.66 0.66 1.00 1.00 1.00 1.00




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=283663&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=283663&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283663&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Summary of Dendrogram
LabelHeight
11.21605920908482
21.3592645070037
31.40484874630688
41.58012657720829
51.67905965813503
61.82864718083637
71.84063573124289
81.92696991273274
91.99331382376183
102.28219190056568
112.3994421723655
122.59807621135332
133.22333109679311
144.88616411123835
158.12527106278856

\begin{tabular}{lllllllll}
\hline
Summary of Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 1.21605920908482 \tabularnewline
2 & 1.3592645070037 \tabularnewline
3 & 1.40484874630688 \tabularnewline
4 & 1.58012657720829 \tabularnewline
5 & 1.67905965813503 \tabularnewline
6 & 1.82864718083637 \tabularnewline
7 & 1.84063573124289 \tabularnewline
8 & 1.92696991273274 \tabularnewline
9 & 1.99331382376183 \tabularnewline
10 & 2.28219190056568 \tabularnewline
11 & 2.3994421723655 \tabularnewline
12 & 2.59807621135332 \tabularnewline
13 & 3.22333109679311 \tabularnewline
14 & 4.88616411123835 \tabularnewline
15 & 8.12527106278856 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=283663&T=1

[TABLE]
[ROW][C]Summary of Dendrogram[/C][/ROW]
[ROW][C]Label[/C][C]Height[/C][/ROW]
[ROW][C]1[/C][C]1.21605920908482[/C][/ROW]
[ROW][C]2[/C][C]1.3592645070037[/C][/ROW]
[ROW][C]3[/C][C]1.40484874630688[/C][/ROW]
[ROW][C]4[/C][C]1.58012657720829[/C][/ROW]
[ROW][C]5[/C][C]1.67905965813503[/C][/ROW]
[ROW][C]6[/C][C]1.82864718083637[/C][/ROW]
[ROW][C]7[/C][C]1.84063573124289[/C][/ROW]
[ROW][C]8[/C][C]1.92696991273274[/C][/ROW]
[ROW][C]9[/C][C]1.99331382376183[/C][/ROW]
[ROW][C]10[/C][C]2.28219190056568[/C][/ROW]
[ROW][C]11[/C][C]2.3994421723655[/C][/ROW]
[ROW][C]12[/C][C]2.59807621135332[/C][/ROW]
[ROW][C]13[/C][C]3.22333109679311[/C][/ROW]
[ROW][C]14[/C][C]4.88616411123835[/C][/ROW]
[ROW][C]15[/C][C]8.12527106278856[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=283663&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283663&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of Dendrogram
LabelHeight
11.21605920908482
21.3592645070037
31.40484874630688
41.58012657720829
51.67905965813503
61.82864718083637
71.84063573124289
81.92696991273274
91.99331382376183
102.28219190056568
112.3994421723655
122.59807621135332
133.22333109679311
144.88616411123835
158.12527106278856







Summary of Cut Dendrogram
LabelHeight
11.32321577983336
21.3592645070037
31.51688786421168
41.58012657720829
51.68250123240566
61.82433199396437
71.84063573124289
81.99331382376183
92.19223909656303
102.32924607915576
112.59807621135332
123.14703491936931
134.78992833507778
147.91984432210875

\begin{tabular}{lllllllll}
\hline
Summary of Cut Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 1.32321577983336 \tabularnewline
2 & 1.3592645070037 \tabularnewline
3 & 1.51688786421168 \tabularnewline
4 & 1.58012657720829 \tabularnewline
5 & 1.68250123240566 \tabularnewline
6 & 1.82433199396437 \tabularnewline
7 & 1.84063573124289 \tabularnewline
8 & 1.99331382376183 \tabularnewline
9 & 2.19223909656303 \tabularnewline
10 & 2.32924607915576 \tabularnewline
11 & 2.59807621135332 \tabularnewline
12 & 3.14703491936931 \tabularnewline
13 & 4.78992833507778 \tabularnewline
14 & 7.91984432210875 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=283663&T=2

[TABLE]
[ROW][C]Summary of Cut Dendrogram[/C][/ROW]
[ROW][C]Label[/C][C]Height[/C][/ROW]
[ROW][C]1[/C][C]1.32321577983336[/C][/ROW]
[ROW][C]2[/C][C]1.3592645070037[/C][/ROW]
[ROW][C]3[/C][C]1.51688786421168[/C][/ROW]
[ROW][C]4[/C][C]1.58012657720829[/C][/ROW]
[ROW][C]5[/C][C]1.68250123240566[/C][/ROW]
[ROW][C]6[/C][C]1.82433199396437[/C][/ROW]
[ROW][C]7[/C][C]1.84063573124289[/C][/ROW]
[ROW][C]8[/C][C]1.99331382376183[/C][/ROW]
[ROW][C]9[/C][C]2.19223909656303[/C][/ROW]
[ROW][C]10[/C][C]2.32924607915576[/C][/ROW]
[ROW][C]11[/C][C]2.59807621135332[/C][/ROW]
[ROW][C]12[/C][C]3.14703491936931[/C][/ROW]
[ROW][C]13[/C][C]4.78992833507778[/C][/ROW]
[ROW][C]14[/C][C]7.91984432210875[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=283663&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283663&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of Cut Dendrogram
LabelHeight
11.32321577983336
21.3592645070037
31.51688786421168
41.58012657720829
51.68250123240566
61.82433199396437
71.84063573124289
81.99331382376183
92.19223909656303
102.32924607915576
112.59807621135332
123.14703491936931
134.78992833507778
147.91984432210875



Parameters (Session):
par1 = ward ; par2 = 15 ; par3 = FALSE ; par4 = FALSE ;
Parameters (R input):
par1 = ward ; par2 = 15 ; par3 = FALSE ; par4 = FALSE ;
R code (references can be found in the software module):
par4 <- 'FALSE'
par3 <- 'FALSE'
par2 <- 'ALL'
par1 <- 'ward'
par3 <- as.logical(par3)
par4 <- as.logical(par4)
if (par3 == 'TRUE'){
dum = xlab
xlab = ylab
ylab = dum
}
x <- t(y)
hc <- hclust(dist(x),method=par1)
d <- as.dendrogram(hc)
str(d)
mysub <- paste('Method: ',par1)
bitmap(file='test1.png')
if (par4 == 'TRUE'){
plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub)
} else {
plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub)
}
dev.off()
if (par2 != 'ALL'){
if (par3 == 'TRUE'){
ylab = 'cluster'
} else {
xlab = 'cluster'
}
par2 <- as.numeric(par2)
memb <- cutree(hc, k = par2)
cent <- NULL
for(k in 1:par2){
cent <- rbind(cent, colMeans(x[memb == k, , drop = FALSE]))
}
hc1 <- hclust(dist(cent),method=par1, members = table(memb))
de <- as.dendrogram(hc1)
bitmap(file='test2.png')
if (par4 == 'TRUE'){
plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub)
} else {
plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub)
}
dev.off()
str(de)
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of Dendrogram',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Label',header=TRUE)
a<-table.element(a,'Height',header=TRUE)
a<-table.row.end(a)
num <- length(x[,1])-1
for (i in 1:num)
{
a<-table.row.start(a)
a<-table.element(a,hc$labels[i])
a<-table.element(a,hc$height[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
if (par2 != 'ALL'){
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of Cut Dendrogram',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Label',header=TRUE)
a<-table.element(a,'Height',header=TRUE)
a<-table.row.end(a)
num <- par2-1
for (i in 1:num)
{
a<-table.row.start(a)
a<-table.element(a,i)
a<-table.element(a,hc1$height[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}