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(12.69284735,12.6946864,12.70162827,12.6681701,12.66835592,12.65631033,12.65164269,12.64236113,12.62132305,12.61259053,12.62489811,12.71732618,12.72990728,12.72466404,12.68828581,12.65691575,12.65869166,12.65465471,12.64324312,12.62136596,12.60816206,12.60626722,12.64636099,12.70613556,12.72213354,12.69959747,12.6414816,12.59783091,12.58249678,12.58293936,12.559114,12.52987568,12.51563607,12.4874134,12.48101137,12.60083401,12.62345974,12.56721659,12.52970205,12.4928443,12.49557681,12.50016289,12.47809017,12.45114206,12.44176908,12.4041158,12.43217581,12.54413291,12.56114581,12.50978554,12.47256683,12.45138074,12.46988202,12.48333689,12.48480605,12.48095819,12.47828061,12.45358485,12.48454115,12.59085874,12.6139116,12.56801768) > x <- c(12.56147528,12.56584977,12.55335058,12.53064218,12.53507059,12.53223477,12.53214456,12.52466091,12.50673264,12.49552814,12.48745869,12.56813953,12.58171752,12.58553595,12.57136138,12.54780602,12.55198589,12.54322322,12.54400096,12.53118055,12.52531152,12.52216723,12.51102104,12.57695321,12.58013652,12.58553595,12.53719488,12.50553259,12.49072889,12.50259304,12.48437083,12.44979499,12.44253905,12.4133185,12.36892252,12.46286758,12.47224887,12.44769638,12.43178489,12.40255184,12.41756863,12.4233631,12.40917266,12.37615292,12.37617401,12.32631488,12.33199579,12.42091786,12.42252587,12.4170181,12.40941341,12.41415535,12.45201433,12.48491199,12.5000362,12.51739556,12.52074834,12.49661313,12.51353161,12.58693764,12.59771263,12.58894785) > 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/113em1256670368.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/2x9f61256670368.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/3q3qr1256670368.tab") > > system("convert tmp/113em1256670368.ps tmp/113em1256670368.png") > system("convert tmp/2x9f61256670368.ps tmp/2x9f61256670368.png") > > > proc.time() user system elapsed 0.574 0.342 1.886