Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_correlation.wasp
Title produced by softwarePearson Correlation
Date of computationMon, 20 Jul 2015 04:15:23 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Jul/20/t1437362393cyi4jsumengipsl.htm/, Retrieved Fri, 17 May 2024 03:23:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=279595, Retrieved Fri, 17 May 2024 03:23:39 +0000
QR Codes:

Original text written by user:Relación entre el número de consultas médicas y camas para hospitalización necesarias en un hospital
IsPrivate?No (this computation is public)
User-defined keywordsConsultas médicas, Camas hospitalarias
Estimated Impact150
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Pearson Correlation] [Análisis de uso d...] [2015-07-20 03:15:23] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
 462.66 
 103.13 
 265.94 
 137.73 
 249.37 
 400.47 
 427.97 
 59.34 
 133.92 
 144.60 
 153.77 
 102.75 
 173.26 
 30.22 
 280.39 
 890.48 
 174.62 
 784.39 
 735.10 
 2,639.02 
 138.68 
 526.43 
 196.95 
 783.62 
 98.54 
 100.42 
 6.97 
 1,131.01 
 236.51 
 217.22 
 422.70 
 504.00 
 274.77 
 301.39 
 154.47 
 97.39 
 209.62 
 1,029.53 
 144.20 
 174.96 
 360.06 
 241.70 
 202.70 
 127.79 
 7.21 
 228.11 
 94.69 
 3,592.06 
 470.48 
 731.63 
 296.41 
 295.50 
 663.91 
 336.81 
 111.93 
 126.49 
 264.58 
 573.71 
 296.00 
 228.99 
 176.64 
 297.17 
 263.96 
 98.11 
 215.25 
 984.02 
 110.86 
 272.88 
 139.72 
 417.95 
 614.11 
 287.18 
 59.34 
 145.55 
 134.37 
 161.62 
 109.48 
 204.80 
 29.16 
 345.04 
 786.25 
 170.28 
 798.66 
 2,357.94 
 130.53 
 261.66 
 160.17 
 1,010.55 
 307.91 
 242.73 
 843.94 
 96.83 
 211.38 
 83.53 
 572.50 
 261.54 
 303.30 
 190.82 
 90.70 
 152.20 
 150.16 
 125.24 
 328.34 
 205.14 
 148.73 
 132.39 
 6.59 
 222.20 
 131.74 
 4,317.98 
 453.93 
 777.87 
 351.05 
 720.76 
 319.82 
 131.72 
 263.22 
 142.76 
 315.42 
 571.03 
 420.87 
 301.09 
 1,157.97 
 509.92 
 321.91 
 7.89 
 159.20 
 230.92 
 229.27 
 169.46 
 6.36 
 84.81 
 479.72 
 1,214.13 
 108.25 
 252.57 
 24.64 
 93.97 
 492.75 
 771.71 
 312.76 
 298.89 
 99.88 
 170.69 
 75.12 
 221.22 
 28.16 
 348.46 
 809.56 
 140.54 
 413.57 
 2,549.59 
 3,997.41 
 119.39 
 1,180.91 
 201.56 
 978.80 
 332.30 
 281.19 
 848.84 
 162.70 
 220.93 
 83.68 
 727.24 
 274.77 
 251.84 
 141.95 
 58.34 
 167.68 
 98.84 
 109.19 
 671.05 
 187.07 
 128.92 
 5.82 
 234.19 
 103.41 
 4,718.97 
 467.28 
 619.98 
 371.66 
 404.68 
 713.50 
 303.28 
 291.40 
 143.77 
 331.38 
 583.48 
 334.01 
 554.98 
 320.00 
 932.55 
 599.51 
 344.18 
 6.50 
 173.61 
 313.94 
 255.02 
 5.57 
 87.76 
 424.16 
 1,347.66 
 66.50 
 137.23 
 84.61 
 112.68 
 708.39 
 954.51 
 383.47 
 42.07 
 185.00 
 75.87 
 185.59 
 67.91 
 337.31 
 907.77 
 114.32 
 3,304.97 
 4,429.77 
 129.38 
 1,238.53 
 264.98 
 1,328.02 
 296.68 
 786.87 
 26.15 
 922.97 
 310.83 
 161.80 
 80.84 
 13.95 
 74.30 
 47.78 
 887.44 
 41.80 
 12.82 
 228.61 
 5,665.81 
 491.28 
 1,145.74 
 401.75 
 402.72 
 720.76 
 282.63 
 153.65 
 209.41 
 142.15 
 332.53 
 556.16 
 308.83 
 241.24 
 1,143.64 
 617.31 
 348.58 
 105.44 
 248.17 
 335.32 
 276.03 
 153.49 
 5.72 
 434.04 
 66.13 
 118.06 
 71.82 
 109.51 
 205.72 
 789.28 
 1,083.59 
 241.23 
 75.69 
 101.10 
 100.74 
 152.82 
 818.97 
 60.46 
 353.92 
 1,032.28 
 81.27 
 1,054.03 
 0.02 
 4,963.36 
 96.21 
 850.33 
 534.97 
 1,246.00 
 184.75 
 337.32 
 478.81 
 52.30 
 200.61 
 88.89 
 996.02 
 275.78 
 145.80 
 92.02 
 16.14 
 245.41 
 82.42 
 3.17 
 979.04 
 245.71 
 52.33 
 110.98 
 2.08 
 311.06 
 73.70 
 4,894.63 
 574.85 
 782.33 
 317.61 
 406.89 
 793.07 
 421.69 
 166.67 
 252.03 
 0.65 
 346.10 
 393.63 
 706.76 
 162.84 
 1,274.41 
 556.01 
 567.50 
 2.02 
 418.41 
 359.11 
 450.54 
 270.33 
