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.523373008 + ,1.796586990 + ,1.590878963 + ,1.281463981 + ,1.421666026 + ,1.022205949 + ,1.051576018 + ,1.581845045 + ,1.928753972 + ,1.728541970 + ,1.239982009 + ,1.028854966 + ,1.693446994 + ,1.426290989 + ,1.353080988 + ,1.435114980 + ,1.169281960 + ,1.319401979 + ,1.279608011 + ,1.515851021 + ,1.970010042 + ,1.598839998 + ,1.344145060 + ,1.322520971 + ,1.644840002 + ,1.959059000 + ,1.967988968 + ,1.752099991 + ,1.764610052 + ,1.693747997 + ,1.623656988 + ,1.064254045 + ,1.138120055 + ,1.282549024 + ,1.546177983 + ,1.802302003 + ,2.003320932 + ,1.768991947 + ,1.481845975 + ,1.552405953 + ,1.142392993 + ,1.191283941 + ,1.280841947 + ,1.122370005 + ,1.196815968 + ,1.025239944 + ,1.128659010 + ,1.289921999 + ,1.083364010 + ,1.507742047 + ,1.419247031 + ,1.991932988 + ,1.020648956 + ,1.409649014 + ,1.057132006 + ,1.396625042 + ,1.591356039 + ,1.748667002 + ,1.810032010 + ,1.293902040 + ,1.577942967 + ,1.465044975 + ,1.581560016 + ,1.611721992 + ,1.423277020 + ,1.033452988 + ,1.250496030 + ,1.367697954 + ,1.340381026 + ,1.393952012 + ,1.065682054 + ,1.078585029 + ,1.095343947 + ,1.242781997 + ,2.294656992 + ,2.315336943 + ,1.969738960 + ,1.067734957 + ,1.232818007 + ,1.734341979 + ,1.551663995 + ,1.150650978 + ,1.213956952 + ,1.025357008 + ,1.158260942 + ,1.337080956 + ,1.070935011 + ,1.007140994 + ,1.175397992 + ,1.157405972 + ,1.511571050 + ,1.136420965 + ,1.144250989 + ,1.173694015 + ,1.143911958 + ,1.150547981 + ,1.023540974 + ,1.545003057 + ,1.612609029 + ,1.308647990 + ,1.041656017 + ,1.369593024 + ,1.015001059 + ,1.269883990 + ,1.190623045 + ,1.145746946 + ,1.858978033 + ,1.891847014 + ,1.477957964 + ,1.560315013 + ,1.301753998 + ,1.015756965 + ,1.018393993 + ,1.057494044 + ,1.216601968 + ,1.739379048 + ,1.713997960 + ,1.524453998 + ,1.745982051 + ,1.657966971 + ,1.318961024 + ,1.019294977 + ,1.128371954 + ,1.060050011 + ,1.757832050 + ,1.578336954 + ,1.156991959 + ,1.274503946 + ,1.257897973 + ,1.004587054 + ,1.024463058 + ,1.221495032 + ,1.155017018 + ,1.455131054 + ,1.610581994 + ,1.084040999 + ,1.109709978 + ,1.000324965 + ,1.663218021 + ,1.817947984 + ,1.185335994 + ,1.249407053 + ,1.738033056 + ,1.953122973 + ,1.528278947 + ,1.381404996 + ,1.513036013 + ,1.911540985 + ,1.686329007 + ,1.533295035 + ,1.154219985 + ,1.327209949 + ,1.024258971 + ,1.031800985 + ,1.007843018 + ,1.026697993 + ,1.053344011 + ,1.076820970 + ,1.037397027 + ,1.776841044 + ,1.239472985 + ,1.462476015 + ,1.132472038 + ,1.195189953 + ,1.170933008 + ,1.341238022 + ,1.097447038 + ,1.270928979 + ,1.054612041 + ,1.568930984 + ,1.817782044 + ,1.292338014 + ,1.202630997 + ,1.430899978 + ,1.043799043 + ,1.298298001 + ,1.324447989 + ,1.091555953 + ,1.146142006 + ,1.006255031 + ,1.047327995 + ,1.813725948 + ,1.714470983 + ,1.204380035 + ,1.077618003 + ,1.424363971 + ,1.212649941 + ,1.026976943 + ,1.317402959 + ,1.621988058 + ,1.320279002 + ,1.434530973 + ,1.629758000 + ,1.127627969 + ,1.075477004 + ,1.199813962 + ,1.191740990 + ,1.402958989 + ,1.543583035 + ,1.811380982 + ,1.636175036 + ,1.827476025 + ,1.362768054 + ,1.507617950 + ,1.417863965 + ,1.122733951 + ,1.010311961 + ,1.197432995 + ,1.260436058 + ,1.197677970 + ,1.081120014 + ,1.273579955 + ,1.325330973 + ,1.030050039 + ,1.046643972 + ,1.865229011 + ,1.799458027 + ,1.494380951 + ,1.649369001 + ,2.011461020 + ,1.703413010 + ,1.805472970 + ,1.717483997 + ,2.077729940 + ,2.536668062 + ,2.108474016 + ,1.580832005 + ,1.238106012 + ,1.019796014 + ,1.194430947 + ,1.431287050 + ,1.260844946 + ,1.446017027 + ,1.527191997 + ,1.273780942 + ,1.530658007 + ,1.060819030 + ,1.089017034 + ,1.171149015 + ,1.005434036 + ,1.001153946 + ,1.068557024 + ,1.461673021 + ,1.270177007 + ,1.175158024 + ,1.557173014 + ,1.637454033 + ,1.158938050 + ,1.117403030 + ,1.592618942 + ,1.703071952 + ,1.875169992 + ,1.009173036 + ,1.387495995 + ,1.290573955 + ,2.185622931 + ,1.888692021 + ,1.757035017 + ,1.846559048 + ,1.388000011 + ,1.111435056 + ,1.411244988 + ,1.370669007 + ,1.224341035 + ,1.490206003 + ,1.685590982 + ,1.805582047 + ,2.014482021 + ,2.039563894 + ,1.886461973 + ,1.483178020 + ,1.238353014 + ,1.256731033 + ,1.417984962 + ,1.353188992 + ,1.223618984 + ,1.050248981 + ,1.346850038 + ,1.511841059 + ,1.303038955 + ,1.157399058 + ,1.014768958 + ,1.071931958 + ,1.282976985 + ,1.605630994 + ,1.512166977 + ,1.240049005 + ,1.585296988 + ,1.415943027 + ,1.614673018 + ,1.555176973 + ,1.884714007 + ,1.364807963 + ,1.157194972 + ,1.510478020 + ,1.448868990 + ,1.281281948 + ,1.210440993 + ,1.508344054 + ,1.765761971 + ,1.800042033 + ,1.601786971 + ,1.575536013 + ,1.094313025 + ,1.189648032 + ,1.237020016 + ,1.006147027 + ,1.088647008 + ,1.388733983 + ,1.632204056 + ,1.340675950 + ,1.300053954 + ,1.511163950 + ,1.635128021 + ,1.304162979 + ,1.520650983 + ,1.237197042 + ,1.060471058 + ,1.043727040 + ,1.295387030 + ,1.314573050 + ,1.603396058 + ,1.729387045 + ,1.563189030 + ,1.305830002 + ,1.207129002 + ,1.173200011 + ,1.055498958 + ,1.209437013 + ,1.049998999 + ,1.063595057 + ,1.214225054 + ,1.106127977 + ,1.000295997 + ,1.094993949 + ,1.326053977 + ,1.304435015 + ,1.330999017 + ,1.039944053 + ,1.242614985 + ,1.368062019 + ,1.132624030 + ,1.470857978 + ,1.793804049 + ,1.442828059 + ,1.068974972 + ,1.145226955 + ,1.121158957 + ,1.085978031 + ,1.066622019 + ,1.139778972 + ,1.158131957 + ,1.379503012 + ,1.537593007 + ,1.552950978 + ,1.485270023 + ,1.536252975 + ,1.571406960 + ,1.375437021 + ,1.236546040 + ,1.306740999 + ,1.203709960 + ,1.626019001 + ,1.765408993 + ,1.868113041 + ,1.624479055 + ,1.091387033 + ,1.002508044 + ,1.115288019 + ,1.318866014 + ,1.085155010 + ,1.291730046 + ,1.131662011 + ,1.523787022 + ,1.511350036 + ,1.153705001 + ,1.342491031 + ,1.214344025 + ,1.104388952 + ,1.003602982 + ,1.433997989 + ,1.914901972 + ,1.770689011 + ,1.812319040 + ,1.678161025) > x <- c(1.281550050 + ,1.657541037 + ,1.837273955 + ,1.579020977 + ,1.165114999 + ,0.764370978 + ,1.027557969 + ,1.167284012 + ,0.675940990 + ,-0.078825153 + ,0.364149690 + ,0.670691609 + ,0.955208778 + ,1.443887949 + ,1.663316965 + ,1.473580956 + ,0.383897811 + ,0.489891201 + ,1.011360049 + ,0.793543220 + ,0.650629520 + ,0.639023483 + ,0.232643306 + ,0.601556420 + ,1.386610031 + ,1.939975977 + ,2.462434053 + ,2.187397003 + ,1.746379972 + ,1.457754016 + ,1.465361953 + ,0.083974823 + ,-0.334623992 + ,0.485247701 + ,0.804431796 + ,1.205173016 + ,1.532302976 + ,1.320335984 + ,1.294255018 + ,0.798635185 + ,0.350251913 + ,0.301740110 + ,0.405218810 + ,0.672799110 + ,0.798884690 + ,0.070980802 + ,0.782671988 + ,1.094864011 + ,0.854870021 + ,1.418079019 + ,1.651811957 + ,1.558884025 + ,0.382072806 + ,0.784976780 + ,1.264179945 + ,1.417536974 + ,0.744484127 + ,1.178864002 + ,0.658236027 + ,0.354237586 + ,0.800994217 + ,0.895654202 + ,0.648995817 + ,0.273829013 + ,0.665844202 + ,0.644405484 + ,-0.148686707 + ,0.253845006 + ,0.444515407 + ,0.301985413 + ,0.441063702 + ,0.378020704 + ,0.546424329 + ,0.851419389 + ,1.539960027 + ,2.083986998 + ,1.907835007 + ,1.615319967 + ,0.473203897 + ,0.706611514 + ,0.125003695 + ,1.025467038 + ,0.853060722 + ,1.000069022 + ,0.909265816 + ,1.094601989 + ,0.636659980 + ,0.331501901 + ,0.538340211 + ,0.515745103 + ,1.122871995 + ,1.355959058 + ,1.029263973 + ,1.271801949 + ,0.997216821 + ,0.338285804 + ,0.771489799 + ,0.684146225 + ,0.468868285 + ,0.758536875 + ,0.051682960 + ,0.318409503 + ,0.172884300 + ,0.750082910 + ,0.270364702 + ,0.828515828 + ,1.591426969 + ,0.911641419 + ,0.735214293 + ,1.046777010 + ,0.599251390 + ,-0.013985810 + ,0.694938600 + ,0.558116317 + ,0.917164803 + ,1.669770002 + ,2.142178059 + ,1.903509021 + ,1.216686010 + ,0.894767523 + ,0.573171020 + ,0.656996787 + ,0.558344424 + ,0.409939706 + ,0.536183715 + ,1.328269005 + ,1.834378958 + ,1.116803050 + ,0.852427781 + ,-0.208073705 + ,0.521845996 + ,0.599426091 + ,0.078701653 + ,1.294016957 + ,1.294512987 + ,0.527093410 + ,0.954115927 + ,0.942217290 + ,1.293058991 + ,1.164752960 + ,1.378301024 + ,1.827236056 + ,2.297415018 + ,2.159296036 + ,1.733134985 + ,1.443318009 + ,1.465415001 + ,2.163383961 + ,2.842084885 + ,2.191246986 + ,1.054731011 + ,0.199615300 + ,-0.064520583 + ,0.675827086 + ,0.886504889 + ,0.673160613 + ,1.202196956 + ,0.717040122 + ,1.605260015 + ,1.679829955 + ,0.992446482 + ,1.093513012 + ,0.784055829 + ,0.535976887 + ,0.884750485 + ,0.692788899 + ,0.447159588 + ,1.283980012 + ,0.785061121 + ,1.880745053 + ,1.870442033 + ,0.570607722 + ,0.745710313 + ,0.621815681 + ,0.947989583 + ,1.644773960 + ,1.776945949 + ,0.640118003 + ,0.510390401 + ,1.054317951 + ,1.019309044 + ,1.449067950 + ,1.701804042 + ,1.844087005 + ,1.690685987 + ,1.528434992 + ,1.472393990 + ,1.224735975 + ,1.732172966 + ,1.858968973 + ,0.783955693 + ,0.679935515 + ,1.317057967 + ,1.249269962 + ,0.537392974 + ,0.384608597 + ,1.102252960 + ,1.085994959 + ,1.711668968 + ,2.104087114 + ,2.111418009 + ,2.219993114 + ,2.042120934 + ,1.495391965 + ,1.432024956 + ,1.580309033 + ,1.843073010 + ,1.570795059 + ,0.993940890 + ,1.090312004 + ,1.165933967 + ,1.081241012 + ,0.072863281 + ,-0.017344709 + ,1.891839981 + ,1.768586993 + ,1.852460027 + ,1.715116978 + ,0.871036112 + ,0.969788671 + ,1.200374961 + ,1.714967012 + ,1.821284056 + ,1.987730980 + ,2.106925964 + ,1.872146010 + ,1.185984969 + ,1.004464030 + ,1.015735984 + ,1.516456008 + ,1.651847959 + ,0.978807092 + ,1.549636006 + ,1.239810944 + ,0.841792226 + ,1.102458954 + ,0.426261991 + ,0.152369902 + ,0.156314895 + ,0.225323603 + ,-0.181312203 + ,0.610301673 + ,0.292945087 + ,-0.131477103 + ,-0.081271984 + ,1.250360012 + ,1.385776997 + ,0.746388674 + ,1.457512021 + ,1.286932945 + ,1.311370015 + ,1.399582982 + ,1.262366056 + ,1.296720982 + ,1.123518944 + ,1.498780012 + ,1.574357986 + ,1.530704021 + ,1.679625034 + ,1.708155990 + ,1.010282993 + ,0.493481904 + ,1.498098969 + ,1.055719972 + ,1.370324016 + ,0.737792492 + ,1.658260942 + ,2.196146011 + ,2.113562107 + ,1.400681973 + ,0.815548301 + ,0.141289696 + ,0.449887186 + ,1.137513995 + ,1.262138009 + ,1.091364980 + ,1.970535994 + ,1.980604053 + ,2.038892984 + ,1.957028031 + ,1.258942962 + ,1.123551011 + ,1.394538999 + ,1.581969023 + ,1.617890954 + ,1.407644033 + ,0.693100691 + ,0.788179219 + ,1.295114994 + ,1.712795973 + ,1.707785964 + ,1.632611990 + ,2.133246899 + ,0.879049301 + ,1.458583951 + ,1.271201968 + ,1.129353046 + ,1.417860031 + ,1.435744047 + ,1.388599992 + ,1.531728029 + ,1.121791005 + ,0.602936387 + ,0.779558301 + ,1.660812020 + ,1.350150943 + ,0.876923800 + ,1.679363966 + ,1.785470963 + ,1.042657971 + ,1.215422988 + ,0.886426508 + ,1.557515025 + ,0.853956223 + ,1.377771020 + ,1.568763018 + ,-0.062558472 + ,1.256417036 + ,0.809913099 + ,0.872875512 + ,0.392461896 + ,-0.004887253 + ,1.819733024 + ,1.359629035 + ,0.742516220 + ,1.019749999 + ,0.785341084 + ,0.966019988 + ,1.116569042 + ,1.105411053 + ,0.741638780 + ,0.788671792 + ,0.457662106 + ,0.037961010 + ,0.488030106 + ,0.660758078 + ,0.714580774 + ,0.709767222 + ,0.736732006 + ,1.508707047 + ,1.713228941 + ,0.412768304 + ,1.185806990 + ,1.730875015 + ,1.826871991 + ,0.088296093 + ,0.977984607 + ,0.752883971 + ,0.290497690 + ,0.535390019 + ,2.003051996 + ,1.957226992 + ,1.691570044 + ,1.495162964 + ,1.228546977 + ,2.061674118 + ,1.922536969 + ,1.385527968 + ,0.899959683 + ,1.137603998 + ,0.719031692 + ,1.109555960 + ,0.697905481 + ,1.184777975 + ,1.133437037 + ,1.058413982 + ,1.109889030 + ,0.938922584 + ,0.591554701 + ,0.683726490 + ,0.953066885 + ,1.353436947 + ,1.259508967 + ,1.235533953 + ,0.942735672 + ,0.719379783 + ,1.403938055 + ,1.734083056 + ,1.424883008 + ,0.484518111 + ,1.857329965 + ,2.210306883 + ,1.990157962 + ,2.188680887 + ,2.095161915) > ylab = 'Y' > xlab = 'X' > #'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/fisher/rcomp/tmp/1kl791353107395.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/fisher/rcomp/tmp/26u8n1353107395.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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/3mv1d1353107395.tab") > > try(system("convert tmp/1kl791353107395.ps tmp/1kl791353107395.png",intern=TRUE)) character(0) > try(system("convert tmp/26u8n1353107395.ps tmp/26u8n1353107395.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.536 0.317 1.836