Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 30 Nov 2010 20:36:28 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Nov/30/t1291149703ds3h3xjdskkyt3e.htm/, Retrieved Mon, 29 Apr 2024 16:35:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=103816, Retrieved Mon, 29 Apr 2024 16:35:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact75
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [HPC Retail Sales] [2008-03-08 13:40:54] [1c0f2c85e8a48e42648374b3bcceca26]
-  MPD  [Multiple Regression] [WS8 - Multiple Re...] [2010-11-28 10:30:02] [8ef49741e164ec6343c90c7935194465]
-   PD      [Multiple Regression] [oilpricemulregr] [2010-11-30 20:36:28] [8f110cf3e3846d42560df9b5835185a6] [Current]
Feedback Forum

Post a new message
Dataseries X:
46.85
48.05
54.63
53.22
49.87
56.42
59.03
64.99
65.55
62.27
58.34
59.45
65.54
61.93
62.97
70.16
70.96
70.97
74.46
73.08
63.90
59.14
59.40
62.09
54.35
59.39
60.74
64.04
63.53
67.53
74.15
72.36
79.63
85.66
94.63
91.74
92.93
95.35
105.42
112.46
125.46
134.02
133.48
116.69
103.76
76.72
57.44
42.04
41.92
39.26
48.06
49.95
59.21
69.70
64.29
71.14
69.47
75.82
78.15
74.60




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 6 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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 time6 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Crudeoilprice[t] = + 52.80975 -1.64053472222217M1[t] -1.52848611111111M2[t] + 3.6735625M3[t] + 6.90961111111112M4[t] + 10.3836597222222M5[t] + 15.9397083333333M6[t] + 16.9277569444445M7[t] + 15.1318055555556M8[t] + 11.5758541666667M9[t] + 6.6699027777778M10[t] + 3.9739513888889M11[t] + 0.365951388888888t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Crudeoilprice[t] =  +  52.80975 -1.64053472222217M1[t] -1.52848611111111M2[t] +  3.6735625M3[t] +  6.90961111111112M4[t] +  10.3836597222222M5[t] +  15.9397083333333M6[t] +  16.9277569444445M7[t] +  15.1318055555556M8[t] +  11.5758541666667M9[t] +  6.6699027777778M10[t] +  3.9739513888889M11[t] +  0.365951388888888t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Crudeoilprice[t] =  +  52.80975 -1.64053472222217M1[t] -1.52848611111111M2[t] +  3.6735625M3[t] +  6.90961111111112M4[t] +  10.3836597222222M5[t] +  15.9397083333333M6[t] +  16.9277569444445M7[t] +  15.1318055555556M8[t] +  11.5758541666667M9[t] +  6.6699027777778M10[t] +  3.9739513888889M11[t] +  0.365951388888888t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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
Crudeoilprice[t] = + 52.80975 -1.64053472222217M1[t] -1.52848611111111M2[t] + 3.6735625M3[t] + 6.90961111111112M4[t] + 10.3836597222222M5[t] + 15.9397083333333M6[t] + 16.9277569444445M7[t] + 15.1318055555556M8[t] + 11.5758541666667M9[t] + 6.6699027777778M10[t] + 3.9739513888889M11[t] + 0.365951388888888t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)52.8097511.4678384.6053.2e-051.6e-05
M1-1.6405347222221713.951267-0.11760.9068930.453447
M2-1.5284861111111113.930422-0.10970.9130960.456548
M33.673562513.9115360.26410.7928840.396442
M46.9096111111111213.8946160.49730.6213050.310653
M510.383659722222213.879670.74810.4581150.229058
M615.939708333333313.8667041.14950.2561680.128084
M716.927756944444513.8557221.22170.2279080.113954
M815.131805555555613.8467311.09280.2800480.140024
M911.575854166666713.8397340.83640.407150.203575
M106.669902777777813.8347340.48210.6319630.315982
M113.973951388888913.8317330.28730.775140.38757
t0.3659513888888880.1663582.19980.0327750.016388

