Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
6.81 7.76 7.51 8.97 8.16 6.08 6.34 6.29 6.81 7.07 8.58 8.65 8.65 8.77 8.24 7.38 7.32 7.37 7.81 8.15 7.83 7.74 7.78 8.06 8.04 4.48 4.94 4.82 5.58 5.44 3.25 3.27 3.25 3.94 4.47 7.33 6.28 6.60 8.42 6.76 7.65 7.25 7.40 8.00 6.55 7.21 6.42 6.66 7.55 7.76 7.50 6.65 6.92 7.39 7.89 5.81 5.92 5.90 6.90 7.13 5.38 5.18 5.23 5.97 5.64 4.60 4.91 4.82 5.23 6.44 6.06 5.81 5.90 6.03 6.15 8.50 8.31 8.40 8.42 8.16 8.50 8.02 8.18 8.71 7.67 8.27 7.80 7.96 8.00 7.95 8.13 7.70 7.82 8.26 7.45 9.06 9.08 9.12 9.61 9.16 8.48 8.35 8.43 8.42 8.09 7.96 7.66 7.75 8.03 7.64 7.92 8.03 8.03 8.94 7.65 8.46 8.45 8.49 8.87 8.49 6.42 6.72 6.66 7.45 7.89 8.31 7.53 7.78 8.35 7.49 7.92 7.67 7.77 7.94 7.42 7.88 7.05 7.28 8.29 7.13
Names of X columns:
BEDNOS BEDOS BEDTOT COL STUD
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