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 computationSun, 20 Dec 2009 03:35:52 -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/20/t12613054466scd1pc09dzy7s8.htm/, Retrieved Sat, 27 Apr 2024 07:50:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69823, Retrieved Sat, 27 Apr 2024 07:50:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact104
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Model 2] [2009-12-20 10:35:52] [e458b4e05bf28a297f8af8d9f96e59d6] [Current]
Feedback Forum

Post a new message
Dataseries X:
100,0	100,0
95,3	100,6
90,7	114,2
88,4	91,5
86,0	94,7
86,0	110,6
95,3	71,3
95,3	104,1
88,4	112,3
86,0	110,2
81,4	112,9
83,7	95,1
95,3	103,1
88,4	101,9
86,0	100,4
83,7	106,9
76,7	100,7
79,1	114,3
86,0	73,3
86,0	105,9
79,1	113,9
76,7	112,1
69,8	117,5
69,8	97,5
76,7	112,3
69,8	106,9
67,4	120,9
65,1	92,7
58,1	110,9
60,5	116,5
65,1	77,1
62,8	113,1
55,8	115,9
51,2	123,5
48,8	123,6
48,8	101,5
53,5	121,0
48,8	112,2
46,5	126,0
44,2	101,8
39,5	117,9
41,9	122,2
48,8	82,7
46,5	120,5
41,9	120,3
39,5	134,2
37,2	128,2
37,2	100,5
41,9	126,0
39,5	122,9
39,5	106,1
34,9	130,4
34,9	121,3
34,9	126,1
41,9	88,7
41,9	118,7
39,5	129,3
39,5	136,2
41,9	123,0
46,5	103,5




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

\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
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&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]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 249.415186059235 -1.92948389941011Productie[t] + 41.0931629464141M1[t] + 29.0656105865259M2[t] + 35.6398262018006M3[t] + 15.7845988530270M4[t] + 20.1315073664078M5[t] + 38.6281450371932M6[t] -30.2991618876123M7[t] + 34.0745732684258M8[t] + 39.8599385969573M9[t] + 46.9544097040668M10[t] + 39.9495451253646M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloosheid[t] =  +  249.415186059235 -1.92948389941011Productie[t] +  41.0931629464141M1[t] +  29.0656105865259M2[t] +  35.6398262018006M3[t] +  15.7845988530270M4[t] +  20.1315073664078M5[t] +  38.6281450371932M6[t] -30.2991618876123M7[t] +  34.0745732684258M8[t] +  39.8599385969573M9[t] +  46.9544097040668M10[t] +  39.9495451253646M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloosheid[t] =  +  249.415186059235 -1.92948389941011Productie[t] +  41.0931629464141M1[t] +  29.0656105865259M2[t] +  35.6398262018006M3[t] +  15.7845988530270M4[t] +  20.1315073664078M5[t] +  38.6281450371932M6[t] -30.2991618876123M7[t] +  34.0745732684258M8[t] +  39.8599385969573M9[t] +  46.9544097040668M10[t] +  39.9495451253646M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69823&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
Werkloosheid[t] = + 249.415186059235 -1.92948389941011Productie[t] + 41.0931629464141M1[t] + 29.0656105865259M2[t] + 35.6398262018006M3[t] + 15.7845988530270M4[t] + 20.1315073664078M5[t] + 38.6281450371932M6[t] -30.2991618876123M7[t] + 34.0745732684258M8[t] + 39.8599385969573M9[t] + 46.9544097040668M10[t] + 39.9495451253646M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)249.41518605923521.07147311.836600
Productie-1.929483899410110.202925-9.508400
M141.09316294641418.8033874.66792.6e-051.3e-05
M229.06561058652598.6160183.37340.0014950.000747
M335.63982620180068.8682384.01880.000210.000105
M415.78459885302708.4696831.86370.0686240.034312
M520.13150736640788.6249792.33410.0239170.011958
M638.62814503719329.1929314.20190.0001175.9e-05
M7-30.29916188761239.42599-3.21440.0023640.001182
M834.07457326842588.8021853.87110.0003330.000167
M939.85993859695739.2260554.32048e-054e-05
M1046.95440970406689.6779774.85171.4e-057e-06
M1139.94954512536469.4648264.22080.000115.5e-05

