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:16:17 -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/0f3wcjmo5w65avt1193930152.htm/, Retrieved Tue, 07 May 2024 18:37:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=1, Retrieved Tue, 07 May 2024 18:37:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsworkshop 5, vraag 2
Estimated Impact267
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:16:17] [014bfc073eb4f6c1ae65a07cc44c50c0] [Current]
Feedback Forum

Post a new message
Dataseries X:
106.7
100.6
101.2
93.1
84.2
85.8
91.8
92.4
80.3
79.7
62.5
57.1
100.8
100.7
86.2
83.2
71.7
77.5
89.8
80.3
78.7
93.8
57.6
60.6
91
85.3
77.4
77.3
68.3
69.9
81.7
75.1
69.9
84
54.3
60
89.9
77
85.3
77.6
69.2
75.5
85.7
72.2
79.9
85.3
52.2
61.2
82.4
85.4
78.2
70.2
70.2
69.3
77.5
66.1
69
75.3
58.2
59.7




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=1&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=1&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=1&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
30
40
50
60
70.0999999999999943
80.0999999999999943
90.0999999999999943
100.100000000000009
110.100000000000009
120.133333333333326
130.150000000000013
140.166666666666676
150.200000000000003
160.200000000000003
170.200000000000003
180.299999999999997
190.300000000000002
200.326666666666657
210.333333333333338
220.5
230.5
240.5
250.566666666666672
260.599999999999994
270.600000000000001
280.600000000000009
290.673333333333334
300.68333333333334
310.700000000000003
320.700000000000003
330.899999999999984
340.966666666666669
351.13333333333333
361.20000000000001
371.26666666666667
381.52619047619048
391.65000000000000
402.09999999999999
412.51666666666668
422.89
432.95333333333332
443.24666666666666
453.30000000000002
465.43333333333335
475.6942857142857
486.85757575757576
498.67333333333334
508.70757575757577
519.21
5210.3604761904762
5313.4357575757576
5415.76
5549.3971177944862
5681.4593473193473
5792.9369298245614
58171.721965811966
59343.949444444445

