Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationThu, 05 Dec 2024 17:19:42 +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/2024/Dec/05/t173341575301rehi6kpv2cpg3.htm/, Retrieved Tue, 19 May 2026 23:44:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=320159, Retrieved Tue, 19 May 2026 23:44:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact200
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [] [2024-12-05 16:19:42] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
Densidade (g/cm³) | Log(R) (km)
------------------|-----------------
1.41       | 5.8428
5.43       | 3.3873
5.24       | 3.7818
5.52       | 3.8042
3.93       | 3.5301
1.33       | 4.8445
0.69       | 4.7651
1.27       | 4.4041
1.64       | 4.3913
2.08       | 2.6776
1.88       | 3.0610
2.52       | 3.0655
2.60       | 2.7923
2.11       | 2.8543
1.40       | 2.9608
1.60       | 2.6283
1.99       | 2.7442
1.20       | 2.8585
1.72       | 2.7888
3.34       | 3.2398
1.88       | 1.0518
1.47       | 0.7923
3.55       | 3.2604
3.01       | 3.1933
1.94       | 3.4206
1.86       | 3.3820
1.80       | 1.9216
1.88       | 3.4107
0.67       | 1.9498
1.15       | 2.2971
1.61       | 2.4015
1.21       | 2.7250
1.48       | 2.7492
1.23       | 2.8829
1.21       | 2.8659
0.55       | 2.1584
0.70       | 2.0273
0.67       | 1.9518
0.70       | 1.7641
0.70       | 1.6344
0.49       | 1.6095
0.31       | 0.1613
1.20       | 2.3725
1.66       | 2.7626
1.39       | 2.7669
1.71       | 2.8967
1.63       | 2.8816
2.00       | 3.1314
1.50       | 2.2304
1.65       | 2.7824
3.40       | 2.4194
2.50       | 1.1958
2.70       | 0.9777
2.40       | 0.9242
2.10       | 4.6563
1.90       | 2.1945
1.20       | 2.2741
3.40       | 1.6989
1.30       | 1.3979
2.70       | 0.1072
2.70       | 1.5477
1.50       | 0.6812
1.26       | 2.4191
1.52       | 2.6384
1.20       | 2.4566
1.40       | 2.0472
1.20       | 2.1335
1.40       | 0.5440
3.60       | 1.7923
1.30       | 1.9444
1.30       | 0.4771
1.60       | 2.1682
2.70       | 3.6744
3.00       | 0.1139
0.88       | 1.8195
1.20       | 1.9822
1.00       | 2.0472
1.26       | 2.4191
2.10       | 2.5910
0.50       | 1.3541
0.60       | 0.3979
0.30       | 0.3802
0.62       | 0.4771
0.60       | 0.7403
0.47       | 0.3010
0.60       | -0.6197
0.60       | -0.2441




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

\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
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=320159&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] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=320159&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=320159&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



Parameters (Session):
Parameters (R input):
par1 = completo ; par2 = TODOS ; par3 = FALSO ; par4 = FALSO ;
R code (references can be found in the software module):
par4 <- 'FALSO'
par3 <- 'FALSO'
par2 <- 'TODOS'
par1 <- 'completo'
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')
}