Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationWed, 21 Dec 2022 01:52:22 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2022/Dec/21/t167158415435h3npa0h4nfde0.htm/, Retrieved Tue, 21 May 2024 19:43:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=319800, Retrieved Tue, 21 May 2024 19:43:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact30
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [Sistema Solar] [2022-12-21 00:52:22] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
4.8	1.4
0.8	0.6
0.3	0.3
0.8	0.6
0.3	0.5
0.3	0.5
0.3	0.6
0.3	0.6
1.9	0.8
2.8	1.6
3.4	1.8
2.8	1.6
2.6	2
2	2
0.8	1.4
2.7	1.4
3	2.5
3.2	3
1	1.8
3.4	1.9
3	2.5
3.3	3.5
4.8	1.3
3.2	3.3
2.8	1.7
3.5	3.9
3.4	5.4
4.4	1.6
2.9	1.6
3	1.9
2.8	0.9
2.9	1.2
2.6	1.1
4.8	0.7
3.8	5.5
2.8	0.9
3.4	1.9
2.9	1.7
3	2
2.8	1.4
4.4	1.3
3.8	5.2





Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time0 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=319800&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]0 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [ROW]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=319800&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=319800&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Summary of Dendrogram
LabelHeight
10
20
30
40
50
60
70
80.0999999999999996
90.0999999999999999
100.0999999999999999
110.0999999999999999
120.0999999999999999
130.1
140.1
150.141421356237309
160.223606797749979
170.282842712474619
180.282842712474619
190.3
200.3
210.3
220.412310562561766
230.447213595499958
240.447213595499958
250.5
260.5
270.509901951359278
280.509901951359278
290.58309518948453
300.806225774829855
310.921954445729289
320.948683298050514
330.98488578017961
341.0816653826392
351.34164078649987
362.02484567313166
372.40416305603426
382.57099202643649
392.96141857899217
404.63249392876019
416.26817357768593

\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.0999999999999996 \tabularnewline
9 & 0.0999999999999999 \tabularnewline
10 & 0.0999999999999999 \tabularnewline
11 & 0.0999999999999999 \tabularnewline
12 & 0.0999999999999999 \tabularnewline
13 & 0.1 \tabularnewline
14 & 0.1 \tabularnewline
15 & 0.141421356237309 \tabularnewline
16 & 0.223606797749979 \tabularnewline
17 & 0.282842712474619 \tabularnewline
18 & 0.282842712474619 \tabularnewline
19 & 0.3 \tabularnewline
20 & 0.3 \tabularnewline
21 & 0.3 \tabularnewline
22 & 0.412310562561766 \tabularnewline
23 & 0.447213595499958 \tabularnewline
24 & 0.447213595499958 \tabularnewline
25 & 0.5 \tabularnewline
26 & 0.5 \tabularnewline
27 & 0.509901951359278 \tabularnewline
28 & 0.509901951359278 \tabularnewline
29 & 0.58309518948453 \tabularnewline
30 & 0.806225774829855 \tabularnewline
31 & 0.921954445729289 \tabularnewline
32 & 0.948683298050514 \tabularnewline
33 & 0.98488578017961 \tabularnewline
34 & 1.0816653826392 \tabularnewline
35 & 1.34164078649987 \tabularnewline
36 & 2.02484567313166 \tabularnewline
37 & 2.40416305603426 \tabularnewline
38 & 2.57099202643649 \tabularnewline
39 & 2.96141857899217 \tabularnewline
40 & 4.63249392876019 \tabularnewline
41 & 6.26817357768593 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=319800&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.0999999999999996[/C][/ROW]
[ROW][C]9[/C][C]0.0999999999999999[/C][/ROW]
[ROW][C]10[/C][C]0.0999999999999999[/C][/ROW]
[ROW][C]11[/C][C]0.0999999999999999[/C][/ROW]
[ROW][C]12[/C][C]0.0999999999999999[/C][/ROW]
[ROW][C]13[/C][C]0.1[/C][/ROW]
[ROW][C]14[/C][C]0.1[/C][/ROW]
[ROW][C]15[/C][C]0.141421356237309[/C][/ROW]
[ROW][C]16[/C][C]0.223606797749979[/C][/ROW]
[ROW][C]17[/C][C]0.282842712474619[/C][/ROW]
[ROW][C]18[/C][C]0.282842712474619[/C][/ROW]
[ROW][C]19[/C][C]0.3[/C][/ROW]
[ROW][C]20[/C][C]0.3[/C][/ROW]
[ROW][C]21[/C][C]0.3[/C][/ROW]
[ROW][C]22[/C][C]0.412310562561766[/C][/ROW]
[ROW][C]23[/C][C]0.447213595499958[/C][/ROW]
[ROW][C]24[/C][C]0.447213595499958[/C][/ROW]
[ROW][C]25[/C][C]0.5[/C][/ROW]
[ROW][C]26[/C][C]0.5[/C][/ROW]
[ROW][C]27[/C][C]0.509901951359278[/C][/ROW]
[ROW][C]28[/C][C]0.509901951359278[/C][/ROW]
[ROW][C]29[/C][C]0.58309518948453[/C][/ROW]
[ROW][C]30[/C][C]0.806225774829855[/C][/ROW]
[ROW][C]31[/C][C]0.921954445729289[/C][/ROW]
[ROW][C]32[/C][C]0.948683298050514[/C][/ROW]
[ROW][C]33[/C][C]0.98488578017961[/C][/ROW]
[ROW][C]34[/C][C]1.0816653826392[/C][/ROW]
[ROW][C]35[/C][C]1.34164078649987[/C][/ROW]
[ROW][C]36[/C][C]2.02484567313166[/C][/ROW]
[ROW][C]37[/C][C]2.40416305603426[/C][/ROW]
[ROW][C]38[/C][C]2.57099202643649[/C][/ROW]
[ROW][C]39[/C][C]2.96141857899217[/C][/ROW]
[ROW][C]40[/C][C]4.63249392876019[/C][/ROW]
[ROW][C]41[/C][C]6.26817357768593[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=319800&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=319800&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.0999999999999996
90.0999999999999999
100.0999999999999999
110.0999999999999999
120.0999999999999999
130.1
140.1
150.141421356237309
160.223606797749979
170.282842712474619
180.282842712474619
190.3
200.3
210.3
220.412310562561766
230.447213595499958
240.447213595499958
250.5
260.5
270.509901951359278
280.509901951359278
290.58309518948453
300.806225774829855
310.921954445729289
320.948683298050514
330.98488578017961
341.0816653826392
351.34164078649987
362.02484567313166
372.40416305603426
382.57099202643649
392.96141857899217
404.63249392876019
416.26817357768593



Parameters (Session):
par1 = complete ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
Parameters (R input):
par1 = complete ; 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')
}