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(0.402971,0.401956,0.3958297,0.386486,0.3761124,0.3707592,0.3703574,0.392778,0.3880169,0.3892886,0.3823938,0.3845488,0.3801832,0.3740546,0.3791234,0.377082,0.3946729,0.4148004,0.4079377,0.4049159,0.3976437,0.3968244,0.4058837,0.4123823,0.4317936,0.4485919,0.4658745,0.4747486,0.5086828,0.493141,0.4906302,0.4888667,0.4857114,0.4866876,0.4799441,0.4927478,0.4790716,0.4581936,0.4505631,0.4426507,0.4510063,0.4412679,0.4432364,0.4481231,0.4641697,0.4780893,0.4880699,0.483025,0.4881398,0.4756585,0.4793208,0.4663934,0.4678423,0.4474941,0.4727388,0.469595,0.4591418,0.4642651,0.4614892,0.4613398) > x <- c(2.3381468,2.3586816,2.3577603,2.3369237,2.3513156,2.3180063,2.2906823,2.2934074,2.2239757,2.1883285,2.1500357,2.17533,2.1741503,2.1830063,2.1544368,2.1485696,2.1234318,2.1670784,2.1386138,2.142125,2.145932,2.146225,2.1529693,2.1547304,2.1377364,2.1532628,2.1594303,2.239213,2.2967403,2.3749892,2.3950658,2.3716,2.3944468,2.3978523,2.430481,2.4161594,2.4514165,2.4755876,2.455489,2.4170921,2.3716,2.3079686,2.331729,2.3675977,2.3811576,2.3796148,2.3152666,2.360525,2.3928996,2.40281,2.4006404,2.3947563,2.386407,2.3688288,2.4267408,2.4111878,2.4012602,2.399401,2.386716,2.3959944) > 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/1zovo1256746240.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/22frk1256746240.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/3wwce1256746240.tab") > > system("convert tmp/1zovo1256746240.ps tmp/1zovo1256746240.png") > system("convert tmp/22frk1256746240.ps tmp/22frk1256746240.png") > > > proc.time() user system elapsed 0.859 0.532 0.952