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 08:12:42 -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/coazu0h3fjpfui41193929967.htm/, Retrieved Tue, 07 May 2024 11:24:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=45, Retrieved Tue, 07 May 2024 11:24:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsworkshop 5, vraag 2
Estimated Impact213
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [Workshop 5 - Vraag 2] [2007-11-01 15:12:42] [014bfc073eb4f6c1ae65a07cc44c50c0] [Current]
Feedback Forum

Post a new message
Dataseries X:
101,5
126,6
93,9
89,8
93,4
101,5
110,4
105,9
108,4
113,9
86,1
69,4
101,2
100,5
98
106,6
90,1
96,9
125,9
112
100
123,9
79,8
83,4
113,6
112,9
104
109,9
99
106,3
128,9
111,1
102,9
130
87
87,5
117,6
103,4
110,8
112,6
102,5
112,4
135,6
105,1
127,7
137
91
90,5
122,4
123,3
124,3
120
118,1
119
142,7
123,6
129,6
146,9
108,7
99,4




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=45&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]1 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=45&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=45&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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Summary of Dendrogram
LabelHeight
10
20.199999999999989
30.299999999999997
40.299999999999997
50.299999999999997
60.299999999999997
70.299999999999997
80.300000000000011
90.399999999999991
100.399999999999996
110.400000000000006
120.400000000000006
130.400000000000006
140.466666666666678
150.5
160.5
170.5
180.5
190.5
200.5
210.599999999999994
220.633333333333321
230.699999999999989
240.783333333333336
250.950000000000017
261
271.06666666666665
281.09999999999999
291.19999999999998
301.20000000000001
311.36666666666667
321.40000000000001
331.5
341.51666666666668
351.64999999999999
361.70000000000001
371.86999999999999
382.55000000000001
392.71666666666665
403.60000000000001
414.20000000000002
424.42142857142857
434.46666666666667
446.36666666666667
456.8
468.62499999999998
479.73333333333332
4812.4833333333333
4914.2
5015.6000000000000
5117.63
5220.6802380952381
5323.0666666666667
5432.46
5540.7047619047619
5674.2224561403508
5784.8344444444445
58215.075183894696
59446.933153615747

