Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationFri, 03 Feb 2023 09:07:27 +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/2023/Feb/03/t1675411695d2bl5hic8557df8.htm/, Retrieved Wed, 29 Apr 2026 06:21:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=319855, Retrieved Wed, 29 Apr 2026 06:21:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact292
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [] [2023-02-03 08:07:27] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
Demografia	Gènere	Salut i benestar	Capacitat institucional	Renda i finances	Capital humà	Mercat de treball	Cohesió social	Teixit empresarial	Especialització productiva	Tecnologia i coneixement	Transició econòmica	Accessibilitat externa	Espais d'activitat	Paisatge i patrimoni	Canvi climàtic
0,87	0,58	0,64	0,68	0,99	0,58	0,58	0,17	0,64	0,89	0,62	0,63	0,92	0,72	0,42	0,58
0,71	0,55	0,25	0,55	0,76	0,56	0,39	0,39	0,64	0,87	0,83	0,51	0,89	0,62	0,24	0,52
0,77	0,51	0,67	0,52	0,28	0,48	0,39	0,28	0,64	0,66	0,72	0,61	0,61	0,80	0,67	0,66
0,55	0,46	0,27	0,51	0,85	0,66	0,68	0,61	0,43	0,44	0,35	0,47	0,91	0,63	0,35	0,62
0,60	0,49	0,49	0,51	0,29	0,48	0,32	0,26	0,67	0,50	0,62	0,42	0,88	0,78	0,41	0,77
0,77	0,59	0,56	0,59	0,32	0,43	0,25	0,19	0,56	0,53	0,44	0,42	0,87	0,86	0,51	0,60
0,80	0,42	0,39	0,44	0,46	0,52	0,37	0,56	0,49	0,48	0,36	0,60	0,85	0,66	0,49	0,56
0,76	0,69	0,62	0,77	0,09	0,40	0,16	0,17	0,51	0,64	0,47	0,62	0,85	0,60	0,51	0,55
0,75	0,53	0,50	0,82	0,32	0,44	0,26	0,22	0,53	0,61	0,45	0,40	0,93	0,58	0,49	0,56
0,75	0,50	0,41	0,71	0,26	0,49	0,28	0,27	0,48	0,63	0,45	0,45	0,86	0,60	0,64	0,60
0,64	0,39	0,15	0,51	0,52	0,43	0,38	0,46	0,63	0,55	0,59	0,45	0,91	0,88	0,29	0,59
0,62	0,57	0,67	0,57	0,28	0,57	0,25	0,26	0,55	0,71	0,41	0,50	0,61	0,71	0,53	0,48
0,65	0,23	0,54	0,56	0,24	0,48	0,37	0,26	0,52	0,44	0,47	0,72	0,70	0,69	0,74	0,51
0,71	0,42	0,26	0,54	0,40	0,47	0,32	0,55	0,51	0,40	0,49	0,61	0,92	0,65	0,28	0,54
0,39	0,45	0,37	0,44	0,63	0,73	0,44	0,82	0,61	0,41	0,46	0,40	0,36	0,55	0,34	0,63
0,54	0,68	0,47	0,49	0,83	0,50	0,42	0,19	0,40	0,36	0,45	0,53	0,90	0,50	0,35	0,43
0,82	0,48	0,20	0,59	0,33	0,35	0,32	0,31	0,55	0,56	0,49	0,40	0,88	0,60	0,44	0,52
0,48	0,79	0,44	0,42	0,43	0,55	0,45	0,59	0,52	0,37	0,29	0,63	0,36	0,41	0,59	0,50
0,59	0,49	0,62	0,71	0,13	0,43	0,13	0,11	0,56	0,48	0,45	0,64	0,67	0,69	0,61	0,52
0,70	0,49	0,33	0,62	0,36	0,53	0,17	0,23	0,42	0,42	0,44	0,47	0,61	0,56	0,61	0,45
0,59	0,42	0,26	0,47	0,30	0,56	0,36	0,31	0,59	0,38	0,63	0,48	0,35	0,60	0,65	0,45
0,30	0,72	0,60	0,58	0,24	0,58	0,13	0,35	0,46	0,33	0,45	0,49	0,33	0,61	0,55	0,68
0,42	0,71	0,40	0,51	0,33	0,59	0,28	0,20	0,36	0,38	0,35	0,43	0,72	0,48	0,53	0,50
0,59	0,49	0,49	0,47	0,11	0,33	0,19	0,25	0,56	0,40	0,39	0,54	0,49	0,57	0,64	0,64
0,55	0,58	0,37	0,55	0,53	0,44	0,25	0,10	0,28	0,39	0,31	0,50	0,68	0,48	0,75	0,20
0,75	0,47	0,18	0,48	0,04	0,31	0,15	0,33	0,34	0,38	0,26	0,37	0,55	0,46	0,36	0,29




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
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\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 & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=319855&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]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=319855&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=319855&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
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.



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):
par4 <- 'FALSE'
par3 <- 'FALSE'
par2 <- 'ALL'
par1 <- 'ward'
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')
}