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 08:42:03 -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/t1258731802awgx7ln4swvhc10.htm/, Retrieved Tue, 23 Apr 2024 11:20:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58280, Retrieved Tue, 23 Apr 2024 11:20:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsSDHW, DSHW
Estimated Impact139
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] [workshop 7 bereke...] [2009-11-19 15:24:52] [eaf42bcf5162b5692bb3c7f9d4636222]
-   PD      [Multiple Regression] [DSHW-WS7-Multiple...] [2009-11-20 13:19:23] [f15cfb7053d35072d573abca87df96a0]
-   P         [Multiple Regression] [DSHW-WS7-Multiple...] [2009-11-20 13:53:17] [f15cfb7053d35072d573abca87df96a0]
-    D          [Multiple Regression] [DSHW-WS7-MultRegr1] [2009-11-20 14:59:26] [f15cfb7053d35072d573abca87df96a0]
-    D            [Multiple Regression] [DSHW-WS7-MultRegr...] [2009-11-20 15:10:50] [f15cfb7053d35072d573abca87df96a0]
-   P                 [Multiple Regression] [DSHW-WS7-MiltRegr.2] [2009-11-20 15:42:03] [36295456a56d4c7dcc9b9537ce63463b] [Current]
-    D                  [Multiple Regression] [review 7] [2009-11-24 20:46:35] [309ee52d0058ff0a6f7eec15e07b2d9f]
Feedback Forum

Post a new message
Dataseries X:
1.4	0.0
1.6	0.0
1.7	0.0
2.0	0.0
2.0	0.0
2.1	0.0
2.5	0.0
2.5	0.0
2.6	0.0
2.7	0.0
3.7	0.0
4.0	0.0
5.0	0.0
5.1	0.0
5.1	0.0
5.0	0.0
5.1	0.0
4.7	0.0
4.5	0.0
4.5	0.0
4.6	0.0
4.6	0.0
4.6	0.0
4.6	0.0
5.3	0.0
5.4	0.0
5.3	0.0
5.2	0.0
5.0	0.0
4.2	0.0
4.3	0.0
4.3	0.0
4.3	0.0
4.0	0.0
4.0	0.0
4.1	0.0
4.4	0.0
3.6	0.0
3.7	0.0
3.8	0.0
3.3	0.0
3.3	0.0
3.3	0.0
3.5	0.0
3.3	0.0
3.3	0.0
3.4	0.0
3.4	0.0
5.2	0.0
5.3	0.0
4.8	1.0
5.0	1.0
4.6	1.0
4.6	1.0
3.5	1.0
3.5	1.0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58280&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58280&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
IndGez[t] = + 4.025 + 0.545833333333333InvlMex[t] + 0.234999999999995M1[t] + 0.174999999999997M2[t] -0.0141666666666696M3[t] + 0.0658333333333294M4[t] -0.134166666666670M5[t] -0.35416666666667M6[t] -0.514166666666669M7[t] -0.474166666666669M8[t] -0.325000000000003M9[t] -0.375000000000003M10[t] -0.100000000000003M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
IndGez[t] =  +  4.025 +  0.545833333333333InvlMex[t] +  0.234999999999995M1[t] +  0.174999999999997M2[t] -0.0141666666666696M3[t] +  0.0658333333333294M4[t] -0.134166666666670M5[t] -0.35416666666667M6[t] -0.514166666666669M7[t] -0.474166666666669M8[t] -0.325000000000003M9[t] -0.375000000000003M10[t] -0.100000000000003M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58280&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]IndGez[t] =  +  4.025 +  0.545833333333333InvlMex[t] +  0.234999999999995M1[t] +  0.174999999999997M2[t] -0.0141666666666696M3[t] +  0.0658333333333294M4[t] -0.134166666666670M5[t] -0.35416666666667M6[t] -0.514166666666669M7[t] -0.474166666666669M8[t] -0.325000000000003M9[t] -0.375000000000003M10[t] -0.100000000000003M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58280&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58280&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
IndGez[t] = + 4.025 + 0.545833333333333InvlMex[t] + 0.234999999999995M1[t] + 0.174999999999997M2[t] -0.0141666666666696M3[t] + 0.0658333333333294M4[t] -0.134166666666670M5[t] -0.35416666666667M6[t] -0.514166666666669M7[t] -0.474166666666669M8[t] -0.325000000000003M9[t] -0.375000000000003M10[t] -0.100000000000003M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4.0250.5857966.87100
InvlMex0.5458333333333330.5347561.02070.3130980.156549
M10.2349999999999950.7859270.2990.7663730.383186
M20.1749999999999970.7859270.22270.8248490.412425
M3-0.01416666666666960.793171-0.01790.9858330.492916
M40.06583333333332940.7931710.0830.9342370.467118
M5-0.1341666666666700.793171-0.16920.866470.433235
M6-0.354166666666670.793171-0.44650.6574620.328731
M7-0.5141666666666690.793171-0.64820.5202750.260138
M8-0.4741666666666690.793171-0.59780.5531010.276551
M9-0.3250000000000030.82844-0.39230.6967720.348386
M10-0.3750000000000030.82844-0.45270.6530710.326535
M11-0.1000000000000030.82844-0.12070.9044840.452242

\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) & 4.025 & 0.585796 & 6.871 & 0 & 0 \tabularnewline
InvlMex & 0.545833333333333 & 0.534756 & 1.0207 & 0.313098 & 0.156549 \tabularnewline
M1 & 0.234999999999995 & 0.785927 & 0.299 & 0.766373 & 0.383186 \tabularnewline
M2 & 0.174999999999997 & 0.785927 & 0.2227 & 0.824849 & 0.412425 \tabularnewline
M3 & -0.0141666666666696 & 0.793171 & -0.0179 & 0.985833 & 0.492916 \tabularnewline
M4 & 0.0658333333333294 & 0.793171 & 0.083 & 0.934237 & 0.467118 \tabularnewline
M5 & -0.134166666666670 & 0.793171 & -0.1692 & 0.86647 & 0.433235 \tabularnewline
M6 & -0.35416666666667 & 0.793171 & -0.4465 & 0.657462 & 0.328731 \tabularnewline
M7 & -0.514166666666669 & 0.793171 & -0.6482 & 0.520275 & 0.260138 \tabularnewline
M8 & -0.474166666666669 & 0.793171 & -0.5978 & 0.553101 & 0.276551 \tabularnewline
M9 & -0.325000000000003 & 0.82844 & -0.3923 & 0.696772 & 0.348386 \tabularnewline
M10 & -0.375000000000003 & 0.82844 & -0.4527 & 0.653071 & 0.326535 \tabularnewline
M11 & -0.100000000000003 & 0.82844 & -0.1207 & 0.904484 & 0.452242 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58280&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]4.025[/C][C]0.585796[/C][C]6.871[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]InvlMex[/C][C]0.545833333333333[/C][C]0.534756[/C][C]1.0207[/C][C]0.313098[/C][C]0.156549[/C][/ROW]
[ROW][C]M1[/C][C]0.234999999999995[/C][C]0.785927[/C][C]0.299[/C][C]0.766373[/C][C]0.383186[/C][/ROW]
[ROW][C]M2[/C][C]0.174999999999997[/C][C]0.785927[/C][C]0.2227[/C][C]0.824849[/C][C]0.412425[/C][/ROW]
[ROW][C]M3[/C][C]-0.0141666666666696[/C][C]0.793171[/C][C]-0.0179[/C][C]0.985833[/C][C]0.492916[/C][/ROW]
[ROW][C]M4[/C][C]0.0658333333333294[/C][C]0.793171[/C][C]0.083[/C][C]0.934237[/C][C]0.467118[/C][/ROW]
[ROW][C]M5[/C][C]-0.134166666666670[/C][C]0.793171[/C][C]-0.1692[/C][C]0.86647[/C][C]0.433235[/C][/ROW]
[ROW][C]M6[/C][C]-0.35416666666667[/C][C]0.793171[/C][C]-0.4465[/C][C]0.657462[/C][C]0.328731[/C][/ROW]
[ROW][C]M7[/C][C]-0.514166666666669[/C][C]0.793171[/C][C]-0.6482[/C][C]0.520275[/C][C]0.260138[/C][/ROW]
[ROW][C]M8[/C][C]-0.474166666666669[/C][C]0.793171[/C][C]-0.5978[/C][C]0.553101[/C][C]0.276551[/C][/ROW]
[ROW][C]M9[/C][C]-0.325000000000003[/C][C]0.82844[/C][C]-0.3923[/C][C]0.696772[/C][C]0.348386[/C][/ROW]
[ROW][C]M10[/C][C]-0.375000000000003[/C][C]0.82844[/C][C]-0.4527[/C][C]0.653071[/C][C]0.326535[/C][/ROW]
[ROW][C]M11[/C][C]-0.100000000000003[/C][C]0.82844[/C][C]-0.1207[/C][C]0.904484[/C][C]0.452242[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58280&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58280&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)4.0250.5857966.87100
InvlMex0.5458333333333330.5347561.02070.3130980.156549
M10.2349999999999950.7859270.2990.7663730.383186
M20.1749999999999970.7859270.22270.8248490.412425
M3-0.01416666666666960.793171-0.01790.9858330.492916
M40.06583333333332940.7931710.0830.9342370.467118
M5-0.1341666666666700.793171-0.16920.866470.433235
M6-0.354166666666670.793171-0.44650.6574620.328731
M7-0.5141666666666690.793171-0.64820.5202750.260138
M8-0.4741666666666690.793171-0.59780.5531010.276551
M9-0.3250000000000030.82844-0.39230.6967720.348386
M10-0.3750000000000030.82844-0.45270.6530710.326535
M11-0.1000000000000030.82844-0.12070.9044840.452242







