Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationFri, 17 Feb 2012 09:37:11 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Feb/17/t13294903051oq4xjok8xbdrmb.htm/, Retrieved Sat, 27 Apr 2024 09:53:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=162766, Retrieved Sat, 27 Apr 2024 09:53:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [prueba1 tipo tene...] [2012-02-17 14:37:11] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
30.81	25.68	43.51
40.22	18.60	41.18
36.29	14.44	49.27
38.74	14.71	46.55
27.96	32.38	39.66
39.80	23.64	36.56
40.71	7.46	51.84
41.84	19.04	39.12
34.72	23.47	41,81
35.98	12.12	51.90
47.82	6.45	45.73
44.45	11.20	44.35
49.55	8.29	42.15
36.75	14.08	49.17
49.67	5.55	44.78
38.94	16.51	44.55
41.80	12.04	46.16
33.99	25.23	40.78
50.38	11.75	37.86
27.53	22.82	49.65
36.04	12.06	51.91
41.18	22.03	36.79
39.94	8.21	51.86
40.06	9.45	50.49
41.98	16.49	41.52




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

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







Summary of Dendrogram
LabelHeight
10.0854400374531758
20.592621295601163
31.07508139226758
42.13293225396401
52.16596398862031
62.26605383872493
72.53679469295897
82.65736711803244
92.69814751264641
103.29635131604191
113.31725790375123
124.69868453814153
135.28967785167345
146.66552212922413
159.15953333946912
1610.61850985808
1711.6571047377834
1812.6587023778216
1913.2779175884707
2017.13699858567
2120.8324759765232
2240.1066110142325
2350.3296374391434
2495.8640465872671

\begin{tabular}{lllllllll}
\hline
Summary of Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 0.0854400374531758 \tabularnewline
2 & 0.592621295601163 \tabularnewline
3 & 1.07508139226758 \tabularnewline
4 & 2.13293225396401 \tabularnewline
5 & 2.16596398862031 \tabularnewline
6 & 2.26605383872493 \tabularnewline
7 & 2.53679469295897 \tabularnewline
8 & 2.65736711803244 \tabularnewline
9 & 2.69814751264641 \tabularnewline
10 & 3.29635131604191 \tabularnewline
11 & 3.31725790375123 \tabularnewline
12 & 4.69868453814153 \tabularnewline
13 & 5.28967785167345 \tabularnewline
14 & 6.66552212922413 \tabularnewline
15 & 9.15953333946912 \tabularnewline
16 & 10.61850985808 \tabularnewline
17 & 11.6571047377834 \tabularnewline
18 & 12.6587023778216 \tabularnewline
19 & 13.2779175884707 \tabularnewline
20 & 17.13699858567 \tabularnewline
21 & 20.8324759765232 \tabularnewline
22 & 40.1066110142325 \tabularnewline
23 & 50.3296374391434 \tabularnewline
24 & 95.8640465872671 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=162766&T=1

[TABLE]
[ROW][C]Summary of Dendrogram[/C][/ROW]
[ROW][C]Label[/C][C]Height[/C][/ROW]
[ROW][C]1[/C][C]0.0854400374531758[/C][/ROW]
[ROW][C]2[/C][C]0.592621295601163[/C][/ROW]
[ROW][C]3[/C][C]1.07508139226758[/C][/ROW]
[ROW][C]4[/C][C]2.13293225396401[/C][/ROW]
[ROW][C]5[/C][C]2.16596398862031[/C][/ROW]
[ROW][C]6[/C][C]2.26605383872493[/C][/ROW]
[ROW][C]7[/C][C]2.53679469295897[/C][/ROW]
[ROW][C]8[/C][C]2.65736711803244[/C][/ROW]
[ROW][C]9[/C][C]2.69814751264641[/C][/ROW]
[ROW][C]10[/C][C]3.29635131604191[/C][/ROW]
[ROW][C]11[/C][C]3.31725790375123[/C][/ROW]
[ROW][C]12[/C][C]4.69868453814153[/C][/ROW]
[ROW][C]13[/C][C]5.28967785167345[/C][/ROW]
[ROW][C]14[/C][C]6.66552212922413[/C][/ROW]
[ROW][C]15[/C][C]9.15953333946912[/C][/ROW]
[ROW][C]16[/C][C]10.61850985808[/C][/ROW]
[ROW][C]17[/C][C]11.6571047377834[/C][/ROW]
[ROW][C]18[/C][C]12.6587023778216[/C][/ROW]
[ROW][C]19[/C][C]13.2779175884707[/C][/ROW]
[ROW][C]20[/C][C]17.13699858567[/C][/ROW]
[ROW][C]21[/C][C]20.8324759765232[/C][/ROW]
[ROW][C]22[/C][C]40.1066110142325[/C][/ROW]
[ROW][C]23[/C][C]50.3296374391434[/C][/ROW]
[ROW][C]24[/C][C]95.8640465872671[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=162766&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=162766&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.0854400374531758
20.592621295601163
31.07508139226758
42.13293225396401
52.16596398862031
62.26605383872493
72.53679469295897
82.65736711803244
92.69814751264641
103.29635131604191
113.31725790375123
124.69868453814153
135.28967785167345
146.66552212922413
159.15953333946912
1610.61850985808
1711.6571047377834
1812.6587023778216
1913.2779175884707
2017.13699858567
2120.8324759765232
2240.1066110142325
2350.3296374391434
2495.8640465872671



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