\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) & 52.80975 & 11.467838 & 4.605 & 3.2e-05 & 1.6e-05 \tabularnewline
M1 & -1.64053472222217 & 13.951267 & -0.1176 & 0.906893 & 0.453447 \tabularnewline
M2 & -1.52848611111111 & 13.930422 & -0.1097 & 0.913096 & 0.456548 \tabularnewline
M3 & 3.6735625 & 13.911536 & 0.2641 & 0.792884 & 0.396442 \tabularnewline
M4 & 6.90961111111112 & 13.894616 & 0.4973 & 0.621305 & 0.310653 \tabularnewline
M5 & 10.3836597222222 & 13.87967 & 0.7481 & 0.458115 & 0.229058 \tabularnewline
M6 & 15.9397083333333 & 13.866704 & 1.1495 & 0.256168 & 0.128084 \tabularnewline
M7 & 16.9277569444445 & 13.855722 & 1.2217 & 0.227908 & 0.113954 \tabularnewline
M8 & 15.1318055555556 & 13.846731 & 1.0928 & 0.280048 & 0.140024 \tabularnewline
M9 & 11.5758541666667 & 13.839734 & 0.8364 & 0.40715 & 0.203575 \tabularnewline
M10 & 6.6699027777778 & 13.834734 & 0.4821 & 0.631963 & 0.315982 \tabularnewline
M11 & 3.9739513888889 & 13.831733 & 0.2873 & 0.77514 & 0.38757 \tabularnewline
t & 0.365951388888888 & 0.166358 & 2.1998 & 0.032775 & 0.016388 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&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]52.80975[/C][C]11.467838[/C][C]4.605[/C][C]3.2e-05[/C][C]1.6e-05[/C][/ROW]
[ROW][C]M1[/C][C]-1.64053472222217[/C][C]13.951267[/C][C]-0.1176[/C][C]0.906893[/C][C]0.453447[/C][/ROW]
[ROW][C]M2[/C][C]-1.52848611111111[/C][C]13.930422[/C][C]-0.1097[/C][C]0.913096[/C][C]0.456548[/C][/ROW]
[ROW][C]M3[/C][C]3.6735625[/C][C]13.911536[/C][C]0.2641[/C][C]0.792884[/C][C]0.396442[/C][/ROW]
[ROW][C]M4[/C][C]6.90961111111112[/C][C]13.894616[/C][C]0.4973[/C][C]0.621305[/C][C]0.310653[/C][/ROW]
[ROW][C]M5[/C][C]10.3836597222222[/C][C]13.87967[/C][C]0.7481[/C][C]0.458115[/C][C]0.229058[/C][/ROW]
[ROW][C]M6[/C][C]15.9397083333333[/C][C]13.866704[/C][C]1.1495[/C][C]0.256168[/C][C]0.128084[/C][/ROW]
[ROW][C]M7[/C][C]16.9277569444445[/C][C]13.855722[/C][C]1.2217[/C][C]0.227908[/C][C]0.113954[/C][/ROW]
[ROW][C]M8[/C][C]15.1318055555556[/C][C]13.846731[/C][C]1.0928[/C][C]0.280048[/C][C]0.140024[/C][/ROW]
[ROW][C]M9[/C][C]11.5758541666667[/C][C]13.839734[/C][C]0.8364[/C][C]0.40715[/C][C]0.203575[/C][/ROW]
[ROW][C]M10[/C][C]6.6699027777778[/C][C]13.834734[/C][C]0.4821[/C][C]0.631963[/C][C]0.315982[/C][/ROW]
[ROW][C]M11[/C][C]3.9739513888889[/C][C]13.831733[/C][C]0.2873[/C][C]0.77514[/C][C]0.38757[/C][/ROW]
[ROW][C]t[/C][C]0.365951388888888[/C][C]0.166358[/C][C]2.1998[/C][C]0.032775[/C][C]0.016388[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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)52.8097511.4678384.6053.2e-051.6e-05
M1-1.6405347222221713.951267-0.11760.9068930.453447
M2-1.5284861111111113.930422-0.10970.9130960.456548
M33.673562513.9115360.26410.7928840.396442
M46.9096111111111213.8946160.49730.6213050.310653
M510.383659722222213.879670.74810.4581150.229058
M615.939708333333313.8667041.14950.2561680.128084
M716.927756944444513.8557221.22170.2279080.113954
M815.131805555555613.8467311.09280.2800480.140024
M911.575854166666713.8397340.83640.407150.203575
M106.669902777777813.8347340.48210.6319630.315982
M113.973951388888913.8317330.28730.775140.38757
t0.3659513888888880.1663582.19980.0327750.016388







