Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 21 Dec 2009 06:45:07 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/21/t1261403167tt3v991jd9vla7h.htm/, Retrieved Sun, 05 May 2024 18:24:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70155, Retrieved Sun, 05 May 2024 18:24:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact107
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-12-21 13:45:07] [1f2c3943eb1d5c7fe4135bf31d9aaa7b] [Current]
Feedback Forum

Post a new message
Dataseries X:
581	1
597	1
587	1
536	1
524	1
537	1
536	1
533	1
528	1
516	1
502	1
506	1
518	1
534	0
528	0
478	0
469	0
490	0
493	0
508	0
517	0
514	0
510	0
527	0
542	0
565	0
555	0
499	0
511	0
526	0
532	0
549	0
561	0
557	0
566	0
588	0
620	0
626	0
620	0
573	0
573	0
574	0
580	0
590	0
593	0
597	0
595	0
612	0
628	0
629	0
621	0
569	0
567	0
573	0
584	0
589	0
591	0
595	0
594	0
611	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=70155&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=70155&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70155&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 467.571130434783 + 49.8834782608694` `[t] + 26.9059130434780M1[t] + 46.7478260869565M2[t] + 36.2130434782609M3[t] -17.5217391304347M4[t] -22.2565217391304M5[t] -13.5913043478261M6[t] -11.1260869565217M7[t] -4.86086956521739M8[t] -3.19565217391303M9[t] -7.93043478260867M10[t] -12.8652173913043M11[t] + 2.53478260869565t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  467.571130434783 +  49.8834782608694`
`[t] +  26.9059130434780M1[t] +  46.7478260869565M2[t] +  36.2130434782609M3[t] -17.5217391304347M4[t] -22.2565217391304M5[t] -13.5913043478261M6[t] -11.1260869565217M7[t] -4.86086956521739M8[t] -3.19565217391303M9[t] -7.93043478260867M10[t] -12.8652173913043M11[t] +  2.53478260869565t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70155&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  467.571130434783 +  49.8834782608694`
`[t] +  26.9059130434780M1[t] +  46.7478260869565M2[t] +  36.2130434782609M3[t] -17.5217391304347M4[t] -22.2565217391304M5[t] -13.5913043478261M6[t] -11.1260869565217M7[t] -4.86086956521739M8[t] -3.19565217391303M9[t] -7.93043478260867M10[t] -12.8652173913043M11[t] +  2.53478260869565t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70155&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 467.571130434783 + 49.8834782608694` `[t] + 26.9059130434780M1[t] + 46.7478260869565M2[t] + 36.2130434782609M3[t] -17.5217391304347M4[t] -22.2565217391304M5[t] -13.5913043478261M6[t] -11.1260869565217M7[t] -4.86086956521739M8[t] -3.19565217391303M9[t] -7.93043478260867M10[t] -12.8652173913043M11[t] + 2.53478260869565t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)467.57113043478314.05057533.277700
` `49.88347826086949.9393995.01888e-064e-06
M126.905913043478013.8806861.93840.0587290.029364
M246.747826086956513.9666673.34710.0016350.000817
M336.213043478260913.9277252.60010.0124890.006245
M4-17.521739130434713.89279-1.26120.2135920.106796
M5-22.256521739130413.861892-1.60560.1152080.057604
M6-13.591304347826113.835058-0.98240.3310510.165525
M7-11.126086956521713.812311-0.80550.4246640.212332
M8-4.8608695652173913.793673-0.35240.7261490.363074
M9-3.1956521739130313.779158-0.23190.8176290.408815
M10-7.9304347826086713.768782-0.5760.5674410.283721
M11-12.865217391304313.762552-0.93480.3547740.177387
t2.534782608695650.23910510.601100

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 467.571130434783 & 14.050575 & 33.2777 & 0 & 0 \tabularnewline
`
` & 49.8834782608694 & 9.939399 & 5.0188 & 8e-06 & 4e-06 \tabularnewline
M1 & 26.9059130434780 & 13.880686 & 1.9384 & 0.058729 & 0.029364 \tabularnewline
M2 & 46.7478260869565 & 13.966667 & 3.3471 & 0.001635 & 0.000817 \tabularnewline
M3 & 36.2130434782609 & 13.927725 & 2.6001 & 0.012489 & 0.006245 \tabularnewline
M4 & -17.5217391304347 & 13.89279 & -1.2612 & 0.213592 & 0.106796 \tabularnewline
M5 & -22.2565217391304 & 13.861892 & -1.6056 & 0.115208 & 0.057604 \tabularnewline
M6 & -13.5913043478261 & 13.835058 & -0.9824 & 0.331051 & 0.165525 \tabularnewline
M7 & -11.1260869565217 & 13.812311 & -0.8055 & 0.424664 & 0.212332 \tabularnewline
M8 & -4.86086956521739 & 13.793673 & -0.3524 & 0.726149 & 0.363074 \tabularnewline
M9 & -3.19565217391303 & 13.779158 & -0.2319 & 0.817629 & 0.408815 \tabularnewline
M10 & -7.93043478260867 & 13.768782 & -0.576 & 0.567441 & 0.283721 \tabularnewline
M11 & -12.8652173913043 & 13.762552 & -0.9348 & 0.354774 & 0.177387 \tabularnewline
t & 2.53478260869565 & 0.239105 & 10.6011 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70155&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]467.571130434783[/C][C]14.050575[/C][C]33.2777[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`
`[/C][C]49.8834782608694[/C][C]9.939399[/C][C]5.0188[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M1[/C][C]26.9059130434780[/C][C]13.880686[/C][C]1.9384[/C][C]0.058729[/C][C]0.029364[/C][/ROW]
[ROW][C]M2[/C][C]46.7478260869565[/C][C]13.966667[/C][C]3.3471[/C][C]0.001635[/C][C]0.000817[/C][/ROW]
[ROW][C]M3[/C][C]36.2130434782609[/C][C]13.927725[/C][C]2.6001[/C][C]0.012489[/C][C]0.006245[/C][/ROW]
[ROW][C]M4[/C][C]-17.5217391304347[/C][C]13.89279[/C][C]-1.2612[/C][C]0.213592[/C][C]0.106796[/C][/ROW]
[ROW][C]M5[/C][C]-22.2565217391304[/C][C]13.861892[/C][C]-1.6056[/C][C]0.115208[/C][C]0.057604[/C][/ROW]
[ROW][C]M6[/C][C]-13.5913043478261[/C][C]13.835058[/C][C]-0.9824[/C][C]0.331051[/C][C]0.165525[/C][/ROW]
[ROW][C]M7[/C][C]-11.1260869565217[/C][C]13.812311[/C][C]-0.8055[/C][C]0.424664[/C][C]0.212332[/C][/ROW]
[ROW][C]M8[/C][C]-4.86086956521739[/C][C]13.793673[/C][C]-0.3524[/C][C]0.726149[/C][C]0.363074[/C][/ROW]
[ROW][C]M9[/C][C]-3.19565217391303[/C][C]13.779158[/C][C]-0.2319[/C][C]0.817629[/C][C]0.408815[/C][/ROW]
[ROW][C]M10[/C][C]-7.93043478260867[/C][C]13.768782[/C][C]-0.576[/C][C]0.567441[/C][C]0.283721[/C][/ROW]
[ROW][C]M11[/C][C]-12.8652173913043[/C][C]13.762552[/C][C]-0.9348[/C][C]0.354774[/C][C]0.177387[/C][/ROW]
[ROW][C]t[/C][C]2.53478260869565[/C][C]0.239105[/C][C]10.6011[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70155&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)467.57113043478314.05057533.277700
` `49.88347826086949.9393995.01888e-064e-06
M126.905913043478013.8806861.93840.0587290.029364
M246.747826086956513.9666673.34710.0016350.000817
M336.213043478260913.9277252.60010.0124890.006245
M4-17.521739130434713.89279-1.26120.2135920.106796
M5-22.256521739130413.861892-1.60560.1152080.057604
M6-13.591304347826113.835058-0.98240.3310510.165525
M7-11.126086956521713.812311-0.80550.4246640.212332
M8-4.8608695652173913.793673-0.35240.7261490.363074
M9-3.1956521739130313.779158-0.23190.8176290.408815
M10-7.9304347826086713.768782-0.5760.5674410.283721
M11-12.865217391304313.762552-0.93480.3547740.177387
t2.534782608695650.23910510.601100







Multiple Linear Regression - Regression Statistics
Multiple R0.888041241395152
R-squared0.788617246418643
Adjusted R-squared0.728878642145651
F-TEST (value)13.2011327686003
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.89785964721523e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.7572209945670
Sum Squared Residuals21775.3266086956

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.888041241395152 \tabularnewline
R-squared & 0.788617246418643 \tabularnewline
Adjusted R-squared & 0.728878642145651 \tabularnewline
F-TEST (value) & 13.2011327686003 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.89785964721523e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 21.7572209945670 \tabularnewline
Sum Squared Residuals & 21775.3266086956 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70155&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.888041241395152[/C][/ROW]
[ROW][C]R-squared[/C][C]0.788617246418643[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.728878642145651[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.2011327686003[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.89785964721523e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]21.7572209945670[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21775.3266086956[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70155&T=3

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Regression Statistics
Multiple R0.888041241395152
R-squared0.788617246418643
Adjusted R-squared0.728878642145651
F-TEST (value)13.2011327686003
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.89785964721523e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.7572209945670
Sum Squared Residuals21775.3266086956







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1581546.89530434782734.104695652173
2597569.27227.7279999999999
3587561.27225.7280000000001
4536510.07225.9280000000001
5524507.87216.1280000000000
6537519.07217.9280000000001
7536524.07211.9280000000001
8533532.8720.12800000000008
9528537.072-9.07199999999994
10516534.872-18.8719999999999
11502532.472-30.4720000000000
12506547.872-41.8719999999999
13518577.312695652174-59.3126956521736
14534549.805913043478-15.8059130434781
15528541.805913043478-13.8059130434783
16478490.605913043478-12.6059130434783
17469488.405913043478-19.4059130434783
18490499.605913043478-9.60591304347826
19493504.605913043478-11.6059130434783
20508513.405913043478-5.40591304347827
21517517.605913043478-0.605913043478274
22514515.405913043478-1.40591304347828
23510513.005913043478-3.00591304347828
24527528.405913043478-1.40591304347825
25542557.846608695652-15.8466086956520
26565580.223304347826-15.2233043478261
27555572.223304347826-17.2233043478261
28499521.023304347826-22.0233043478261
29511518.823304347826-7.8233043478261
30526530.023304347826-4.02330434782611
31532535.023304347826-3.02330434782609
32549543.8233043478265.17669565217392
33561548.02330434782612.9766956521739
34557545.82330434782611.1766956521739
35566543.42330434782622.5766956521739
36588558.82330434782629.1766956521739
37620588.26431.7360000000002
38626610.64069565217415.3593043478261
39620602.64069565217417.3593043478261
40573551.44069565217421.5593043478260
41573549.24069565217423.7593043478261
42574560.44069565217413.5593043478261
43580565.44069565217414.5593043478261
44590574.24069565217415.7593043478261
45593578.44069565217414.5593043478261
46597576.24069565217420.7593043478261
47595573.84069565217421.1593043478261
48612589.24069565217422.7593043478261
49628618.6813913043489.31860869565238
50629641.058086956522-12.0580869565217
51621633.058086956522-12.0580869565218
52569581.858086956522-12.8580869565218
53567579.658086956522-12.6580869565218
54573590.858086956522-17.8580869565218
55584595.858086956522-11.8580869565218
56589604.658086956522-15.6580869565218
57591608.858086956522-17.8580869565218
58595606.658086956522-11.6580869565218
59594604.258086956522-10.2580869565218
60611619.658086956522-8.65808695652178

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 581 & 546.895304347827 & 34.104695652173 \tabularnewline
2 & 597 & 569.272 & 27.7279999999999 \tabularnewline
3 & 587 & 561.272 & 25.7280000000001 \tabularnewline
4 & 536 & 510.072 & 25.9280000000001 \tabularnewline
5 & 524 & 507.872 & 16.1280000000000 \tabularnewline
6 & 537 & 519.072 & 17.9280000000001 \tabularnewline
7 & 536 & 524.072 & 11.9280000000001 \tabularnewline
8 & 533 & 532.872 & 0.12800000000008 \tabularnewline
9 & 528 & 537.072 & -9.07199999999994 \tabularnewline
10 & 516 & 534.872 & -18.8719999999999 \tabularnewline
11 & 502 & 532.472 & -30.4720000000000 \tabularnewline
12 & 506 & 547.872 & -41.8719999999999 \tabularnewline
13 & 518 & 577.312695652174 & -59.3126956521736 \tabularnewline
14 & 534 & 549.805913043478 & -15.8059130434781 \tabularnewline
15 & 528 & 541.805913043478 & -13.8059130434783 \tabularnewline
16 & 478 & 490.605913043478 & -12.6059130434783 \tabularnewline
17 & 469 & 488.405913043478 & -19.4059130434783 \tabularnewline
18 & 490 & 499.605913043478 & -9.60591304347826 \tabularnewline
19 & 493 & 504.605913043478 & -11.6059130434783 \tabularnewline
20 & 508 & 513.405913043478 & -5.40591304347827 \tabularnewline
21 & 517 & 517.605913043478 & -0.605913043478274 \tabularnewline
22 & 514 & 515.405913043478 & -1.40591304347828 \tabularnewline
23 & 510 & 513.005913043478 & -3.00591304347828 \tabularnewline
24 & 527 & 528.405913043478 & -1.40591304347825 \tabularnewline
25 & 542 & 557.846608695652 & -15.8466086956520 \tabularnewline
26 & 565 & 580.223304347826 & -15.2233043478261 \tabularnewline
27 & 555 & 572.223304347826 & -17.2233043478261 \tabularnewline
28 & 499 & 521.023304347826 & -22.0233043478261 \tabularnewline
29 & 511 & 518.823304347826 & -7.8233043478261 \tabularnewline
30 & 526 & 530.023304347826 & -4.02330434782611 \tabularnewline
31 & 532 & 535.023304347826 & -3.02330434782609 \tabularnewline
32 & 549 & 543.823304347826 & 5.17669565217392 \tabularnewline
33 & 561 & 548.023304347826 & 12.9766956521739 \tabularnewline
34 & 557 & 545.823304347826 & 11.1766956521739 \tabularnewline
35 & 566 & 543.423304347826 & 22.5766956521739 \tabularnewline
36 & 588 & 558.823304347826 & 29.1766956521739 \tabularnewline
37 & 620 & 588.264 & 31.7360000000002 \tabularnewline
38 & 626 & 610.640695652174 & 15.3593043478261 \tabularnewline
39 & 620 & 602.640695652174 & 17.3593043478261 \tabularnewline
40 & 573 & 551.440695652174 & 21.5593043478260 \tabularnewline
41 & 573 & 549.240695652174 & 23.7593043478261 \tabularnewline
42 & 574 & 560.440695652174 & 13.5593043478261 \tabularnewline
43 & 580 & 565.440695652174 & 14.5593043478261 \tabularnewline
44 & 590 & 574.240695652174 & 15.7593043478261 \tabularnewline
45 & 593 & 578.440695652174 & 14.5593043478261 \tabularnewline
46 & 597 & 576.240695652174 & 20.7593043478261 \tabularnewline
47 & 595 & 573.840695652174 & 21.1593043478261 \tabularnewline
48 & 612 & 589.240695652174 & 22.7593043478261 \tabularnewline
49 & 628 & 618.681391304348 & 9.31860869565238 \tabularnewline
50 & 629 & 641.058086956522 & -12.0580869565217 \tabularnewline
51 & 621 & 633.058086956522 & -12.0580869565218 \tabularnewline
52 & 569 & 581.858086956522 & -12.8580869565218 \tabularnewline
53 & 567 & 579.658086956522 & -12.6580869565218 \tabularnewline
54 & 573 & 590.858086956522 & -17.8580869565218 \tabularnewline
55 & 584 & 595.858086956522 & -11.8580869565218 \tabularnewline
56 & 589 & 604.658086956522 & -15.6580869565218 \tabularnewline
57 & 591 & 608.858086956522 & -17.8580869565218 \tabularnewline
58 & 595 & 606.658086956522 & -11.6580869565218 \tabularnewline
59 & 594 & 604.258086956522 & -10.2580869565218 \tabularnewline
60 & 611 & 619.658086956522 & -8.65808695652178 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70155&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]581[/C][C]546.895304347827[/C][C]34.104695652173[/C][/ROW]
[ROW][C]2[/C][C]597[/C][C]569.272[/C][C]27.7279999999999[/C][/ROW]
[ROW][C]3[/C][C]587[/C][C]561.272[/C][C]25.7280000000001[/C][/ROW]
[ROW][C]4[/C][C]536[/C][C]510.072[/C][C]25.9280000000001[/C][/ROW]
[ROW][C]5[/C][C]524[/C][C]507.872[/C][C]16.1280000000000[/C][/ROW]
[ROW][C]6[/C][C]537[/C][C]519.072[/C][C]17.9280000000001[/C][/ROW]
[ROW][C]7[/C][C]536[/C][C]524.072[/C][C]11.9280000000001[/C][/ROW]
[ROW][C]8[/C][C]533[/C][C]532.872[/C][C]0.12800000000008[/C][/ROW]
[ROW][C]9[/C][C]528[/C][C]537.072[/C][C]-9.07199999999994[/C][/ROW]
[ROW][C]10[/C][C]516[/C][C]534.872[/C][C]-18.8719999999999[/C][/ROW]
[ROW][C]11[/C][C]502[/C][C]532.472[/C][C]-30.4720000000000[/C][/ROW]
[ROW][C]12[/C][C]506[/C][C]547.872[/C][C]-41.8719999999999[/C][/ROW]
[ROW][C]13[/C][C]518[/C][C]577.312695652174[/C][C]-59.3126956521736[/C][/ROW]
[ROW][C]14[/C][C]534[/C][C]549.805913043478[/C][C]-15.8059130434781[/C][/ROW]
[ROW][C]15[/C][C]528[/C][C]541.805913043478[/C][C]-13.8059130434783[/C][/ROW]
[ROW][C]16[/C][C]478[/C][C]490.605913043478[/C][C]-12.6059130434783[/C][/ROW]
[ROW][C]17[/C][C]469[/C][C]488.405913043478[/C][C]-19.4059130434783[/C][/ROW]
[ROW][C]18[/C][C]490[/C][C]499.605913043478[/C][C]-9.60591304347826[/C][/ROW]
[ROW][C]19[/C][C]493[/C][C]504.605913043478[/C][C]-11.6059130434783[/C][/ROW]
[ROW][C]20[/C][C]508[/C][C]513.405913043478[/C][C]-5.40591304347827[/C][/ROW]
[ROW][C]21[/C][C]517[/C][C]517.605913043478[/C][C]-0.605913043478274[/C][/ROW]
[ROW][C]22[/C][C]514[/C][C]515.405913043478[/C][C]-1.40591304347828[/C][/ROW]
[ROW][C]23[/C][C]510[/C][C]513.005913043478[/C][C]-3.00591304347828[/C][/ROW]
[ROW][C]24[/C][C]527[/C][C]528.405913043478[/C][C]-1.40591304347825[/C][/ROW]
[ROW][C]25[/C][C]542[/C][C]557.846608695652[/C][C]-15.8466086956520[/C][/ROW]
[ROW][C]26[/C][C]565[/C][C]580.223304347826[/C][C]-15.2233043478261[/C][/ROW]
[ROW][C]27[/C][C]555[/C][C]572.223304347826[/C][C]-17.2233043478261[/C][/ROW]
[ROW][C]28[/C][C]499[/C][C]521.023304347826[/C][C]-22.0233043478261[/C][/ROW]
[ROW][C]29[/C][C]511[/C][C]518.823304347826[/C][C]-7.8233043478261[/C][/ROW]
[ROW][C]30[/C][C]526[/C][C]530.023304347826[/C][C]-4.02330434782611[/C][/ROW]
[ROW][C]31[/C][C]532[/C][C]535.023304347826[/C][C]-3.02330434782609[/C][/ROW]
[ROW][C]32[/C][C]549[/C][C]543.823304347826[/C][C]5.17669565217392[/C][/ROW]
[ROW][C]33[/C][C]561[/C][C]548.023304347826[/C][C]12.9766956521739[/C][/ROW]
[ROW][C]34[/C][C]557[/C][C]545.823304347826[/C][C]11.1766956521739[/C][/ROW]
[ROW][C]35[/C][C]566[/C][C]543.423304347826[/C][C]22.5766956521739[/C][/ROW]
[ROW][C]36[/C][C]588[/C][C]558.823304347826[/C][C]29.1766956521739[/C][/ROW]
[ROW][C]37[/C][C]620[/C][C]588.264[/C][C]31.7360000000002[/C][/ROW]
[ROW][C]38[/C][C]626[/C][C]610.640695652174[/C][C]15.3593043478261[/C][/ROW]
[ROW][C]39[/C][C]620[/C][C]602.640695652174[/C][C]17.3593043478261[/C][/ROW]
[ROW][C]40[/C][C]573[/C][C]551.440695652174[/C][C]21.5593043478260[/C][/ROW]
[ROW][C]41[/C][C]573[/C][C]549.240695652174[/C][C]23.7593043478261[/C][/ROW]
[ROW][C]42[/C][C]574[/C][C]560.440695652174[/C][C]13.5593043478261[/C][/ROW]
[ROW][C]43[/C][C]580[/C][C]565.440695652174[/C][C]14.5593043478261[/C][/ROW]
[ROW][C]44[/C][C]590[/C][C]574.240695652174[/C][C]15.7593043478261[/C][/ROW]
[ROW][C]45[/C][C]593[/C][C]578.440695652174[/C][C]14.5593043478261[/C][/ROW]
[ROW][C]46[/C][C]597[/C][C]576.240695652174[/C][C]20.7593043478261[/C][/ROW]
[ROW][C]47[/C][C]595[/C][C]573.840695652174[/C][C]21.1593043478261[/C][/ROW]
[ROW][C]48[/C][C]612[/C][C]589.240695652174[/C][C]22.7593043478261[/C][/ROW]
[ROW][C]49[/C][C]628[/C][C]618.681391304348[/C][C]9.31860869565238[/C][/ROW]
[ROW][C]50[/C][C]629[/C][C]641.058086956522[/C][C]-12.0580869565217[/C][/ROW]
[ROW][C]51[/C][C]621[/C][C]633.058086956522[/C][C]-12.0580869565218[/C][/ROW]
[ROW][C]52[/C][C]569[/C][C]581.858086956522[/C][C]-12.8580869565218[/C][/ROW]
[ROW][C]53[/C][C]567[/C][C]579.658086956522[/C][C]-12.6580869565218[/C][/ROW]
[ROW][C]54[/C][C]573[/C][C]590.858086956522[/C][C]-17.8580869565218[/C][/ROW]
[ROW][C]55[/C][C]584[/C][C]595.858086956522[/C][C]-11.8580869565218[/C][/ROW]
[ROW][C]56[/C][C]589[/C][C]604.658086956522[/C][C]-15.6580869565218[/C][/ROW]
[ROW][C]57[/C][C]591[/C][C]608.858086956522[/C][C]-17.8580869565218[/C][/ROW]
[ROW][C]58[/C][C]595[/C][C]606.658086956522[/C][C]-11.6580869565218[/C][/ROW]
[ROW][C]59[/C][C]594[/C][C]604.258086956522[/C][C]-10.2580869565218[/C][/ROW]
[ROW][C]60[/C][C]611[/C][C]619.658086956522[/C][C]-8.65808695652178[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70155&T=4

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1581546.89530434782734.104695652173
2597569.27227.7279999999999
3587561.27225.7280000000001
4536510.07225.9280000000001
5524507.87216.1280000000000
6537519.07217.9280000000001
7536524.07211.9280000000001
8533532.8720.12800000000008
9528537.072-9.07199999999994
10516534.872-18.8719999999999
11502532.472-30.4720000000000
12506547.872-41.8719999999999
13518577.312695652174-59.3126956521736
14534549.805913043478-15.8059130434781
15528541.805913043478-13.8059130434783
16478490.605913043478-12.6059130434783
17469488.405913043478-19.4059130434783
18490499.605913043478-9.60591304347826
19493504.605913043478-11.6059130434783
20508513.405913043478-5.40591304347827
21517517.605913043478-0.605913043478274
22514515.405913043478-1.40591304347828
23510513.005913043478-3.00591304347828
24527528.405913043478-1.40591304347825
25542557.846608695652-15.8466086956520
26565580.223304347826-15.2233043478261
27555572.223304347826-17.2233043478261
28499521.023304347826-22.0233043478261
29511518.823304347826-7.8233043478261
30526530.023304347826-4.02330434782611
31532535.023304347826-3.02330434782609
32549543.8233043478265.17669565217392
33561548.02330434782612.9766956521739
34557545.82330434782611.1766956521739
35566543.42330434782622.5766956521739
36588558.82330434782629.1766956521739
37620588.26431.7360000000002
38626610.64069565217415.3593043478261
39620602.64069565217417.3593043478261
40573551.44069565217421.5593043478260
41573549.24069565217423.7593043478261
42574560.44069565217413.5593043478261
43580565.44069565217414.5593043478261
44590574.24069565217415.7593043478261
45593578.44069565217414.5593043478261
46597576.24069565217420.7593043478261
47595573.84069565217421.1593043478261
48612589.24069565217422.7593043478261
49628618.6813913043489.31860869565238
50629641.058086956522-12.0580869565217
51621633.058086956522-12.0580869565218
52569581.858086956522-12.8580869565218
53567579.658086956522-12.6580869565218
54573590.858086956522-17.8580869565218
55584595.858086956522-11.8580869565218
56589604.658086956522-15.6580869565218
57591608.858086956522-17.8580869565218
58595606.658086956522-11.6580869565218
59594604.258086956522-10.2580869565218
60611619.658086956522-8.65808695652178







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.003310081804032060.006620163608064120.996689918195968
180.006330171312852270.01266034262570450.993669828687148
190.007011127793507040.01402225558701410.992988872206493
200.04824077332382090.09648154664764170.95175922667618
210.1677925839279580.3355851678559160.832207416072042
220.3218699270997050.643739854199410.678130072900295
230.5063003844145590.9873992311708830.493699615585441
240.7096965016957390.5806069966085220.290303498304261
250.8807412383672270.2385175232655470.119258761632773
260.9139268987342060.1721462025315880.0860731012657942
270.9286429716749560.1427140566500890.0713570283250444
280.9648582118609160.07028357627816830.0351417881390841
290.9835274609061050.03294507818779010.0164725390938950
300.9872202105904740.02555957881905160.0127797894095258
310.9947566318483370.01048673630332540.00524336815166272
320.9974342710031260.005131457993748940.00256572899687447
330.9980814564168220.003837087166355320.00191854358317766
340.9997959281031540.0004081437936913730.000204071896845687
350.9999842856152033.14287695941118e-051.57143847970559e-05
360.9999999852932082.94135839225577e-081.47067919612788e-08
370.9999999949548031.00903943443971e-085.04519717219855e-09
380.9999999749048665.01902671981372e-082.50951335990686e-08
390.9999997657941934.68411613329511e-072.34205806664756e-07
400.999997968875734.06224853845481e-062.03112426922741e-06
410.9999956025057148.79498857197069e-064.39749428598535e-06
420.9999311018333040.0001377963333923226.88981666961608e-05
430.999989912723772.01745524593534e-051.00872762296767e-05

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00331008180403206 & 0.00662016360806412 & 0.996689918195968 \tabularnewline
18 & 0.00633017131285227 & 0.0126603426257045 & 0.993669828687148 \tabularnewline
19 & 0.00701112779350704 & 0.0140222555870141 & 0.992988872206493 \tabularnewline
20 & 0.0482407733238209 & 0.0964815466476417 & 0.95175922667618 \tabularnewline
21 & 0.167792583927958 & 0.335585167855916 & 0.832207416072042 \tabularnewline
22 & 0.321869927099705 & 0.64373985419941 & 0.678130072900295 \tabularnewline
23 & 0.506300384414559 & 0.987399231170883 & 0.493699615585441 \tabularnewline
24 & 0.709696501695739 & 0.580606996608522 & 0.290303498304261 \tabularnewline
25 & 0.880741238367227 & 0.238517523265547 & 0.119258761632773 \tabularnewline
26 & 0.913926898734206 & 0.172146202531588 & 0.0860731012657942 \tabularnewline
27 & 0.928642971674956 & 0.142714056650089 & 0.0713570283250444 \tabularnewline
28 & 0.964858211860916 & 0.0702835762781683 & 0.0351417881390841 \tabularnewline
29 & 0.983527460906105 & 0.0329450781877901 & 0.0164725390938950 \tabularnewline
30 & 0.987220210590474 & 0.0255595788190516 & 0.0127797894095258 \tabularnewline
31 & 0.994756631848337 & 0.0104867363033254 & 0.00524336815166272 \tabularnewline
32 & 0.997434271003126 & 0.00513145799374894 & 0.00256572899687447 \tabularnewline
33 & 0.998081456416822 & 0.00383708716635532 & 0.00191854358317766 \tabularnewline
34 & 0.999795928103154 & 0.000408143793691373 & 0.000204071896845687 \tabularnewline
35 & 0.999984285615203 & 3.14287695941118e-05 & 1.57143847970559e-05 \tabularnewline
36 & 0.999999985293208 & 2.94135839225577e-08 & 1.47067919612788e-08 \tabularnewline
37 & 0.999999994954803 & 1.00903943443971e-08 & 5.04519717219855e-09 \tabularnewline
38 & 0.999999974904866 & 5.01902671981372e-08 & 2.50951335990686e-08 \tabularnewline
39 & 0.999999765794193 & 4.68411613329511e-07 & 2.34205806664756e-07 \tabularnewline
40 & 0.99999796887573 & 4.06224853845481e-06 & 2.03112426922741e-06 \tabularnewline
41 & 0.999995602505714 & 8.79498857197069e-06 & 4.39749428598535e-06 \tabularnewline
42 & 0.999931101833304 & 0.000137796333392322 & 6.88981666961608e-05 \tabularnewline
43 & 0.99998991272377 & 2.01745524593534e-05 & 1.00872762296767e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70155&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.00331008180403206[/C][C]0.00662016360806412[/C][C]0.996689918195968[/C][/ROW]
[ROW][C]18[/C][C]0.00633017131285227[/C][C]0.0126603426257045[/C][C]0.993669828687148[/C][/ROW]
[ROW][C]19[/C][C]0.00701112779350704[/C][C]0.0140222555870141[/C][C]0.992988872206493[/C][/ROW]
[ROW][C]20[/C][C]0.0482407733238209[/C][C]0.0964815466476417[/C][C]0.95175922667618[/C][/ROW]
[ROW][C]21[/C][C]0.167792583927958[/C][C]0.335585167855916[/C][C]0.832207416072042[/C][/ROW]
[ROW][C]22[/C][C]0.321869927099705[/C][C]0.64373985419941[/C][C]0.678130072900295[/C][/ROW]
[ROW][C]23[/C][C]0.506300384414559[/C][C]0.987399231170883[/C][C]0.493699615585441[/C][/ROW]
[ROW][C]24[/C][C]0.709696501695739[/C][C]0.580606996608522[/C][C]0.290303498304261[/C][/ROW]
[ROW][C]25[/C][C]0.880741238367227[/C][C]0.238517523265547[/C][C]0.119258761632773[/C][/ROW]
[ROW][C]26[/C][C]0.913926898734206[/C][C]0.172146202531588[/C][C]0.0860731012657942[/C][/ROW]
[ROW][C]27[/C][C]0.928642971674956[/C][C]0.142714056650089[/C][C]0.0713570283250444[/C][/ROW]
[ROW][C]28[/C][C]0.964858211860916[/C][C]0.0702835762781683[/C][C]0.0351417881390841[/C][/ROW]
[ROW][C]29[/C][C]0.983527460906105[/C][C]0.0329450781877901[/C][C]0.0164725390938950[/C][/ROW]
[ROW][C]30[/C][C]0.987220210590474[/C][C]0.0255595788190516[/C][C]0.0127797894095258[/C][/ROW]
[ROW][C]31[/C][C]0.994756631848337[/C][C]0.0104867363033254[/C][C]0.00524336815166272[/C][/ROW]
[ROW][C]32[/C][C]0.997434271003126[/C][C]0.00513145799374894[/C][C]0.00256572899687447[/C][/ROW]
[ROW][C]33[/C][C]0.998081456416822[/C][C]0.00383708716635532[/C][C]0.00191854358317766[/C][/ROW]
[ROW][C]34[/C][C]0.999795928103154[/C][C]0.000408143793691373[/C][C]0.000204071896845687[/C][/ROW]
[ROW][C]35[/C][C]0.999984285615203[/C][C]3.14287695941118e-05[/C][C]1.57143847970559e-05[/C][/ROW]
[ROW][C]36[/C][C]0.999999985293208[/C][C]2.94135839225577e-08[/C][C]1.47067919612788e-08[/C][/ROW]
[ROW][C]37[/C][C]0.999999994954803[/C][C]1.00903943443971e-08[/C][C]5.04519717219855e-09[/C][/ROW]
[ROW][C]38[/C][C]0.999999974904866[/C][C]5.01902671981372e-08[/C][C]2.50951335990686e-08[/C][/ROW]
[ROW][C]39[/C][C]0.999999765794193[/C][C]4.68411613329511e-07[/C][C]2.34205806664756e-07[/C][/ROW]
[ROW][C]40[/C][C]0.99999796887573[/C][C]4.06224853845481e-06[/C][C]2.03112426922741e-06[/C][/ROW]
[ROW][C]41[/C][C]0.999995602505714[/C][C]8.79498857197069e-06[/C][C]4.39749428598535e-06[/C][/ROW]
[ROW][C]42[/C][C]0.999931101833304[/C][C]0.000137796333392322[/C][C]6.88981666961608e-05[/C][/ROW]
[ROW][C]43[/C][C]0.99998991272377[/C][C]2.01745524593534e-05[/C][C]1.00872762296767e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70155&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.003310081804032060.006620163608064120.996689918195968
180.006330171312852270.01266034262570450.993669828687148
190.007011127793507040.01402225558701410.992988872206493
200.04824077332382090.09648154664764170.95175922667618
210.1677925839279580.3355851678559160.832207416072042
220.3218699270997050.643739854199410.678130072900295
230.5063003844145590.9873992311708830.493699615585441
240.7096965016957390.5806069966085220.290303498304261
250.8807412383672270.2385175232655470.119258761632773
260.9139268987342060.1721462025315880.0860731012657942
270.9286429716749560.1427140566500890.0713570283250444
280.9648582118609160.07028357627816830.0351417881390841
290.9835274609061050.03294507818779010.0164725390938950
300.9872202105904740.02555957881905160.0127797894095258
310.9947566318483370.01048673630332540.00524336815166272
320.9974342710031260.005131457993748940.00256572899687447
330.9980814564168220.003837087166355320.00191854358317766
340.9997959281031540.0004081437936913730.000204071896845687
350.9999842856152033.14287695941118e-051.57143847970559e-05
360.9999999852932082.94135839225577e-081.47067919612788e-08
370.9999999949548031.00903943443971e-085.04519717219855e-09
380.9999999749048665.01902671981372e-082.50951335990686e-08
390.9999997657941934.68411613329511e-072.34205806664756e-07
400.999997968875734.06224853845481e-062.03112426922741e-06
410.9999956025057148.79498857197069e-064.39749428598535e-06
420.9999311018333040.0001377963333923226.88981666961608e-05
430.999989912723772.01745524593534e-051.00872762296767e-05







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.481481481481481NOK
5% type I error level180.666666666666667NOK
10% type I error level200.740740740740741NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 13 & 0.481481481481481 & NOK \tabularnewline
5% type I error level & 18 & 0.666666666666667 & NOK \tabularnewline
10% type I error level & 20 & 0.740740740740741 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70155&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]13[/C][C]0.481481481481481[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]18[/C][C]0.666666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]20[/C][C]0.740740740740741[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70155&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.481481481481481NOK
5% type I error level180.666666666666667NOK
10% type I error level200.740740740740741NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
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,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}