Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
91.25 91.5 91.68 91.81 91.84 91.93 92.08 92.11 92.26 92.28 92.39 92.46 92.82 93.16 93.33 93.51 93.56 93.67 93.76 93.88 94.01 94.21 94.31 94.4 94.9 95.31 95.52 95.68 95.91 95.97 96.15 96.34 96.42 96.54 96.72 96.81 97.19 97.5 97.71 97.86 98.04 98.2 98.25 98.41 98.56 98.62 98.75 98.71 99.05 99.52 99.71 99.8 100.01 99.99 100.12 100.15 100.27 100.42 100.43 100.5 100.95 101.26 101.42 101.68 101.75 101.89 102.07 102.22 102.45 102.62 102.67 102.86 104.78 104.87 105.06 105.14 105.32 105.54 105.68 105.77 106.07 106.03 106.13 106.28 106.61 106.74 107.01 107.1 107.28 107.4 107.59 107.69 107.78
Data Y:
90.49 90.65 90.95 91.19 91.07 91.15 91.81 91.95 91.62 91.27 91.4 91.76 91.99 92.34 92.3 92.85 92.94 93.26 94.21 94.08 93.98 94.23 94.93 95.09 95.37 96.23 96.2 95.43 95.63 95.96 96.51 96.65 96.21 95.54 95.96 96.41 96.32 96.94 96.97 97.63 97.33 97.66 98.18 98.22 97.91 97.93 98.4 98.78 98.73 99.4 99.04 99.68 99.62 99.8 100.65 100.59 100.46 100.57 100.75 100.7 101.44 101.77 101.79 101.52 101.83 102.23 103.04 102.81 102.48 102.81 103.21 103.21 102.92 103.48 103.18 103.39 103.5 103.73 104.42 104.53 104.09 104.23 104.23 104.54 104.65 105.48 105.61 105.74 105.86 105.81 106.49 106.43 105.73
Chart options
Title:
Label y-axis:
Label x-axis:
R Code
bitmap(file='test1.png') histx <- hist(x, plot=FALSE) histy <- hist(y, plot=FALSE) maxcounts <- max(c(histx$counts, histx$counts)) xrange <- c(min(x),max(x)) yrange <- c(min(y),max(y)) nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), c(3,1), c(1,3), TRUE) par(mar=c(4,4,1,1)) plot(x, y, xlim=xrange, ylim=yrange, xlab=xlab, ylab=ylab) par(mar=c(0,4,1,1)) barplot(histx$counts, axes=FALSE, ylim=c(0, maxcounts), space=0) par(mar=c(4,0,1,1)) barplot(histy$counts, axes=FALSE, xlim=c(0, maxcounts), space=0, horiz=TRUE) dev.off() lx = length(x) makebiased = (lx-1)/lx varx = var(x)*makebiased vary = var(y)*makebiased corxy <- cor.test(x,y,method='pearson') cxy <- as.matrix(corxy$estimate)[1,1] load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Pearson Product Moment Correlation - Ungrouped Data',3,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Statistic',1,TRUE) a<-table.element(a,'Variable X',1,TRUE) a<-table.element(a,'Variable Y',1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm','Mean',''),header=TRUE) a<-table.element(a,mean(x)) a<-table.element(a,mean(y)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/biased.htm','Biased Variance',''),header=TRUE) a<-table.element(a,varx) a<-table.element(a,vary) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/biased1.htm','Biased Standard Deviation',''),header=TRUE) a<-table.element(a,sqrt(varx)) a<-table.element(a,sqrt(vary)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/covariance.htm','Covariance',''),header=TRUE) a<-table.element(a,cov(x,y),2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/pearson_correlation.htm','Correlation',''),header=TRUE) a<-table.element(a,cxy,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/coeff_of_determination.htm','Determination',''),header=TRUE) a<-table.element(a,cxy*cxy,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/ttest_statistic.htm','T-Test',''),header=TRUE) a<-table.element(a,as.matrix(corxy$statistic)[1,1],2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value (2 sided)',header=TRUE) a<-table.element(a,(p2 <- as.matrix(corxy$p.value)[1,1]),2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value (1 sided)',header=TRUE) a<-table.element(a,p2/2,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Degrees of Freedom',header=TRUE) a<-table.element(a,lx-2,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Number of Observations',header=TRUE) a<-table.element(a,lx,2) 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
1 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation