R version 2.8.0 (2008-10-20) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > y <- c(0.008,0.005,0.000,0.000,0.000,0.001,0.000,0.000,0.000,0.012,0.003,0.000,0.000,0.000,0.000,0.104,0.054,0.018,0.035,0.009,0.052,0.047,0.010,0.014,0.083,0.090,0.003,0.064,0.044,0.033,0.186,0.137,0.037,0.080,0.053,0.148,0.151,0.021,0.075,0.253,0.192,0.010,0.112,0.259,0.183,0.360,0.213,0.064,0.177,0.118,0.311,0.223,0.088,0.246,0.392,0.390,0.000,0.213,0.475,0.434,0.362,0.269,0.140,0.132,0.079,0.423,0.298,0.255,0.200,0.458,0.573,0.019,0.301,0.384,0.312,0.522,0.476,0.250,0.106,0.014,0.703,0.270,0.360,0.250,0.854,0.889,0.015,0.497,0.694,0.675,0.666,0.525,0.404,0.710,0.000,0.790,0.732,1.308,1.400,0.013,0.797,1.275,1.047) > x <- c(0.000,0.049,0.000,0.010,0.049,0.048,0.019,0.010,0.019,0.000,0.010,0.048,0.000,0.019,0.019,0.068,0.000,0.000,0.010,0.039,0.000,0.058,0.000,0.029,0.039,0.058,0.055,0.041,0.041,0.082,0.027,0.055,0.000,0.178,0.041,0.014,0.082,0.028,0.000,0.082,0.041,0.028,0.041,0.000,0.069,0.014,0.000,0.014,0.041,0.027,0.014,0.000,0.000,0.028,0.028,0.028,0.028,0.014,0.178,0.014,0.014,0.014,0.027,0.129,0.076,0.255,0.284,0.196,0.141,0.347,0.575,0.001,0.200,0.410,0.296,0.576,0.475,0.301,0.114,0.046,0.788,0.284,0.366,0.346,0.921,0.899,0.018,0.669,0.580,0.497,0.849,0.572,0.498,0.852,0.005,1.224,1.124,1.307,1.471,0.032,0.923,1.520,1.141) > ylab = 'Y' > xlab = 'X' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > library('Kendall') > k <- Kendall(x,y) > postscript(file="/var/www/html/rcomp/tmp/1btn41229977378.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > > plot(x,y,main='Scatterplot',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2h3c01229977378.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > > plot(rank(x),rank(y),main='Scatterplot of Ranks',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Kendall tau Rank Correlation',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Kendall tau',header=TRUE) > a<-table.element(a,k$tau) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'2-sided p-value',header=TRUE) > a<-table.element(a,k$sl) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Score',header=TRUE) > a<-table.element(a,k$S) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Var(Score)',header=TRUE) > a<-table.element(a,k$varS) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Denominator',header=TRUE) > a<-table.element(a,k$D) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/35n8f1229977378.tab") > > system("convert tmp/1btn41229977378.ps tmp/1btn41229977378.png") > system("convert tmp/2h3c01229977378.ps tmp/2h3c01229977378.png") > > > proc.time() user system elapsed 0.564 0.328 0.685