Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
6.3000 0.3010 0.6532 0.0000 0.8195 1.6232 3 1 3 2.1000 0.2553 1.8388 3.4060 3.6630 2.7952 3 5 4 9.1000 -0.1549 1.4314 1.0233 2.2541 2.2553 4 4 4 15.8000 0.5911 1.2788 -1.6383 -0.5229 1.5441 1 1 1 5.2000 0.0000 1.4829 2.2041 2.2279 2.5933 4 5 4 10.9000 0.5563 1.4472 0.5185 1.4082 1.7993 1 2 1 8.3000 0.1461 1.6990 1.7173 2.6435 2.3617 1 1 1 11.0000 0.1761 0.8451 -0.3716 0.8062 2.0492 5 4 4 3.2000 -0.1549 1.4771 2.6675 2.6263 2.4487 5 5 5 6.3000 0.3222 0.5441 -1.1249 0.0792 1.6232 1 1 1 6.6000 0.6128 0.7782 -0.1051 0.5441 1.6232 2 2 2 9.5000 0.0792 1.0170 -0.6990 0.6990 2.0792 2 2 2 3.3000 -0.3010 1.3010 1.4419 2.0607 2.1703 5 5 5 11.0000 0.5315 0.5911 -0.9208 0.0000 1.2041 3 1 2 4.7000 0.1761 1.6128 1.9294 2.5119 2.4914 1 3 1 10.4000 0.5315 0.9542 -0.9957 0.6021 1.4472 5 1 3 7.4000 -0.0969 0.8808 0.0170 0.7404 1.8325 5 3 4 2.1000 -0.0969 1.6628 2.7168 2.8162 2.5263 5 5 5 17.9000 0.3010 1.3802 -2.0000 -0.6021 1.6990 1 1 1 6.1000 0.2788 2.0000 1.7924 3.1206 2.4265 1 1 1 11.9000 0.1139 0.5051 -1.6383 -0.3979 1.2788 4 1 3 13.8000 0.7482 0.6990 0.2304 0.7993 1.0792 2 1 1 14.3000 0.4914 0.8129 0.5441 1.0334 2.0792 2 1 1 15.2000 0.2553 1.0792 -0.3188 1.1903 2.1461 2 2 2 10.0000 -0.0458 1.3054 1.0000 2.0607 2.2304 4 4 4 11.9000 0.2553 1.1139 0.2095 1.0569 1.2304 2 1 2 6.5000 0.2788 1.4314 2.2833 2.2553 2.0607 4 4 4 7.5000 -0.0458 1.2553 0.3979 1.0828 1.4914 5 5 5 10.6000 0.4150 0.6721 -0.5528 0.2788 1.3222 3 1 3 7.4000 0.3802 0.9912 0.6269 1.7024 1.7160 1 1 1 8.4000 0.0792 1.4624 0.8325 2.2529 2.2148 2 3 2 5.7000 -0.0458 0.8451 -0.1249 1.0899 2.3522 2 2 2 4.9000 -0.3010 0.7782 0.5563 1.3222 2.3522 3 2 3 3.2000 -0.2218 1.3010 1.7443 2.2430 2.1790 5 5 5 11.0000 0.3617 0.6532 -0.0458 0.4150 1.7782 2 1 2 4.9000 -0.3010 0.8751 0.3010 1.0899 2.3010 3 1 3 13.2000 0.4150 0.3617 -0.9830 0.3979 1.6628 3 2 2 9.7000 -0.2218 1.3802 0.6222 1.7634 2.3222 4 3 4 12.8000 0.8195 0.4771 0.5441 0.5911 1.1461 2 1 1
Names of X columns:
SWS PS L Wb Wbr Tg P S D
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=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
1 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation