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, 18 Dec 2009 09:07:40 -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/18/t1261152619sd90rjsyvjmvplm.htm/, Retrieved Sat, 27 Apr 2024 12:24:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69414, Retrieved Sat, 27 Apr 2024 12:24:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact200
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [blog] [2008-12-01 15:44:12] [12d343c4448a5f9e527bb31caeac580b]
-   PD  [Multiple Regression] [blog] [2008-12-01 16:17:50] [12d343c4448a5f9e527bb31caeac580b]
-   PD    [Multiple Regression] [dioxine] [2008-12-01 16:30:23] [7a664918911e34206ce9d0436dd7c1c8]
-    D      [Multiple Regression] [Hypothese 1 en 2 ...] [2008-12-03 15:49:48] [12d343c4448a5f9e527bb31caeac580b]
- RM D          [Multiple Regression] [] [2009-12-18 16:07:40] [7ed3c7cd7b86afd1930511b5492d29ea] [Current]
Feedback Forum

Post a new message
Dataseries X:
120,9	0	0
119,6	0	0
125,9	0	0
116,1	0	0
107,5	0	0
116,7	0	0
112,5	0	0
113	0	0
126,4	0	0
114,1	0	0
112,5	0	0
112,4	0	0
113,1	0	0
116,3	0	0
111,7	0	0
118,8	0	0
116,5	0	0
125,1	0	0
113,1	0	0
119,6	0	0
114,4	0	0
114	0	0
117,8	0	0
117	0	0
120,9	0	0
115	0	0
117,3	0	0
119,4	0	0
114,9	0	0
125,8	0	0
117,6	0	0
117,6	0	0
114,9	0	0
121,9	0	0
117	0	1
106,4	0	1
110,5	0	1
113,6	0	1
114,2	0	1
125,4	0	1
124,6	0	1
120,2	0	1
120,8	0	1
111,4	0	1
124,1	0	1
120,2	0	1
125,5	0	1
116	1	0
117	1	0
105,7	1	0
102	1	0
106,4	1	0
96,9	1	0
107,6	1	0
98,8	1	0
101,1	1	0
105,7	1	0
104,6	1	0
103,2	1	0
101,6	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=69414&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=69414&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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
ChemischeNijverheid[t] = + 114.045891608392 -14.2594696969697Dummy_1_tijdenscrisis[t] -0.643036130536138Dummy_2_voorcrisis[t] + 3.70175990675989M1[t] + 1.19324592074591M2[t] + 1.30473193473193M3[t] + 4.23621794871794M4[t] -0.972296037296041M5[t] + 5.95918997668996M6[t] -0.629324009324017M7[t] -0.717837995338005M8[t] + 3.77364801864801M9[t] + 1.56513403263402M10[t] + 1.86522727272727M11[t] + 0.0685139860139864t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
ChemischeNijverheid[t] =  +  114.045891608392 -14.2594696969697Dummy_1_tijdenscrisis[t] -0.643036130536138Dummy_2_voorcrisis[t] +  3.70175990675989M1[t] +  1.19324592074591M2[t] +  1.30473193473193M3[t] +  4.23621794871794M4[t] -0.972296037296041M5[t] +  5.95918997668996M6[t] -0.629324009324017M7[t] -0.717837995338005M8[t] +  3.77364801864801M9[t] +  1.56513403263402M10[t] +  1.86522727272727M11[t] +  0.0685139860139864t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69414&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]ChemischeNijverheid[t] =  +  114.045891608392 -14.2594696969697Dummy_1_tijdenscrisis[t] -0.643036130536138Dummy_2_voorcrisis[t] +  3.70175990675989M1[t] +  1.19324592074591M2[t] +  1.30473193473193M3[t] +  4.23621794871794M4[t] -0.972296037296041M5[t] +  5.95918997668996M6[t] -0.629324009324017M7[t] -0.717837995338005M8[t] +  3.77364801864801M9[t] +  1.56513403263402M10[t] +  1.86522727272727M11[t] +  0.0685139860139864t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69414&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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
ChemischeNijverheid[t] = + 114.045891608392 -14.2594696969697Dummy_1_tijdenscrisis[t] -0.643036130536138Dummy_2_voorcrisis[t] + 3.70175990675989M1[t] + 1.19324592074591M2[t] + 1.30473193473193M3[t] + 4.23621794871794M4[t] -0.972296037296041M5[t] + 5.95918997668996M6[t] -0.629324009324017M7[t] -0.717837995338005M8[t] + 3.77364801864801M9[t] + 1.56513403263402M10[t] + 1.86522727272727M11[t] + 0.0685139860139864t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)114.0458916083922.96791138.426300
Dummy_1_tijdenscrisis-14.25946969696973.839393-3.7140.0005610.00028
Dummy_2_voorcrisis-0.6430361305361382.802759-0.22940.8195750.409787
M13.701759906759893.3902551.09190.2806960.140348
M21.193245920745913.3820250.35280.7258710.362935
M31.304731934731933.3763650.38640.7009990.350499
M44.236217948717943.3732881.25580.2156650.107833
M5-0.9722960372960413.372802-0.28830.774460.38723
M65.959189976689963.3749081.76570.0842250.042112
M7-0.6293240093240173.3796-0.18620.8531150.426557
M8-0.7178379953380053.386869-0.21190.8331050.416553
M93.773648018648013.3966971.1110.272480.13624
M101.565134032634023.4090620.45910.6483650.324183
M111.865227272727273.3840440.55120.5842350.292117
t0.06851398601398640.0935060.73270.4675290.233765

\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) & 114.045891608392 & 2.967911 & 38.4263 & 0 & 0 \tabularnewline
Dummy_1_tijdenscrisis & -14.2594696969697 & 3.839393 & -3.714 & 0.000561 & 0.00028 \tabularnewline
Dummy_2_voorcrisis & -0.643036130536138 & 2.802759 & -0.2294 & 0.819575 & 0.409787 \tabularnewline
M1 & 3.70175990675989 & 3.390255 & 1.0919 & 0.280696 & 0.140348 \tabularnewline
M2 & 1.19324592074591 & 3.382025 & 0.3528 & 0.725871 & 0.362935 \tabularnewline
M3 & 1.30473193473193 & 3.376365 & 0.3864 & 0.700999 & 0.350499 \tabularnewline
M4 & 4.23621794871794 & 3.373288 & 1.2558 & 0.215665 & 0.107833 \tabularnewline
M5 & -0.972296037296041 & 3.372802 & -0.2883 & 0.77446 & 0.38723 \tabularnewline
M6 & 5.95918997668996 & 3.374908 & 1.7657 & 0.084225 & 0.042112 \tabularnewline
M7 & -0.629324009324017 & 3.3796 & -0.1862 & 0.853115 & 0.426557 \tabularnewline
M8 & -0.717837995338005 & 3.386869 & -0.2119 & 0.833105 & 0.416553 \tabularnewline
M9 & 3.77364801864801 & 3.396697 & 1.111 & 0.27248 & 0.13624 \tabularnewline
M10 & 1.56513403263402 & 3.409062 & 0.4591 & 0.648365 & 0.324183 \tabularnewline
M11 & 1.86522727272727 & 3.384044 & 0.5512 & 0.584235 & 0.292117 \tabularnewline
t & 0.0685139860139864 & 0.093506 & 0.7327 & 0.467529 & 0.233765 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69414&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]114.045891608392[/C][C]2.967911[/C][C]38.4263[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy_1_tijdenscrisis[/C][C]-14.2594696969697[/C][C]3.839393[/C][C]-3.714[/C][C]0.000561[/C][C]0.00028[/C][/ROW]
[ROW][C]Dummy_2_voorcrisis[/C][C]-0.643036130536138[/C][C]2.802759[/C][C]-0.2294[/C][C]0.819575[/C][C]0.409787[/C][/ROW]
[ROW][C]M1[/C][C]3.70175990675989[/C][C]3.390255[/C][C]1.0919[/C][C]0.280696[/C][C]0.140348[/C][/ROW]
[ROW][C]M2[/C][C]1.19324592074591[/C][C]3.382025[/C][C]0.3528[/C][C]0.725871[/C][C]0.362935[/C][/ROW]
[ROW][C]M3[/C][C]1.30473193473193[/C][C]3.376365[/C][C]0.3864[/C][C]0.700999[/C][C]0.350499[/C][/ROW]
[ROW][C]M4[/C][C]4.23621794871794[/C][C]3.373288[/C][C]1.2558[/C][C]0.215665[/C][C]0.107833[/C][/ROW]
[ROW][C]M5[/C][C]-0.972296037296041[/C][C]3.372802[/C][C]-0.2883[/C][C]0.77446[/C][C]0.38723[/C][/ROW]
[ROW][C]M6[/C][C]5.95918997668996[/C][C]3.374908[/C][C]1.7657[/C][C]0.084225[/C][C]0.042112[/C][/ROW]
[ROW][C]M7[/C][C]-0.629324009324017[/C][C]3.3796[/C][C]-0.1862[/C][C]0.853115[/C][C]0.426557[/C][/ROW]
[ROW][C]M8[/C][C]-0.717837995338005[/C][C]3.386869[/C][C]-0.2119[/C][C]0.833105[/C][C]0.416553[/C][/ROW]
[ROW][C]M9[/C][C]3.77364801864801[/C][C]3.396697[/C][C]1.111[/C][C]0.27248[/C][C]0.13624[/C][/ROW]
[ROW][C]M10[/C][C]1.56513403263402[/C][C]3.409062[/C][C]0.4591[/C][C]0.648365[/C][C]0.324183[/C][/ROW]
[ROW][C]M11[/C][C]1.86522727272727[/C][C]3.384044[/C][C]0.5512[/C][C]0.584235[/C][C]0.292117[/C][/ROW]
[ROW][C]t[/C][C]0.0685139860139864[/C][C]0.093506[/C][C]0.7327[/C][C]0.467529[/C][C]0.233765[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69414&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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)114.0458916083922.96791138.426300
Dummy_1_tijdenscrisis-14.25946969696973.839393-3.7140.0005610.00028
Dummy_2_voorcrisis-0.6430361305361382.802759-0.22940.8195750.409787
M13.701759906759893.3902551.09190.2806960.140348
M21.193245920745913.3820250.35280.7258710.362935
M31.304731934731933.3763650.38640.7009990.350499
M44.236217948717943.3732881.25580.2156650.107833
M5-0.9722960372960413.372802-0.28830.774460.38723
M65.959189976689963.3749081.76570.0842250.042112
M7-0.6293240093240173.3796-0.18620.8531150.426557
M8-0.7178379953380053.386869-0.21190.8331050.416553
M93.773648018648013.3966971.1110.272480.13624
M101.565134032634023.4090620.45910.6483650.324183
M111.865227272727273.3840440.55120.5842350.292117
t0.06851398601398640.0935060.73270.4675290.233765







Multiple Linear Regression - Regression Statistics
Multiple R0.766919546586582
R-squared0.588165590936568
Adjusted R-squared0.460039330339056
F-TEST (value)4.59051554453926
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value4.53898964412058e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.30396995837526
Sum Squared Residuals1265.94437937063

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.766919546586582 \tabularnewline
R-squared & 0.588165590936568 \tabularnewline
Adjusted R-squared & 0.460039330339056 \tabularnewline
F-TEST (value) & 4.59051554453926 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 4.53898964412058e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.30396995837526 \tabularnewline
Sum Squared Residuals & 1265.94437937063 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69414&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.766919546586582[/C][/ROW]
[ROW][C]R-squared[/C][C]0.588165590936568[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.460039330339056[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.59051554453926[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/C][/ROW]
[ROW][C]p-value[/C][C]4.53898964412058e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.30396995837526[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1265.94437937063[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69414&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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.766919546586582
R-squared0.588165590936568
Adjusted R-squared0.460039330339056
F-TEST (value)4.59051554453926
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value4.53898964412058e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.30396995837526
Sum Squared Residuals1265.94437937063







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1120.9117.8161655011663.08383449883446
2119.6115.3761655011664.22383449883448
3125.9115.55616550116510.3438344988345
4116.1118.556165501165-2.4561655011655
5107.5113.416165501165-5.9161655011655
6116.7120.416165501165-3.7161655011655
7112.5113.896165501165-1.39616550116549
8113113.876165501165-0.876165501165494
9126.4118.4361655011657.96383449883452
10114.1116.296165501166-2.19616550116550
11112.5116.664772727273-4.16477272727273
12112.4114.868059440559-2.46805944055944
13113.1118.638333333333-5.53833333333334
14116.3116.1983333333330.101666666666667
15111.7116.378333333333-4.67833333333333
16118.8119.378333333333-0.578333333333339
17116.5114.2383333333332.26166666666666
18125.1121.2383333333333.86166666666667
19113.1114.718333333333-1.61833333333334
20119.6114.6983333333334.90166666666666
21114.4119.258333333333-4.85833333333333
22114117.118333333333-3.11833333333333
23117.8117.4869405594410.313059440559436
24117115.6902272727271.30977272727272
25120.9119.4605011655011.43949883449885
26115117.020501165501-2.02050116550116
27117.3117.2005011655010.099498834498827
28119.4120.200501165501-0.800501165501166
29114.9115.060501165501-0.160501165501166
30125.8122.0605011655013.73949883449884
31117.6115.5405011655012.05949883449883
32117.6115.5205011655012.07949883449883
33114.9120.080501165501-5.18050116550117
34121.9117.9405011655013.95949883449884
35117117.666072261072-0.66607226107226
36106.4115.869358974359-9.46935897435897
37110.5119.639632867133-9.13963286713286
38113.6117.199632867133-3.59963286713287
39114.2117.379632867133-3.17963286713287
40125.4120.3796328671335.02036713286714
41124.6115.2396328671339.36036713286713
42120.2122.239632867133-2.03963286713286
43120.8115.7196328671335.08036713286713
44111.4115.699632867133-4.29963286713286
45124.1120.2596328671333.84036713286713
46120.2118.1196328671332.08036713286714
47125.5118.4882400932407.0117599067599
48116103.07509324009312.9249067599068
49117106.84536713286710.1546328671329
50105.7104.4053671328671.29463286713287
51102104.585367132867-2.58536713286713
52106.4107.585367132867-1.18536713286713
5396.9102.445367132867-5.54536713286713
54107.6109.445367132867-1.84536713286713
5598.8102.925367132867-4.12536713286713
56101.1102.905367132867-1.80536713286714
57105.7107.465367132867-1.76536713286713
58104.6105.325367132867-0.725367132867139
59103.2105.693974358974-2.49397435897436
60101.6103.897261072261-2.29726107226108

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 120.9 & 117.816165501166 & 3.08383449883446 \tabularnewline
2 & 119.6 & 115.376165501166 & 4.22383449883448 \tabularnewline
3 & 125.9 & 115.556165501165 & 10.3438344988345 \tabularnewline
4 & 116.1 & 118.556165501165 & -2.4561655011655 \tabularnewline
5 & 107.5 & 113.416165501165 & -5.9161655011655 \tabularnewline
6 & 116.7 & 120.416165501165 & -3.7161655011655 \tabularnewline
7 & 112.5 & 113.896165501165 & -1.39616550116549 \tabularnewline
8 & 113 & 113.876165501165 & -0.876165501165494 \tabularnewline
9 & 126.4 & 118.436165501165 & 7.96383449883452 \tabularnewline
10 & 114.1 & 116.296165501166 & -2.19616550116550 \tabularnewline
11 & 112.5 & 116.664772727273 & -4.16477272727273 \tabularnewline
12 & 112.4 & 114.868059440559 & -2.46805944055944 \tabularnewline
13 & 113.1 & 118.638333333333 & -5.53833333333334 \tabularnewline
14 & 116.3 & 116.198333333333 & 0.101666666666667 \tabularnewline
15 & 111.7 & 116.378333333333 & -4.67833333333333 \tabularnewline
16 & 118.8 & 119.378333333333 & -0.578333333333339 \tabularnewline
17 & 116.5 & 114.238333333333 & 2.26166666666666 \tabularnewline
18 & 125.1 & 121.238333333333 & 3.86166666666667 \tabularnewline
19 & 113.1 & 114.718333333333 & -1.61833333333334 \tabularnewline
20 & 119.6 & 114.698333333333 & 4.90166666666666 \tabularnewline
21 & 114.4 & 119.258333333333 & -4.85833333333333 \tabularnewline
22 & 114 & 117.118333333333 & -3.11833333333333 \tabularnewline
23 & 117.8 & 117.486940559441 & 0.313059440559436 \tabularnewline
24 & 117 & 115.690227272727 & 1.30977272727272 \tabularnewline
25 & 120.9 & 119.460501165501 & 1.43949883449885 \tabularnewline
26 & 115 & 117.020501165501 & -2.02050116550116 \tabularnewline
27 & 117.3 & 117.200501165501 & 0.099498834498827 \tabularnewline
28 & 119.4 & 120.200501165501 & -0.800501165501166 \tabularnewline
29 & 114.9 & 115.060501165501 & -0.160501165501166 \tabularnewline
30 & 125.8 & 122.060501165501 & 3.73949883449884 \tabularnewline
31 & 117.6 & 115.540501165501 & 2.05949883449883 \tabularnewline
32 & 117.6 & 115.520501165501 & 2.07949883449883 \tabularnewline
33 & 114.9 & 120.080501165501 & -5.18050116550117 \tabularnewline
34 & 121.9 & 117.940501165501 & 3.95949883449884 \tabularnewline
35 & 117 & 117.666072261072 & -0.66607226107226 \tabularnewline
36 & 106.4 & 115.869358974359 & -9.46935897435897 \tabularnewline
37 & 110.5 & 119.639632867133 & -9.13963286713286 \tabularnewline
38 & 113.6 & 117.199632867133 & -3.59963286713287 \tabularnewline
39 & 114.2 & 117.379632867133 & -3.17963286713287 \tabularnewline
40 & 125.4 & 120.379632867133 & 5.02036713286714 \tabularnewline
41 & 124.6 & 115.239632867133 & 9.36036713286713 \tabularnewline
42 & 120.2 & 122.239632867133 & -2.03963286713286 \tabularnewline
43 & 120.8 & 115.719632867133 & 5.08036713286713 \tabularnewline
44 & 111.4 & 115.699632867133 & -4.29963286713286 \tabularnewline
45 & 124.1 & 120.259632867133 & 3.84036713286713 \tabularnewline
46 & 120.2 & 118.119632867133 & 2.08036713286714 \tabularnewline
47 & 125.5 & 118.488240093240 & 7.0117599067599 \tabularnewline
48 & 116 & 103.075093240093 & 12.9249067599068 \tabularnewline
49 & 117 & 106.845367132867 & 10.1546328671329 \tabularnewline
50 & 105.7 & 104.405367132867 & 1.29463286713287 \tabularnewline
51 & 102 & 104.585367132867 & -2.58536713286713 \tabularnewline
52 & 106.4 & 107.585367132867 & -1.18536713286713 \tabularnewline
53 & 96.9 & 102.445367132867 & -5.54536713286713 \tabularnewline
54 & 107.6 & 109.445367132867 & -1.84536713286713 \tabularnewline
55 & 98.8 & 102.925367132867 & -4.12536713286713 \tabularnewline
56 & 101.1 & 102.905367132867 & -1.80536713286714 \tabularnewline
57 & 105.7 & 107.465367132867 & -1.76536713286713 \tabularnewline
58 & 104.6 & 105.325367132867 & -0.725367132867139 \tabularnewline
59 & 103.2 & 105.693974358974 & -2.49397435897436 \tabularnewline
60 & 101.6 & 103.897261072261 & -2.29726107226108 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69414&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]120.9[/C][C]117.816165501166[/C][C]3.08383449883446[/C][/ROW]
[ROW][C]2[/C][C]119.6[/C][C]115.376165501166[/C][C]4.22383449883448[/C][/ROW]
[ROW][C]3[/C][C]125.9[/C][C]115.556165501165[/C][C]10.3438344988345[/C][/ROW]
[ROW][C]4[/C][C]116.1[/C][C]118.556165501165[/C][C]-2.4561655011655[/C][/ROW]
[ROW][C]5[/C][C]107.5[/C][C]113.416165501165[/C][C]-5.9161655011655[/C][/ROW]
[ROW][C]6[/C][C]116.7[/C][C]120.416165501165[/C][C]-3.7161655011655[/C][/ROW]
[ROW][C]7[/C][C]112.5[/C][C]113.896165501165[/C][C]-1.39616550116549[/C][/ROW]
[ROW][C]8[/C][C]113[/C][C]113.876165501165[/C][C]-0.876165501165494[/C][/ROW]
[ROW][C]9[/C][C]126.4[/C][C]118.436165501165[/C][C]7.96383449883452[/C][/ROW]
[ROW][C]10[/C][C]114.1[/C][C]116.296165501166[/C][C]-2.19616550116550[/C][/ROW]
[ROW][C]11[/C][C]112.5[/C][C]116.664772727273[/C][C]-4.16477272727273[/C][/ROW]
[ROW][C]12[/C][C]112.4[/C][C]114.868059440559[/C][C]-2.46805944055944[/C][/ROW]
[ROW][C]13[/C][C]113.1[/C][C]118.638333333333[/C][C]-5.53833333333334[/C][/ROW]
[ROW][C]14[/C][C]116.3[/C][C]116.198333333333[/C][C]0.101666666666667[/C][/ROW]
[ROW][C]15[/C][C]111.7[/C][C]116.378333333333[/C][C]-4.67833333333333[/C][/ROW]
[ROW][C]16[/C][C]118.8[/C][C]119.378333333333[/C][C]-0.578333333333339[/C][/ROW]
[ROW][C]17[/C][C]116.5[/C][C]114.238333333333[/C][C]2.26166666666666[/C][/ROW]
[ROW][C]18[/C][C]125.1[/C][C]121.238333333333[/C][C]3.86166666666667[/C][/ROW]
[ROW][C]19[/C][C]113.1[/C][C]114.718333333333[/C][C]-1.61833333333334[/C][/ROW]
[ROW][C]20[/C][C]119.6[/C][C]114.698333333333[/C][C]4.90166666666666[/C][/ROW]
[ROW][C]21[/C][C]114.4[/C][C]119.258333333333[/C][C]-4.85833333333333[/C][/ROW]
[ROW][C]22[/C][C]114[/C][C]117.118333333333[/C][C]-3.11833333333333[/C][/ROW]
[ROW][C]23[/C][C]117.8[/C][C]117.486940559441[/C][C]0.313059440559436[/C][/ROW]
[ROW][C]24[/C][C]117[/C][C]115.690227272727[/C][C]1.30977272727272[/C][/ROW]
[ROW][C]25[/C][C]120.9[/C][C]119.460501165501[/C][C]1.43949883449885[/C][/ROW]
[ROW][C]26[/C][C]115[/C][C]117.020501165501[/C][C]-2.02050116550116[/C][/ROW]
[ROW][C]27[/C][C]117.3[/C][C]117.200501165501[/C][C]0.099498834498827[/C][/ROW]
[ROW][C]28[/C][C]119.4[/C][C]120.200501165501[/C][C]-0.800501165501166[/C][/ROW]
[ROW][C]29[/C][C]114.9[/C][C]115.060501165501[/C][C]-0.160501165501166[/C][/ROW]
[ROW][C]30[/C][C]125.8[/C][C]122.060501165501[/C][C]3.73949883449884[/C][/ROW]
[ROW][C]31[/C][C]117.6[/C][C]115.540501165501[/C][C]2.05949883449883[/C][/ROW]
[ROW][C]32[/C][C]117.6[/C][C]115.520501165501[/C][C]2.07949883449883[/C][/ROW]
[ROW][C]33[/C][C]114.9[/C][C]120.080501165501[/C][C]-5.18050116550117[/C][/ROW]
[ROW][C]34[/C][C]121.9[/C][C]117.940501165501[/C][C]3.95949883449884[/C][/ROW]
[ROW][C]35[/C][C]117[/C][C]117.666072261072[/C][C]-0.66607226107226[/C][/ROW]
[ROW][C]36[/C][C]106.4[/C][C]115.869358974359[/C][C]-9.46935897435897[/C][/ROW]
[ROW][C]37[/C][C]110.5[/C][C]119.639632867133[/C][C]-9.13963286713286[/C][/ROW]
[ROW][C]38[/C][C]113.6[/C][C]117.199632867133[/C][C]-3.59963286713287[/C][/ROW]
[ROW][C]39[/C][C]114.2[/C][C]117.379632867133[/C][C]-3.17963286713287[/C][/ROW]
[ROW][C]40[/C][C]125.4[/C][C]120.379632867133[/C][C]5.02036713286714[/C][/ROW]
[ROW][C]41[/C][C]124.6[/C][C]115.239632867133[/C][C]9.36036713286713[/C][/ROW]
[ROW][C]42[/C][C]120.2[/C][C]122.239632867133[/C][C]-2.03963286713286[/C][/ROW]
[ROW][C]43[/C][C]120.8[/C][C]115.719632867133[/C][C]5.08036713286713[/C][/ROW]
[ROW][C]44[/C][C]111.4[/C][C]115.699632867133[/C][C]-4.29963286713286[/C][/ROW]
[ROW][C]45[/C][C]124.1[/C][C]120.259632867133[/C][C]3.84036713286713[/C][/ROW]
[ROW][C]46[/C][C]120.2[/C][C]118.119632867133[/C][C]2.08036713286714[/C][/ROW]
[ROW][C]47[/C][C]125.5[/C][C]118.488240093240[/C][C]7.0117599067599[/C][/ROW]
[ROW][C]48[/C][C]116[/C][C]103.075093240093[/C][C]12.9249067599068[/C][/ROW]
[ROW][C]49[/C][C]117[/C][C]106.845367132867[/C][C]10.1546328671329[/C][/ROW]
[ROW][C]50[/C][C]105.7[/C][C]104.405367132867[/C][C]1.29463286713287[/C][/ROW]
[ROW][C]51[/C][C]102[/C][C]104.585367132867[/C][C]-2.58536713286713[/C][/ROW]
[ROW][C]52[/C][C]106.4[/C][C]107.585367132867[/C][C]-1.18536713286713[/C][/ROW]
[ROW][C]53[/C][C]96.9[/C][C]102.445367132867[/C][C]-5.54536713286713[/C][/ROW]
[ROW][C]54[/C][C]107.6[/C][C]109.445367132867[/C][C]-1.84536713286713[/C][/ROW]
[ROW][C]55[/C][C]98.8[/C][C]102.925367132867[/C][C]-4.12536713286713[/C][/ROW]
[ROW][C]56[/C][C]101.1[/C][C]102.905367132867[/C][C]-1.80536713286714[/C][/ROW]
[ROW][C]57[/C][C]105.7[/C][C]107.465367132867[/C][C]-1.76536713286713[/C][/ROW]
[ROW][C]58[/C][C]104.6[/C][C]105.325367132867[/C][C]-0.725367132867139[/C][/ROW]
[ROW][C]59[/C][C]103.2[/C][C]105.693974358974[/C][C]-2.49397435897436[/C][/ROW]
[ROW][C]60[/C][C]101.6[/C][C]103.897261072261[/C][C]-2.29726107226108[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69414&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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
1120.9117.8161655011663.08383449883446
2119.6115.3761655011664.22383449883448
3125.9115.55616550116510.3438344988345
4116.1118.556165501165-2.4561655011655
5107.5113.416165501165-5.9161655011655
6116.7120.416165501165-3.7161655011655
7112.5113.896165501165-1.39616550116549
8113113.876165501165-0.876165501165494
9126.4118.4361655011657.96383449883452
10114.1116.296165501166-2.19616550116550
11112.5116.664772727273-4.16477272727273
12112.4114.868059440559-2.46805944055944
13113.1118.638333333333-5.53833333333334
14116.3116.1983333333330.101666666666667
15111.7116.378333333333-4.67833333333333
16118.8119.378333333333-0.578333333333339
17116.5114.2383333333332.26166666666666
18125.1121.2383333333333.86166666666667
19113.1114.718333333333-1.61833333333334
20119.6114.6983333333334.90166666666666
21114.4119.258333333333-4.85833333333333
22114117.118333333333-3.11833333333333
23117.8117.4869405594410.313059440559436
24117115.6902272727271.30977272727272
25120.9119.4605011655011.43949883449885
26115117.020501165501-2.02050116550116
27117.3117.2005011655010.099498834498827
28119.4120.200501165501-0.800501165501166
29114.9115.060501165501-0.160501165501166
30125.8122.0605011655013.73949883449884
31117.6115.5405011655012.05949883449883
32117.6115.5205011655012.07949883449883
33114.9120.080501165501-5.18050116550117
34121.9117.9405011655013.95949883449884
35117117.666072261072-0.66607226107226
36106.4115.869358974359-9.46935897435897
37110.5119.639632867133-9.13963286713286
38113.6117.199632867133-3.59963286713287
39114.2117.379632867133-3.17963286713287
40125.4120.3796328671335.02036713286714
41124.6115.2396328671339.36036713286713
42120.2122.239632867133-2.03963286713286
43120.8115.7196328671335.08036713286713
44111.4115.699632867133-4.29963286713286
45124.1120.2596328671333.84036713286713
46120.2118.1196328671332.08036713286714
47125.5118.4882400932407.0117599067599
48116103.07509324009312.9249067599068
49117106.84536713286710.1546328671329
50105.7104.4053671328671.29463286713287
51102104.585367132867-2.58536713286713
52106.4107.585367132867-1.18536713286713
5396.9102.445367132867-5.54536713286713
54107.6109.445367132867-1.84536713286713
5598.8102.925367132867-4.12536713286713
56101.1102.905367132867-1.80536713286714
57105.7107.465367132867-1.76536713286713
58104.6105.325367132867-0.725367132867139
59103.2105.693974358974-2.49397435897436
60101.6103.897261072261-2.29726107226108







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.8949696615945630.2100606768108740.105030338405437
190.805878860511460.3882422789770780.194121139488539
200.7636357364086020.4727285271827970.236364263591398
210.7821030873587430.4357938252825140.217896912641257
220.6891832176441210.6216335647117570.310816782355879
230.6142766632336580.7714466735326830.385723336766342
240.5220667244682440.9558665510635120.477933275531756
250.4244041517031320.8488083034062640.575595848296868
260.3337628291278850.6675256582557690.666237170872116
270.2443570216840490.4887140433680980.755642978315951
280.1753182354260630.3506364708521260.824681764573937
290.1227589384408500.2455178768817010.87724106155915
300.08980194992376920.1796038998475380.91019805007623
310.05896758228271870.1179351645654370.941032417717281
320.03735097048549060.07470194097098130.96264902951451
330.03308467157652570.06616934315305150.966915328423474
340.02460993025783400.04921986051566790.975390069742166
350.01412921105199840.02825842210399670.985870788948002
360.0821350441424160.1642700882848320.917864955857584
370.4786648006879710.9573296013759430.521335199312029
380.5453203119016810.9093593761966370.454679688098319
390.5026001196861170.9947997606277660.497399880313883
400.4526687380908290.9053374761816580.547331261909171
410.687444369925920.6251112601481590.312555630074080
420.5941101596478310.8117796807043380.405889840352169

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.894969661594563 & 0.210060676810874 & 0.105030338405437 \tabularnewline
19 & 0.80587886051146 & 0.388242278977078 & 0.194121139488539 \tabularnewline
20 & 0.763635736408602 & 0.472728527182797 & 0.236364263591398 \tabularnewline
21 & 0.782103087358743 & 0.435793825282514 & 0.217896912641257 \tabularnewline
22 & 0.689183217644121 & 0.621633564711757 & 0.310816782355879 \tabularnewline
23 & 0.614276663233658 & 0.771446673532683 & 0.385723336766342 \tabularnewline
24 & 0.522066724468244 & 0.955866551063512 & 0.477933275531756 \tabularnewline
25 & 0.424404151703132 & 0.848808303406264 & 0.575595848296868 \tabularnewline
26 & 0.333762829127885 & 0.667525658255769 & 0.666237170872116 \tabularnewline
27 & 0.244357021684049 & 0.488714043368098 & 0.755642978315951 \tabularnewline
28 & 0.175318235426063 & 0.350636470852126 & 0.824681764573937 \tabularnewline
29 & 0.122758938440850 & 0.245517876881701 & 0.87724106155915 \tabularnewline
30 & 0.0898019499237692 & 0.179603899847538 & 0.91019805007623 \tabularnewline
31 & 0.0589675822827187 & 0.117935164565437 & 0.941032417717281 \tabularnewline
32 & 0.0373509704854906 & 0.0747019409709813 & 0.96264902951451 \tabularnewline
33 & 0.0330846715765257 & 0.0661693431530515 & 0.966915328423474 \tabularnewline
34 & 0.0246099302578340 & 0.0492198605156679 & 0.975390069742166 \tabularnewline
35 & 0.0141292110519984 & 0.0282584221039967 & 0.985870788948002 \tabularnewline
36 & 0.082135044142416 & 0.164270088284832 & 0.917864955857584 \tabularnewline
37 & 0.478664800687971 & 0.957329601375943 & 0.521335199312029 \tabularnewline
38 & 0.545320311901681 & 0.909359376196637 & 0.454679688098319 \tabularnewline
39 & 0.502600119686117 & 0.994799760627766 & 0.497399880313883 \tabularnewline
40 & 0.452668738090829 & 0.905337476181658 & 0.547331261909171 \tabularnewline
41 & 0.68744436992592 & 0.625111260148159 & 0.312555630074080 \tabularnewline
42 & 0.594110159647831 & 0.811779680704338 & 0.405889840352169 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69414&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]18[/C][C]0.894969661594563[/C][C]0.210060676810874[/C][C]0.105030338405437[/C][/ROW]
[ROW][C]19[/C][C]0.80587886051146[/C][C]0.388242278977078[/C][C]0.194121139488539[/C][/ROW]
[ROW][C]20[/C][C]0.763635736408602[/C][C]0.472728527182797[/C][C]0.236364263591398[/C][/ROW]
[ROW][C]21[/C][C]0.782103087358743[/C][C]0.435793825282514[/C][C]0.217896912641257[/C][/ROW]
[ROW][C]22[/C][C]0.689183217644121[/C][C]0.621633564711757[/C][C]0.310816782355879[/C][/ROW]
[ROW][C]23[/C][C]0.614276663233658[/C][C]0.771446673532683[/C][C]0.385723336766342[/C][/ROW]
[ROW][C]24[/C][C]0.522066724468244[/C][C]0.955866551063512[/C][C]0.477933275531756[/C][/ROW]
[ROW][C]25[/C][C]0.424404151703132[/C][C]0.848808303406264[/C][C]0.575595848296868[/C][/ROW]
[ROW][C]26[/C][C]0.333762829127885[/C][C]0.667525658255769[/C][C]0.666237170872116[/C][/ROW]
[ROW][C]27[/C][C]0.244357021684049[/C][C]0.488714043368098[/C][C]0.755642978315951[/C][/ROW]
[ROW][C]28[/C][C]0.175318235426063[/C][C]0.350636470852126[/C][C]0.824681764573937[/C][/ROW]
[ROW][C]29[/C][C]0.122758938440850[/C][C]0.245517876881701[/C][C]0.87724106155915[/C][/ROW]
[ROW][C]30[/C][C]0.0898019499237692[/C][C]0.179603899847538[/C][C]0.91019805007623[/C][/ROW]
[ROW][C]31[/C][C]0.0589675822827187[/C][C]0.117935164565437[/C][C]0.941032417717281[/C][/ROW]
[ROW][C]32[/C][C]0.0373509704854906[/C][C]0.0747019409709813[/C][C]0.96264902951451[/C][/ROW]
[ROW][C]33[/C][C]0.0330846715765257[/C][C]0.0661693431530515[/C][C]0.966915328423474[/C][/ROW]
[ROW][C]34[/C][C]0.0246099302578340[/C][C]0.0492198605156679[/C][C]0.975390069742166[/C][/ROW]
[ROW][C]35[/C][C]0.0141292110519984[/C][C]0.0282584221039967[/C][C]0.985870788948002[/C][/ROW]
[ROW][C]36[/C][C]0.082135044142416[/C][C]0.164270088284832[/C][C]0.917864955857584[/C][/ROW]
[ROW][C]37[/C][C]0.478664800687971[/C][C]0.957329601375943[/C][C]0.521335199312029[/C][/ROW]
[ROW][C]38[/C][C]0.545320311901681[/C][C]0.909359376196637[/C][C]0.454679688098319[/C][/ROW]
[ROW][C]39[/C][C]0.502600119686117[/C][C]0.994799760627766[/C][C]0.497399880313883[/C][/ROW]
[ROW][C]40[/C][C]0.452668738090829[/C][C]0.905337476181658[/C][C]0.547331261909171[/C][/ROW]
[ROW][C]41[/C][C]0.68744436992592[/C][C]0.625111260148159[/C][C]0.312555630074080[/C][/ROW]
[ROW][C]42[/C][C]0.594110159647831[/C][C]0.811779680704338[/C][C]0.405889840352169[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69414&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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
180.8949696615945630.2100606768108740.105030338405437
190.805878860511460.3882422789770780.194121139488539
200.7636357364086020.4727285271827970.236364263591398
210.7821030873587430.4357938252825140.217896912641257
220.6891832176441210.6216335647117570.310816782355879
230.6142766632336580.7714466735326830.385723336766342
240.5220667244682440.9558665510635120.477933275531756
250.4244041517031320.8488083034062640.575595848296868
260.3337628291278850.6675256582557690.666237170872116
270.2443570216840490.4887140433680980.755642978315951
280.1753182354260630.3506364708521260.824681764573937
290.1227589384408500.2455178768817010.87724106155915
300.08980194992376920.1796038998475380.91019805007623
310.05896758228271870.1179351645654370.941032417717281
320.03735097048549060.07470194097098130.96264902951451
330.03308467157652570.06616934315305150.966915328423474
340.02460993025783400.04921986051566790.975390069742166
350.01412921105199840.02825842210399670.985870788948002
360.0821350441424160.1642700882848320.917864955857584
370.4786648006879710.9573296013759430.521335199312029
380.5453203119016810.9093593761966370.454679688098319
390.5026001196861170.9947997606277660.497399880313883
400.4526687380908290.9053374761816580.547331261909171
410.687444369925920.6251112601481590.312555630074080
420.5941101596478310.8117796807043380.405889840352169







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.08NOK
10% type I error level40.16NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69414&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 level00OK
5% type I error level20.08NOK
10% type I error level40.16NOK



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