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(-1.098612289,-0.693147181,-1.609437912,-2.397895273,-2.397895273,-2.397895273,-2.302585093,-2.63905733,-2.079441542,-2.197224577,-1.609437912,0,-0.693147181,-1.609437912,-1.386294361,-1.791759469,-0.693147181,-0.693147181,-0.693147181,-0.693147181,0.693147181,0,-2.079441542,0,0,0,0.693147181,0.693147181,0,0,-0.693147181,-0.693147181,0,-2.079441542,-1.386294361,-1.791759469,-1.098612289,-1.098612289,-1.945910149,-2.197224577,-2.397895273,-2.564949357,-2.397895273,-2.197224577,-2.833213344,-3.091042453,-3.218875825,-2.995732274,-3.17805383,-3.17805383,-3.091042453,-2.944438979,-2.890371758,-2.833213344,-2.397895273,-2.397895273,-2.48490665) > x <- c(4.613138356,4.618382517,4.62379565,4.623501143,4.625364893,4.627127353,4.631130288,4.631325143,4.630252966,4.628593701,4.631617356,4.632396172,4.632979887,4.637734177,4.636959508,4.64053733,4.643910014,4.643717596,4.646791861,4.648038086,4.64784646,4.647463098,4.649952329,4.650908078,4.653198155,4.658331734,4.656148431,4.659468959,4.657193214,4.656623468,4.660604893,4.66032103,4.660699496,4.665229942,4.672174415,4.676932552,4.680741373,4.688683786,4.694279361,4.695833221,4.702296897,4.706100905,4.711510222,4.708448535,4.71088064,4.712139407,4.710340684,4.711690029,4.71357606,4.716264233,4.710160633,4.711060561,4.709169776,4.705015521,4.704834509,4.706462437,4.704653464) > 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/freestat/rcomp/tmp/1f9bb1257157180.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/freestat/rcomp/tmp/242nc1257157180.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/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/3swt01257157181.tab") > > system("convert tmp/1f9bb1257157180.ps tmp/1f9bb1257157180.png") > system("convert tmp/242nc1257157180.ps tmp/242nc1257157180.png") > > > proc.time() user system elapsed 0.829 0.501 0.918