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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact173
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [SHW WS7 - Lineair...] [2009-11-18 14:41:08] [b7e46d23597387652ca7420fdeb9acca] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.6	1.59
8.5	1.26
8.3	1.13
7.8	1.92
7.8	2.61
8	2.26
8.6	2.41
8.9	2.26
8.9	2.03
8.6	2.86
8.3	2.55
8.3	2.27
8.3	2.26
8.4	2.57
8.5	3.07
8.4	2.76
8.6	2.51
8.5	2.87
8.5	3.14
8.5	3.11
8.5	3.16
8.5	2.47
8.5	2.57
8.5	2.89
8.5	2.63
8.5	2.38
8.5	1.69
8.5	1.96
8.6	2.19
8.4	1.87
8.1	1.6
8	1.63
8	1.22
8	1.21
8	1.49
7.9	1.64
7.8	1.66
7.8	1.77
7.9	1.82
8.1	1.78
8	1.28
7.6	1.29
7.3	1.37
7	1.12
6.8	1.51
7	2.24
7.1	2.94
7.2	3.09
7.1	3.46
6.9	3.64
6.7	4.39
6.7	4.15
6.6	5.21
6.9	5.8
7.3	5.91
7.5	5.39
7.3	5.46
7.1	4.72
6.9	3.14
7.1	2.63




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8.98296836521457 -0.0409587337748366X[t] -0.0776609807441892M1[t] -0.087485820924576M2[t] -0.093542457597681M3[t] -0.139681011738336M4[t] -0.0795938383452158M5[t] -0.0872069069017645M6[t] + 0.0255896118794349M7[t] + 0.0680645297493756M8[t] + 0.0170109275557401M9[t] -0.0119947379491530M10[t] -0.0686187279361657M11[t] -0.0300113248845106t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.98296836521457 -0.0409587337748366X[t] -0.0776609807441892M1[t] -0.087485820924576M2[t] -0.093542457597681M3[t] -0.139681011738336M4[t] -0.0795938383452158M5[t] -0.0872069069017645M6[t] +  0.0255896118794349M7[t] +  0.0680645297493756M8[t] +  0.0170109275557401M9[t] -0.0119947379491530M10[t] -0.0686187279361657M11[t] -0.0300113248845106t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57459&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.98296836521457 -0.0409587337748366X[t] -0.0776609807441892M1[t] -0.087485820924576M2[t] -0.093542457597681M3[t] -0.139681011738336M4[t] -0.0795938383452158M5[t] -0.0872069069017645M6[t] +  0.0255896118794349M7[t] +  0.0680645297493756M8[t] +  0.0170109275557401M9[t] -0.0119947379491530M10[t] -0.0686187279361657M11[t] -0.0300113248845106t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57459&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57459&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] = + 8.98296836521457 -0.0409587337748366X[t] -0.0776609807441892M1[t] -0.087485820924576M2[t] -0.093542457597681M3[t] -0.139681011738336M4[t] -0.0795938383452158M5[t] -0.0872069069017645M6[t] + 0.0255896118794349M7[t] + 0.0680645297493756M8[t] + 0.0170109275557401M9[t] -0.0119947379491530M10[t] -0.0686187279361657M11[t] -0.0300113248845106t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.982968365214570.22903239.221500
X-0.04095873377483660.051288-0.79860.428620.21431
M1-0.07766098074418920.265648-0.29230.7713370.385668
M2-0.0874858209245760.265209-0.32990.7429920.371496
M3-0.0935424575976810.264958-0.3530.7256670.362833
M4-0.1396810117383360.264781-0.52750.6003580.300179
M5-0.07959383834521580.265289-0.30.7655080.382754
M6-0.08720690690176450.265171-0.32890.7437460.371873
M70.02558961187943490.265150.09650.9235350.461767
M80.06806452974937560.2640490.25780.7977320.398866
M90.01701092755574010.2637440.06450.9488530.474427
M10-0.01199473794915300.263628-0.04550.9639070.481953
M11-0.06861872793616570.263256-0.26070.7955230.397761
t-0.03001132488451060.003565-8.419200

