Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationTue, 29 Nov 2022 22:13:40 +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/Nov/29/t1669756437iioafn3j51tq7f4.htm/, Retrieved Mon, 08 Jun 2026 13:09:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=319789, Retrieved Mon, 08 Jun 2026 13:09:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact316
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [] [2022-11-29 21:13:40] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
5,842825709	1.41
3,371012417	5.43
3,781884567	5.24
3,804207605	5.51
3,530135638	3.94
4,844545514	1.33
4,765161706	0.69
4,404183498	1.29
4,391323327	1.64
2,674861141	2.8
3,074926097	1.88
3,065579715	2.52
2,911690159	2.5
2,854306042	1.4
2,680516809	1.53
2,626340367	1.26
2,744292983	1.99
2,547159121	0.2
2,806179974	0.92
3,239899817	3.34
1,051808294	1.88
0,79239169	1.471
3,260453018	3.53
3,193347256	3.01
3,420632258	1.94
3,382071101	1.83
1,921686475	0.86
3,410726633	1.88
2,29710365	1.15
2,401572846	1.61
2,725094521	0.984
2,749272408	1.43
2,882979654	1.24
2,8659918	1.09
2,130333768	1.4
2,027349608	1.6
1,9495193	0.67
1,764176132	0.69
1,63447727	0.7
1,609594409	0.7
0,161368002	0.31
2,372543801	1.2
2,76260355	1.59
2,766933094	1.39
2,896746616	1.71
2,881612872	1.63
3,131426172	2.06
2,230448921	1.5
2,782472624	1.71
2,419460073	3.42
1,195899652	2.6
0,785329835	2.7
0,925312092	2.4
0,088136089	2.1
2,194514342	1.9
1,698970004	5.55
1,397940009	1.3
0,214843848	3.7
1,546542663	2
0,681241237	1.7
-0,580870692	0.7
-0,361510743	1.27
2,029383778	1.2
2,133538908	1.2
2,346431219	1.4
2,133538908	1.5
0,544068044	2.61
2,154728207	3.4
1,740362689	1.25
1,869407749	0.81
1,986771734	1.57
0,484299839	1.64
0,361727836	0.88
1,926342447	0.8
1,880813592	0.66
2,049218023	1.37
-0,408935393	1.7
1,354684554	0.235
0,397940009	0.6
0,380211242	0.3
0,477121255	0.62
0,74036269	0.6
0,301029996	0.533
-0,619788758	3.3
-0,22184875	0.2




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center
R Engine error message
Error in if (par3 == "TRUE") { : missing value where TRUE/FALSE needed
Execution halted

\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 time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
R Engine error message & 
Error in if (par3 == "TRUE") { : missing value where TRUE/FALSE needed
Execution halted
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=319789&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]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [ROW]R Engine error message[/C][C]
Error in if (par3 == "TRUE") { : missing value where TRUE/FALSE needed
Execution halted
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=319789&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=319789&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 time1 seconds
R ServerBig Analytics Cloud Computing Center
R Engine error message
Error in if (par3 == "TRUE") { : missing value where TRUE/FALSE needed
Execution halted



Parameters (Session):
par1 = completar ; par2 = TODO ; par3 = FALSO ; par4 = FALSO ;
Parameters (R input):
par1 = completar ; par2 = TODO ; par3 = FALSO ; par4 = FALSO ;
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')
}