Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
104.37 1 167.16 101.56 100.93 104.89 2 179.84 102.13 101.18 105.15 3 174.44 102.39 101.11 105.72 4 180.35 102.42 102.42 106.38 5 193.17 103.87 102.37 106.40 6 195.16 104.44 101.95 106.47 7 202.43 104.97 102.20 106.59 8 189.91 105.17 103.35 106.76 9 195.98 105.35 103.65 107.35 10 212.09 104.65 102.06 107.81 11 205.81 106.62 102.66 108.03 12 204.31 107.05 102.32 109.08 1 196.07 112.30 102.21 109.86 2 199.98 114.70 102.33 110.29 3 199.1 115.40 104.41 110.34 4 198.31 115.64 104.33 110.59 5 195.72 115.66 105.27 110.64 6 223.04 114.50 105.34 110.83 7 238.41 115.14 104.88 111.51 8 259.73 115.41 105.49 113.32 9 326.54 119.32 105.90 115.89 10 335.15 124.77 105.39 116.51 11 321.81 130.96 104.40 117.44 12 368.62 141.02 106.19 118.25 1 369.59 150.60 106.54 118.65 2 425 151.10 108.26 118.52 3 439.72 157.19 106.95 119.07 4 362.23 157.28 108.32 119.12 5 328.76 156.54 108.35 119.28 6 348.55 159.62 109.29 119.30 7 328.18 163.77 109.46 119.44 8 329.34 165.08 109.50 119.57 9 295.55 164.75 109.84 119.93 10 237.38 163.93 108.73 120.03 11 226.85 157.51 109.38 119.66 12 220.14 153.36 109.97 119.46 1 239.36 156.83 111.10 119.48 2 224.69 154.98 110.53 119.56 3 230.98 155.02 110.23 119.43 4 233.47 153.34 109.41 119.57 5 256.7 153.19 108.94 119.59 6 253.41 152.80 109.81 119.50 7 224.95 152.97 109.20 119.54 8 210.37 152.96 109.45 119.56 9 191.09 152.35 110.61 119.61 10 198.85 151.88 109.44 119.64 11 211.04 150.27 109.77 119.60 12 206.25 148.80 108.04 119.71 1 201.19 149.28 109.65 119.72 2 194.37 148.64 111.69 119.66 3 191.08 150.36 111.65 119.76 4 192.87 149.69 112.04 119.80 5 181.61 152.94 111.42 119.88 6 157.67 155.18 112.25 119.78 7 196.14 156.32 111.46 120.08 8 246.35 156.25 111.62 120.22 9 271.9 155.52 111.77
Names of X columns:
Brood Maand Tarwe Meel Water
Type of Correlation
kendall
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=par1) 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') n <- length(y[,1]) n a<-table.start() a<-table.row.start(a) a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,' ',header=TRUE) for (i in 1:n) { a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) } a<-table.row.end(a) for (i in 1:n) { a<-table.row.start(a) a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) for (j in 1:n) { r <- cor.test(y[i,],y[j,],method=par1) a<-table.element(a,round(r$estimate,3)) } a<-table.row.end(a) } a<-table.end(a) table.save(a,file='mytable.tab') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'pair',1,TRUE) a<-table.element(a,'Pearson r',1,TRUE) a<-table.element(a,'Spearman rho',1,TRUE) a<-table.element(a,'Kendall tau',1,TRUE) a<-table.row.end(a) cor.test(y[1,],y[2,],method=par1) for (i in 1:(n-1)) { for (j in (i+1):n) { a<-table.row.start(a) dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='') a<-table.element(a,dum,header=TRUE) rp <- cor.test(y[i,],y[j,],method='pearson') a<-table.element(a,round(rp$estimate,4)) rs <- cor.test(y[i,],y[j,],method='spearman') a<-table.element(a,round(rs$estimate,4)) rk <- cor.test(y[i,],y[j,],method='kendall') a<-table.element(a,round(rk$estimate,4)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value',header=T) a<-table.element(a,paste('(',round(rp$p.value,4),')',sep='')) a<-table.element(a,paste('(',round(rs$p.value,4),')',sep='')) a<-table.element(a,paste('(',round(rk$p.value,4),')',sep='')) a<-table.row.end(a) } } a<-table.end(a) table.save(a,file='mytable1.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