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 computationFri, 20 Nov 2009 09:45:13 -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/Nov/20/t1258735572j9lq8dinp73713p.htm/, Retrieved Fri, 26 Apr 2024 10:15:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58318, Retrieved Fri, 26 Apr 2024 10:15:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact145
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 16:45:13] [fc845972e0ebdb725d2fb9537c0c51aa] [Current]
Feedback Forum

Post a new message
Dataseries X:
111.4	0
87.4	0
96.8	0
114.1	0
110.3	0
103.9	0
101.6	0
94.6	0
95.9	0
104.7	0
102.8	0
98.1	0
113.9	0
80.9	0
95.7	0
113.2	0
105.9	0
108.8	0
102.3	0
99	0
100.7	0
115.5	0
100.7	0
109.9	0
114.6	0
85.4	0
100.5	0
114.8	0
116.5	0
112.9	0
102	0
106	0
105.3	0
118.8	0
106.1	0
109.3	0
117.2	0
92.5	0
104.2	0
112.5	0
122.4	0
113.3	0
100	0
110.7	0
112.8	0
109.8	0
117.3	0
109.1	0
115.9	0
96	0
99.8	0
116.8	1
115.7	1
99.4	1
94.3	1
91	1
93.2	1
103.1	1
94.1	1
91.8	1
102.7	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time10 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 & 10 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58318&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]10 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=58318&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58318&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 time10 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 98.85059602649 -14.9166390728477X[t] + 9.55899144591611M1[t] -16.0242356512141M2[t] -5.28014486754967M3[t] + 12.3672737306843M4[t] + 12.0313645143488M5[t] + 5.31545529801325M6[t] -2.52045391832229M7[t] -2.51636313465784M8[t] -1.41227235099337M9[t] + 7.17181843267108M10[t] + 0.775909216335541M11[t] + 0.215909216335541t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  98.85059602649 -14.9166390728477X[t] +  9.55899144591611M1[t] -16.0242356512141M2[t] -5.28014486754967M3[t] +  12.3672737306843M4[t] +  12.0313645143488M5[t] +  5.31545529801325M6[t] -2.52045391832229M7[t] -2.51636313465784M8[t] -1.41227235099337M9[t] +  7.17181843267108M10[t] +  0.775909216335541M11[t] +  0.215909216335541t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58318&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  98.85059602649 -14.9166390728477X[t] +  9.55899144591611M1[t] -16.0242356512141M2[t] -5.28014486754967M3[t] +  12.3672737306843M4[t] +  12.0313645143488M5[t] +  5.31545529801325M6[t] -2.52045391832229M7[t] -2.51636313465784M8[t] -1.41227235099337M9[t] +  7.17181843267108M10[t] +  0.775909216335541M11[t] +  0.215909216335541t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58318&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 98.85059602649 -14.9166390728477X[t] + 9.55899144591611M1[t] -16.0242356512141M2[t] -5.28014486754967M3[t] + 12.3672737306843M4[t] + 12.0313645143488M5[t] + 5.31545529801325M6[t] -2.52045391832229M7[t] -2.51636313465784M8[t] -1.41227235099337M9[t] + 7.17181843267108M10[t] + 0.775909216335541M11[t] + 0.215909216335541t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)98.850596026492.30862542.81800
X-14.91663907284771.978489-7.539400
M19.558991445916112.6132363.65790.0006410.000321
M2-16.02423565121412.745086-5.837400
M3-5.280144867549672.742979-1.9250.0602980.030149
M412.36727373068432.7435484.50784.3e-052.2e-05
M512.03136451434882.7388624.39286.3e-053.2e-05
M65.315455298013252.7347941.94360.057940.02897
M7-2.520453918322292.731347-0.92280.3608310.180415
M8-2.516363134657842.728524-0.92220.3611120.180556
M9-1.412272350993372.726326-0.5180.6068790.30344
M107.171818432671082.7247552.63210.0114450.005722
M110.7759092163355412.7238120.28490.7770020.388501
t0.2159092163355410.0413855.21714e-062e-06

