R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-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(56.62,55.48,56.09,57.32,57.28,57.18,55.48,56.63,57.5,57.07,55.43,56.04,56.1,55.37,55.51,55.35,55.67,56.17,56.93,57.26,57.51,57.97,57.39,56.59,56.98,57.83,57.83,56.05,56.83,57.86,59.33,59.94,59.21,59.03,57.78,57.87,59.53,60.12,60.69,61.53,62.28,62.94,62.8,61.65,61.47,61.71,62.53,62.88,63.18,63.78,64.08,64.27,64.41,63.67,62.73,62.27,62.35,62.68,63.12,62.98,62.18,59.34,58.48,58.38,58.57,58.58,59) > x <- c(86.45,82.13,82.13,91,91,92,92,91,91,91,91,91,91,91,91,91,91,77,70,70,70,75.25,77,71.75,70,70,70,70,70,70,70,70,70,70,69.13,50,50,50,50,50,38.5,28,28,28,31,31,39.6,39.6,39.6,39.6,39.6,39.6,39.6,39.6,39.1,38.6,35,35,35,35,35,35,35,35,35,39.5,39.5) > ylab = 'Employment rate' > xlab = 'Tax Rate' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa, (2012), Kendall tau Rank Correlation (v1.0.11) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_kendall.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > library('Kendall') > k <- Kendall(x,y) > postscript(file="/var/wessaorg/rcomp/tmp/1ztk51423757349.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > > plot(x,y,main='Scatterplot',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2w3ww1423757349.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=8.3333333333333) > > plot(rank(x),rank(y),main='Scatterplot of Ranks',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/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/wessaorg/rcomp/tmp/3y0by1423757349.tab") > > try(system("convert tmp/1ztk51423757349.ps tmp/1ztk51423757349.png",intern=TRUE)) character(0) > try(system("convert tmp/2w3ww1423757349.ps tmp/2w3ww1423757349.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.106 0.138 1.250