Home » date » 2008 » Nov » 09 »

vraag 2

*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 14:30:22 -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/t1226266261h33owysb43r5zfu.htm/, Retrieved Sun, 09 Nov 2008 21:31:04 +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/t1226266261h33owysb43r5zfu.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 «
2293 4348 440427 1.90 2045 3603 386715 1.76 1532 2700 291787 1.76 1333 2640 278253 1.98 1583 2916 300903 1.84 1712 3180 327695 1.86 2641 4151 471590 1.57 2267 4023 442850 1.77 2126 3431 387181 1.61 2231 3874 420099 1.74 1517 2617 289850 1.73 2010 3580 392468 1.78 2628 5267 549174 2.00 2115 3832 415506 1.81 1829 3441 356662 1.88 1636 3228 338612 1.97 1787 3397 359886 1.90 2122 3971 410547 1.87 2620 4625 495272 1.77 2555 4486 474588 1.76 2337 4131 442893 1.77 2524 4686 477793 1.86 1801 3174 336263 1.76 2417 4282 449838 1.77 2389 4209 451406 1.76 2266 4158 439690 1.83 2135 3936 401513 1.84 1755 3149 326472 1.79 1907 3623 369464 1.90 2178 4230 429525 1.94 2345 4443 464658 1.89 2674 4810 510691 1.80 2765 4853 513151 1.76 2786 5050 538609 1.81 2004 3553 398949 1.77 2589 4674 511635 1.81 2739 5412 554318 1.98 2700 5131 515879 1.90 2459 4856 488122 1.97 1965 3980 401716 2.03 2152 4431 453358 2.06 2379 4606 464884 1.94 2930 5352 571868 1.83 2691 4640 497485 1.72 2852 5170 538214 1.81 2752 4824 502396 1.75 1787 3280 349385 1.84 2580 4706 502427 1.82 2604 4909 514106 1.89 2532 5092 527537 2.01 2265 4911 495918 2.17 1745 3824 376847 2.19 1914 4214 420552 2.20 2148 4449 442679 2.07 2466 4486 478422 1.82 2498 4777 483796 1.91 2512 5132 529032 2.04 2458 4522 482991 1.84 1825 3295 354287 1.81 2267 4281 459146 1.89 2364 4590 473744 1.94 2328 4623 478642 1.99 2034 4075 426208 2.00 1587 3398 348908 2.14 1633 3029 321310 1.85
 
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'George Udny Yule' @ 72.249.76.132


Summary of Dendrogram
LabelHeight
1135.694509837355
2210.876752867641
3268.412063998621
4280.715162575875
5293.620552584454
6418.068176258371
7427.365288716807
8503.290197103023
9530.521526424706
10649.074889053644
11662.574525317719
12761.576000737943
13790.65615788407
14845.36974449054
15871.569292942334
16957.526500990965
17970.093818607252
181224.14827733408
191495.66874704929
201536.64342073885
211569.9480883456
221646.33113391565
231789.42141489924
241938.83547545943
251978.82720064183
262215.66381405212
272258.92231581788
282355.40698056620
292379.48671038525
302595.75538233093
313211.38381542911
323224.57377034547
333323.74036344598
344326.89704102143
354352.11466100102
364594.65657094195
374902.17023377402
384914.82431027804
394960.95263065472
405147.24023146385
415164.83571893628
425290.37106722203
435514.93173121844
445658.980212017
455791.08530665021
466481.05901840895
476726.52251441263
486947.10198572038
497155.5420507464
507387.5120361391
518265.18892708449
528568.46433207258
538832.4000716453
549118.70127849356
559188.37134931431
569581.4174316747
579875.03241437212
5810165.6358882315
5910297.5199455451
6010568.4094373799
6111598.4824034224
6211659.2756641268
6317551.1418723256
6420407.3741083977


Summary of Cut Dendrogram
LabelHeight
17387.5120361391
210087.9566196046
310131.3544033473
411941.4290520212
511948.5862065416
612278.7855240430
712566.9727780888
813337.1631459767
914393.6754347247
1015194.6284379464
1115508.0865118550
1215641.2373935120
1316388.9532094762
1419681.3886430517
1519846.3474958355
1620123.5136724579
1721303.0980922728
1821640.6804108885
1924257.1344029852
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226266261h33owysb43r5zfu/1wfyv1226266215.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/09/t1226266261h33owysb43r5zfu/1wfyv1226266215.ps (open in new window)


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


 
Parameters (Session):
par1 = 98 ; par2 = 0.8571 ; par3 = 0.69 ; par4 = 0.05 ;
 
Parameters (R input):
par1 = single ; par2 = 20 ; par3 = FALSE ; par4 = TRUE ;
 
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