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 computationThu, 19 Nov 2009 09:44: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/Nov/19/t1258650357osnxjjx07glrov4.htm/, Retrieved Sat, 20 Apr 2024 08:10:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57833, Retrieved Sat, 20 Apr 2024 08:10:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact152
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [Model 2, rekening...] [2009-11-19 16:44:31] [154177ed6b2613a730375f7d341441cf] [Current]
-    D        [Multiple Regression] [Model 2, rekening...] [2009-12-16 13:53:56] [075a06058fde559dd021d126a2b15a40]
Feedback Forum

Post a new message
Dataseries X:
96.8	9.3
114.1	9.3
110.3	8.7
103.9	8.2
101.6	8.3
94.6	8.5
95.9	8.6
104.7	8.5
102.8	8.2
98.1	8.1
113.9	7.9
80.9	8.6
95.7	8.7
113.2	8.7
105.9	8.5
108.8	8.4
102.3	8.5
99	8.7
100.7	8.7
115.5	8.6
100.7	8.5
109.9	8.3
114.6	8
85.4	8.2
100.5	8.1
114.8	8.1
116.5	8
112.9	7.9
102	7.9
106	8
105.3	8
118.8	7.9
106.1	8
109.3	7.7
117.2	7.2
92.5	7.5
104.2	7.3
112.5	7
122.4	7
113.3	7
100	7.2
110.7	7.3
112.8	7.1
109.8	6.8
117.3	6.4
109.1	6.1
115.9	6.5
96	7.7
99.8	7.9
116.8	7.5
115.7	6.9
99.4	6.6
94.3	6.9
91	7.7
93.2	8
103.1	8
94.1	7.7
91.8	7.3
102.7	7.4
82.6	8.1
89.1	8.3




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=57833&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=57833&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57833&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
tip[t] = + 109.456443765851 -2.74020495833550wrk[t] + 10.8792505563894M1[t] + 27.0740204958336M2[t] + 26.1319590083329M3[t] + 19.0839180166658M4[t] + 11.8475467108328M5[t] + 12.8348040991667M6[t] + 14.2644122975001M7[t] + 22.7355877024999M8[t] + 16.0075467108328M9[t] + 14.7350934216655M10[t] + 23.681072925832M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
tip[t] =  +  109.456443765851 -2.74020495833550wrk[t] +  10.8792505563894M1[t] +  27.0740204958336M2[t] +  26.1319590083329M3[t] +  19.0839180166658M4[t] +  11.8475467108328M5[t] +  12.8348040991667M6[t] +  14.2644122975001M7[t] +  22.7355877024999M8[t] +  16.0075467108328M9[t] +  14.7350934216655M10[t] +  23.681072925832M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57833&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]tip[t] =  +  109.456443765851 -2.74020495833550wrk[t] +  10.8792505563894M1[t] +  27.0740204958336M2[t] +  26.1319590083329M3[t] +  19.0839180166658M4[t] +  11.8475467108328M5[t] +  12.8348040991667M6[t] +  14.2644122975001M7[t] +  22.7355877024999M8[t] +  16.0075467108328M9[t] +  14.7350934216655M10[t] +  23.681072925832M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57833&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57833&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
tip[t] = + 109.456443765851 -2.74020495833550wrk[t] + 10.8792505563894M1[t] + 27.0740204958336M2[t] + 26.1319590083329M3[t] + 19.0839180166658M4[t] + 11.8475467108328M5[t] + 12.8348040991667M6[t] + 14.2644122975001M7[t] + 22.7355877024999M8[t] + 16.0075467108328M9[t] + 14.7350934216655M10[t] + 23.681072925832M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)109.45644376585110.20041210.730600
wrk-2.740204958335501.223801-2.23910.029820.01491
M110.87925055638943.7733312.88320.0058750.002938
M227.07402049583363.9303896.888400
M326.13195900833293.9361016.63900
M419.08391801666583.9588654.82061.5e-057e-06
M511.84754671083283.9413483.0060.0042020.002101
M612.83480409916673.9285593.26710.0020110.001005
M714.26441229750013.9291693.63040.0006860.000343
M822.73558770249993.9291695.78641e-060
M916.00754671083283.9413484.06140.0001799e-05
M1014.73509342166553.9796933.70260.000550.000275
M1123.6810729258324.0010865.918700

\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) & 109.456443765851 & 10.200412 & 10.7306 & 0 & 0 \tabularnewline
wrk & -2.74020495833550 & 1.223801 & -2.2391 & 0.02982 & 0.01491 \tabularnewline
M1 & 10.8792505563894 & 3.773331 & 2.8832 & 0.005875 & 0.002938 \tabularnewline
M2 & 27.0740204958336 & 3.930389 & 6.8884 & 0 & 0 \tabularnewline
M3 & 26.1319590083329 & 3.936101 & 6.639 & 0 & 0 \tabularnewline
M4 & 19.0839180166658 & 3.958865 & 4.8206 & 1.5e-05 & 7e-06 \tabularnewline
M5 & 11.8475467108328 & 3.941348 & 3.006 & 0.004202 & 0.002101 \tabularnewline
M6 & 12.8348040991667 & 3.928559 & 3.2671 & 0.002011 & 0.001005 \tabularnewline
M7 & 14.2644122975001 & 3.929169 & 3.6304 & 0.000686 & 0.000343 \tabularnewline
M8 & 22.7355877024999 & 3.929169 & 5.7864 & 1e-06 & 0 \tabularnewline
M9 & 16.0075467108328 & 3.941348 & 4.0614 & 0.000179 & 9e-05 \tabularnewline
M10 & 14.7350934216655 & 3.979693 & 3.7026 & 0.00055 & 0.000275 \tabularnewline
M11 & 23.681072925832 & 4.001086 & 5.9187 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57833&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]109.456443765851[/C][C]10.200412[/C][C]10.7306[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]wrk[/C][C]-2.74020495833550[/C][C]1.223801[/C][C]-2.2391[/C][C]0.02982[/C][C]0.01491[/C][/ROW]
[ROW][C]M1[/C][C]10.8792505563894[/C][C]3.773331[/C][C]2.8832[/C][C]0.005875[/C][C]0.002938[/C][/ROW]
[ROW][C]M2[/C][C]27.0740204958336[/C][C]3.930389[/C][C]6.8884[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]26.1319590083329[/C][C]3.936101[/C][C]6.639[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]19.0839180166658[/C][C]3.958865[/C][C]4.8206[/C][C]1.5e-05[/C][C]7e-06[/C][/ROW]
[ROW][C]M5[/C][C]11.8475467108328[/C][C]3.941348[/C][C]3.006[/C][C]0.004202[/C][C]0.002101[/C][/ROW]
[ROW][C]M6[/C][C]12.8348040991667[/C][C]3.928559[/C][C]3.2671[/C][C]0.002011[/C][C]0.001005[/C][/ROW]
[ROW][C]M7[/C][C]14.2644122975001[/C][C]3.929169[/C][C]3.6304[/C][C]0.000686[/C][C]0.000343[/C][/ROW]
[ROW][C]M8[/C][C]22.7355877024999[/C][C]3.929169[/C][C]5.7864[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]16.0075467108328[/C][C]3.941348[/C][C]4.0614[/C][C]0.000179[/C][C]9e-05[/C][/ROW]
[ROW][C]M10[/C][C]14.7350934216655[/C][C]3.979693[/C][C]3.7026[/C][C]0.00055[/C][C]0.000275[/C][/ROW]
[ROW][C]M11[/C][C]23.681072925832[/C][C]4.001086[/C][C]5.9187[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57833&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57833&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)109.45644376585110.20041210.730600
wrk-2.740204958335501.223801-2.23910.029820.01491
M110.87925055638943.7733312.88320.0058750.002938
M227.07402049583363.9303896.888400
M326.13195900833293.9361016.63900
M419.08391801666583.9588654.82061.5e-057e-06
M511.84754671083283.9413483.0060.0042020.002101
M612.83480409916673.9285593.26710.0020110.001005
M714.26441229750013.9291693.63040.0006860.000343
M822.73558770249993.9291695.78641e-060
M916.00754671083283.9413484.06140.0001799e-05
M1014.73509342166553.9796933.70260.000550.000275
M1123.6810729258324.0010865.918700







Multiple Linear Regression - Regression Statistics
Multiple R0.815364744298947
R-squared0.664819666245688
Adjusted R-squared0.58102458280711
F-TEST (value)7.93387438695019
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value6.91560221310894e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.21147729965435
Sum Squared Residuals1851.95761171782

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.815364744298947 \tabularnewline
R-squared & 0.664819666245688 \tabularnewline
Adjusted R-squared & 0.58102458280711 \tabularnewline
F-TEST (value) & 7.93387438695019 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 6.91560221310894e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.21147729965435 \tabularnewline
Sum Squared Residuals & 1851.95761171782 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57833&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.815364744298947[/C][/ROW]
[ROW][C]R-squared[/C][C]0.664819666245688[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.58102458280711[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]7.93387438695019[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]6.91560221310894e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.21147729965435[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1851.95761171782[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57833&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57833&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.815364744298947
R-squared0.664819666245688
Adjusted R-squared0.58102458280711
F-TEST (value)7.93387438695019
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value6.91560221310894e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.21147729965435
Sum Squared Residuals1851.95761171782







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
196.894.85178820972021.94821179027979
2114.1111.0465581491643.05344185083592
3110.3111.748619636665-1.44861963666477
4103.9106.070681124165-2.17068112416541
5101.698.56028932249883.03971067750115
694.698.9995057191657-4.39950571916569
795.9100.155093421666-4.25509342166553
8104.7108.900289322499-4.20028932249882
9102.8102.994309818332-0.194309818332392
1098.1101.995877024999-3.8958770249987
11113.9111.4898975208322.41010247916776
1280.985.8906811241654-4.99068112416542
1395.796.4959111847212-0.79591118472123
14113.2112.6906811241650.509318875834587
15105.9112.296660628332-6.39666062833186
16108.8105.5226401324983.27735986750169
17102.398.01224833083174.28775166916827
189998.45146472749860.54853527250143
19100.799.8810729258320.81892707416801
20115.5108.6262688266656.87373117333472
21100.7102.172248330832-1.47224833083172
22109.9101.4478360333328.45216396666842
23114.6111.2158770249993.38412297500129
2485.486.9867631074996-1.58676310749961
25100.598.14003415972252.35996584027746
26114.8114.3348040991670.465195900833286
27116.5113.6667631075002.83323689250039
28112.9106.8927426116666.00725738833395
2910299.6563713058332.34362869416697
30106100.3696081983335.63039180166659
31105.3101.7992163966673.50078360333316
32118.8110.5444122975008.25558770249987
33106.1103.5423508099992.55764919000052
34109.3103.0919590083336.2080409916671
35117.2113.4080409916673.79195900833289
3692.588.90490657833453.59509342166554
37104.2100.3321981263913.86780187360906
38112.5117.349029553336-4.84902955333577
39122.4116.4069680658355.9930319341649
40113.3109.3589270741683.94107292583199
41100101.574514776668-1.57451477666788
42110.7102.2877516691688.41224833083174
43112.8104.2654008591698.53459914083121
44109.8113.558637751669-3.75863775166919
45117.3107.9266787433369.37332125666372
46109.1107.4762869416701.62371305833029
47115.9115.3261844625020.573815537498058
489688.35686558666747.64313441333264
4999.898.68807515138961.11192484861036
50116.8115.9789270741680.821072925831983
51115.7116.680988561669-0.980988561668662
5299.4110.455009057502-11.0550090575022
5394.3102.396576264169-8.09657626416853
5491101.191669685834-10.1916696858341
5593.2101.799216396667-8.59921639666684
56103.1110.270391801667-7.17039180166658
5794.1104.364412297500-10.2644122975001
5891.8104.188040991667-12.3880409916671
59102.7112.86-10.16
6082.687.2607836033332-4.66078360333317
6189.197.5919931680554-8.49199316805544

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 96.8 & 94.8517882097202 & 1.94821179027979 \tabularnewline
2 & 114.1 & 111.046558149164 & 3.05344185083592 \tabularnewline
3 & 110.3 & 111.748619636665 & -1.44861963666477 \tabularnewline
4 & 103.9 & 106.070681124165 & -2.17068112416541 \tabularnewline
5 & 101.6 & 98.5602893224988 & 3.03971067750115 \tabularnewline
6 & 94.6 & 98.9995057191657 & -4.39950571916569 \tabularnewline
7 & 95.9 & 100.155093421666 & -4.25509342166553 \tabularnewline
8 & 104.7 & 108.900289322499 & -4.20028932249882 \tabularnewline
9 & 102.8 & 102.994309818332 & -0.194309818332392 \tabularnewline
10 & 98.1 & 101.995877024999 & -3.8958770249987 \tabularnewline
11 & 113.9 & 111.489897520832 & 2.41010247916776 \tabularnewline
12 & 80.9 & 85.8906811241654 & -4.99068112416542 \tabularnewline
13 & 95.7 & 96.4959111847212 & -0.79591118472123 \tabularnewline
14 & 113.2 & 112.690681124165 & 0.509318875834587 \tabularnewline
15 & 105.9 & 112.296660628332 & -6.39666062833186 \tabularnewline
16 & 108.8 & 105.522640132498 & 3.27735986750169 \tabularnewline
17 & 102.3 & 98.0122483308317 & 4.28775166916827 \tabularnewline
18 & 99 & 98.4514647274986 & 0.54853527250143 \tabularnewline
19 & 100.7 & 99.881072925832 & 0.81892707416801 \tabularnewline
20 & 115.5 & 108.626268826665 & 6.87373117333472 \tabularnewline
21 & 100.7 & 102.172248330832 & -1.47224833083172 \tabularnewline
22 & 109.9 & 101.447836033332 & 8.45216396666842 \tabularnewline
23 & 114.6 & 111.215877024999 & 3.38412297500129 \tabularnewline
24 & 85.4 & 86.9867631074996 & -1.58676310749961 \tabularnewline
25 & 100.5 & 98.1400341597225 & 2.35996584027746 \tabularnewline
26 & 114.8 & 114.334804099167 & 0.465195900833286 \tabularnewline
27 & 116.5 & 113.666763107500 & 2.83323689250039 \tabularnewline
28 & 112.9 & 106.892742611666 & 6.00725738833395 \tabularnewline
29 & 102 & 99.656371305833 & 2.34362869416697 \tabularnewline
30 & 106 & 100.369608198333 & 5.63039180166659 \tabularnewline
31 & 105.3 & 101.799216396667 & 3.50078360333316 \tabularnewline
32 & 118.8 & 110.544412297500 & 8.25558770249987 \tabularnewline
33 & 106.1 & 103.542350809999 & 2.55764919000052 \tabularnewline
34 & 109.3 & 103.091959008333 & 6.2080409916671 \tabularnewline
35 & 117.2 & 113.408040991667 & 3.79195900833289 \tabularnewline
36 & 92.5 & 88.9049065783345 & 3.59509342166554 \tabularnewline
37 & 104.2 & 100.332198126391 & 3.86780187360906 \tabularnewline
38 & 112.5 & 117.349029553336 & -4.84902955333577 \tabularnewline
39 & 122.4 & 116.406968065835 & 5.9930319341649 \tabularnewline
40 & 113.3 & 109.358927074168 & 3.94107292583199 \tabularnewline
41 & 100 & 101.574514776668 & -1.57451477666788 \tabularnewline
42 & 110.7 & 102.287751669168 & 8.41224833083174 \tabularnewline
43 & 112.8 & 104.265400859169 & 8.53459914083121 \tabularnewline
44 & 109.8 & 113.558637751669 & -3.75863775166919 \tabularnewline
45 & 117.3 & 107.926678743336 & 9.37332125666372 \tabularnewline
46 & 109.1 & 107.476286941670 & 1.62371305833029 \tabularnewline
47 & 115.9 & 115.326184462502 & 0.573815537498058 \tabularnewline
48 & 96 & 88.3568655866674 & 7.64313441333264 \tabularnewline
49 & 99.8 & 98.6880751513896 & 1.11192484861036 \tabularnewline
50 & 116.8 & 115.978927074168 & 0.821072925831983 \tabularnewline
51 & 115.7 & 116.680988561669 & -0.980988561668662 \tabularnewline
52 & 99.4 & 110.455009057502 & -11.0550090575022 \tabularnewline
53 & 94.3 & 102.396576264169 & -8.09657626416853 \tabularnewline
54 & 91 & 101.191669685834 & -10.1916696858341 \tabularnewline
55 & 93.2 & 101.799216396667 & -8.59921639666684 \tabularnewline
56 & 103.1 & 110.270391801667 & -7.17039180166658 \tabularnewline
57 & 94.1 & 104.364412297500 & -10.2644122975001 \tabularnewline
58 & 91.8 & 104.188040991667 & -12.3880409916671 \tabularnewline
59 & 102.7 & 112.86 & -10.16 \tabularnewline
60 & 82.6 & 87.2607836033332 & -4.66078360333317 \tabularnewline
61 & 89.1 & 97.5919931680554 & -8.49199316805544 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57833&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]96.8[/C][C]94.8517882097202[/C][C]1.94821179027979[/C][/ROW]
[ROW][C]2[/C][C]114.1[/C][C]111.046558149164[/C][C]3.05344185083592[/C][/ROW]
[ROW][C]3[/C][C]110.3[/C][C]111.748619636665[/C][C]-1.44861963666477[/C][/ROW]
[ROW][C]4[/C][C]103.9[/C][C]106.070681124165[/C][C]-2.17068112416541[/C][/ROW]
[ROW][C]5[/C][C]101.6[/C][C]98.5602893224988[/C][C]3.03971067750115[/C][/ROW]
[ROW][C]6[/C][C]94.6[/C][C]98.9995057191657[/C][C]-4.39950571916569[/C][/ROW]
[ROW][C]7[/C][C]95.9[/C][C]100.155093421666[/C][C]-4.25509342166553[/C][/ROW]
[ROW][C]8[/C][C]104.7[/C][C]108.900289322499[/C][C]-4.20028932249882[/C][/ROW]
[ROW][C]9[/C][C]102.8[/C][C]102.994309818332[/C][C]-0.194309818332392[/C][/ROW]
[ROW][C]10[/C][C]98.1[/C][C]101.995877024999[/C][C]-3.8958770249987[/C][/ROW]
[ROW][C]11[/C][C]113.9[/C][C]111.489897520832[/C][C]2.41010247916776[/C][/ROW]
[ROW][C]12[/C][C]80.9[/C][C]85.8906811241654[/C][C]-4.99068112416542[/C][/ROW]
[ROW][C]13[/C][C]95.7[/C][C]96.4959111847212[/C][C]-0.79591118472123[/C][/ROW]
[ROW][C]14[/C][C]113.2[/C][C]112.690681124165[/C][C]0.509318875834587[/C][/ROW]
[ROW][C]15[/C][C]105.9[/C][C]112.296660628332[/C][C]-6.39666062833186[/C][/ROW]
[ROW][C]16[/C][C]108.8[/C][C]105.522640132498[/C][C]3.27735986750169[/C][/ROW]
[ROW][C]17[/C][C]102.3[/C][C]98.0122483308317[/C][C]4.28775166916827[/C][/ROW]
[ROW][C]18[/C][C]99[/C][C]98.4514647274986[/C][C]0.54853527250143[/C][/ROW]
[ROW][C]19[/C][C]100.7[/C][C]99.881072925832[/C][C]0.81892707416801[/C][/ROW]
[ROW][C]20[/C][C]115.5[/C][C]108.626268826665[/C][C]6.87373117333472[/C][/ROW]
[ROW][C]21[/C][C]100.7[/C][C]102.172248330832[/C][C]-1.47224833083172[/C][/ROW]
[ROW][C]22[/C][C]109.9[/C][C]101.447836033332[/C][C]8.45216396666842[/C][/ROW]
[ROW][C]23[/C][C]114.6[/C][C]111.215877024999[/C][C]3.38412297500129[/C][/ROW]
[ROW][C]24[/C][C]85.4[/C][C]86.9867631074996[/C][C]-1.58676310749961[/C][/ROW]
[ROW][C]25[/C][C]100.5[/C][C]98.1400341597225[/C][C]2.35996584027746[/C][/ROW]
[ROW][C]26[/C][C]114.8[/C][C]114.334804099167[/C][C]0.465195900833286[/C][/ROW]
[ROW][C]27[/C][C]116.5[/C][C]113.666763107500[/C][C]2.83323689250039[/C][/ROW]
[ROW][C]28[/C][C]112.9[/C][C]106.892742611666[/C][C]6.00725738833395[/C][/ROW]
[ROW][C]29[/C][C]102[/C][C]99.656371305833[/C][C]2.34362869416697[/C][/ROW]
[ROW][C]30[/C][C]106[/C][C]100.369608198333[/C][C]5.63039180166659[/C][/ROW]
[ROW][C]31[/C][C]105.3[/C][C]101.799216396667[/C][C]3.50078360333316[/C][/ROW]
[ROW][C]32[/C][C]118.8[/C][C]110.544412297500[/C][C]8.25558770249987[/C][/ROW]
[ROW][C]33[/C][C]106.1[/C][C]103.542350809999[/C][C]2.55764919000052[/C][/ROW]
[ROW][C]34[/C][C]109.3[/C][C]103.091959008333[/C][C]6.2080409916671[/C][/ROW]
[ROW][C]35[/C][C]117.2[/C][C]113.408040991667[/C][C]3.79195900833289[/C][/ROW]
[ROW][C]36[/C][C]92.5[/C][C]88.9049065783345[/C][C]3.59509342166554[/C][/ROW]
[ROW][C]37[/C][C]104.2[/C][C]100.332198126391[/C][C]3.86780187360906[/C][/ROW]
[ROW][C]38[/C][C]112.5[/C][C]117.349029553336[/C][C]-4.84902955333577[/C][/ROW]
[ROW][C]39[/C][C]122.4[/C][C]116.406968065835[/C][C]5.9930319341649[/C][/ROW]
[ROW][C]40[/C][C]113.3[/C][C]109.358927074168[/C][C]3.94107292583199[/C][/ROW]
[ROW][C]41[/C][C]100[/C][C]101.574514776668[/C][C]-1.57451477666788[/C][/ROW]
[ROW][C]42[/C][C]110.7[/C][C]102.287751669168[/C][C]8.41224833083174[/C][/ROW]
[ROW][C]43[/C][C]112.8[/C][C]104.265400859169[/C][C]8.53459914083121[/C][/ROW]
[ROW][C]44[/C][C]109.8[/C][C]113.558637751669[/C][C]-3.75863775166919[/C][/ROW]
[ROW][C]45[/C][C]117.3[/C][C]107.926678743336[/C][C]9.37332125666372[/C][/ROW]
[ROW][C]46[/C][C]109.1[/C][C]107.476286941670[/C][C]1.62371305833029[/C][/ROW]
[ROW][C]47[/C][C]115.9[/C][C]115.326184462502[/C][C]0.573815537498058[/C][/ROW]
[ROW][C]48[/C][C]96[/C][C]88.3568655866674[/C][C]7.64313441333264[/C][/ROW]
[ROW][C]49[/C][C]99.8[/C][C]98.6880751513896[/C][C]1.11192484861036[/C][/ROW]
[ROW][C]50[/C][C]116.8[/C][C]115.978927074168[/C][C]0.821072925831983[/C][/ROW]
[ROW][C]51[/C][C]115.7[/C][C]116.680988561669[/C][C]-0.980988561668662[/C][/ROW]
[ROW][C]52[/C][C]99.4[/C][C]110.455009057502[/C][C]-11.0550090575022[/C][/ROW]
[ROW][C]53[/C][C]94.3[/C][C]102.396576264169[/C][C]-8.09657626416853[/C][/ROW]
[ROW][C]54[/C][C]91[/C][C]101.191669685834[/C][C]-10.1916696858341[/C][/ROW]
[ROW][C]55[/C][C]93.2[/C][C]101.799216396667[/C][C]-8.59921639666684[/C][/ROW]
[ROW][C]56[/C][C]103.1[/C][C]110.270391801667[/C][C]-7.17039180166658[/C][/ROW]
[ROW][C]57[/C][C]94.1[/C][C]104.364412297500[/C][C]-10.2644122975001[/C][/ROW]
[ROW][C]58[/C][C]91.8[/C][C]104.188040991667[/C][C]-12.3880409916671[/C][/ROW]
[ROW][C]59[/C][C]102.7[/C][C]112.86[/C][C]-10.16[/C][/ROW]
[ROW][C]60[/C][C]82.6[/C][C]87.2607836033332[/C][C]-4.66078360333317[/C][/ROW]
[ROW][C]61[/C][C]89.1[/C][C]97.5919931680554[/C][C]-8.49199316805544[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57833&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57833&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
196.894.85178820972021.94821179027979
2114.1111.0465581491643.05344185083592
3110.3111.748619636665-1.44861963666477
4103.9106.070681124165-2.17068112416541
5101.698.56028932249883.03971067750115
694.698.9995057191657-4.39950571916569
795.9100.155093421666-4.25509342166553
8104.7108.900289322499-4.20028932249882
9102.8102.994309818332-0.194309818332392
1098.1101.995877024999-3.8958770249987
11113.9111.4898975208322.41010247916776
1280.985.8906811241654-4.99068112416542
1395.796.4959111847212-0.79591118472123
14113.2112.6906811241650.509318875834587
15105.9112.296660628332-6.39666062833186
16108.8105.5226401324983.27735986750169
17102.398.01224833083174.28775166916827
189998.45146472749860.54853527250143
19100.799.8810729258320.81892707416801
20115.5108.6262688266656.87373117333472
21100.7102.172248330832-1.47224833083172
22109.9101.4478360333328.45216396666842
23114.6111.2158770249993.38412297500129
2485.486.9867631074996-1.58676310749961
25100.598.14003415972252.35996584027746
26114.8114.3348040991670.465195900833286
27116.5113.6667631075002.83323689250039
28112.9106.8927426116666.00725738833395
2910299.6563713058332.34362869416697
30106100.3696081983335.63039180166659
31105.3101.7992163966673.50078360333316
32118.8110.5444122975008.25558770249987
33106.1103.5423508099992.55764919000052
34109.3103.0919590083336.2080409916671
35117.2113.4080409916673.79195900833289
3692.588.90490657833453.59509342166554
37104.2100.3321981263913.86780187360906
38112.5117.349029553336-4.84902955333577
39122.4116.4069680658355.9930319341649
40113.3109.3589270741683.94107292583199
41100101.574514776668-1.57451477666788
42110.7102.2877516691688.41224833083174
43112.8104.2654008591698.53459914083121
44109.8113.558637751669-3.75863775166919
45117.3107.9266787433369.37332125666372
46109.1107.4762869416701.62371305833029
47115.9115.3261844625020.573815537498058
489688.35686558666747.64313441333264
4999.898.68807515138961.11192484861036
50116.8115.9789270741680.821072925831983
51115.7116.680988561669-0.980988561668662
5299.4110.455009057502-11.0550090575022
5394.3102.396576264169-8.09657626416853
5491101.191669685834-10.1916696858341
5593.2101.799216396667-8.59921639666684
56103.1110.270391801667-7.17039180166658
5794.1104.364412297500-10.2644122975001
5891.8104.188040991667-12.3880409916671
59102.7112.86-10.16
6082.687.2607836033332-4.66078360333317
6189.197.5919931680554-8.49199316805544







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04738541223563630.09477082447127270.952614587764364
170.01284951729909780.02569903459819570.987150482700902
180.00642610390508690.01285220781017380.993573896094913
190.004119541873177930.008239083746355870.995880458126822
200.02271088401914340.04542176803828670.977289115980857
210.01208277281630870.02416554563261740.987917227183691
220.02997988970506320.05995977941012650.970020110294937
230.01532725258912350.03065450517824690.984672747410877
240.01277550040359640.02555100080719290.987224499596404
250.01088300789586880.02176601579173760.989116992104131
260.005268606936123230.01053721387224650.994731393063877
270.00580251160567780.01160502321135560.994197488394322
280.005944236973390620.01188847394678120.99405576302661
290.003779479337507350.00755895867501470.996220520662493
300.00441885136783750.0088377027356750.995581148632163
310.002877123210628430.005754246421256850.997122876789372
320.005110495870392510.01022099174078500.994889504129608
330.003678270476770080.007356540953540160.99632172952323
340.01318457016374720.02636914032749450.986815429836253
350.01440299655848890.02880599311697780.985597003441511
360.009126131678210090.01825226335642020.99087386832179
370.004741722946913290.009483445893826580.995258277053087
380.01271860935925200.02543721871850400.987281390640748
390.01217270724904380.02434541449808750.987827292750956
400.07393816840514460.1478763368102890.926061831594855
410.1169277017031080.2338554034062160.883072298296892
420.3187289454744070.6374578909488150.681271054525592
430.3239886784678380.6479773569356760.676011321532162
440.754643166666610.4907136666667790.245356833333389
450.6149147660835750.7701704678328510.385085233916426

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0473854122356363 & 0.0947708244712727 & 0.952614587764364 \tabularnewline
17 & 0.0128495172990978 & 0.0256990345981957 & 0.987150482700902 \tabularnewline
18 & 0.0064261039050869 & 0.0128522078101738 & 0.993573896094913 \tabularnewline
19 & 0.00411954187317793 & 0.00823908374635587 & 0.995880458126822 \tabularnewline
20 & 0.0227108840191434 & 0.0454217680382867 & 0.977289115980857 \tabularnewline
21 & 0.0120827728163087 & 0.0241655456326174 & 0.987917227183691 \tabularnewline
22 & 0.0299798897050632 & 0.0599597794101265 & 0.970020110294937 \tabularnewline
23 & 0.0153272525891235 & 0.0306545051782469 & 0.984672747410877 \tabularnewline
24 & 0.0127755004035964 & 0.0255510008071929 & 0.987224499596404 \tabularnewline
25 & 0.0108830078958688 & 0.0217660157917376 & 0.989116992104131 \tabularnewline
26 & 0.00526860693612323 & 0.0105372138722465 & 0.994731393063877 \tabularnewline
27 & 0.0058025116056778 & 0.0116050232113556 & 0.994197488394322 \tabularnewline
28 & 0.00594423697339062 & 0.0118884739467812 & 0.99405576302661 \tabularnewline
29 & 0.00377947933750735 & 0.0075589586750147 & 0.996220520662493 \tabularnewline
30 & 0.0044188513678375 & 0.008837702735675 & 0.995581148632163 \tabularnewline
31 & 0.00287712321062843 & 0.00575424642125685 & 0.997122876789372 \tabularnewline
32 & 0.00511049587039251 & 0.0102209917407850 & 0.994889504129608 \tabularnewline
33 & 0.00367827047677008 & 0.00735654095354016 & 0.99632172952323 \tabularnewline
34 & 0.0131845701637472 & 0.0263691403274945 & 0.986815429836253 \tabularnewline
35 & 0.0144029965584889 & 0.0288059931169778 & 0.985597003441511 \tabularnewline
36 & 0.00912613167821009 & 0.0182522633564202 & 0.99087386832179 \tabularnewline
37 & 0.00474172294691329 & 0.00948344589382658 & 0.995258277053087 \tabularnewline
38 & 0.0127186093592520 & 0.0254372187185040 & 0.987281390640748 \tabularnewline
39 & 0.0121727072490438 & 0.0243454144980875 & 0.987827292750956 \tabularnewline
40 & 0.0739381684051446 & 0.147876336810289 & 0.926061831594855 \tabularnewline
41 & 0.116927701703108 & 0.233855403406216 & 0.883072298296892 \tabularnewline
42 & 0.318728945474407 & 0.637457890948815 & 0.681271054525592 \tabularnewline
43 & 0.323988678467838 & 0.647977356935676 & 0.676011321532162 \tabularnewline
44 & 0.75464316666661 & 0.490713666666779 & 0.245356833333389 \tabularnewline
45 & 0.614914766083575 & 0.770170467832851 & 0.385085233916426 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57833&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.0473854122356363[/C][C]0.0947708244712727[/C][C]0.952614587764364[/C][/ROW]
[ROW][C]17[/C][C]0.0128495172990978[/C][C]0.0256990345981957[/C][C]0.987150482700902[/C][/ROW]
[ROW][C]18[/C][C]0.0064261039050869[/C][C]0.0128522078101738[/C][C]0.993573896094913[/C][/ROW]
[ROW][C]19[/C][C]0.00411954187317793[/C][C]0.00823908374635587[/C][C]0.995880458126822[/C][/ROW]
[ROW][C]20[/C][C]0.0227108840191434[/C][C]0.0454217680382867[/C][C]0.977289115980857[/C][/ROW]
[ROW][C]21[/C][C]0.0120827728163087[/C][C]0.0241655456326174[/C][C]0.987917227183691[/C][/ROW]
[ROW][C]22[/C][C]0.0299798897050632[/C][C]0.0599597794101265[/C][C]0.970020110294937[/C][/ROW]
[ROW][C]23[/C][C]0.0153272525891235[/C][C]0.0306545051782469[/C][C]0.984672747410877[/C][/ROW]
[ROW][C]24[/C][C]0.0127755004035964[/C][C]0.0255510008071929[/C][C]0.987224499596404[/C][/ROW]
[ROW][C]25[/C][C]0.0108830078958688[/C][C]0.0217660157917376[/C][C]0.989116992104131[/C][/ROW]
[ROW][C]26[/C][C]0.00526860693612323[/C][C]0.0105372138722465[/C][C]0.994731393063877[/C][/ROW]
[ROW][C]27[/C][C]0.0058025116056778[/C][C]0.0116050232113556[/C][C]0.994197488394322[/C][/ROW]
[ROW][C]28[/C][C]0.00594423697339062[/C][C]0.0118884739467812[/C][C]0.99405576302661[/C][/ROW]
[ROW][C]29[/C][C]0.00377947933750735[/C][C]0.0075589586750147[/C][C]0.996220520662493[/C][/ROW]
[ROW][C]30[/C][C]0.0044188513678375[/C][C]0.008837702735675[/C][C]0.995581148632163[/C][/ROW]
[ROW][C]31[/C][C]0.00287712321062843[/C][C]0.00575424642125685[/C][C]0.997122876789372[/C][/ROW]
[ROW][C]32[/C][C]0.00511049587039251[/C][C]0.0102209917407850[/C][C]0.994889504129608[/C][/ROW]
[ROW][C]33[/C][C]0.00367827047677008[/C][C]0.00735654095354016[/C][C]0.99632172952323[/C][/ROW]
[ROW][C]34[/C][C]0.0131845701637472[/C][C]0.0263691403274945[/C][C]0.986815429836253[/C][/ROW]
[ROW][C]35[/C][C]0.0144029965584889[/C][C]0.0288059931169778[/C][C]0.985597003441511[/C][/ROW]
[ROW][C]36[/C][C]0.00912613167821009[/C][C]0.0182522633564202[/C][C]0.99087386832179[/C][/ROW]
[ROW][C]37[/C][C]0.00474172294691329[/C][C]0.00948344589382658[/C][C]0.995258277053087[/C][/ROW]
[ROW][C]38[/C][C]0.0127186093592520[/C][C]0.0254372187185040[/C][C]0.987281390640748[/C][/ROW]
[ROW][C]39[/C][C]0.0121727072490438[/C][C]0.0243454144980875[/C][C]0.987827292750956[/C][/ROW]
[ROW][C]40[/C][C]0.0739381684051446[/C][C]0.147876336810289[/C][C]0.926061831594855[/C][/ROW]
[ROW][C]41[/C][C]0.116927701703108[/C][C]0.233855403406216[/C][C]0.883072298296892[/C][/ROW]
[ROW][C]42[/C][C]0.318728945474407[/C][C]0.637457890948815[/C][C]0.681271054525592[/C][/ROW]
[ROW][C]43[/C][C]0.323988678467838[/C][C]0.647977356935676[/C][C]0.676011321532162[/C][/ROW]
[ROW][C]44[/C][C]0.75464316666661[/C][C]0.490713666666779[/C][C]0.245356833333389[/C][/ROW]
[ROW][C]45[/C][C]0.614914766083575[/C][C]0.770170467832851[/C][C]0.385085233916426[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57833&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04738541223563630.09477082447127270.952614587764364
170.01284951729909780.02569903459819570.987150482700902
180.00642610390508690.01285220781017380.993573896094913
190.004119541873177930.008239083746355870.995880458126822
200.02271088401914340.04542176803828670.977289115980857
210.01208277281630870.02416554563261740.987917227183691
220.02997988970506320.05995977941012650.970020110294937
230.01532725258912350.03065450517824690.984672747410877
240.01277550040359640.02555100080719290.987224499596404
250.01088300789586880.02176601579173760.989116992104131
260.005268606936123230.01053721387224650.994731393063877
270.00580251160567780.01160502321135560.994197488394322
280.005944236973390620.01188847394678120.99405576302661
290.003779479337507350.00755895867501470.996220520662493
300.00441885136783750.0088377027356750.995581148632163
310.002877123210628430.005754246421256850.997122876789372
320.005110495870392510.01022099174078500.994889504129608
330.003678270476770080.007356540953540160.99632172952323
340.01318457016374720.02636914032749450.986815429836253
350.01440299655848890.02880599311697780.985597003441511
360.009126131678210090.01825226335642020.99087386832179
370.004741722946913290.009483445893826580.995258277053087
380.01271860935925200.02543721871850400.987281390640748
390.01217270724904380.02434541449808750.987827292750956
400.07393816840514460.1478763368102890.926061831594855
410.1169277017031080.2338554034062160.883072298296892
420.3187289454744070.6374578909488150.681271054525592
430.3239886784678380.6479773569356760.676011321532162
440.754643166666610.4907136666667790.245356833333389
450.6149147660835750.7701704678328510.385085233916426







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

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

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



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