R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(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,7878) > x <- c(0.57,0.60,0.62,0.69,0.74,0.74,0.75,0.78,0.80,0.87,0.94,1.05,1.13,1.24,1.31,1.38,1.50,1.70,1.98,2.20,2.51,3.15,3.64,4.05,4.43,4.69,5.06,5.51,6.07,6.41,6.74,7.02,7.32,7.35,7.51,7.69,8.12,8.50,9.00,9.39,9.79,10.17,9.76,9.97,10.18,10.74,11.52,11.86,12.29,12.57,13.12,13.50,13.89) > ylab = 'Aantal Faillissementen' > xlab = 'Gemiddeld Uurloon' > #'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/rcomp/tmp/172u11293281267.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/html/rcomp/tmp/2hub41293281267.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/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/rcomp/tmp/33cas1293281267.tab") > > try(system("convert tmp/172u11293281267.ps tmp/172u11293281267.png",intern=TRUE)) character(0) > try(system("convert tmp/2hub41293281267.ps tmp/2hub41293281267.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.567 0.345 13.204