Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_grangercausality.wasp
Title produced by softwareBivariate Granger Causality
Date of computationTue, 21 Jun 2016 16:24:54 +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/2016/Jun/21/t1466522958atmnjqeqx9gdwel.htm/, Retrieved Sun, 28 Apr 2024 04:43:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=295773, Retrieved Sun, 28 Apr 2024 04:43:26 +0000
QR Codes:

Original text written by user:Hey Av This is the result of our tests. The Y value is price The x value is sentiment We seem to have a confirmed correlation as the "P" value is greater than 1 Can we discuss?
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Bivariate Granger Causality] [Data for AV] [2016-06-21 15:24:54] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.50009978
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.475753343
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.526641389
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.541209339
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
0.819796448
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
1.065855119
5.065855119
15.06585512
9.065855119
4.065855119
1.854320495
3.854320495
1.854320495
3.854320495
2.854320495
1.854320495
3.854320495
0.854320495
20.85432049
3.854320495
4.854320495
1.854320495
6.854320495
2.854320495
3.854320495
4.854320495
1.854320495
-0.145679505
2.854320495
2.854320495
2.854320495
5.854320495
5.854320495
1.854320495
0.854320495
3.854320495
3.854320495
-0.145679505
0.854320495
1.854320495
20.85432049
2.854320495
3.854320495
2.854320495
1.854320495
2.854320495
3.854320495
6.854320495
0.854320495
2.854320495
2.854320495
1.854320495
1.854320495
1.854320495
5.854320495
0.854320495
0.854320495
2.854320495
2.854320495
1.854320495
1.854320495
2.854320495
0.854320495
5.854320495
5.854320495
3.854320495
1.854320495
0.854320495
6.854320495
3.854320495
1.854320495
5.854320495
0.854320495
0.854320495
4.854320495
-0.145679505
3
7
4
1
3
5
6
11
6
7
2
1
Dataseries Y:
0.485602623
0.470553883
0.477965949
0.49638381
0.521764521
0.525582858
0.518844616
0.509411078
0.482682719
0.486545977
0.479807736
0.489645568
0.499663088
0.500247069
0.497417007
0.495350613
0.482278424
0.473473788
0.472260905
0.473698396
0.481649522
0.474282377
0.464085171
0.463276582
0.462018777
0.463456269
0.476528458
0.468981627
0.477786263
0.477381968
0.469385922
0.48187413
0.512959885
0.512959885
0.505997035
0.509455999
0.472036297
0.44508333
0.500471677
0.485333094
0.490454157
0.474731593
0.462018777
0.470419119
0.45038408
0.458784421
0.43281973
0.429944746
0.41583936
0.393109025
0.388437177
0.393109025
0.411122591
0.395804321
0.403306231
0.414806163
0.403710525
0.40384529
0.40384529
0.40384529
0.415614752
0.42585688
0.43645838
0.441399757
0.399173442
0.396478146
0.406944881
0.419702619
0.420106913
0.399712502
0.404653879
0.406585508
0.413772966
0.443645838
0.433224024
0.426261174
0.414401869
0.397646108
0.385652037
0.378868874
0.375769283
0.392839495
0.433808005
0.426261174
0.442388033
0.446071605
0.461210188
0.421140111
0.426440861
0.418714343
0.443241544
0.45038408
0.47185661
0.49108306
0.480616325
0.464264858
0.472665199
0.482907327
0.492295944
0.486141683
0.48021203
0.490454157
0.476528458
0.487579174
0.470598805
0.45038408
0.47881946
0.468173038
0.485333094
0.493104533
0.49413773
0.489016666
0.511297785
0.508243116
0.513543866
0.521315305
0.524190288
0.52091101
0.551188177
0.555051435
0.551188177
0.550963569
0.549930372
0.559139302
0.559139302
0.555276043
0.531737119
0.53317461
0.53317461
0.527649252
0.526840663
0.525403171
0.515205966
0.535241004
0.547504604
0.515789947
0.522123894
0.544000719
0.545258524
0.551367863
0.571402902
0.575086474
0.576703652
0.57998293
0.596334396
0.575311082
0.570998607
0.58222901
0.594312924
0.592650824
0.590719195
0.59170747
0.579488792
0.587170388
0.59170747
0.604285522
0.606262073
0.619424105
0.626881092
0.631418175
0.685324109
0.675486276
0.672341764
0.666232424
0.661695342
0.677238219
0.678630789
0.697497866
0.700058398
0.696913885
0.685728404
0.682583891
0.677462827
0.686312385
0.686312385
0.690445173
0.68451552
0.698306455
0.687660033
0.662683617
0.659763712
0.645388797
0.647140739
0.62180495
0.607834329
0.620187772
0.608822605
0.60311756
0.62373658
0.610574547
0.633170118
0.63712322
0.665648443
0.664255874
0.681954989
0.680787027
0.667041013
0.691792822
0.696329904
0.698306455
0.713265352
0.705988051
0.69731818
0.701046674
0.719554378
0.736085531
0.738421455
0.75890571
0.764970127
0.756929159
0.73940973
0.749247563
0.737253493
0.781096986
0.801760927
0.813754998
0.818876061
0.820268631
0.817708099
0.837159157
0.835811509
0.848793855
0.868469521
0.861955887
0.860383631
0.862135573
0.851713759
0.851534073
0.853286016
0.859395355
0.831454113
0.826557657
0.820852612
0.8283096
0.831678721
0.830465837
0.843448183
0.847580971
0.842100535
0.854094605
0.84308881
0.821256907
0.823188536
0.813395625
0.795471902
0.779749337
0.768339248
0.773639998
0.7881946
0.797044158
0.782489556
0.78680203
0.799784376
0.823592831
0.8283096
0.831274426
0.833655272
0.830286151
0.806702304
0.812587036
0.805489421
0.80099726
0.796639863
0.809846817
0.819280356
0.816540137
0.813575311
0.815147567
0.828893581
0.832666996
0.856250842
0.856655137
0.856071156
0.853780154
0.861596514
0.867526167
0.863528143
0.878981178
0.88544989
0.881047572
0.879520237
0.865235165
0.859125825
0.870940209
0.866942186
0.857778177
0.852432505
0.858541844
0.849422757
0.834329096
0.841786083
0.841786083
0.857598491
0.867121872
0.867121872
0.870760523
0.881047572
0.875162841
0.868110148
0.864651184
0.866178518
0.872871839
0.87345582
0.874399173
0.888100265
0.894434212
0.882979201
0.880508513
0.879160864
0.882799515
0.876106195
0.877229235
0.863123849
0.863123849
0.863123849
0.856655137
0.852252819
0.86483087
0.859889493
0.861416828
0.872692152
0.871703877
0.873231212
0.873231212
0.869233188
0.866178518
0.860832847
0.858766453
0.853016486
0.865819146
0.868110148
0.865414851
0.849422757
0.873994879
0.880688199
0.902609946
0.928574637
0.935807017
0.942275729
0.927990656
0.935807017
0.925879341
0.906607969
0.904900948
0.901486905
0.904316967
0.901262297
0.897848255
0.901666592
0.892906877
0.928574637
0.921881317
0.908135304
0.924172319
0.924172319
0.929877364
0.917883294
0.91388527
0.919230942
0.929338305
0.913121603
0.915592291
0.910830601
0.904721261
0.88239522
0.857598491
0.851489151
0.827456089
0.829567405
0.821930731
0.810880014
0.860832847
0.819819415
0.823637752
0.826108441
0.815237411
0.829567405
0.837743138
0.862360181
0.870760523
0.870760523
0.868469521
0.891918602
0.886617852
0.886617852
0.886617852
0.886617852
0.876285881
0.866178518
0.873635506
0.84614348
0.846727461
0.82916311
0.854723507
0.877453843
0.884865909
0.882080769
0.904227124
0.916311037
0.901441984
0.917254391
0.907775931
0.904047437
0.895647096
0.889133462
0.882844436
0.873321055
0.866852343
0.854948116
0.848209874
0.852881721
0.854543821
0.848614168
0.848973541
0.853061408
0.854948116
0.874623782
0.861641436
0.854948116
0.853241094
0.848209874
0.831858407
0.851219622
0.876151116
0.853645389
0.855846548
0.847850501
0.823098693
0.832038094
0.83221778
0.819774494
0.816046
0.814024527
0.823323301
0.801895692
0.852881721
0.880778042
0.897893176
0.892322897
0.907371636
0.908494677
0.904945869
0.925070752
0.933426171
0.939580432
0.966533399
0.966174026
0.956875253
0.956875253
0.945330398
0.948474911
0.943668299
0.953146759
0.946812812
0.948879206
0.945330398
0.942185886
0.941781591
0.940119491
0.960783433
0.961681865
0.949597952
0.946992498
0.944971026
0.936031625
0.930461345
0.927676205
0.925609811
0.92057859
0.920982885
0.918736804
0.916311037
0.918736804
0.908674363
0.912402857
0.920039531
0.917434078
0.924891065
0.915367683
0.894568977
0.873321055
0.877633529
0.884506536
0.885629576
0.883024123
0.900318943
0.902340416
0.906652891
0.899016217
0.898072863
0.873725349
0.886932303
0.873141368
0.868694129
0.868334756
0.856026234
0.858272315
0.845065361
0.842639594
0.837608373
0.851219622
0.846547774
0.834823233
0.835586901
0.840213827
0.84281928
0.850635641
0.863662908
0.873141368
0.867930461
0.871119896
0.861416828
0.855666861
0.865908989
0.859215669
0.861821122
0.875387449
0.873141368
0.899016217
0.915187997
0.991464894
0.990341853
0.989802794
1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295773&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]2 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=295773&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295773&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 time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Granger Causality Test: Y = f(X)
ModelRes.DFDiff. DFFp-value
Complete model520
Reduced model521-14.745107063492960.0298301923027076

