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(100 + ,211.3043478 + ,333.9130435 + ,187.826087 + ,254.7826087 + ,121.7391304 + ,113.9130435 + ,140.8695652 + ,142.6086957 + ,173.9130435 + ,121.7391304 + ,113.9130435 + ,115.6521739 + ,155.6521739 + ,256.5217391 + ,217.3913043 + ,230.4347826 + ,171.3043478 + ,155.6521739 + ,133.0434783 + ,140.8695652 + ,169.5652174 + ,183.4782609 + ,173.9130435 + ,176.5217391 + ,176.5217391 + ,306.9565217 + ,247.826087 + ,171.3043478 + ,140.8695652 + ,171.3043478 + ,153.0434783 + ,184.3478261 + ,236.5217391 + ,177.3913043 + ,164.3478261 + ,208.6956522 + ,211.3043478 + ,403.4782609 + ,328.6956522 + ,261.7391304 + ,254.7826087 + ,277.3913043 + ,282.6086957 + ,357.3913043 + ,284.3478261 + ,183.4782609 + ,186.0869565 + ,179.1304348 + ,175.6521739 + ,317.3913043 + ,375.6521739 + ,277.3913043 + ,313.9130435 + ,203.4782609 + ,199.1304348 + ,240.8695652 + ,238.2608696 + ,258.2608696 + ,335.6521739 + ,302.6086957 + ,373.9130435 + ,570.4347826 + ,382.6086957 + ,307.826087 + ,435.6521739 + ,306.0869565 + ,250.4347826 + ,350.4347826 + ,426.0869565 + ,477.3913043 + ,437.3913043 + ,334.7826087 + ,305.2173913 + ,571.3043478 + ,523.4782609 + ,426.9565217 + ,360.8695652 + ,267.826087 + ,254.7826087 + ,357.3913043 + ,348.6956522 + ,259.1304348 + ,290.4347826 + ,329.5652174 + ,304.3478261 + ,566.9565217 + ,409.5652174 + ,345.2173913 + ,445.2173913 + ,315.6521739 + ,270.4347826 + ,306.0869565 + ,326.9565217 + ,313.0434783 + ,300 + ,360 + ,334.7826087 + ,384.3478261 + ,531.3043478 + ,325.2173913 + ,399.1304348 + ,365.2173913 + ,216.5217391 + ,333.9130435 + ,348.6956522 + ,180.8695652 + ,292.173913) > x <- c(100 + ,108.1560276 + ,114.0150276 + ,102.1880309 + ,110.3672031 + ,96.8602511 + ,94.1944583 + ,99.51621961 + ,94.06333487 + ,97.5541476 + ,78.15062422 + ,81.2434643 + ,92.36262465 + ,96.06324371 + ,114.0523777 + ,110.6616666 + ,104.9171949 + ,90.00187193 + ,95.7008067 + ,86.02741157 + ,84.85287668 + ,100.04328 + ,80.91713823 + ,74.06539709 + ,77.30281369 + ,97.23043249 + ,90.75515676 + ,100.5614455 + ,92.01293267 + ,99.24012138 + ,105.8672755 + ,90.9920463 + ,93.30624423 + ,91.17419413 + ,77.33295039 + ,91.1277721 + ,85.01249943 + ,83.90390242 + ,104.8626302 + ,110.9039108 + ,95.43714373 + ,111.6238727 + ,108.8925403 + ,96.17511682 + ,101.9740205 + ,99.11953031 + ,86.78158147 + ,118.4195003 + ,118.7441447 + ,106.5296192 + ,134.7772694 + ,104.6778714 + ,105.2954304 + ,139.4139849 + ,103.6060491 + ,99.78182974 + ,103.4610301 + ,120.0594945 + ,96.71377168 + ,107.1308929 + ,105.3608372 + ,111.6942359 + ,132.0519998 + ,126.8037879 + ,154.4824253 + ,141.5570984 + ,109.9506882 + ,127.904198 + ,133.0888617 + ,120.0796299 + ,117.5557142 + ,143.0362309 + ,159.982927 + ,128.5991124 + ,149.7373327 + ,126.8169313 + ,140.9639674 + ,137.6691981 + ,117.9402337 + ,122.3095247 + ,127.7804207 + ,136.1677176 + ,116.2405856 + ,123.1576893 + ,116.3400234 + ,108.6119282 + ,125.8982264 + ,112.8003105 + ,107.5182447 + ,135.0955413 + ,115.5096488 + ,115.8640759 + ,104.5883906 + ,163.7213386 + ,113.4482275 + ,98.0428844 + ,116.7868521 + ,126.5330444 + ,113.0336597 + ,124.3392163 + ,109.8298759 + ,124.4434777 + ,111.5039454 + ,102.0350019 + ,116.8726598 + ,112.2073122 + ,101.1513902 + ,124.4255108) > 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/1su1o1257852764.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/2z9xz1257852764.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/33spo1257852764.tab") > > system("convert tmp/1su1o1257852764.ps tmp/1su1o1257852764.png") > system("convert tmp/2z9xz1257852764.ps tmp/2z9xz1257852764.png") > > > proc.time() user system elapsed 0.552 0.317 0.681