Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
-0.13 -0.05 -0.02 -0.22 -0.32 -0.25 -0.48 0.06 -0.23 -0.11 -0.08 -0.18 0.02 0 -0.06 -0.17 -0.17 -0.1 -0.21 -0.03 0.34 0.16 0.25 0.06 -0.29 0.2 0.25 -0.09 -0.14 -0.06 -0.1 -0.03 -0.06 0.02 -0.05 0.12 -0.23 -0.2 -0.27 0.05 -0.51 0.01 -0.24 0.04 -0.27 -0.21 -0.16 -0.12 0.05 -0.15 0.08 0.06 0.21 0.24 0.44 0.01 0.21 0.09 -0.05 0.11 -0.07 0.06 -0.13 0.05 0.32 0.24 0.37 -0.14 -0.22 0 -0.07 -0.02 0.14 0.01 -0.05 0.02 -0.21 -0.14 -0.23 -0.07 -0.17 -0.15 -0.28 0 -0.09 -0.28 -0.39 -0.14 -0.08 -0.19 -0.39 0 -0.21 0.09 0.07 -0.19 -0.05 0 0.11 0.01 -0.38 -0.17 -0.02 -0.1 -0.13 -0.18 0.02 -0.14 -0.21 -0.22 -0.15 0.02 0 0.08 -0.09 -0.05 0.05 0.14 0.15 -0.12 -0.18 -0.32 -0.39 -0.09 -0.12 -0.21 -0.24 0.3 0.05 0.3 0.64 0.13 0.17 0.16 0.47 0.57 -0.17 0.07 -0.17 -0.06 0.31 0.06 0.02 0.02 0.07 0.12 0.01 -0.16 -0.22 -0.07 -0.03 0.07 -0.05 -0.14 -0.12 -0.06 -0.19 -0.05 -0.07 -0.09 -0.07 -0.16 -0.25 0.21 0.26 0.2 0.52 0.1 0.01 0.14 0.37 -0.04 0.1 0.06 0.01 0.25 -0.06 -0.11 -0.23 0.09 -0.11 -0.16 -0.22 -0.29 0.12 -0.03 -0.15 -0.11 -0.1 -0.12 -0.03 0.04 0 -0.12 0.09 -0.04 0.05 -0.21 0.04 -0.01 -0.08 -0.06 -0.01 -0.16 0.03 0.01 -0.05 0.18 0.12 0.17 0.33 -0.16 -0.21 -0.21 -0.16 -0.05 -0.04 -0.18 -0.2 0 -0.11 -0.17 -0.14 -0.07 0.12 0.06 0.18 0.13 0.02 0.04 0.08 0.04 0.13 -0.17 -0.06 0.14 0.21 0.16 0.26 0.07 0.23 0.2 0.07 -0.12 0.05 -0.11 -0.06 0.04 0.03 -0.04 -0.05 0.09 0.07 0.16 0.15 0.02 0.33 0.18 0.15 0.18 0.06 0.26 0.27 0.15 0 0.07 0.12 -0.09 0.12 0 0 0.09 0.01 0.02 -0.02 0 0.07 -0.13 -0.21 -0.31 0.16 -0.13 -0.16 0.06 0.13 0.04 0.01 0.04 -0.03 -0.07 -0.13 -0.06 0.15 0.06 -0.04 0.03 0.11 0.26 0.2 0.02 -0.06 0.04 -0.04 -0.07 0.15 -0.11 -0.16 0.02 0.12 0.21 0.14 -0.03 0.17 0.13 0.05 0.13 0.08 0.28 0.35 0.11 -0.03 -0.02 -0.1 -0.05 -0.23 -0.2 -0.33 -0.21 -0.03 -0.04 -0.15 0.05 0.05 0.05 0.01 -0.05
Names of X columns:
Bel Fra Usa Jap
Type of Correlation
pearson
spearman
kendall
Chart options
Title:
R Code
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', ...) } bitmap(file='test1.png') pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main) dev.off() load(file='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 cor.test(y[1,],y[2,],method='kendall') 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='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
1 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation