Home » date » 2008 » Nov » 11 »

Q2

*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: Tue, 11 Nov 2008 12:41:35 -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/11/t1226432582h0f13jl8hx5cler.htm/, Retrieved Tue, 11 Nov 2008 19:43:02 +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/11/t1226432582h0f13jl8hx5cler.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 «
0.95 13.92 15.22 1.1608 0.98 13.22 14.28 1.1208 1.23 13.31 14.61 1.0883 1.17 12.91 14.19 1.0704 0.84 13.19 14.02 1.0628 0.74 12.92 14.22 1.0378 0.65 13.43 14.80 1.0353 0.91 13.72 15.05 1.0604 1.19 13.97 15.24 1.0501 1.30 14.91 15.85 1.0706 1.53 14.46 15.43 1.0338 1.94 14.12 15.41 1.011 1.79 14.23 15.53 1.0137 1.95 15.04 15.95 0.9834 2.26 14.80 15.72 0.9643 2.04 14.49 15.68 0.947 2.16 15.14 16.06 0.906 2.75 14.34 15.27 0.9492 2.79 15.12 16.01 0.9397 2.88 15.14 15.44 0.9041 3.36 14.34 15.47 0.8721 2.97 14.36 15.49 0.8552 3.10 14.91 15.38 0.8564 2.49 15.56 16.62 0.8973 2.20 16.50 17.25 0.9383 2.25 15.57 16.37 0.9217 2.09 15.14 16.14 0.9095 2.79 15.19 15.76 0.892 3.14 15.07 15.54 0.8742 2.93 14.48 15.46 0.8532 2.65 14.27 15.26 0.8607 2.67 14.72 16.02 0.9005 2.26 14.65 15.67 0.9111 2.35 14.38 15.67 0.9059 2.13 13.95 15.48 0.8883 2.18 14.85 16.07 0.8924 2.90 14.87 16.65 0.8833 2.63 14.83 16.18 0.87 2.67 15.03 16.55 0.8758 1.81 15.47 16.58 0.8858 1.33 16.21 17.73 0.917 0.88 16.55 17.94 0.9554 1.28 17.04 18.66 0.9922 1.26 17.22 18.73 0.9778 1.26 17.47 19.07 0.9808 1.29 17.75 19.48 0.9811 1.10 17.84 19.52 1.0014 1.37 18.47 19.60 1.0183 1.21 18.38 20.32 1.0622 1.74 18.55 19.84 1.0773 1.76 18.39 19.81 1.0807 1.48 18.88 20.64 1.0848 1.04 20.21 22.12 1.1582 1.62 19.67 21.50 1.1663 1.49 20.09 21.77 1.1372 1.79 18.78 20.29 1.1139 1.8 19.74 21.76 1.1222 1.58 20.64 22.35 1.1692 1.86 20.34 22.15 1.1702 1.74 21.75 23.83 1.2286 1.59 22.10 24.46 1.2613 1.26 22.81 25.13 1.2646 1.13 22.91 24.36 1.2262 1.92 22.46 24.45 1.1985 2.61 21.78 23.66 1.2007 2.26 25.05 25.97 1.2138 2.41 23.70 25.20 1.2266 2.26 23.02 24.41 1.2176 2.03 24.34 25.32 1.2218 2.86 24.15 26.36 1.249 2.55 25.85 28.03 1.2991 2.27 26.42 28.95 1.3408 2.26 26.54 27.25 1.3119 2.57 26.36 27.47 1.3014 3.07 26.99 28.75 1.3201 2.76 27.52 29.24 1.2938 2.51 26.63 28.03 1.2694 2.87 26.26 27.34 1.2165 3.14 24.86 26.47 1.2037 3.11 26.84 28.30 1.2292 3.16 26.57 27.90 1.2256 2.47 24.67 26.69 1.2015 2.57 27.24 28.31 1.1786 2.89 27.77 28.84 1.1856 2.63 27.61 28.56 1.2103 2.38 27.27 28.25 1.1938 1.69 28.46 28.93 1.202 1.96 26.97 28.22 1.2271 2.19 29.95 31.77 1.277 1.87 29.88 31.64 1.265 1.6 29.67 30.60 1.2684 1.63 31.19 32.34 1.2811 1.22 30.24 31.51 1.2727 1.21 30.03 31.39 1.2611 1.49 31.02 32.19 1.2881 1.64 30.45 33.11 1.3213 1.66 31.70 33.99 1.2999 1.77 32.10 34.30 1.3074 1.82 32.32 34.53 1.3242 1.78 32.18 33.67 1.3516 1.28 33.43 34.72 1.3511 1.29 33.07 34.91 1.3419 1.37 35.32 36.24 1.3716 1.12 35.17 37.47 1.3622 1.51 35.29 36.94 1.3896 2.24 37.89 38.55 1.4227 2.94 38.32 39.88 1.4684 3.09 37.07 37.78 1.457 3.46 39.77 40.09 1.4718 3.64 39.20 40.17 1.4748 4.39 40.46 40.67 1.5527 4.15 44.95 44.82 1.5751 5.21 41.69 40.89 1.5557 5.80 41.88 41.47 1.5553 5.91 45.86 44.67 1.577
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Summary of Dendrogram
LabelHeight
10.106359061673185
20.130015383705161
30.151103441390327
40.164047432165213
50.166823979091737
60.194698125311981
70.20057479901523
80.202066919608331
90.214969974647624
100.221375902030912
110.230470909227172
120.242352140489823
130.263960773600929
140.266550182892457
150.269730402439176
160.297584021748480
170.302430157226425
180.321509624765963
190.322617792441771
200.326871243764269
210.331646212099580
220.333947419693491
230.347556268825639
240.352289667745166
250.352624446117962
260.361754435632208
270.379893993398211
280.398566820818928
290.407289381153006
300.414982035755767
310.427641318133964
320.439867356465921
330.456509583689107
340.462435323574999
350.479006064679771
360.484626464403255
370.492487400854072
380.51940242797056
390.54748287836312
400.549651531785766
410.591500540997217
420.603054359075532
430.603082913039327
440.61284294108708
450.618978553660433
460.624266769898895
470.658144543394534
480.664487399195191
490.667022068600433
500.669440632169874
510.674934145457615
520.727946999183924
530.730243349936725
540.730345698967277
550.74675089846669
560.753938352917532
570.75851835060794
580.783727763360603
590.788209718285686
600.848881711429808
610.886864378884209
620.887399802794659
630.935656853372118
640.975563492224267
651.03362387951607
661.09398098423581
671.09607656851168
681.13832573561032
691.16923159514141
701.24662930726834
711.27195591963656
721.31308665225943
731.35239055059429
741.36169179033375
751.4103107778075
761.42933334813494
771.45098935865143
781.48278438317301
791.56408277757764
801.56709869387710
811.57032965713959
821.59706817663672
831.60959973843666
841.66455517817392
851.67241035176915
861.81412981524401
871.87081099830136
881.98700870909012
892.15015381337444
902.46048985054225
912.46405050991360
922.4849740758858
932.62960882876486
943.05979310759203
953.10992522974607
963.82162364058846
974.69421170334864
984.78574256580058
995.29631894115553
1005.59275256541108
1016.62690103042577
1029.27136620920313
10310.035517504093
10412.0429495234857
10512.3153905114848
10619.1206115664269
10721.5471376838011
10821.9887629586038
10925.3853969310361
11047.8250361975686
111101.429906185177
112110.269511702147
113237.876729330625
114790.268378518266
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226432582h0f13jl8hx5cler/17urw1226432489.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226432582h0f13jl8hx5cler/17urw1226432489.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226432582h0f13jl8hx5cler/28ng81226432489.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/11/t1226432582h0f13jl8hx5cler/28ng81226432489.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