Multiple Linear Regression - Regression Statistics
Multiple R0.430197138182165
R-squared0.185069577700125
Adjusted R-squared-0.0229977641636727
F-TEST (value)0.889469611339932
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.563345577233602
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.8683087123745
Sum Squared Residuals22476.4775191667

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.430197138182165 \tabularnewline
R-squared & 0.185069577700125 \tabularnewline
Adjusted R-squared & -0.0229977641636727 \tabularnewline
F-TEST (value) & 0.889469611339932 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.563345577233602 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 21.8683087123745 \tabularnewline
Sum Squared Residuals & 22476.4775191667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.430197138182165[/C][/ROW]
[ROW][C]R-squared[/C][C]0.185069577700125[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0229977641636727[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.889469611339932[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.563345577233602[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]21.8683087123745[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22476.4775191667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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.430197138182165
R-squared0.185069577700125
Adjusted R-squared-0.0229977641636727
F-TEST (value)0.889469611339932
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.563345577233602
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.8683087123745
Sum Squared Residuals22476.4775191667







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
146.8551.5351666666665-4.68516666666653
248.0552.0131666666667-3.96316666666669
354.6357.5811666666667-2.95116666666668
453.2261.1831666666666-7.96316666666663
549.8765.0231666666667-15.1531666666667
656.4270.9451666666667-14.5251666666667
759.0372.2991666666667-13.2691666666667
864.9970.8691666666667-5.87916666666668
965.5567.6791666666667-2.12916666666667
1062.2763.1391666666667-0.869166666666666
1158.3460.8091666666667-2.46916666666667
1259.4557.20116666666672.24883333333334
1365.5455.92658333333349.61341666666665
1461.9356.40458333333335.52541666666666
1562.9761.97258333333330.99741666666666
1670.1665.57458333333334.58541666666666
1770.9669.41458333333331.54541666666666
1870.9775.3365833333333-4.36658333333334
1974.4676.6905833333333-2.23058333333335
2073.0875.2605833333333-2.18058333333334
2163.972.0705833333333-8.17058333333334
2259.1467.5305833333333-8.39058333333334
2359.465.2005833333333-5.80058333333334
2462.0961.59258333333330.497416666666681
2554.3560.318-5.96800000000004
2659.3960.796-1.40600000000000
2760.7466.364-5.624
2864.0469.966-5.92599999999999
2963.5373.806-10.276
3067.5379.728-12.198
3174.1581.082-6.932
3272.3679.652-7.292
3379.6376.4623.168
3485.6671.92213.738
3594.6369.59225.038
3691.7465.98425.756
3792.9364.709416666666728.2205833333333
3895.3565.187416666666730.1625833333333
39105.4270.755416666666734.6645833333333
40112.4674.357416666666738.1025833333333
41125.4678.197416666666747.2625833333333
42134.0284.119416666666749.9005833333334
43133.4885.473416666666748.0065833333333
44116.6984.043416666666732.6465833333333
45103.7680.853416666666722.9065833333333
4676.7276.31341666666670.406583333333334
4757.4473.9834166666667-16.5434166666667
4842.0470.3754166666667-28.3354166666667
4941.9269.1008333333334-27.1808333333334
5039.2669.5788333333333-30.3188333333333
5148.0675.1468333333333-27.0868333333333
5249.9578.7488333333333-28.7988333333333
5359.2182.5888333333333-23.3788333333333
5469.788.5108333333333-18.8108333333333
5564.2989.8648333333333-25.5748333333333
5671.1488.4348333333333-17.2948333333333
5769.4785.2448333333333-15.7748333333333
5875.8280.7048333333333-4.88483333333333
5978.1578.3748333333333-0.224833333333324
6074.674.7668333333333-0.166833333333314

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 46.85 & 51.5351666666665 & -4.68516666666653 \tabularnewline
2 & 48.05 & 52.0131666666667 & -3.96316666666669 \tabularnewline
3 & 54.63 & 57.5811666666667 & -2.95116666666668 \tabularnewline
4 & 53.22 & 61.1831666666666 & -7.96316666666663 \tabularnewline
5 & 49.87 & 65.0231666666667 & -15.1531666666667 \tabularnewline
6 & 56.42 & 70.9451666666667 & -14.5251666666667 \tabularnewline
7 & 59.03 & 72.2991666666667 & -13.2691666666667 \tabularnewline
8 & 64.99 & 70.8691666666667 & -5.87916666666668 \tabularnewline
9 & 65.55 & 67.6791666666667 & -2.12916666666667 \tabularnewline
10 & 62.27 & 63.1391666666667 & -0.869166666666666 \tabularnewline
11 & 58.34 & 60.8091666666667 & -2.46916666666667 \tabularnewline
12 & 59.45 & 57.2011666666667 & 2.24883333333334 \tabularnewline
13 & 65.54 & 55.9265833333334 & 9.61341666666665 \tabularnewline
14 & 61.93 & 56.4045833333333 & 5.52541666666666 \tabularnewline
15 & 62.97 & 61.9725833333333 & 0.99741666666666 \tabularnewline
16 & 70.16 & 65.5745833333333 & 4.58541666666666 \tabularnewline
17 & 70.96 & 69.4145833333333 & 1.54541666666666 \tabularnewline
18 & 70.97 & 75.3365833333333 & -4.36658333333334 \tabularnewline
19 & 74.46 & 76.6905833333333 & -2.23058333333335 \tabularnewline
20 & 73.08 & 75.2605833333333 & -2.18058333333334 \tabularnewline
21 & 63.9 & 72.0705833333333 & -8.17058333333334 \tabularnewline
22 & 59.14 & 67.5305833333333 & -8.39058333333334 \tabularnewline
23 & 59.4 & 65.2005833333333 & -5.80058333333334 \tabularnewline
24 & 62.09 & 61.5925833333333 & 0.497416666666681 \tabularnewline
25 & 54.35 & 60.318 & -5.96800000000004 \tabularnewline
26 & 59.39 & 60.796 & -1.40600000000000 \tabularnewline
27 & 60.74 & 66.364 & -5.624 \tabularnewline
28 & 64.04 & 69.966 & -5.92599999999999 \tabularnewline
29 & 63.53 & 73.806 & -10.276 \tabularnewline
30 & 67.53 & 79.728 & -12.198 \tabularnewline
31 & 74.15 & 81.082 & -6.932 \tabularnewline
32 & 72.36 & 79.652 & -7.292 \tabularnewline
33 & 79.63 & 76.462 & 3.168 \tabularnewline
34 & 85.66 & 71.922 & 13.738 \tabularnewline
35 & 94.63 & 69.592 & 25.038 \tabularnewline
36 & 91.74 & 65.984 & 25.756 \tabularnewline
37 & 92.93 & 64.7094166666667 & 28.2205833333333 \tabularnewline
38 & 95.35 & 65.1874166666667 & 30.1625833333333 \tabularnewline
39 & 105.42 & 70.7554166666667 & 34.6645833333333 \tabularnewline
40 & 112.46 & 74.3574166666667 & 38.1025833333333 \tabularnewline
41 & 125.46 & 78.1974166666667 & 47.2625833333333 \tabularnewline
42 & 134.02 & 84.1194166666667 & 49.9005833333334 \tabularnewline
43 & 133.48 & 85.4734166666667 & 48.0065833333333 \tabularnewline
44 & 116.69 & 84.0434166666667 & 32.6465833333333 \tabularnewline
45 & 103.76 & 80.8534166666667 & 22.9065833333333 \tabularnewline
46 & 76.72 & 76.3134166666667 & 0.406583333333334 \tabularnewline
47 & 57.44 & 73.9834166666667 & -16.5434166666667 \tabularnewline
48 & 42.04 & 70.3754166666667 & -28.3354166666667 \tabularnewline
49 & 41.92 & 69.1008333333334 & -27.1808333333334 \tabularnewline
50 & 39.26 & 69.5788333333333 & -30.3188333333333 \tabularnewline
51 & 48.06 & 75.1468333333333 & -27.0868333333333 \tabularnewline
52 & 49.95 & 78.7488333333333 & -28.7988333333333 \tabularnewline
53 & 59.21 & 82.5888333333333 & -23.3788333333333 \tabularnewline
54 & 69.7 & 88.5108333333333 & -18.8108333333333 \tabularnewline
55 & 64.29 & 89.8648333333333 & -25.5748333333333 \tabularnewline
56 & 71.14 & 88.4348333333333 & -17.2948333333333 \tabularnewline
57 & 69.47 & 85.2448333333333 & -15.7748333333333 \tabularnewline
58 & 75.82 & 80.7048333333333 & -4.88483333333333 \tabularnewline
59 & 78.15 & 78.3748333333333 & -0.224833333333324 \tabularnewline
60 & 74.6 & 74.7668333333333 & -0.166833333333314 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&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]46.85[/C][C]51.5351666666665[/C][C]-4.68516666666653[/C][/ROW]
[ROW][C]2[/C][C]48.05[/C][C]52.0131666666667[/C][C]-3.96316666666669[/C][/ROW]
[ROW][C]3[/C][C]54.63[/C][C]57.5811666666667[/C][C]-2.95116666666668[/C][/ROW]
[ROW][C]4[/C][C]53.22[/C][C]61.1831666666666[/C][C]-7.96316666666663[/C][/ROW]
[ROW][C]5[/C][C]49.87[/C][C]65.0231666666667[/C][C]-15.1531666666667[/C][/ROW]
[ROW][C]6[/C][C]56.42[/C][C]70.9451666666667[/C][C]-14.5251666666667[/C][/ROW]
[ROW][C]7[/C][C]59.03[/C][C]72.2991666666667[/C][C]-13.2691666666667[/C][/ROW]
[ROW][C]8[/C][C]64.99[/C][C]70.8691666666667[/C][C]-5.87916666666668[/C][/ROW]
[ROW][C]9[/C][C]65.55[/C][C]67.6791666666667[/C][C]-2.12916666666667[/C][/ROW]
[ROW][C]10[/C][C]62.27[/C][C]63.1391666666667[/C][C]-0.869166666666666[/C][/ROW]
[ROW][C]11[/C][C]58.34[/C][C]60.8091666666667[/C][C]-2.46916666666667[/C][/ROW]
[ROW][C]12[/C][C]59.45[/C][C]57.2011666666667[/C][C]2.24883333333334[/C][/ROW]
[ROW][C]13[/C][C]65.54[/C][C]55.9265833333334[/C][C]9.61341666666665[/C][/ROW]
[ROW][C]14[/C][C]61.93[/C][C]56.4045833333333[/C][C]5.52541666666666[/C][/ROW]
[ROW][C]15[/C][C]62.97[/C][C]61.9725833333333[/C][C]0.99741666666666[/C][/ROW]
[ROW][C]16[/C][C]70.16[/C][C]65.5745833333333[/C][C]4.58541666666666[/C][/ROW]
[ROW][C]17[/C][C]70.96[/C][C]69.4145833333333[/C][C]1.54541666666666[/C][/ROW]
[ROW][C]18[/C][C]70.97[/C][C]75.3365833333333[/C][C]-4.36658333333334[/C][/ROW]
[ROW][C]19[/C][C]74.46[/C][C]76.6905833333333[/C][C]-2.23058333333335[/C][/ROW]
[ROW][C]20[/C][C]73.08[/C][C]75.2605833333333[/C][C]-2.18058333333334[/C][/ROW]
[ROW][C]21[/C][C]63.9[/C][C]72.0705833333333[/C][C]-8.17058333333334[/C][/ROW]
[ROW][C]22[/C][C]59.14[/C][C]67.5305833333333[/C][C]-8.39058333333334[/C][/ROW]
[ROW][C]23[/C][C]59.4[/C][C]65.2005833333333[/C][C]-5.80058333333334[/C][/ROW]
[ROW][C]24[/C][C]62.09[/C][C]61.5925833333333[/C][C]0.497416666666681[/C][/ROW]
[ROW][C]25[/C][C]54.35[/C][C]60.318[/C][C]-5.96800000000004[/C][/ROW]
[ROW][C]26[/C][C]59.39[/C][C]60.796[/C][C]-1.40600000000000[/C][/ROW]
[ROW][C]27[/C][C]60.74[/C][C]66.364[/C][C]-5.624[/C][/ROW]
[ROW][C]28[/C][C]64.04[/C][C]69.966[/C][C]-5.92599999999999[/C][/ROW]
[ROW][C]29[/C][C]63.53[/C][C]73.806[/C][C]-10.276[/C][/ROW]
[ROW][C]30[/C][C]67.53[/C][C]79.728[/C][C]-12.198[/C][/ROW]
[ROW][C]31[/C][C]74.15[/C][C]81.082[/C][C]-6.932[/C][/ROW]
[ROW][C]32[/C][C]72.36[/C][C]79.652[/C][C]-7.292[/C][/ROW]
[ROW][C]33[/C][C]79.63[/C][C]76.462[/C][C]3.168[/C][/ROW]
[ROW][C]34[/C][C]85.66[/C][C]71.922[/C][C]13.738[/C][/ROW]
[ROW][C]35[/C][C]94.63[/C][C]69.592[/C][C]25.038[/C][/ROW]
[ROW][C]36[/C][C]91.74[/C][C]65.984[/C][C]25.756[/C][/ROW]
[ROW][C]37[/C][C]92.93[/C][C]64.7094166666667[/C][C]28.2205833333333[/C][/ROW]
[ROW][C]38[/C][C]95.35[/C][C]65.1874166666667[/C][C]30.1625833333333[/C][/ROW]
[ROW][C]39[/C][C]105.42[/C][C]70.7554166666667[/C][C]34.6645833333333[/C][/ROW]
[ROW][C]40[/C][C]112.46[/C][C]74.3574166666667[/C][C]38.1025833333333[/C][/ROW]
[ROW][C]41[/C][C]125.46[/C][C]78.1974166666667[/C][C]47.2625833333333[/C][/ROW]
[ROW][C]42[/C][C]134.02[/C][C]84.1194166666667[/C][C]49.9005833333334[/C][/ROW]
[ROW][C]43[/C][C]133.48[/C][C]85.4734166666667[/C][C]48.0065833333333[/C][/ROW]
[ROW][C]44[/C][C]116.69[/C][C]84.0434166666667[/C][C]32.6465833333333[/C][/ROW]
[ROW][C]45[/C][C]103.76[/C][C]80.8534166666667[/C][C]22.9065833333333[/C][/ROW]
[ROW][C]46[/C][C]76.72[/C][C]76.3134166666667[/C][C]0.406583333333334[/C][/ROW]
[ROW][C]47[/C][C]57.44[/C][C]73.9834166666667[/C][C]-16.5434166666667[/C][/ROW]
[ROW][C]48[/C][C]42.04[/C][C]70.3754166666667[/C][C]-28.3354166666667[/C][/ROW]
[ROW][C]49[/C][C]41.92[/C][C]69.1008333333334[/C][C]-27.1808333333334[/C][/ROW]
[ROW][C]50[/C][C]39.26[/C][C]69.5788333333333[/C][C]-30.3188333333333[/C][/ROW]
[ROW][C]51[/C][C]48.06[/C][C]75.1468333333333[/C][C]-27.0868333333333[/C][/ROW]
[ROW][C]52[/C][C]49.95[/C][C]78.7488333333333[/C][C]-28.7988333333333[/C][/ROW]
[ROW][C]53[/C][C]59.21[/C][C]82.5888333333333[/C][C]-23.3788333333333[/C][/ROW]
[ROW][C]54[/C][C]69.7[/C][C]88.5108333333333[/C][C]-18.8108333333333[/C][/ROW]
[ROW][C]55[/C][C]64.29[/C][C]89.8648333333333[/C][C]-25.5748333333333[/C][/ROW]
[ROW][C]56[/C][C]71.14[/C][C]88.4348333333333[/C][C]-17.2948333333333[/C][/ROW]
[ROW][C]57[/C][C]69.47[/C][C]85.2448333333333[/C][C]-15.7748333333333[/C][/ROW]
[ROW][C]58[/C][C]75.82[/C][C]80.7048333333333[/C][C]-4.88483333333333[/C][/ROW]
[ROW][C]59[/C][C]78.15[/C][C]78.3748333333333[/C][C]-0.224833333333324[/C][/ROW]
[ROW][C]60[/C][C]74.6[/C][C]74.7668333333333[/C][C]-0.166833333333314[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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
146.8551.5351666666665-4.68516666666653
248.0552.0131666666667-3.96316666666669
354.6357.5811666666667-2.95116666666668
453.2261.1831666666666-7.96316666666663
549.8765.0231666666667-15.1531666666667
656.4270.9451666666667-14.5251666666667
759.0372.2991666666667-13.2691666666667
864.9970.8691666666667-5.87916666666668
965.5567.6791666666667-2.12916666666667
1062.2763.1391666666667-0.869166666666666
1158.3460.8091666666667-2.46916666666667
1259.4557.20116666666672.24883333333334
1365.5455.92658333333349.61341666666665
1461.9356.40458333333335.52541666666666
1562.9761.97258333333330.99741666666666
1670.1665.57458333333334.58541666666666
1770.9669.41458333333331.54541666666666
1870.9775.3365833333333-4.36658333333334
1974.4676.6905833333333-2.23058333333335
2073.0875.2605833333333-2.18058333333334
2163.972.0705833333333-8.17058333333334
2259.1467.5305833333333-8.39058333333334
2359.465.2005833333333-5.80058333333334
2462.0961.59258333333330.497416666666681
2554.3560.318-5.96800000000004
2659.3960.796-1.40600000000000
2760.7466.364-5.624
2864.0469.966-5.92599999999999
2963.5373.806-10.276
3067.5379.728-12.198
3174.1581.082-6.932
3272.3679.652-7.292
3379.6376.4623.168
3485.6671.92213.738
3594.6369.59225.038
3691.7465.98425.756
3792.9364.709416666666728.2205833333333
3895.3565.187416666666730.1625833333333
39105.4270.755416666666734.6645833333333
40112.4674.357416666666738.1025833333333
41125.4678.197416666666747.2625833333333
42134.0284.119416666666749.9005833333334
43133.4885.473416666666748.0065833333333
44116.6984.043416666666732.6465833333333
45103.7680.853416666666722.9065833333333
4676.7276.31341666666670.406583333333334
4757.4473.9834166666667-16.5434166666667
4842.0470.3754166666667-28.3354166666667
4941.9269.1008333333334-27.1808333333334
5039.2669.5788333333333-30.3188333333333
5148.0675.1468333333333-27.0868333333333
5249.9578.7488333333333-28.7988333333333
5359.2182.5888333333333-23.3788333333333
5469.788.5108333333333-18.8108333333333
5564.2989.8648333333333-25.5748333333333
5671.1488.4348333333333-17.2948333333333
5769.4785.2448333333333-15.7748333333333
5875.8280.7048333333333-4.88483333333333
5978.1578.3748333333333-0.224833333333324
6074.674.7668333333333-0.166833333333314







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.002630538869311930.005261077738623870.997369461130688
170.000631868575592170.001263737151184340.999368131424408
187.34641743466015e-050.0001469283486932030.999926535825653
197.56746256307722e-061.51349251261544e-050.999992432537437
202.88995603352467e-065.77991206704933e-060.999997110043966
211.3740556288444e-052.7481112576888e-050.999986259443712
221.82225554028152e-053.64451108056304e-050.999981777444597
237.52575243867712e-061.50515048773542e-050.999992474247561
242.22725955859776e-064.45451911719552e-060.999997772740441
252.76103348583162e-065.52206697166324e-060.999997238966514
268.20603256876916e-071.64120651375383e-060.999999179396743
273.06150426693875e-076.12300853387751e-070.999999693849573
281.05196928216101e-072.10393856432202e-070.999999894803072
294.60776990022425e-089.21553980044849e-080.999999953922301
303.04172723222194e-086.08345446444388e-080.999999969582728
311.92152636098083e-083.84305272196167e-080.999999980784736
322.11392849930122e-084.22785699860244e-080.999999978860715
333.03014407716362e-086.06028815432723e-080.99999996969856
341.60663035611125e-073.21326071222249e-070.999999839336964
352.62510739550891e-065.25021479101782e-060.999997374892605
365.25595625307418e-061.05119125061484e-050.999994744043747
378.52552973774598e-061.70510594754920e-050.999991474470262
381.18880723280486e-052.37761446560972e-050.999988111927672
392.7223710540691e-055.4447421081382e-050.99997277628946
407.76653677387382e-050.0001553307354774760.99992233463226
410.0007142054858487430.001428410971697490.99928579451415
420.004879080512337270.009758161024674550.995120919487663
430.04443977851602510.08887955703205010.955560221483975
440.1183998725769860.2367997451539730.881600127423014

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00263053886931193 & 0.00526107773862387 & 0.997369461130688 \tabularnewline
17 & 0.00063186857559217 & 0.00126373715118434 & 0.999368131424408 \tabularnewline
18 & 7.34641743466015e-05 & 0.000146928348693203 & 0.999926535825653 \tabularnewline
19 & 7.56746256307722e-06 & 1.51349251261544e-05 & 0.999992432537437 \tabularnewline
20 & 2.88995603352467e-06 & 5.77991206704933e-06 & 0.999997110043966 \tabularnewline
21 & 1.3740556288444e-05 & 2.7481112576888e-05 & 0.999986259443712 \tabularnewline
22 & 1.82225554028152e-05 & 3.64451108056304e-05 & 0.999981777444597 \tabularnewline
23 & 7.52575243867712e-06 & 1.50515048773542e-05 & 0.999992474247561 \tabularnewline
24 & 2.22725955859776e-06 & 4.45451911719552e-06 & 0.999997772740441 \tabularnewline
25 & 2.76103348583162e-06 & 5.52206697166324e-06 & 0.999997238966514 \tabularnewline
26 & 8.20603256876916e-07 & 1.64120651375383e-06 & 0.999999179396743 \tabularnewline
27 & 3.06150426693875e-07 & 6.12300853387751e-07 & 0.999999693849573 \tabularnewline
28 & 1.05196928216101e-07 & 2.10393856432202e-07 & 0.999999894803072 \tabularnewline
29 & 4.60776990022425e-08 & 9.21553980044849e-08 & 0.999999953922301 \tabularnewline
30 & 3.04172723222194e-08 & 6.08345446444388e-08 & 0.999999969582728 \tabularnewline
31 & 1.92152636098083e-08 & 3.84305272196167e-08 & 0.999999980784736 \tabularnewline
32 & 2.11392849930122e-08 & 4.22785699860244e-08 & 0.999999978860715 \tabularnewline
33 & 3.03014407716362e-08 & 6.06028815432723e-08 & 0.99999996969856 \tabularnewline
34 & 1.60663035611125e-07 & 3.21326071222249e-07 & 0.999999839336964 \tabularnewline
35 & 2.62510739550891e-06 & 5.25021479101782e-06 & 0.999997374892605 \tabularnewline
36 & 5.25595625307418e-06 & 1.05119125061484e-05 & 0.999994744043747 \tabularnewline
37 & 8.52552973774598e-06 & 1.70510594754920e-05 & 0.999991474470262 \tabularnewline
38 & 1.18880723280486e-05 & 2.37761446560972e-05 & 0.999988111927672 \tabularnewline
39 & 2.7223710540691e-05 & 5.4447421081382e-05 & 0.99997277628946 \tabularnewline
40 & 7.76653677387382e-05 & 0.000155330735477476 & 0.99992233463226 \tabularnewline
41 & 0.000714205485848743 & 0.00142841097169749 & 0.99928579451415 \tabularnewline
42 & 0.00487908051233727 & 0.00975816102467455 & 0.995120919487663 \tabularnewline
43 & 0.0444397785160251 & 0.0888795570320501 & 0.955560221483975 \tabularnewline
44 & 0.118399872576986 & 0.236799745153973 & 0.881600127423014 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&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]16[/C][C]0.00263053886931193[/C][C]0.00526107773862387[/C][C]0.997369461130688[/C][/ROW]
[ROW][C]17[/C][C]0.00063186857559217[/C][C]0.00126373715118434[/C][C]0.999368131424408[/C][/ROW]
[ROW][C]18[/C][C]7.34641743466015e-05[/C][C]0.000146928348693203[/C][C]0.999926535825653[/C][/ROW]
[ROW][C]19[/C][C]7.56746256307722e-06[/C][C]1.51349251261544e-05[/C][C]0.999992432537437[/C][/ROW]
[ROW][C]20[/C][C]2.88995603352467e-06[/C][C]5.77991206704933e-06[/C][C]0.999997110043966[/C][/ROW]
[ROW][C]21[/C][C]1.3740556288444e-05[/C][C]2.7481112576888e-05[/C][C]0.999986259443712[/C][/ROW]
[ROW][C]22[/C][C]1.82225554028152e-05[/C][C]3.64451108056304e-05[/C][C]0.999981777444597[/C][/ROW]
[ROW][C]23[/C][C]7.52575243867712e-06[/C][C]1.50515048773542e-05[/C][C]0.999992474247561[/C][/ROW]
[ROW][C]24[/C][C]2.22725955859776e-06[/C][C]4.45451911719552e-06[/C][C]0.999997772740441[/C][/ROW]
[ROW][C]25[/C][C]2.76103348583162e-06[/C][C]5.52206697166324e-06[/C][C]0.999997238966514[/C][/ROW]
[ROW][C]26[/C][C]8.20603256876916e-07[/C][C]1.64120651375383e-06[/C][C]0.999999179396743[/C][/ROW]
[ROW][C]27[/C][C]3.06150426693875e-07[/C][C]6.12300853387751e-07[/C][C]0.999999693849573[/C][/ROW]
[ROW][C]28[/C][C]1.05196928216101e-07[/C][C]2.10393856432202e-07[/C][C]0.999999894803072[/C][/ROW]
[ROW][C]29[/C][C]4.60776990022425e-08[/C][C]9.21553980044849e-08[/C][C]0.999999953922301[/C][/ROW]
[ROW][C]30[/C][C]3.04172723222194e-08[/C][C]6.08345446444388e-08[/C][C]0.999999969582728[/C][/ROW]
[ROW][C]31[/C][C]1.92152636098083e-08[/C][C]3.84305272196167e-08[/C][C]0.999999980784736[/C][/ROW]
[ROW][C]32[/C][C]2.11392849930122e-08[/C][C]4.22785699860244e-08[/C][C]0.999999978860715[/C][/ROW]
[ROW][C]33[/C][C]3.03014407716362e-08[/C][C]6.06028815432723e-08[/C][C]0.99999996969856[/C][/ROW]
[ROW][C]34[/C][C]1.60663035611125e-07[/C][C]3.21326071222249e-07[/C][C]0.999999839336964[/C][/ROW]
[ROW][C]35[/C][C]2.62510739550891e-06[/C][C]5.25021479101782e-06[/C][C]0.999997374892605[/C][/ROW]
[ROW][C]36[/C][C]5.25595625307418e-06[/C][C]1.05119125061484e-05[/C][C]0.999994744043747[/C][/ROW]
[ROW][C]37[/C][C]8.52552973774598e-06[/C][C]1.70510594754920e-05[/C][C]0.999991474470262[/C][/ROW]
[ROW][C]38[/C][C]1.18880723280486e-05[/C][C]2.37761446560972e-05[/C][C]0.999988111927672[/C][/ROW]
[ROW][C]39[/C][C]2.7223710540691e-05[/C][C]5.4447421081382e-05[/C][C]0.99997277628946[/C][/ROW]
[ROW][C]40[/C][C]7.76653677387382e-05[/C][C]0.000155330735477476[/C][C]0.99992233463226[/C][/ROW]
[ROW][C]41[/C][C]0.000714205485848743[/C][C]0.00142841097169749[/C][C]0.99928579451415[/C][/ROW]
[ROW][C]42[/C][C]0.00487908051233727[/C][C]0.00975816102467455[/C][C]0.995120919487663[/C][/ROW]
[ROW][C]43[/C][C]0.0444397785160251[/C][C]0.0888795570320501[/C][C]0.955560221483975[/C][/ROW]
[ROW][C]44[/C][C]0.118399872576986[/C][C]0.236799745153973[/C][C]0.881600127423014[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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
160.002630538869311930.005261077738623870.997369461130688
170.000631868575592170.001263737151184340.999368131424408
187.34641743466015e-050.0001469283486932030.999926535825653
197.56746256307722e-061.51349251261544e-050.999992432537437
202.88995603352467e-065.77991206704933e-060.999997110043966
211.3740556288444e-052.7481112576888e-050.999986259443712
221.82225554028152e-053.64451108056304e-050.999981777444597
237.52575243867712e-061.50515048773542e-050.999992474247561
242.22725955859776e-064.45451911719552e-060.999997772740441
252.76103348583162e-065.52206697166324e-060.999997238966514
268.20603256876916e-071.64120651375383e-060.999999179396743
273.06150426693875e-076.12300853387751e-070.999999693849573
281.05196928216101e-072.10393856432202e-070.999999894803072
294.60776990022425e-089.21553980044849e-080.999999953922301
303.04172723222194e-086.08345446444388e-080.999999969582728
311.92152636098083e-083.84305272196167e-080.999999980784736
322.11392849930122e-084.22785699860244e-080.999999978860715
333.03014407716362e-086.06028815432723e-080.99999996969856
341.60663035611125e-073.21326071222249e-070.999999839336964
352.62510739550891e-065.25021479101782e-060.999997374892605
365.25595625307418e-061.05119125061484e-050.999994744043747
378.52552973774598e-061.70510594754920e-050.999991474470262
381.18880723280486e-052.37761446560972e-050.999988111927672
392.7223710540691e-055.4447421081382e-050.99997277628946
407.76653677387382e-050.0001553307354774760.99992233463226
410.0007142054858487430.001428410971697490.99928579451415
420.004879080512337270.009758161024674550.995120919487663
430.04443977851602510.08887955703205010.955560221483975
440.1183998725769860.2367997451539730.881600127423014







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level270.93103448275862NOK
5% type I error level270.93103448275862NOK
10% type I error level280.96551724137931NOK

\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 & 27 & 0.93103448275862 & NOK \tabularnewline
5% type I error level & 27 & 0.93103448275862 & NOK \tabularnewline
10% type I error level & 28 & 0.96551724137931 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103816&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]27[/C][C]0.93103448275862[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]27[/C][C]0.93103448275862[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]28[/C][C]0.96551724137931[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103816&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103816&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 level270.93103448275862NOK
5% type I error level270.93103448275862NOK
10% type I error level280.96551724137931NOK



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')
}