Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationThu, 13 Nov 2008 16:32:40 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/14/t1226619202nb923bcufcqgnah.htm/, Retrieved Sun, 19 May 2024 12:16:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24886, Retrieved Sun, 19 May 2024 12:16:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact186
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Hierarchical Clustering] [] [2008-11-13 23:32:40] [2967ce9437c7d75d9bc3ac583860c521] [Current]
Feedback Forum
2008-11-20 15:00:32 [Natalie De Wilde] [reply
Ook in Q2 geef je geen interpreatie van de output, wat stelt het dendogram voor?
Je zegt alleen: 'Deze illustratiemethode toont aan welke maanden bij elkaar horen (Te vergelijken met een starplot).' Dit is niet genoeg.

Post a new message
Dataseries X:
4,56	4,51	4,77	5,25
4,41	4,38	4,75	5,25
4,33	4,29	4,91	5,18
4,2	4,08	4,68	5
4,25	4,2	4,71	5
4,25	4,22	4,61	5
4,19	4,15	4,36	5
4,17	4,12	4,3	5
4,21	4,18	4,54	5
4,21	4,19	4,71	5
4,17	4,15	4,57	5
4,16	4,13	4,63	5
4,19	4,17	4,57	5
4,08	4,07	4,33	5
4,06	4,05	4,14	5
3,98	3,97	4,08	4,9
3,82	3,82	3,98	4,75
3,82	3,82	3,89	4,75
3,72	3,72	3,82	4,65
3,56	3,55	3,74	4,5
3,57	3,56	3,67	4,5
3,49	3,47	3,61	4,39
3,32	3,31	3,51	4,25
3,23	3,22	3,36	4,17




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 2 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24886&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24886&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24886&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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132







Summary of Dendrogram
LabelHeight
10.0282842712474619
20.0412310562561766
30.0543893047949741
40.0700000000000007
50.0714142842854288
60.0812403840463594
70.0899999999999999
80.124995511384354
90.141014623812985
100.162480768092718
110.188243856704077
120.199499373432600
130.212367605815953
140.225881952550641
150.251741292915817
160.284832957803315
170.311376869772686
180.508173457754505
190.981490937641855
201.40703227279908
211.73903425375527
223.91155904789105
238.41028015213632

\begin{tabular}{lllllllll}
\hline
Summary of Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 0.0282842712474619 \tabularnewline
2 & 0.0412310562561766 \tabularnewline
3 & 0.0543893047949741 \tabularnewline
4 & 0.0700000000000007 \tabularnewline
5 & 0.0714142842854288 \tabularnewline
6 & 0.0812403840463594 \tabularnewline
7 & 0.0899999999999999 \tabularnewline
8 & 0.124995511384354 \tabularnewline
9 & 0.141014623812985 \tabularnewline
10 & 0.162480768092718 \tabularnewline
11 & 0.188243856704077 \tabularnewline
12 & 0.199499373432600 \tabularnewline
13 & 0.212367605815953 \tabularnewline
14 & 0.225881952550641 \tabularnewline
15 & 0.251741292915817 \tabularnewline
16 & 0.284832957803315 \tabularnewline
17 & 0.311376869772686 \tabularnewline
18 & 0.508173457754505 \tabularnewline
19 & 0.981490937641855 \tabularnewline
20 & 1.40703227279908 \tabularnewline
21 & 1.73903425375527 \tabularnewline
22 & 3.91155904789105 \tabularnewline
23 & 8.41028015213632 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24886&T=1

[TABLE]
[ROW][C]Summary of Dendrogram[/C][/ROW]
[ROW][C]Label[/C][C]Height[/C][/ROW]
[ROW][C]1[/C][C]0.0282842712474619[/C][/ROW]
[ROW][C]2[/C][C]0.0412310562561766[/C][/ROW]
[ROW][C]3[/C][C]0.0543893047949741[/C][/ROW]
[ROW][C]4[/C][C]0.0700000000000007[/C][/ROW]
[ROW][C]5[/C][C]0.0714142842854288[/C][/ROW]
[ROW][C]6[/C][C]0.0812403840463594[/C][/ROW]
[ROW][C]7[/C][C]0.0899999999999999[/C][/ROW]
[ROW][C]8[/C][C]0.124995511384354[/C][/ROW]
[ROW][C]9[/C][C]0.141014623812985[/C][/ROW]
[ROW][C]10[/C][C]0.162480768092718[/C][/ROW]
[ROW][C]11[/C][C]0.188243856704077[/C][/ROW]
[ROW][C]12[/C][C]0.199499373432600[/C][/ROW]
[ROW][C]13[/C][C]0.212367605815953[/C][/ROW]
[ROW][C]14[/C][C]0.225881952550641[/C][/ROW]
[ROW][C]15[/C][C]0.251741292915817[/C][/ROW]
[ROW][C]16[/C][C]0.284832957803315[/C][/ROW]
[ROW][C]17[/C][C]0.311376869772686[/C][/ROW]
[ROW][C]18[/C][C]0.508173457754505[/C][/ROW]
[ROW][C]19[/C][C]0.981490937641855[/C][/ROW]
[ROW][C]20[/C][C]1.40703227279908[/C][/ROW]
[ROW][C]21[/C][C]1.73903425375527[/C][/ROW]
[ROW][C]22[/C][C]3.91155904789105[/C][/ROW]
[ROW][C]23[/C][C]8.41028015213632[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24886&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24886&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.0282842712474619
20.0412310562561766
30.0543893047949741
40.0700000000000007
50.0714142842854288
60.0812403840463594
70.0899999999999999
80.124995511384354
90.141014623812985
100.162480768092718
110.188243856704077
120.199499373432600
130.212367605815953
140.225881952550641
150.251741292915817
160.284832957803315
170.311376869772686
180.508173457754505
190.981490937641855
201.40703227279908
211.73903425375527
223.91155904789105
238.41028015213632



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