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(101.2,101.1,100.7,100.1,99.9,99.7,99.5,99.2,99,99,99.3,99.5,99.7,100,100.4,100.6,100.7,100.7,100.6,100.5,100.6,100.5,100.4,100.3,100.4,100.4,100.4,100.4,100.4,100.5,100.6,100.6,100.5,100.5,100.7,101.1,101.5,101.9,102.1,102.1,102.1,102.4,102.8,103.1,103.1,102.9,102.4,101.9,101.3,100.7,100.6,101,101.5,101.9,102.1,102.3,102.5,102.9,103.6,104.3) > x <- c(104.29,104.56,104.79,105.08,105.21,105.43,105.69,105.74,106.2,106.04,106.45,106.4,106.48,106.83,107.14,107.94,108.46,108.81,108.92,108.99,109.16,109.22,109.43,109.23,109.93,110.09,110.33,110.11,110.35,110.09,110.44,110.39,110.62,110.43,110.46,110.55,110.94,111.56,111.82,111.73,111.57,111.85,112.06,112.2,112.47,112.15,112.36,112.32,112.67,113.02,113.05,113.5,113.67,113.65,114,114.03,114.08,114.49,114.48,114.25) > 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/1shvy1258016965.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/2sik61258016965.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/3rt2s1258016965.tab") > > system("convert tmp/1shvy1258016965.ps tmp/1shvy1258016965.png") > system("convert tmp/2sik61258016965.ps tmp/2sik61258016965.png") > > > proc.time() user system elapsed 0.863 0.535 0.959