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(3.861884491,3.86432807,3.864492015,3.863257308,3.860453306,3.849318732,3.844063366,3.844181192,3.845531265,3.835138386,3.840896665,3.843161358,3.848062114,3.850490024,3.851442229,3.853087325,3.851779838,3.840943954,3.834650174,3.835185604,3.840041333,3.85185285,3.855980758,3.85724753,3.854755941,3.861171308,3.865913967,3.869739954,3.86908917,3.85765146,3.84534727,3.838506216,3.853366873,3.8585208,3.864809349,3.865086762,3.871043125,3.873953266,3.871181262,3.874806751,3.874289451,3.854408916,3.840662338,3.833562198,3.850478329,3.861866435,3.865858029,3.872258448,3.872886015,3.876970667,3.873825677,3.878687726,3.872366111,3.860679016,3.848518938,3.84031302,3.86456395,3.879947833,3.893237105,3.903049256,3.912810243,3.919609086,3.930075738,3.933031449,3.933305731,3.926413182,3.910060531,3.903890717,3.922433331) > x <- c(3.109060959,3.310543013,3.310543013,3.414442608,3.56671182,3.234749174,3.310543013,3.27336401,3.478158423,3.346389145,3.346389145,3.414442608,3.5085559,3.310543013,3.152736022,3.015534901,3.109060959,3.194583132,3.194583132,3.27336401,3.380994674,3.346389145,3.109060959,2.912350665,3.234749174,3.310543013,3.152736022,2.734367509,2.965273066,3.27336401,3.414442608,3.310543013,3.310543013,3.063390922,3.310543013,3.414442608,3.538056564,3.5085559,3.594568775,3.56671182,3.621670704,3.5085559,3.56671182,3.478158423,3.346389145,3.346389145,3.446807893,3.5085559,3.5085559,3.346389145,3.478158423,3.414442608,3.346389145,3.27336401,3.310543013,3.194583132,2.965273066,3.152736022,2.912350665,2.912350665,2.517696473,2.341805806,2.00148,1,2.174751721,2.186051277,2.564949357,2.884800713,2.587764035) > 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/1q69q1256768425.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/2xs0u1256768425.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/355x51256768425.tab") > > system("convert tmp/1q69q1256768425.ps tmp/1q69q1256768425.png") > system("convert tmp/2xs0u1256768425.ps tmp/2xs0u1256768425.png") > > > proc.time() user system elapsed 0.863 0.543 0.996