R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(5732,6938,6660,6695,6484,7716,5927,4768,7081,6947,7723,7319,6285,6655,7331,6468,7653,7330,5907,5257,7029,8885,9477,6822,8595,8738,11380,9831,10560,10336,8872,7598,9713,10858,10430,7516,8344,8623,9238,10350,9415,9550,8301,6405,10251,10082,8683,7829,6712,7354,8402,8211,8377,9133,8301,5932,9080,9459,9647,8646,7503,10000,10441,6435,8102,9983,8662,6575,9088,9336,9089) > x <- c(692,496,691,1368,1680,1964,1344,1574,1681,1074,666,512,688,478,568,1088,958,1256,1142,874,700,1116,510,420,324,550,702,1062,1258,683,722,1038,3894,1316,388,428,378,536,356,2364,5376,1532,1212,1346,1374,1050,788,1300,988,728,1158,1998,2628,3566,1840,1458,3714,1354,638,948,772,532,1270,1488,3914,2390,1434,956,1110,1236,682) > ylab = 'Y lijnvluchten' > xlab = 'X lokale vluchten' > #'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/rcomp/tmp/1lnbn1292955098.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/www/rcomp/tmp/2lnbn1292955098.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/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/3if9e1292955098.tab") > > try(system("convert tmp/1lnbn1292955098.ps tmp/1lnbn1292955098.png",intern=TRUE)) character(0) > try(system("convert tmp/2lnbn1292955098.ps tmp/2lnbn1292955098.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.690 0.370 1.031