Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
-4.9 -3 6802.96 10570 -4 -1 7132.68 10297 -3.1 -3 7073.29 10635 -1.3 -4 7264.5 10872 0 -6 7105.33 10296 -0.4 0 7218.71 10383 3 -4 7225.72 10431 0.4 -2 7354.25 10574 1.2 -2 7745.46 10653 0.6 -6 8070.26 10805 -1.3 -7 8366.33 10872 -3.2 -6 8667.51 10625 -1.8 -6 8854.34 10407 -3.6 -3 9218.1 10463 -4.2 -2 9332.9 10556 -6.9 -5 9358.31 10646 -8 -11 9248.66 10702 -7.5 -11 9401.2 11353 -8.2 -11 9652.04 11346 -7.6 -10 9957.38 11451 -3.7 -14 10110.63 11964 -1.7 -8 10169.26 12574 -0.7 -9 10343.78 13031 0.2 -5 10750.21 13812 0.6 -1 11337.5 14544 2.2 -2 11786.96 14931 3.3 -5 12083.04 14886 5.3 -4 12007.74 16005 5.5 -6 11745.93 17064 6.3 -2 11051.51 15168 7.7 -2 11445.9 16050 6.5 -2 11924.88 15839 5.5 -2 12247.63 15137 6.9 2 12690.91 14954 5.7 1 12910.7 15648 6.9 -8 13202.12 15305 6.1 -1 13654.67 15579 4.8 1 13862.82 16348 3.7 -1 13523.93 15928 5.8 2 14211.17 16171 6.8 2 14510.35 15937 8.5 1 14289.23 15713 7.2 -1 14111.82 15594 5 -2 13086.59 15683 4.7 -2 13351.54 16438 2.3 -1 13747.69 17032 2.4 -8 12855.61 17696 0.1 -4 12926.93 17745 1.9 -6 12121.95 19394 1.7 -3 11731.65 20148 2 -3 11639.51 20108 -1.9 -7 12163.78 18584 0.5 -9 12029.53 18441 -1.3 -11 11234.18 18391 -3.3 -13 9852.13 19178 -2.8 -11 9709.04 18079 -8 -9 9332.75 18483 -13.9 -17 7108.6 19644 -21.9 -22 6691.49 19195 -28.8 -25 6143.05 19650
Names of X columns:
conjunctuur consVert AandKoers GoudKoers
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