\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) & 8.98296836521457 & 0.229032 & 39.2215 & 0 & 0 \tabularnewline
X & -0.0409587337748366 & 0.051288 & -0.7986 & 0.42862 & 0.21431 \tabularnewline
M1 & -0.0776609807441892 & 0.265648 & -0.2923 & 0.771337 & 0.385668 \tabularnewline
M2 & -0.087485820924576 & 0.265209 & -0.3299 & 0.742992 & 0.371496 \tabularnewline
M3 & -0.093542457597681 & 0.264958 & -0.353 & 0.725667 & 0.362833 \tabularnewline
M4 & -0.139681011738336 & 0.264781 & -0.5275 & 0.600358 & 0.300179 \tabularnewline
M5 & -0.0795938383452158 & 0.265289 & -0.3 & 0.765508 & 0.382754 \tabularnewline
M6 & -0.0872069069017645 & 0.265171 & -0.3289 & 0.743746 & 0.371873 \tabularnewline
M7 & 0.0255896118794349 & 0.26515 & 0.0965 & 0.923535 & 0.461767 \tabularnewline
M8 & 0.0680645297493756 & 0.264049 & 0.2578 & 0.797732 & 0.398866 \tabularnewline
M9 & 0.0170109275557401 & 0.263744 & 0.0645 & 0.948853 & 0.474427 \tabularnewline
M10 & -0.0119947379491530 & 0.263628 & -0.0455 & 0.963907 & 0.481953 \tabularnewline
M11 & -0.0686187279361657 & 0.263256 & -0.2607 & 0.795523 & 0.397761 \tabularnewline
t & -0.0300113248845106 & 0.003565 & -8.4192 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57459&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]8.98296836521457[/C][C]0.229032[/C][C]39.2215[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.0409587337748366[/C][C]0.051288[/C][C]-0.7986[/C][C]0.42862[/C][C]0.21431[/C][/ROW]
[ROW][C]M1[/C][C]-0.0776609807441892[/C][C]0.265648[/C][C]-0.2923[/C][C]0.771337[/C][C]0.385668[/C][/ROW]
[ROW][C]M2[/C][C]-0.087485820924576[/C][C]0.265209[/C][C]-0.3299[/C][C]0.742992[/C][C]0.371496[/C][/ROW]
[ROW][C]M3[/C][C]-0.093542457597681[/C][C]0.264958[/C][C]-0.353[/C][C]0.725667[/C][C]0.362833[/C][/ROW]
[ROW][C]M4[/C][C]-0.139681011738336[/C][C]0.264781[/C][C]-0.5275[/C][C]0.600358[/C][C]0.300179[/C][/ROW]
[ROW][C]M5[/C][C]-0.0795938383452158[/C][C]0.265289[/C][C]-0.3[/C][C]0.765508[/C][C]0.382754[/C][/ROW]
[ROW][C]M6[/C][C]-0.0872069069017645[/C][C]0.265171[/C][C]-0.3289[/C][C]0.743746[/C][C]0.371873[/C][/ROW]
[ROW][C]M7[/C][C]0.0255896118794349[/C][C]0.26515[/C][C]0.0965[/C][C]0.923535[/C][C]0.461767[/C][/ROW]
[ROW][C]M8[/C][C]0.0680645297493756[/C][C]0.264049[/C][C]0.2578[/C][C]0.797732[/C][C]0.398866[/C][/ROW]
[ROW][C]M9[/C][C]0.0170109275557401[/C][C]0.263744[/C][C]0.0645[/C][C]0.948853[/C][C]0.474427[/C][/ROW]
[ROW][C]M10[/C][C]-0.0119947379491530[/C][C]0.263628[/C][C]-0.0455[/C][C]0.963907[/C][C]0.481953[/C][/ROW]
[ROW][C]M11[/C][C]-0.0686187279361657[/C][C]0.263256[/C][C]-0.2607[/C][C]0.795523[/C][C]0.397761[/C][/ROW]
[ROW][C]t[/C][C]-0.0300113248845106[/C][C]0.003565[/C][C]-8.4192[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57459&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57459&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)8.982968365214570.22903239.221500
X-0.04095873377483660.051288-0.79860.428620.21431
M1-0.07766098074418920.265648-0.29230.7713370.385668
M2-0.0874858209245760.265209-0.32990.7429920.371496
M3-0.0935424575976810.264958-0.3530.7256670.362833
M4-0.1396810117383360.264781-0.52750.6003580.300179
M5-0.07959383834521580.265289-0.30.7655080.382754
M6-0.08720690690176450.265171-0.32890.7437460.371873
M70.02558961187943490.265150.09650.9235350.461767
M80.06806452974937560.2640490.25780.7977320.398866
M90.01701092755574010.2637440.06450.9488530.474427
M10-0.01199473794915300.263628-0.04550.9639070.481953
M11-0.06861872793616570.263256-0.26070.7955230.397761
t-0.03001132488451060.003565-8.419200







Multiple Linear Regression - Regression Statistics
Multiple R0.828915594493535
R-squared0.68710106279457
Adjusted R-squared0.598673102279992
F-TEST (value)7.77017878503821
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value7.69727117599928e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.416179568730165
Sum Squared Residuals7.9674499377076

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.828915594493535 \tabularnewline
R-squared & 0.68710106279457 \tabularnewline
Adjusted R-squared & 0.598673102279992 \tabularnewline
F-TEST (value) & 7.77017878503821 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 7.69727117599928e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.416179568730165 \tabularnewline
Sum Squared Residuals & 7.9674499377076 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57459&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.828915594493535[/C][/ROW]
[ROW][C]R-squared[/C][C]0.68710106279457[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.598673102279992[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]7.77017878503821[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]7.69727117599928e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.416179568730165[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7.9674499377076[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57459&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57459&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.828915594493535
R-squared0.68710106279457
Adjusted R-squared0.598673102279992
F-TEST (value)7.77017878503821
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value7.69727117599928e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.416179568730165
Sum Squared Residuals7.9674499377076







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.8101716728839-0.210171672883898
28.58.78385188996468-0.283851889964681
38.38.7531085637978-0.453108563797793
47.88.6446012850905-0.844601285090507
57.88.64641560729448-0.84641560729448
688.62312677067461-0.623126770674613
78.68.69976815450508-0.0997681545050762
88.98.718375557556730.181624442443269
98.98.64673113924680.253268860753202
108.68.553718399824280.0462816001757201
118.38.47978029242296-0.179780292422955
128.38.52985614093157-0.229856140931564
138.38.42259342264061-0.122593422640613
148.48.370060050105520.029939949894482
158.58.313512721660480.186487278339517
168.48.250060050105520.149939949894483
178.68.290375582057840.309624417942164
188.58.238006044457840.261993955542164
198.58.309732380235320.190267619764682
208.58.3234247352340.176575264766006
218.58.24031187146710.259688128532894
228.58.209556407382340.290443592617661
238.58.118825219133330.381174780866667
248.58.144325827377040.355674172622960
258.58.04730279252980.452697207470202
268.58.01770631090860.482293689091391
278.58.009899875655630.490100124344369
288.57.922691138511260.577308861488741
298.67.943346478251660.656653521748343
308.47.918828879618550.481171120381455
318.18.012672931634440.08732706836556
3288.02390776260662-0.023907762606625
3387.959635916376160.0403640836238379
3487.90102851332450.0989714866754936
3587.802924752996030.197075247003971
367.97.835388345981460.0646116540185419
377.87.726896865677260.0731031343227378
387.87.682555239897130.117444760102867
397.97.644439341650780.255560658349225
408.17.56992781197660.530072188023397
4187.620483027372630.379516972627369
427.67.582449046593820.0175509534061760
437.37.66195754178853-0.361957541788525
4477.68466081821767-0.684660818217665
456.87.58762198496733-0.787621984967333
4677.4987051189223-0.498705118922298
477.17.38339869040839-0.283398690408389
487.27.41586228339382-0.215862283393819
497.17.29303524626843-0.193035246268429
506.97.24582650912406-0.345826509124061
516.77.17903949723532-0.479039497235318
526.77.11271971431611-0.412719714316113
536.67.0993793050234-0.499379305023397
546.97.03758925865518-0.137589258655183
557.37.115868991836640.18413100816336
567.57.149631126384990.350368873615015
577.37.06569908794260.234300912057399
587.17.036991560546580.0630084394534236
596.97.0150710450393-0.115071045039294
607.17.074567402316120.0254325976838834

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.8101716728839 & -0.210171672883898 \tabularnewline
2 & 8.5 & 8.78385188996468 & -0.283851889964681 \tabularnewline
3 & 8.3 & 8.7531085637978 & -0.453108563797793 \tabularnewline
4 & 7.8 & 8.6446012850905 & -0.844601285090507 \tabularnewline
5 & 7.8 & 8.64641560729448 & -0.84641560729448 \tabularnewline
6 & 8 & 8.62312677067461 & -0.623126770674613 \tabularnewline
7 & 8.6 & 8.69976815450508 & -0.0997681545050762 \tabularnewline
8 & 8.9 & 8.71837555755673 & 0.181624442443269 \tabularnewline
9 & 8.9 & 8.6467311392468 & 0.253268860753202 \tabularnewline
10 & 8.6 & 8.55371839982428 & 0.0462816001757201 \tabularnewline
11 & 8.3 & 8.47978029242296 & -0.179780292422955 \tabularnewline
12 & 8.3 & 8.52985614093157 & -0.229856140931564 \tabularnewline
13 & 8.3 & 8.42259342264061 & -0.122593422640613 \tabularnewline
14 & 8.4 & 8.37006005010552 & 0.029939949894482 \tabularnewline
15 & 8.5 & 8.31351272166048 & 0.186487278339517 \tabularnewline
16 & 8.4 & 8.25006005010552 & 0.149939949894483 \tabularnewline
17 & 8.6 & 8.29037558205784 & 0.309624417942164 \tabularnewline
18 & 8.5 & 8.23800604445784 & 0.261993955542164 \tabularnewline
19 & 8.5 & 8.30973238023532 & 0.190267619764682 \tabularnewline
20 & 8.5 & 8.323424735234 & 0.176575264766006 \tabularnewline
21 & 8.5 & 8.2403118714671 & 0.259688128532894 \tabularnewline
22 & 8.5 & 8.20955640738234 & 0.290443592617661 \tabularnewline
23 & 8.5 & 8.11882521913333 & 0.381174780866667 \tabularnewline
24 & 8.5 & 8.14432582737704 & 0.355674172622960 \tabularnewline
25 & 8.5 & 8.0473027925298 & 0.452697207470202 \tabularnewline
26 & 8.5 & 8.0177063109086 & 0.482293689091391 \tabularnewline
27 & 8.5 & 8.00989987565563 & 0.490100124344369 \tabularnewline
28 & 8.5 & 7.92269113851126 & 0.577308861488741 \tabularnewline
29 & 8.6 & 7.94334647825166 & 0.656653521748343 \tabularnewline
30 & 8.4 & 7.91882887961855 & 0.481171120381455 \tabularnewline
31 & 8.1 & 8.01267293163444 & 0.08732706836556 \tabularnewline
32 & 8 & 8.02390776260662 & -0.023907762606625 \tabularnewline
33 & 8 & 7.95963591637616 & 0.0403640836238379 \tabularnewline
34 & 8 & 7.9010285133245 & 0.0989714866754936 \tabularnewline
35 & 8 & 7.80292475299603 & 0.197075247003971 \tabularnewline
36 & 7.9 & 7.83538834598146 & 0.0646116540185419 \tabularnewline
37 & 7.8 & 7.72689686567726 & 0.0731031343227378 \tabularnewline
38 & 7.8 & 7.68255523989713 & 0.117444760102867 \tabularnewline
39 & 7.9 & 7.64443934165078 & 0.255560658349225 \tabularnewline
40 & 8.1 & 7.5699278119766 & 0.530072188023397 \tabularnewline
41 & 8 & 7.62048302737263 & 0.379516972627369 \tabularnewline
42 & 7.6 & 7.58244904659382 & 0.0175509534061760 \tabularnewline
43 & 7.3 & 7.66195754178853 & -0.361957541788525 \tabularnewline
44 & 7 & 7.68466081821767 & -0.684660818217665 \tabularnewline
45 & 6.8 & 7.58762198496733 & -0.787621984967333 \tabularnewline
46 & 7 & 7.4987051189223 & -0.498705118922298 \tabularnewline
47 & 7.1 & 7.38339869040839 & -0.283398690408389 \tabularnewline
48 & 7.2 & 7.41586228339382 & -0.215862283393819 \tabularnewline
49 & 7.1 & 7.29303524626843 & -0.193035246268429 \tabularnewline
50 & 6.9 & 7.24582650912406 & -0.345826509124061 \tabularnewline
51 & 6.7 & 7.17903949723532 & -0.479039497235318 \tabularnewline
52 & 6.7 & 7.11271971431611 & -0.412719714316113 \tabularnewline
53 & 6.6 & 7.0993793050234 & -0.499379305023397 \tabularnewline
54 & 6.9 & 7.03758925865518 & -0.137589258655183 \tabularnewline
55 & 7.3 & 7.11586899183664 & 0.18413100816336 \tabularnewline
56 & 7.5 & 7.14963112638499 & 0.350368873615015 \tabularnewline
57 & 7.3 & 7.0656990879426 & 0.234300912057399 \tabularnewline
58 & 7.1 & 7.03699156054658 & 0.0630084394534236 \tabularnewline
59 & 6.9 & 7.0150710450393 & -0.115071045039294 \tabularnewline
60 & 7.1 & 7.07456740231612 & 0.0254325976838834 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57459&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]8.6[/C][C]8.8101716728839[/C][C]-0.210171672883898[/C][/ROW]
[ROW][C]2[/C][C]8.5[/C][C]8.78385188996468[/C][C]-0.283851889964681[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.7531085637978[/C][C]-0.453108563797793[/C][/ROW]
[ROW][C]4[/C][C]7.8[/C][C]8.6446012850905[/C][C]-0.844601285090507[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]8.64641560729448[/C][C]-0.84641560729448[/C][/ROW]
[ROW][C]6[/C][C]8[/C][C]8.62312677067461[/C][C]-0.623126770674613[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.69976815450508[/C][C]-0.0997681545050762[/C][/ROW]
[ROW][C]8[/C][C]8.9[/C][C]8.71837555755673[/C][C]0.181624442443269[/C][/ROW]
[ROW][C]9[/C][C]8.9[/C][C]8.6467311392468[/C][C]0.253268860753202[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.55371839982428[/C][C]0.0462816001757201[/C][/ROW]
[ROW][C]11[/C][C]8.3[/C][C]8.47978029242296[/C][C]-0.179780292422955[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]8.52985614093157[/C][C]-0.229856140931564[/C][/ROW]
[ROW][C]13[/C][C]8.3[/C][C]8.42259342264061[/C][C]-0.122593422640613[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]8.37006005010552[/C][C]0.029939949894482[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.31351272166048[/C][C]0.186487278339517[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]8.25006005010552[/C][C]0.149939949894483[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]8.29037558205784[/C][C]0.309624417942164[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.23800604445784[/C][C]0.261993955542164[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.30973238023532[/C][C]0.190267619764682[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.323424735234[/C][C]0.176575264766006[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.2403118714671[/C][C]0.259688128532894[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.20955640738234[/C][C]0.290443592617661[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]8.11882521913333[/C][C]0.381174780866667[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.14432582737704[/C][C]0.355674172622960[/C][/ROW]
[ROW][C]25[/C][C]8.5[/C][C]8.0473027925298[/C][C]0.452697207470202[/C][/ROW]
[ROW][C]26[/C][C]8.5[/C][C]8.0177063109086[/C][C]0.482293689091391[/C][/ROW]
[ROW][C]27[/C][C]8.5[/C][C]8.00989987565563[/C][C]0.490100124344369[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]7.92269113851126[/C][C]0.577308861488741[/C][/ROW]
[ROW][C]29[/C][C]8.6[/C][C]7.94334647825166[/C][C]0.656653521748343[/C][/ROW]
[ROW][C]30[/C][C]8.4[/C][C]7.91882887961855[/C][C]0.481171120381455[/C][/ROW]
[ROW][C]31[/C][C]8.1[/C][C]8.01267293163444[/C][C]0.08732706836556[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]8.02390776260662[/C][C]-0.023907762606625[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.95963591637616[/C][C]0.0403640836238379[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.9010285133245[/C][C]0.0989714866754936[/C][/ROW]
[ROW][C]35[/C][C]8[/C][C]7.80292475299603[/C][C]0.197075247003971[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.83538834598146[/C][C]0.0646116540185419[/C][/ROW]
[ROW][C]37[/C][C]7.8[/C][C]7.72689686567726[/C][C]0.0731031343227378[/C][/ROW]
[ROW][C]38[/C][C]7.8[/C][C]7.68255523989713[/C][C]0.117444760102867[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]7.64443934165078[/C][C]0.255560658349225[/C][/ROW]
[ROW][C]40[/C][C]8.1[/C][C]7.5699278119766[/C][C]0.530072188023397[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]7.62048302737263[/C][C]0.379516972627369[/C][/ROW]
[ROW][C]42[/C][C]7.6[/C][C]7.58244904659382[/C][C]0.0175509534061760[/C][/ROW]
[ROW][C]43[/C][C]7.3[/C][C]7.66195754178853[/C][C]-0.361957541788525[/C][/ROW]
[ROW][C]44[/C][C]7[/C][C]7.68466081821767[/C][C]-0.684660818217665[/C][/ROW]
[ROW][C]45[/C][C]6.8[/C][C]7.58762198496733[/C][C]-0.787621984967333[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.4987051189223[/C][C]-0.498705118922298[/C][/ROW]
[ROW][C]47[/C][C]7.1[/C][C]7.38339869040839[/C][C]-0.283398690408389[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.41586228339382[/C][C]-0.215862283393819[/C][/ROW]
[ROW][C]49[/C][C]7.1[/C][C]7.29303524626843[/C][C]-0.193035246268429[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]7.24582650912406[/C][C]-0.345826509124061[/C][/ROW]
[ROW][C]51[/C][C]6.7[/C][C]7.17903949723532[/C][C]-0.479039497235318[/C][/ROW]
[ROW][C]52[/C][C]6.7[/C][C]7.11271971431611[/C][C]-0.412719714316113[/C][/ROW]
[ROW][C]53[/C][C]6.6[/C][C]7.0993793050234[/C][C]-0.499379305023397[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]7.03758925865518[/C][C]-0.137589258655183[/C][/ROW]
[ROW][C]55[/C][C]7.3[/C][C]7.11586899183664[/C][C]0.18413100816336[/C][/ROW]
[ROW][C]56[/C][C]7.5[/C][C]7.14963112638499[/C][C]0.350368873615015[/C][/ROW]
[ROW][C]57[/C][C]7.3[/C][C]7.0656990879426[/C][C]0.234300912057399[/C][/ROW]
[ROW][C]58[/C][C]7.1[/C][C]7.03699156054658[/C][C]0.0630084394534236[/C][/ROW]
[ROW][C]59[/C][C]6.9[/C][C]7.0150710450393[/C][C]-0.115071045039294[/C][/ROW]
[ROW][C]60[/C][C]7.1[/C][C]7.07456740231612[/C][C]0.0254325976838834[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57459&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57459&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
18.68.8101716728839-0.210171672883898
28.58.78385188996468-0.283851889964681
38.38.7531085637978-0.453108563797793
47.88.6446012850905-0.844601285090507
57.88.64641560729448-0.84641560729448
688.62312677067461-0.623126770674613
78.68.69976815450508-0.0997681545050762
88.98.718375557556730.181624442443269
98.98.64673113924680.253268860753202
108.68.553718399824280.0462816001757201
118.38.47978029242296-0.179780292422955
128.38.52985614093157-0.229856140931564
138.38.42259342264061-0.122593422640613
148.48.370060050105520.029939949894482
158.58.313512721660480.186487278339517
168.48.250060050105520.149939949894483
178.68.290375582057840.309624417942164
188.58.238006044457840.261993955542164
198.58.309732380235320.190267619764682
208.58.3234247352340.176575264766006
218.58.24031187146710.259688128532894
228.58.209556407382340.290443592617661
238.58.118825219133330.381174780866667
248.58.144325827377040.355674172622960
258.58.04730279252980.452697207470202
268.58.01770631090860.482293689091391
278.58.009899875655630.490100124344369
288.57.922691138511260.577308861488741
298.67.943346478251660.656653521748343
308.47.918828879618550.481171120381455
318.18.012672931634440.08732706836556
3288.02390776260662-0.023907762606625
3387.959635916376160.0403640836238379
3487.90102851332450.0989714866754936
3587.802924752996030.197075247003971
367.97.835388345981460.0646116540185419
377.87.726896865677260.0731031343227378
387.87.682555239897130.117444760102867
397.97.644439341650780.255560658349225
408.17.56992781197660.530072188023397
4187.620483027372630.379516972627369
427.67.582449046593820.0175509534061760
437.37.66195754178853-0.361957541788525
4477.68466081821767-0.684660818217665
456.87.58762198496733-0.787621984967333
4677.4987051189223-0.498705118922298
477.17.38339869040839-0.283398690408389
487.27.41586228339382-0.215862283393819
497.17.29303524626843-0.193035246268429
506.97.24582650912406-0.345826509124061
516.77.17903949723532-0.479039497235318
526.77.11271971431611-0.412719714316113
536.67.0993793050234-0.499379305023397
546.97.03758925865518-0.137589258655183
557.37.115868991836640.18413100816336
567.57.149631126384990.350368873615015
577.37.06569908794260.234300912057399
587.17.036991560546580.0630084394534236
596.97.0150710450393-0.115071045039294
607.17.074567402316120.0254325976838834







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6032969000804960.7934061998390080.396703099919504
180.4559993503989630.9119987007979260.544000649601037
190.4115352819883480.8230705639766970.588464718011652
200.4706285042096530.9412570084193060.529371495790347
210.4355873021237840.8711746042475680.564412697876216
220.4023192778241790.8046385556483590.597680722175821
230.2968643726832740.5937287453665490.703135627316726
240.2223690672460970.4447381344921930.777630932753903
250.1521715130525450.3043430261050910.847828486947455
260.1000261142528690.2000522285057380.899973885747131
270.06582656569035870.1316531313807170.934173434309641
280.0417989213192870.0835978426385740.958201078680713
290.02771569917855880.05543139835711760.972284300821441
300.01756995434283890.03513990868567780.98243004565716
310.0345139119247940.0690278238495880.965486088075206
320.05926241472432540.1185248294486510.940737585275675
330.05909896277823590.1181979255564720.940901037221764
340.04065561340833790.08131122681667570.959344386591662
350.02500511726692810.05001023453385610.974994882733072
360.01501168485596680.03002336971193370.984988315144033
370.01201627611473470.02403255222946940.987983723885265
380.01060577777313870.02121155554627750.989394222226861
390.01334728025255920.02669456050511840.98665271974744
400.03937365448649060.07874730897298110.96062634551351
410.3384708933632760.6769417867265510.661529106636724
420.8639983368368920.2720033263262150.136001663163108
430.9759433029310.04811339413799850.0240566970689992

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.603296900080496 & 0.793406199839008 & 0.396703099919504 \tabularnewline
18 & 0.455999350398963 & 0.911998700797926 & 0.544000649601037 \tabularnewline
19 & 0.411535281988348 & 0.823070563976697 & 0.588464718011652 \tabularnewline
20 & 0.470628504209653 & 0.941257008419306 & 0.529371495790347 \tabularnewline
21 & 0.435587302123784 & 0.871174604247568 & 0.564412697876216 \tabularnewline
22 & 0.402319277824179 & 0.804638555648359 & 0.597680722175821 \tabularnewline
23 & 0.296864372683274 & 0.593728745366549 & 0.703135627316726 \tabularnewline
24 & 0.222369067246097 & 0.444738134492193 & 0.777630932753903 \tabularnewline
25 & 0.152171513052545 & 0.304343026105091 & 0.847828486947455 \tabularnewline
26 & 0.100026114252869 & 0.200052228505738 & 0.899973885747131 \tabularnewline
27 & 0.0658265656903587 & 0.131653131380717 & 0.934173434309641 \tabularnewline
28 & 0.041798921319287 & 0.083597842638574 & 0.958201078680713 \tabularnewline
29 & 0.0277156991785588 & 0.0554313983571176 & 0.972284300821441 \tabularnewline
30 & 0.0175699543428389 & 0.0351399086856778 & 0.98243004565716 \tabularnewline
31 & 0.034513911924794 & 0.069027823849588 & 0.965486088075206 \tabularnewline
32 & 0.0592624147243254 & 0.118524829448651 & 0.940737585275675 \tabularnewline
33 & 0.0590989627782359 & 0.118197925556472 & 0.940901037221764 \tabularnewline
34 & 0.0406556134083379 & 0.0813112268166757 & 0.959344386591662 \tabularnewline
35 & 0.0250051172669281 & 0.0500102345338561 & 0.974994882733072 \tabularnewline
36 & 0.0150116848559668 & 0.0300233697119337 & 0.984988315144033 \tabularnewline
37 & 0.0120162761147347 & 0.0240325522294694 & 0.987983723885265 \tabularnewline
38 & 0.0106057777731387 & 0.0212115555462775 & 0.989394222226861 \tabularnewline
39 & 0.0133472802525592 & 0.0266945605051184 & 0.98665271974744 \tabularnewline
40 & 0.0393736544864906 & 0.0787473089729811 & 0.96062634551351 \tabularnewline
41 & 0.338470893363276 & 0.676941786726551 & 0.661529106636724 \tabularnewline
42 & 0.863998336836892 & 0.272003326326215 & 0.136001663163108 \tabularnewline
43 & 0.975943302931 & 0.0481133941379985 & 0.0240566970689992 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57459&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.603296900080496[/C][C]0.793406199839008[/C][C]0.396703099919504[/C][/ROW]
[ROW][C]18[/C][C]0.455999350398963[/C][C]0.911998700797926[/C][C]0.544000649601037[/C][/ROW]
[ROW][C]19[/C][C]0.411535281988348[/C][C]0.823070563976697[/C][C]0.588464718011652[/C][/ROW]
[ROW][C]20[/C][C]0.470628504209653[/C][C]0.941257008419306[/C][C]0.529371495790347[/C][/ROW]
[ROW][C]21[/C][C]0.435587302123784[/C][C]0.871174604247568[/C][C]0.564412697876216[/C][/ROW]
[ROW][C]22[/C][C]0.402319277824179[/C][C]0.804638555648359[/C][C]0.597680722175821[/C][/ROW]
[ROW][C]23[/C][C]0.296864372683274[/C][C]0.593728745366549[/C][C]0.703135627316726[/C][/ROW]
[ROW][C]24[/C][C]0.222369067246097[/C][C]0.444738134492193[/C][C]0.777630932753903[/C][/ROW]
[ROW][C]25[/C][C]0.152171513052545[/C][C]0.304343026105091[/C][C]0.847828486947455[/C][/ROW]
[ROW][C]26[/C][C]0.100026114252869[/C][C]0.200052228505738[/C][C]0.899973885747131[/C][/ROW]
[ROW][C]27[/C][C]0.0658265656903587[/C][C]0.131653131380717[/C][C]0.934173434309641[/C][/ROW]
[ROW][C]28[/C][C]0.041798921319287[/C][C]0.083597842638574[/C][C]0.958201078680713[/C][/ROW]
[ROW][C]29[/C][C]0.0277156991785588[/C][C]0.0554313983571176[/C][C]0.972284300821441[/C][/ROW]
[ROW][C]30[/C][C]0.0175699543428389[/C][C]0.0351399086856778[/C][C]0.98243004565716[/C][/ROW]
[ROW][C]31[/C][C]0.034513911924794[/C][C]0.069027823849588[/C][C]0.965486088075206[/C][/ROW]
[ROW][C]32[/C][C]0.0592624147243254[/C][C]0.118524829448651[/C][C]0.940737585275675[/C][/ROW]
[ROW][C]33[/C][C]0.0590989627782359[/C][C]0.118197925556472[/C][C]0.940901037221764[/C][/ROW]
[ROW][C]34[/C][C]0.0406556134083379[/C][C]0.0813112268166757[/C][C]0.959344386591662[/C][/ROW]
[ROW][C]35[/C][C]0.0250051172669281[/C][C]0.0500102345338561[/C][C]0.974994882733072[/C][/ROW]
[ROW][C]36[/C][C]0.0150116848559668[/C][C]0.0300233697119337[/C][C]0.984988315144033[/C][/ROW]
[ROW][C]37[/C][C]0.0120162761147347[/C][C]0.0240325522294694[/C][C]0.987983723885265[/C][/ROW]
[ROW][C]38[/C][C]0.0106057777731387[/C][C]0.0212115555462775[/C][C]0.989394222226861[/C][/ROW]
[ROW][C]39[/C][C]0.0133472802525592[/C][C]0.0266945605051184[/C][C]0.98665271974744[/C][/ROW]
[ROW][C]40[/C][C]0.0393736544864906[/C][C]0.0787473089729811[/C][C]0.96062634551351[/C][/ROW]
[ROW][C]41[/C][C]0.338470893363276[/C][C]0.676941786726551[/C][C]0.661529106636724[/C][/ROW]
[ROW][C]42[/C][C]0.863998336836892[/C][C]0.272003326326215[/C][C]0.136001663163108[/C][/ROW]
[ROW][C]43[/C][C]0.975943302931[/C][C]0.0481133941379985[/C][C]0.0240566970689992[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57459&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57459&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
170.6032969000804960.7934061998390080.396703099919504
180.4559993503989630.9119987007979260.544000649601037
190.4115352819883480.8230705639766970.588464718011652
200.4706285042096530.9412570084193060.529371495790347
210.4355873021237840.8711746042475680.564412697876216
220.4023192778241790.8046385556483590.597680722175821
230.2968643726832740.5937287453665490.703135627316726
240.2223690672460970.4447381344921930.777630932753903
250.1521715130525450.3043430261050910.847828486947455
260.1000261142528690.2000522285057380.899973885747131
270.06582656569035870.1316531313807170.934173434309641
280.0417989213192870.0835978426385740.958201078680713
290.02771569917855880.05543139835711760.972284300821441
300.01756995434283890.03513990868567780.98243004565716
310.0345139119247940.0690278238495880.965486088075206
320.05926241472432540.1185248294486510.940737585275675
330.05909896277823590.1181979255564720.940901037221764
340.04065561340833790.08131122681667570.959344386591662
350.02500511726692810.05001023453385610.974994882733072
360.01501168485596680.03002336971193370.984988315144033
370.01201627611473470.02403255222946940.987983723885265
380.01060577777313870.02121155554627750.989394222226861
390.01334728025255920.02669456050511840.98665271974744
400.03937365448649060.07874730897298110.96062634551351
410.3384708933632760.6769417867265510.661529106636724
420.8639983368368920.2720033263262150.136001663163108
430.9759433029310.04811339413799850.0240566970689992







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level60.222222222222222NOK
10% type I error level120.444444444444444NOK

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

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

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level60.222222222222222NOK
10% type I error level120.444444444444444NOK



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