Home » date » 2008 » Nov » 09 »

Compete

*The author of this computation has been verified*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Sun, 09 Nov 2008 05:18:16 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/09/t1226233214eqeoggeb8aw21r2.htm/, Retrieved Sun, 09 Nov 2008 12:20:14 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Nov/09/t1226233214eqeoggeb8aw21r2.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
116.1 102.5 102.0 101.3 100.6 100.9 104.2 108.3 108.9 109.9 106.8 112.7 113.4 101.3 97.8 95.0 93.8 94.5 101.4 105.8 106.6 109.7 108.8 113.4 113.7 103.6 98.2 95.5 94.4 95.9 103.2 104.1 127.6 130.3 133.0 140.4 123.5 116.9 115.9 113.1 112.1 112.4 118.9 117.4 115.6 120.7 114.9 122.0 119.6 114.6 118.4 110.9 111.6 114.6 112.1 117.4 114.8 123.4 118.1 121.9 123.3 117.1 107.0 107.0 111.0 108.2 96.3 100.9 107.7 106.2 118.7 116.1 118.1 118.4 110.8 106.4 112.2 108.3 96.0 100.6 107.8 108.4 120.9 117.3 119.7 119.6 111.8 108.1 111.8 105.5 93.6 103.9 100.3 106.6 118.4 106.6 109.8 115.9 111.7 119.8 116.1 103.2 99.0 112.3 104.2 114.0 121.7 107.2 112.8 117.8 113.3 116.1 111.8 110.2 110.0 102.9 110.1 102.7 118.7 109.0 115.7 118.1 118.9 108.8 115.6 95.0 92.8 108.9 109.8 106.1 102.8 98.4 85.7 114.6 129.4 117.7 126.6 103.8 101.5 118.7 119.6 114.8 109.9 106.3 95.0 124.5 140.4 128.8 137.5 113.3 110.3 129.1 128.4 120.3 113.6 96.9 124.7 126.4 131.9 122.5 113.1 99.8 116.0 115.0 114.0 111.0 91.7 90.6 103.3 106.7 111.2 102.9 126.5 115.1 110.2 110.1 103.3 107.7 103.9 114.0 117.2 117.0 116.5 100.3 97.6 89.1 99.1 94.9 96.5 92.6 80.8 89.5 101.4 95.9 92.3 91.2 88.3 80.7 89.9 87.2 86.9 82.8 72.6 81.3 91.2 87.3 83.4 81.7 80.2 74.1 80.6 79.0 79.3 71.2 78.1 68.2 81.0 106.9 123.7 73.7 69.2 72.5 75.7 73.5 70.4 65.7 68.1 62.4 64.7 77.7 85.9 61.0 57.4 75.1 75.9 71.8 72.3 67.3 71.5 67.6 74.2 77.6 76.4 74.2
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Summary of Dendrogram
LabelHeight
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360
370
380
390
400
410
420
430
440
450
460
470
480
490
500
510
520
530
540
550.0999999999999943
560.0999999999999943
570.0999999999999943
580.0999999999999943
590.0999999999999943
600.0999999999999943
610.0999999999999943
620.0999999999999943
630.0999999999999943
640.0999999999999943
650.0999999999999943
660.0999999999999943
670.0999999999999943
680.0999999999999943
690.0999999999999943
700.0999999999999943
710.0999999999999943
720.0999999999999943
730.0999999999999943
740.0999999999999943
750.0999999999999943
760.0999999999999943
770.0999999999999943
780.0999999999999943
790.0999999999999943
800.0999999999999943
810.0999999999999943
820.0999999999999943
830.0999999999999943
840.0999999999999943
850.0999999999999943
860.0999999999999943
870.100000000000009
880.100000000000009
890.100000000000009
900.100000000000009
910.100000000000009
920.100000000000009
930.100000000000009
940.100000000000009
950.199999999999989
960.199999999999989
970.199999999999989
980.199999999999989
990.199999999999989
1000.199999999999989
1010.200000000000003
1020.200000000000003
1030.200000000000003
1040.200000000000003
1050.200000000000003
1060.200000000000003
1070.200000000000003
1080.200000000000003
1090.200000000000003
1100.200000000000003
1110.200000000000003
1120.200000000000003
1130.200000000000003
1140.200000000000003
1150.200000000000003
1160.200000000000003
1170.200000000000003
1180.200000000000003
1190.200000000000003
1200.200000000000003
1210.200000000000003
1220.200000000000003
1230.200000000000003
1240.200000000000003
1250.299999999999983
1260.299999999999997
1270.299999999999997
1280.299999999999997
1290.299999999999997
1300.299999999999997
1310.299999999999997
1320.299999999999997
1330.299999999999997
1340.299999999999997
1350.300000000000011
1360.300000000000011
1370.300000000000011
1380.300000000000011
1390.300000000000011
1400.399999999999991
1410.399999999999991
1420.400000000000006
1430.400000000000006
1440.400000000000006
1450.400000000000006
1460.400000000000006
1470.5
1480.5
1490.5
1500.5
1510.5
1520.5
1530.5
1540.5
1550.5
1560.599999999999994
1570.599999999999994
1580.599999999999994
1590.599999999999994
1600.599999999999994
1610.599999999999994
1620.600000000000009
1630.600000000000009
1640.600000000000009
1650.600000000000009
1660.699999999999989
1670.700000000000003
1680.700000000000003
1690.700000000000003
1700.700000000000003
1710.700000000000003
1720.700000000000003
1730.799999999999997
1740.799999999999997
1750.799999999999997
1760.800000000000011
1770.800000000000011
1780.800000000000011
1790.900000000000006
1800.900000000000006
1811
1821.09999999999999
1831.09999999999999
1841.09999999999999
1851.09999999999999
1861.20000000000000
1871.20000000000000
1881.30000000000000
1891.30000000000000
1901.30000000000001
1911.39999999999999
1921.40000000000000
1931.40000000000001
1941.40000000000001
1951.40000000000001
1961.5
1971.5
1981.5
1991.5
2001.5
2011.59999999999999
2021.59999999999999
2031.70000000000000
2041.70000000000000
2051.70000000000000
2061.90000000000001
2072
2082.20000000000000
2092.20000000000000
2102.30000000000000
2112.40000000000001
2122.90000000000001
2132.90000000000001
2143
2153.10000000000001
2163.2
2173.30000000000001
2183.5
2193.80000000000001
2203.90000000000001
2214.40000000000001
2224.5
2234.7
2245.2
2255.5
2265.7
2275.80000000000001
2286
2296.6
2306.80000000000001
2317.1
2328.3
2339.1
23410.6
23512.9
23614
23715.2
23819
23919.2
24026.6
24134.9
24246.8
24383
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226233214eqeoggeb8aw21r2/1x7rh1226233088.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226233214eqeoggeb8aw21r2/1x7rh1226233088.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226233214eqeoggeb8aw21r2/2yy8c1226233088.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226233214eqeoggeb8aw21r2/2yy8c1226233088.ps (open in new window)


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





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by