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(1.74,1.75,1.83,2.09,2.12,2.29,2.4,2.82,3.18,4,4.8,5.28,5.37,5.27,5.33,5.23,5.08,5.11,5.1,4.97,5,5.2,4.9,4.82,5.04,4.82,4.77,4.79,4.58,4.59,4.57,4.35,4.27,4.39,3.97,3.84,3.73,3.58,3.45,3.44,3.25,3.25,3.02,2.87,2.92,2.95,2.75,2.7,2.75,2.72,2.71,2.76,2.68,2.78,2.86,2.75,2.87,2.91,2.79,2.77) > x <- c(2.67,2.72,2.84,3,3.08,3.21,3.44,3.74,4.08,4.79,5.44,6.02,6.01,5.85,5.93,5.85,5.74,5.75,5.78,5.62,5.67,5.89,5.67,5.64,5.64,5.64,5.54,5.52,5.28,5.25,5.23,5.09,5,5.02,4.8,4.71,4.51,4.51,4.42,4.4,4.25,4.18,4.09,3.97,3.89,4.02,3.81,3.67,3.68,3.66,3.66,3.65,3.67,3.66,3.7,3.77,3.74,3.8,3.79,3.75) > 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/1gj0w1258123695.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/2e2t41258123695.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/3moir1258123695.tab") > system("convert tmp/1gj0w1258123695.ps tmp/1gj0w1258123695.png") > system("convert tmp/2e2t41258123695.ps tmp/2e2t41258123695.png") > > > proc.time() user system elapsed 0.552 0.317 0.636