\begin{tabular}{lllllllll}
\hline
Granger Causality Test: Y = f(X) \tabularnewline
Model & Res.DF & Diff. DF & F & p-value \tabularnewline
Complete model & 520 &  &  &  \tabularnewline
Reduced model & 521 & -1 & 4.74510706349296 & 0.0298301923027076 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295773&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]520[/C][C][/C][C][/C][C][/C][/ROW]
[ROW][C]Reduced model[/C][C]521[/C][C]-1[/C][C]4.74510706349296[/C][C]0.0298301923027076[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=295773&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295773&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 model520
Reduced model521-14.745107063492960.0298301923027076







Granger Causality Test: X = f(Y)
ModelRes.DFDiff. DFFp-value
Complete model520
Reduced model521-124.22210931512651.15412308791993e-06

\begin{tabular}{lllllllll}
\hline
Granger Causality Test: X = f(Y) \tabularnewline
Model & Res.DF & Diff. DF & F & p-value \tabularnewline
Complete model & 520 &  &  &  \tabularnewline
Reduced model & 521 & -1 & 24.2221093151265 & 1.15412308791993e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=295773&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]520[/C][C][/C][C][/C][C][/C][/ROW]
[ROW][C]Reduced model[/C][C]521[/C][C]-1[/C][C]24.2221093151265[/C][C]1.15412308791993e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=295773&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=295773&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 model520
Reduced model521-124.22210931512651.15412308791993e-06



Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = 1 ;
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):
par8 <- '1'
par7 <- '0'
par6 <- '0'
par5 <- '1'
par4 <- '1'
par3 <- '0'
par2 <- '1'
par1 <- '1'
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)
x
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')