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.000,0.000,0.012,0.006,0.002,0.009,0.002,0.000,0.005,0.000,0.001,0.002,0.011,0.000,0.000,0.057,0.011,0.089,0.066,0.031,0.056,0.052,0.023,0.049,0.000,0.000,0.008,0.064,0.000,0.020,0.073,0.060,0.102,0.159,0.060,0.113,0.057,0.067,0.034,0.019,0.007,0.013,0.084,0.003,0.033,0.083,0.013,0.119,0.089,0.055,0.127,0.102,0.093,0.048,0.036,0.000,0.058,0.073,0.000,0.089,0.159,0.097,0.275,0.109,0.100,0.217,0.122,0.116,0.103,0.075,0.000,0.034,0.145,0.005,0.106,0.183,0.112,0.261,0.039,0.104,0.158,0.131,0.069,0.112,0.073,0.026,0.035,0.167,0.020,0.119,0.221,0.103,0.155,0.074,0.121,0.126,0.076,0.074,0.058,0.004,0.216,0.002,0.130) > x <- c(0.029,0.000,0.000,0.077,0.058,0.029,0.058,0.000,0.010,0.000,0.020,0.029,0.029,0.029,0.010,0.096,0.068,0.109,0.120,0.027,0.096,0.028,0.028,0.068,0.028,0.000,0.028,0.068,0.000,0.028,0.205,0.164,0.136,0.014,0.055,0.109,0.082,0.041,0.068,0.055,0.000,0.000,0.123,0.028,0.575,0.082,0.014,0.096,0.109,0.109,0.096,0.028,0.164,0.164,0.014,0.000,0.096,0.082,0.055,0.055,0.152,0.122,0.218,0.079,0.120,0.166,0.100,0.082,0.094,0.104,0.017,0.042,0.151,0.006,0.090,0.164,0.085,0.216,0.025,0.131,0.115,0.120,0.016,0.100,0.096,0.012,0.019,0.156,0.000,0.101,0.212,0.121,0.188,0.090,0.172,0.169,0.099,0.079,0.066,0.021,0.244,0.008,0.128) > 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/1yb2u1229977475.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/2csm81229977475.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/3ib2l1229977475.tab") > > system("convert tmp/1yb2u1229977475.ps tmp/1yb2u1229977475.png") > system("convert tmp/2csm81229977475.ps tmp/2csm81229977475.png") > > > proc.time() user system elapsed 0.546 0.341 0.644