Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationThu, 01 Nov 2007 07:10:52 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2007/Nov/01/wavk9we08vc3eet1193926592.htm/, Retrieved Tue, 07 May 2024 19:24:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=112, Retrieved Tue, 07 May 2024 19:24:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWs 4, vraag 2, groep 1
Estimated Impact215
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [Ws 4, vraag 2] [2007-11-01 14:10:52] [ce556af355e2eff84137e549c6ea8397] [Current]
Feedback Forum

Post a new message
Dataseries X:
16,8	19,1	4,5	5,8
18,7	20,8	5,6	7,3
18,7	20,8	5,4	7,0
18,7	20,8	5,4	7,0
16,8	19,0	5,2	7,8
16,8	19,0	5,3	7,8
16,8	19,0	5,3	7,8
16,0	15,2	5,3	7,0
16,0	15,2	5,2	7,0
16,0	15,2	5,2	7,0
18,0	19,9	5,0	8,0
18,0	19,9	5,0	7,9
18,0	19,9	5,0	7,9
18,0	19,0	6,5	7,3
18,0	19,0	6,5	7,3
18,0	19,0	6,6	7,4
21,6	19,9	6,2	7,7
21,6	19,9	6,2	7,7
21,6	19,9	6,2	7,7
20,1	17,5	6,1	7,0
20,1	17,5	6,1	7,0
20,1	17,5	6,1	7,1
22,9	26,6	5,9	7,3
22,9	26,6	5,9	7,3
22,9	26,6	5,9	7,4
24,0	20,8	6,2	7,9
24,0	20,8	6,1	7,7
24,0	20,8	6,2	7,8
20,3	18,9	6,6	8,6
20,3	18,9	6,6	8,6
20,3	18,9	6,7	8,6
15,8	19,5	5,8	7,0
15,8	19,5	5,7	7,0
15,8	19,5	5,7	7,1
23,2	27,1	6,1	8,7
23,2	27,1	6,2	8,9
23,2	27,1	6,2	8,9
20,9	24,1	6,2	7,9
20,9	24,1	6,1	7,8
20,9	24,1	6,2	7,9
19,8	21,3	6,5	8,2
19,8	21,3	6,5	8,2
19,8	21,3	6,5	8,2
20,6	19,1	6,0	7,9
20,6	19,1	6,3	7,9
20,6	19,1	6,0	7,9
21,1	26,2	6,1	8,5
21,1	26,2	6,1	8,5
21,1	26,2	6,1	8,5
22,4	21,7	6,2	8,0
22,4	21,7	6,1	7,8
22,4	21,7	6,2	7,9
20,5	19,4	6,8	8,3
20,5	19,4	6,8	8,2
20,5	19,4	6,8	8,1
18,4	19,5	6,7	7,9
18,4	19,5	6,7	8,0
18,4	19,5	6,7	8,0
17,6	28,7	5,7	7,7
17,6	28,7	5,6	7,7
17,6	28,7	5,6	7,6
18,5	21,8	5,8	7,8
18,5	21,8	5,7	7,6
18,5	21,8	5,7	7,6
17,3	20,0	6,1	8,1
17,3	20,0	6,1	8,0
17,3	20,0	5,9	7,8
16,2	22,6	5,9	7,4
16,2	22,6	5,8	7,3
16,2	22,6	5,6	7,2
18,0	24,6	5,5	7,4
18,0	24,6	5,5	7,5
18,0	24,6	5,4	7,2




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of compuational 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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112&T=0

[TABLE]
[ROW][C]Summary of compuational 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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112&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 compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Summary of Dendrogram
LabelHeight
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200.0999999999999996
210.0999999999999996
220.0999999999999996
230.0999999999999996
240.0999999999999996
250.100000000000001
260.100000000000001
270.127614237491539
280.127614237491540
290.133333333333333
300.133333333333333
310.133333333333333
320.133333333333333
330.133333333333333
340.133333333333334
350.133333333333334
360.141421356237310
370.166666666666668
380.188561808316413
390.188561808316414
400.210018769324859
410.21001876932486
420.298142396999972
430.298142396999974
440.326556375844544
450.342300831451816
460.395598560014011
470.4
480.480740170061865
491.88788513590543
502.55361781079684
512.59339620797042
523.01931552046
533.23863409960806
543.46806877705480
554.06191428087813
564.68057842157158
575.21984726285288
585.69364869718968
595.89299657635046
606.29309710145194
616.5192298529511
627.6915442057264
638.92932504251512
649.89797332104063
6511.5877753131761
6615.2666418852441
6720.0593422662097
6821.2595685937569
6921.271669453678
7031.297962417147
7154.1415316678088
72100.735928817179

