R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) 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(1.020755053 + ,0.878749609 + ,0.763271093 + ,0.925268710 + ,0.871603072 + ,0.786112487 + ,0.863788486 + ,1.223968029 + ,1.081336379 + ,1.001468420 + ,0.719638884 + ,0.804426491 + ,0.930492163 + ,0.802353501 + ,1.131310105 + ,1.338320971 + ,0.820491612 + ,1.041321158 + ,1.244273901 + ,1.200364351 + ,0.720045269 + ,1.009651542 + ,1.190373063 + ,0.877904058 + ,0.967951477 + ,1.046213269 + ,0.799735188 + ,0.799804389 + ,1.049595356 + ,0.973428547 + ,0.802961588 + ,1.010691285 + ,1.354607701 + ,1.269901991 + ,0.842400730 + ,0.796788990 + ,0.854205728 + ,0.768598735 + ,0.972982943 + ,0.899539173 + ,0.959054172 + ,1.229176641 + ,1.084162951 + ,0.795921445 + ,0.838653684 + ,0.746347785 + ,0.907252133 + ,0.778632879 + ,0.995015204 + ,1.163843036 + ,1.097133160 + ,0.749207914 + ,0.881111741 + ,0.865910351 + ,0.835723639 + ,1.120844364 + ,1.032676101 + ,0.757944345 + ,0.726569295 + ,0.745569050 + ,0.844470620 + ,1.077607036 + ,0.901013315 + ,0.741865754 + ,1.137732983 + ,1.067372680 + ,0.983935297 + ,0.780349314 + ,0.718581438 + ,0.847802997 + ,0.754228413 + ,0.734500945 + ,0.711610436 + ,0.771162927 + ,0.788158238 + ,0.795412004 + ,0.732982278 + ,0.703657389 + ,0.749514639 + ,0.883377373 + ,0.936947048 + ,1.262306333 + ,1.527463317 + ,0.996714950 + ,0.700299621 + ,0.766095161 + ,1.457944036 + ,1.789564967 + ,1.695903659 + ,1.435536027 + ,0.770007074 + ,0.837789357 + ,1.042105556 + ,0.956986010 + ,1.058955789 + ,1.206052899 + ,1.859192967 + ,2.137356043 + ,1.931538701 + ,1.197405696 + ,1.234362960 + ,1.516107678 + ,1.665578961 + ,1.686441660 + ,1.483497977 + ,1.145743847 + ,0.732866943 + ,0.836962581 + ,1.076655030 + ,1.286911964 + ,1.331240058 + ,1.004528522 + ,0.743578374 + ,1.081360102 + ,0.960629106 + ,0.913388014 + ,1.276514053 + ,1.099963307 + ,0.866453469 + ,0.816219449 + ,0.837563872 + ,0.772175908 + ,0.880835474 + ,0.833756447 + ,1.341048360 + ,1.036515594 + ,0.790548682 + ,0.721904874 + ,1.045284152 + ,0.972840607 + ,0.747869015 + ,0.753163755 + ,0.859532416 + ,0.893832266 + ,0.718292594 + ,0.753662050 + ,0.840719879 + ,0.870154083 + ,0.739348590 + ,0.846171260 + ,0.706128597 + ,0.889828146 + ,0.901075959 + ,0.958655119 + ,1.274159789 + ,1.487473726 + ,1.485236287 + ,1.061579823 + ,0.955012262 + ,0.763807118 + ,0.727286518 + ,0.985709965 + ,1.262625933 + ,1.043656588 + ,0.847727895 + ,1.260292649 + ,1.233675957 + ,0.816386163 + ,0.803404808 + ,0.722439408 + ,0.882944465 + ,1.279521585 + ,1.037817478 + ,0.736527145 + ,0.701932013 + ,0.889464796 + ,0.784335792 + ,0.917256594 + ,1.060716391 + ,0.879948795 + ,0.712915540 + ,1.170168638 + ,1.372976303 + ,1.344221711 + ,1.204304338 + ,0.887570500 + ,0.816852212 + ,1.270689964 + ,1.227442980 + ,0.748304605 + ,0.859091461 + ,0.980563402 + ,0.849979997 + ,0.719688416 + ,0.713517487 + ,0.851336956 + ,1.196272969 + ,0.926755190 + ,0.755799949 + ,1.097706676 + ,1.232575297 + ,1.060350657 + ,0.711731493 + ,0.843942761 + ,1.129978418 + ,1.330952525 + ,1.600074291 + ,1.639479995 + ,1.069514275 + ,0.963850856 + ,1.440199971 + ,1.720745683 + ,1.815062642 + ,1.876316309 + ,1.232071996 + ,0.753455997 + ,0.833270371 + ,0.735194862 + ,1.118007421 + ,1.114771843 + ,0.902083576 + ,0.910243094 + ,0.709349632 + ,0.872142792 + ,1.114265084 + ,1.103035331 + ,0.769030333 + ,0.778667510 + ,0.994726777 + ,0.862347543 + ,1.488573670 + ,1.943893313 + ,1.900081992 + ,1.501052618 + ,1.380097032 + ,1.050658822 + ,0.867866516 + ,0.721324146 + ,0.743625879 + ,0.932294130 + ,0.741387427 + ,0.737875879 + ,0.865413904 + ,0.843190312 + ,1.116367817 + ,1.188362718 + ,1.225480676 + ,1.718848705 + ,2.120913982 + ,2.173056364 + ,0.991106153 + ,1.447029710 + ,1.635560036 + ,1.424124956 + ,0.950925350 + ,0.792505920 + ,0.725545645 + ,0.751501918 + ,1.384793043 + ,1.757295609 + ,1.635280967 + ,1.390433669 + ,1.117236376 + ,0.831833363 + ,0.780108392 + ,0.810242891 + ,1.187589049 + ,1.022201300 + ,0.856048882 + ,1.138073802 + ,1.727959991 + ,1.687919021 + ,1.146770716 + ,0.835390210 + ,0.893872738 + ,0.947986662 + ,0.770151973 + ,0.942694426 + ,0.935996294 + ,0.877680361 + ,1.030230761 + ,0.897554278 + ,0.795449376 + ,0.717318773 + ,0.945217133 + ,1.570136309 + ,1.486366987 + ,0.738741279 + ,1.093926668 + ,1.370531678 + ,1.235708714 + ,0.766642392 + ,0.748379827 + ,0.759172678 + ,0.890052676 + ,0.741231918 + ,1.114297986 + ,1.538026333 + ,1.466626287 + ,1.144005299 + ,0.812641978 + ,1.023299694 + ,1.347216010 + ,1.620319963 + ,1.558344364 + ,1.010531545 + ,0.945529103 + ,0.878115356 + ,0.727817059 + ,0.769749701 + ,0.767868042 + ,1.076532483 + ,1.248522997 + ,1.321807384 + ,1.217826962 + ,1.063550711 + ,1.382015705 + ,1.224833012 + ,0.730323255 + ,1.232885480 + ,1.205384612 + ,0.865900993) > x <- c(1.082865000 + ,0.644437313 + ,0.624688327 + ,0.770448506 + ,0.430624515 + ,0.615845799 + ,0.807498872 + ,-0.434327185 + ,-0.466618806 + ,1.210795999 + ,0.849368215 + ,0.117376499 + ,0.269039392 + ,-0.315712214 + ,0.765000701 + ,0.167473003 + ,-0.891560674 + ,0.526283622 + ,0.361169785 + ,-0.530831218 + ,0.516127825 + ,0.649645329 + ,0.741123319 + ,0.526524782 + ,1.397282004 + ,0.891824007 + ,-0.147694707 + ,-0.203003302 + ,0.541156173 + ,-0.612309217 + ,0.845657289 + ,0.622067094 + ,-0.036985829 + ,-0.324807495 + ,-0.343737513 + ,-0.297344506 + ,0.493509203 + ,0.271583289 + ,0.695662320 + ,0.423554391 + ,1.177878976 + ,0.943714201 + ,0.859306991 + ,0.588063180 + ,0.269291610 + ,0.571875691 + ,0.747735023 + ,0.571128488 + ,0.851792514 + ,0.599372029 + ,0.440031290 + ,0.505180597 + ,0.304636598 + ,-0.291285515 + ,1.039931059 + ,0.176179394 + ,-0.863575578 + ,1.157914042 + ,0.743818223 + ,0.435436010 + ,0.076306343 + ,0.072800897 + ,0.749497175 + ,1.197288990 + ,1.044247031 + ,0.235152394 + ,-0.396227807 + ,-0.450390100 + ,1.447455049 + ,1.045552969 + ,0.583188891 + ,0.739389122 + ,0.942169785 + ,0.479206800 + ,1.118536949 + ,0.009162694 + ,0.187631205 + ,2.331273079 + ,1.894251943 + ,1.421864033 + ,2.569134951 + ,1.977254033 + ,0.759010971 + ,0.040592581 + ,1.111979008 + ,0.962194800 + ,0.393120289 + ,0.124047898 + ,-0.121294498 + ,-0.524276972 + ,-0.587560773 + ,0.168677106 + ,0.036047790 + ,1.004572988 + ,1.075379014 + ,1.609822035 + ,1.535904050 + ,1.050475001 + ,0.268454701 + ,-1.237419009 + ,1.490061998 + ,1.342339993 + ,1.096444964 + ,0.933663070 + ,0.141740397 + ,-0.380573094 + ,-0.949407101 + ,1.439954996 + ,1.509971023 + ,1.256984949 + ,1.100736976 + ,0.814580202 + ,0.800936699 + ,0.497896910 + ,-0.078031600 + ,0.454578698 + ,0.997276783 + ,0.888640285 + ,0.551810920 + ,-0.089645818 + ,0.256097615 + ,1.395612955 + ,1.267266989 + ,1.016193032 + ,1.295966983 + ,0.044978440 + ,-1.219866037 + ,-1.871281981 + ,0.770738184 + ,0.264180690 + ,-0.024097290 + ,-0.356599003 + ,-0.147773996 + ,-0.444514900 + ,-0.508075416 + ,-0.366021514 + ,-0.294698894 + ,-0.467869699 + ,-0.812441409 + ,1.205016971 + ,1.167629004 + ,0.853310823 + ,1.086359978 + ,1.627588034 + ,1.478719950 + ,1.546497941 + ,1.537454963 + ,1.319622993 + ,1.224622965 + ,1.274801970 + ,1.166457057 + ,0.380773395 + ,-0.238373101 + ,-0.041086629 + ,0.964302182 + ,-0.947624683 + ,-2.583934069 + ,0.791594028 + ,-0.008034557 + ,-0.534054816 + ,0.874333382 + ,0.750922382 + ,0.095580727 + ,-0.056299981 + ,-0.463298202 + ,0.541555524 + ,0.238592505 + ,1.234467030 + ,0.765021801 + ,0.843154788 + ,0.857327282 + ,0.963528812 + ,1.044250965 + ,1.174728990 + ,0.491591096 + ,0.073661119 + ,1.412106037 + ,1.998167038 + ,0.681079924 + ,0.633878589 + ,0.675876677 + ,0.695572615 + ,0.808346272 + ,1.385460019 + ,0.195077598 + ,1.471698046 + ,1.613556981 + ,1.691046000 + ,0.674664080 + ,0.739317417 + ,0.563130617 + ,0.631735623 + ,0.774674416 + ,1.161846042 + ,1.865183949 + ,1.930063009 + ,1.630468965 + ,1.873411059 + ,1.065247059 + ,-0.200909197 + ,2.440928936 + ,2.109157085 + ,0.988271475 + ,0.232624605 + ,-0.389149487 + ,0.082049191 + ,-0.383519411 + ,0.526672781 + ,0.690841675 + ,0.443512499 + ,0.313447595 + ,0.979524374 + ,0.515816510 + ,0.509896576 + ,0.895200074 + ,-0.021713380 + ,0.041111950 + ,0.488306493 + ,0.664073586 + ,-1.027081013 + ,1.894611001 + ,1.490290999 + ,1.221040010 + ,0.992339790 + ,0.744139791 + ,0.659941375 + ,1.313385010 + ,0.850493193 + ,1.015501022 + ,0.701692820 + ,0.255513489 + ,1.240201950 + ,1.408445954 + ,1.644523978 + ,1.653674960 + ,1.189188004 + ,1.234696031 + ,1.704671025 + ,2.203535080 + ,1.606299996 + ,1.896010041 + ,1.527161956 + ,1.702231050 + ,1.672577024 + ,1.197890043 + ,-0.817907989 + ,0.690418124 + ,0.510189712 + ,1.068410993 + ,1.259492993 + ,0.962450385 + ,0.505717695 + ,0.351535887 + ,0.609931171 + ,0.247917995 + ,0.364596903 + ,0.379533708 + ,0.488216788 + ,1.059790015 + ,1.279366970 + ,1.355607986 + ,0.467315495 + ,0.479035795 + ,0.731189787 + ,0.347528398 + ,-0.319087088 + ,0.122585602 + ,0.246721402 + ,0.170447305 + ,0.146210402 + ,0.639670491 + ,0.608326375 + ,-0.201844901 + ,0.118568502 + ,1.439574957 + ,0.751676917 + ,0.527386487 + ,0.326327413 + ,0.425786614 + ,0.262511998 + ,-0.558834314 + ,1.522611976 + ,1.006041050 + ,1.528045058 + ,-0.443180412 + ,-0.462563902 + ,0.426146895 + ,0.607615471 + ,0.605521679 + ,-0.021731080 + ,0.734983981 + ,0.846647322 + ,0.968323171 + ,0.754011273 + ,0.790576875 + ,-0.152892604 + ,0.706305027 + ,0.462837905 + ,0.663918972 + ,1.267691970 + ,1.084036946 + ,1.191280007 + ,1.114045978 + ,0.666970670 + ,0.011455700 + ,1.229827046 + ,0.897323489 + ,0.941759229 + ,0.444017589 + ,0.936515689 + ,1.046097994 + ,-0.805980980) > ylab = 'Y-fig4b >0.7' > xlab = 'X-fig4b >0.7' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa, (2012), Kendall tau Rank Correlation (v1.0.11) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_kendall.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > library('Kendall') > k <- Kendall(x,y) > postscript(file="/var/wessaorg/rcomp/tmp/1ou8r1353116067.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2ciy11353116067.ps",horizontal=F,onefile=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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/39nnv1353116067.tab") > > try(system("convert tmp/1ou8r1353116067.ps tmp/1ou8r1353116067.png",intern=TRUE)) character(0) > try(system("convert tmp/2ciy11353116067.ps tmp/2ciy11353116067.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.269 0.411 2.656