Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
1213.8 1245.6 1306.3 1255.8 1257.6 1287.8 1300.4 1320.9 1370.8 1327.3 1320 1345.3 1346.7 1395.4 1462 1491.6 1461.8 1477.9 1490.3 1521.1 1561.9 1552.6 1523.6 1548.3 1552.4 1587 1621.3 1648.7 1641.8 1650.6 1688.6 1670.7 1682.2 1678.9 1650.6 1662.4 1664.5 1683.2 1736.2 1747.6 1749 1759.7 1793.6 1817.4 1858.4 1839.9 1809.1 1877.7 1880.3 1930.9 2039.3 1992.7 1987.8 1984.4 2016.5 2016.7 2064.1 2031.5 2000.3 2057.8 2041.2 2093.2 2158.3 2128.8 2131.9 2170.3 2190.8 2217.7 2254.4 2223.3 2210.5 2250.8 2249.1 2288.6 2329.2 2313.8 2309.8 2345.9 2361.3 2372 2410.4 2398.5 2362.3 2419.1 2421.6 2465 2480.5 2506.1 2506.6 2525.8 2550 2578.3 2807.8 2815.3 2767.7 2815.4 2838.8 2864 2948.6 2922.8 2917.2 2936.8 2993.4 3007.8 3046.3 3011.5 2958.6 3019.8 2998.5 3040.4 3166 3110 3099.2 3150.3 3163.6 3182.6 3244.4 3223.2 3143.6 3217 3182.3 3217.2 3262.5 3227.9 3171.6 3219 3195.4 3221.6 3262.1 3179.5 3133.6 3219.2 3245 3265.3 3312.5 3383.6 3386.3 3411.1 3467.2 3487.7 3575.5 3571.5 3582.3 3637.1 3685
Data Y:
2430.47 2516.3 2633.63 2799.84 3001.93 3229.29 3173.02 3322.08 3417.88 3486.95 3016.22 2709.61 2914.87 3203.08 3320.25 3446.25 3456.85 3566.53 3763.67 3607.75 3747.38 3623.91 3699.76 3629.61 3911.52 4281.47 4742.42 4522.42 4879.79 5059.11 5093.19 4941.81 4832.67 4876.18 5018.07 4780.34 4953.59 4622.32 4557.13 4560.03 4105.66 4004.89 4277.26 4245.98 4057.64 3931.42 3637.15 3339.91 3465.74 3571.25 3706.93 3584.17 3552.11 3695.24 3510 3357.7 3060.91 2736.98 2709.45 2314.96 2561.29 2663.49 2407.87 2237.74 2165.44 2098.89 2318.54 2315.49 2395.47 2474.07 2479.57 2386.92 2537.84 2567.13 2660.37 2696.28 2748.5 2663.32 2707.69 2669.36 2687.68 2650.24 2620.03 2668.47 2692.06 2737.67 2774.77 2819.19 2892.56 2866.08 2817.41 2934.75 3036.54 3139.5 3114.31 3261.3 3201.79 3264.53 3349.1 3446.17 3469.48 3507.13 3536.2 3359.05 3378.85 3449.15 3522.89 3551.04 3669.15 3602 3697.22 3760.9 3665.08 3708.8 3858.21 3933.16 3946.98 3794.29 3765.56 3820.33 3885.12 3752.67 3683.79 3240.75 3188.82 3017.98 3237.2 3182.53 2906.42 2881.35 2915.64 2635.13 2331.43 2159.04 2065.46 1983.48 1770.41 1815.99 2026.97 2124.81 2098.28 2291.39 2401.57 2453.89 2409.53
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
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation