Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
-313 -21 -426 -19 660 21 923 25 103 6 180 -4 463 28 546 36 149 -3 196 -4 -865 -16 -1115 -23 -243 -3 -272 3 1022 0 1270 0 236 14 447 10 -720 -9 -978 -9 171 -2 276 -5 -576 -14 -805 -6 -19 27 -59 22 -5 -25 -51 -21 106 19 243 18 667 -7 716 -6 -102 10 -76 10 -702 -19 -720 -20 -66 0 -302 -3 604 13 776 14 123 8 205 12 -552 4 -722 10 -83 -10 -90 -19 -254 -11 -383 -7 -307 -18 -523 -25 581 7 960 13 -277 10 -400 3 700 12 743 12 -89 11 37 16 -245 8 -210 16 17 -8 -120 -13 329 -4 565 -5 167 -5 3 -11 -237 9 -257 13 -727 -24 -861 -24 166 -13 85 -16 -283 8 -387 8 586 -7 695 -4 63 25 260 19 495 -14 635 -3 10 14 7 6 -637 8 -705 10 287 -31 313 -29 309 32 251 32 -131 -21 -176 -20 -1165 2 -1484 -6 -94 -20 -224 -19 651 8 846 8 -455 -32 -728 -32 577 28 766 35 134 -1 383 -1 430 12 354 6 356 2 454 7 -573 17 -743 15 9 -14 179 -17 505 -13 274 -15 -179 2 -324 3 -272 2 -266 5 -293 -23 -476 -24 -415 22 -568 23 -344 -16 -415 -24 567 8 768 17 117 -4 317 -7 594 10 964 9 40 2 -72 4 -622 6 -664 8 254 -4 352 -1 443 -17 432 -22 -296 8 -413 9 -518 -8 -469 -10 109 12 39 10
Names of X columns:
Ong Dod Slacht Dod30d
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
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation