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(97.9,96.6,96.2,95.8,96,96.2,96.5,95.4,96.2,96.8,97,97.1,96.6,95.8,96.2,96,95.9,95.8,96,96.2,96.8,96.9,97.2,98.9,98.9,98.8,99,99.6,99.9,100.1,99.9,100.5,100.7,101.3,101.3,101.7,103,104.7,104.5,104.6,104.2,104.5,104.8,104.7,104.6,104.5,104.7,104.8,106.2,105.6,104.5,104.2,104.1,103.3,103.8,103.3,103.7,103.5,103.7,103.4,102.8) > x <- c(103.5,103.2,103.1,102.9,102.9,102.9,103.2,103,103.7,104.2,104.7,104.8,104.9,104.8,104.6,104.6,105.2,105.2,105.4,106.1,107.6,107.9,107.9,108.8,109.6,109.5,109.4,109.9,110.7,110,110.4,110.7,110.9,111.2,111.9,112.7,114.1,114.3,114.6,115,115.6,115.6,116.2,116,116.2,116.3,116.1,116.6,116.5,115.7,114.8,114.3,115.2,115.2,114.7,113.8,114.2,114.2,114.1,113.8,113.9) > 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/1ypo11257942185.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/26ggg1257942185.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/3pkuf1257942185.tab") > > system("convert tmp/1ypo11257942185.ps tmp/1ypo11257942185.png") > system("convert tmp/26ggg1257942185.ps tmp/26ggg1257942185.png") > > > proc.time() user system elapsed 0.832 0.507 0.970