\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.0999999999999943 \tabularnewline
8 & 0.0999999999999943 \tabularnewline
9 & 0.0999999999999943 \tabularnewline
10 & 0.100000000000009 \tabularnewline
11 & 0.100000000000009 \tabularnewline
12 & 0.133333333333326 \tabularnewline
13 & 0.150000000000013 \tabularnewline
14 & 0.166666666666676 \tabularnewline
15 & 0.200000000000003 \tabularnewline
16 & 0.200000000000003 \tabularnewline
17 & 0.200000000000003 \tabularnewline
18 & 0.299999999999997 \tabularnewline
19 & 0.300000000000002 \tabularnewline
20 & 0.326666666666657 \tabularnewline
21 & 0.333333333333338 \tabularnewline
22 & 0.5 \tabularnewline
23 & 0.5 \tabularnewline
24 & 0.5 \tabularnewline
25 & 0.566666666666672 \tabularnewline
26 & 0.599999999999994 \tabularnewline
27 & 0.600000000000001 \tabularnewline
28 & 0.600000000000009 \tabularnewline
29 & 0.673333333333334 \tabularnewline
30 & 0.68333333333334 \tabularnewline
31 & 0.700000000000003 \tabularnewline
32 & 0.700000000000003 \tabularnewline
33 & 0.899999999999984 \tabularnewline
34 & 0.966666666666669 \tabularnewline
35 & 1.13333333333333 \tabularnewline
36 & 1.20000000000001 \tabularnewline
37 & 1.26666666666667 \tabularnewline
38 & 1.52619047619048 \tabularnewline
39 & 1.65000000000000 \tabularnewline
40 & 2.09999999999999 \tabularnewline
41 & 2.51666666666668 \tabularnewline
42 & 2.89 \tabularnewline
43 & 2.95333333333332 \tabularnewline
44 & 3.24666666666666 \tabularnewline
45 & 3.30000000000002 \tabularnewline
46 & 5.43333333333335 \tabularnewline
47 & 5.6942857142857 \tabularnewline
48 & 6.85757575757576 \tabularnewline
49 & 8.67333333333334 \tabularnewline
50 & 8.70757575757577 \tabularnewline
51 & 9.21 \tabularnewline
52 & 10.3604761904762 \tabularnewline
53 & 13.4357575757576 \tabularnewline
54 & 15.76 \tabularnewline
55 & 49.3971177944862 \tabularnewline
56 & 81.4593473193473 \tabularnewline
57 & 92.9369298245614 \tabularnewline
58 & 171.721965811966 \tabularnewline
59 & 343.949444444445 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=1&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.0999999999999943[/C][/ROW]
[ROW][C]8[/C][C]0.0999999999999943[/C][/ROW]
[ROW][C]9[/C][C]0.0999999999999943[/C][/ROW]
[ROW][C]10[/C][C]0.100000000000009[/C][/ROW]
[ROW][C]11[/C][C]0.100000000000009[/C][/ROW]
[ROW][C]12[/C][C]0.133333333333326[/C][/ROW]
[ROW][C]13[/C][C]0.150000000000013[/C][/ROW]
[ROW][C]14[/C][C]0.166666666666676[/C][/ROW]
[ROW][C]15[/C][C]0.200000000000003[/C][/ROW]
[ROW][C]16[/C][C]0.200000000000003[/C][/ROW]
[ROW][C]17[/C][C]0.200000000000003[/C][/ROW]
[ROW][C]18[/C][C]0.299999999999997[/C][/ROW]
[ROW][C]19[/C][C]0.300000000000002[/C][/ROW]
[ROW][C]20[/C][C]0.326666666666657[/C][/ROW]
[ROW][C]21[/C][C]0.333333333333338[/C][/ROW]
[ROW][C]22[/C][C]0.5[/C][/ROW]
[ROW][C]23[/C][C]0.5[/C][/ROW]
[ROW][C]24[/C][C]0.5[/C][/ROW]
[ROW][C]25[/C][C]0.566666666666672[/C][/ROW]
[ROW][C]26[/C][C]0.599999999999994[/C][/ROW]
[ROW][C]27[/C][C]0.600000000000001[/C][/ROW]
[ROW][C]28[/C][C]0.600000000000009[/C][/ROW]
[ROW][C]29[/C][C]0.673333333333334[/C][/ROW]
[ROW][C]30[/C][C]0.68333333333334[/C][/ROW]
[ROW][C]31[/C][C]0.700000000000003[/C][/ROW]
[ROW][C]32[/C][C]0.700000000000003[/C][/ROW]
[ROW][C]33[/C][C]0.899999999999984[/C][/ROW]
[ROW][C]34[/C][C]0.966666666666669[/C][/ROW]
[ROW][C]35[/C][C]1.13333333333333[/C][/ROW]
[ROW][C]36[/C][C]1.20000000000001[/C][/ROW]
[ROW][C]37[/C][C]1.26666666666667[/C][/ROW]
[ROW][C]38[/C][C]1.52619047619048[/C][/ROW]
[ROW][C]39[/C][C]1.65000000000000[/C][/ROW]
[ROW][C]40[/C][C]2.09999999999999[/C][/ROW]
[ROW][C]41[/C][C]2.51666666666668[/C][/ROW]
[ROW][C]42[/C][C]2.89[/C][/ROW]
[ROW][C]43[/C][C]2.95333333333332[/C][/ROW]
[ROW][C]44[/C][C]3.24666666666666[/C][/ROW]
[ROW][C]45[/C][C]3.30000000000002[/C][/ROW]
[ROW][C]46[/C][C]5.43333333333335[/C][/ROW]
[ROW][C]47[/C][C]5.6942857142857[/C][/ROW]
[ROW][C]48[/C][C]6.85757575757576[/C][/ROW]
[ROW][C]49[/C][C]8.67333333333334[/C][/ROW]
[ROW][C]50[/C][C]8.70757575757577[/C][/ROW]
[ROW][C]51[/C][C]9.21[/C][/ROW]
[ROW][C]52[/C][C]10.3604761904762[/C][/ROW]
[ROW][C]53[/C][C]13.4357575757576[/C][/ROW]
[ROW][C]54[/C][C]15.76[/C][/ROW]
[ROW][C]55[/C][C]49.3971177944862[/C][/ROW]
[ROW][C]56[/C][C]81.4593473193473[/C][/ROW]
[ROW][C]57[/C][C]92.9369298245614[/C][/ROW]
[ROW][C]58[/C][C]171.721965811966[/C][/ROW]
[ROW][C]59[/C][C]343.949444444445[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=1&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=1&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.0999999999999943
80.0999999999999943
90.0999999999999943
100.100000000000009
110.100000000000009
120.133333333333326
130.150000000000013
140.166666666666676
150.200000000000003
160.200000000000003
170.200000000000003
180.299999999999997
190.300000000000002
200.326666666666657
210.333333333333338
220.5
230.5
240.5
250.566666666666672
260.599999999999994
270.600000000000001
280.600000000000009
290.673333333333334
300.68333333333334
310.700000000000003
320.700000000000003
330.899999999999984
340.966666666666669
351.13333333333333
361.20000000000001
371.26666666666667
381.52619047619048
391.65000000000000
402.09999999999999
412.51666666666668
422.89
432.95333333333332
443.24666666666666
453.30000000000002
465.43333333333335
475.6942857142857
486.85757575757576
498.67333333333334
508.70757575757577
519.21
5210.3604761904762
5313.4357575757576
5415.76
5549.3971177944862
5681.4593473193473
5792.9369298245614
58171.721965811966
59343.949444444445



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