Home » date » 2007 » Nov » 02 » attachments

Identify any pattern?

R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Fri, 02 Nov 2007 06:53: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/2007/Nov/02/8lo7g4xamg6wsbb1194011583.htm/, Retrieved Fri, 02 Nov 2007 14:53:03 +0100
 
User-defined keywords:
Q2WS5
 
Dataseries X:
» Textbox « » Textfile « » CSV «
680.2 12710.3 2468.9 668.9 12120.8 2469.2 611.4 12469.5 2417.7 640.8 12054.6 2411.1 549.8 12112.9 2361.0 541.8 9617.2 1924.1 628.6 12645.8 2486.9 686.5 13581.3 2674.9 611.8 12162.3 2296.2 588.4 10969.7 2101.5 566.9 11880.0 2322.0 563.7 11887.6 2273.8 569.9 12926.9 2501.3 635.4 12300.0 2435.2 590.8 12092.8 2273.3 634.3 12380.8 2454.7 576.1 12196.9 2328.8 351.6 9455.0 1897.0 507.5 13168.0 2608.1 586.2 13427.9 2712.3 666.4 11980.5 2322.0 693.6 11884.8 2282.6 650.6 11691.7 2241.1 654.8 12233.8 2417.2 733.5 14341.4 2829.0 648.1 13130.7 2600.6 678.1 12421.1 2321.0 816.2 14285.8 2768.5 591.0 12864.6 2457.3 563.5 11160.2 2142.7 742.5 14316.2 2764.4 694.4 14388.7 2788.9 728.6 14013.9 2679.5 749.0 13419.0 2536.5 538.9 12769.6 2682.7 568.5 13315.5 2699.6 692.8 15332.9 3097.8 580.5 14243.0 3015.2 506.9 13824.4 2878.0 612.8 14962.9 3010.9 442.9 13202.9 2612.3 523.3 12199.0 2419.3 596.7 15508.9 3096.5 533.7 14199.8 3013.0 523.1 15169.6 3397.4 559.2 14058.0 3423.1 430.7 13786.2 3298.7 538.2 14147.9 3065.7 612.4 16541.7 3918.3 428.0 13587.5 3154.4 522.4 15582.4 3334.7 531.1 15802.8 3461.6 425.9 14130.5 3018.5 410.3 12923.2 2832.0 551.0 15612.2 3301.3 555.6 16033.7 3342.8 460.2 16036.6 3464.4 288.9 14037.8 3016.6 392.3 15330.6 3201.3 400.5 15038.3 3135.3 399.0 17401.8 3549.8
 
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
148.900306747504
253.1183584083699
359.4509041142357
463.7284865660566
569.9228145886586
671.2937584925924
773.5446123111678
879.1359589567215
984.5388076566023
1085.8237166607408
1192.453555907817
1298.7982793372442
1398.8751738304413
14105.283563272373
15107.007896904855
16114.491659084843
17116.400189676229
18139.641675663666
19149.335345982043
20154.583731356181
21165.426418688189
22168.080190840781
23196.488422050766
24197.573159111615
25200.531543653361
26217.820153600093
27222.265831832065
28245.583936771117
29249.842770557805
30251.434464622494
31257.355415719196
32285.240500351424
33285.455513171492
34287.222395639605
35305.557484212574
36323.152599711931
37329.523251260261
38352.793693254287
39380.982237415903
40385.821645887075
41481.573722532157
42506.702158223564
43566.86319575048
44578.485482322435
45669.360390407725
46754.802270294448
47778.627475676573
48917.703645468916
49959.741538123675
501142.27074748485
511634.06746123320
521825.84710423956
531930.91239375647
542120.00129587073
552878.99332592833
563853.14655445715
578479.11920455279
589799.34494342883
5925153.7698001495
6042326.6068978654
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/02/8lo7g4xamg6wsbb1194011583/1i6n71194011608.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/02/8lo7g4xamg6wsbb1194011583/1i6n71194011608.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