Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
11 8 7 18 12 20 4 2 16 12 9 22 14 18 5 0 24 24 19 22 25 24 4 0 15 16 12 19 15 20 4 4 17 19 16 25 20 20 9 0 19 16 17 28 21 24 8 -1 19 15 9 16 15 21 11 0 28 28 28 28 28 28 4 1 26 21 20 21 11 10 4 0 15 18 16 22 22 22 6 3 26 22 22 24 22 19 4 -1 24 22 12 26 24 23 4 4 25 25 18 28 23 24 4 1 22 20 20 24 24 24 11 0 15 16 12 20 21 25 4 -2 21 19 16 26 20 24 4 -4 27 26 21 28 25 28 6 2 26 20 17 23 24 22 8 2 22 19 17 24 21 26 5 -4 22 23 18 22 25 21 9 2 20 18 15 21 23 26 4 2 21 16 20 25 20 23 7 0 22 21 21 21 22 24 4 -3 21 20 12 26 25 25 4 2 8 15 6 23 23 24 7 0 22 19 13 21 19 20 12 4 20 19 19 27 21 24 7 2 17 20 14 23 25 23 8 2 23 19 12 23 24 23 4 -4 20 19 17 19 24 21 9 3 20 19 9 23 21 21 4 3 19 18 10 24 28 24 4 2 22 17 11 27 18 23 4 -1 18 22 16 25 26 24 4 -3 18 14 11 24 12 24 4 3 23 24 20 28 20 25 4 0 24 21 17 20 20 23 4 0 23 20 14 19 24 27 4 0 20 18 16 21 22 23 12 3 22 24 15 18 23 23 4 0 22 19 15 27 19 24 5 2 15 16 10 25 24 26 15 -1 19 16 18 21 16 23 10 3 21 15 10 27 19 20 5 2 20 15 16 23 18 18 9 2 18 14 5 27 25 26 4 -2 16 16 10 25 17 25 7 0 17 13 8 19 17 23 5 -2 24 26 16 24 24 18 4 0 19 18 16 23 22 26 4 6 24 21 24 24 20 23 8 -3 19 19 18 22 19 20 5 3 20 15 14 23 18 25 4 0 19 21 9 26 20 26 4 -2 21 17 21 26 21 24 6 1 15 18 7 16 21 22 10 0 22 25 16 25 25 28 4 2 14 12 8 20 21 24 11 2 11 16 5 20 22 23 14 -3 16 11 10 19 12 17 11 -2 22 23 22 24 24 23 4 1 25 19 17 27 18 27 4 -4 22 18 20 23 19 24 5 1 22 23 18 24 22 23 4 0
Names of X columns:
1 I2 I3 E1 E2 E3 A test
Type of Correlation
kendall
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=par1) 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') n <- length(y[,1]) n a<-table.start() a<-table.row.start(a) a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,' ',header=TRUE) for (i in 1:n) { a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) } a<-table.row.end(a) for (i in 1:n) { a<-table.row.start(a) a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) for (j in 1:n) { r <- cor.test(y[i,],y[j,],method=par1) a<-table.element(a,round(r$estimate,3)) } a<-table.row.end(a) } a<-table.end(a) table.save(a,file='mytable.tab') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'pair',1,TRUE) a<-table.element(a,'Pearson r',1,TRUE) a<-table.element(a,'Spearman rho',1,TRUE) a<-table.element(a,'Kendall tau',1,TRUE) a<-table.row.end(a) cor.test(y[1,],y[2,],method=par1) for (i in 1:(n-1)) { for (j in (i+1):n) { a<-table.row.start(a) dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='') a<-table.element(a,dum,header=TRUE) rp <- cor.test(y[i,],y[j,],method='pearson') a<-table.element(a,round(rp$estimate,4)) rs <- cor.test(y[i,],y[j,],method='spearman') a<-table.element(a,round(rs$estimate,4)) rk <- cor.test(y[i,],y[j,],method='kendall') a<-table.element(a,round(rk$estimate,4)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value',header=T) a<-table.element(a,paste('(',round(rp$p.value,4),')',sep='')) a<-table.element(a,paste('(',round(rs$p.value,4),')',sep='')) a<-table.element(a,paste('(',round(rk$p.value,4),')',sep='')) a<-table.row.end(a) } } a<-table.end(a) table.save(a,file='mytable1.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation