Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_grangercausality.wasp
Title produced by softwareBivariate Granger Causality
Date of computationWed, 05 Nov 2025 05:57:12 +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/2025/Nov/05/t1762319148iuwknl699evb5of.htm/, Retrieved Mon, 20 Apr 2026 21:18:39 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Mon, 20 Apr 2026 21:18:39 +0200
QR Codes:

Original text written by user:(Weekly Test Volume) X (Weekly Percent Test Positivity) /100 is equal to (Weekly Positive Test Results) (Weekly Positive Test Results) is a far better predictor of COVID Deaths than (Weekly Percent Test Positivity). This supports the hypothesis that test sample collection forces virus, formerly trapped safely on the nasophryngeal mucus, into contact with bloodstream and epithelial cells in which it can rapidly reproduce, leading to death.
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
3051.75
1985.412
2630.853
3025.584
2568.995
2962.035
2958.208
2751.749
2860.98
2541.07
3061.628
3387.348
3881.84
4881.98
6963.534
10119.195
14343.872
17467.008
15653.112
13410.75
12351.112
9606.755
7392.632
5753.58
5205.228
4656.12
4568.488
4068.9
4216.848
4353.831
5047.875
5851.821
6868.734
8571.548
7976.39
10126.71
8931.859
15356.4
16470.454
17674.74
12889.841
16975.995
22361.217
15012.269
11830.676
7471.036
5589.76
4396.098
2760.092
2763.724
4234.726
3419.784
3072.096
2956.628
2946.24
2962.883
3471.6
3543.056
3149.454
2572.009
1913.328
1628.694
1065.78
777.138
702.316
713.92
868.476
1153.673
1763.142
3316.95
6243.26
10342.995
15556.257
20528.469
23780.966
22754.088
17585.854
12213.6
11091.522
7761.015
5752.726
4198.968
3092.28
2472.939
2011.509
1819.017
1739.712
1942.5
1738.648
2774.38
2799.441
5766.562
10292.91
25930.616
42559.2
36967.052
25255.104
19886.968
11597.386
6840.184
4138.24
2457.376
1405.6
1017.544
859.88
725.901
706.35
729.307
1029.912
1431.36
1871.532
2462.096
3455.53
3483.137
3383.387
3851.172
3920.472
3812.319
3681.76
4311.856
4426.695
5198.028
5855.25
4908.992
4392.294
3907.764
3760.776
3819.948
3203.012
2519.04
1992.978
1634.946
646.123
590.778
559.44
520.04
587.509
612.3
550.316
548.867
618.775
968.1
1021.524
1180.752
1193.815
1489.74
1465.965
1214.922
1126.71
1068.028
1037.97
1028.688
849.156
650.69
477.62
429.45
335.2
403.344
259.654
326.304
307.694
265.525
274.641
257.278
245.643
221.436
223.944
177.242
202.007
178.227
182.277
181.95
201.9
218.752
336.864
518.16
520.19
607.194
788.073
1372.464
957.309
1041.66
920.692
802.948
714.574
568.425
517.51
566.588
545.79
543.973
617.964
606.43
609.769
694.664
773.856
886.668
1043.652
1347.621
1308.503
1190.09
1071.056
1210.224
1214.514
1256.827
1108.335
1028.768
884.64
662.652
433.542
360.15
343.332
273.02
217.512
168.13
151.9
151.041
106.974
102.627
106.15
93.856
140.876
173.85
195.489
269.885
335.298
499.944
515.052
774.78
868.224
1032.056
1281.826
1144.884
1549.968
1255.815
740.565
498.18
331.68
246
190.19
176.31
158.13
184.063
119.438
135.2
121.026
122.778
154.707
198.05
247.66
297.591
400.816
258.264
352.573
412.501
417.45
464.683
434.94
320.416
343.867
351.472
387.85
337.25
288.815
253.9
234.108
209
179.06
121.392
121.725
117.05
98.028
63.053
71.4
109.485
97.032
90.9
97.774
147.84
193.004
210.08
270.9
286.15
243.984
Dataseries Y:
81
267
717
889
1031
1013
1038
1020
942
828
902
792
704
725
915
1152
1673
2335
2892
3131
3009
2698
2387
2127
1813
1616
1473
1414
1177
1282
1364
1385
1524
1628
1832
2042
2270
2739
3130
3488
3973
4566
5089
5519
5342
4619
3872
3006
2439
1973
1557
1320
1087
1004
961
887
873
972
878
908
813
755
675
608
509
423
398
388
446
580
919
1559
2684
4119
5375
6204
6698
6376
5923
5202
4216
3284
2573
2096
1528
1235
1035
883
851
937
1001
1128
1234
1531
2393
3567
4307
4924
4682
4087
3181
2269
1696
1211
826
647
482
382
345
301
302
273
296
320
383
427
472
552
640
651
724
818
926
906
949
939
933
879
807
760
677
689
566
533
485
466
460
456
377
438
456
460
537
551
572
710
905
890
874
740
710
585
511
525
422
369
347
378
303
288
249
246
252
231
217
167
186
183
169
173
174
149
158
160
163
182
266
267
291
328
386
408
418
396
377
327
301
307
251
245
288
288
237
301
325
338
345
421
509
567
509
493
434
428
386
384
386
356
299
251
212
192
155
139
115
130
83
93
78
84
71
92
109
108
148
175
217
238
260
283
301
304
382
329
338
237
256
191
153
179
127
112
116
105
75
110
123
114
110
105
171
215
180
183
180
175
151
152
153
142
133
127
155
124
118
102
81
61
67
55
62
55
42
33
40
51
44
49
60
56
50
50
31




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 time3 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]3 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 time3 seconds
R ServerBig Analytics Cloud Computing Center







Granger Causality Test: Y = f(X)
ModelRes.DFDiff. DFFp-value
Complete model279
Reduced model280-1444.0762533176561.22814865610815e-59

\begin{tabular}{lllllllll}
\hline
Granger Causality Test: Y = f(X) \tabularnewline
Model & Res.DF & Diff. DF & F & p-value \tabularnewline
Complete model & 279 &  &  &  \tabularnewline
Reduced model & 280 & -1 & 444.076253317656 & 1.22814865610815e-59 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&T=1

[TABLE]
[ROW][C]Granger Causality Test: Y = f(X)[/C][/ROW]
[ROW][C]Model[/C][C]Res.DF[/C][C]Diff. DF[/C][C]F[/C][C]p-value[/C][/ROW]
[ROW][C]Complete model[/C][C]279[/C][C][/C][C][/C][C][/C][/ROW]
[ROW][C]Reduced model[/C][C]280[/C][C]-1[/C][C]444.076253317656[/C][C]1.22814865610815e-59[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

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

As an alternative you can also use a QR Code:  

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

Granger Causality Test: Y = f(X)
ModelRes.DFDiff. DFFp-value
Complete model279
Reduced model280-1444.0762533176561.22814865610815e-59







Granger Causality Test: X = f(Y)
ModelRes.DFDiff. DFFp-value
Complete model279
Reduced model280-122.32407474635523.65513677540534e-06

\begin{tabular}{lllllllll}
\hline
Granger Causality Test: X = f(Y) \tabularnewline
Model & Res.DF & Diff. DF & F & p-value \tabularnewline
Complete model & 279 &  &  &  \tabularnewline
Reduced model & 280 & -1 & 22.3240747463552 & 3.65513677540534e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&T=2

[TABLE]
[ROW][C]Granger Causality Test: X = f(Y)[/C][/ROW]
[ROW][C]Model[/C][C]Res.DF[/C][C]Diff. DF[/C][C]F[/C][C]p-value[/C][/ROW]
[ROW][C]Complete model[/C][C]279[/C][C][/C][C][/C][C][/C][/ROW]
[ROW][C]Reduced model[/C][C]280[/C][C]-1[/C][C]22.3240747463552[/C][C]3.65513677540534e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=2

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

As an alternative you can also use a QR Code:  

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

Granger Causality Test: X = f(Y)
ModelRes.DFDiff. DFFp-value
Complete model279
Reduced model280-122.32407474635523.65513677540534e-06



Parameters (Session):
Parameters (R input):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = 1 ;
R code (references can be found in the software module):
library(lmtest)
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
par6 <- as.numeric(par6)
par7 <- as.numeric(par7)
par8 <- as.numeric(par8)
ox <- x
oy <- y
if (par1 == 0) {
x <- log(x)
} else {
x <- (x ^ par1 - 1) / par1
}
if (par5 == 0) {
y <- log(y)
} else {
y <- (y ^ par5 - 1) / par5
}
if (par2 > 0) x <- diff(x,lag=1,difference=par2)
if (par6 > 0) y <- diff(y,lag=1,difference=par6)
if (par3 > 0) x <- diff(x,lag=par4,difference=par3)
if (par7 > 0) y <- diff(y,lag=par4,difference=par7)
print(x)
print(y)
(gyx <- grangertest(y ~ x, order=par8))
(gxy <- grangertest(x ~ y, order=par8))
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
(r <- ccf(ox,oy,main='Cross Correlation Function (raw data)',ylab='CCF',xlab='Lag (k)'))
(r <- ccf(x,y,main='Cross Correlation Function (transformed and differenced)',ylab='CCF',xlab='Lag (k)'))
par(op)
dev.off()
bitmap(file='test2.png')
op <- par(mfrow=c(2,1))
acf(ox,lag.max=round(length(x)/2),main='ACF of x (raw)')
acf(x,lag.max=round(length(x)/2),main='ACF of x (transformed and differenced)')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow=c(2,1))
acf(oy,lag.max=round(length(y)/2),main='ACF of y (raw)')
acf(y,lag.max=round(length(y)/2),main='ACF of y (transformed and differenced)')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Granger Causality Test: Y = f(X)',5,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Model',header=TRUE)
a<-table.element(a,'Res.DF',header=TRUE)
a<-table.element(a,'Diff. DF',header=TRUE)
a<-table.element(a,'F',header=TRUE)
a<-table.element(a,'p-value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Complete model',header=TRUE)
a<-table.element(a,gyx$Res.Df[1])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Reduced model',header=TRUE)
a<-table.element(a,gyx$Res.Df[2])
a<-table.element(a,gyx$Df[2])
a<-table.element(a,gyx$F[2])
a<-table.element(a,gyx$Pr[2])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Granger Causality Test: X = f(Y)',5,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Model',header=TRUE)
a<-table.element(a,'Res.DF',header=TRUE)
a<-table.element(a,'Diff. DF',header=TRUE)
a<-table.element(a,'F',header=TRUE)
a<-table.element(a,'p-value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Complete model',header=TRUE)
a<-table.element(a,gxy$Res.Df[1])
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.element(a,'')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Reduced model',header=TRUE)
a<-table.element(a,gxy$Res.Df[2])
a<-table.element(a,gxy$Df[2])
a<-table.element(a,gxy$F[2])
a<-table.element(a,gxy$Pr[2])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')