Dataseries Y:
 165.89 
 9.18 
 79.84 
 101.88 
 136.56 
 45.27 
 35.48 
 6.62 
 40.47 
 19.38 
 92.68 
 26.05 
 52.13 
 5.61 
 47.88 
 347.93 
 67.22 
 205.73 
 601.39 
 359.43 
 37.78 
 436.79 
 65.39 
 282.10 
 20.21 
 22.94 
 13.44 
 31.45 
 33.79 
 130.22 
 33.38 
 49.93 
 128.34 
 68.09 
 49.64 
 21.56 
 166.85 
 63.48 
 72.70 
 28.38 
 43.04 
 154.14 
 59.63 
 51.50 
 43.35 
 41.67 
 39.08 
 522.74 
 184.53 
 297.43 
 120.95 
 69.09 
 133.89 
 59.98 
 223.17 
 13.73 
 209.02 
 88.15 
 40.28 
 18.43 
 28.17 
 56.45 
 201.51 
 10.21 
 116.81 
 148.53 
 58.84 
 77.50 
 112.12 
 48.95 
 47.36 
 160.35 
 7.96 
 37.13 
 18.93 
 104.64 
 21.73 
 63.37 
 4.88 
 54.05 
 348.71 
 70.65 
 231.20 
 374.92 
 29.08 
 441.02 
 74.13 
 47.60 
 40.82 
 65.21 
 332.60 
 28.70 
 125.37 
 51.88 
 62.16 
 136.05 
 70.46 
 47.58 
 18.59 
 172.65 
 74.64 
 30.87 
 45.82 
 155.32 
 62.41 
 49.76 
 38.51 
 49.52 
 46.62 
 508.54 
 197.04 
 326.15 
 158.38 
 149.50 
 64.06 
 226.83 
 119.28 
 14.84 
 230.15 
 99.53 
 66.00 
 197.53 
 90.68 
 45.29 
 15.74 
 57.74 
 47.32 
 43.56 
 68.88 
 9.51 
 50.75 
 15.71 
 167.70 
 144.08 
 62.42 
 79.58 
 113.17 
 135.90 
 62.67 
 55.05 
 156.67 
 41.85 
 17.05 
 106.33 
 17.26 
 84.28 
 4.19 
 59.24 
 365.42 
 62.96 
 258.74 
 605.71 
 375.67 
 20.70 
 410.27 
 83.55 
 65.90 
 42.89 
 64.27 
 302.61 
 47.92 
 126.98 
 52.77 
 79.86 
 134.14 
 67.29 
 46.36 
 21.57 
 199.34 
 73.39 
 31.63 
 73.25 
 155.85 
 59.65 
 55.35 
 43.28 
 47.21 
 532.70 
 187.93 
 336.20 
 156.39 
 69.50 
 160.84 
 81.32 
 123.02 
 14.66 
 245.81 
 102.64 
 44.76 
 102.55 
 213.80 
 102.31 
 54.74 
 28.83 
 57.62 
 54.17 
 76.39 
 63.38 
 59.45 
 15.56 
 185.46 
 164.88 
 61.22 
 89.07 
 49.89 
 120.19 
 89.93 
 57.05 
 149.03 
 6.77 
 57.94 
 18.96 
 48.04 
 18.73 
 51.14 
 284.48 
 58.60 
 584.48 
 370.18 
 17.70 
 424.96 
 83.77 
 79.15 
 69.63 
 328.02 
 87.33 
 93.34 
 151.00 
 71.43 
 54.17 
 19.47 
 88.78 
 34.77 
 86.75 
 71.91 
 65.13 
 45.27 
 526.69 
 209.80 
 374.72 
 164.75 
 66.07 
 168.21 
 60.57 
 212.78 
 134.68 
 14.83 
 258.62 
 96.51 
 44.78 
 220.44 
 126.21 
 62.96 
 31.64 
 20.02 
 53.15 
 84.75 
 74.07 
 1.44 
 45.04 
 383.94 
 189.89 
 245.06 
 397.59 
 185.06 
 339.35 
 131.76 
 55.16 
 298.14 
 144.40 
 79.48 
 112.71 
 269.16 
 191.93 
 775.30 
 284.12 
 480.56 
 366.83 
 274.81 
 708.45 
 450.91 
 548.10 
 623.20 
 147.62 
 184.14 
 207.59 
 183.55 
 419.09 
 166.73 
 221.77 
 121.34 
 136.11 
 297.50 
 168.64 
 86.64 
 126.75 
 399.37 
 222.87 
 66.83 
 116.55 
 111.21 
 201.94 
 75.00 
 149.96 
 142.80 
 88.12 
 752.00 
 347.13 
 503.74 
 256.75 
 204.43 
 329.21 
 77.74 
 270.74 
 186.22 
 176.09 
 448.29 
 83.80 
 194.71 
 411.82 
 111.74 
 265.19 
 232.57 
 199.79 
 211.28 
 91.48 
 160.45 
 120.69 




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 1 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=279595&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=279595&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=279595&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
x <- x[!is.na(y)]
y <- y[!is.na(y)]
y <- y[!is.na(x)]
x <- x[!is.na(x)]
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, sub=main)
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', na.rm = T)
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('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('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('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('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('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('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('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')
library(moments)
library(nortest)
jarque.x <- jarque.test(x)
jarque.y <- jarque.test(y)
if(lx>7) {
ad.x <- ad.test(x)
ad.y <- ad.test(y)
}
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Normality Tests',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('jarque.x'),'
',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('jarque.y'),'
',sep=''))
a<-table.row.end(a)
if(lx>7) {
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('ad.x'),'
',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('ad.y'),'
',sep=''))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
library(car)
bitmap(file='test2.png')
qq.plot(x,main='QQplot of variable x')
dev.off()
bitmap(file='test3.png')
qq.plot(y,main='QQplot of variable y')
dev.off()