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 computationWed, 18 Nov 2009 08:54:15 -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/18/t125855975177yt93szqy3p88f.htm/, Retrieved Sun, 05 May 2024 13:18:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57490, Retrieved Sun, 05 May 2024 13:18:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact161
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Multiple regressi...] [2009-11-18 15:54:15] [fe2edc5b0acc9545190e03904e9be55e] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.58	98.2
3.52	98.71
3.45	98.54
3.36	98.2
3.27	96.92
3.21	99.06
3.19	99.65
3.16	99.82
3.12	99.99
3.06	100.33
3.01	99.31
2.98	101.1
2.97	101.1
3.02	100.93
3.07	100.85
3.18	100.93
3.29	99.6
3.43	101.88
3.61	101.81
3.74	102.38
3.87	102.74
3.88	102.82
4.09	101.72
4.19	103.47
4.2	102.98
4.29	102.68
4.37	102.9
4.47	103.03
4.61	101.29
4.65	103.69
4.69	103.68
4.82	104.2
4.86	104.08
4.87	104.16
5.01	103.05
5.03	104.66
5.13	104.46
5.18	104.95
5.21	105.85
5.26	106.23
5.25	104.86
5.2	107.44
5.16	108.23
5.19	108.45
5.39	109.39
5.58	110.15
5.76	109.13
5.89	110.28
5.98	110.17
6.02	109.99
5.62	109.26
4.87	109.11
4.24	107.06
4.02	109.53
3.74	108.92
3.45	109.24
3.34	109.12
3.21	109
3.12	107.23
3.04	109.49




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57490&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
Y[t] = -13.1065644125238 + 0.163823860231794X[t] + 0.542126094040477M1[t] + 0.564658423824252M2[t] + 0.498071355737762M3[t] + 0.378794878533125M4[t] + 0.537377157333334M5[t] + 0.118459313143055M6[t] + 0.0718516204310666M7[t] + 0.00687503074762187M8[t] + 0.0105743611306001M9[t] -0.0227774790022489M10[t] + 0.252466448716831M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -13.1065644125238 +  0.163823860231794X[t] +  0.542126094040477M1[t] +  0.564658423824252M2[t] +  0.498071355737762M3[t] +  0.378794878533125M4[t] +  0.537377157333334M5[t] +  0.118459313143055M6[t] +  0.0718516204310666M7[t] +  0.00687503074762187M8[t] +  0.0105743611306001M9[t] -0.0227774790022489M10[t] +  0.252466448716831M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57490&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -13.1065644125238 +  0.163823860231794X[t] +  0.542126094040477M1[t] +  0.564658423824252M2[t] +  0.498071355737762M3[t] +  0.378794878533125M4[t] +  0.537377157333334M5[t] +  0.118459313143055M6[t] +  0.0718516204310666M7[t] +  0.00687503074762187M8[t] +  0.0105743611306001M9[t] -0.0227774790022489M10[t] +  0.252466448716831M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57490&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57490&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
Y[t] = -13.1065644125238 + 0.163823860231794X[t] + 0.542126094040477M1[t] + 0.564658423824252M2[t] + 0.498071355737762M3[t] + 0.378794878533125M4[t] + 0.537377157333334M5[t] + 0.118459313143055M6[t] + 0.0718516204310666M7[t] + 0.00687503074762187M8[t] + 0.0105743611306001M9[t] -0.0227774790022489M10[t] + 0.252466448716831M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-13.10656441252382.947952-4.4465.3e-052.7e-05
X0.1638238602317940.027665.922900
M10.5421260940404770.5078071.06760.2911620.145581
M20.5646584238242520.5075561.11250.2715790.13579
M30.4980713557377620.5074570.98150.331370.165685
M40.3787948785331250.5073880.74660.4590480.229524
M50.5373771573333340.5145471.04440.3016560.150828
M60.1184593131430550.5050450.23460.8155750.407788
M70.07185162043106660.504750.14240.8874110.443706
M80.006875030747621870.5041160.01360.9891770.494588
M90.01057436113060010.5037950.0210.9833430.491671
M10-0.02277747900224890.50358-0.04520.9641150.482057
M110.2524664487168310.5056060.49930.6198730.309937

