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 13:25:38 -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/t125874879162dw67d75axcq8h.htm/, Retrieved Thu, 18 Apr 2024 21:22:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58455, Retrieved Thu, 18 Apr 2024 21:22:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact191
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS7 Multiple Regr...] [2009-11-20 19:11:09] [8733f8ed033058987ec00f5e71b74854]
-   P       [Multiple Regression] [WS7 Multiple Regr...] [2009-11-20 19:53:18] [8733f8ed033058987ec00f5e71b74854]
-   P           [Multiple Regression] [WS7 Multiple Regr...] [2009-11-20 20:25:38] [c6e373ff11c42d4585d53e9e88ed5606] [Current]
-    D            [Multiple Regression] [W7 review ] [2009-11-26 16:27:42] [315ba876df544ad397193b5931d5f354]
-   P             [Multiple Regression] [ws 7 lineaire trend] [2009-11-27 18:35:28] [bd8e774728cf1f2f4e6868fd314defe3]
Feedback Forum

Post a new message
Dataseries X:
2.7	0
2.3	0
1.9	0
2.0	0
2.3	0
2.8	0
2.4	0
2.3	0
2.7	0
2.7	0
2.9	0
3.0	0
2.2	0
2.3	0
2.8	0
2.8	0
2.8	0
2.2	0
2.6	0
2.8	0
2.5	0
2.4	0
2.3	0
1.9	0
1.7	0
2.0	0
2.1	0
1.7	0
1.8	0
1.8	0
1.8	0
1.3	0
1.3	0
1.3	1
1.2	1
1.4	1
2.2	1
2.9	1
3.1	1
3.5	1
3.6	1
4.4	1
4.1	1
5.1	1
5.8	1
5.9	1
5.4	1
5.5	1
4.8	1
3.2	1
2.7	1
2.1	1
1.9	1
0.6	1
0.7	1
-0.2	1
-1.0	1
-1.7	1
-0.7	1
-1.0	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Inflatie[t] = + 3.22000000000000 + 2.25833333333333Kredietcrisis[t] + 0.273749999999998M1[t] + 0.160833333333333M2[t] + 0.207916666666666M3[t] + 0.175M4[t] + 0.302083333333333M5[t] + 0.249166666666666M6[t] + 0.276249999999999M7[t] + 0.283333333333333M8[t] + 0.350416666666667M9[t] -0.174166666666667M10[t] -0.00708333333333295M11[t] -0.0670833333333333t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Inflatie[t] =  +  3.22000000000000 +  2.25833333333333Kredietcrisis[t] +  0.273749999999998M1[t] +  0.160833333333333M2[t] +  0.207916666666666M3[t] +  0.175M4[t] +  0.302083333333333M5[t] +  0.249166666666666M6[t] +  0.276249999999999M7[t] +  0.283333333333333M8[t] +  0.350416666666667M9[t] -0.174166666666667M10[t] -0.00708333333333295M11[t] -0.0670833333333333t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58455&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Inflatie[t] =  +  3.22000000000000 +  2.25833333333333Kredietcrisis[t] +  0.273749999999998M1[t] +  0.160833333333333M2[t] +  0.207916666666666M3[t] +  0.175M4[t] +  0.302083333333333M5[t] +  0.249166666666666M6[t] +  0.276249999999999M7[t] +  0.283333333333333M8[t] +  0.350416666666667M9[t] -0.174166666666667M10[t] -0.00708333333333295M11[t] -0.0670833333333333t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58455&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58455&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
Inflatie[t] = + 3.22000000000000 + 2.25833333333333Kredietcrisis[t] + 0.273749999999998M1[t] + 0.160833333333333M2[t] + 0.207916666666666M3[t] + 0.175M4[t] + 0.302083333333333M5[t] + 0.249166666666666M6[t] + 0.276249999999999M7[t] + 0.283333333333333M8[t] + 0.350416666666667M9[t] -0.174166666666667M10[t] -0.00708333333333295M11[t] -0.0670833333333333t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.220000000000000.8775653.66920.000630.000315
Kredietcrisis2.258333333333330.8444372.67440.0103310.005166
M10.2737499999999981.0241150.26730.790430.395215
M20.1608333333333331.0215010.15740.8755810.43779
M30.2079166666666661.0194630.20390.8392940.419647
M40.1751.0180050.17190.8642660.432133
M50.3020833333333331.0171290.2970.7678060.383903
M60.2491666666666661.0168370.2450.8075150.403757
M70.2762499999999991.0171290.27160.7871460.393573
M80.2833333333333331.0180050.27830.7820120.391006
M90.3504166666666671.0194630.34370.7326180.366309
M10-0.1741666666666671.014496-0.17170.8644440.432222
M11-0.007083333333332951.013617-0.0070.9944550.497227
t-0.06708333333333330.024377-2.75190.0084480.004224

