Home » date » 2007 » Nov » 12 » attachments

Hirarchiel CLustering Alle cijfers

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Mon, 12 Nov 2007 11:49:01 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/12/t1194893056mh1df7f1thltf0n.htm/, Retrieved Mon, 12 Nov 2007 19:44:16 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
513 140 373 96 87 503 132 371 86 75 471 117 354 82 74 471 114 357 92 91 476 113 363 99 101 475 110 364 101 103 470 107 363 102 106 461 103 358 100 102 455 98 357 101 105 456 98 357 100 105 517 137 380 99 100 525 148 378 97 95 523 147 376 97 96 519 139 380 97 98 509 130 379 96 99 512 128 384 92 92 519 127 392 91 84 517 123 394 87 81 510 118 392 82 72 509 114 396 89 89 501 108 392 91 96 507 111 396 90 91 569 151 419 87 88 580 159 421 89 90 578 158 420 95 98 565 148 418 85 87 547 138 410 94 100 555 137 418 94 100 562 136 426 97 104 561 133 428 99 107 555 126 430 97 105 544 120 424 96 102 537 114 423 94 98 543 116 427 100 106 594 153 441 96 97 611 162 449 98 101 613 161 452 98 100 611 149 462 94 93 594 139 455 93 94 595 135 461 94 96 591 130 461 94 96 589 127 463 97 98 584 122 462 98 102 573 117 456 95 95 567 112 455 89 85 569 113 456 89 84 621 149 472 89 82 629 157 472 90 87 628 157 471 86 77 612 147 465 92 90 595 137 459 91 90 597 132 465 95 94 593 125 468 99 97 590 123 467 98 96 580 117 463 95 93 574 114 460 96 93 573 111 462 94 93 573 112 461 98 97 620 144 476 98 100 626 150 476 98 95 620 149 471 98 97 588 134 453 102 103 566 123 443 101 102 557 116 442 92 93 561 117 444 99 99 549 111 438 101 100 532 105 427 99 97 526 102 424 102 104 511 95 416 102 102 499 93 406 101 103 555 124 431 99 100 565 130 434 98 90 542 124 418 98 90
 
Text written by user:
 
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 compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Summary of Dendrogram
LabelHeight
11.41421356237310
22.64575131106459
33.16227766016838
43.87298334620742
54
64
74.24264068711928
84.24264068711928
94.35889894354067
105.19615242270663
115.19615242270663
125.47722557505166
135.56776436283002
145.8309518948453
155.8309518948453
165.8724340432523
176.40312423743285
187
197.61577310586391
207.68114574786861
218.61122265911506
228.66025403784439
239.42154888833184
249.88292306781069
2510.1488915650922
2610.295630140987
2710.3494275236446
2810.5830052442584
2910.8627804912002
3011.0515301395582
3111.3578166916005
3212.0279001026652
3312.6192933630101
3412.6518263899012
3512.7625389739915
3613.0424280326607
3713.4707058063528
3815.3297097167559
3915.8113883008419
4018.8644753121623
4119.7321248384581
4219.8246503594377
4319.8915815812668
4420.174241001832
4520.1809286934169
4620.9537541585552
4722.0603365701190
4822.0916432976117
4928.5337689208148
5028.6759766097551
5132.3193799566315
5232.8480222080584
5333.3067897430511
5435.5308547470101
5536.7747541156037
5637.6091092831874
5739.1162439895726
5844.5263098492898
5947.4401700381808
6051.460540234431
6158.3337358943355
6266.8102652532115
6388.5843995867668
6489.2101999086836
65105.134855208510
66142.036318733724
67146.184009438260
68179.929438584653
69365.028234878113
70409.612510341345
71742.479994085638
722163.44594870274
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/12/t1194893056mh1df7f1thltf0n/1bawi1194893335.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/12/t1194893056mh1df7f1thltf0n/1bawi1194893335.ps (open in new window)


 
Parameters:
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:

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