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(20.72,21.45,22.09,21.53,23.35,23.57,26.42,25.21,26.44,29.34,29.40,33.05,28.38,26.01,29.31,30.36,35.75,36.15,34.21,37.91,38.70,42.12,42.16,39.80,37.36,38.35,42.60,41.25,42.16,46.94,47.43,47.06,50.18,50.13,43.23,40.04,40.37,42.21,37.00,39.74,42.68,46.29,46.97,48.73,52.37,50.05,54.04,57.78,64.72,63.41,64.36,66.03,72.14,76.60,86.97,93.48,95.59,81.89,70.55,50.38,36.25) > x <- c(127.96,127.47,126.47,125.75,125.42,125.14,125.15,125.51,125.63,126.22,126.88,127.96,128.74,129.6,131.2,132.72,134.67,135.94,136.39,136.74,137.2,137.36,138.63,141.07,143.32,147.91,152.56,151.61,156.56,157.45,158.13,159.18,159.47,159.79,161.65,162.77,163.48,166.16,163.86,162.12,149.08,145.32,141.21,134.68,133.65,139.17,138.61,144.96,157.99,167.18,174.48,182.77,190.00,189.70,188.90,198.28,201.18,204.14,221.02,221.12,220.68) > ylab = 'Olie' > xlab = 'Gas' > #'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/1zk4t1229603102.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/2sw7b1229603102.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/38vtx1229603102.tab") > > system("convert tmp/1zk4t1229603102.ps tmp/1zk4t1229603102.png") > system("convert tmp/2sw7b1229603102.ps tmp/2sw7b1229603102.png") > > > proc.time() user system elapsed 0.607 0.370 0.925