\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) & 98.85059602649 & 2.308625 & 42.818 & 0 & 0 \tabularnewline
X & -14.9166390728477 & 1.978489 & -7.5394 & 0 & 0 \tabularnewline
M1 & 9.55899144591611 & 2.613236 & 3.6579 & 0.000641 & 0.000321 \tabularnewline
M2 & -16.0242356512141 & 2.745086 & -5.8374 & 0 & 0 \tabularnewline
M3 & -5.28014486754967 & 2.742979 & -1.925 & 0.060298 & 0.030149 \tabularnewline
M4 & 12.3672737306843 & 2.743548 & 4.5078 & 4.3e-05 & 2.2e-05 \tabularnewline
M5 & 12.0313645143488 & 2.738862 & 4.3928 & 6.3e-05 & 3.2e-05 \tabularnewline
M6 & 5.31545529801325 & 2.734794 & 1.9436 & 0.05794 & 0.02897 \tabularnewline
M7 & -2.52045391832229 & 2.731347 & -0.9228 & 0.360831 & 0.180415 \tabularnewline
M8 & -2.51636313465784 & 2.728524 & -0.9222 & 0.361112 & 0.180556 \tabularnewline
M9 & -1.41227235099337 & 2.726326 & -0.518 & 0.606879 & 0.30344 \tabularnewline
M10 & 7.17181843267108 & 2.724755 & 2.6321 & 0.011445 & 0.005722 \tabularnewline
M11 & 0.775909216335541 & 2.723812 & 0.2849 & 0.777002 & 0.388501 \tabularnewline
t & 0.215909216335541 & 0.041385 & 5.2171 & 4e-06 & 2e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58318&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]98.85059602649[/C][C]2.308625[/C][C]42.818[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-14.9166390728477[/C][C]1.978489[/C][C]-7.5394[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]9.55899144591611[/C][C]2.613236[/C][C]3.6579[/C][C]0.000641[/C][C]0.000321[/C][/ROW]
[ROW][C]M2[/C][C]-16.0242356512141[/C][C]2.745086[/C][C]-5.8374[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-5.28014486754967[/C][C]2.742979[/C][C]-1.925[/C][C]0.060298[/C][C]0.030149[/C][/ROW]
[ROW][C]M4[/C][C]12.3672737306843[/C][C]2.743548[/C][C]4.5078[/C][C]4.3e-05[/C][C]2.2e-05[/C][/ROW]
[ROW][C]M5[/C][C]12.0313645143488[/C][C]2.738862[/C][C]4.3928[/C][C]6.3e-05[/C][C]3.2e-05[/C][/ROW]
[ROW][C]M6[/C][C]5.31545529801325[/C][C]2.734794[/C][C]1.9436[/C][C]0.05794[/C][C]0.02897[/C][/ROW]
[ROW][C]M7[/C][C]-2.52045391832229[/C][C]2.731347[/C][C]-0.9228[/C][C]0.360831[/C][C]0.180415[/C][/ROW]
[ROW][C]M8[/C][C]-2.51636313465784[/C][C]2.728524[/C][C]-0.9222[/C][C]0.361112[/C][C]0.180556[/C][/ROW]
[ROW][C]M9[/C][C]-1.41227235099337[/C][C]2.726326[/C][C]-0.518[/C][C]0.606879[/C][C]0.30344[/C][/ROW]
[ROW][C]M10[/C][C]7.17181843267108[/C][C]2.724755[/C][C]2.6321[/C][C]0.011445[/C][C]0.005722[/C][/ROW]
[ROW][C]M11[/C][C]0.775909216335541[/C][C]2.723812[/C][C]0.2849[/C][C]0.777002[/C][C]0.388501[/C][/ROW]
[ROW][C]t[/C][C]0.215909216335541[/C][C]0.041385[/C][C]5.2171[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58318&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58318&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)98.850596026492.30862542.81800
X-14.91663907284771.978489-7.539400
M19.558991445916112.6132363.65790.0006410.000321
M2-16.02423565121412.745086-5.837400
M3-5.280144867549672.742979-1.9250.0602980.030149
M412.36727373068432.7435484.50784.3e-052.2e-05
M512.03136451434882.7388624.39286.3e-053.2e-05
M65.315455298013252.7347941.94360.057940.02897
M7-2.520453918322292.731347-0.92280.3608310.180415
M8-2.516363134657842.728524-0.92220.3611120.180556
M9-1.412272350993372.726326-0.5180.6068790.30344
M107.171818432671082.7247552.63210.0114450.005722
M110.7759092163355412.7238120.28490.7770020.388501
t0.2159092163355410.0413855.21714e-062e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.911311400399914
R-squared0.830488468498853
Adjusted R-squared0.783602300211301
F-TEST (value)17.712867116918
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value7.07212066686225e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.30622765600411
Sum Squared Residuals871.549041390728

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.911311400399914 \tabularnewline
R-squared & 0.830488468498853 \tabularnewline
Adjusted R-squared & 0.783602300211301 \tabularnewline
F-TEST (value) & 17.712867116918 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 7.07212066686225e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.30622765600411 \tabularnewline
Sum Squared Residuals & 871.549041390728 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58318&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.911311400399914[/C][/ROW]
[ROW][C]R-squared[/C][C]0.830488468498853[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.783602300211301[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]17.712867116918[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]7.07212066686225e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.30622765600411[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]871.549041390728[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58318&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58318&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.911311400399914
R-squared0.830488468498853
Adjusted R-squared0.783602300211301
F-TEST (value)17.712867116918
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value7.07212066686225e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.30622765600411
Sum Squared Residuals871.549041390728







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1111.4108.6254966887422.77450331125823
287.483.2581788079474.14182119205302
396.894.2181788079472.58182119205298
4114.1112.0815066225172.01849337748342
5110.3111.961506622517-1.66150662251656
6103.9105.461506622517-1.56150662251655
7101.697.84150662251653.75849337748346
894.698.0615066225166-3.46150662251656
995.999.3815066225166-3.48150662251655
10104.7108.181506622517-3.48150662251655
11102.8102.0015066225170.798493377483445
1298.1101.441506622517-3.34150662251656
13113.9111.2164072847682.6835927152318
1480.985.8490894039735-4.94908940397352
1595.796.8090894039735-1.10908940397351
16113.2114.672417218543-1.47241721854304
17105.9114.552417218543-8.65241721854304
18108.8108.0524172185430.747582781456949
19102.3100.4324172185431.86758278145695
2099100.652417218543-1.65241721854304
21100.7101.972417218543-1.27241721854305
22115.5110.7724172185434.72758278145695
23100.7104.592417218543-3.89241721854304
24109.9104.0324172185435.86758278145696
25114.6113.8073178807950.792682119205299
2685.488.44-3.04000000000001
27100.599.41.10000000000000
28114.8117.263327814570-2.46332781456953
29116.5117.143327814570-0.643327814569542
30112.9110.6433278145702.25667218543047
31102103.023327814570-1.02332781456954
32106103.2433278145702.75667218543047
33105.3104.5633278145700.736672185430459
34118.8113.3633278145705.43667218543046
35106.1107.183327814570-1.08332781456954
36109.3106.6233278145702.67667218543046
37117.2116.3982284768210.801771523178817
3892.591.03091059602651.46908940397350
39104.2101.9909105960262.20908940397351
40112.5119.854238410596-7.35423841059602
41122.4119.7342384105962.66576158940398
42113.3113.2342384105960.0657615894039687
43100105.614238410596-5.61423841059603
44110.7105.8342384105964.86576158940398
45112.8107.1542384105965.64576158940397
46109.8115.954238410596-6.15423841059603
47117.3109.7742384105967.52576158940397
48109.1109.214238410596-0.114238410596029
49115.9118.989139072848-3.08913907284767
509693.6218211920532.37817880794700
5199.8104.581821192053-4.78182119205298
52116.8107.5285099337759.27149006622517
53115.7107.4085099337758.29149006622516
5499.4100.908509933775-1.50850993377483
5594.393.28850993377481.01149006622516
569193.5085099337748-2.50850993377483
5793.294.8285099337748-1.62850993377483
58103.1103.628509933775-0.528509933774839
5994.197.4485099337748-3.34850993377484
6091.896.8885099337748-5.08850993377484
61102.7106.663410596026-3.96341059602648

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 111.4 & 108.625496688742 & 2.77450331125823 \tabularnewline
2 & 87.4 & 83.258178807947 & 4.14182119205302 \tabularnewline
3 & 96.8 & 94.218178807947 & 2.58182119205298 \tabularnewline
4 & 114.1 & 112.081506622517 & 2.01849337748342 \tabularnewline
5 & 110.3 & 111.961506622517 & -1.66150662251656 \tabularnewline
6 & 103.9 & 105.461506622517 & -1.56150662251655 \tabularnewline
7 & 101.6 & 97.8415066225165 & 3.75849337748346 \tabularnewline
8 & 94.6 & 98.0615066225166 & -3.46150662251656 \tabularnewline
9 & 95.9 & 99.3815066225166 & -3.48150662251655 \tabularnewline
10 & 104.7 & 108.181506622517 & -3.48150662251655 \tabularnewline
11 & 102.8 & 102.001506622517 & 0.798493377483445 \tabularnewline
12 & 98.1 & 101.441506622517 & -3.34150662251656 \tabularnewline
13 & 113.9 & 111.216407284768 & 2.6835927152318 \tabularnewline
14 & 80.9 & 85.8490894039735 & -4.94908940397352 \tabularnewline
15 & 95.7 & 96.8090894039735 & -1.10908940397351 \tabularnewline
16 & 113.2 & 114.672417218543 & -1.47241721854304 \tabularnewline
17 & 105.9 & 114.552417218543 & -8.65241721854304 \tabularnewline
18 & 108.8 & 108.052417218543 & 0.747582781456949 \tabularnewline
19 & 102.3 & 100.432417218543 & 1.86758278145695 \tabularnewline
20 & 99 & 100.652417218543 & -1.65241721854304 \tabularnewline
21 & 100.7 & 101.972417218543 & -1.27241721854305 \tabularnewline
22 & 115.5 & 110.772417218543 & 4.72758278145695 \tabularnewline
23 & 100.7 & 104.592417218543 & -3.89241721854304 \tabularnewline
24 & 109.9 & 104.032417218543 & 5.86758278145696 \tabularnewline
25 & 114.6 & 113.807317880795 & 0.792682119205299 \tabularnewline
26 & 85.4 & 88.44 & -3.04000000000001 \tabularnewline
27 & 100.5 & 99.4 & 1.10000000000000 \tabularnewline
28 & 114.8 & 117.263327814570 & -2.46332781456953 \tabularnewline
29 & 116.5 & 117.143327814570 & -0.643327814569542 \tabularnewline
30 & 112.9 & 110.643327814570 & 2.25667218543047 \tabularnewline
31 & 102 & 103.023327814570 & -1.02332781456954 \tabularnewline
32 & 106 & 103.243327814570 & 2.75667218543047 \tabularnewline
33 & 105.3 & 104.563327814570 & 0.736672185430459 \tabularnewline
34 & 118.8 & 113.363327814570 & 5.43667218543046 \tabularnewline
35 & 106.1 & 107.183327814570 & -1.08332781456954 \tabularnewline
36 & 109.3 & 106.623327814570 & 2.67667218543046 \tabularnewline
37 & 117.2 & 116.398228476821 & 0.801771523178817 \tabularnewline
38 & 92.5 & 91.0309105960265 & 1.46908940397350 \tabularnewline
39 & 104.2 & 101.990910596026 & 2.20908940397351 \tabularnewline
40 & 112.5 & 119.854238410596 & -7.35423841059602 \tabularnewline
41 & 122.4 & 119.734238410596 & 2.66576158940398 \tabularnewline
42 & 113.3 & 113.234238410596 & 0.0657615894039687 \tabularnewline
43 & 100 & 105.614238410596 & -5.61423841059603 \tabularnewline
44 & 110.7 & 105.834238410596 & 4.86576158940398 \tabularnewline
45 & 112.8 & 107.154238410596 & 5.64576158940397 \tabularnewline
46 & 109.8 & 115.954238410596 & -6.15423841059603 \tabularnewline
47 & 117.3 & 109.774238410596 & 7.52576158940397 \tabularnewline
48 & 109.1 & 109.214238410596 & -0.114238410596029 \tabularnewline
49 & 115.9 & 118.989139072848 & -3.08913907284767 \tabularnewline
50 & 96 & 93.621821192053 & 2.37817880794700 \tabularnewline
51 & 99.8 & 104.581821192053 & -4.78182119205298 \tabularnewline
52 & 116.8 & 107.528509933775 & 9.27149006622517 \tabularnewline
53 & 115.7 & 107.408509933775 & 8.29149006622516 \tabularnewline
54 & 99.4 & 100.908509933775 & -1.50850993377483 \tabularnewline
55 & 94.3 & 93.2885099337748 & 1.01149006622516 \tabularnewline
56 & 91 & 93.5085099337748 & -2.50850993377483 \tabularnewline
57 & 93.2 & 94.8285099337748 & -1.62850993377483 \tabularnewline
58 & 103.1 & 103.628509933775 & -0.528509933774839 \tabularnewline
59 & 94.1 & 97.4485099337748 & -3.34850993377484 \tabularnewline
60 & 91.8 & 96.8885099337748 & -5.08850993377484 \tabularnewline
61 & 102.7 & 106.663410596026 & -3.96341059602648 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58318&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]111.4[/C][C]108.625496688742[/C][C]2.77450331125823[/C][/ROW]
[ROW][C]2[/C][C]87.4[/C][C]83.258178807947[/C][C]4.14182119205302[/C][/ROW]
[ROW][C]3[/C][C]96.8[/C][C]94.218178807947[/C][C]2.58182119205298[/C][/ROW]
[ROW][C]4[/C][C]114.1[/C][C]112.081506622517[/C][C]2.01849337748342[/C][/ROW]
[ROW][C]5[/C][C]110.3[/C][C]111.961506622517[/C][C]-1.66150662251656[/C][/ROW]
[ROW][C]6[/C][C]103.9[/C][C]105.461506622517[/C][C]-1.56150662251655[/C][/ROW]
[ROW][C]7[/C][C]101.6[/C][C]97.8415066225165[/C][C]3.75849337748346[/C][/ROW]
[ROW][C]8[/C][C]94.6[/C][C]98.0615066225166[/C][C]-3.46150662251656[/C][/ROW]
[ROW][C]9[/C][C]95.9[/C][C]99.3815066225166[/C][C]-3.48150662251655[/C][/ROW]
[ROW][C]10[/C][C]104.7[/C][C]108.181506622517[/C][C]-3.48150662251655[/C][/ROW]
[ROW][C]11[/C][C]102.8[/C][C]102.001506622517[/C][C]0.798493377483445[/C][/ROW]
[ROW][C]12[/C][C]98.1[/C][C]101.441506622517[/C][C]-3.34150662251656[/C][/ROW]
[ROW][C]13[/C][C]113.9[/C][C]111.216407284768[/C][C]2.6835927152318[/C][/ROW]
[ROW][C]14[/C][C]80.9[/C][C]85.8490894039735[/C][C]-4.94908940397352[/C][/ROW]
[ROW][C]15[/C][C]95.7[/C][C]96.8090894039735[/C][C]-1.10908940397351[/C][/ROW]
[ROW][C]16[/C][C]113.2[/C][C]114.672417218543[/C][C]-1.47241721854304[/C][/ROW]
[ROW][C]17[/C][C]105.9[/C][C]114.552417218543[/C][C]-8.65241721854304[/C][/ROW]
[ROW][C]18[/C][C]108.8[/C][C]108.052417218543[/C][C]0.747582781456949[/C][/ROW]
[ROW][C]19[/C][C]102.3[/C][C]100.432417218543[/C][C]1.86758278145695[/C][/ROW]
[ROW][C]20[/C][C]99[/C][C]100.652417218543[/C][C]-1.65241721854304[/C][/ROW]
[ROW][C]21[/C][C]100.7[/C][C]101.972417218543[/C][C]-1.27241721854305[/C][/ROW]
[ROW][C]22[/C][C]115.5[/C][C]110.772417218543[/C][C]4.72758278145695[/C][/ROW]
[ROW][C]23[/C][C]100.7[/C][C]104.592417218543[/C][C]-3.89241721854304[/C][/ROW]
[ROW][C]24[/C][C]109.9[/C][C]104.032417218543[/C][C]5.86758278145696[/C][/ROW]
[ROW][C]25[/C][C]114.6[/C][C]113.807317880795[/C][C]0.792682119205299[/C][/ROW]
[ROW][C]26[/C][C]85.4[/C][C]88.44[/C][C]-3.04000000000001[/C][/ROW]
[ROW][C]27[/C][C]100.5[/C][C]99.4[/C][C]1.10000000000000[/C][/ROW]
[ROW][C]28[/C][C]114.8[/C][C]117.263327814570[/C][C]-2.46332781456953[/C][/ROW]
[ROW][C]29[/C][C]116.5[/C][C]117.143327814570[/C][C]-0.643327814569542[/C][/ROW]
[ROW][C]30[/C][C]112.9[/C][C]110.643327814570[/C][C]2.25667218543047[/C][/ROW]
[ROW][C]31[/C][C]102[/C][C]103.023327814570[/C][C]-1.02332781456954[/C][/ROW]
[ROW][C]32[/C][C]106[/C][C]103.243327814570[/C][C]2.75667218543047[/C][/ROW]
[ROW][C]33[/C][C]105.3[/C][C]104.563327814570[/C][C]0.736672185430459[/C][/ROW]
[ROW][C]34[/C][C]118.8[/C][C]113.363327814570[/C][C]5.43667218543046[/C][/ROW]
[ROW][C]35[/C][C]106.1[/C][C]107.183327814570[/C][C]-1.08332781456954[/C][/ROW]
[ROW][C]36[/C][C]109.3[/C][C]106.623327814570[/C][C]2.67667218543046[/C][/ROW]
[ROW][C]37[/C][C]117.2[/C][C]116.398228476821[/C][C]0.801771523178817[/C][/ROW]
[ROW][C]38[/C][C]92.5[/C][C]91.0309105960265[/C][C]1.46908940397350[/C][/ROW]
[ROW][C]39[/C][C]104.2[/C][C]101.990910596026[/C][C]2.20908940397351[/C][/ROW]
[ROW][C]40[/C][C]112.5[/C][C]119.854238410596[/C][C]-7.35423841059602[/C][/ROW]
[ROW][C]41[/C][C]122.4[/C][C]119.734238410596[/C][C]2.66576158940398[/C][/ROW]
[ROW][C]42[/C][C]113.3[/C][C]113.234238410596[/C][C]0.0657615894039687[/C][/ROW]
[ROW][C]43[/C][C]100[/C][C]105.614238410596[/C][C]-5.61423841059603[/C][/ROW]
[ROW][C]44[/C][C]110.7[/C][C]105.834238410596[/C][C]4.86576158940398[/C][/ROW]
[ROW][C]45[/C][C]112.8[/C][C]107.154238410596[/C][C]5.64576158940397[/C][/ROW]
[ROW][C]46[/C][C]109.8[/C][C]115.954238410596[/C][C]-6.15423841059603[/C][/ROW]
[ROW][C]47[/C][C]117.3[/C][C]109.774238410596[/C][C]7.52576158940397[/C][/ROW]
[ROW][C]48[/C][C]109.1[/C][C]109.214238410596[/C][C]-0.114238410596029[/C][/ROW]
[ROW][C]49[/C][C]115.9[/C][C]118.989139072848[/C][C]-3.08913907284767[/C][/ROW]
[ROW][C]50[/C][C]96[/C][C]93.621821192053[/C][C]2.37817880794700[/C][/ROW]
[ROW][C]51[/C][C]99.8[/C][C]104.581821192053[/C][C]-4.78182119205298[/C][/ROW]
[ROW][C]52[/C][C]116.8[/C][C]107.528509933775[/C][C]9.27149006622517[/C][/ROW]
[ROW][C]53[/C][C]115.7[/C][C]107.408509933775[/C][C]8.29149006622516[/C][/ROW]
[ROW][C]54[/C][C]99.4[/C][C]100.908509933775[/C][C]-1.50850993377483[/C][/ROW]
[ROW][C]55[/C][C]94.3[/C][C]93.2885099337748[/C][C]1.01149006622516[/C][/ROW]
[ROW][C]56[/C][C]91[/C][C]93.5085099337748[/C][C]-2.50850993377483[/C][/ROW]
[ROW][C]57[/C][C]93.2[/C][C]94.8285099337748[/C][C]-1.62850993377483[/C][/ROW]
[ROW][C]58[/C][C]103.1[/C][C]103.628509933775[/C][C]-0.528509933774839[/C][/ROW]
[ROW][C]59[/C][C]94.1[/C][C]97.4485099337748[/C][C]-3.34850993377484[/C][/ROW]
[ROW][C]60[/C][C]91.8[/C][C]96.8885099337748[/C][C]-5.08850993377484[/C][/ROW]
[ROW][C]61[/C][C]102.7[/C][C]106.663410596026[/C][C]-3.96341059602648[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58318&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58318&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
1111.4108.6254966887422.77450331125823
287.483.2581788079474.14182119205302
396.894.2181788079472.58182119205298
4114.1112.0815066225172.01849337748342
5110.3111.961506622517-1.66150662251656
6103.9105.461506622517-1.56150662251655
7101.697.84150662251653.75849337748346
894.698.0615066225166-3.46150662251656
995.999.3815066225166-3.48150662251655
10104.7108.181506622517-3.48150662251655
11102.8102.0015066225170.798493377483445
1298.1101.441506622517-3.34150662251656
13113.9111.2164072847682.6835927152318
1480.985.8490894039735-4.94908940397352
1595.796.8090894039735-1.10908940397351
16113.2114.672417218543-1.47241721854304
17105.9114.552417218543-8.65241721854304
18108.8108.0524172185430.747582781456949
19102.3100.4324172185431.86758278145695
2099100.652417218543-1.65241721854304
21100.7101.972417218543-1.27241721854305
22115.5110.7724172185434.72758278145695
23100.7104.592417218543-3.89241721854304
24109.9104.0324172185435.86758278145696
25114.6113.8073178807950.792682119205299
2685.488.44-3.04000000000001
27100.599.41.10000000000000
28114.8117.263327814570-2.46332781456953
29116.5117.143327814570-0.643327814569542
30112.9110.6433278145702.25667218543047
31102103.023327814570-1.02332781456954
32106103.2433278145702.75667218543047
33105.3104.5633278145700.736672185430459
34118.8113.3633278145705.43667218543046
35106.1107.183327814570-1.08332781456954
36109.3106.6233278145702.67667218543046
37117.2116.3982284768210.801771523178817
3892.591.03091059602651.46908940397350
39104.2101.9909105960262.20908940397351
40112.5119.854238410596-7.35423841059602
41122.4119.7342384105962.66576158940398
42113.3113.2342384105960.0657615894039687
43100105.614238410596-5.61423841059603
44110.7105.8342384105964.86576158940398
45112.8107.1542384105965.64576158940397
46109.8115.954238410596-6.15423841059603
47117.3109.7742384105967.52576158940397
48109.1109.214238410596-0.114238410596029
49115.9118.989139072848-3.08913907284767
509693.6218211920532.37817880794700
5199.8104.581821192053-4.78182119205298
52116.8107.5285099337759.27149006622517
53115.7107.4085099337758.29149006622516
5499.4100.908509933775-1.50850993377483
5594.393.28850993377481.01149006622516
569193.5085099337748-2.50850993377483
5793.294.8285099337748-1.62850993377483
58103.1103.628509933775-0.528509933774839
5994.197.4485099337748-3.34850993377484
6091.896.8885099337748-5.08850993377484
61102.7106.663410596026-3.96341059602648







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2532787616774220.5065575233548450.746721238322578
180.2981590546067970.5963181092135940.701840945393203
190.182101150420170.364202300840340.81789884957983
200.1621750295122010.3243500590244020.837824970487799
210.1402754986653040.2805509973306080.859724501334696
220.2810991394553180.5621982789106360.718900860544682
230.2421143619285970.4842287238571940.757885638071403
240.3755543730229730.7511087460459470.624445626977027
250.2808540853769170.5617081707538340.719145914623083
260.2333114762387260.4666229524774530.766688523761273
270.1638838735277590.3277677470555190.83611612647224
280.1233892802492980.2467785604985950.876610719750702
290.1554732871513110.3109465743026210.84452671284869
300.1137963451020780.2275926902041560.886203654897922
310.08314097896838910.1662819579367780.916859021031611
320.07433330036788740.1486666007357750.925666699632113
330.05737384751734320.1147476950346860.942626152482657
340.05425659879979160.1085131975995830.945743401200208
350.04383465300738360.08766930601476730.956165346992616
360.02542637187349560.05085274374699110.974573628126504
370.01430433500089360.02860867000178710.985695664999106
380.00983591732181550.0196718346436310.990164082678185
390.004655055442540890.009310110885081780.99534494455746
400.0816514346053670.1633028692107340.918348565394633
410.1161697485683980.2323394971367960.883830251431602
420.06619805687803470.1323961137560690.933801943121965
430.1770836410424440.3541672820848880.822916358957556
440.1260056585454890.2520113170909780.87399434145451

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.253278761677422 & 0.506557523354845 & 0.746721238322578 \tabularnewline
18 & 0.298159054606797 & 0.596318109213594 & 0.701840945393203 \tabularnewline
19 & 0.18210115042017 & 0.36420230084034 & 0.81789884957983 \tabularnewline
20 & 0.162175029512201 & 0.324350059024402 & 0.837824970487799 \tabularnewline
21 & 0.140275498665304 & 0.280550997330608 & 0.859724501334696 \tabularnewline
22 & 0.281099139455318 & 0.562198278910636 & 0.718900860544682 \tabularnewline
23 & 0.242114361928597 & 0.484228723857194 & 0.757885638071403 \tabularnewline
24 & 0.375554373022973 & 0.751108746045947 & 0.624445626977027 \tabularnewline
25 & 0.280854085376917 & 0.561708170753834 & 0.719145914623083 \tabularnewline
26 & 0.233311476238726 & 0.466622952477453 & 0.766688523761273 \tabularnewline
27 & 0.163883873527759 & 0.327767747055519 & 0.83611612647224 \tabularnewline
28 & 0.123389280249298 & 0.246778560498595 & 0.876610719750702 \tabularnewline
29 & 0.155473287151311 & 0.310946574302621 & 0.84452671284869 \tabularnewline
30 & 0.113796345102078 & 0.227592690204156 & 0.886203654897922 \tabularnewline
31 & 0.0831409789683891 & 0.166281957936778 & 0.916859021031611 \tabularnewline
32 & 0.0743333003678874 & 0.148666600735775 & 0.925666699632113 \tabularnewline
33 & 0.0573738475173432 & 0.114747695034686 & 0.942626152482657 \tabularnewline
34 & 0.0542565987997916 & 0.108513197599583 & 0.945743401200208 \tabularnewline
35 & 0.0438346530073836 & 0.0876693060147673 & 0.956165346992616 \tabularnewline
36 & 0.0254263718734956 & 0.0508527437469911 & 0.974573628126504 \tabularnewline
37 & 0.0143043350008936 & 0.0286086700017871 & 0.985695664999106 \tabularnewline
38 & 0.0098359173218155 & 0.019671834643631 & 0.990164082678185 \tabularnewline
39 & 0.00465505544254089 & 0.00931011088508178 & 0.99534494455746 \tabularnewline
40 & 0.081651434605367 & 0.163302869210734 & 0.918348565394633 \tabularnewline
41 & 0.116169748568398 & 0.232339497136796 & 0.883830251431602 \tabularnewline
42 & 0.0661980568780347 & 0.132396113756069 & 0.933801943121965 \tabularnewline
43 & 0.177083641042444 & 0.354167282084888 & 0.822916358957556 \tabularnewline
44 & 0.126005658545489 & 0.252011317090978 & 0.87399434145451 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58318&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.253278761677422[/C][C]0.506557523354845[/C][C]0.746721238322578[/C][/ROW]
[ROW][C]18[/C][C]0.298159054606797[/C][C]0.596318109213594[/C][C]0.701840945393203[/C][/ROW]
[ROW][C]19[/C][C]0.18210115042017[/C][C]0.36420230084034[/C][C]0.81789884957983[/C][/ROW]
[ROW][C]20[/C][C]0.162175029512201[/C][C]0.324350059024402[/C][C]0.837824970487799[/C][/ROW]
[ROW][C]21[/C][C]0.140275498665304[/C][C]0.280550997330608[/C][C]0.859724501334696[/C][/ROW]
[ROW][C]22[/C][C]0.281099139455318[/C][C]0.562198278910636[/C][C]0.718900860544682[/C][/ROW]
[ROW][C]23[/C][C]0.242114361928597[/C][C]0.484228723857194[/C][C]0.757885638071403[/C][/ROW]
[ROW][C]24[/C][C]0.375554373022973[/C][C]0.751108746045947[/C][C]0.624445626977027[/C][/ROW]
[ROW][C]25[/C][C]0.280854085376917[/C][C]0.561708170753834[/C][C]0.719145914623083[/C][/ROW]
[ROW][C]26[/C][C]0.233311476238726[/C][C]0.466622952477453[/C][C]0.766688523761273[/C][/ROW]
[ROW][C]27[/C][C]0.163883873527759[/C][C]0.327767747055519[/C][C]0.83611612647224[/C][/ROW]
[ROW][C]28[/C][C]0.123389280249298[/C][C]0.246778560498595[/C][C]0.876610719750702[/C][/ROW]
[ROW][C]29[/C][C]0.155473287151311[/C][C]0.310946574302621[/C][C]0.84452671284869[/C][/ROW]
[ROW][C]30[/C][C]0.113796345102078[/C][C]0.227592690204156[/C][C]0.886203654897922[/C][/ROW]
[ROW][C]31[/C][C]0.0831409789683891[/C][C]0.166281957936778[/C][C]0.916859021031611[/C][/ROW]
[ROW][C]32[/C][C]0.0743333003678874[/C][C]0.148666600735775[/C][C]0.925666699632113[/C][/ROW]
[ROW][C]33[/C][C]0.0573738475173432[/C][C]0.114747695034686[/C][C]0.942626152482657[/C][/ROW]
[ROW][C]34[/C][C]0.0542565987997916[/C][C]0.108513197599583[/C][C]0.945743401200208[/C][/ROW]
[ROW][C]35[/C][C]0.0438346530073836[/C][C]0.0876693060147673[/C][C]0.956165346992616[/C][/ROW]
[ROW][C]36[/C][C]0.0254263718734956[/C][C]0.0508527437469911[/C][C]0.974573628126504[/C][/ROW]
[ROW][C]37[/C][C]0.0143043350008936[/C][C]0.0286086700017871[/C][C]0.985695664999106[/C][/ROW]
[ROW][C]38[/C][C]0.0098359173218155[/C][C]0.019671834643631[/C][C]0.990164082678185[/C][/ROW]
[ROW][C]39[/C][C]0.00465505544254089[/C][C]0.00931011088508178[/C][C]0.99534494455746[/C][/ROW]
[ROW][C]40[/C][C]0.081651434605367[/C][C]0.163302869210734[/C][C]0.918348565394633[/C][/ROW]
[ROW][C]41[/C][C]0.116169748568398[/C][C]0.232339497136796[/C][C]0.883830251431602[/C][/ROW]
[ROW][C]42[/C][C]0.0661980568780347[/C][C]0.132396113756069[/C][C]0.933801943121965[/C][/ROW]
[ROW][C]43[/C][C]0.177083641042444[/C][C]0.354167282084888[/C][C]0.822916358957556[/C][/ROW]
[ROW][C]44[/C][C]0.126005658545489[/C][C]0.252011317090978[/C][C]0.87399434145451[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58318&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2532787616774220.5065575233548450.746721238322578
180.2981590546067970.5963181092135940.701840945393203
190.182101150420170.364202300840340.81789884957983
200.1621750295122010.3243500590244020.837824970487799
210.1402754986653040.2805509973306080.859724501334696
220.2810991394553180.5621982789106360.718900860544682
230.2421143619285970.4842287238571940.757885638071403
240.3755543730229730.7511087460459470.624445626977027
250.2808540853769170.5617081707538340.719145914623083
260.2333114762387260.4666229524774530.766688523761273
270.1638838735277590.3277677470555190.83611612647224
280.1233892802492980.2467785604985950.876610719750702
290.1554732871513110.3109465743026210.84452671284869
300.1137963451020780.2275926902041560.886203654897922
310.08314097896838910.1662819579367780.916859021031611
320.07433330036788740.1486666007357750.925666699632113
330.05737384751734320.1147476950346860.942626152482657
340.05425659879979160.1085131975995830.945743401200208
350.04383465300738360.08766930601476730.956165346992616
360.02542637187349560.05085274374699110.974573628126504
370.01430433500089360.02860867000178710.985695664999106
380.00983591732181550.0196718346436310.990164082678185
390.004655055442540890.009310110885081780.99534494455746
400.0816514346053670.1633028692107340.918348565394633
410.1161697485683980.2323394971367960.883830251431602
420.06619805687803470.1323961137560690.933801943121965
430.1770836410424440.3541672820848880.822916358957556
440.1260056585454890.2520113170909780.87399434145451







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0357142857142857NOK
5% type I error level30.107142857142857NOK
10% type I error level50.178571428571429NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58318&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 level10.0357142857142857NOK
5% type I error level30.107142857142857NOK
10% type I error level50.178571428571429NOK



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