Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
15.4 19.5 10.8 19.5 27.2 24.5 12.8 17.3 12 15.8 22.3 28.2 15.5 18.1 24.1 26.9 18.1 11.6 23 16.4 22.5 22.6 25.4 30.3 22.4 15.3 16.9 13.1 19.8 24 14.4 14.6 18.8 25 16.4 19.7 15 18.7 16.1 7.4 14.7 30.7 10.1 28.3 22 14.8 12.7 17.5 16.7 23.4 32.6 24.6 17.6 16.9 22.4 22.9 34.3 20 21.1 23.5 27.9 18.3 26 19.7 17.5 21.4 23.6 14.6 24.6 20.3 12.4 11.7 18.2 25.8 9.8 17.5 17.6 22.1 16.2 22.2 13.6 16.7 11.9 23.2 16 16.6 13.9 19.5 10.6 16.3 24.1 29.7 18.5 22.6 24.2 22.5 22.6 18.3 31.4 24.8 17.6 17.5 34.3 19.6 29.3 25 28.8 13.3 27.3 21.7 25.9 23.3 35.6 16.3 27.4 16.6 21.1 23.2 30.2 21.2 27.6 20.2 24.6 17.1 26.9 15 21.1 20.6 19.9 17.6 25.5 18.2 23.7 24.5 14.6 14.5
Names of X columns:
textiel vervaardiging
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