\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) & 3.22000000000000 & 0.877565 & 3.6692 & 0.00063 & 0.000315 \tabularnewline
Kredietcrisis & 2.25833333333333 & 0.844437 & 2.6744 & 0.010331 & 0.005166 \tabularnewline
M1 & 0.273749999999998 & 1.024115 & 0.2673 & 0.79043 & 0.395215 \tabularnewline
M2 & 0.160833333333333 & 1.021501 & 0.1574 & 0.875581 & 0.43779 \tabularnewline
M3 & 0.207916666666666 & 1.019463 & 0.2039 & 0.839294 & 0.419647 \tabularnewline
M4 & 0.175 & 1.018005 & 0.1719 & 0.864266 & 0.432133 \tabularnewline
M5 & 0.302083333333333 & 1.017129 & 0.297 & 0.767806 & 0.383903 \tabularnewline
M6 & 0.249166666666666 & 1.016837 & 0.245 & 0.807515 & 0.403757 \tabularnewline
M7 & 0.276249999999999 & 1.017129 & 0.2716 & 0.787146 & 0.393573 \tabularnewline
M8 & 0.283333333333333 & 1.018005 & 0.2783 & 0.782012 & 0.391006 \tabularnewline
M9 & 0.350416666666667 & 1.019463 & 0.3437 & 0.732618 & 0.366309 \tabularnewline
M10 & -0.174166666666667 & 1.014496 & -0.1717 & 0.864444 & 0.432222 \tabularnewline
M11 & -0.00708333333333295 & 1.013617 & -0.007 & 0.994455 & 0.497227 \tabularnewline
t & -0.0670833333333333 & 0.024377 & -2.7519 & 0.008448 & 0.004224 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58455&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]3.22000000000000[/C][C]0.877565[/C][C]3.6692[/C][C]0.00063[/C][C]0.000315[/C][/ROW]
[ROW][C]Kredietcrisis[/C][C]2.25833333333333[/C][C]0.844437[/C][C]2.6744[/C][C]0.010331[/C][C]0.005166[/C][/ROW]
[ROW][C]M1[/C][C]0.273749999999998[/C][C]1.024115[/C][C]0.2673[/C][C]0.79043[/C][C]0.395215[/C][/ROW]
[ROW][C]M2[/C][C]0.160833333333333[/C][C]1.021501[/C][C]0.1574[/C][C]0.875581[/C][C]0.43779[/C][/ROW]
[ROW][C]M3[/C][C]0.207916666666666[/C][C]1.019463[/C][C]0.2039[/C][C]0.839294[/C][C]0.419647[/C][/ROW]
[ROW][C]M4[/C][C]0.175[/C][C]1.018005[/C][C]0.1719[/C][C]0.864266[/C][C]0.432133[/C][/ROW]
[ROW][C]M5[/C][C]0.302083333333333[/C][C]1.017129[/C][C]0.297[/C][C]0.767806[/C][C]0.383903[/C][/ROW]
[ROW][C]M6[/C][C]0.249166666666666[/C][C]1.016837[/C][C]0.245[/C][C]0.807515[/C][C]0.403757[/C][/ROW]
[ROW][C]M7[/C][C]0.276249999999999[/C][C]1.017129[/C][C]0.2716[/C][C]0.787146[/C][C]0.393573[/C][/ROW]
[ROW][C]M8[/C][C]0.283333333333333[/C][C]1.018005[/C][C]0.2783[/C][C]0.782012[/C][C]0.391006[/C][/ROW]
[ROW][C]M9[/C][C]0.350416666666667[/C][C]1.019463[/C][C]0.3437[/C][C]0.732618[/C][C]0.366309[/C][/ROW]
[ROW][C]M10[/C][C]-0.174166666666667[/C][C]1.014496[/C][C]-0.1717[/C][C]0.864444[/C][C]0.432222[/C][/ROW]
[ROW][C]M11[/C][C]-0.00708333333333295[/C][C]1.013617[/C][C]-0.007[/C][C]0.994455[/C][C]0.497227[/C][/ROW]
[ROW][C]t[/C][C]-0.0670833333333333[/C][C]0.024377[/C][C]-2.7519[/C][C]0.008448[/C][C]0.004224[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58455&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58455&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)3.220000000000000.8775653.66920.000630.000315
Kredietcrisis2.258333333333330.8444372.67440.0103310.005166
M10.2737499999999981.0241150.26730.790430.395215
M20.1608333333333331.0215010.15740.8755810.43779
M30.2079166666666661.0194630.20390.8392940.419647
M40.1751.0180050.17190.8642660.432133
M50.3020833333333331.0171290.2970.7678060.383903
M60.2491666666666661.0168370.2450.8075150.403757
M70.2762499999999991.0171290.27160.7871460.393573
M80.2833333333333331.0180050.27830.7820120.391006
M90.3504166666666671.0194630.34370.7326180.366309
M10-0.1741666666666671.014496-0.17170.8644440.432222
M11-0.007083333333332951.013617-0.0070.9944550.497227
t-0.06708333333333330.024377-2.75190.0084480.004224







