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(12008.00,9169.00,8788.00,8417.00,8247.00,8197.00,8236.00,8253.00,7733.00,8366.00,8626.00,8863.00,10102.00,8463.00,9114.00,8563.00,8872.00,8301.00,8301.00,8278.00,7736.00,7973.00,8268.00,9476.00,11100.00,8962.00,9173.00,8738.00,8459.00,8078.00,8411.00,8291.00,7810.00,8616.00,8312.00,9692.00,9911.00,8915.00,9452.00,9112.00,8472.00,8230.00,8384.00,8625.00,8221.00,8649.00,8625.00,10443.00,10357.00,8586.00,8892.00,8329.00,8101.00,7922.00,8120.00,7838.00,7735.00,8406.00,8209.00,9451.00,10041.00,9411.00,10405.00,8467.00,8464.00,8102.00,7627.00,7513.00,7510.00,8291.00,8064.00,9383.00,9706.00,8579.00,9474.00,8318.00,8213.00,8059.00,9111.00,7708.00,7680.00,8014.00,8007.00,8718.00,9486.00,9113.00,9025.00,8476.00,7952.00,7759.00,7835.00,7600.00,7651.00,8319.00,8812.00,8630.00) > x <- c(4.00,5.90,7.10,10.50,15.10,16.80,15.30,18.40,16.10,11.30,7.90,5.60,3.40,4.80,6.50,8.50,15.10,15.70,18.70,19.20,12.90,14.40,6.20,3.30,4.60,7.10,7.80,9.90,13.60,17.10,17.80,18.60,14.70,10.50,8.60,4.40,2.30,2.80,8.80,10.70,13.90,19.30,19.50,20.40,15.30,7.90,8.30,4.50,3.20,5.00,6.60,11.10,12.80,16.30,17.40,18.90,15.80,11.70,6.40,2.90,4.70,2.40,7.20,10.70,13.40,18.30,18.40,16.80,16.60,14.10,6.10,3.50,1.70,2.30,4.50,9.30,14.20,17.30,23.00,16.30,18.40,14.20,9.10,5.90,7.20,6.80,8.00,14.30,14.60,17.50,17.20,17.20,14.10,10.40,6.80,4.10) > 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/1dssj1292438519.ps",horizontal=F,onefile=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/2dssj1292438519.ps",horizontal=F,onefile=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/3rk8s1292438519.tab") > > try(system("convert tmp/1dssj1292438519.ps tmp/1dssj1292438519.png",intern=TRUE)) character(0) > try(system("convert tmp/2dssj1292438519.ps tmp/2dssj1292438519.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.544 0.339 1.420