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(36700,35600,80900,174000,169422,153452,173570,193036,174652,105367,95963,82896,121747,120196,103983,81103,70944,57248,47830,60095,60931,82955,99559,77911,70753,69287,88426,91756,96933,174484,232595,266197,290435,304296,322310,415555,490042,545109,545720,505944,477930,466106,424476,383018,364696,391116,435721,511435,553997,555252,544897,540562,505282,507626,474427,469740,491480,538974,576612) > x <- c(67,189,342,432,517,623,605,716,677,710,839,886,891,917,820,793,932,906,844,801,957,1159,1264,1097,1240,1411,1535,1862,1894,2239,2465,2423,2692,2856,3450,4162,4260,4225,4092,4160,3896,3628,3754,3749,3907,4449,5272,6197,6446,7157,7559,7674,6929,7156,6805,7095,7222,7593,7910) > ylab = 'Werklozen' > xlab = 'Faillisementen' > #'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/1h9vh1292669823.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/2a0uk1292669823.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/36sat1292669823.tab") > > try(system("convert tmp/1h9vh1292669823.ps tmp/1h9vh1292669823.png",intern=TRUE)) character(0) > try(system("convert tmp/2a0uk1292669823.ps tmp/2a0uk1292669823.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.660 0.410 1.064