Multiple Linear Regression - Regression Statistics
Multiple R0.396531226368374
R-squared0.157237013485207
Adjusted R-squared-0.0809351348776692
F-TEST (value)0.660182202520349
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.789807794205254
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.60220635917828
Sum Squared Residuals118.085

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.396531226368374 \tabularnewline
R-squared & 0.157237013485207 \tabularnewline
Adjusted R-squared & -0.0809351348776692 \tabularnewline
F-TEST (value) & 0.660182202520349 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.789807794205254 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.60220635917828 \tabularnewline
Sum Squared Residuals & 118.085 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58455&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.396531226368374[/C][/ROW]
[ROW][C]R-squared[/C][C]0.157237013485207[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0809351348776692[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.660182202520349[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.789807794205254[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.60220635917828[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]118.085[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58455&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58455&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.396531226368374
R-squared0.157237013485207
Adjusted R-squared-0.0809351348776692
F-TEST (value)0.660182202520349
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.789807794205254
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.60220635917828
Sum Squared Residuals118.085







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12.73.42666666666668-0.726666666666675
22.33.24666666666667-0.946666666666665
31.93.22666666666667-1.32666666666667
423.12666666666667-1.12666666666667
52.33.18666666666667-0.886666666666666
62.83.06666666666667-0.266666666666667
72.43.02666666666667-0.626666666666666
82.32.96666666666667-0.666666666666666
92.72.96666666666667-0.266666666666666
102.72.3750.325
112.92.4750.425000000000001
1232.4150.585
132.22.62166666666666-0.421666666666664
142.32.44166666666667-0.141666666666666
152.82.421666666666670.378333333333334
162.82.321666666666670.478333333333334
172.82.381666666666670.418333333333333
182.22.26166666666667-0.061666666666666
192.62.221666666666670.378333333333334
202.82.161666666666670.638333333333334
212.52.161666666666670.338333333333333
222.41.570.83
232.31.670.63
241.91.610.29
251.71.81666666666666-0.116666666666665
2621.636666666666670.363333333333334
272.11.616666666666670.483333333333333
281.71.516666666666670.183333333333334
291.81.576666666666670.223333333333333
301.81.456666666666670.343333333333333
311.81.416666666666670.383333333333333
321.31.35666666666667-0.0566666666666671
331.31.35666666666667-0.0566666666666675
341.33.02333333333333-1.72333333333333
351.23.12333333333333-1.92333333333333
361.43.06333333333333-1.66333333333333
372.23.27-1.07000000000000
382.93.09-0.19
393.13.070.0299999999999999
403.52.970.53
413.63.030.57
424.42.911.49
434.12.871.23
445.12.812.29
455.82.812.99
465.92.218333333333333.68166666666667
475.42.318333333333333.08166666666667
485.52.258333333333333.24166666666667
494.82.4652.335
503.22.2850.915
512.72.2650.435
522.12.165-0.0650000000000003
531.92.225-0.325000000000001
540.62.105-1.505
550.72.065-1.365
56-0.22.005-2.205
57-12.005-3.005
58-1.71.41333333333333-3.11333333333333
59-0.71.51333333333333-2.21333333333333
60-11.45333333333333-2.45333333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2.7 & 3.42666666666668 & -0.726666666666675 \tabularnewline
2 & 2.3 & 3.24666666666667 & -0.946666666666665 \tabularnewline
3 & 1.9 & 3.22666666666667 & -1.32666666666667 \tabularnewline
4 & 2 & 3.12666666666667 & -1.12666666666667 \tabularnewline
5 & 2.3 & 3.18666666666667 & -0.886666666666666 \tabularnewline
6 & 2.8 & 3.06666666666667 & -0.266666666666667 \tabularnewline
7 & 2.4 & 3.02666666666667 & -0.626666666666666 \tabularnewline
8 & 2.3 & 2.96666666666667 & -0.666666666666666 \tabularnewline
9 & 2.7 & 2.96666666666667 & -0.266666666666666 \tabularnewline
10 & 2.7 & 2.375 & 0.325 \tabularnewline
11 & 2.9 & 2.475 & 0.425000000000001 \tabularnewline
12 & 3 & 2.415 & 0.585 \tabularnewline
13 & 2.2 & 2.62166666666666 & -0.421666666666664 \tabularnewline
14 & 2.3 & 2.44166666666667 & -0.141666666666666 \tabularnewline
15 & 2.8 & 2.42166666666667 & 0.378333333333334 \tabularnewline
16 & 2.8 & 2.32166666666667 & 0.478333333333334 \tabularnewline
17 & 2.8 & 2.38166666666667 & 0.418333333333333 \tabularnewline
18 & 2.2 & 2.26166666666667 & -0.061666666666666 \tabularnewline
19 & 2.6 & 2.22166666666667 & 0.378333333333334 \tabularnewline
20 & 2.8 & 2.16166666666667 & 0.638333333333334 \tabularnewline
21 & 2.5 & 2.16166666666667 & 0.338333333333333 \tabularnewline
22 & 2.4 & 1.57 & 0.83 \tabularnewline
23 & 2.3 & 1.67 & 0.63 \tabularnewline
24 & 1.9 & 1.61 & 0.29 \tabularnewline
25 & 1.7 & 1.81666666666666 & -0.116666666666665 \tabularnewline
26 & 2 & 1.63666666666667 & 0.363333333333334 \tabularnewline
27 & 2.1 & 1.61666666666667 & 0.483333333333333 \tabularnewline
28 & 1.7 & 1.51666666666667 & 0.183333333333334 \tabularnewline
29 & 1.8 & 1.57666666666667 & 0.223333333333333 \tabularnewline
30 & 1.8 & 1.45666666666667 & 0.343333333333333 \tabularnewline
31 & 1.8 & 1.41666666666667 & 0.383333333333333 \tabularnewline
32 & 1.3 & 1.35666666666667 & -0.0566666666666671 \tabularnewline
33 & 1.3 & 1.35666666666667 & -0.0566666666666675 \tabularnewline
34 & 1.3 & 3.02333333333333 & -1.72333333333333 \tabularnewline
35 & 1.2 & 3.12333333333333 & -1.92333333333333 \tabularnewline
36 & 1.4 & 3.06333333333333 & -1.66333333333333 \tabularnewline
37 & 2.2 & 3.27 & -1.07000000000000 \tabularnewline
38 & 2.9 & 3.09 & -0.19 \tabularnewline
39 & 3.1 & 3.07 & 0.0299999999999999 \tabularnewline
40 & 3.5 & 2.97 & 0.53 \tabularnewline
41 & 3.6 & 3.03 & 0.57 \tabularnewline
42 & 4.4 & 2.91 & 1.49 \tabularnewline
43 & 4.1 & 2.87 & 1.23 \tabularnewline
44 & 5.1 & 2.81 & 2.29 \tabularnewline
45 & 5.8 & 2.81 & 2.99 \tabularnewline
46 & 5.9 & 2.21833333333333 & 3.68166666666667 \tabularnewline
47 & 5.4 & 2.31833333333333 & 3.08166666666667 \tabularnewline
48 & 5.5 & 2.25833333333333 & 3.24166666666667 \tabularnewline
49 & 4.8 & 2.465 & 2.335 \tabularnewline
50 & 3.2 & 2.285 & 0.915 \tabularnewline
51 & 2.7 & 2.265 & 0.435 \tabularnewline
52 & 2.1 & 2.165 & -0.0650000000000003 \tabularnewline
53 & 1.9 & 2.225 & -0.325000000000001 \tabularnewline
54 & 0.6 & 2.105 & -1.505 \tabularnewline
55 & 0.7 & 2.065 & -1.365 \tabularnewline
56 & -0.2 & 2.005 & -2.205 \tabularnewline
57 & -1 & 2.005 & -3.005 \tabularnewline
58 & -1.7 & 1.41333333333333 & -3.11333333333333 \tabularnewline
59 & -0.7 & 1.51333333333333 & -2.21333333333333 \tabularnewline
60 & -1 & 1.45333333333333 & -2.45333333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58455&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]2.7[/C][C]3.42666666666668[/C][C]-0.726666666666675[/C][/ROW]
[ROW][C]2[/C][C]2.3[/C][C]3.24666666666667[/C][C]-0.946666666666665[/C][/ROW]
[ROW][C]3[/C][C]1.9[/C][C]3.22666666666667[/C][C]-1.32666666666667[/C][/ROW]
[ROW][C]4[/C][C]2[/C][C]3.12666666666667[/C][C]-1.12666666666667[/C][/ROW]
[ROW][C]5[/C][C]2.3[/C][C]3.18666666666667[/C][C]-0.886666666666666[/C][/ROW]
[ROW][C]6[/C][C]2.8[/C][C]3.06666666666667[/C][C]-0.266666666666667[/C][/ROW]
[ROW][C]7[/C][C]2.4[/C][C]3.02666666666667[/C][C]-0.626666666666666[/C][/ROW]
[ROW][C]8[/C][C]2.3[/C][C]2.96666666666667[/C][C]-0.666666666666666[/C][/ROW]
[ROW][C]9[/C][C]2.7[/C][C]2.96666666666667[/C][C]-0.266666666666666[/C][/ROW]
[ROW][C]10[/C][C]2.7[/C][C]2.375[/C][C]0.325[/C][/ROW]
[ROW][C]11[/C][C]2.9[/C][C]2.475[/C][C]0.425000000000001[/C][/ROW]
[ROW][C]12[/C][C]3[/C][C]2.415[/C][C]0.585[/C][/ROW]
[ROW][C]13[/C][C]2.2[/C][C]2.62166666666666[/C][C]-0.421666666666664[/C][/ROW]
[ROW][C]14[/C][C]2.3[/C][C]2.44166666666667[/C][C]-0.141666666666666[/C][/ROW]
[ROW][C]15[/C][C]2.8[/C][C]2.42166666666667[/C][C]0.378333333333334[/C][/ROW]
[ROW][C]16[/C][C]2.8[/C][C]2.32166666666667[/C][C]0.478333333333334[/C][/ROW]
[ROW][C]17[/C][C]2.8[/C][C]2.38166666666667[/C][C]0.418333333333333[/C][/ROW]
[ROW][C]18[/C][C]2.2[/C][C]2.26166666666667[/C][C]-0.061666666666666[/C][/ROW]
[ROW][C]19[/C][C]2.6[/C][C]2.22166666666667[/C][C]0.378333333333334[/C][/ROW]
[ROW][C]20[/C][C]2.8[/C][C]2.16166666666667[/C][C]0.638333333333334[/C][/ROW]
[ROW][C]21[/C][C]2.5[/C][C]2.16166666666667[/C][C]0.338333333333333[/C][/ROW]
[ROW][C]22[/C][C]2.4[/C][C]1.57[/C][C]0.83[/C][/ROW]
[ROW][C]23[/C][C]2.3[/C][C]1.67[/C][C]0.63[/C][/ROW]
[ROW][C]24[/C][C]1.9[/C][C]1.61[/C][C]0.29[/C][/ROW]
[ROW][C]25[/C][C]1.7[/C][C]1.81666666666666[/C][C]-0.116666666666665[/C][/ROW]
[ROW][C]26[/C][C]2[/C][C]1.63666666666667[/C][C]0.363333333333334[/C][/ROW]
[ROW][C]27[/C][C]2.1[/C][C]1.61666666666667[/C][C]0.483333333333333[/C][/ROW]
[ROW][C]28[/C][C]1.7[/C][C]1.51666666666667[/C][C]0.183333333333334[/C][/ROW]
[ROW][C]29[/C][C]1.8[/C][C]1.57666666666667[/C][C]0.223333333333333[/C][/ROW]
[ROW][C]30[/C][C]1.8[/C][C]1.45666666666667[/C][C]0.343333333333333[/C][/ROW]
[ROW][C]31[/C][C]1.8[/C][C]1.41666666666667[/C][C]0.383333333333333[/C][/ROW]
[ROW][C]32[/C][C]1.3[/C][C]1.35666666666667[/C][C]-0.0566666666666671[/C][/ROW]
[ROW][C]33[/C][C]1.3[/C][C]1.35666666666667[/C][C]-0.0566666666666675[/C][/ROW]
[ROW][C]34[/C][C]1.3[/C][C]3.02333333333333[/C][C]-1.72333333333333[/C][/ROW]
[ROW][C]35[/C][C]1.2[/C][C]3.12333333333333[/C][C]-1.92333333333333[/C][/ROW]
[ROW][C]36[/C][C]1.4[/C][C]3.06333333333333[/C][C]-1.66333333333333[/C][/ROW]
[ROW][C]37[/C][C]2.2[/C][C]3.27[/C][C]-1.07000000000000[/C][/ROW]
[ROW][C]38[/C][C]2.9[/C][C]3.09[/C][C]-0.19[/C][/ROW]
[ROW][C]39[/C][C]3.1[/C][C]3.07[/C][C]0.0299999999999999[/C][/ROW]
[ROW][C]40[/C][C]3.5[/C][C]2.97[/C][C]0.53[/C][/ROW]
[ROW][C]41[/C][C]3.6[/C][C]3.03[/C][C]0.57[/C][/ROW]
[ROW][C]42[/C][C]4.4[/C][C]2.91[/C][C]1.49[/C][/ROW]
[ROW][C]43[/C][C]4.1[/C][C]2.87[/C][C]1.23[/C][/ROW]
[ROW][C]44[/C][C]5.1[/C][C]2.81[/C][C]2.29[/C][/ROW]
[ROW][C]45[/C][C]5.8[/C][C]2.81[/C][C]2.99[/C][/ROW]
[ROW][C]46[/C][C]5.9[/C][C]2.21833333333333[/C][C]3.68166666666667[/C][/ROW]
[ROW][C]47[/C][C]5.4[/C][C]2.31833333333333[/C][C]3.08166666666667[/C][/ROW]
[ROW][C]48[/C][C]5.5[/C][C]2.25833333333333[/C][C]3.24166666666667[/C][/ROW]
[ROW][C]49[/C][C]4.8[/C][C]2.465[/C][C]2.335[/C][/ROW]
[ROW][C]50[/C][C]3.2[/C][C]2.285[/C][C]0.915[/C][/ROW]
[ROW][C]51[/C][C]2.7[/C][C]2.265[/C][C]0.435[/C][/ROW]
[ROW][C]52[/C][C]2.1[/C][C]2.165[/C][C]-0.0650000000000003[/C][/ROW]
[ROW][C]53[/C][C]1.9[/C][C]2.225[/C][C]-0.325000000000001[/C][/ROW]
[ROW][C]54[/C][C]0.6[/C][C]2.105[/C][C]-1.505[/C][/ROW]
[ROW][C]55[/C][C]0.7[/C][C]2.065[/C][C]-1.365[/C][/ROW]
[ROW][C]56[/C][C]-0.2[/C][C]2.005[/C][C]-2.205[/C][/ROW]
[ROW][C]57[/C][C]-1[/C][C]2.005[/C][C]-3.005[/C][/ROW]
[ROW][C]58[/C][C]-1.7[/C][C]1.41333333333333[/C][C]-3.11333333333333[/C][/ROW]
[ROW][C]59[/C][C]-0.7[/C][C]1.51333333333333[/C][C]-2.21333333333333[/C][/ROW]
[ROW][C]60[/C][C]-1[/C][C]1.45333333333333[/C][C]-2.45333333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58455&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58455&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
12.73.42666666666668-0.726666666666675
22.33.24666666666667-0.946666666666665
31.93.22666666666667-1.32666666666667
423.12666666666667-1.12666666666667
52.33.18666666666667-0.886666666666666
62.83.06666666666667-0.266666666666667
72.43.02666666666667-0.626666666666666
82.32.96666666666667-0.666666666666666
92.72.96666666666667-0.266666666666666
102.72.3750.325
112.92.4750.425000000000001
1232.4150.585
132.22.62166666666666-0.421666666666664
142.32.44166666666667-0.141666666666666
152.82.421666666666670.378333333333334
162.82.321666666666670.478333333333334
172.82.381666666666670.418333333333333
182.22.26166666666667-0.061666666666666
192.62.221666666666670.378333333333334
202.82.161666666666670.638333333333334
212.52.161666666666670.338333333333333
222.41.570.83
232.31.670.63
241.91.610.29
251.71.81666666666666-0.116666666666665
2621.636666666666670.363333333333334
272.11.616666666666670.483333333333333
281.71.516666666666670.183333333333334
291.81.576666666666670.223333333333333
301.81.456666666666670.343333333333333
311.81.416666666666670.383333333333333
321.31.35666666666667-0.0566666666666671
331.31.35666666666667-0.0566666666666675
341.33.02333333333333-1.72333333333333
351.23.12333333333333-1.92333333333333
361.43.06333333333333-1.66333333333333
372.23.27-1.07000000000000
382.93.09-0.19
393.13.070.0299999999999999
403.52.970.53
413.63.030.57
424.42.911.49
434.12.871.23
445.12.812.29
455.82.812.99
465.92.218333333333333.68166666666667
475.42.318333333333333.08166666666667
485.52.258333333333333.24166666666667
494.82.4652.335
503.22.2850.915
512.72.2650.435
522.12.165-0.0650000000000003
531.92.225-0.325000000000001
540.62.105-1.505
550.72.065-1.365
56-0.22.005-2.205
57-12.005-3.005
58-1.71.41333333333333-3.11333333333333
59-0.71.51333333333333-2.21333333333333
60-11.45333333333333-2.45333333333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02247398128655120.04494796257310250.977526018713449
180.01046179106444680.02092358212889360.989538208935553
190.002350051664741780.004700103329483570.997649948335258
200.0005342585435196440.001068517087039290.99946574145648
210.0001288557098667170.0002577114197334340.999871144290133
223.24252958266868e-056.48505916533736e-050.999967574704173
231.20353520957883e-052.40707041915765e-050.999987964647904
241.08444782561513e-052.16889565123026e-050.999989155521744
253.95067281735289e-067.90134563470579e-060.999996049327183
267.80740557809589e-071.56148111561918e-060.999999219259442
271.43002619770039e-072.86005239540077e-070.99999985699738
283.55306559298242e-087.10613118596483e-080.999999964469344
298.4763686879378e-091.69527373758756e-080.999999991523631
301.71169375868884e-093.42338751737768e-090.999999998288306
313.20696457212448e-106.41392914424896e-100.999999999679304
321.62519977467830e-103.25039954935659e-100.99999999983748
337.14718161667947e-111.42943632333589e-100.999999999928528
342.38890222658883e-114.77780445317767e-110.99999999997611
351.79781428654116e-113.59562857308231e-110.999999999982022
364.73096849260978e-119.46193698521956e-110.99999999995269
376.24629597509099e-091.24925919501820e-080.999999993753704
384.26890112224430e-078.53780224448859e-070.999999573109888
391.30998983525234e-052.61997967050468e-050.999986900101647
400.0003621751976920250.0007243503953840510.999637824802308
410.01321228660865450.02642457321730890.986787713391346
420.05162729612353730.1032545922470750.948372703876463
430.4520067542817210.9040135085634430.547993245718279

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0224739812865512 & 0.0449479625731025 & 0.977526018713449 \tabularnewline
18 & 0.0104617910644468 & 0.0209235821288936 & 0.989538208935553 \tabularnewline
19 & 0.00235005166474178 & 0.00470010332948357 & 0.997649948335258 \tabularnewline
20 & 0.000534258543519644 & 0.00106851708703929 & 0.99946574145648 \tabularnewline
21 & 0.000128855709866717 & 0.000257711419733434 & 0.999871144290133 \tabularnewline
22 & 3.24252958266868e-05 & 6.48505916533736e-05 & 0.999967574704173 \tabularnewline
23 & 1.20353520957883e-05 & 2.40707041915765e-05 & 0.999987964647904 \tabularnewline
24 & 1.08444782561513e-05 & 2.16889565123026e-05 & 0.999989155521744 \tabularnewline
25 & 3.95067281735289e-06 & 7.90134563470579e-06 & 0.999996049327183 \tabularnewline
26 & 7.80740557809589e-07 & 1.56148111561918e-06 & 0.999999219259442 \tabularnewline
27 & 1.43002619770039e-07 & 2.86005239540077e-07 & 0.99999985699738 \tabularnewline
28 & 3.55306559298242e-08 & 7.10613118596483e-08 & 0.999999964469344 \tabularnewline
29 & 8.4763686879378e-09 & 1.69527373758756e-08 & 0.999999991523631 \tabularnewline
30 & 1.71169375868884e-09 & 3.42338751737768e-09 & 0.999999998288306 \tabularnewline
31 & 3.20696457212448e-10 & 6.41392914424896e-10 & 0.999999999679304 \tabularnewline
32 & 1.62519977467830e-10 & 3.25039954935659e-10 & 0.99999999983748 \tabularnewline
33 & 7.14718161667947e-11 & 1.42943632333589e-10 & 0.999999999928528 \tabularnewline
34 & 2.38890222658883e-11 & 4.77780445317767e-11 & 0.99999999997611 \tabularnewline
35 & 1.79781428654116e-11 & 3.59562857308231e-11 & 0.999999999982022 \tabularnewline
36 & 4.73096849260978e-11 & 9.46193698521956e-11 & 0.99999999995269 \tabularnewline
37 & 6.24629597509099e-09 & 1.24925919501820e-08 & 0.999999993753704 \tabularnewline
38 & 4.26890112224430e-07 & 8.53780224448859e-07 & 0.999999573109888 \tabularnewline
39 & 1.30998983525234e-05 & 2.61997967050468e-05 & 0.999986900101647 \tabularnewline
40 & 0.000362175197692025 & 0.000724350395384051 & 0.999637824802308 \tabularnewline
41 & 0.0132122866086545 & 0.0264245732173089 & 0.986787713391346 \tabularnewline
42 & 0.0516272961235373 & 0.103254592247075 & 0.948372703876463 \tabularnewline
43 & 0.452006754281721 & 0.904013508563443 & 0.547993245718279 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58455&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.0224739812865512[/C][C]0.0449479625731025[/C][C]0.977526018713449[/C][/ROW]
[ROW][C]18[/C][C]0.0104617910644468[/C][C]0.0209235821288936[/C][C]0.989538208935553[/C][/ROW]
[ROW][C]19[/C][C]0.00235005166474178[/C][C]0.00470010332948357[/C][C]0.997649948335258[/C][/ROW]
[ROW][C]20[/C][C]0.000534258543519644[/C][C]0.00106851708703929[/C][C]0.99946574145648[/C][/ROW]
[ROW][C]21[/C][C]0.000128855709866717[/C][C]0.000257711419733434[/C][C]0.999871144290133[/C][/ROW]
[ROW][C]22[/C][C]3.24252958266868e-05[/C][C]6.48505916533736e-05[/C][C]0.999967574704173[/C][/ROW]
[ROW][C]23[/C][C]1.20353520957883e-05[/C][C]2.40707041915765e-05[/C][C]0.999987964647904[/C][/ROW]
[ROW][C]24[/C][C]1.08444782561513e-05[/C][C]2.16889565123026e-05[/C][C]0.999989155521744[/C][/ROW]
[ROW][C]25[/C][C]3.95067281735289e-06[/C][C]7.90134563470579e-06[/C][C]0.999996049327183[/C][/ROW]
[ROW][C]26[/C][C]7.80740557809589e-07[/C][C]1.56148111561918e-06[/C][C]0.999999219259442[/C][/ROW]
[ROW][C]27[/C][C]1.43002619770039e-07[/C][C]2.86005239540077e-07[/C][C]0.99999985699738[/C][/ROW]
[ROW][C]28[/C][C]3.55306559298242e-08[/C][C]7.10613118596483e-08[/C][C]0.999999964469344[/C][/ROW]
[ROW][C]29[/C][C]8.4763686879378e-09[/C][C]1.69527373758756e-08[/C][C]0.999999991523631[/C][/ROW]
[ROW][C]30[/C][C]1.71169375868884e-09[/C][C]3.42338751737768e-09[/C][C]0.999999998288306[/C][/ROW]
[ROW][C]31[/C][C]3.20696457212448e-10[/C][C]6.41392914424896e-10[/C][C]0.999999999679304[/C][/ROW]
[ROW][C]32[/C][C]1.62519977467830e-10[/C][C]3.25039954935659e-10[/C][C]0.99999999983748[/C][/ROW]
[ROW][C]33[/C][C]7.14718161667947e-11[/C][C]1.42943632333589e-10[/C][C]0.999999999928528[/C][/ROW]
[ROW][C]34[/C][C]2.38890222658883e-11[/C][C]4.77780445317767e-11[/C][C]0.99999999997611[/C][/ROW]
[ROW][C]35[/C][C]1.79781428654116e-11[/C][C]3.59562857308231e-11[/C][C]0.999999999982022[/C][/ROW]
[ROW][C]36[/C][C]4.73096849260978e-11[/C][C]9.46193698521956e-11[/C][C]0.99999999995269[/C][/ROW]
[ROW][C]37[/C][C]6.24629597509099e-09[/C][C]1.24925919501820e-08[/C][C]0.999999993753704[/C][/ROW]
[ROW][C]38[/C][C]4.26890112224430e-07[/C][C]8.53780224448859e-07[/C][C]0.999999573109888[/C][/ROW]
[ROW][C]39[/C][C]1.30998983525234e-05[/C][C]2.61997967050468e-05[/C][C]0.999986900101647[/C][/ROW]
[ROW][C]40[/C][C]0.000362175197692025[/C][C]0.000724350395384051[/C][C]0.999637824802308[/C][/ROW]
[ROW][C]41[/C][C]0.0132122866086545[/C][C]0.0264245732173089[/C][C]0.986787713391346[/C][/ROW]
[ROW][C]42[/C][C]0.0516272961235373[/C][C]0.103254592247075[/C][C]0.948372703876463[/C][/ROW]
[ROW][C]43[/C][C]0.452006754281721[/C][C]0.904013508563443[/C][C]0.547993245718279[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58455&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58455&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.02247398128655120.04494796257310250.977526018713449
180.01046179106444680.02092358212889360.989538208935553
190.002350051664741780.004700103329483570.997649948335258
200.0005342585435196440.001068517087039290.99946574145648
210.0001288557098667170.0002577114197334340.999871144290133
223.24252958266868e-056.48505916533736e-050.999967574704173
231.20353520957883e-052.40707041915765e-050.999987964647904
241.08444782561513e-052.16889565123026e-050.999989155521744
253.95067281735289e-067.90134563470579e-060.999996049327183
267.80740557809589e-071.56148111561918e-060.999999219259442
271.43002619770039e-072.86005239540077e-070.99999985699738
283.55306559298242e-087.10613118596483e-080.999999964469344
298.4763686879378e-091.69527373758756e-080.999999991523631
301.71169375868884e-093.42338751737768e-090.999999998288306
313.20696457212448e-106.41392914424896e-100.999999999679304
321.62519977467830e-103.25039954935659e-100.99999999983748
337.14718161667947e-111.42943632333589e-100.999999999928528
342.38890222658883e-114.77780445317767e-110.99999999997611
351.79781428654116e-113.59562857308231e-110.999999999982022
364.73096849260978e-119.46193698521956e-110.99999999995269
376.24629597509099e-091.24925919501820e-080.999999993753704
384.26890112224430e-078.53780224448859e-070.999999573109888
391.30998983525234e-052.61997967050468e-050.999986900101647
400.0003621751976920250.0007243503953840510.999637824802308
410.01321228660865450.02642457321730890.986787713391346
420.05162729612353730.1032545922470750.948372703876463
430.4520067542817210.9040135085634430.547993245718279







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.814814814814815NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58455&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 level220.814814814814815NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK



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