Multiple Linear Regression - Regression Statistics
Multiple R0.264105741157061
R-squared0.0697518425121207
Adjusted R-squared-0.189852294461241
F-TEST (value)0.268685404344223
F-TEST (DF numerator)12
F-TEST (DF denominator)43
p-value0.99133768026759
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.17159121240826
Sum Squared Residuals59.0229166666667

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.264105741157061 \tabularnewline
R-squared & 0.0697518425121207 \tabularnewline
Adjusted R-squared & -0.189852294461241 \tabularnewline
F-TEST (value) & 0.268685404344223 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0.99133768026759 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.17159121240826 \tabularnewline
Sum Squared Residuals & 59.0229166666667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58280&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.264105741157061[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0697518425121207[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.189852294461241[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.268685404344223[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/C][/ROW]
[ROW][C]p-value[/C][C]0.99133768026759[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.17159121240826[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]59.0229166666667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58280&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58280&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.264105741157061
R-squared0.0697518425121207
Adjusted R-squared-0.189852294461241
F-TEST (value)0.268685404344223
F-TEST (DF numerator)12
F-TEST (DF denominator)43
p-value0.99133768026759
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.17159121240826
Sum Squared Residuals59.0229166666667







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11.44.26000000000001-2.86000000000001
21.64.2-2.6
31.74.01083333333333-2.31083333333333
424.09083333333333-2.09083333333333
523.89083333333333-1.89083333333333
62.13.67083333333333-1.57083333333333
72.53.51083333333333-1.01083333333333
82.53.55083333333333-1.05083333333333
92.63.7-1.1
102.73.65-0.95
113.73.925-0.224999999999999
1244.02500000000000-0.0250000000000037
1354.260.740000000000002
145.14.20.900000000000001
155.14.010833333333331.08916666666667
1654.090833333333330.909166666666668
175.13.890833333333331.20916666666667
184.73.670833333333331.02916666666667
194.53.510833333333330.989166666666667
204.53.550833333333330.949166666666666
214.63.70.9
224.63.650.95
234.63.9250.675
244.64.0250.574999999999996
255.34.261.04000000000000
265.44.21.20000000000000
275.34.010833333333331.28916666666667
285.24.090833333333331.10916666666667
2953.890833333333331.10916666666667
304.23.670833333333330.529166666666667
314.33.510833333333330.789166666666666
324.33.550833333333330.749166666666666
334.33.70.6
3443.650.350
3543.9250.0749999999999997
364.14.0250.0749999999999963
374.44.260.140000000000003
383.64.2-0.599999999999999
393.74.01083333333333-0.310833333333333
403.84.09083333333333-0.290833333333333
413.33.89083333333333-0.590833333333333
423.33.67083333333333-0.370833333333333
433.33.51083333333333-0.210833333333334
443.53.55083333333333-0.050833333333333
453.33.7-0.4
463.33.65-0.35
473.43.925-0.525
483.44.025-0.625000000000003
495.24.260.940000000000003
505.34.21.10000000000000
514.84.556666666666670.243333333333333
5254.636666666666670.363333333333334
534.64.436666666666670.163333333333333
544.64.216666666666670.383333333333333
553.54.05666666666667-0.556666666666666
563.54.09666666666667-0.596666666666666

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1.4 & 4.26000000000001 & -2.86000000000001 \tabularnewline
2 & 1.6 & 4.2 & -2.6 \tabularnewline
3 & 1.7 & 4.01083333333333 & -2.31083333333333 \tabularnewline
4 & 2 & 4.09083333333333 & -2.09083333333333 \tabularnewline
5 & 2 & 3.89083333333333 & -1.89083333333333 \tabularnewline
6 & 2.1 & 3.67083333333333 & -1.57083333333333 \tabularnewline
7 & 2.5 & 3.51083333333333 & -1.01083333333333 \tabularnewline
8 & 2.5 & 3.55083333333333 & -1.05083333333333 \tabularnewline
9 & 2.6 & 3.7 & -1.1 \tabularnewline
10 & 2.7 & 3.65 & -0.95 \tabularnewline
11 & 3.7 & 3.925 & -0.224999999999999 \tabularnewline
12 & 4 & 4.02500000000000 & -0.0250000000000037 \tabularnewline
13 & 5 & 4.26 & 0.740000000000002 \tabularnewline
14 & 5.1 & 4.2 & 0.900000000000001 \tabularnewline
15 & 5.1 & 4.01083333333333 & 1.08916666666667 \tabularnewline
16 & 5 & 4.09083333333333 & 0.909166666666668 \tabularnewline
17 & 5.1 & 3.89083333333333 & 1.20916666666667 \tabularnewline
18 & 4.7 & 3.67083333333333 & 1.02916666666667 \tabularnewline
19 & 4.5 & 3.51083333333333 & 0.989166666666667 \tabularnewline
20 & 4.5 & 3.55083333333333 & 0.949166666666666 \tabularnewline
21 & 4.6 & 3.7 & 0.9 \tabularnewline
22 & 4.6 & 3.65 & 0.95 \tabularnewline
23 & 4.6 & 3.925 & 0.675 \tabularnewline
24 & 4.6 & 4.025 & 0.574999999999996 \tabularnewline
25 & 5.3 & 4.26 & 1.04000000000000 \tabularnewline
26 & 5.4 & 4.2 & 1.20000000000000 \tabularnewline
27 & 5.3 & 4.01083333333333 & 1.28916666666667 \tabularnewline
28 & 5.2 & 4.09083333333333 & 1.10916666666667 \tabularnewline
29 & 5 & 3.89083333333333 & 1.10916666666667 \tabularnewline
30 & 4.2 & 3.67083333333333 & 0.529166666666667 \tabularnewline
31 & 4.3 & 3.51083333333333 & 0.789166666666666 \tabularnewline
32 & 4.3 & 3.55083333333333 & 0.749166666666666 \tabularnewline
33 & 4.3 & 3.7 & 0.6 \tabularnewline
34 & 4 & 3.65 & 0.350 \tabularnewline
35 & 4 & 3.925 & 0.0749999999999997 \tabularnewline
36 & 4.1 & 4.025 & 0.0749999999999963 \tabularnewline
37 & 4.4 & 4.26 & 0.140000000000003 \tabularnewline
38 & 3.6 & 4.2 & -0.599999999999999 \tabularnewline
39 & 3.7 & 4.01083333333333 & -0.310833333333333 \tabularnewline
40 & 3.8 & 4.09083333333333 & -0.290833333333333 \tabularnewline
41 & 3.3 & 3.89083333333333 & -0.590833333333333 \tabularnewline
42 & 3.3 & 3.67083333333333 & -0.370833333333333 \tabularnewline
43 & 3.3 & 3.51083333333333 & -0.210833333333334 \tabularnewline
44 & 3.5 & 3.55083333333333 & -0.050833333333333 \tabularnewline
45 & 3.3 & 3.7 & -0.4 \tabularnewline
46 & 3.3 & 3.65 & -0.35 \tabularnewline
47 & 3.4 & 3.925 & -0.525 \tabularnewline
48 & 3.4 & 4.025 & -0.625000000000003 \tabularnewline
49 & 5.2 & 4.26 & 0.940000000000003 \tabularnewline
50 & 5.3 & 4.2 & 1.10000000000000 \tabularnewline
51 & 4.8 & 4.55666666666667 & 0.243333333333333 \tabularnewline
52 & 5 & 4.63666666666667 & 0.363333333333334 \tabularnewline
53 & 4.6 & 4.43666666666667 & 0.163333333333333 \tabularnewline
54 & 4.6 & 4.21666666666667 & 0.383333333333333 \tabularnewline
55 & 3.5 & 4.05666666666667 & -0.556666666666666 \tabularnewline
56 & 3.5 & 4.09666666666667 & -0.596666666666666 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58280&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]1.4[/C][C]4.26000000000001[/C][C]-2.86000000000001[/C][/ROW]
[ROW][C]2[/C][C]1.6[/C][C]4.2[/C][C]-2.6[/C][/ROW]
[ROW][C]3[/C][C]1.7[/C][C]4.01083333333333[/C][C]-2.31083333333333[/C][/ROW]
[ROW][C]4[/C][C]2[/C][C]4.09083333333333[/C][C]-2.09083333333333[/C][/ROW]
[ROW][C]5[/C][C]2[/C][C]3.89083333333333[/C][C]-1.89083333333333[/C][/ROW]
[ROW][C]6[/C][C]2.1[/C][C]3.67083333333333[/C][C]-1.57083333333333[/C][/ROW]
[ROW][C]7[/C][C]2.5[/C][C]3.51083333333333[/C][C]-1.01083333333333[/C][/ROW]
[ROW][C]8[/C][C]2.5[/C][C]3.55083333333333[/C][C]-1.05083333333333[/C][/ROW]
[ROW][C]9[/C][C]2.6[/C][C]3.7[/C][C]-1.1[/C][/ROW]
[ROW][C]10[/C][C]2.7[/C][C]3.65[/C][C]-0.95[/C][/ROW]
[ROW][C]11[/C][C]3.7[/C][C]3.925[/C][C]-0.224999999999999[/C][/ROW]
[ROW][C]12[/C][C]4[/C][C]4.02500000000000[/C][C]-0.0250000000000037[/C][/ROW]
[ROW][C]13[/C][C]5[/C][C]4.26[/C][C]0.740000000000002[/C][/ROW]
[ROW][C]14[/C][C]5.1[/C][C]4.2[/C][C]0.900000000000001[/C][/ROW]
[ROW][C]15[/C][C]5.1[/C][C]4.01083333333333[/C][C]1.08916666666667[/C][/ROW]
[ROW][C]16[/C][C]5[/C][C]4.09083333333333[/C][C]0.909166666666668[/C][/ROW]
[ROW][C]17[/C][C]5.1[/C][C]3.89083333333333[/C][C]1.20916666666667[/C][/ROW]
[ROW][C]18[/C][C]4.7[/C][C]3.67083333333333[/C][C]1.02916666666667[/C][/ROW]
[ROW][C]19[/C][C]4.5[/C][C]3.51083333333333[/C][C]0.989166666666667[/C][/ROW]
[ROW][C]20[/C][C]4.5[/C][C]3.55083333333333[/C][C]0.949166666666666[/C][/ROW]
[ROW][C]21[/C][C]4.6[/C][C]3.7[/C][C]0.9[/C][/ROW]
[ROW][C]22[/C][C]4.6[/C][C]3.65[/C][C]0.95[/C][/ROW]
[ROW][C]23[/C][C]4.6[/C][C]3.925[/C][C]0.675[/C][/ROW]
[ROW][C]24[/C][C]4.6[/C][C]4.025[/C][C]0.574999999999996[/C][/ROW]
[ROW][C]25[/C][C]5.3[/C][C]4.26[/C][C]1.04000000000000[/C][/ROW]
[ROW][C]26[/C][C]5.4[/C][C]4.2[/C][C]1.20000000000000[/C][/ROW]
[ROW][C]27[/C][C]5.3[/C][C]4.01083333333333[/C][C]1.28916666666667[/C][/ROW]
[ROW][C]28[/C][C]5.2[/C][C]4.09083333333333[/C][C]1.10916666666667[/C][/ROW]
[ROW][C]29[/C][C]5[/C][C]3.89083333333333[/C][C]1.10916666666667[/C][/ROW]
[ROW][C]30[/C][C]4.2[/C][C]3.67083333333333[/C][C]0.529166666666667[/C][/ROW]
[ROW][C]31[/C][C]4.3[/C][C]3.51083333333333[/C][C]0.789166666666666[/C][/ROW]
[ROW][C]32[/C][C]4.3[/C][C]3.55083333333333[/C][C]0.749166666666666[/C][/ROW]
[ROW][C]33[/C][C]4.3[/C][C]3.7[/C][C]0.6[/C][/ROW]
[ROW][C]34[/C][C]4[/C][C]3.65[/C][C]0.350[/C][/ROW]
[ROW][C]35[/C][C]4[/C][C]3.925[/C][C]0.0749999999999997[/C][/ROW]
[ROW][C]36[/C][C]4.1[/C][C]4.025[/C][C]0.0749999999999963[/C][/ROW]
[ROW][C]37[/C][C]4.4[/C][C]4.26[/C][C]0.140000000000003[/C][/ROW]
[ROW][C]38[/C][C]3.6[/C][C]4.2[/C][C]-0.599999999999999[/C][/ROW]
[ROW][C]39[/C][C]3.7[/C][C]4.01083333333333[/C][C]-0.310833333333333[/C][/ROW]
[ROW][C]40[/C][C]3.8[/C][C]4.09083333333333[/C][C]-0.290833333333333[/C][/ROW]
[ROW][C]41[/C][C]3.3[/C][C]3.89083333333333[/C][C]-0.590833333333333[/C][/ROW]
[ROW][C]42[/C][C]3.3[/C][C]3.67083333333333[/C][C]-0.370833333333333[/C][/ROW]
[ROW][C]43[/C][C]3.3[/C][C]3.51083333333333[/C][C]-0.210833333333334[/C][/ROW]
[ROW][C]44[/C][C]3.5[/C][C]3.55083333333333[/C][C]-0.050833333333333[/C][/ROW]
[ROW][C]45[/C][C]3.3[/C][C]3.7[/C][C]-0.4[/C][/ROW]
[ROW][C]46[/C][C]3.3[/C][C]3.65[/C][C]-0.35[/C][/ROW]
[ROW][C]47[/C][C]3.4[/C][C]3.925[/C][C]-0.525[/C][/ROW]
[ROW][C]48[/C][C]3.4[/C][C]4.025[/C][C]-0.625000000000003[/C][/ROW]
[ROW][C]49[/C][C]5.2[/C][C]4.26[/C][C]0.940000000000003[/C][/ROW]
[ROW][C]50[/C][C]5.3[/C][C]4.2[/C][C]1.10000000000000[/C][/ROW]
[ROW][C]51[/C][C]4.8[/C][C]4.55666666666667[/C][C]0.243333333333333[/C][/ROW]
[ROW][C]52[/C][C]5[/C][C]4.63666666666667[/C][C]0.363333333333334[/C][/ROW]
[ROW][C]53[/C][C]4.6[/C][C]4.43666666666667[/C][C]0.163333333333333[/C][/ROW]
[ROW][C]54[/C][C]4.6[/C][C]4.21666666666667[/C][C]0.383333333333333[/C][/ROW]
[ROW][C]55[/C][C]3.5[/C][C]4.05666666666667[/C][C]-0.556666666666666[/C][/ROW]
[ROW][C]56[/C][C]3.5[/C][C]4.09666666666667[/C][C]-0.596666666666666[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58280&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58280&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
11.44.26000000000001-2.86000000000001
21.64.2-2.6
31.74.01083333333333-2.31083333333333
424.09083333333333-2.09083333333333
523.89083333333333-1.89083333333333
62.13.67083333333333-1.57083333333333
72.53.51083333333333-1.01083333333333
82.53.55083333333333-1.05083333333333
92.63.7-1.1
102.73.65-0.95
113.73.925-0.224999999999999
1244.02500000000000-0.0250000000000037
1354.260.740000000000002
145.14.20.900000000000001
155.14.010833333333331.08916666666667
1654.090833333333330.909166666666668
175.13.890833333333331.20916666666667
184.73.670833333333331.02916666666667
194.53.510833333333330.989166666666667
204.53.550833333333330.949166666666666
214.63.70.9
224.63.650.95
234.63.9250.675
244.64.0250.574999999999996
255.34.261.04000000000000
265.44.21.20000000000000
275.34.010833333333331.28916666666667
285.24.090833333333331.10916666666667
2953.890833333333331.10916666666667
304.23.670833333333330.529166666666667
314.33.510833333333330.789166666666666
324.33.550833333333330.749166666666666
334.33.70.6
3443.650.350
3543.9250.0749999999999997
364.14.0250.0749999999999963
374.44.260.140000000000003
383.64.2-0.599999999999999
393.74.01083333333333-0.310833333333333
403.84.09083333333333-0.290833333333333
413.33.89083333333333-0.590833333333333
423.33.67083333333333-0.370833333333333
433.33.51083333333333-0.210833333333334
443.53.55083333333333-0.050833333333333
453.33.7-0.4
463.33.65-0.35
473.43.925-0.525
483.44.025-0.625000000000003
495.24.260.940000000000003
505.34.21.10000000000000
514.84.556666666666670.243333333333333
5254.636666666666670.363333333333334
534.64.436666666666670.163333333333333
544.64.216666666666670.383333333333333
553.54.05666666666667-0.556666666666666
563.54.09666666666667-0.596666666666666







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9999950725266279.8549467468071e-064.92747337340355e-06
170.9999967239017766.55219644846661e-063.27609822423331e-06
180.999995969572898.0608542196696e-064.0304271098348e-06
190.9999936109876881.27780246243001e-056.38901231215003e-06
200.9999897538514122.04922971755997e-051.02461485877998e-05
210.9999832167679183.35664641643961e-051.67832320821981e-05
220.9999751140826274.97718347454680e-052.48859173727340e-05
230.9999508864075959.8227184809636e-054.9113592404818e-05
240.9998993757933170.0002012484133650490.000100624206682525
250.9998408275183250.0003183449633490310.000159172481674516
260.9998061502494460.0003876995011075130.000193849750553756
270.9998058245587140.0003883508825729590.000194175441286480
280.9997411028480460.0005177943039080390.000258897151954019
290.9997598200790140.0004803598419725180.000240179920986259
300.9994413389437060.001117322112587060.000558661056293529
310.999417069079640.001165861840717360.000582930920358679
320.9994218695149580.001156260970084840.000578130485042419
330.9990786453539960.001842709292008140.00092135464600407
340.9979707295090360.004058540981927670.00202927049096384
350.9952530026184320.009493994763135320.00474699738156766
360.9899845999480560.0200308001038880.010015400051944
370.981057951079480.03788409784104150.0189420489205208
380.9944716600952920.01105667980941690.00552833990470844
390.9809232522437880.03815349551242380.0190767477562119
400.9453263513714210.1093472972571570.0546736486285786

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.999995072526627 & 9.8549467468071e-06 & 4.92747337340355e-06 \tabularnewline
17 & 0.999996723901776 & 6.55219644846661e-06 & 3.27609822423331e-06 \tabularnewline
18 & 0.99999596957289 & 8.0608542196696e-06 & 4.0304271098348e-06 \tabularnewline
19 & 0.999993610987688 & 1.27780246243001e-05 & 6.38901231215003e-06 \tabularnewline
20 & 0.999989753851412 & 2.04922971755997e-05 & 1.02461485877998e-05 \tabularnewline
21 & 0.999983216767918 & 3.35664641643961e-05 & 1.67832320821981e-05 \tabularnewline
22 & 0.999975114082627 & 4.97718347454680e-05 & 2.48859173727340e-05 \tabularnewline
23 & 0.999950886407595 & 9.8227184809636e-05 & 4.9113592404818e-05 \tabularnewline
24 & 0.999899375793317 & 0.000201248413365049 & 0.000100624206682525 \tabularnewline
25 & 0.999840827518325 & 0.000318344963349031 & 0.000159172481674516 \tabularnewline
26 & 0.999806150249446 & 0.000387699501107513 & 0.000193849750553756 \tabularnewline
27 & 0.999805824558714 & 0.000388350882572959 & 0.000194175441286480 \tabularnewline
28 & 0.999741102848046 & 0.000517794303908039 & 0.000258897151954019 \tabularnewline
29 & 0.999759820079014 & 0.000480359841972518 & 0.000240179920986259 \tabularnewline
30 & 0.999441338943706 & 0.00111732211258706 & 0.000558661056293529 \tabularnewline
31 & 0.99941706907964 & 0.00116586184071736 & 0.000582930920358679 \tabularnewline
32 & 0.999421869514958 & 0.00115626097008484 & 0.000578130485042419 \tabularnewline
33 & 0.999078645353996 & 0.00184270929200814 & 0.00092135464600407 \tabularnewline
34 & 0.997970729509036 & 0.00405854098192767 & 0.00202927049096384 \tabularnewline
35 & 0.995253002618432 & 0.00949399476313532 & 0.00474699738156766 \tabularnewline
36 & 0.989984599948056 & 0.020030800103888 & 0.010015400051944 \tabularnewline
37 & 0.98105795107948 & 0.0378840978410415 & 0.0189420489205208 \tabularnewline
38 & 0.994471660095292 & 0.0110566798094169 & 0.00552833990470844 \tabularnewline
39 & 0.980923252243788 & 0.0381534955124238 & 0.0190767477562119 \tabularnewline
40 & 0.945326351371421 & 0.109347297257157 & 0.0546736486285786 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58280&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.999995072526627[/C][C]9.8549467468071e-06[/C][C]4.92747337340355e-06[/C][/ROW]
[ROW][C]17[/C][C]0.999996723901776[/C][C]6.55219644846661e-06[/C][C]3.27609822423331e-06[/C][/ROW]
[ROW][C]18[/C][C]0.99999596957289[/C][C]8.0608542196696e-06[/C][C]4.0304271098348e-06[/C][/ROW]
[ROW][C]19[/C][C]0.999993610987688[/C][C]1.27780246243001e-05[/C][C]6.38901231215003e-06[/C][/ROW]
[ROW][C]20[/C][C]0.999989753851412[/C][C]2.04922971755997e-05[/C][C]1.02461485877998e-05[/C][/ROW]
[ROW][C]21[/C][C]0.999983216767918[/C][C]3.35664641643961e-05[/C][C]1.67832320821981e-05[/C][/ROW]
[ROW][C]22[/C][C]0.999975114082627[/C][C]4.97718347454680e-05[/C][C]2.48859173727340e-05[/C][/ROW]
[ROW][C]23[/C][C]0.999950886407595[/C][C]9.8227184809636e-05[/C][C]4.9113592404818e-05[/C][/ROW]
[ROW][C]24[/C][C]0.999899375793317[/C][C]0.000201248413365049[/C][C]0.000100624206682525[/C][/ROW]
[ROW][C]25[/C][C]0.999840827518325[/C][C]0.000318344963349031[/C][C]0.000159172481674516[/C][/ROW]
[ROW][C]26[/C][C]0.999806150249446[/C][C]0.000387699501107513[/C][C]0.000193849750553756[/C][/ROW]
[ROW][C]27[/C][C]0.999805824558714[/C][C]0.000388350882572959[/C][C]0.000194175441286480[/C][/ROW]
[ROW][C]28[/C][C]0.999741102848046[/C][C]0.000517794303908039[/C][C]0.000258897151954019[/C][/ROW]
[ROW][C]29[/C][C]0.999759820079014[/C][C]0.000480359841972518[/C][C]0.000240179920986259[/C][/ROW]
[ROW][C]30[/C][C]0.999441338943706[/C][C]0.00111732211258706[/C][C]0.000558661056293529[/C][/ROW]
[ROW][C]31[/C][C]0.99941706907964[/C][C]0.00116586184071736[/C][C]0.000582930920358679[/C][/ROW]
[ROW][C]32[/C][C]0.999421869514958[/C][C]0.00115626097008484[/C][C]0.000578130485042419[/C][/ROW]
[ROW][C]33[/C][C]0.999078645353996[/C][C]0.00184270929200814[/C][C]0.00092135464600407[/C][/ROW]
[ROW][C]34[/C][C]0.997970729509036[/C][C]0.00405854098192767[/C][C]0.00202927049096384[/C][/ROW]
[ROW][C]35[/C][C]0.995253002618432[/C][C]0.00949399476313532[/C][C]0.00474699738156766[/C][/ROW]
[ROW][C]36[/C][C]0.989984599948056[/C][C]0.020030800103888[/C][C]0.010015400051944[/C][/ROW]
[ROW][C]37[/C][C]0.98105795107948[/C][C]0.0378840978410415[/C][C]0.0189420489205208[/C][/ROW]
[ROW][C]38[/C][C]0.994471660095292[/C][C]0.0110566798094169[/C][C]0.00552833990470844[/C][/ROW]
[ROW][C]39[/C][C]0.980923252243788[/C][C]0.0381534955124238[/C][C]0.0190767477562119[/C][/ROW]
[ROW][C]40[/C][C]0.945326351371421[/C][C]0.109347297257157[/C][C]0.0546736486285786[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58280&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9999950725266279.8549467468071e-064.92747337340355e-06
170.9999967239017766.55219644846661e-063.27609822423331e-06
180.999995969572898.0608542196696e-064.0304271098348e-06
190.9999936109876881.27780246243001e-056.38901231215003e-06
200.9999897538514122.04922971755997e-051.02461485877998e-05
210.9999832167679183.35664641643961e-051.67832320821981e-05
220.9999751140826274.97718347454680e-052.48859173727340e-05
230.9999508864075959.8227184809636e-054.9113592404818e-05
240.9998993757933170.0002012484133650490.000100624206682525
250.9998408275183250.0003183449633490310.000159172481674516
260.9998061502494460.0003876995011075130.000193849750553756
270.9998058245587140.0003883508825729590.000194175441286480
280.9997411028480460.0005177943039080390.000258897151954019
290.9997598200790140.0004803598419725180.000240179920986259
300.9994413389437060.001117322112587060.000558661056293529
310.999417069079640.001165861840717360.000582930920358679
320.9994218695149580.001156260970084840.000578130485042419
330.9990786453539960.001842709292008140.00092135464600407
340.9979707295090360.004058540981927670.00202927049096384
350.9952530026184320.009493994763135320.00474699738156766
360.9899845999480560.0200308001038880.010015400051944
370.981057951079480.03788409784104150.0189420489205208
380.9944716600952920.01105667980941690.00552833990470844
390.9809232522437880.03815349551242380.0190767477562119
400.9453263513714210.1093472972571570.0546736486285786







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.8NOK
5% type I error level240.96NOK
10% type I error level240.96NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58280&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 level200.8NOK
5% type I error level240.96NOK
10% type I error level240.96NOK



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