Home » date » 2008 » Nov » 09 »

Ward

*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:21:33 -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/t1226233344qjcyfqiphkggx0x.htm/, Retrieved Sun, 09 Nov 2008 12:22:27 +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/t1226233344qjcyfqiphkggx0x.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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


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.100000000000009
740.100000000000009
750.100000000000009
760.100000000000009
770.100000000000009
780.100000000000009
790.133333333333326
800.133333333333326
810.133333333333326
820.133333333333326
830.133333333333326
840.133333333333326
850.133333333333326
860.133333333333326
870.133333333333326
880.133333333333345
890.133333333333345
900.133333333333345
910.133333333333345
920.133333333333345
930.149999999999991
940.166666666666657
950.166666666666657
960.166666666666657
970.166666666666676
980.166666666666676
990.166666666666676
1000.166666666666676
1010.199999999999989
1020.200000000000003
1030.200000000000003
1040.200000000000003
1050.200000000000003
1060.200000000000003
1070.200000000000003
1080.200000000000003
1090.200000000000003
1100.200000000000003
1110.200000000000003
1120.200000000000017
1130.233333333333344
1140.249999999999993
1150.250000000000014
1160.250000000000014
1170.266666666666686
1180.266666666666686
1190.266666666666686
1200.299999999999983
1210.299999999999991
1220.299999999999997
1230.299999999999997
1240.299999999999997
1250.299999999999997
1260.299999999999997
1270.300000000000002
1280.300000000000002
1290.300000000000017
1300.300000000000017
1310.31666666666667
1320.326666666666660
1330.366666666666677
1340.366666666666688
1350.370000000000003
1360.373333333333346
1370.37333333333335
1380.383333333333335
1390.400000000000006
1400.433333333333328
1410.450000000000003
1420.466666666666664
1430.480000000000007
1440.495238095238067
1450.499999999999995
1460.500000000000009
1470.566666666666658
1480.599999999999994
1490.600000000000009
1500.600000000000009
1510.600000000000009
1520.600000000000013
1530.616666666666674
1540.63333333333334
1550.666666666666667
1560.666666666666676
1570.683333333333325
1580.683333333333337
1590.733333333333334
1600.77999999999999
1610.779999999999998
1620.800000000000011
1630.849999999999997
1640.919999999999999
1650.960000000000018
1660.966666666666648
1670.966666666666663
1680.983333333333346
1691
1701.00000000000001
1711.09999999999999
1721.11666666666668
1731.15000000000001
1741.18666666666666
1751.19444444444447
1761.20000000000000
1771.20000000000000
1781.22285714285717
1791.23333333333333
1801.24499999999999
1811.26000000000000
1821.28333333333334
1831.29393939393937
1841.37809523809525
1851.400
1861.53333333333333
1871.60000000000001
1881.65952380952381
1891.68166666666666
1901.71111111111110
1911.7642857142857
1922.26666666666666
1932.30000000000000
1942.33333333333333
1952.39272727272726
1962.40000000000001
1972.61666666666667
1982.65000000000000
1992.79333333333334
2002.86666666666666
2012.96423076923083
2023.00000000000001
2033.5222222222222
2043.86666666666667
2053.87115384615385
2064.00000000000001
2074.44432234432234
2085.26666666666667
2095.51522727272728
2105.59047619047619
2115.62638888888888
2125.77499999999999
2136.32161172161173
2146.3411111111111
2156.61
2167.34999999999998
2177.6888888888889
2188.02666666666667
2199.00934065934064
22010.7989898989899
22111.6057692307692
22211.8671277997365
22313.7066666666667
22413.8955555555556
22516.0373819163293
22616.9921182266009
22718.8681318681319
22823.2378787878788
22924.2803418803419
23033.2502090301003
23138.6188909774436
23241.121645021645
23346.1317926143312
23455.1261097325614
23557.8721428571429
23664.1234032634032
23797.6985730687223
238117.320384615385
239207.276232369781
240208.876273599041
241437.492415448782
242842.179162378502
2431926.68213710961
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226233344qjcyfqiphkggx0x/13g781226233284.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226233344qjcyfqiphkggx0x/13g781226233284.ps (open in new window)


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


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





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