R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(100.00,106.73,104.81,96.15,88.46,88.46,91.35,92.31,91.35,87.50,85.58,86.54,97.12,99.04,98.08,92.31,88.46,89.42,90.38,90.38,88.46,86.54,86.54,86.54,94.23,96.15,94.23,89.42,86.54,86.54,87.50,87.50,87.50,88.46,84.62,79.81,80.77,77.88,74.04,75.96,75.96,76.92,75.96,73.08,68.27,65.38,62.50,66.35,78.85,83.65,79.81,75.96,72.12,75.00,79.81,80.77,78.85,74.04,69.23,70.19) > x <- c(100.00,105.26,106.58,101.32,98.68,100.00,102.63,102.63,102.63,98.68,98.68,93.42,98.68,98.68,100.00,101.32,101.32,103.95,106.58,107.89,107.89,107.89,103.95,96.05,90.79,86.84,88.16,90.79,92.11,93.42,94.74,93.42,90.79,92.11,89.47,84.21,88.16,86.84,84.21,82.89,81.58,85.53,89.47,89.47,84.21,80.26,76.32,80.26,94.74,96.05,90.79,80.26,76.32,81.58,93.42,101.32,103.95,101.32,97.37,98.68) > 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/rcomp/tmp/1cdb31259023124.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/rcomp/tmp/227gr1259023124.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/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/rcomp/tmp/30lyk1259023124.tab") > > system("convert tmp/1cdb31259023124.ps tmp/1cdb31259023124.png") > system("convert tmp/227gr1259023124.ps tmp/227gr1259023124.png") > > > proc.time() user system elapsed 0.546 0.314 0.664