R version 2.8.1 (2008-12-22) 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(2.653241965,2.602689685,2.4765384,2.681021529,2.747270914,2.646174797,2.701361213,2.653241965,2.681021529,2.844909384,2.734367509,2.660259537,2.862200881,2.674148649,2.667228207,2.809402695,2.815408719,2.809402695,2.827313622,2.753660712,2.797281335,2.912350665,2.827313622,2.803360381,2.90690106,2.714694744,2.753660712,2.895911938,2.821378886,2.939161922,2.944438979,2.895911938,2.879198457,3.068052935,2.839078464,2.928523524,2.944438979,2.797281335,2.827313622,2.923161581,2.960105096,2.965273066,2.867898902,2.923161581,2.895911938,3.015534901,2.895911938,2.975529566,2.990719732,2.954910279,2.879198457,2.954910279,3.091042453,3.04927304,2.970414466,3.100092289,3.039749159,3.100092289,3.157000421,3.068052935,3.19047635,3.126760536,3.010620886,3.165475048,3.148453361,2.975529566,2.890371758,2.850706502,2.821378886,2.901421594,2.803360381,2.772588722,2.912350665) > x <- c(2.740840024,2.714694744,2.459588842,2.791165108,2.815408719,2.708050201,2.701361213,2.681021529,2.727852828,2.884800713,2.797281335,2.734367509,2.884800713,2.766319109,2.63188884,2.879198457,2.884800713,2.856470206,2.815408719,2.772588722,2.809402695,2.949688335,2.879198457,2.844909384,2.923161581,2.791165108,2.714694744,2.954910279,2.87356464,2.949688335,2.890371758,2.862200881,2.879198457,3.04927304,2.844909384,2.965273066,2.985681938,2.867898902,2.785011242,2.970414466,2.990719732,2.995732274,2.850706502,2.939161922,2.923161581,3.063390922,2.923161581,2.985681938,3.034952987,2.975529566,2.87356464,2.985681938,3.100092289,3.0301337,2.884800713,3.039749159,3.054001182,3.063390922,3.135494216,3.058707073,3.173878459,3.109060959,2.90690106,3.126760536,3.104586678,2.879198457,2.797281335,2.772588722,2.797281335,2.87356464,2.809402695,2.785011242,2.90690106) > 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/rcomp/tmp/1i3io1256643443.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/rcomp/tmp/2w4bd1256643443.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/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/32c241256643443.tab") > > system("convert tmp/1i3io1256643443.ps tmp/1i3io1256643443.png") > system("convert tmp/2w4bd1256643443.ps tmp/2w4bd1256643443.png") > > > proc.time() user system elapsed 0.560 0.470 1.031