\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) & 249.415186059235 & 21.071473 & 11.8366 & 0 & 0 \tabularnewline
Productie & -1.92948389941011 & 0.202925 & -9.5084 & 0 & 0 \tabularnewline
M1 & 41.0931629464141 & 8.803387 & 4.6679 & 2.6e-05 & 1.3e-05 \tabularnewline
M2 & 29.0656105865259 & 8.616018 & 3.3734 & 0.001495 & 0.000747 \tabularnewline
M3 & 35.6398262018006 & 8.868238 & 4.0188 & 0.00021 & 0.000105 \tabularnewline
M4 & 15.7845988530270 & 8.469683 & 1.8637 & 0.068624 & 0.034312 \tabularnewline
M5 & 20.1315073664078 & 8.624979 & 2.3341 & 0.023917 & 0.011958 \tabularnewline
M6 & 38.6281450371932 & 9.192931 & 4.2019 & 0.000117 & 5.9e-05 \tabularnewline
M7 & -30.2991618876123 & 9.42599 & -3.2144 & 0.002364 & 0.001182 \tabularnewline
M8 & 34.0745732684258 & 8.802185 & 3.8711 & 0.000333 & 0.000167 \tabularnewline
M9 & 39.8599385969573 & 9.226055 & 4.3204 & 8e-05 & 4e-05 \tabularnewline
M10 & 46.9544097040668 & 9.677977 & 4.8517 & 1.4e-05 & 7e-06 \tabularnewline
M11 & 39.9495451253646 & 9.464826 & 4.2208 & 0.00011 & 5.5e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&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]249.415186059235[/C][C]21.071473[/C][C]11.8366[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Productie[/C][C]-1.92948389941011[/C][C]0.202925[/C][C]-9.5084[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]41.0931629464141[/C][C]8.803387[/C][C]4.6679[/C][C]2.6e-05[/C][C]1.3e-05[/C][/ROW]
[ROW][C]M2[/C][C]29.0656105865259[/C][C]8.616018[/C][C]3.3734[/C][C]0.001495[/C][C]0.000747[/C][/ROW]
[ROW][C]M3[/C][C]35.6398262018006[/C][C]8.868238[/C][C]4.0188[/C][C]0.00021[/C][C]0.000105[/C][/ROW]
[ROW][C]M4[/C][C]15.7845988530270[/C][C]8.469683[/C][C]1.8637[/C][C]0.068624[/C][C]0.034312[/C][/ROW]
[ROW][C]M5[/C][C]20.1315073664078[/C][C]8.624979[/C][C]2.3341[/C][C]0.023917[/C][C]0.011958[/C][/ROW]
[ROW][C]M6[/C][C]38.6281450371932[/C][C]9.192931[/C][C]4.2019[/C][C]0.000117[/C][C]5.9e-05[/C][/ROW]
[ROW][C]M7[/C][C]-30.2991618876123[/C][C]9.42599[/C][C]-3.2144[/C][C]0.002364[/C][C]0.001182[/C][/ROW]
[ROW][C]M8[/C][C]34.0745732684258[/C][C]8.802185[/C][C]3.8711[/C][C]0.000333[/C][C]0.000167[/C][/ROW]
[ROW][C]M9[/C][C]39.8599385969573[/C][C]9.226055[/C][C]4.3204[/C][C]8e-05[/C][C]4e-05[/C][/ROW]
[ROW][C]M10[/C][C]46.9544097040668[/C][C]9.677977[/C][C]4.8517[/C][C]1.4e-05[/C][C]7e-06[/C][/ROW]
[ROW][C]M11[/C][C]39.9495451253646[/C][C]9.464826[/C][C]4.2208[/C][C]0.00011[/C][C]5.5e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69823&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)249.41518605923521.07147311.836600
Productie-1.929483899410110.202925-9.508400
M141.09316294641418.8033874.66792.6e-051.3e-05
M229.06561058652598.6160183.37340.0014950.000747
M335.63982620180068.8682384.01880.000210.000105
M415.78459885302708.4696831.86370.0686240.034312
M520.13150736640788.6249792.33410.0239170.011958
M638.62814503719329.1929314.20190.0001175.9e-05
M7-30.29916188761239.42599-3.21440.0023640.001182
M834.07457326842588.8021853.87110.0003330.000167
M939.85993859695739.2260554.32048e-054e-05
M1046.95440970406689.6779774.85171.4e-057e-06
M1139.94954512536469.4648264.22080.000115.5e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.82371411150098
R-squared0.678504937485848
Adjusted R-squared0.596421091737554
F-TEST (value)8.2659983983505
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.50185317912855e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.2937513016362
Sum Squared Residuals8306.01971247849

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.82371411150098 \tabularnewline
R-squared & 0.678504937485848 \tabularnewline
Adjusted R-squared & 0.596421091737554 \tabularnewline
F-TEST (value) & 8.2659983983505 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 4.50185317912855e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.2937513016362 \tabularnewline
Sum Squared Residuals & 8306.01971247849 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.82371411150098[/C][/ROW]
[ROW][C]R-squared[/C][C]0.678504937485848[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.596421091737554[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.2659983983505[/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]4.50185317912855e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.2937513016362[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8306.01971247849[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69823&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.82371411150098
R-squared0.678504937485848
Adjusted R-squared0.596421091737554
F-TEST (value)8.2659983983505
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.50185317912855e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.2937513016362
Sum Squared Residuals8306.01971247849







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110097.5599590646382.44004093536208
295.384.374716365103810.9252836348962
390.764.707950948401125.9920490515989
488.488.652008116237-0.252008116237041
58686.8245681515056-0.824568151505607
68674.642411821670211.3575881783298
795.381.54382214368213.7561778563180
895.382.630485399068512.6695146009315
988.472.594082752437115.8059172475629
108683.74047004830782.25952995169217
1181.471.52599894119839.8740010588017
1283.765.921267225333717.7787327746663
1395.391.57855897646693.7214410235331
1488.481.86638729587086.5336127041292
158691.3348287602606-5.33482876026065
1683.758.937956065321424.7620439346786
1776.775.24766475504491.45233524495508
1879.167.503321393852811.5966786061472
198677.68485434486188.31514565513822
208679.15741438013036.84258561986969
2179.169.50690851338099.59309148661911
2276.780.0744506394286-3.37445063942863
2369.862.65037300391187.14962699608822
2469.861.29050586674948.50949413325055
2576.773.82730710189392.87269289810612
2669.872.2189677988202-2.41896779882024
2767.451.780408822353415.6195911776466
2865.186.336627436945-21.2366274369449
2958.155.56692898106182.53307101893821
3060.563.2584568151505-2.75845681515055
3165.170.3528155271034-5.25281552710338
3262.865.2651303043775-2.46513030437754
3355.865.6479407145607-9.84794071456066
3451.258.0783341861534-6.87833418615335
3548.850.8805212175101-2.08052121751012
3648.853.572570269109-4.772570269109
3753.557.0407971770259-3.54079717702592
3848.861.9927031319467-13.1927031319467
3946.541.94004093536184.55995906463816
4044.268.7783239523129-24.5783239523129
4139.542.060541685191-2.56054168519102
4241.952.2603985885129-10.3603985885129
4348.859.5477056904067-10.7477056904067
4446.550.9869494487427-4.48694944874272
4541.957.1582115571562-15.2582115571562
4639.537.43285646246522.06714353753480
4737.242.0048952802236-4.80489528022362
4837.255.5020541685191-18.3020541685191
4941.947.3933776799754-5.49337767997538
5039.541.3472254082585-1.84722540825847
5139.580.336770533623-40.8367705336230
5234.913.595084429183821.3049155708162
5334.935.5002964271967-0.600296427196659
5434.944.7354113808135-9.8354113808135
5541.947.9708022939461-6.07080229394606
5641.954.4600204676809-12.5600204676809
5739.539.7928564624652-0.292856462465183
5839.533.5738886636455.92611133635502
5941.952.0382115571562-10.1382115571562
6046.549.7136024702888-3.21360247028878

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100 & 97.559959064638 & 2.44004093536208 \tabularnewline
2 & 95.3 & 84.3747163651038 & 10.9252836348962 \tabularnewline
3 & 90.7 & 64.7079509484011 & 25.9920490515989 \tabularnewline
4 & 88.4 & 88.652008116237 & -0.252008116237041 \tabularnewline
5 & 86 & 86.8245681515056 & -0.824568151505607 \tabularnewline
6 & 86 & 74.6424118216702 & 11.3575881783298 \tabularnewline
7 & 95.3 & 81.543822143682 & 13.7561778563180 \tabularnewline
8 & 95.3 & 82.6304853990685 & 12.6695146009315 \tabularnewline
9 & 88.4 & 72.5940827524371 & 15.8059172475629 \tabularnewline
10 & 86 & 83.7404700483078 & 2.25952995169217 \tabularnewline
11 & 81.4 & 71.5259989411983 & 9.8740010588017 \tabularnewline
12 & 83.7 & 65.9212672253337 & 17.7787327746663 \tabularnewline
13 & 95.3 & 91.5785589764669 & 3.7214410235331 \tabularnewline
14 & 88.4 & 81.8663872958708 & 6.5336127041292 \tabularnewline
15 & 86 & 91.3348287602606 & -5.33482876026065 \tabularnewline
16 & 83.7 & 58.9379560653214 & 24.7620439346786 \tabularnewline
17 & 76.7 & 75.2476647550449 & 1.45233524495508 \tabularnewline
18 & 79.1 & 67.5033213938528 & 11.5966786061472 \tabularnewline
19 & 86 & 77.6848543448618 & 8.31514565513822 \tabularnewline
20 & 86 & 79.1574143801303 & 6.84258561986969 \tabularnewline
21 & 79.1 & 69.5069085133809 & 9.59309148661911 \tabularnewline
22 & 76.7 & 80.0744506394286 & -3.37445063942863 \tabularnewline
23 & 69.8 & 62.6503730039118 & 7.14962699608822 \tabularnewline
24 & 69.8 & 61.2905058667494 & 8.50949413325055 \tabularnewline
25 & 76.7 & 73.8273071018939 & 2.87269289810612 \tabularnewline
26 & 69.8 & 72.2189677988202 & -2.41896779882024 \tabularnewline
27 & 67.4 & 51.7804088223534 & 15.6195911776466 \tabularnewline
28 & 65.1 & 86.336627436945 & -21.2366274369449 \tabularnewline
29 & 58.1 & 55.5669289810618 & 2.53307101893821 \tabularnewline
30 & 60.5 & 63.2584568151505 & -2.75845681515055 \tabularnewline
31 & 65.1 & 70.3528155271034 & -5.25281552710338 \tabularnewline
32 & 62.8 & 65.2651303043775 & -2.46513030437754 \tabularnewline
33 & 55.8 & 65.6479407145607 & -9.84794071456066 \tabularnewline
34 & 51.2 & 58.0783341861534 & -6.87833418615335 \tabularnewline
35 & 48.8 & 50.8805212175101 & -2.08052121751012 \tabularnewline
36 & 48.8 & 53.572570269109 & -4.772570269109 \tabularnewline
37 & 53.5 & 57.0407971770259 & -3.54079717702592 \tabularnewline
38 & 48.8 & 61.9927031319467 & -13.1927031319467 \tabularnewline
39 & 46.5 & 41.9400409353618 & 4.55995906463816 \tabularnewline
40 & 44.2 & 68.7783239523129 & -24.5783239523129 \tabularnewline
41 & 39.5 & 42.060541685191 & -2.56054168519102 \tabularnewline
42 & 41.9 & 52.2603985885129 & -10.3603985885129 \tabularnewline
43 & 48.8 & 59.5477056904067 & -10.7477056904067 \tabularnewline
44 & 46.5 & 50.9869494487427 & -4.48694944874272 \tabularnewline
45 & 41.9 & 57.1582115571562 & -15.2582115571562 \tabularnewline
46 & 39.5 & 37.4328564624652 & 2.06714353753480 \tabularnewline
47 & 37.2 & 42.0048952802236 & -4.80489528022362 \tabularnewline
48 & 37.2 & 55.5020541685191 & -18.3020541685191 \tabularnewline
49 & 41.9 & 47.3933776799754 & -5.49337767997538 \tabularnewline
50 & 39.5 & 41.3472254082585 & -1.84722540825847 \tabularnewline
51 & 39.5 & 80.336770533623 & -40.8367705336230 \tabularnewline
52 & 34.9 & 13.5950844291838 & 21.3049155708162 \tabularnewline
53 & 34.9 & 35.5002964271967 & -0.600296427196659 \tabularnewline
54 & 34.9 & 44.7354113808135 & -9.8354113808135 \tabularnewline
55 & 41.9 & 47.9708022939461 & -6.07080229394606 \tabularnewline
56 & 41.9 & 54.4600204676809 & -12.5600204676809 \tabularnewline
57 & 39.5 & 39.7928564624652 & -0.292856462465183 \tabularnewline
58 & 39.5 & 33.573888663645 & 5.92611133635502 \tabularnewline
59 & 41.9 & 52.0382115571562 & -10.1382115571562 \tabularnewline
60 & 46.5 & 49.7136024702888 & -3.21360247028878 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&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]100[/C][C]97.559959064638[/C][C]2.44004093536208[/C][/ROW]
[ROW][C]2[/C][C]95.3[/C][C]84.3747163651038[/C][C]10.9252836348962[/C][/ROW]
[ROW][C]3[/C][C]90.7[/C][C]64.7079509484011[/C][C]25.9920490515989[/C][/ROW]
[ROW][C]4[/C][C]88.4[/C][C]88.652008116237[/C][C]-0.252008116237041[/C][/ROW]
[ROW][C]5[/C][C]86[/C][C]86.8245681515056[/C][C]-0.824568151505607[/C][/ROW]
[ROW][C]6[/C][C]86[/C][C]74.6424118216702[/C][C]11.3575881783298[/C][/ROW]
[ROW][C]7[/C][C]95.3[/C][C]81.543822143682[/C][C]13.7561778563180[/C][/ROW]
[ROW][C]8[/C][C]95.3[/C][C]82.6304853990685[/C][C]12.6695146009315[/C][/ROW]
[ROW][C]9[/C][C]88.4[/C][C]72.5940827524371[/C][C]15.8059172475629[/C][/ROW]
[ROW][C]10[/C][C]86[/C][C]83.7404700483078[/C][C]2.25952995169217[/C][/ROW]
[ROW][C]11[/C][C]81.4[/C][C]71.5259989411983[/C][C]9.8740010588017[/C][/ROW]
[ROW][C]12[/C][C]83.7[/C][C]65.9212672253337[/C][C]17.7787327746663[/C][/ROW]
[ROW][C]13[/C][C]95.3[/C][C]91.5785589764669[/C][C]3.7214410235331[/C][/ROW]
[ROW][C]14[/C][C]88.4[/C][C]81.8663872958708[/C][C]6.5336127041292[/C][/ROW]
[ROW][C]15[/C][C]86[/C][C]91.3348287602606[/C][C]-5.33482876026065[/C][/ROW]
[ROW][C]16[/C][C]83.7[/C][C]58.9379560653214[/C][C]24.7620439346786[/C][/ROW]
[ROW][C]17[/C][C]76.7[/C][C]75.2476647550449[/C][C]1.45233524495508[/C][/ROW]
[ROW][C]18[/C][C]79.1[/C][C]67.5033213938528[/C][C]11.5966786061472[/C][/ROW]
[ROW][C]19[/C][C]86[/C][C]77.6848543448618[/C][C]8.31514565513822[/C][/ROW]
[ROW][C]20[/C][C]86[/C][C]79.1574143801303[/C][C]6.84258561986969[/C][/ROW]
[ROW][C]21[/C][C]79.1[/C][C]69.5069085133809[/C][C]9.59309148661911[/C][/ROW]
[ROW][C]22[/C][C]76.7[/C][C]80.0744506394286[/C][C]-3.37445063942863[/C][/ROW]
[ROW][C]23[/C][C]69.8[/C][C]62.6503730039118[/C][C]7.14962699608822[/C][/ROW]
[ROW][C]24[/C][C]69.8[/C][C]61.2905058667494[/C][C]8.50949413325055[/C][/ROW]
[ROW][C]25[/C][C]76.7[/C][C]73.8273071018939[/C][C]2.87269289810612[/C][/ROW]
[ROW][C]26[/C][C]69.8[/C][C]72.2189677988202[/C][C]-2.41896779882024[/C][/ROW]
[ROW][C]27[/C][C]67.4[/C][C]51.7804088223534[/C][C]15.6195911776466[/C][/ROW]
[ROW][C]28[/C][C]65.1[/C][C]86.336627436945[/C][C]-21.2366274369449[/C][/ROW]
[ROW][C]29[/C][C]58.1[/C][C]55.5669289810618[/C][C]2.53307101893821[/C][/ROW]
[ROW][C]30[/C][C]60.5[/C][C]63.2584568151505[/C][C]-2.75845681515055[/C][/ROW]
[ROW][C]31[/C][C]65.1[/C][C]70.3528155271034[/C][C]-5.25281552710338[/C][/ROW]
[ROW][C]32[/C][C]62.8[/C][C]65.2651303043775[/C][C]-2.46513030437754[/C][/ROW]
[ROW][C]33[/C][C]55.8[/C][C]65.6479407145607[/C][C]-9.84794071456066[/C][/ROW]
[ROW][C]34[/C][C]51.2[/C][C]58.0783341861534[/C][C]-6.87833418615335[/C][/ROW]
[ROW][C]35[/C][C]48.8[/C][C]50.8805212175101[/C][C]-2.08052121751012[/C][/ROW]
[ROW][C]36[/C][C]48.8[/C][C]53.572570269109[/C][C]-4.772570269109[/C][/ROW]
[ROW][C]37[/C][C]53.5[/C][C]57.0407971770259[/C][C]-3.54079717702592[/C][/ROW]
[ROW][C]38[/C][C]48.8[/C][C]61.9927031319467[/C][C]-13.1927031319467[/C][/ROW]
[ROW][C]39[/C][C]46.5[/C][C]41.9400409353618[/C][C]4.55995906463816[/C][/ROW]
[ROW][C]40[/C][C]44.2[/C][C]68.7783239523129[/C][C]-24.5783239523129[/C][/ROW]
[ROW][C]41[/C][C]39.5[/C][C]42.060541685191[/C][C]-2.56054168519102[/C][/ROW]
[ROW][C]42[/C][C]41.9[/C][C]52.2603985885129[/C][C]-10.3603985885129[/C][/ROW]
[ROW][C]43[/C][C]48.8[/C][C]59.5477056904067[/C][C]-10.7477056904067[/C][/ROW]
[ROW][C]44[/C][C]46.5[/C][C]50.9869494487427[/C][C]-4.48694944874272[/C][/ROW]
[ROW][C]45[/C][C]41.9[/C][C]57.1582115571562[/C][C]-15.2582115571562[/C][/ROW]
[ROW][C]46[/C][C]39.5[/C][C]37.4328564624652[/C][C]2.06714353753480[/C][/ROW]
[ROW][C]47[/C][C]37.2[/C][C]42.0048952802236[/C][C]-4.80489528022362[/C][/ROW]
[ROW][C]48[/C][C]37.2[/C][C]55.5020541685191[/C][C]-18.3020541685191[/C][/ROW]
[ROW][C]49[/C][C]41.9[/C][C]47.3933776799754[/C][C]-5.49337767997538[/C][/ROW]
[ROW][C]50[/C][C]39.5[/C][C]41.3472254082585[/C][C]-1.84722540825847[/C][/ROW]
[ROW][C]51[/C][C]39.5[/C][C]80.336770533623[/C][C]-40.8367705336230[/C][/ROW]
[ROW][C]52[/C][C]34.9[/C][C]13.5950844291838[/C][C]21.3049155708162[/C][/ROW]
[ROW][C]53[/C][C]34.9[/C][C]35.5002964271967[/C][C]-0.600296427196659[/C][/ROW]
[ROW][C]54[/C][C]34.9[/C][C]44.7354113808135[/C][C]-9.8354113808135[/C][/ROW]
[ROW][C]55[/C][C]41.9[/C][C]47.9708022939461[/C][C]-6.07080229394606[/C][/ROW]
[ROW][C]56[/C][C]41.9[/C][C]54.4600204676809[/C][C]-12.5600204676809[/C][/ROW]
[ROW][C]57[/C][C]39.5[/C][C]39.7928564624652[/C][C]-0.292856462465183[/C][/ROW]
[ROW][C]58[/C][C]39.5[/C][C]33.573888663645[/C][C]5.92611133635502[/C][/ROW]
[ROW][C]59[/C][C]41.9[/C][C]52.0382115571562[/C][C]-10.1382115571562[/C][/ROW]
[ROW][C]60[/C][C]46.5[/C][C]49.7136024702888[/C][C]-3.21360247028878[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69823&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
110097.5599590646382.44004093536208
295.384.374716365103810.9252836348962
390.764.707950948401125.9920490515989
488.488.652008116237-0.252008116237041
58686.8245681515056-0.824568151505607
68674.642411821670211.3575881783298
795.381.54382214368213.7561778563180
895.382.630485399068512.6695146009315
988.472.594082752437115.8059172475629
108683.74047004830782.25952995169217
1181.471.52599894119839.8740010588017
1283.765.921267225333717.7787327746663
1395.391.57855897646693.7214410235331
1488.481.86638729587086.5336127041292
158691.3348287602606-5.33482876026065
1683.758.937956065321424.7620439346786
1776.775.24766475504491.45233524495508
1879.167.503321393852811.5966786061472
198677.68485434486188.31514565513822
208679.15741438013036.84258561986969
2179.169.50690851338099.59309148661911
2276.780.0744506394286-3.37445063942863
2369.862.65037300391187.14962699608822
2469.861.29050586674948.50949413325055
2576.773.82730710189392.87269289810612
2669.872.2189677988202-2.41896779882024
2767.451.780408822353415.6195911776466
2865.186.336627436945-21.2366274369449
2958.155.56692898106182.53307101893821
3060.563.2584568151505-2.75845681515055
3165.170.3528155271034-5.25281552710338
3262.865.2651303043775-2.46513030437754
3355.865.6479407145607-9.84794071456066
3451.258.0783341861534-6.87833418615335
3548.850.8805212175101-2.08052121751012
3648.853.572570269109-4.772570269109
3753.557.0407971770259-3.54079717702592
3848.861.9927031319467-13.1927031319467
3946.541.94004093536184.55995906463816
4044.268.7783239523129-24.5783239523129
4139.542.060541685191-2.56054168519102
4241.952.2603985885129-10.3603985885129
4348.859.5477056904067-10.7477056904067
4446.550.9869494487427-4.48694944874272
4541.957.1582115571562-15.2582115571562
4639.537.43285646246522.06714353753480
4737.242.0048952802236-4.80489528022362
4837.255.5020541685191-18.3020541685191
4941.947.3933776799754-5.49337767997538
5039.541.3472254082585-1.84722540825847
5139.580.336770533623-40.8367705336230
5234.913.595084429183821.3049155708162
5334.935.5002964271967-0.600296427196659
5434.944.7354113808135-9.8354113808135
5541.947.9708022939461-6.07080229394606
5641.954.4600204676809-12.5600204676809
5739.539.7928564624652-0.292856462465183
5839.533.5738886636455.92611133635502
5941.952.0382115571562-10.1382115571562
6046.549.7136024702888-3.21360247028878







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05844334032470810.1168866806494160.941556659675292
170.04219799657353850.0843959931470770.957802003426461
180.02551278874642080.05102557749284160.97448721125358
190.02351446218496130.04702892436992260.976485537815039
200.02254237106211170.04508474212422350.977457628937888
210.02558779847219210.05117559694438410.974412201527808
220.02164482252761210.04328964505522420.978355177472388
230.02650450837023260.05300901674046510.973495491629767
240.05157542940110040.1031508588022010.9484245705989
250.1081688860663520.2163377721327040.891831113933648
260.2315386779250170.4630773558500340.768461322074983
270.4249925477124220.8499850954248450.575007452287578
280.7507397769243840.4985204461512330.249260223075616
290.7922323758834540.4155352482330920.207767624116546
300.9047997373805320.1904005252389360.0952002626194682
310.962733132794140.07453373441172020.0372668672058601
320.9882241354907550.02355172901848990.0117758645092449
330.9962325859418480.007534828116304180.00376741405815209
340.9960445579318620.007910884136275930.00395544206813797
350.9964878851015330.007024229796933820.00351211489846691
360.9965401088629860.006919782274027820.00345989113701391
370.9970006900878740.00599861982425190.00299930991212595
380.9966691842821440.006661631435711170.00333081571785559
390.9985617204545480.002876559090904230.00143827954545211
400.9972174598183290.005565080363342840.00278254018167142
410.9920659427342060.01586811453158750.00793405726579374
420.9851652926249850.02966941475003010.0148347073750150
430.9713145766848390.05737084663032280.0286854233151614
440.932466468937480.1350670621250390.0675335310625194

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0584433403247081 & 0.116886680649416 & 0.941556659675292 \tabularnewline
17 & 0.0421979965735385 & 0.084395993147077 & 0.957802003426461 \tabularnewline
18 & 0.0255127887464208 & 0.0510255774928416 & 0.97448721125358 \tabularnewline
19 & 0.0235144621849613 & 0.0470289243699226 & 0.976485537815039 \tabularnewline
20 & 0.0225423710621117 & 0.0450847421242235 & 0.977457628937888 \tabularnewline
21 & 0.0255877984721921 & 0.0511755969443841 & 0.974412201527808 \tabularnewline
22 & 0.0216448225276121 & 0.0432896450552242 & 0.978355177472388 \tabularnewline
23 & 0.0265045083702326 & 0.0530090167404651 & 0.973495491629767 \tabularnewline
24 & 0.0515754294011004 & 0.103150858802201 & 0.9484245705989 \tabularnewline
25 & 0.108168886066352 & 0.216337772132704 & 0.891831113933648 \tabularnewline
26 & 0.231538677925017 & 0.463077355850034 & 0.768461322074983 \tabularnewline
27 & 0.424992547712422 & 0.849985095424845 & 0.575007452287578 \tabularnewline
28 & 0.750739776924384 & 0.498520446151233 & 0.249260223075616 \tabularnewline
29 & 0.792232375883454 & 0.415535248233092 & 0.207767624116546 \tabularnewline
30 & 0.904799737380532 & 0.190400525238936 & 0.0952002626194682 \tabularnewline
31 & 0.96273313279414 & 0.0745337344117202 & 0.0372668672058601 \tabularnewline
32 & 0.988224135490755 & 0.0235517290184899 & 0.0117758645092449 \tabularnewline
33 & 0.996232585941848 & 0.00753482811630418 & 0.00376741405815209 \tabularnewline
34 & 0.996044557931862 & 0.00791088413627593 & 0.00395544206813797 \tabularnewline
35 & 0.996487885101533 & 0.00702422979693382 & 0.00351211489846691 \tabularnewline
36 & 0.996540108862986 & 0.00691978227402782 & 0.00345989113701391 \tabularnewline
37 & 0.997000690087874 & 0.0059986198242519 & 0.00299930991212595 \tabularnewline
38 & 0.996669184282144 & 0.00666163143571117 & 0.00333081571785559 \tabularnewline
39 & 0.998561720454548 & 0.00287655909090423 & 0.00143827954545211 \tabularnewline
40 & 0.997217459818329 & 0.00556508036334284 & 0.00278254018167142 \tabularnewline
41 & 0.992065942734206 & 0.0158681145315875 & 0.00793405726579374 \tabularnewline
42 & 0.985165292624985 & 0.0296694147500301 & 0.0148347073750150 \tabularnewline
43 & 0.971314576684839 & 0.0573708466303228 & 0.0286854233151614 \tabularnewline
44 & 0.93246646893748 & 0.135067062125039 & 0.0675335310625194 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&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.0584433403247081[/C][C]0.116886680649416[/C][C]0.941556659675292[/C][/ROW]
[ROW][C]17[/C][C]0.0421979965735385[/C][C]0.084395993147077[/C][C]0.957802003426461[/C][/ROW]
[ROW][C]18[/C][C]0.0255127887464208[/C][C]0.0510255774928416[/C][C]0.97448721125358[/C][/ROW]
[ROW][C]19[/C][C]0.0235144621849613[/C][C]0.0470289243699226[/C][C]0.976485537815039[/C][/ROW]
[ROW][C]20[/C][C]0.0225423710621117[/C][C]0.0450847421242235[/C][C]0.977457628937888[/C][/ROW]
[ROW][C]21[/C][C]0.0255877984721921[/C][C]0.0511755969443841[/C][C]0.974412201527808[/C][/ROW]
[ROW][C]22[/C][C]0.0216448225276121[/C][C]0.0432896450552242[/C][C]0.978355177472388[/C][/ROW]
[ROW][C]23[/C][C]0.0265045083702326[/C][C]0.0530090167404651[/C][C]0.973495491629767[/C][/ROW]
[ROW][C]24[/C][C]0.0515754294011004[/C][C]0.103150858802201[/C][C]0.9484245705989[/C][/ROW]
[ROW][C]25[/C][C]0.108168886066352[/C][C]0.216337772132704[/C][C]0.891831113933648[/C][/ROW]
[ROW][C]26[/C][C]0.231538677925017[/C][C]0.463077355850034[/C][C]0.768461322074983[/C][/ROW]
[ROW][C]27[/C][C]0.424992547712422[/C][C]0.849985095424845[/C][C]0.575007452287578[/C][/ROW]
[ROW][C]28[/C][C]0.750739776924384[/C][C]0.498520446151233[/C][C]0.249260223075616[/C][/ROW]
[ROW][C]29[/C][C]0.792232375883454[/C][C]0.415535248233092[/C][C]0.207767624116546[/C][/ROW]
[ROW][C]30[/C][C]0.904799737380532[/C][C]0.190400525238936[/C][C]0.0952002626194682[/C][/ROW]
[ROW][C]31[/C][C]0.96273313279414[/C][C]0.0745337344117202[/C][C]0.0372668672058601[/C][/ROW]
[ROW][C]32[/C][C]0.988224135490755[/C][C]0.0235517290184899[/C][C]0.0117758645092449[/C][/ROW]
[ROW][C]33[/C][C]0.996232585941848[/C][C]0.00753482811630418[/C][C]0.00376741405815209[/C][/ROW]
[ROW][C]34[/C][C]0.996044557931862[/C][C]0.00791088413627593[/C][C]0.00395544206813797[/C][/ROW]
[ROW][C]35[/C][C]0.996487885101533[/C][C]0.00702422979693382[/C][C]0.00351211489846691[/C][/ROW]
[ROW][C]36[/C][C]0.996540108862986[/C][C]0.00691978227402782[/C][C]0.00345989113701391[/C][/ROW]
[ROW][C]37[/C][C]0.997000690087874[/C][C]0.0059986198242519[/C][C]0.00299930991212595[/C][/ROW]
[ROW][C]38[/C][C]0.996669184282144[/C][C]0.00666163143571117[/C][C]0.00333081571785559[/C][/ROW]
[ROW][C]39[/C][C]0.998561720454548[/C][C]0.00287655909090423[/C][C]0.00143827954545211[/C][/ROW]
[ROW][C]40[/C][C]0.997217459818329[/C][C]0.00556508036334284[/C][C]0.00278254018167142[/C][/ROW]
[ROW][C]41[/C][C]0.992065942734206[/C][C]0.0158681145315875[/C][C]0.00793405726579374[/C][/ROW]
[ROW][C]42[/C][C]0.985165292624985[/C][C]0.0296694147500301[/C][C]0.0148347073750150[/C][/ROW]
[ROW][C]43[/C][C]0.971314576684839[/C][C]0.0573708466303228[/C][C]0.0286854233151614[/C][/ROW]
[ROW][C]44[/C][C]0.93246646893748[/C][C]0.135067062125039[/C][C]0.0675335310625194[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69823&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.05844334032470810.1168866806494160.941556659675292
170.04219799657353850.0843959931470770.957802003426461
180.02551278874642080.05102557749284160.97448721125358
190.02351446218496130.04702892436992260.976485537815039
200.02254237106211170.04508474212422350.977457628937888
210.02558779847219210.05117559694438410.974412201527808
220.02164482252761210.04328964505522420.978355177472388
230.02650450837023260.05300901674046510.973495491629767
240.05157542940110040.1031508588022010.9484245705989
250.1081688860663520.2163377721327040.891831113933648
260.2315386779250170.4630773558500340.768461322074983
270.4249925477124220.8499850954248450.575007452287578
280.7507397769243840.4985204461512330.249260223075616
290.7922323758834540.4155352482330920.207767624116546
300.9047997373805320.1904005252389360.0952002626194682
310.962733132794140.07453373441172020.0372668672058601
320.9882241354907550.02355172901848990.0117758645092449
330.9962325859418480.007534828116304180.00376741405815209
340.9960445579318620.007910884136275930.00395544206813797
350.9964878851015330.007024229796933820.00351211489846691
360.9965401088629860.006919782274027820.00345989113701391
370.9970006900878740.00599861982425190.00299930991212595
380.9966691842821440.006661631435711170.00333081571785559
390.9985617204545480.002876559090904230.00143827954545211
400.9972174598183290.005565080363342840.00278254018167142
410.9920659427342060.01586811453158750.00793405726579374
420.9851652926249850.02966941475003010.0148347073750150
430.9713145766848390.05737084663032280.0286854233151614
440.932466468937480.1350670621250390.0675335310625194







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.275862068965517NOK
5% type I error level140.482758620689655NOK
10% type I error level200.689655172413793NOK

\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 & 8 & 0.275862068965517 & NOK \tabularnewline
5% type I error level & 14 & 0.482758620689655 & NOK \tabularnewline
10% type I error level & 20 & 0.689655172413793 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69823&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]8[/C][C]0.275862068965517[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]14[/C][C]0.482758620689655[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]20[/C][C]0.689655172413793[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69823&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69823&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 level80.275862068965517NOK
5% type I error level140.482758620689655NOK
10% type I error level200.689655172413793NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}