\begin{tabular}{lllllllll}
\hline
Summary of Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 0 \tabularnewline
2 & 0.199999999999989 \tabularnewline
3 & 0.299999999999997 \tabularnewline
4 & 0.299999999999997 \tabularnewline
5 & 0.299999999999997 \tabularnewline
6 & 0.299999999999997 \tabularnewline
7 & 0.299999999999997 \tabularnewline
8 & 0.300000000000011 \tabularnewline
9 & 0.399999999999991 \tabularnewline
10 & 0.399999999999996 \tabularnewline
11 & 0.400000000000006 \tabularnewline
12 & 0.400000000000006 \tabularnewline
13 & 0.400000000000006 \tabularnewline
14 & 0.466666666666678 \tabularnewline
15 & 0.5 \tabularnewline
16 & 0.5 \tabularnewline
17 & 0.5 \tabularnewline
18 & 0.5 \tabularnewline
19 & 0.5 \tabularnewline
20 & 0.5 \tabularnewline
21 & 0.599999999999994 \tabularnewline
22 & 0.633333333333321 \tabularnewline
23 & 0.699999999999989 \tabularnewline
24 & 0.783333333333336 \tabularnewline
25 & 0.950000000000017 \tabularnewline
26 & 1 \tabularnewline
27 & 1.06666666666665 \tabularnewline
28 & 1.09999999999999 \tabularnewline
29 & 1.19999999999998 \tabularnewline
30 & 1.20000000000001 \tabularnewline
31 & 1.36666666666667 \tabularnewline
32 & 1.40000000000001 \tabularnewline
33 & 1.5 \tabularnewline
34 & 1.51666666666668 \tabularnewline
35 & 1.64999999999999 \tabularnewline
36 & 1.70000000000001 \tabularnewline
37 & 1.86999999999999 \tabularnewline
38 & 2.55000000000001 \tabularnewline
39 & 2.71666666666665 \tabularnewline
40 & 3.60000000000001 \tabularnewline
41 & 4.20000000000002 \tabularnewline
42 & 4.42142857142857 \tabularnewline
43 & 4.46666666666667 \tabularnewline
44 & 6.36666666666667 \tabularnewline
45 & 6.8 \tabularnewline
46 & 8.62499999999998 \tabularnewline
47 & 9.73333333333332 \tabularnewline
48 & 12.4833333333333 \tabularnewline
49 & 14.2 \tabularnewline
50 & 15.6000000000000 \tabularnewline
51 & 17.63 \tabularnewline
52 & 20.6802380952381 \tabularnewline
53 & 23.0666666666667 \tabularnewline
54 & 32.46 \tabularnewline
55 & 40.7047619047619 \tabularnewline
56 & 74.2224561403508 \tabularnewline
57 & 84.8344444444445 \tabularnewline
58 & 215.075183894696 \tabularnewline
59 & 446.933153615747 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=45&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.199999999999989[/C][/ROW]
[ROW][C]3[/C][C]0.299999999999997[/C][/ROW]
[ROW][C]4[/C][C]0.299999999999997[/C][/ROW]
[ROW][C]5[/C][C]0.299999999999997[/C][/ROW]
[ROW][C]6[/C][C]0.299999999999997[/C][/ROW]
[ROW][C]7[/C][C]0.299999999999997[/C][/ROW]
[ROW][C]8[/C][C]0.300000000000011[/C][/ROW]
[ROW][C]9[/C][C]0.399999999999991[/C][/ROW]
[ROW][C]10[/C][C]0.399999999999996[/C][/ROW]
[ROW][C]11[/C][C]0.400000000000006[/C][/ROW]
[ROW][C]12[/C][C]0.400000000000006[/C][/ROW]
[ROW][C]13[/C][C]0.400000000000006[/C][/ROW]
[ROW][C]14[/C][C]0.466666666666678[/C][/ROW]
[ROW][C]15[/C][C]0.5[/C][/ROW]
[ROW][C]16[/C][C]0.5[/C][/ROW]
[ROW][C]17[/C][C]0.5[/C][/ROW]
[ROW][C]18[/C][C]0.5[/C][/ROW]
[ROW][C]19[/C][C]0.5[/C][/ROW]
[ROW][C]20[/C][C]0.5[/C][/ROW]
[ROW][C]21[/C][C]0.599999999999994[/C][/ROW]
[ROW][C]22[/C][C]0.633333333333321[/C][/ROW]
[ROW][C]23[/C][C]0.699999999999989[/C][/ROW]
[ROW][C]24[/C][C]0.783333333333336[/C][/ROW]
[ROW][C]25[/C][C]0.950000000000017[/C][/ROW]
[ROW][C]26[/C][C]1[/C][/ROW]
[ROW][C]27[/C][C]1.06666666666665[/C][/ROW]
[ROW][C]28[/C][C]1.09999999999999[/C][/ROW]
[ROW][C]29[/C][C]1.19999999999998[/C][/ROW]
[ROW][C]30[/C][C]1.20000000000001[/C][/ROW]
[ROW][C]31[/C][C]1.36666666666667[/C][/ROW]
[ROW][C]32[/C][C]1.40000000000001[/C][/ROW]
[ROW][C]33[/C][C]1.5[/C][/ROW]
[ROW][C]34[/C][C]1.51666666666668[/C][/ROW]
[ROW][C]35[/C][C]1.64999999999999[/C][/ROW]
[ROW][C]36[/C][C]1.70000000000001[/C][/ROW]
[ROW][C]37[/C][C]1.86999999999999[/C][/ROW]
[ROW][C]38[/C][C]2.55000000000001[/C][/ROW]
[ROW][C]39[/C][C]2.71666666666665[/C][/ROW]
[ROW][C]40[/C][C]3.60000000000001[/C][/ROW]
[ROW][C]41[/C][C]4.20000000000002[/C][/ROW]
[ROW][C]42[/C][C]4.42142857142857[/C][/ROW]
[ROW][C]43[/C][C]4.46666666666667[/C][/ROW]
[ROW][C]44[/C][C]6.36666666666667[/C][/ROW]
[ROW][C]45[/C][C]6.8[/C][/ROW]
[ROW][C]46[/C][C]8.62499999999998[/C][/ROW]
[ROW][C]47[/C][C]9.73333333333332[/C][/ROW]
[ROW][C]48[/C][C]12.4833333333333[/C][/ROW]
[ROW][C]49[/C][C]14.2[/C][/ROW]
[ROW][C]50[/C][C]15.6000000000000[/C][/ROW]
[ROW][C]51[/C][C]17.63[/C][/ROW]
[ROW][C]52[/C][C]20.6802380952381[/C][/ROW]
[ROW][C]53[/C][C]23.0666666666667[/C][/ROW]
[ROW][C]54[/C][C]32.46[/C][/ROW]
[ROW][C]55[/C][C]40.7047619047619[/C][/ROW]
[ROW][C]56[/C][C]74.2224561403508[/C][/ROW]
[ROW][C]57[/C][C]84.8344444444445[/C][/ROW]
[ROW][C]58[/C][C]215.075183894696[/C][/ROW]
[ROW][C]59[/C][C]446.933153615747[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=45&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=45&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.199999999999989
30.299999999999997
40.299999999999997
50.299999999999997
60.299999999999997
70.299999999999997
80.300000000000011
90.399999999999991
100.399999999999996
110.400000000000006
120.400000000000006
130.400000000000006
140.466666666666678
150.5
160.5
170.5
180.5
190.5
200.5
210.599999999999994
220.633333333333321
230.699999999999989
240.783333333333336
250.950000000000017
261
271.06666666666665
281.09999999999999
291.19999999999998
301.20000000000001
311.36666666666667
321.40000000000001
331.5
341.51666666666668
351.64999999999999
361.70000000000001
371.86999999999999
382.55000000000001
392.71666666666665
403.60000000000001
414.20000000000002
424.42142857142857
434.46666666666667
446.36666666666667
456.8
468.62499999999998
479.73333333333332
4812.4833333333333
4914.2
5015.6000000000000
5117.63
5220.6802380952381
5323.0666666666667
5432.46
5540.7047619047619
5674.2224561403508
5784.8344444444445
58215.075183894696
59446.933153615747



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')
}