R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-linux-gnu (64-bit) 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(15.29,10.35,8.65,9.71,10.15,8.85,9.51,9.64,11.32,8.83,10.54,10.37,12.9,10.37,12.43,8.2,9.34,9.7,13.36,16.37,8.01,9.9,9.69,9.21,11.7,11.92,10.38,11.16,11.09,10.3,10.9,10.04,10.12,9.58,9.18,9.2,10.55,8.92,10.91,10.14,9.56,9.62,12.34) > x <- c(5.55,5.89,9.98,13.86,10.44,8.63,14.31,11.75,6.4,10.74,10.22,13.42,8.66,10.15,8.65,11,10.6,12.67,6.9,6.3,10.83,13.6,7.49,11.25,8.48,8.87,8.49,10.76,8.76,8.78,9.26,10.1,10.74,11.78,7.75,13.89,9.56,10.74,8.72,10.2,8.65,15.7,9.33) > 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/wessaorg/rcomp/tmp/1yzk41297349565.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/wessaorg/rcomp/tmp/2d7661297349565.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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/wessaorg/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/wessaorg/rcomp/tmp/3doiu1297349566.tab") > > try(system("convert tmp/1yzk41297349565.ps tmp/1yzk41297349565.png",intern=TRUE)) character(0) > try(system("convert tmp/2d7661297349565.ps tmp/2d7661297349565.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.640 0.140 0.799