\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) & -13.1065644125238 & 2.947952 & -4.446 & 5.3e-05 & 2.7e-05 \tabularnewline
X & 0.163823860231794 & 0.02766 & 5.9229 & 0 & 0 \tabularnewline
M1 & 0.542126094040477 & 0.507807 & 1.0676 & 0.291162 & 0.145581 \tabularnewline
M2 & 0.564658423824252 & 0.507556 & 1.1125 & 0.271579 & 0.13579 \tabularnewline
M3 & 0.498071355737762 & 0.507457 & 0.9815 & 0.33137 & 0.165685 \tabularnewline
M4 & 0.378794878533125 & 0.507388 & 0.7466 & 0.459048 & 0.229524 \tabularnewline
M5 & 0.537377157333334 & 0.514547 & 1.0444 & 0.301656 & 0.150828 \tabularnewline
M6 & 0.118459313143055 & 0.505045 & 0.2346 & 0.815575 & 0.407788 \tabularnewline
M7 & 0.0718516204310666 & 0.50475 & 0.1424 & 0.887411 & 0.443706 \tabularnewline
M8 & 0.00687503074762187 & 0.504116 & 0.0136 & 0.989177 & 0.494588 \tabularnewline
M9 & 0.0105743611306001 & 0.503795 & 0.021 & 0.983343 & 0.491671 \tabularnewline
M10 & -0.0227774790022489 & 0.50358 & -0.0452 & 0.964115 & 0.482057 \tabularnewline
M11 & 0.252466448716831 & 0.505606 & 0.4993 & 0.619873 & 0.309937 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57490&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]-13.1065644125238[/C][C]2.947952[/C][C]-4.446[/C][C]5.3e-05[/C][C]2.7e-05[/C][/ROW]
[ROW][C]X[/C][C]0.163823860231794[/C][C]0.02766[/C][C]5.9229[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.542126094040477[/C][C]0.507807[/C][C]1.0676[/C][C]0.291162[/C][C]0.145581[/C][/ROW]
[ROW][C]M2[/C][C]0.564658423824252[/C][C]0.507556[/C][C]1.1125[/C][C]0.271579[/C][C]0.13579[/C][/ROW]
[ROW][C]M3[/C][C]0.498071355737762[/C][C]0.507457[/C][C]0.9815[/C][C]0.33137[/C][C]0.165685[/C][/ROW]
[ROW][C]M4[/C][C]0.378794878533125[/C][C]0.507388[/C][C]0.7466[/C][C]0.459048[/C][C]0.229524[/C][/ROW]
[ROW][C]M5[/C][C]0.537377157333334[/C][C]0.514547[/C][C]1.0444[/C][C]0.301656[/C][C]0.150828[/C][/ROW]
[ROW][C]M6[/C][C]0.118459313143055[/C][C]0.505045[/C][C]0.2346[/C][C]0.815575[/C][C]0.407788[/C][/ROW]
[ROW][C]M7[/C][C]0.0718516204310666[/C][C]0.50475[/C][C]0.1424[/C][C]0.887411[/C][C]0.443706[/C][/ROW]
[ROW][C]M8[/C][C]0.00687503074762187[/C][C]0.504116[/C][C]0.0136[/C][C]0.989177[/C][C]0.494588[/C][/ROW]
[ROW][C]M9[/C][C]0.0105743611306001[/C][C]0.503795[/C][C]0.021[/C][C]0.983343[/C][C]0.491671[/C][/ROW]
[ROW][C]M10[/C][C]-0.0227774790022489[/C][C]0.50358[/C][C]-0.0452[/C][C]0.964115[/C][C]0.482057[/C][/ROW]
[ROW][C]M11[/C][C]0.252466448716831[/C][C]0.505606[/C][C]0.4993[/C][C]0.619873[/C][C]0.309937[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57490&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57490&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)-13.10656441252382.947952-4.4465.3e-052.7e-05
X0.1638238602317940.027665.922900
M10.5421260940404770.5078071.06760.2911620.145581
M20.5646584238242520.5075561.11250.2715790.13579
M30.4980713557377620.5074570.98150.331370.165685
M40.3787948785331250.5073880.74660.4590480.229524
M50.5373771573333340.5145471.04440.3016560.150828
M60.1184593131430550.5050450.23460.8155750.407788
M70.07185162043106660.504750.14240.8874110.443706
M80.006875030747621870.5041160.01360.9891770.494588
M90.01057436113060010.5037950.0210.9833430.491671
M10-0.02277747900224890.50358-0.04520.9641150.482057
M110.2524664487168310.5056060.49930.6198730.309937







Multiple Linear Regression - Regression Statistics
Multiple R0.660076701238409
R-squared0.435701251517779
Adjusted R-squared0.291624975309553
F-TEST (value)3.02410128151897
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00325924447922588
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.795919341471842
Sum Squared Residuals29.7739171120616

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.660076701238409 \tabularnewline
R-squared & 0.435701251517779 \tabularnewline
Adjusted R-squared & 0.291624975309553 \tabularnewline
F-TEST (value) & 3.02410128151897 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00325924447922588 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.795919341471842 \tabularnewline
Sum Squared Residuals & 29.7739171120616 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57490&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.660076701238409[/C][/ROW]
[ROW][C]R-squared[/C][C]0.435701251517779[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.291624975309553[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.02410128151897[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.00325924447922588[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.795919341471842[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]29.7739171120616[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57490&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57490&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.660076701238409
R-squared0.435701251517779
Adjusted R-squared0.291624975309553
F-TEST (value)3.02410128151897
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00325924447922588
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.795919341471842
Sum Squared Residuals29.7739171120616







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13.583.523064756278850.0569352437211541
23.523.62914725478083-0.109147254780831
33.453.53471013045494-0.0847101304549378
43.363.359733540771490.000266459228508711
53.273.308621278475-0.0386212784750035
63.213.24028649518076-0.0302864951807638
73.193.29033488000553-0.100334880005534
83.163.25320834656149-0.0932083465614925
93.123.28475773318388-0.164757733183876
103.063.30710600552984-0.247106005529838
113.013.41524959581249-0.405249595812488
122.983.45602785691057-0.476027856910568
132.973.99815395095104-1.02815395095104
143.023.99283622449542-0.972836224495416
153.073.91314324759038-0.84314324759038
163.183.80697267920429-0.62697267920429
173.293.74766922389621-0.45766922389621
183.433.70226978103442-0.272269781034422
193.613.64419441810621-0.0341944181062093
203.743.672597428754890.0674025712451143
213.873.735273348821310.134726651178690
223.883.715027417507000.164972582492996
234.093.810065098971110.279934901028889
244.193.844290405659920.34570959434008
254.24.30614280818682-0.106142808186819
264.294.279527979901060.0104720200989442
274.374.248982161065560.121017838934440
284.474.151002785691060.318997214308944
294.614.024531547687940.585468452312056
304.653.998790968053970.651209031946031
314.693.950545036739660.739454963260336
324.823.970756854376750.849243145623248
334.863.954797321531910.905202678468086
344.873.934551390217610.935448609782392
355.014.02795083307940.982049166920603
365.034.039240799335750.990759200664246
375.134.548602121329870.581397878670127
385.184.651408142627230.528591857372772
395.214.732262548749350.477737451250649
405.264.67523913843280.584760861567202
415.254.609382728715450.640617271284552
425.24.61313044392320.586869556076803
435.164.695943600794330.464056399205673
445.194.667008260361880.522991739638123
455.394.824702019362740.565297980637258
465.584.915856313006060.664143686993944
475.765.02399990328870.736000096711295
485.894.959930893838440.930069106161562
495.985.484036363253420.495963636746582
506.025.477080398195470.542919601804531
515.625.290901912139770.32909808786023
524.875.14705185590036-0.277051855900364
534.244.9697952212254-0.729795221225395
544.024.95552231180765-0.935522311807648
553.744.80898206435427-1.06898206435427
563.454.79642910994499-1.34642910994499
573.344.78046957710016-1.44046957710016
583.214.72745887373949-1.51745887373949
593.124.7127345688483-1.59273456884830
603.044.83051004425532-1.79051004425532

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3.58 & 3.52306475627885 & 0.0569352437211541 \tabularnewline
2 & 3.52 & 3.62914725478083 & -0.109147254780831 \tabularnewline
3 & 3.45 & 3.53471013045494 & -0.0847101304549378 \tabularnewline
4 & 3.36 & 3.35973354077149 & 0.000266459228508711 \tabularnewline
5 & 3.27 & 3.308621278475 & -0.0386212784750035 \tabularnewline
6 & 3.21 & 3.24028649518076 & -0.0302864951807638 \tabularnewline
7 & 3.19 & 3.29033488000553 & -0.100334880005534 \tabularnewline
8 & 3.16 & 3.25320834656149 & -0.0932083465614925 \tabularnewline
9 & 3.12 & 3.28475773318388 & -0.164757733183876 \tabularnewline
10 & 3.06 & 3.30710600552984 & -0.247106005529838 \tabularnewline
11 & 3.01 & 3.41524959581249 & -0.405249595812488 \tabularnewline
12 & 2.98 & 3.45602785691057 & -0.476027856910568 \tabularnewline
13 & 2.97 & 3.99815395095104 & -1.02815395095104 \tabularnewline
14 & 3.02 & 3.99283622449542 & -0.972836224495416 \tabularnewline
15 & 3.07 & 3.91314324759038 & -0.84314324759038 \tabularnewline
16 & 3.18 & 3.80697267920429 & -0.62697267920429 \tabularnewline
17 & 3.29 & 3.74766922389621 & -0.45766922389621 \tabularnewline
18 & 3.43 & 3.70226978103442 & -0.272269781034422 \tabularnewline
19 & 3.61 & 3.64419441810621 & -0.0341944181062093 \tabularnewline
20 & 3.74 & 3.67259742875489 & 0.0674025712451143 \tabularnewline
21 & 3.87 & 3.73527334882131 & 0.134726651178690 \tabularnewline
22 & 3.88 & 3.71502741750700 & 0.164972582492996 \tabularnewline
23 & 4.09 & 3.81006509897111 & 0.279934901028889 \tabularnewline
24 & 4.19 & 3.84429040565992 & 0.34570959434008 \tabularnewline
25 & 4.2 & 4.30614280818682 & -0.106142808186819 \tabularnewline
26 & 4.29 & 4.27952797990106 & 0.0104720200989442 \tabularnewline
27 & 4.37 & 4.24898216106556 & 0.121017838934440 \tabularnewline
28 & 4.47 & 4.15100278569106 & 0.318997214308944 \tabularnewline
29 & 4.61 & 4.02453154768794 & 0.585468452312056 \tabularnewline
30 & 4.65 & 3.99879096805397 & 0.651209031946031 \tabularnewline
31 & 4.69 & 3.95054503673966 & 0.739454963260336 \tabularnewline
32 & 4.82 & 3.97075685437675 & 0.849243145623248 \tabularnewline
33 & 4.86 & 3.95479732153191 & 0.905202678468086 \tabularnewline
34 & 4.87 & 3.93455139021761 & 0.935448609782392 \tabularnewline
35 & 5.01 & 4.0279508330794 & 0.982049166920603 \tabularnewline
36 & 5.03 & 4.03924079933575 & 0.990759200664246 \tabularnewline
37 & 5.13 & 4.54860212132987 & 0.581397878670127 \tabularnewline
38 & 5.18 & 4.65140814262723 & 0.528591857372772 \tabularnewline
39 & 5.21 & 4.73226254874935 & 0.477737451250649 \tabularnewline
40 & 5.26 & 4.6752391384328 & 0.584760861567202 \tabularnewline
41 & 5.25 & 4.60938272871545 & 0.640617271284552 \tabularnewline
42 & 5.2 & 4.6131304439232 & 0.586869556076803 \tabularnewline
43 & 5.16 & 4.69594360079433 & 0.464056399205673 \tabularnewline
44 & 5.19 & 4.66700826036188 & 0.522991739638123 \tabularnewline
45 & 5.39 & 4.82470201936274 & 0.565297980637258 \tabularnewline
46 & 5.58 & 4.91585631300606 & 0.664143686993944 \tabularnewline
47 & 5.76 & 5.0239999032887 & 0.736000096711295 \tabularnewline
48 & 5.89 & 4.95993089383844 & 0.930069106161562 \tabularnewline
49 & 5.98 & 5.48403636325342 & 0.495963636746582 \tabularnewline
50 & 6.02 & 5.47708039819547 & 0.542919601804531 \tabularnewline
51 & 5.62 & 5.29090191213977 & 0.32909808786023 \tabularnewline
52 & 4.87 & 5.14705185590036 & -0.277051855900364 \tabularnewline
53 & 4.24 & 4.9697952212254 & -0.729795221225395 \tabularnewline
54 & 4.02 & 4.95552231180765 & -0.935522311807648 \tabularnewline
55 & 3.74 & 4.80898206435427 & -1.06898206435427 \tabularnewline
56 & 3.45 & 4.79642910994499 & -1.34642910994499 \tabularnewline
57 & 3.34 & 4.78046957710016 & -1.44046957710016 \tabularnewline
58 & 3.21 & 4.72745887373949 & -1.51745887373949 \tabularnewline
59 & 3.12 & 4.7127345688483 & -1.59273456884830 \tabularnewline
60 & 3.04 & 4.83051004425532 & -1.79051004425532 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57490&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]3.58[/C][C]3.52306475627885[/C][C]0.0569352437211541[/C][/ROW]
[ROW][C]2[/C][C]3.52[/C][C]3.62914725478083[/C][C]-0.109147254780831[/C][/ROW]
[ROW][C]3[/C][C]3.45[/C][C]3.53471013045494[/C][C]-0.0847101304549378[/C][/ROW]
[ROW][C]4[/C][C]3.36[/C][C]3.35973354077149[/C][C]0.000266459228508711[/C][/ROW]
[ROW][C]5[/C][C]3.27[/C][C]3.308621278475[/C][C]-0.0386212784750035[/C][/ROW]
[ROW][C]6[/C][C]3.21[/C][C]3.24028649518076[/C][C]-0.0302864951807638[/C][/ROW]
[ROW][C]7[/C][C]3.19[/C][C]3.29033488000553[/C][C]-0.100334880005534[/C][/ROW]
[ROW][C]8[/C][C]3.16[/C][C]3.25320834656149[/C][C]-0.0932083465614925[/C][/ROW]
[ROW][C]9[/C][C]3.12[/C][C]3.28475773318388[/C][C]-0.164757733183876[/C][/ROW]
[ROW][C]10[/C][C]3.06[/C][C]3.30710600552984[/C][C]-0.247106005529838[/C][/ROW]
[ROW][C]11[/C][C]3.01[/C][C]3.41524959581249[/C][C]-0.405249595812488[/C][/ROW]
[ROW][C]12[/C][C]2.98[/C][C]3.45602785691057[/C][C]-0.476027856910568[/C][/ROW]
[ROW][C]13[/C][C]2.97[/C][C]3.99815395095104[/C][C]-1.02815395095104[/C][/ROW]
[ROW][C]14[/C][C]3.02[/C][C]3.99283622449542[/C][C]-0.972836224495416[/C][/ROW]
[ROW][C]15[/C][C]3.07[/C][C]3.91314324759038[/C][C]-0.84314324759038[/C][/ROW]
[ROW][C]16[/C][C]3.18[/C][C]3.80697267920429[/C][C]-0.62697267920429[/C][/ROW]
[ROW][C]17[/C][C]3.29[/C][C]3.74766922389621[/C][C]-0.45766922389621[/C][/ROW]
[ROW][C]18[/C][C]3.43[/C][C]3.70226978103442[/C][C]-0.272269781034422[/C][/ROW]
[ROW][C]19[/C][C]3.61[/C][C]3.64419441810621[/C][C]-0.0341944181062093[/C][/ROW]
[ROW][C]20[/C][C]3.74[/C][C]3.67259742875489[/C][C]0.0674025712451143[/C][/ROW]
[ROW][C]21[/C][C]3.87[/C][C]3.73527334882131[/C][C]0.134726651178690[/C][/ROW]
[ROW][C]22[/C][C]3.88[/C][C]3.71502741750700[/C][C]0.164972582492996[/C][/ROW]
[ROW][C]23[/C][C]4.09[/C][C]3.81006509897111[/C][C]0.279934901028889[/C][/ROW]
[ROW][C]24[/C][C]4.19[/C][C]3.84429040565992[/C][C]0.34570959434008[/C][/ROW]
[ROW][C]25[/C][C]4.2[/C][C]4.30614280818682[/C][C]-0.106142808186819[/C][/ROW]
[ROW][C]26[/C][C]4.29[/C][C]4.27952797990106[/C][C]0.0104720200989442[/C][/ROW]
[ROW][C]27[/C][C]4.37[/C][C]4.24898216106556[/C][C]0.121017838934440[/C][/ROW]
[ROW][C]28[/C][C]4.47[/C][C]4.15100278569106[/C][C]0.318997214308944[/C][/ROW]
[ROW][C]29[/C][C]4.61[/C][C]4.02453154768794[/C][C]0.585468452312056[/C][/ROW]
[ROW][C]30[/C][C]4.65[/C][C]3.99879096805397[/C][C]0.651209031946031[/C][/ROW]
[ROW][C]31[/C][C]4.69[/C][C]3.95054503673966[/C][C]0.739454963260336[/C][/ROW]
[ROW][C]32[/C][C]4.82[/C][C]3.97075685437675[/C][C]0.849243145623248[/C][/ROW]
[ROW][C]33[/C][C]4.86[/C][C]3.95479732153191[/C][C]0.905202678468086[/C][/ROW]
[ROW][C]34[/C][C]4.87[/C][C]3.93455139021761[/C][C]0.935448609782392[/C][/ROW]
[ROW][C]35[/C][C]5.01[/C][C]4.0279508330794[/C][C]0.982049166920603[/C][/ROW]
[ROW][C]36[/C][C]5.03[/C][C]4.03924079933575[/C][C]0.990759200664246[/C][/ROW]
[ROW][C]37[/C][C]5.13[/C][C]4.54860212132987[/C][C]0.581397878670127[/C][/ROW]
[ROW][C]38[/C][C]5.18[/C][C]4.65140814262723[/C][C]0.528591857372772[/C][/ROW]
[ROW][C]39[/C][C]5.21[/C][C]4.73226254874935[/C][C]0.477737451250649[/C][/ROW]
[ROW][C]40[/C][C]5.26[/C][C]4.6752391384328[/C][C]0.584760861567202[/C][/ROW]
[ROW][C]41[/C][C]5.25[/C][C]4.60938272871545[/C][C]0.640617271284552[/C][/ROW]
[ROW][C]42[/C][C]5.2[/C][C]4.6131304439232[/C][C]0.586869556076803[/C][/ROW]
[ROW][C]43[/C][C]5.16[/C][C]4.69594360079433[/C][C]0.464056399205673[/C][/ROW]
[ROW][C]44[/C][C]5.19[/C][C]4.66700826036188[/C][C]0.522991739638123[/C][/ROW]
[ROW][C]45[/C][C]5.39[/C][C]4.82470201936274[/C][C]0.565297980637258[/C][/ROW]
[ROW][C]46[/C][C]5.58[/C][C]4.91585631300606[/C][C]0.664143686993944[/C][/ROW]
[ROW][C]47[/C][C]5.76[/C][C]5.0239999032887[/C][C]0.736000096711295[/C][/ROW]
[ROW][C]48[/C][C]5.89[/C][C]4.95993089383844[/C][C]0.930069106161562[/C][/ROW]
[ROW][C]49[/C][C]5.98[/C][C]5.48403636325342[/C][C]0.495963636746582[/C][/ROW]
[ROW][C]50[/C][C]6.02[/C][C]5.47708039819547[/C][C]0.542919601804531[/C][/ROW]
[ROW][C]51[/C][C]5.62[/C][C]5.29090191213977[/C][C]0.32909808786023[/C][/ROW]
[ROW][C]52[/C][C]4.87[/C][C]5.14705185590036[/C][C]-0.277051855900364[/C][/ROW]
[ROW][C]53[/C][C]4.24[/C][C]4.9697952212254[/C][C]-0.729795221225395[/C][/ROW]
[ROW][C]54[/C][C]4.02[/C][C]4.95552231180765[/C][C]-0.935522311807648[/C][/ROW]
[ROW][C]55[/C][C]3.74[/C][C]4.80898206435427[/C][C]-1.06898206435427[/C][/ROW]
[ROW][C]56[/C][C]3.45[/C][C]4.79642910994499[/C][C]-1.34642910994499[/C][/ROW]
[ROW][C]57[/C][C]3.34[/C][C]4.78046957710016[/C][C]-1.44046957710016[/C][/ROW]
[ROW][C]58[/C][C]3.21[/C][C]4.72745887373949[/C][C]-1.51745887373949[/C][/ROW]
[ROW][C]59[/C][C]3.12[/C][C]4.7127345688483[/C][C]-1.59273456884830[/C][/ROW]
[ROW][C]60[/C][C]3.04[/C][C]4.83051004425532[/C][C]-1.79051004425532[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57490&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57490&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
13.583.523064756278850.0569352437211541
23.523.62914725478083-0.109147254780831
33.453.53471013045494-0.0847101304549378
43.363.359733540771490.000266459228508711
53.273.308621278475-0.0386212784750035
63.213.24028649518076-0.0302864951807638
73.193.29033488000553-0.100334880005534
83.163.25320834656149-0.0932083465614925
93.123.28475773318388-0.164757733183876
103.063.30710600552984-0.247106005529838
113.013.41524959581249-0.405249595812488
122.983.45602785691057-0.476027856910568
132.973.99815395095104-1.02815395095104
143.023.99283622449542-0.972836224495416
153.073.91314324759038-0.84314324759038
163.183.80697267920429-0.62697267920429
173.293.74766922389621-0.45766922389621
183.433.70226978103442-0.272269781034422
193.613.64419441810621-0.0341944181062093
203.743.672597428754890.0674025712451143
213.873.735273348821310.134726651178690
223.883.715027417507000.164972582492996
234.093.810065098971110.279934901028889
244.193.844290405659920.34570959434008
254.24.30614280818682-0.106142808186819
264.294.279527979901060.0104720200989442
274.374.248982161065560.121017838934440
284.474.151002785691060.318997214308944
294.614.024531547687940.585468452312056
304.653.998790968053970.651209031946031
314.693.950545036739660.739454963260336
324.823.970756854376750.849243145623248
334.863.954797321531910.905202678468086
344.873.934551390217610.935448609782392
355.014.02795083307940.982049166920603
365.034.039240799335750.990759200664246
375.134.548602121329870.581397878670127
385.184.651408142627230.528591857372772
395.214.732262548749350.477737451250649
405.264.67523913843280.584760861567202
415.254.609382728715450.640617271284552
425.24.61313044392320.586869556076803
435.164.695943600794330.464056399205673
445.194.667008260361880.522991739638123
455.394.824702019362740.565297980637258
465.584.915856313006060.664143686993944
475.765.02399990328870.736000096711295
485.894.959930893838440.930069106161562
495.985.484036363253420.495963636746582
506.025.477080398195470.542919601804531
515.625.290901912139770.32909808786023
524.875.14705185590036-0.277051855900364
534.244.9697952212254-0.729795221225395
544.024.95552231180765-0.935522311807648
553.744.80898206435427-1.06898206435427
563.454.79642910994499-1.34642910994499
573.344.78046957710016-1.44046957710016
583.214.72745887373949-1.51745887373949
593.124.7127345688483-1.59273456884830
603.044.83051004425532-1.79051004425532







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.005275276952554710.01055055390510940.994724723047445
170.004201860018810210.008403720037620430.99579813998119
180.004047622358448290.008095244716896590.995952377641552
190.003635679120701820.007271358241403630.996364320879298
200.003834406696062140.007668813392124290.996165593303938
210.004171266133807830.008342532267615660.995828733866192
220.003816704534906270.007633409069812540.996183295465094
230.004781245510186150.00956249102037230.995218754489814
240.005700760311918470.01140152062383690.994299239688082
250.00420269712194440.00840539424388880.995797302878056
260.003578869153219050.00715773830643810.99642113084678
270.002750937967639550.00550187593527910.99724906203236
280.001806724566275120.003613449132550250.998193275433725
290.001350839760952590.002701679521905170.998649160239047
300.0008381479437718240.001676295887543650.999161852056228
310.0004925262101178920.0009850524202357830.999507473789882
320.0002939727592552530.0005879455185105060.999706027240745
330.0001874835856042950.0003749671712085910.999812516414396
340.0001256261533327330.0002512523066654670.999874373846667
359.59782993896246e-050.0001919565987792490.99990402170061
368.44377364319742e-050.0001688754728639480.999915562263568
373.48081442941482e-056.96162885882965e-050.999965191855706
381.22393270553689e-052.44786541107377e-050.999987760672945
393.72699226052745e-067.45398452105491e-060.99999627300774
401.32168603237017e-062.64337206474034e-060.999998678313968
411.03351387754281e-062.06702775508561e-060.999998966486122
428.39229974004462e-061.67845994800892e-050.99999160770026
435.1533859281466e-050.0001030677185629320.999948466140719
440.01085948921306770.02171897842613530.989140510786932

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00527527695255471 & 0.0105505539051094 & 0.994724723047445 \tabularnewline
17 & 0.00420186001881021 & 0.00840372003762043 & 0.99579813998119 \tabularnewline
18 & 0.00404762235844829 & 0.00809524471689659 & 0.995952377641552 \tabularnewline
19 & 0.00363567912070182 & 0.00727135824140363 & 0.996364320879298 \tabularnewline
20 & 0.00383440669606214 & 0.00766881339212429 & 0.996165593303938 \tabularnewline
21 & 0.00417126613380783 & 0.00834253226761566 & 0.995828733866192 \tabularnewline
22 & 0.00381670453490627 & 0.00763340906981254 & 0.996183295465094 \tabularnewline
23 & 0.00478124551018615 & 0.0095624910203723 & 0.995218754489814 \tabularnewline
24 & 0.00570076031191847 & 0.0114015206238369 & 0.994299239688082 \tabularnewline
25 & 0.0042026971219444 & 0.0084053942438888 & 0.995797302878056 \tabularnewline
26 & 0.00357886915321905 & 0.0071577383064381 & 0.99642113084678 \tabularnewline
27 & 0.00275093796763955 & 0.0055018759352791 & 0.99724906203236 \tabularnewline
28 & 0.00180672456627512 & 0.00361344913255025 & 0.998193275433725 \tabularnewline
29 & 0.00135083976095259 & 0.00270167952190517 & 0.998649160239047 \tabularnewline
30 & 0.000838147943771824 & 0.00167629588754365 & 0.999161852056228 \tabularnewline
31 & 0.000492526210117892 & 0.000985052420235783 & 0.999507473789882 \tabularnewline
32 & 0.000293972759255253 & 0.000587945518510506 & 0.999706027240745 \tabularnewline
33 & 0.000187483585604295 & 0.000374967171208591 & 0.999812516414396 \tabularnewline
34 & 0.000125626153332733 & 0.000251252306665467 & 0.999874373846667 \tabularnewline
35 & 9.59782993896246e-05 & 0.000191956598779249 & 0.99990402170061 \tabularnewline
36 & 8.44377364319742e-05 & 0.000168875472863948 & 0.999915562263568 \tabularnewline
37 & 3.48081442941482e-05 & 6.96162885882965e-05 & 0.999965191855706 \tabularnewline
38 & 1.22393270553689e-05 & 2.44786541107377e-05 & 0.999987760672945 \tabularnewline
39 & 3.72699226052745e-06 & 7.45398452105491e-06 & 0.99999627300774 \tabularnewline
40 & 1.32168603237017e-06 & 2.64337206474034e-06 & 0.999998678313968 \tabularnewline
41 & 1.03351387754281e-06 & 2.06702775508561e-06 & 0.999998966486122 \tabularnewline
42 & 8.39229974004462e-06 & 1.67845994800892e-05 & 0.99999160770026 \tabularnewline
43 & 5.1533859281466e-05 & 0.000103067718562932 & 0.999948466140719 \tabularnewline
44 & 0.0108594892130677 & 0.0217189784261353 & 0.989140510786932 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57490&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.00527527695255471[/C][C]0.0105505539051094[/C][C]0.994724723047445[/C][/ROW]
[ROW][C]17[/C][C]0.00420186001881021[/C][C]0.00840372003762043[/C][C]0.99579813998119[/C][/ROW]
[ROW][C]18[/C][C]0.00404762235844829[/C][C]0.00809524471689659[/C][C]0.995952377641552[/C][/ROW]
[ROW][C]19[/C][C]0.00363567912070182[/C][C]0.00727135824140363[/C][C]0.996364320879298[/C][/ROW]
[ROW][C]20[/C][C]0.00383440669606214[/C][C]0.00766881339212429[/C][C]0.996165593303938[/C][/ROW]
[ROW][C]21[/C][C]0.00417126613380783[/C][C]0.00834253226761566[/C][C]0.995828733866192[/C][/ROW]
[ROW][C]22[/C][C]0.00381670453490627[/C][C]0.00763340906981254[/C][C]0.996183295465094[/C][/ROW]
[ROW][C]23[/C][C]0.00478124551018615[/C][C]0.0095624910203723[/C][C]0.995218754489814[/C][/ROW]
[ROW][C]24[/C][C]0.00570076031191847[/C][C]0.0114015206238369[/C][C]0.994299239688082[/C][/ROW]
[ROW][C]25[/C][C]0.0042026971219444[/C][C]0.0084053942438888[/C][C]0.995797302878056[/C][/ROW]
[ROW][C]26[/C][C]0.00357886915321905[/C][C]0.0071577383064381[/C][C]0.99642113084678[/C][/ROW]
[ROW][C]27[/C][C]0.00275093796763955[/C][C]0.0055018759352791[/C][C]0.99724906203236[/C][/ROW]
[ROW][C]28[/C][C]0.00180672456627512[/C][C]0.00361344913255025[/C][C]0.998193275433725[/C][/ROW]
[ROW][C]29[/C][C]0.00135083976095259[/C][C]0.00270167952190517[/C][C]0.998649160239047[/C][/ROW]
[ROW][C]30[/C][C]0.000838147943771824[/C][C]0.00167629588754365[/C][C]0.999161852056228[/C][/ROW]
[ROW][C]31[/C][C]0.000492526210117892[/C][C]0.000985052420235783[/C][C]0.999507473789882[/C][/ROW]
[ROW][C]32[/C][C]0.000293972759255253[/C][C]0.000587945518510506[/C][C]0.999706027240745[/C][/ROW]
[ROW][C]33[/C][C]0.000187483585604295[/C][C]0.000374967171208591[/C][C]0.999812516414396[/C][/ROW]
[ROW][C]34[/C][C]0.000125626153332733[/C][C]0.000251252306665467[/C][C]0.999874373846667[/C][/ROW]
[ROW][C]35[/C][C]9.59782993896246e-05[/C][C]0.000191956598779249[/C][C]0.99990402170061[/C][/ROW]
[ROW][C]36[/C][C]8.44377364319742e-05[/C][C]0.000168875472863948[/C][C]0.999915562263568[/C][/ROW]
[ROW][C]37[/C][C]3.48081442941482e-05[/C][C]6.96162885882965e-05[/C][C]0.999965191855706[/C][/ROW]
[ROW][C]38[/C][C]1.22393270553689e-05[/C][C]2.44786541107377e-05[/C][C]0.999987760672945[/C][/ROW]
[ROW][C]39[/C][C]3.72699226052745e-06[/C][C]7.45398452105491e-06[/C][C]0.99999627300774[/C][/ROW]
[ROW][C]40[/C][C]1.32168603237017e-06[/C][C]2.64337206474034e-06[/C][C]0.999998678313968[/C][/ROW]
[ROW][C]41[/C][C]1.03351387754281e-06[/C][C]2.06702775508561e-06[/C][C]0.999998966486122[/C][/ROW]
[ROW][C]42[/C][C]8.39229974004462e-06[/C][C]1.67845994800892e-05[/C][C]0.99999160770026[/C][/ROW]
[ROW][C]43[/C][C]5.1533859281466e-05[/C][C]0.000103067718562932[/C][C]0.999948466140719[/C][/ROW]
[ROW][C]44[/C][C]0.0108594892130677[/C][C]0.0217189784261353[/C][C]0.989140510786932[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57490&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57490&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.005275276952554710.01055055390510940.994724723047445
170.004201860018810210.008403720037620430.99579813998119
180.004047622358448290.008095244716896590.995952377641552
190.003635679120701820.007271358241403630.996364320879298
200.003834406696062140.007668813392124290.996165593303938
210.004171266133807830.008342532267615660.995828733866192
220.003816704534906270.007633409069812540.996183295465094
230.004781245510186150.00956249102037230.995218754489814
240.005700760311918470.01140152062383690.994299239688082
250.00420269712194440.00840539424388880.995797302878056
260.003578869153219050.00715773830643810.99642113084678
270.002750937967639550.00550187593527910.99724906203236
280.001806724566275120.003613449132550250.998193275433725
290.001350839760952590.002701679521905170.998649160239047
300.0008381479437718240.001676295887543650.999161852056228
310.0004925262101178920.0009850524202357830.999507473789882
320.0002939727592552530.0005879455185105060.999706027240745
330.0001874835856042950.0003749671712085910.999812516414396
340.0001256261533327330.0002512523066654670.999874373846667
359.59782993896246e-050.0001919565987792490.99990402170061
368.44377364319742e-050.0001688754728639480.999915562263568
373.48081442941482e-056.96162885882965e-050.999965191855706
381.22393270553689e-052.44786541107377e-050.999987760672945
393.72699226052745e-067.45398452105491e-060.99999627300774
401.32168603237017e-062.64337206474034e-060.999998678313968
411.03351387754281e-062.06702775508561e-060.999998966486122
428.39229974004462e-061.67845994800892e-050.99999160770026
435.1533859281466e-050.0001030677185629320.999948466140719
440.01085948921306770.02171897842613530.989140510786932







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 26 & 0.896551724137931 & NOK \tabularnewline
5% type I error level & 29 & 1 & NOK \tabularnewline
10% type I error level & 29 & 1 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57490&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]26[/C][C]0.896551724137931[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]29[/C][C]1[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]29[/C][C]1[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57490&T=6

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



Parameters (Session):
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')
}