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. > x <- array(list(100.5 + ,98.60 + ,96.33 + ,106.29 + ,96.90 + ,96.33 + ,101.09 + ,95.10 + ,95.05 + ,104.53 + ,97.00 + ,96.84 + ,122.74 + ,112.70 + ,96.92 + ,109.84 + ,102.90 + ,97.44 + ,101.99 + ,97.40 + ,97.78 + ,125.12 + ,111.40 + ,97.69 + ,103.5 + ,87.40 + ,96.67 + ,102.8 + ,96.80 + ,98.29 + ,118.72 + ,114.10 + ,98.20 + ,119.01 + ,110.30 + ,98.71 + ,118.61 + ,103.90 + ,98.54 + ,120.43 + ,101.60 + ,98.20 + ,111.83 + ,94.60 + ,100.80 + ,116.79 + ,95.90 + ,101.33 + ,131.71 + ,104.70 + ,101.88 + ,120.57 + ,102.80 + ,101.85 + ,117.83 + ,98.10 + ,102.04 + ,130.8 + ,113.90 + ,102.22 + ,107.46 + ,80.90 + ,102.63 + ,112.09 + ,95.70 + ,102.65 + ,129.47 + ,113.20 + ,102.54 + ,119.72 + ,105.90 + ,102.37 + ,134.81 + ,108.80 + ,102.68 + ,135.8 + ,102.30 + ,102.76 + ,129.27 + ,99.00 + ,102.82 + ,126.94 + ,100.70 + ,103.31 + ,153.45 + ,115.50 + ,103.23 + ,121.86 + ,100.70 + ,103.60 + ,133.47 + ,109.90 + ,103.95 + ,135.34 + ,114.60 + ,103.93 + ,117.1 + ,85.40 + ,104.25 + ,120.65 + ,100.50 + ,104.38 + ,132.49 + ,114.80 + ,104.36 + ,137.6 + ,116.50 + ,104.32 + ,138.69 + ,112.90 + ,104.58 + ,125.53 + ,102.00 + ,104.68 + ,133.09 + ,106.00 + ,104.92 + ,129.08 + ,105.30 + ,105.46 + ,145.94 + ,118.80 + ,105.23 + ,129.07 + ,106.10 + ,105.58 + ,139.69 + ,109.30 + ,105.34 + ,142.09 + ,117.20 + ,105.28 + ,137.29 + ,92.50 + ,105.70 + ,127.03 + ,104.20 + ,105.67 + ,137.25 + ,112.50 + ,105.71 + ,156.87 + ,122.40 + ,106.19 + ,150.89 + ,113.30 + ,106.93 + ,139.14 + ,100.00 + ,107.44 + ,158.3 + ,110.70 + ,107.85 + ,149 + ,112.80 + ,108.71 + ,158.36 + ,109.80 + ,109.32 + ,168.06 + ,117.30 + ,109.49 + ,153.38 + ,109.10 + ,110.20 + ,173.86 + ,115.90 + ,110.62 + ,162.47 + ,96.00 + ,111.22 + ,145.17 + ,99.80 + ,110.88 + ,168.89 + ,116.80 + ,111.15 + ,166.64 + ,115.70 + ,111.29 + ,140.07 + ,99.40 + ,111.09 + ,128.84 + ,94.30 + ,111.24 + ,123.41 + ,91.00 + ,111.45 + ,120.3 + ,93.20 + ,111.75 + ,129.67 + ,103.10 + ,111.07 + ,118.1 + ,94.10 + ,111.17 + ,113.91 + ,91.80 + ,110.96 + ,131.09 + ,102.70 + ,110.50 + ,119.15 + ,82.60 + ,110.48 + ,122.3 + ,89.10 + ,110.66) + ,dim=c(3 + ,70) + ,dimnames=list(c('Invoer' + ,'TIP' + ,'cons') + ,1:70)) > y <- array(NA,dim=c(3,70),dimnames=list(c('Invoer','TIP','cons'),1:70)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > main = 'Kendall tau Correlation Plot 2' > #'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!) > panel.tau <- function(x, y, digits=2, prefix='', cex.cor) + { + usr <- par('usr'); on.exit(par(usr)) + par(usr = c(0, 1, 0, 1)) + rr <- cor.test(x, y, method='kendall') + r <- round(rr$p.value,2) + txt <- format(c(r, 0.123456789), digits=digits)[1] + txt <- paste(prefix, txt, sep='') + if(missing(cex.cor)) cex <- 0.5/strwidth(txt) + text(0.5, 0.5, txt, cex = cex) + } > panel.hist <- function(x, ...) + { + usr <- par('usr'); on.exit(par(usr)) + par(usr = c(usr[1:2], 0, 1.5) ) + h <- hist(x, plot = FALSE) + breaks <- h$breaks; nB <- length(breaks) + y <- h$counts; y <- y/max(y) + rect(breaks[-nB], 0, breaks[-1], y, col='grey', ...) + } > postscript(file="/var/www/html/rcomp/tmp/1hrch1261128373.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main) > 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 correlations for all pairs of data series',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'pair',1,TRUE) > a<-table.element(a,'tau',1,TRUE) > a<-table.element(a,'p-value',1,TRUE) > a<-table.row.end(a) > n <- length(y[,1]) > n [1] 3 > cor.test(y[1,],y[2,],method='kendall') Kendall's rank correlation tau data: y[1, ] and y[2, ] z = 5.82, p-value = 5.883e-09 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.4754608 > for (i in 1:(n-1)) + { + for (j in (i+1):n) + { + a<-table.row.start(a) + dum <- paste('tau(',dimnames(t(x))[[2]][i]) + dum <- paste(dum,',') + dum <- paste(dum,dimnames(t(x))[[2]][j]) + dum <- paste(dum,')') + a<-table.element(a,dum,header=TRUE) + r <- cor.test(y[i,],y[j,],method='kendall') + a<-table.element(a,r$estimate) + a<-table.element(a,r$p.value) + a<-table.row.end(a) + } + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/26gdg1261128373.tab") > > try(system("convert tmp/1hrch1261128373.ps tmp/1hrch1261128373.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.458 0.191 0.557