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(1.335001067,1.547562509,1.458615023,1.360976553,1.386294361,1.458615023,1.568615918,1.481604541,1.458615023,1.547562509,1.547562509,1.589235205,1.609437912,1.435084525,1.458615023,1.568615918,1.568615918,1.568615918,1.435084525,1.526056303,1.568615918,1.504077397,1.481604541,1.458615023,1.360976553,1.30833282,1.386294361,1.410986974,1.30833282,1.335001067,1.335001067,1.335001067,1.193922468,1.193922468,1.193922468,1.16315081,1.223775432,1.435084525,1.589235205,1.62924054,1.704748092,1.722766598,1.85629799,1.808288771,1.960094784,2.054123734,2.066862759,2.00148,2.014903021,1.916922612,1.648658626,1.547562509,1.410986974,1.360976553,0.955511445,0.993251773,0.587786665,0,-1.203972804,0.262364264) > x <- c(5.081404365,5.003946306,4.934473933,4.905274778,4.86753445,4.844187086,4.804021045,4.762173935,4.718498871,4.727387819,5.003946306,5.056245805,5.056245805,4.990432587,4.919980926,4.882801923,4.828313737,4.812184355,4.762173935,4.736198448,4.709530201,4.718498871,4.9698133,5.010635294,5.003946306,4.8978398,4.812184355,4.753590191,4.762173935,4.709530201,4.65396035,4.624972813,4.553876892,4.532599493,4.820281566,4.86753445,4.820281566,4.744932128,4.663439094,4.65396035,4.65396035,4.615120517,4.553876892,4.532599493,4.430816799,4.465908119,4.753590191,4.787491743,4.762173935,4.691347882,4.65396035,4.672828834,4.691347882,4.691347882,4.682131227,4.672828834,4.59511985,4.634728988,4.875197323,4.919980926) > 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/freestat/rcomp/tmp/19zey1256669369.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/freestat/rcomp/tmp/2dytp1256669369.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/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/35xj91256669369.tab") > > system("convert tmp/19zey1256669369.ps tmp/19zey1256669369.png") > system("convert tmp/2dytp1256669369.ps tmp/2dytp1256669369.png") > > > proc.time() user system elapsed 0.862 0.542 0.998