Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
-0.5 0.0027 -5.42 -7.68 -2.3 -0.0303 10.25 11.74 0.8 -0.0191 13.66 11.85 -0.4 -0.0173 -17.79 -19.42 2.4 -0.041 16.23 17.25 -4.4 0.0432 -9.84 -8.87 -4.4 -0.0095 -3.89 -8.71 -2.7 -0.0356 -9.82 4.73 2.3 -0.032 25.49 9.93 0.5 -0.0169 4.27 4.53 -1.4 0.0012 -5.11 6.46 1.2 0.0409 -9.51 -8.88 0.5 0.041 4.33 1.81 -2.1 -0.0166 -0.7 -2.2 -1.7 -0.0122 12.51 9.35 -2.1 -0.0175 -17.27 -12.92 1.6 -0.0178 8.29 6.78 -1.4 -0.021 1.31 -2.33 2.6 0.0075 -7.43 -13.09 -0.4 0.0398 -14.14 -3.27 -3 0.0106 15.76 7.32 -2.6 -0.0052 7.39 5.65 3 -0.0176 -7.72 -3.16 0.4 0.0041 -12.98 -7.5 0.7 -0.0091 9.78 3.58 -0.4 -0.0133 -0.59 0.29 3.6 0.0058 11.41 9.39 0.2 0.01 -4.14 -3.52 0.6 0.0312 1.65 0.12 2.6 0.0384 -2.7 -2.12 8 0.0368 -0.58 -5.51 2.7 -0.0144 -20.3 -7.76 6.5 0.003 25.4 15.26 -0.3 0.0003 8.16 9.84 -2.1 0.0203 -12.93 -10.71 -1.2 0.0169 -9.74 2.86 1.1 0.0439 7.65 -0.72 2.2 0.0151 -0.3 -1.45 -5.6 0.0034 8.79 7.53 1 0.0041 -4.33 -6.33 2.1 0.0734 -2.86 -5.3 -5.2 0.0081 3.54 3.59 -3.4 -0.0291 -2.54 -4.82 1.2 -0.0233 -23.45 -11.86 4.9 0.0083 31.61 19.69 4.1 0.047 3.05 7.33 3.4 0.001 -12.13 -11.17 3 0.0584 -0.74 5.77 7.4 0.0327 -1.91 -5.19 2.9 0.0033 4.98 3.44 10 -0.0384 17.94 18.2 1.2 -0.0277 -10.53 -12.89 -3.5 0.0022 -6.62 -7.85 -4.7 0.0131 16.92 23.12 -9.7 0.0128 -13.51 -21.61 -11.4 -0.009 -14.13 -0.71 -2.1 0.0042 27.32 15.93 -3 0.0272 0.33 0.28 3.8 0.0501 -3.11 -0.39 4.3 0.0417 -4.95 1.82
Names of X columns:
LM D/E EX IM
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