\begin{tabular}{lllllllll}
\hline
Summary of Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 0 \tabularnewline
2 & 0 \tabularnewline
3 & 0 \tabularnewline
4 & 0 \tabularnewline
5 & 0 \tabularnewline
6 & 0 \tabularnewline
7 & 0 \tabularnewline
8 & 0 \tabularnewline
9 & 0 \tabularnewline
10 & 0 \tabularnewline
11 & 0 \tabularnewline
12 & 0 \tabularnewline
13 & 0 \tabularnewline
14 & 0 \tabularnewline
15 & 0 \tabularnewline
16 & 0 \tabularnewline
17 & 0 \tabularnewline
18 & 0 \tabularnewline
19 & 0 \tabularnewline
20 & 0.0999999999999996 \tabularnewline
21 & 0.0999999999999996 \tabularnewline
22 & 0.0999999999999996 \tabularnewline
23 & 0.0999999999999996 \tabularnewline
24 & 0.0999999999999996 \tabularnewline
25 & 0.100000000000001 \tabularnewline
26 & 0.100000000000001 \tabularnewline
27 & 0.127614237491539 \tabularnewline
28 & 0.127614237491540 \tabularnewline
29 & 0.133333333333333 \tabularnewline
30 & 0.133333333333333 \tabularnewline
31 & 0.133333333333333 \tabularnewline
32 & 0.133333333333333 \tabularnewline
33 & 0.133333333333333 \tabularnewline
34 & 0.133333333333334 \tabularnewline
35 & 0.133333333333334 \tabularnewline
36 & 0.141421356237310 \tabularnewline
37 & 0.166666666666668 \tabularnewline
38 & 0.188561808316413 \tabularnewline
39 & 0.188561808316414 \tabularnewline
40 & 0.210018769324859 \tabularnewline
41 & 0.21001876932486 \tabularnewline
42 & 0.298142396999972 \tabularnewline
43 & 0.298142396999974 \tabularnewline
44 & 0.326556375844544 \tabularnewline
45 & 0.342300831451816 \tabularnewline
46 & 0.395598560014011 \tabularnewline
47 & 0.4 \tabularnewline
48 & 0.480740170061865 \tabularnewline
49 & 1.88788513590543 \tabularnewline
50 & 2.55361781079684 \tabularnewline
51 & 2.59339620797042 \tabularnewline
52 & 3.01931552046 \tabularnewline
53 & 3.23863409960806 \tabularnewline
54 & 3.46806877705480 \tabularnewline
55 & 4.06191428087813 \tabularnewline
56 & 4.68057842157158 \tabularnewline
57 & 5.21984726285288 \tabularnewline
58 & 5.69364869718968 \tabularnewline
59 & 5.89299657635046 \tabularnewline
60 & 6.29309710145194 \tabularnewline
61 & 6.5192298529511 \tabularnewline
62 & 7.6915442057264 \tabularnewline
63 & 8.92932504251512 \tabularnewline
64 & 9.89797332104063 \tabularnewline
65 & 11.5877753131761 \tabularnewline
66 & 15.2666418852441 \tabularnewline
67 & 20.0593422662097 \tabularnewline
68 & 21.2595685937569 \tabularnewline
69 & 21.271669453678 \tabularnewline
70 & 31.297962417147 \tabularnewline
71 & 54.1415316678088 \tabularnewline
72 & 100.735928817179 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112&T=1

