Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
14544.5 94.6 -3.0 14097.8 15116.3 95.9 -3.7 14776.8 17413.2 104.7 -4.7 16833.3 16181.5 102.8 -6.4 15385.5 15607.4 98.1 -7.5 15172.6 17160.9 113.9 -7.8 16858.9 14915.8 80.9 -7.7 14143.5 13768 95.7 -6.6 14731.8 17487.5 113.2 -4.2 16471.6 16198.1 105.9 -2.0 15214 17535.2 108.8 -0.7 17637.4 16571.8 102.3 0.1 17972.4 16198.9 99 0.9 16896.2 16554.2 100.7 2.1 16698 19554.2 115.5 3.5 19691.6 15903.8 100.7 4.9 15930.7 18003.8 109.9 5.7 17444.6 18329.6 114.6 6.2 17699.4 16260.7 85.4 6.5 15189.8 14851.9 100.5 6.5 15672.7 18174.1 114.8 6.3 17180.8 18406.6 116.5 6.2 17664.9 18466.5 112.9 6.4 17862.9 16016.5 102 6.3 16162.3 17428.5 106 5.8 17463.6 17167.2 105.3 5.1 16772.1 19630 118.8 5.1 19106.9 17183.6 106.1 5.8 16721.3 18344.7 109.3 6.7 18161.3 19301.4 117.2 7.1 18509.9 18147.5 92.5 6.7 17802.7 16192.9 104.2 5.5 16409.9 18374.4 112.5 4.2 17967.7 20515.2 122.4 3.0 20286.6 18957.2 113.3 2.2 19537.3 16471.5 100 2.0 18021.9 18746.8 110.7 1.8 20194.3 19009.5 112.8 1.8 19049.6 19211.2 109.8 1.5 20244.7 20547.7 117.3 0.4 21473.3 19325.8 109.1 -0.9 19673.6 20605.5 115.9 -1.7 21053.2 20056.9 96 -2.6 20159.5 16141.4 99.8 -4.4 18203.6 20359.8 116.8 -8.3 21289.5 19711.6 115.7 -14.4 20432.3 15638.6 99.4 -21.3 17180.4 14384.5 94.3 -26.5 15816.8 13855.6 91 -29.2 15071.8 14308.3 93.2 -30.8 14521.1 15290.6 103.1 -30.9 15668.8 14423.8 94.1 -29.5 14346.9 13779.7 91.8 -27.1 13881 15686.3 102.7 -24.4 15465.9 14733.8 82.6 -21.9 14238.2 12522.5 89.1 -19.3 13557.7 16189.4 104.5 -17.0 16127.6 16059.1 105.1 -13.8 16793.9 16007.1 95.1 -9.9 16014 15806.8 88.7 -7.9 16867.9 15160 86.3 -7.2 16014.6 15692.1 91.8 -6.2 15878.6 18908.9 111.5 -4.5 18664.9 16969.9 99.7 -3.9 17962.5 16997.5 97.5 -5.0 17332.7 19858.9 111.7 -6.2 19542.1 17681.2 86.2 -6.1 17203.6 16006.9 95.4 -5.0 16579
Names of X columns:
uitvoer productie ondernemersvertrouwen invoer
Type of Correlation
pearson
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
1 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation