R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(6368.04,6955.56,12904.96,12746.41,10816.00,12078.01,9801.00,11299.69,16615.21,12343.21,10588.41,16900.00,7569.00,7656.25,13829.76,10691.56,12276.64,12678.76,10506.25,12633.76,18387.36,11046.01,16307.29,18769.00,8281.00,8190.25,14981.76,15202.89,15450.49,14400.00,13947.61,14161.00,20363.29,15276.96,16796.16,22982.56,12188.16,9840.64,17030.25,18550.44,16822.09,16384.00,14786.56,18441.64,20678.44,21756.25,18550.44,24523.56,15202.89,10920.25,19544.04,18632.25,12566.41,14042.25,8911.36,10465.29,12409.96,9840.64,7708.84,13409.64) > x <- c(12071.42,9166.15,15143.76,15225.09,14467.28,13301.01,12188.16,13107.96,17431.92,15168.39,14118.19,16466.02,12597.82,10926.52,17574.80,15011.15,17371.24,15512.70,14631.32,15030.76,21176.07,14058.84,18023.06,18686.89,14730.68,12461.26,18068.74,18947.52,19005.38,14344.85,17079.88,16455.76,21741.50,16491.70,18741.61,20721.60,18398.21,15001.35,18722.45,23421.24,20366.14,15242.37,20842.70,21359.82,21788.71,25125.42,21726.76,27241.50,23913.53,15926.44,24762.17,23762.22,15180.70,12784.82,12199.20,12898.14,14991.55,13208.90,12510.42,15886.08) > 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/1ezeq1256686365.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/263d91256686366.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/3y0cs1256686366.tab") > > system("convert tmp/1ezeq1256686365.ps tmp/1ezeq1256686365.png") > system("convert tmp/263d91256686366.ps tmp/263d91256686366.png") > > > proc.time() user system elapsed 0.537 0.313 0.663