Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
2 210907 56 396 79 30 1 0 0 149061 44 656 43 26 1 0 0 237213 84 655 78 38 1 1 4 133131 55 525 44 30 1 1 0 324799 154 1436 158 47 1 1 0 230964 53 612 102 30 1 0 0 236785 119 865 77 31 1 1 1 344297 75 963 80 30 1 1 0 174724 92 966 123 34 1 1 3 174415 100 801 73 31 1 1 0 223632 73 513 105 33 1 1 4 294424 77 992 107 33 1 0 1 106408 30 260 33 14 1 0 0 96560 76 503 42 17 0 0 0 265769 146 927 96 32 1 1 0 149112 56 537 56 35 1 0 2 152871 58 532 59 28 1 0 2 362301 119 1635 76 34 1 1 0 183167 66 557 91 39 1 0 2 218946 41 866 76 29 1 1 2 244052 68 574 101 44 1 1 0 341570 168 1276 94 21 0 1 0 196553 57 503 41 29 1 1 2 143246 103 464 67 27 1 0 0 167488 45 619 69 28 1 0 4 143756 46 479 105 34 1 0 2 152299 53 537 62 33 1 1 2 193339 78 465 100 35 1 1 0 130585 46 299 67 29 1 0 3 112611 41 248 46 20 0 1 3 148446 91 905 135 37 1 1 2 182079 63 512 124 33 1 0 0 243060 63 786 58 29 1 1 0 162765 32 489 68 28 1 1 0 85574 34 351 37 21 0 1 1 225060 93 669 93 41 1 0 0 133328 55 506 56 20 0 1 3 100750 72 407 83 30 1 1 0 101523 42 316 59 22 0 1 0 243511 71 603 133 42 1 1 0 152474 65 577 106 32 1 1 3 132487 41 411 71 36 1 1 0 317394 86 975 116 31 1 0 0 244749 95 964 98 33 1 1 2 128423 64 369 32 38 1 0 0 97839 38 417 25 24 1 0 2 229242 247 719 63 31 1 1 2 324598 110 1402 113 37 1 0 0 195838 67 564 111 31 1 0 0 254488 83 747 120 39 1 0 0 92499 32 319 25 18 0 1 0 224330 83 612 131 39 1 0 6 181633 70 564 47 30 1 1 0 271856 103 824 109 37 1 1 3 95227 34 239 37 32 1 1 0 98146 40 459 15 17 0 0 0 118612 46 454 54 12 0 0 1 65475 18 225 16 13 0 1 0 108446 60 389 22 17 0 0 2 121848 39 339 37 17 0 0 2 76302 31 333 29 20 0 1 0 98104 54 636 55 17 0 0 0 30989 14 93 5 17 0 1 1 31774 23 170 0 17 0 0 0 150580 77 530 27 22 0 1 1 59382 49 227 29 12 0 0 0 84105 20 261 17 17 0 0
Names of X columns:
Testscore RFC_time Logins Cviews Bcomp CompRev CourseId Geslacht
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