Home » date » 2008 » Nov » 05 »

Part 2 Q3

*Unverified author*
R Software Module: rwasp_hierarchicalclustering.wasp (opens new window with default values)
Title produced by software: Hierarchical Clustering
Date of computation: Wed, 05 Nov 2008 12:50:04 -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/05/t122591488221k3onjbw3yhrd8.htm/, Retrieved Wed, 05 Nov 2008 19:54:45 +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/05/t122591488221k3onjbw3yhrd8.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:
Van Dooren Leen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100,00 100,00 100,00 100,00 100,00 100,39 100,37 100,35 100,33 100,31 100,15 100,26 100,38 100,50 100,61 100,21 100,37 100,52 100,68 100,84 100,03 100,18 100,34 100,49 100,64 99,58 99,78 99,97 100,17 100,36 99,40 99,64 99,88 100,13 100,37 99,77 100,01 100,26 100,50 100,75 100,41 100,67 100,93 101,19 101,45 100,12 100,50 100,88 101,25 101,63 99,83 100,28 100,73 101,18 101,63 99,73 100,24 100,74 101,25 101,75 98,74 99,49 100,25 101,00 101,76 98,44 99,36 100,29 101,22 102,14 98,79 99,68 100,57 101,46 102,35 99,60 100,42 101,24 102,05 102,87 99,82 100,75 101,69 102,62 103,55 99,85 100,87 101,89 102,90 103,92 100,01 101,04 102,07 103,10 104,13 100,28 101,36 102,43 103,51 104,58 100,63 101,57 102,51 103,45 104,39 101,14 101,93 102,71 103,50 104,29 101,51 102,37 103,22 104,08 104,93 102,41 103,10 103,79 104,48 105,17 102,46 103,22 103,99 104,75 105,52 102,09 102,96 103,83 104,70 105,57 101,99 102,77 103,55 104,33 105,11 101,52 102,38 103,24 104,11 104,97 102,44 103,10 103,77 104,43 105,09 103,42 103,90 104,37 104,85 105,33 103,63 104,12 104,61 105,11 105,60 103,28 103,75 104,21 104,68 105,14 103,98 104,37 104,77 105,16 105,56 103,56 103,94 104,33 104,71 105,09 103,42 103,78 104,14 104,51 104,87 103,92 104,15 104,37 104,59 104,81 103,81 104,01 104,20 104,40 104,60 103,09 103,33 103,58 103,83 104,07 102,60 103,05 103,51 103,96 104,41 102,77 103,08 103,39 103,71 104,02 102,60 102,86 103,11 103,37 103,62 102,88 103,08 103,28 103,48 103,68 102,17 102,50 102,83 103,15 103,48 101,85 102,20 102,56 102,91 103,27 101,66 102,14 102,62 103,10 103,58 101,91 102,28 102,66 103,03 103,41 102,13 102,43 102,72 103,02 103,31 102,71 102,82 102,92 103,02 103,13 103,17 103,22 103,26 103,31 103,36 102,89 102,95 103,02 103,08 103,14 102,94 103,14 103,33 103,53 103,73 103,33 103,45 103,57 103,68 103,80 103,75 103,68 103,61 103,54 103,46 104,11 103,98 103,85 103,72 103,60 104,77 104,49 104,22 103,94 103,67 104,62 104,39 104,15 103,92 103,68 105,00 104,76 104,52 104,28 104,04 105,74 105,51 105,27 105,03 104,79 105,94 105,77 105,60 105,43 105,26 106,37 106,18 105,99 105,80 105,62 106,65 106,44 106,23 106,03 105,82 107,08 106,74 106,40 106,05 105,71 106,77 106,51 106,25 106,00 105,74 107,21 106,97 106,74 106,50 106,26 107,34 107,15 106,96 106,78 106,59 107,12 106,93 106,74 106,55 106,36 106,86 106,73 106,59 106,46 106,33 106,92 106,78 106,65 106,51 106,37 106,95 106,75 106,56 106,36 106,17 107,23 106,96 106,69 106,42 106,16 106,94 106,80 106,66 106,51 106,37 106,62 106,51 106,40 106,29 106,18 105,94 105,97 105,99 106,01 106,03 105,91 105,95 105,99 106,03 106,08 106,52 106,45 106,38 106,31 106,24 106,85 106,63 106,41 106,19 105,97 107,22 106,99 106,75 106,52 106,28 107,28 107,09 106,90 106,71 106,52 107,86 107,57 107,29 107,00 106,72 107,68 107,46 107,24 107,02 106,80 108,07 107,82 107,56 107,31 107,06 107,87 107,66 107,45 107,23 107,02 107,65 107,50 107,35 107,19 107,04 108,16 107,89 107,63 107,36 107,09 108,60 108,24 107,88 107,51 107,15 108,92 108,57 108,21 107,86 107,50 109,66 109,22 108,78 108,34 107,90 109,87 109,40 108,94 108,48 108,02 109,54 109,10 108,66 108,22 107,78 109,06 108,72 108,38 108,04 107,70
 
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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Summary of Dendrogram
LabelHeight
10.0299999999999917
20.0374165738677358
30.0556776436282904
40.0648074069840745
50.100995049383620
60.121243556529820
70.134164078649990
80.143527000944077
90.145945195193266
100.152970585407785
110.163300979821645
120.164316767251545
130.176068168616588
140.183468083190345
150.194679223339306
160.231948270094860
170.232379000772445
180.234103949421772
190.248596057893118
200.250998007960231
210.253771550808995
220.268328157299979
230.293257565972305
240.316227766016834
250.32929890875376
260.356651090002537
270.375233260785878
280.378681924575238
290.389230009120564
300.390256326021763
310.409267638593615
320.4135214625627
330.430346953964598
340.46100232915938
350.461194102304
360.463357313528128
370.48487111689602
380.508723893679078
390.547585436975212
400.548908006864532
410.555728689588056
420.573759531511236
430.579454755524286
440.5884185316805
450.589913722268332
460.594868748143212
470.685127189444694
480.770384067202799
490.772916554357583
500.776931204703164
510.787010512536164
520.799346901101809
530.816828616579093
540.871059575723716
550.89520203285896
560.90609935637555
570.94001867100631
580.961468904871025
590.984369290194267
601.01225549530763
611.02808640647760
621.03029301129982
631.08599465229288
641.28985922882375
651.37608026260372
661.44950354164891
671.88053848723569
682.01187015093102
692.09543557282688
702.22055097151029
712.42317860065757
722.46738313497844
732.47612233218159
742.51610705543429
753.01082863237282
764.00420962811647
774.33399374944441
784.75065421973945
796.83522687067898
808.08107479694255
818.17049499412734
829.00252795970705
8311.1322070511096
8412.9060730880405
8520.6236375216549
8629.9377708011934
8733.6455573326673
88105.896280145051
89284.448889595672
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/05/t122591488221k3onjbw3yhrd8/14nzg1225914601.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/05/t122591488221k3onjbw3yhrd8/14nzg1225914601.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/05/t122591488221k3onjbw3yhrd8/2jaq61225914601.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/05/t122591488221k3onjbw3yhrd8/2jaq61225914601.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