Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 21 Dec 2009 06:27:31 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/21/t1261402114zs0mxcjac5fegtu.htm/, Retrieved Sun, 05 May 2024 11:19:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70150, Retrieved Sun, 05 May 2024 11:19:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Dow Jones and Dummy] [2008-12-13 13:10:09] [a1024b375232228f065c2de1e1d1e03d]
-    D  [Multiple Regression] [Bel20 dummy febr] [2008-12-17 09:21:24] [1dc7b54f2fa28720a65b8f3f53c2ed9f]
- RM      [Multiple Regression] [] [2009-12-21 12:18:08] [8eb28aba8de3868ee2c810eecf1cb9a8]
-   P         [Multiple Regression] [] [2009-12-21 13:27:31] [ce16745b5fa1a53fd3d9c8db848c7076] [Current]
Feedback Forum

Post a new message
Dataseries X:
2350.44	0
2440.25	0
2408.64	0
2472.81	0
2407.6	0
2454.62	0
2448.05	0
2497.84	0
2645.64	0
2756.76	0
2849.27	0
2921.44	0
2981.85	0
3080.58	0
3106.22	0
3119.31	0
3061.26	0
3097.31	0
3161.69	0
3257.16	0
3277.01	0
3295.32	0
3363.99	0
3494.17	0
3667.03	0
3813.06	0
3917.96	0
3895.51	0
3801.06	0
3570.12	0
3701.61	0
3862.27	0
3970.1	0
4138.52	0
4199.75	0
4290.89	0
4443.91	0
4502.64	1
4356.98	1
4591.27	1
4696.96	1
4621.4	1
4562.84	1
4202.52	1
4296.49	1
4435.23	1
4105.18	1
4116.68	1
3844.49	1
3720.98	1
3674.4	1
3857.62	1
3801.06	1
3504.37	1
3032.6	1
3047.03	1
2962.34	1
2197.82	1
2014.45	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Bel20[t] = + 2850.23778669725 -331.827809633028Dummy[t] -108.42336286315M1[t] -19.3836064602451M2[t] -69.329411983946M3[t] -6.14921750764652M4[t] -71.1490230313466M5[t] -206.456828555047M6[t] -305.946634078747M7[t] -345.224439602447M8[t] -319.556245126148M9[t] -416.426050649848M10[t] -505.911856173549M11[t] + 31.2838055237003t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Bel20[t] =  +  2850.23778669725 -331.827809633028Dummy[t] -108.42336286315M1[t] -19.3836064602451M2[t] -69.329411983946M3[t] -6.14921750764652M4[t] -71.1490230313466M5[t] -206.456828555047M6[t] -305.946634078747M7[t] -345.224439602447M8[t] -319.556245126148M9[t] -416.426050649848M10[t] -505.911856173549M11[t] +  31.2838055237003t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70150&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Bel20[t] =  +  2850.23778669725 -331.827809633028Dummy[t] -108.42336286315M1[t] -19.3836064602451M2[t] -69.329411983946M3[t] -6.14921750764652M4[t] -71.1490230313466M5[t] -206.456828555047M6[t] -305.946634078747M7[t] -345.224439602447M8[t] -319.556245126148M9[t] -416.426050649848M10[t] -505.911856173549M11[t] +  31.2838055237003t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70150&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70150&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
Bel20[t] = + 2850.23778669725 -331.827809633028Dummy[t] -108.42336286315M1[t] -19.3836064602451M2[t] -69.329411983946M3[t] -6.14921750764652M4[t] -71.1490230313466M5[t] -206.456828555047M6[t] -305.946634078747M7[t] -345.224439602447M8[t] -319.556245126148M9[t] -416.426050649848M10[t] -505.911856173549M11[t] + 31.2838055237003t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2850.23778669725406.1068627.018400
Dummy-331.827809633028345.374831-0.96080.3417990.1709
M1-108.42336286315452.547159-0.23960.811740.40587
M2-19.3836064602451459.596347-0.04220.9665460.483273
M3-69.329411983946457.90489-0.15140.8803320.440166
M4-6.14921750764652456.421055-0.01350.989310.494655
M5-71.1490230313466455.146873-0.15630.8764790.43824
M6-206.456828555047454.084107-0.45470.6515350.325768
M7-305.946634078747453.234246-0.6750.5031110.251555
M8-345.224439602447452.598488-0.76280.4495860.224793
M9-319.556245126148452.177738-0.70670.4833930.241697
M10-416.426050649848451.972594-0.92140.361780.18089
M11-505.911856173549451.983352-1.11930.2689450.134472
t31.28380552370039.8793913.16660.0027690.001384

\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) & 2850.23778669725 & 406.106862 & 7.0184 & 0 & 0 \tabularnewline
Dummy & -331.827809633028 & 345.374831 & -0.9608 & 0.341799 & 0.1709 \tabularnewline
M1 & -108.42336286315 & 452.547159 & -0.2396 & 0.81174 & 0.40587 \tabularnewline
M2 & -19.3836064602451 & 459.596347 & -0.0422 & 0.966546 & 0.483273 \tabularnewline
M3 & -69.329411983946 & 457.90489 & -0.1514 & 0.880332 & 0.440166 \tabularnewline
M4 & -6.14921750764652 & 456.421055 & -0.0135 & 0.98931 & 0.494655 \tabularnewline
M5 & -71.1490230313466 & 455.146873 & -0.1563 & 0.876479 & 0.43824 \tabularnewline
M6 & -206.456828555047 & 454.084107 & -0.4547 & 0.651535 & 0.325768 \tabularnewline
M7 & -305.946634078747 & 453.234246 & -0.675 & 0.503111 & 0.251555 \tabularnewline
M8 & -345.224439602447 & 452.598488 & -0.7628 & 0.449586 & 0.224793 \tabularnewline
M9 & -319.556245126148 & 452.177738 & -0.7067 & 0.483393 & 0.241697 \tabularnewline
M10 & -416.426050649848 & 451.972594 & -0.9214 & 0.36178 & 0.18089 \tabularnewline
M11 & -505.911856173549 & 451.983352 & -1.1193 & 0.268945 & 0.134472 \tabularnewline
t & 31.2838055237003 & 9.879391 & 3.1666 & 0.002769 & 0.001384 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70150&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]2850.23778669725[/C][C]406.106862[/C][C]7.0184[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-331.827809633028[/C][C]345.374831[/C][C]-0.9608[/C][C]0.341799[/C][C]0.1709[/C][/ROW]
[ROW][C]M1[/C][C]-108.42336286315[/C][C]452.547159[/C][C]-0.2396[/C][C]0.81174[/C][C]0.40587[/C][/ROW]
[ROW][C]M2[/C][C]-19.3836064602451[/C][C]459.596347[/C][C]-0.0422[/C][C]0.966546[/C][C]0.483273[/C][/ROW]
[ROW][C]M3[/C][C]-69.329411983946[/C][C]457.90489[/C][C]-0.1514[/C][C]0.880332[/C][C]0.440166[/C][/ROW]
[ROW][C]M4[/C][C]-6.14921750764652[/C][C]456.421055[/C][C]-0.0135[/C][C]0.98931[/C][C]0.494655[/C][/ROW]
[ROW][C]M5[/C][C]-71.1490230313466[/C][C]455.146873[/C][C]-0.1563[/C][C]0.876479[/C][C]0.43824[/C][/ROW]
[ROW][C]M6[/C][C]-206.456828555047[/C][C]454.084107[/C][C]-0.4547[/C][C]0.651535[/C][C]0.325768[/C][/ROW]
[ROW][C]M7[/C][C]-305.946634078747[/C][C]453.234246[/C][C]-0.675[/C][C]0.503111[/C][C]0.251555[/C][/ROW]
[ROW][C]M8[/C][C]-345.224439602447[/C][C]452.598488[/C][C]-0.7628[/C][C]0.449586[/C][C]0.224793[/C][/ROW]
[ROW][C]M9[/C][C]-319.556245126148[/C][C]452.177738[/C][C]-0.7067[/C][C]0.483393[/C][C]0.241697[/C][/ROW]
[ROW][C]M10[/C][C]-416.426050649848[/C][C]451.972594[/C][C]-0.9214[/C][C]0.36178[/C][C]0.18089[/C][/ROW]
[ROW][C]M11[/C][C]-505.911856173549[/C][C]451.983352[/C][C]-1.1193[/C][C]0.268945[/C][C]0.134472[/C][/ROW]
[ROW][C]t[/C][C]31.2838055237003[/C][C]9.879391[/C][C]3.1666[/C][C]0.002769[/C][C]0.001384[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70150&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70150&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)2850.23778669725406.1068627.018400
Dummy-331.827809633028345.374831-0.96080.3417990.1709
M1-108.42336286315452.547159-0.23960.811740.40587
M2-19.3836064602451459.596347-0.04220.9665460.483273
M3-69.329411983946457.90489-0.15140.8803320.440166
M4-6.14921750764652456.421055-0.01350.989310.494655
M5-71.1490230313466455.146873-0.15630.8764790.43824
M6-206.456828555047454.084107-0.45470.6515350.325768
M7-305.946634078747453.234246-0.6750.5031110.251555
M8-345.224439602447452.598488-0.76280.4495860.224793
M9-319.556245126148452.177738-0.70670.4833930.241697
M10-416.426050649848451.972594-0.92140.361780.18089
M11-505.911856173549451.983352-1.11930.2689450.134472
t31.28380552370039.8793913.16660.0027690.001384







Multiple Linear Regression - Regression Statistics
Multiple R0.573493498817874
R-squared0.328894793186366
Adjusted R-squared0.135019955662428
F-TEST (value)1.69642846584336
F-TEST (DF numerator)13
F-TEST (DF denominator)45
p-value0.0948706913653125
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation672.488729898232
Sum Squared Residuals20350849.1328062

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.573493498817874 \tabularnewline
R-squared & 0.328894793186366 \tabularnewline
Adjusted R-squared & 0.135019955662428 \tabularnewline
F-TEST (value) & 1.69642846584336 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 0.0948706913653125 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 672.488729898232 \tabularnewline
Sum Squared Residuals & 20350849.1328062 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70150&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.573493498817874[/C][/ROW]
[ROW][C]R-squared[/C][C]0.328894793186366[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.135019955662428[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.69642846584336[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/C][/ROW]
[ROW][C]p-value[/C][C]0.0948706913653125[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]672.488729898232[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]20350849.1328062[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70150&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70150&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.573493498817874
R-squared0.328894793186366
Adjusted R-squared0.135019955662428
F-TEST (value)1.69642846584336
F-TEST (DF numerator)13
F-TEST (DF denominator)45
p-value0.0948706913653125
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation672.488729898232
Sum Squared Residuals20350849.1328062







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12350.442773.09822935779-422.658229357794
22440.252893.42179128440-453.171791284402
32408.642874.75979128440-466.119791284403
42472.812969.22379128440-496.413791284405
52407.62935.50779128440-527.907791284404
62454.622831.48379128440-376.863791284404
72448.052763.27779128440-315.227791284403
82497.842755.28379128440-257.443791284404
92645.642812.23579128440-166.595791284404
102756.762746.6497912844010.1102087155960
112849.272688.44779128440160.822208715595
122921.443225.64345298165-304.203452981652
132981.853148.5038956422-166.653895642203
143080.583268.82745756881-188.247457568809
153106.223250.16545756881-143.945457568807
163119.313344.62945756881-225.319457568807
173061.263310.91345756881-249.653457568807
183097.313206.88945756881-109.579457568807
193161.693138.6834575688123.0065424311928
203257.163130.68945756881126.470542431193
213277.013187.6414575688189.368542431193
223295.323122.05545756881173.264542431193
233363.993063.85345756881300.136542431193
243494.173601.04911926606-106.879119266056
253667.033523.90956192661143.120438073394
263813.063644.23312385321168.826876146789
273917.963625.57112385321292.388876146789
283895.513720.03512385321175.474876146790
293801.063686.31912385321114.740876146789
303570.123582.29512385321-12.1751238532106
313701.613514.08912385321187.520876146789
323862.273506.09512385321356.174876146789
333970.13563.04712385321407.052876146789
344138.523497.46112385321641.05887614679
354199.753439.25912385321760.49087614679
364290.893976.45478555046314.435214449541
374443.913899.31522821101544.59477178899
384502.643687.81098050459814.829019495413
394356.983669.14898050459687.831019495412
404591.273763.61298050459827.657019495413
414696.963729.89698050459967.063019495413
424621.43625.87298050459995.527019495412
434562.843557.666980504591005.17301949541
444202.523549.67298050459652.847019495413
454296.493606.62498050459689.865019495413
464435.233541.03898050459894.191019495412
474105.183482.83698050459622.343019495413
484116.684020.0326422018496.6473577981641
493844.493942.89308486239-98.4030848623867
503720.984063.21664678899-342.236646788991
513674.44044.55464678899-370.154646788991
523857.624139.01864678899-281.398646788990
533801.064105.30264678899-304.242646788991
543504.374001.27864678899-496.908646788991
553032.63933.07264678899-900.47264678899
563047.033925.07864678899-878.04864678899
572962.343982.03064678899-1019.69064678899
582197.823916.44464678899-1718.62464678899
592014.453858.24264678899-1843.79264678899

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2350.44 & 2773.09822935779 & -422.658229357794 \tabularnewline
2 & 2440.25 & 2893.42179128440 & -453.171791284402 \tabularnewline
3 & 2408.64 & 2874.75979128440 & -466.119791284403 \tabularnewline
4 & 2472.81 & 2969.22379128440 & -496.413791284405 \tabularnewline
5 & 2407.6 & 2935.50779128440 & -527.907791284404 \tabularnewline
6 & 2454.62 & 2831.48379128440 & -376.863791284404 \tabularnewline
7 & 2448.05 & 2763.27779128440 & -315.227791284403 \tabularnewline
8 & 2497.84 & 2755.28379128440 & -257.443791284404 \tabularnewline
9 & 2645.64 & 2812.23579128440 & -166.595791284404 \tabularnewline
10 & 2756.76 & 2746.64979128440 & 10.1102087155960 \tabularnewline
11 & 2849.27 & 2688.44779128440 & 160.822208715595 \tabularnewline
12 & 2921.44 & 3225.64345298165 & -304.203452981652 \tabularnewline
13 & 2981.85 & 3148.5038956422 & -166.653895642203 \tabularnewline
14 & 3080.58 & 3268.82745756881 & -188.247457568809 \tabularnewline
15 & 3106.22 & 3250.16545756881 & -143.945457568807 \tabularnewline
16 & 3119.31 & 3344.62945756881 & -225.319457568807 \tabularnewline
17 & 3061.26 & 3310.91345756881 & -249.653457568807 \tabularnewline
18 & 3097.31 & 3206.88945756881 & -109.579457568807 \tabularnewline
19 & 3161.69 & 3138.68345756881 & 23.0065424311928 \tabularnewline
20 & 3257.16 & 3130.68945756881 & 126.470542431193 \tabularnewline
21 & 3277.01 & 3187.64145756881 & 89.368542431193 \tabularnewline
22 & 3295.32 & 3122.05545756881 & 173.264542431193 \tabularnewline
23 & 3363.99 & 3063.85345756881 & 300.136542431193 \tabularnewline
24 & 3494.17 & 3601.04911926606 & -106.879119266056 \tabularnewline
25 & 3667.03 & 3523.90956192661 & 143.120438073394 \tabularnewline
26 & 3813.06 & 3644.23312385321 & 168.826876146789 \tabularnewline
27 & 3917.96 & 3625.57112385321 & 292.388876146789 \tabularnewline
28 & 3895.51 & 3720.03512385321 & 175.474876146790 \tabularnewline
29 & 3801.06 & 3686.31912385321 & 114.740876146789 \tabularnewline
30 & 3570.12 & 3582.29512385321 & -12.1751238532106 \tabularnewline
31 & 3701.61 & 3514.08912385321 & 187.520876146789 \tabularnewline
32 & 3862.27 & 3506.09512385321 & 356.174876146789 \tabularnewline
33 & 3970.1 & 3563.04712385321 & 407.052876146789 \tabularnewline
34 & 4138.52 & 3497.46112385321 & 641.05887614679 \tabularnewline
35 & 4199.75 & 3439.25912385321 & 760.49087614679 \tabularnewline
36 & 4290.89 & 3976.45478555046 & 314.435214449541 \tabularnewline
37 & 4443.91 & 3899.31522821101 & 544.59477178899 \tabularnewline
38 & 4502.64 & 3687.81098050459 & 814.829019495413 \tabularnewline
39 & 4356.98 & 3669.14898050459 & 687.831019495412 \tabularnewline
40 & 4591.27 & 3763.61298050459 & 827.657019495413 \tabularnewline
41 & 4696.96 & 3729.89698050459 & 967.063019495413 \tabularnewline
42 & 4621.4 & 3625.87298050459 & 995.527019495412 \tabularnewline
43 & 4562.84 & 3557.66698050459 & 1005.17301949541 \tabularnewline
44 & 4202.52 & 3549.67298050459 & 652.847019495413 \tabularnewline
45 & 4296.49 & 3606.62498050459 & 689.865019495413 \tabularnewline
46 & 4435.23 & 3541.03898050459 & 894.191019495412 \tabularnewline
47 & 4105.18 & 3482.83698050459 & 622.343019495413 \tabularnewline
48 & 4116.68 & 4020.03264220184 & 96.6473577981641 \tabularnewline
49 & 3844.49 & 3942.89308486239 & -98.4030848623867 \tabularnewline
50 & 3720.98 & 4063.21664678899 & -342.236646788991 \tabularnewline
51 & 3674.4 & 4044.55464678899 & -370.154646788991 \tabularnewline
52 & 3857.62 & 4139.01864678899 & -281.398646788990 \tabularnewline
53 & 3801.06 & 4105.30264678899 & -304.242646788991 \tabularnewline
54 & 3504.37 & 4001.27864678899 & -496.908646788991 \tabularnewline
55 & 3032.6 & 3933.07264678899 & -900.47264678899 \tabularnewline
56 & 3047.03 & 3925.07864678899 & -878.04864678899 \tabularnewline
57 & 2962.34 & 3982.03064678899 & -1019.69064678899 \tabularnewline
58 & 2197.82 & 3916.44464678899 & -1718.62464678899 \tabularnewline
59 & 2014.45 & 3858.24264678899 & -1843.79264678899 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70150&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]2350.44[/C][C]2773.09822935779[/C][C]-422.658229357794[/C][/ROW]
[ROW][C]2[/C][C]2440.25[/C][C]2893.42179128440[/C][C]-453.171791284402[/C][/ROW]
[ROW][C]3[/C][C]2408.64[/C][C]2874.75979128440[/C][C]-466.119791284403[/C][/ROW]
[ROW][C]4[/C][C]2472.81[/C][C]2969.22379128440[/C][C]-496.413791284405[/C][/ROW]
[ROW][C]5[/C][C]2407.6[/C][C]2935.50779128440[/C][C]-527.907791284404[/C][/ROW]
[ROW][C]6[/C][C]2454.62[/C][C]2831.48379128440[/C][C]-376.863791284404[/C][/ROW]
[ROW][C]7[/C][C]2448.05[/C][C]2763.27779128440[/C][C]-315.227791284403[/C][/ROW]
[ROW][C]8[/C][C]2497.84[/C][C]2755.28379128440[/C][C]-257.443791284404[/C][/ROW]
[ROW][C]9[/C][C]2645.64[/C][C]2812.23579128440[/C][C]-166.595791284404[/C][/ROW]
[ROW][C]10[/C][C]2756.76[/C][C]2746.64979128440[/C][C]10.1102087155960[/C][/ROW]
[ROW][C]11[/C][C]2849.27[/C][C]2688.44779128440[/C][C]160.822208715595[/C][/ROW]
[ROW][C]12[/C][C]2921.44[/C][C]3225.64345298165[/C][C]-304.203452981652[/C][/ROW]
[ROW][C]13[/C][C]2981.85[/C][C]3148.5038956422[/C][C]-166.653895642203[/C][/ROW]
[ROW][C]14[/C][C]3080.58[/C][C]3268.82745756881[/C][C]-188.247457568809[/C][/ROW]
[ROW][C]15[/C][C]3106.22[/C][C]3250.16545756881[/C][C]-143.945457568807[/C][/ROW]
[ROW][C]16[/C][C]3119.31[/C][C]3344.62945756881[/C][C]-225.319457568807[/C][/ROW]
[ROW][C]17[/C][C]3061.26[/C][C]3310.91345756881[/C][C]-249.653457568807[/C][/ROW]
[ROW][C]18[/C][C]3097.31[/C][C]3206.88945756881[/C][C]-109.579457568807[/C][/ROW]
[ROW][C]19[/C][C]3161.69[/C][C]3138.68345756881[/C][C]23.0065424311928[/C][/ROW]
[ROW][C]20[/C][C]3257.16[/C][C]3130.68945756881[/C][C]126.470542431193[/C][/ROW]
[ROW][C]21[/C][C]3277.01[/C][C]3187.64145756881[/C][C]89.368542431193[/C][/ROW]
[ROW][C]22[/C][C]3295.32[/C][C]3122.05545756881[/C][C]173.264542431193[/C][/ROW]
[ROW][C]23[/C][C]3363.99[/C][C]3063.85345756881[/C][C]300.136542431193[/C][/ROW]
[ROW][C]24[/C][C]3494.17[/C][C]3601.04911926606[/C][C]-106.879119266056[/C][/ROW]
[ROW][C]25[/C][C]3667.03[/C][C]3523.90956192661[/C][C]143.120438073394[/C][/ROW]
[ROW][C]26[/C][C]3813.06[/C][C]3644.23312385321[/C][C]168.826876146789[/C][/ROW]
[ROW][C]27[/C][C]3917.96[/C][C]3625.57112385321[/C][C]292.388876146789[/C][/ROW]
[ROW][C]28[/C][C]3895.51[/C][C]3720.03512385321[/C][C]175.474876146790[/C][/ROW]
[ROW][C]29[/C][C]3801.06[/C][C]3686.31912385321[/C][C]114.740876146789[/C][/ROW]
[ROW][C]30[/C][C]3570.12[/C][C]3582.29512385321[/C][C]-12.1751238532106[/C][/ROW]
[ROW][C]31[/C][C]3701.61[/C][C]3514.08912385321[/C][C]187.520876146789[/C][/ROW]
[ROW][C]32[/C][C]3862.27[/C][C]3506.09512385321[/C][C]356.174876146789[/C][/ROW]
[ROW][C]33[/C][C]3970.1[/C][C]3563.04712385321[/C][C]407.052876146789[/C][/ROW]
[ROW][C]34[/C][C]4138.52[/C][C]3497.46112385321[/C][C]641.05887614679[/C][/ROW]
[ROW][C]35[/C][C]4199.75[/C][C]3439.25912385321[/C][C]760.49087614679[/C][/ROW]
[ROW][C]36[/C][C]4290.89[/C][C]3976.45478555046[/C][C]314.435214449541[/C][/ROW]
[ROW][C]37[/C][C]4443.91[/C][C]3899.31522821101[/C][C]544.59477178899[/C][/ROW]
[ROW][C]38[/C][C]4502.64[/C][C]3687.81098050459[/C][C]814.829019495413[/C][/ROW]
[ROW][C]39[/C][C]4356.98[/C][C]3669.14898050459[/C][C]687.831019495412[/C][/ROW]
[ROW][C]40[/C][C]4591.27[/C][C]3763.61298050459[/C][C]827.657019495413[/C][/ROW]
[ROW][C]41[/C][C]4696.96[/C][C]3729.89698050459[/C][C]967.063019495413[/C][/ROW]
[ROW][C]42[/C][C]4621.4[/C][C]3625.87298050459[/C][C]995.527019495412[/C][/ROW]
[ROW][C]43[/C][C]4562.84[/C][C]3557.66698050459[/C][C]1005.17301949541[/C][/ROW]
[ROW][C]44[/C][C]4202.52[/C][C]3549.67298050459[/C][C]652.847019495413[/C][/ROW]
[ROW][C]45[/C][C]4296.49[/C][C]3606.62498050459[/C][C]689.865019495413[/C][/ROW]
[ROW][C]46[/C][C]4435.23[/C][C]3541.03898050459[/C][C]894.191019495412[/C][/ROW]
[ROW][C]47[/C][C]4105.18[/C][C]3482.83698050459[/C][C]622.343019495413[/C][/ROW]
[ROW][C]48[/C][C]4116.68[/C][C]4020.03264220184[/C][C]96.6473577981641[/C][/ROW]
[ROW][C]49[/C][C]3844.49[/C][C]3942.89308486239[/C][C]-98.4030848623867[/C][/ROW]
[ROW][C]50[/C][C]3720.98[/C][C]4063.21664678899[/C][C]-342.236646788991[/C][/ROW]
[ROW][C]51[/C][C]3674.4[/C][C]4044.55464678899[/C][C]-370.154646788991[/C][/ROW]
[ROW][C]52[/C][C]3857.62[/C][C]4139.01864678899[/C][C]-281.398646788990[/C][/ROW]
[ROW][C]53[/C][C]3801.06[/C][C]4105.30264678899[/C][C]-304.242646788991[/C][/ROW]
[ROW][C]54[/C][C]3504.37[/C][C]4001.27864678899[/C][C]-496.908646788991[/C][/ROW]
[ROW][C]55[/C][C]3032.6[/C][C]3933.07264678899[/C][C]-900.47264678899[/C][/ROW]
[ROW][C]56[/C][C]3047.03[/C][C]3925.07864678899[/C][C]-878.04864678899[/C][/ROW]
[ROW][C]57[/C][C]2962.34[/C][C]3982.03064678899[/C][C]-1019.69064678899[/C][/ROW]
[ROW][C]58[/C][C]2197.82[/C][C]3916.44464678899[/C][C]-1718.62464678899[/C][/ROW]
[ROW][C]59[/C][C]2014.45[/C][C]3858.24264678899[/C][C]-1843.79264678899[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70150&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70150&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
12350.442773.09822935779-422.658229357794
22440.252893.42179128440-453.171791284402
32408.642874.75979128440-466.119791284403
42472.812969.22379128440-496.413791284405
52407.62935.50779128440-527.907791284404
62454.622831.48379128440-376.863791284404
72448.052763.27779128440-315.227791284403
82497.842755.28379128440-257.443791284404
92645.642812.23579128440-166.595791284404
102756.762746.6497912844010.1102087155960
112849.272688.44779128440160.822208715595
122921.443225.64345298165-304.203452981652
132981.853148.5038956422-166.653895642203
143080.583268.82745756881-188.247457568809
153106.223250.16545756881-143.945457568807
163119.313344.62945756881-225.319457568807
173061.263310.91345756881-249.653457568807
183097.313206.88945756881-109.579457568807
193161.693138.6834575688123.0065424311928
203257.163130.68945756881126.470542431193
213277.013187.6414575688189.368542431193
223295.323122.05545756881173.264542431193
233363.993063.85345756881300.136542431193
243494.173601.04911926606-106.879119266056
253667.033523.90956192661143.120438073394
263813.063644.23312385321168.826876146789
273917.963625.57112385321292.388876146789
283895.513720.03512385321175.474876146790
293801.063686.31912385321114.740876146789
303570.123582.29512385321-12.1751238532106
313701.613514.08912385321187.520876146789
323862.273506.09512385321356.174876146789
333970.13563.04712385321407.052876146789
344138.523497.46112385321641.05887614679
354199.753439.25912385321760.49087614679
364290.893976.45478555046314.435214449541
374443.913899.31522821101544.59477178899
384502.643687.81098050459814.829019495413
394356.983669.14898050459687.831019495412
404591.273763.61298050459827.657019495413
414696.963729.89698050459967.063019495413
424621.43625.87298050459995.527019495412
434562.843557.666980504591005.17301949541
444202.523549.67298050459652.847019495413
454296.493606.62498050459689.865019495413
464435.233541.03898050459894.191019495412
474105.183482.83698050459622.343019495413
484116.684020.0326422018496.6473577981641
493844.493942.89308486239-98.4030848623867
503720.984063.21664678899-342.236646788991
513674.44044.55464678899-370.154646788991
523857.624139.01864678899-281.398646788990
533801.064105.30264678899-304.242646788991
543504.374001.27864678899-496.908646788991
553032.63933.07264678899-900.47264678899
563047.033925.07864678899-878.04864678899
572962.343982.03064678899-1019.69064678899
582197.823916.44464678899-1718.62464678899
592014.453858.24264678899-1843.79264678899







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
175.05423349397846e-050.0001010846698795690.99994945766506
181.68118041740724e-063.36236083481449e-060.999998318819583
193.48832462337070e-076.97664924674141e-070.999999651167538
202.04597604852596e-074.09195209705192e-070.999999795402395
212.06172266214545e-084.12344532429091e-080.999999979382773
222.23306650158922e-084.46613300317844e-080.999999977669335
231.81170428996373e-083.62340857992747e-080.999999981882957
248.03107091827873e-091.60621418365575e-080.99999999196893
254.26246511919446e-098.52493023838892e-090.999999995737535
261.32928481633966e-092.65856963267932e-090.999999998670715
272.9726943100405e-095.945388620081e-090.999999997027306
281.21236711793792e-092.42473423587583e-090.999999998787633
295.60296188791632e-101.12059237758326e-090.999999999439704
301.53746469842774e-083.07492939685547e-080.999999984625353
312.06665590903830e-084.13331181807660e-080.99999997933344
329.91111256768274e-091.98222251353655e-080.999999990088887
336.38877443871536e-091.27775488774307e-080.999999993611226
343.20069511183936e-096.40139022367873e-090.999999996799305
359.695730814927e-101.9391461629854e-090.999999999030427
363.18975701035518e-106.37951402071037e-100.999999999681024
378.97846236880828e-111.79569247376166e-100.999999999910215
383.86016201120075e-117.7203240224015e-110.999999999961398
391.3876706466326e-102.7753412932652e-100.999999999861233
408.21200488997979e-101.64240097799596e-090.9999999991788
414.14451483928315e-088.2890296785663e-080.999999958554852
422.18616900010062e-074.37233800020124e-070.9999997813831

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 5.05423349397846e-05 & 0.000101084669879569 & 0.99994945766506 \tabularnewline
18 & 1.68118041740724e-06 & 3.36236083481449e-06 & 0.999998318819583 \tabularnewline
19 & 3.48832462337070e-07 & 6.97664924674141e-07 & 0.999999651167538 \tabularnewline
20 & 2.04597604852596e-07 & 4.09195209705192e-07 & 0.999999795402395 \tabularnewline
21 & 2.06172266214545e-08 & 4.12344532429091e-08 & 0.999999979382773 \tabularnewline
22 & 2.23306650158922e-08 & 4.46613300317844e-08 & 0.999999977669335 \tabularnewline
23 & 1.81170428996373e-08 & 3.62340857992747e-08 & 0.999999981882957 \tabularnewline
24 & 8.03107091827873e-09 & 1.60621418365575e-08 & 0.99999999196893 \tabularnewline
25 & 4.26246511919446e-09 & 8.52493023838892e-09 & 0.999999995737535 \tabularnewline
26 & 1.32928481633966e-09 & 2.65856963267932e-09 & 0.999999998670715 \tabularnewline
27 & 2.9726943100405e-09 & 5.945388620081e-09 & 0.999999997027306 \tabularnewline
28 & 1.21236711793792e-09 & 2.42473423587583e-09 & 0.999999998787633 \tabularnewline
29 & 5.60296188791632e-10 & 1.12059237758326e-09 & 0.999999999439704 \tabularnewline
30 & 1.53746469842774e-08 & 3.07492939685547e-08 & 0.999999984625353 \tabularnewline
31 & 2.06665590903830e-08 & 4.13331181807660e-08 & 0.99999997933344 \tabularnewline
32 & 9.91111256768274e-09 & 1.98222251353655e-08 & 0.999999990088887 \tabularnewline
33 & 6.38877443871536e-09 & 1.27775488774307e-08 & 0.999999993611226 \tabularnewline
34 & 3.20069511183936e-09 & 6.40139022367873e-09 & 0.999999996799305 \tabularnewline
35 & 9.695730814927e-10 & 1.9391461629854e-09 & 0.999999999030427 \tabularnewline
36 & 3.18975701035518e-10 & 6.37951402071037e-10 & 0.999999999681024 \tabularnewline
37 & 8.97846236880828e-11 & 1.79569247376166e-10 & 0.999999999910215 \tabularnewline
38 & 3.86016201120075e-11 & 7.7203240224015e-11 & 0.999999999961398 \tabularnewline
39 & 1.3876706466326e-10 & 2.7753412932652e-10 & 0.999999999861233 \tabularnewline
40 & 8.21200488997979e-10 & 1.64240097799596e-09 & 0.9999999991788 \tabularnewline
41 & 4.14451483928315e-08 & 8.2890296785663e-08 & 0.999999958554852 \tabularnewline
42 & 2.18616900010062e-07 & 4.37233800020124e-07 & 0.9999997813831 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70150&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]5.05423349397846e-05[/C][C]0.000101084669879569[/C][C]0.99994945766506[/C][/ROW]
[ROW][C]18[/C][C]1.68118041740724e-06[/C][C]3.36236083481449e-06[/C][C]0.999998318819583[/C][/ROW]
[ROW][C]19[/C][C]3.48832462337070e-07[/C][C]6.97664924674141e-07[/C][C]0.999999651167538[/C][/ROW]
[ROW][C]20[/C][C]2.04597604852596e-07[/C][C]4.09195209705192e-07[/C][C]0.999999795402395[/C][/ROW]
[ROW][C]21[/C][C]2.06172266214545e-08[/C][C]4.12344532429091e-08[/C][C]0.999999979382773[/C][/ROW]
[ROW][C]22[/C][C]2.23306650158922e-08[/C][C]4.46613300317844e-08[/C][C]0.999999977669335[/C][/ROW]
[ROW][C]23[/C][C]1.81170428996373e-08[/C][C]3.62340857992747e-08[/C][C]0.999999981882957[/C][/ROW]
[ROW][C]24[/C][C]8.03107091827873e-09[/C][C]1.60621418365575e-08[/C][C]0.99999999196893[/C][/ROW]
[ROW][C]25[/C][C]4.26246511919446e-09[/C][C]8.52493023838892e-09[/C][C]0.999999995737535[/C][/ROW]
[ROW][C]26[/C][C]1.32928481633966e-09[/C][C]2.65856963267932e-09[/C][C]0.999999998670715[/C][/ROW]
[ROW][C]27[/C][C]2.9726943100405e-09[/C][C]5.945388620081e-09[/C][C]0.999999997027306[/C][/ROW]
[ROW][C]28[/C][C]1.21236711793792e-09[/C][C]2.42473423587583e-09[/C][C]0.999999998787633[/C][/ROW]
[ROW][C]29[/C][C]5.60296188791632e-10[/C][C]1.12059237758326e-09[/C][C]0.999999999439704[/C][/ROW]
[ROW][C]30[/C][C]1.53746469842774e-08[/C][C]3.07492939685547e-08[/C][C]0.999999984625353[/C][/ROW]
[ROW][C]31[/C][C]2.06665590903830e-08[/C][C]4.13331181807660e-08[/C][C]0.99999997933344[/C][/ROW]
[ROW][C]32[/C][C]9.91111256768274e-09[/C][C]1.98222251353655e-08[/C][C]0.999999990088887[/C][/ROW]
[ROW][C]33[/C][C]6.38877443871536e-09[/C][C]1.27775488774307e-08[/C][C]0.999999993611226[/C][/ROW]
[ROW][C]34[/C][C]3.20069511183936e-09[/C][C]6.40139022367873e-09[/C][C]0.999999996799305[/C][/ROW]
[ROW][C]35[/C][C]9.695730814927e-10[/C][C]1.9391461629854e-09[/C][C]0.999999999030427[/C][/ROW]
[ROW][C]36[/C][C]3.18975701035518e-10[/C][C]6.37951402071037e-10[/C][C]0.999999999681024[/C][/ROW]
[ROW][C]37[/C][C]8.97846236880828e-11[/C][C]1.79569247376166e-10[/C][C]0.999999999910215[/C][/ROW]
[ROW][C]38[/C][C]3.86016201120075e-11[/C][C]7.7203240224015e-11[/C][C]0.999999999961398[/C][/ROW]
[ROW][C]39[/C][C]1.3876706466326e-10[/C][C]2.7753412932652e-10[/C][C]0.999999999861233[/C][/ROW]
[ROW][C]40[/C][C]8.21200488997979e-10[/C][C]1.64240097799596e-09[/C][C]0.9999999991788[/C][/ROW]
[ROW][C]41[/C][C]4.14451483928315e-08[/C][C]8.2890296785663e-08[/C][C]0.999999958554852[/C][/ROW]
[ROW][C]42[/C][C]2.18616900010062e-07[/C][C]4.37233800020124e-07[/C][C]0.9999997813831[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70150&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70150&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
175.05423349397846e-050.0001010846698795690.99994945766506
181.68118041740724e-063.36236083481449e-060.999998318819583
193.48832462337070e-076.97664924674141e-070.999999651167538
202.04597604852596e-074.09195209705192e-070.999999795402395
212.06172266214545e-084.12344532429091e-080.999999979382773
222.23306650158922e-084.46613300317844e-080.999999977669335
231.81170428996373e-083.62340857992747e-080.999999981882957
248.03107091827873e-091.60621418365575e-080.99999999196893
254.26246511919446e-098.52493023838892e-090.999999995737535
261.32928481633966e-092.65856963267932e-090.999999998670715
272.9726943100405e-095.945388620081e-090.999999997027306
281.21236711793792e-092.42473423587583e-090.999999998787633
295.60296188791632e-101.12059237758326e-090.999999999439704
301.53746469842774e-083.07492939685547e-080.999999984625353
312.06665590903830e-084.13331181807660e-080.99999997933344
329.91111256768274e-091.98222251353655e-080.999999990088887
336.38877443871536e-091.27775488774307e-080.999999993611226
343.20069511183936e-096.40139022367873e-090.999999996799305
359.695730814927e-101.9391461629854e-090.999999999030427
363.18975701035518e-106.37951402071037e-100.999999999681024
378.97846236880828e-111.79569247376166e-100.999999999910215
383.86016201120075e-117.7203240224015e-110.999999999961398
391.3876706466326e-102.7753412932652e-100.999999999861233
408.21200488997979e-101.64240097799596e-090.9999999991788
414.14451483928315e-088.2890296785663e-080.999999958554852
422.18616900010062e-074.37233800020124e-070.9999997813831







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level261NOK
5% type I error level261NOK
10% type I error level261NOK

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

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



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