Home » date » 2008 » Nov » 10 »

Q2 opdracht 6

*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: Mon, 10 Nov 2008 09:56:31 -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/10/t122633629397nh3av3zmgucnh.htm/, Retrieved Mon, 10 Nov 2008 16:58:15 +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/10/t122633629397nh3av3zmgucnh.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 «
82.7 97.4 74.8 89.3 88.9 97 93.1 87.5 105.9 105.4 103.9 106.7 100.8 102.7 83.9 102.5 94 98.1 77.7 109.2 105 104.5 141.5 123.7 58.5 87.4 58.9 83.1 87.6 89.9 75.3 97 113.1 109.8 108.4 119.1 112.5 111.7 91 125.1 89.6 98.6 84.6 113.6 74.5 96.9 179.8 122.4 82.7 95.1 85.6 92.8 90.1 97 76.4 97.2 109.4 112.7 109.7 115.6 96 102.9 99.1 111.3 89.2 97.4 86.7 114.6 109.1 111.4 111.4 137.5 49.1 87.4 78.4 83.7 92.9 96.8 76.7 106 107.7 114.1 114.2 123.4 103.5 110.3 99.7 126.5 91.1 103.9 94.2 120 79.8 101.6 173.5 141.6 71.9 94.6 83.1 90.5 82.9 95.9 88.9 96.5 90.1 104.7 132 113.5 100.7 102.8 122.1 120.1 90.7 98.1 105.1 123.9 108.8 113.9 133.7 144.4 44.1 80.9 63.6 90.8 93.6 95.7 112.7 114.2 107.4 113.2 120.5 138.1 96.5 105.9 112 135 93.6 108.8 126.2 131.3 76.5 102.3 209.2 144.6 76.7 99 91 101.7 84 100.7 116.7 108.7 103.3 115.5 137.6 135.3 88.5 100.7 108.1 124.3 99 109.9 136.6 138.3 105.9 114.6 152.3 158.2 44.7 85.4 114.3 93.5 94 100.5 120.7 124.8 107.1 114.8 131.8 154.4 104.8 116.5 129.4 152.8 102.5 112.9 187.5 148.9 77.7 102 189.5 170.3 85.2 106 109.2 124.8 91.3 105.3 158.1 134.4 106.5 118.8 176.2 154 92.4 106.1 125.5 147.9 97.5 109.3 155 168.1 107 117.2 170.3 175.7 51.1 92.5 99.4 116.7 98.6 104.2 139.2 140.8 102.2 112.5 169.6 164.2 114.3 122.4 136.1 173.8 99.4 113.3 168.2 167.8 72.5 100 318.6 166.6 92.3 110.7 154.1 135.1 99.4 112.8 161.4 158.1 85.9 109.8 183.4 151.8 109.4 117.3 167.2 168.7 97.6 109.1 205.3 166.9
 
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 time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Summary of Dendrogram
LabelHeight
12.64764045897475
23.76031913539263
34.06201920231798
44.55631429995781
54.83735464897915
65.02593274925164
76.00333240792145
86.75721836261046
96.83008052661168
107.60986202240224
118.02371485036701
128.43033685624696
138.61568337394081
149.44986772394195
159.62968844559864
1610.4665393942959
1710.6244324499563
1810.7743875118316
1911.1673631623584
2011.2287935307354
2111.3865671059767
2211.5419345459195
2312.6732000694379
2412.7831920896152
2513.4583320545332
2613.5094932929121
2713.9941321283943
2814.2811063997157
2914.3006992836015
3014.7719152170963
3114.9612722382725
3215.4839934949911
3316.4342971069022
3416.8513415330612
3517.4029902792645
3617.4451579002465
3717.5023923477295
3817.5071414000116
3917.6381247677795
4018.1931305717295
4118.5781025043344
4218.9720472645744
4319.4668801295032
4420.0025510458627
4521.1129118015186
4622.0920304300215
4723.4760445557226
4825.6689086521344
4925.6872900562846
5026.2997662671983
5126.6011277956405
5227.8297771764680
5327.8360029852678
5429.1825290199462
5532.0452854085598
5637.3885141467009
5737.6613750476367
5839.2017541356928
5945.5723734882986
6046.1172623401261
6149.4883217452201
6260.346694615647
6386.1620279690037
64202.267450012703


Summary of Cut Dendrogram
LabelHeight
131.7032420354063
233.787301978702
336.0335423298835
441.9961557520396
543.680024305624
646.3369891003818
757.2949505708752
883.990266865065
9201.873046333383
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t122633629397nh3av3zmgucnh/1lwku1226336189.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t122633629397nh3av3zmgucnh/1lwku1226336189.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t122633629397nh3av3zmgucnh/27drv1226336189.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/10/t122633629397nh3av3zmgucnh/27drv1226336189.ps (open in new window)


 
Parameters (Session):
par1 = median ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
 
Parameters (R input):
par1 = average ; par2 = 10 ; 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