Home » date » 2007 » Nov » 27 » attachments

Stat Opdr4 Q2.3

R Software Module: rwasp_pairs.wasp (opens new window with default values)
Title produced by software: Kendall tau Correlation Matrix
Date of computation: Tue, 27 Nov 2007 03:21:58 -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/27/t1196159009om1ceokfl9my6yi.htm/, Retrieved Tue, 27 Nov 2007 11:23:31 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3804 96 5329 104 3491 75 4903 85 4151 96 5826 110 4254 102 6006 106 4717 130 6552 142 4866 127 6748 138 4001 111 5633 115 3758 108 5361 118 4780 108 6631 118 5016 122 7078 128 4296 113 6100 119 4467 111 6376 114 3891 97 5571 108 3872 124 5512 130 3867 99 5461 109 3973 118 5704 127 4640 111 6420 121 4538 121 6344 131 3836 102 5624 111 3770 102 5322 108 4374 115 6098 122 4497 123 6303 134 3945 127 5581 144 3862 117 5491 125 3608 106 5108 118 3301 88 4585 93 3882 95 5545 106 3605 105 5145 109 4305 117 5888 121 4216 128 5925 137 3971 136 5715 153 3988 128 5595 140 4317 124 6160 135 4484 119 6163 124 4247 128 5906 137 3520 104 5045 113 3686 91 5130 97 3403 99 4743 105 3990 92 5438 101 4053 117 5698 120 4548 103 6333 117 4559 117 6340 123 3922 125 5635 133 4209 94 5948 104 4517 126 6199 136 4386 105 6023 116 3221 107 4540 110 3127 87 4315 91 3777 95 5161 99 3322 63 4433 67 3899 91 5199 102 4033 90 5582 101 4463 102 5936 107 4819 104 6391 114 4246 121 5647 129 4255 107 5827 112 4760 94 6101 97 4581 96 5777 100 4309 98 5511 105 4016 75 5036 81 3601 97 4468 104 3257 81 4053 80 3823 89 4821 97 3940 85 5138 90 4534 95 6102 99 4575 97 6029 103 3953 103 5365 111 4206 99 5717 110 4649 82 6150 88 4353 90 5737 97 3835 82 5268 87 3944 94 5307 97
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Kendall tau rank correlations for all pairs of data series
pairtaup-value
tau( #Ongevallen , #Dodelijke )0.2498618371761440.00207577412524795
tau( #Ongevallen , #Slachtoffers )0.7949921752738650
tau( #Ongevallen , #Doden30dagen )0.2569390627391360.00149419758544611
tau( #Dodelijke , #Slachtoffers )0.380121562718212.80745279335193e-06
tau( #Dodelijke , #Doden30dagen )0.9083015238568860
tau( #Slachtoffers , #Doden30dagen )0.3922944036001821.24196888240391e-06
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159009om1ceokfl9my6yi/14x2t1196158917.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159009om1ceokfl9my6yi/14x2t1196158917.ps (open in new window)


 
Parameters:
 
R code (references can be found in the software module):
panel.tau <- function(x, y, digits=2, prefix='', cex.cor)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
rr <- cor.test(x, y, method='kendall')
r <- round(rr$p.value,2)
txt <- format(c(r, 0.123456789), digits=digits)[1]
txt <- paste(prefix, txt, sep='')
if(missing(cex.cor)) cex <- 0.5/strwidth(txt)
text(0.5, 0.5, txt, cex = cex)
}
panel.hist <- function(x, ...)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col='grey', ...)
}
bitmap(file='test1.png')
pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Kendall tau rank correlations for all pairs of data series',3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'pair',1,TRUE)
a<-table.element(a,'tau',1,TRUE)
a<-table.element(a,'p-value',1,TRUE)
a<-table.row.end(a)
n <- length(y[,1])
n
cor.test(y[1,],y[2,],method='kendall')
for (i in 1:(n-1))
{
for (j in (i+1):n)
{
a<-table.row.start(a)
dum <- paste('tau(',dimnames(t(x))[[2]][i])
dum <- paste(dum,',')
dum <- paste(dum,dimnames(t(x))[[2]][j])
dum <- paste(dum,')')
a<-table.element(a,dum,header=TRUE)
r <- cor.test(y[i,],y[j,],method='kendall')
a<-table.element(a,r$estimate)
a<-table.element(a,r$p.value)
a<-table.row.end(a)
}
}
a<-table.end(a)
table.save(a,file='mytable.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