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(82140706404,80112773764,76555695969,77236747225,76799928384,76786072609,75645351369,72981022500,71363779600,70221290049,82517733081,84789286596,85439290000,83051170596,79229301529,79894414336,78506436100,78628646464,76638170896,75743846656,75269019904,73609658721,83985199204,84521607076,85439290000,77565592036,72806070276,70682071321,72379293156,69788958976,65126019204,64187742609,60544047249,55399978384,66851205136,68117346049,64853243569,62821913449,59254270084,61060881025,61772628681,60044111521,56206926400,56209297225,50874606916,51455931921,61471268356,61669278889,60993686961,60073029604,60645465169,65415735225,69864533761,72010112409,74554118116,75055725369,71518804900,73980192049,85679144100,87545566161) > x <- c(3760265041,3374215744,2983672129,2861715025,2685726976,2552068324,2405902500,2219446321,2048829696,1967543449,3009839044,3349052641,3489264900,3166650529,2791748569,2673096804,2445005809,2397571225,2201674084,2139617536,2043040000,1977669841,2821628161,3026760256,3208202881,2688111409,2303040100,2092513536,2152032100,1976780521,1729062724,1665700969,1451305216,1257482521,1969140625,2139525025,2080272100,1881390625,1613387889,1650634384,1647548100,1558117729,1349460225,1342049956,1076233636,1082870649,1687237776,1785400516,1867536225,1690525456,1629979129,1766184676,1909777401,1945339236,1998090000,1980784036,1728813241,1803700900,2566030336,2793862449) > 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/1b1hh1256778863.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/25gyw1256778863.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/3rtua1256778863.tab") > > system("convert tmp/1b1hh1256778863.ps tmp/1b1hh1256778863.png") > system("convert tmp/25gyw1256778863.ps tmp/25gyw1256778863.png") > > > proc.time() user system elapsed 0.858 0.523 0.944