Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_correlation.wasp
Title produced by softwarePearson Correlation
Date of computationWed, 05 Dec 2018 17:03:18 +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/2018/Dec/05/t15440259254bs3x6qyyitfnmh.htm/, Retrieved Fri, 03 May 2024 20:20:30 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Fri, 03 May 2024 20:20:30 +0200
QR Codes:

Original text written by user:Sampling Frequency
IsPrivate?This computation is private
User-defined keywordsXL
Estimated Impact0
Dataseries X:
03-Nov-15
10-Nov-15
17-Nov-15
24-Nov-15
08-Dec-15
15-Dec-15
29-Dec-15
05-Jan-16
12-Jan-16
19-Jan-16
26-Jan-16
02-Feb-16
09-Feb-16
16-Feb-16
23-Feb-16
01-Mar-16
08-Mar-16
15-Mar-16
29-Mar-16
29-Apr-16
03-May-16
10-May-16
17-May-16
24-May-16
31-May-16
07-Jun-16
14-Jun-16
21-Jun-16
28-Jun-16
05_Jul_16
12_Jul_16
19-Jul-16
27-Jul-16
04_Aug_16
24_Aug_16
30_Aug_16
06_Sept_16
13_Sept_16
20_Sept_16
27_Sept_16
04-Oct-16
11-Oct-16
18-Oct-16
25-Oct-16
01-Nov-16
08-Nov-16
15-Nov-16
22-Nov-16
29-Nov-16
13-Dec-16
20-Dec-16
03-Jan-17
10-Jan-17
18-Jan-17
24-Jan-17
31-Jan-17
07-Feb-17
15-Feb-17
21-Feb-17
01-Mar-17
07-Mar-17
14-Mar-17
22-Mar-17
28-Mar-17
11-Apr-17
18-Apr-17
25-Apr-17
05-May-17
09-May-17
16-May-17
23-May-17
30-May-17
06-Jun-17
13-Jun-17
20-Jun-17
27-Jun-17
04-Jul-17
11-Jul-17
26-Jul-17
15-Aug-17
22-Aug-17
30-Aug-17
05-Sep-17
12-Sep-17
19-Sep-17
27-Sep-17
03-Oct-17
24-Oct-17
31-Oct-17
07-Nov-17
14-Nov-17
21-Nov-17
28-Nov-17
05-Dec-17
11-Dec-17
27-Dec-17
02-Jan-18
09-Jan-18
16-Jan-18
23-Jan-18
30-Jan-18
07-Feb-18
13-Feb-18
20-Feb-18
27-Feb-18
06-Mar-18
13-Mar-18
20-Mar-18
27-Mar-18
03-Apr-18
10-Apr-18
17-Apr-18
24-Apr-18
02-May-18
08-May-18
15-May-18
22-May-18
29-May-18
05-Jun-18
12-Jun-18
19-Jun-18
26-Jun-18
03-Jul-18
10-Jul-18
17-Jul-18
24-Jul-18
31-Jul-18
07-Aug-18
14-Aug-18
28-Aug-18
04-Sep-18
11-Sep-18
18-Sep-18
25-Sep-18
02-Oct-18
09-Oct-18
16-Oct-18
23-Oct-18
Dataseries Y:
1000
117200
44400
38600
72000
54600
26200
10000
1356
8000
6600
52000
45400
38400
28800
80400
8200
13000
1600
12400
55400
83000
55800
42600
55780
66400
96200
11800
57600
102200
51400
36400
21800
51200
49600
37000
49800
46400
38800
98200
22600
19000
54400
28600
41400
98400
133800
68000
139800
58400
19000
41800
44200
37600
38000
20600
39000
55800
35200
25600
47800
54000
52600
41000
45600
31600
55800
87000
45000
61400
61200
55600
55400
43600
50600
50800
50000
47800
57800
53400
45600
53400
48600
63800
67400
58800
52800
56200
55000
60800
98200
63000
52800
57000
41000
90000
144600
88000
121200
117000
93800
123400
37600
52400
60000
38600
72000
63600
97000
76200
47800
6000
31400
62800
80200
49000
2600
32200
87400
93400
78400
62200
61800
110000
114600
45000
125800
57000
60400
58200
50200
62600
71000
49000
60600
36400
66400
76400




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time0 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]0 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
library(psychometric)
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,'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,'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,'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,'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,'Correlation',header=TRUE)
a<-table.element(a,cxy,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Determination',header=TRUE)
a<-table.element(a,cxy*cxy,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'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,'95% CI of Correlation',header=TRUE)
a<-table.element(a,paste('[',CIr(r=cxy, n = lx, level = .95)[1],', ', CIr(r=cxy, n = lx, level = .95)[2],']',sep=''),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')
qqPlot(x,main='QQplot of variable x')
dev.off()
bitmap(file='test3.png')
qqPlot(y,main='QQplot of variable y')
dev.off()