[TABLE]
[ROW][C]Summary of Dendrogram[/C][/ROW]
[ROW][C]Label[/C][C]Height[/C][/ROW]
[ROW][C]1[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0[/C][/ROW]
[ROW][C]15[/C][C]0[/C][/ROW]
[ROW][C]16[/C][C]0[/C][/ROW]
[ROW][C]17[/C][C]0[/C][/ROW]
[ROW][C]18[/C][C]0[/C][/ROW]
[ROW][C]19[/C][C]0[/C][/ROW]
[ROW][C]20[/C][C]0.0999999999999996[/C][/ROW]
[ROW][C]21[/C][C]0.0999999999999996[/C][/ROW]
[ROW][C]22[/C][C]0.0999999999999996[/C][/ROW]
[ROW][C]23[/C][C]0.0999999999999996[/C][/ROW]
[ROW][C]24[/C][C]0.0999999999999996[/C][/ROW]
[ROW][C]25[/C][C]0.100000000000001[/C][/ROW]
[ROW][C]26[/C][C]0.100000000000001[/C][/ROW]
[ROW][C]27[/C][C]0.127614237491539[/C][/ROW]
[ROW][C]28[/C][C]0.127614237491540[/C][/ROW]
[ROW][C]29[/C][C]0.133333333333333[/C][/ROW]
[ROW][C]30[/C][C]0.133333333333333[/C][/ROW]
[ROW][C]31[/C][C]0.133333333333333[/C][/ROW]
[ROW][C]32[/C][C]0.133333333333333[/C][/ROW]
[ROW][C]33[/C][C]0.133333333333333[/C][/ROW]
[ROW][C]34[/C][C]0.133333333333334[/C][/ROW]
[ROW][C]35[/C][C]0.133333333333334[/C][/ROW]
[ROW][C]36[/C][C]0.141421356237310[/C][/ROW]
[ROW][C]37[/C][C]0.166666666666668[/C][/ROW]
[ROW][C]38[/C][C]0.188561808316413[/C][/ROW]
[ROW][C]39[/C][C]0.188561808316414[/C][/ROW]
[ROW][C]40[/C][C]0.210018769324859[/C][/ROW]
[ROW][C]41[/C][C]0.21001876932486[/C][/ROW]
[ROW][C]42[/C][C]0.298142396999972[/C][/ROW]
[ROW][C]43[/C][C]0.298142396999974[/C][/ROW]
[ROW][C]44[/C][C]0.326556375844544[/C][/ROW]
[ROW][C]45[/C][C]0.342300831451816[/C][/ROW]
[ROW][C]46[/C][C]0.395598560014011[/C][/ROW]
[ROW][C]47[/C][C]0.4[/C][/ROW]
[ROW][C]48[/C][C]0.480740170061865[/C][/ROW]
[ROW][C]49[/C][C]1.88788513590543[/C][/ROW]
[ROW][C]50[/C][C]2.55361781079684[/C][/ROW]
[ROW][C]51[/C][C]2.59339620797042[/C][/ROW]
[ROW][C]52[/C][C]3.01931552046[/C][/ROW]
[ROW][C]53[/C][C]3.23863409960806[/C][/ROW]
[ROW][C]54[/C][C]3.46806877705480[/C][/ROW]
[ROW][C]55[/C][C]4.06191428087813[/C][/ROW]
[ROW][C]56[/C][C]4.68057842157158[/C][/ROW]
[ROW][C]57[/C][C]5.21984726285288[/C][/ROW]
[ROW][C]58[/C][C]5.69364869718968[/C][/ROW]
[ROW][C]59[/C][C]5.89299657635046[/C][/ROW]
[ROW][C]60[/C][C]6.29309710145194[/C][/ROW]
[ROW][C]61[/C][C]6.5192298529511[/C][/ROW]
[ROW][C]62[/C][C]7.6915442057264[/C][/ROW]
[ROW][C]63[/C][C]8.92932504251512[/C][/ROW]
[ROW][C]64[/C][C]9.89797332104063[/C][/ROW]
[ROW][C]65[/C][C]11.5877753131761[/C][/ROW]
[ROW][C]66[/C][C]15.2666418852441[/C][/ROW]
[ROW][C]67[/C][C]20.0593422662097[/C][/ROW]
[ROW][C]68[/C][C]21.2595685937569[/C][/ROW]
[ROW][C]69[/C][C]21.271669453678[/C][/ROW]
[ROW][C]70[/C][C]31.297962417147[/C][/ROW]
[ROW][C]71[/C][C]54.1415316678088[/C][/ROW]
[ROW][C]72[/C][C]100.735928817179[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112&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
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200.0999999999999996
210.0999999999999996
220.0999999999999996
230.0999999999999996
240.0999999999999996
250.100000000000001
260.100000000000001
270.127614237491539
280.127614237491540
290.133333333333333
300.133333333333333
310.133333333333333
320.133333333333333
330.133333333333333
340.133333333333334
350.133333333333334
360.141421356237310
370.166666666666668
380.188561808316413
390.188561808316414
400.210018769324859
410.21001876932486
420.298142396999972
430.298142396999974
440.326556375844544
450.342300831451816
460.395598560014011
470.4
480.480740170061865
491.88788513590543
502.55361781079684
512.59339620797042
523.01931552046
533.23863409960806
543.46806877705480
554.06191428087813
564.68057842157158
575.21984726285288
585.69364869718968
595.89299657635046
606.29309710145194
616.5192298529511
627.6915442057264
638.92932504251512
649.89797332104063
6511.5877753131761
6615.2666418852441
6720.0593422662097
6821.2595685937569
6921.271669453678
7031.297962417147
7154.1415316678088
72100.735928817179



Parameters (Session):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
Parameters (R input):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
R code (references can be found in the software module):
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')
}