Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 22 Dec 2011 09:08:42 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/22/t1324562947gn7eaqzx6wbcysd.htm/, Retrieved Fri, 03 May 2024 12:06:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159480, Retrieved Fri, 03 May 2024 12:06:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact110
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Testing Mean with unknown Variance - Critical Value] [] [2010-10-25 13:12:27] [b98453cac15ba1066b407e146608df68]
- RMPD  [Multiple Regression] [] [2011-12-22 13:45:12] [5a05da414fd67612c3b80d44effe0727]
- R  D      [Multiple Regression] [] [2011-12-22 14:08:42] [95610e892c4b5c84ff80f4c898567a9d] [Current]
Feedback Forum

Post a new message
Dataseries X:
2	7.9
2,1	7.9
1,7	8.0
1,8	8.0
1,8	7.9
1,8	8.0
1,3	7.7
1,3	7.2
1,3	7.5
1,2	7.3
1,4	7.0
2,2	7.0
2,9	7.0
3,1	7.2
3,5	7.3
3,6	7.1
4,4	6.8
4,1	6.4
5,1	6.1
5,8	6.5
5,9	7.7
5,4	7.9
5,5	7.5
4,8	6.9
3,2	6.6
2,7	6.9
2,1	7.7
1,9	8.0
0,6	8.0
0,7	7.7
-0,2	7.3
-1	7.4
-1,7	8.1
-0,7	8.3
-1	8.1
-0,9	7.9
0	7.9
0,3	8.3
0,8	8.6
0,8	8.7
1,9	8.5
2,1	8.3
2,5	8.0
2,7	8.0
2,4	8.8
2,4	8.7
2,9	8.5
3,1	8.1
3	7.8
3,4	7.6
3,7	7.4
3,5	7.1
3,5	6.9
3,3	6.7
3,1	6.6
3,4	6.5
4	7.1
3,4	7.2
3,4	6.9
3,4	6.7




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'AstonUniversity' @ aston.wessa.net

\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 & 'AstonUniversity' @ aston.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159480&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]'AstonUniversity' @ aston.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159480&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159480&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'AstonUniversity' @ aston.wessa.net







Multiple Linear Regression - Estimated Regression Equation
Inflatie[t] = + 13.6721792487914 -1.52352175529937werkloosheid[t] -0.117177389364079M1[t] + 0.196115656377836M2[t] + 0.571290442543696M3[t] + 0.500820007437708M4[t] + 0.37705652658981M5[t] + 0.0323521755299366M6[t] -0.434233915953887M7[t] -0.384704351059874M8[t] + 0.652231312755671M9[t] + 0.673172182967645M10[t] + 0.346586091483822M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Inflatie[t] =  +  13.6721792487914 -1.52352175529937werkloosheid[t] -0.117177389364079M1[t] +  0.196115656377836M2[t] +  0.571290442543696M3[t] +  0.500820007437708M4[t] +  0.37705652658981M5[t] +  0.0323521755299366M6[t] -0.434233915953887M7[t] -0.384704351059874M8[t] +  0.652231312755671M9[t] +  0.673172182967645M10[t] +  0.346586091483822M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159480&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Inflatie[t] =  +  13.6721792487914 -1.52352175529937werkloosheid[t] -0.117177389364079M1[t] +  0.196115656377836M2[t] +  0.571290442543696M3[t] +  0.500820007437708M4[t] +  0.37705652658981M5[t] +  0.0323521755299366M6[t] -0.434233915953887M7[t] -0.384704351059874M8[t] +  0.652231312755671M9[t] +  0.673172182967645M10[t] +  0.346586091483822M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159480&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159480&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
Inflatie[t] = + 13.6721792487914 -1.52352175529937werkloosheid[t] -0.117177389364079M1[t] + 0.196115656377836M2[t] + 0.571290442543696M3[t] + 0.500820007437708M4[t] + 0.37705652658981M5[t] + 0.0323521755299366M6[t] -0.434233915953887M7[t] -0.384704351059874M8[t] + 0.652231312755671M9[t] + 0.673172182967645M10[t] + 0.346586091483822M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)13.67217924879142.7026165.05897e-063e-06
werkloosheid-1.523521755299370.355224-4.28898.9e-054.4e-05
M1-0.1171773893640791.042883-0.11240.9110170.455509
M20.1961156563778361.0460970.18750.8520960.426048
M30.5712904425436961.055870.54110.5910210.29551
M40.5008200074377081.0547460.47480.6371110.318555
M50.377056526589811.0474470.360.7204770.360239
M60.03235217552993661.0426170.0310.9753770.487689
M7-0.4342339159538871.043971-0.41590.6793440.339672
M8-0.3847043510598741.044431-0.36830.7142740.357137
M90.6522313127556711.0582570.61630.5406530.270327
M100.6731721829676451.060830.63460.5287850.264392
M110.3465860914838221.0467480.33110.7420350.371018

\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.6721792487914 & 2.702616 & 5.0589 & 7e-06 & 3e-06 \tabularnewline
werkloosheid & -1.52352175529937 & 0.355224 & -4.2889 & 8.9e-05 & 4.4e-05 \tabularnewline
M1 & -0.117177389364079 & 1.042883 & -0.1124 & 0.911017 & 0.455509 \tabularnewline
M2 & 0.196115656377836 & 1.046097 & 0.1875 & 0.852096 & 0.426048 \tabularnewline
M3 & 0.571290442543696 & 1.05587 & 0.5411 & 0.591021 & 0.29551 \tabularnewline
M4 & 0.500820007437708 & 1.054746 & 0.4748 & 0.637111 & 0.318555 \tabularnewline
M5 & 0.37705652658981 & 1.047447 & 0.36 & 0.720477 & 0.360239 \tabularnewline
M6 & 0.0323521755299366 & 1.042617 & 0.031 & 0.975377 & 0.487689 \tabularnewline
M7 & -0.434233915953887 & 1.043971 & -0.4159 & 0.679344 & 0.339672 \tabularnewline
M8 & -0.384704351059874 & 1.044431 & -0.3683 & 0.714274 & 0.357137 \tabularnewline
M9 & 0.652231312755671 & 1.058257 & 0.6163 & 0.540653 & 0.270327 \tabularnewline
M10 & 0.673172182967645 & 1.06083 & 0.6346 & 0.528785 & 0.264392 \tabularnewline
M11 & 0.346586091483822 & 1.046748 & 0.3311 & 0.742035 & 0.371018 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159480&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.6721792487914[/C][C]2.702616[/C][C]5.0589[/C][C]7e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]werkloosheid[/C][C]-1.52352175529937[/C][C]0.355224[/C][C]-4.2889[/C][C]8.9e-05[/C][C]4.4e-05[/C][/ROW]
[ROW][C]M1[/C][C]-0.117177389364079[/C][C]1.042883[/C][C]-0.1124[/C][C]0.911017[/C][C]0.455509[/C][/ROW]
[ROW][C]M2[/C][C]0.196115656377836[/C][C]1.046097[/C][C]0.1875[/C][C]0.852096[/C][C]0.426048[/C][/ROW]
[ROW][C]M3[/C][C]0.571290442543696[/C][C]1.05587[/C][C]0.5411[/C][C]0.591021[/C][C]0.29551[/C][/ROW]
[ROW][C]M4[/C][C]0.500820007437708[/C][C]1.054746[/C][C]0.4748[/C][C]0.637111[/C][C]0.318555[/C][/ROW]
[ROW][C]M5[/C][C]0.37705652658981[/C][C]1.047447[/C][C]0.36[/C][C]0.720477[/C][C]0.360239[/C][/ROW]
[ROW][C]M6[/C][C]0.0323521755299366[/C][C]1.042617[/C][C]0.031[/C][C]0.975377[/C][C]0.487689[/C][/ROW]
[ROW][C]M7[/C][C]-0.434233915953887[/C][C]1.043971[/C][C]-0.4159[/C][C]0.679344[/C][C]0.339672[/C][/ROW]
[ROW][C]M8[/C][C]-0.384704351059874[/C][C]1.044431[/C][C]-0.3683[/C][C]0.714274[/C][C]0.357137[/C][/ROW]
[ROW][C]M9[/C][C]0.652231312755671[/C][C]1.058257[/C][C]0.6163[/C][C]0.540653[/C][C]0.270327[/C][/ROW]
[ROW][C]M10[/C][C]0.673172182967645[/C][C]1.06083[/C][C]0.6346[/C][C]0.528785[/C][C]0.264392[/C][/ROW]
[ROW][C]M11[/C][C]0.346586091483822[/C][C]1.046748[/C][C]0.3311[/C][C]0.742035[/C][C]0.371018[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159480&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159480&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.67217924879142.7026165.05897e-063e-06
werkloosheid-1.523521755299370.355224-4.28898.9e-054.4e-05
M1-0.1171773893640791.042883-0.11240.9110170.455509
M20.1961156563778361.0460970.18750.8520960.426048
M30.5712904425436961.055870.54110.5910210.29551
M40.5008200074377081.0547460.47480.6371110.318555
M50.377056526589811.0474470.360.7204770.360239
M60.03235217552993661.0426170.0310.9753770.487689
M7-0.4342339159538871.043971-0.41590.6793440.339672
M8-0.3847043510598741.044431-0.36830.7142740.357137
M90.6522313127556711.0582570.61630.5406530.270327
M100.6731721829676451.060830.63460.5287850.264392
M110.3465860914838221.0467480.33110.7420350.371018







Multiple Linear Regression - Regression Statistics
Multiple R0.531620569224398
R-squared0.282620429622473
Adjusted R-squared0.099459688249487
F-TEST (value)1.54301859396249
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.142641469334851
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.64756492134261
Sum Squared Residuals127.580097991819

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.531620569224398 \tabularnewline
R-squared & 0.282620429622473 \tabularnewline
Adjusted R-squared & 0.099459688249487 \tabularnewline
F-TEST (value) & 1.54301859396249 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.142641469334851 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.64756492134261 \tabularnewline
Sum Squared Residuals & 127.580097991819 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159480&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.531620569224398[/C][/ROW]
[ROW][C]R-squared[/C][C]0.282620429622473[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.099459688249487[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.54301859396249[/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.142641469334851[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.64756492134261[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]127.580097991819[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159480&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159480&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.531620569224398
R-squared0.282620429622473
Adjusted R-squared0.099459688249487
F-TEST (value)1.54301859396249
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.142641469334851
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.64756492134261
Sum Squared Residuals127.580097991819







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
121.51917999256230.480820007437698
22.11.83247303830420.267526961695799
31.72.05529564894013-0.355295648940127
41.81.98482521383414-0.184825213834138
51.82.01341390851618-0.213413908516176
61.81.516357381926370.283642618073633
71.31.50682781703235-0.206827817032353
81.32.31811825957605-1.01811825957605
91.32.89799739680179-1.59799739680179
101.23.22364261807363-2.02364261807363
111.43.35411305317962-1.95411305317962
122.23.0075269616958-0.807526961695798
132.92.890349572331720.00965042766828086
143.12.898938267013760.20106173298624
153.53.121760877649680.378239122350316
163.63.355994793603570.244005206396429
174.43.689287839345480.710712160654518
184.13.953992190405350.146007809594645
195.13.944462625511341.15553737448866
205.83.384583488285612.41541651171439
215.92.593293045741913.30670695425809
225.42.309529564894013.09047043510599
235.52.592352175529942.90764782447006
244.83.159879137225731.64012086277426
253.23.49975827445147-0.299758274451467
262.73.35599479360357-0.65599479360357
272.12.51235217552994-0.412352175529936
281.91.98482521383414-0.0848252138341388
290.61.86106173298624-1.26106173298624
300.71.97341390851618-1.27341390851618
31-0.22.1162365191521-2.3162365191521
32-12.01341390851618-3.01341390851618
33-1.71.98388434362216-3.68388434362216
34-0.71.70012086277426-2.40012086277426
35-11.67823912235032-2.67823912235032
36-0.91.63635738192637-2.53635738192637
3701.51917999256229-1.51917999256229
380.31.22306433618445-0.923064336184454
390.81.14118259576051-0.341182595760506
400.80.918359985124582-0.118359985124582
411.91.099300855336560.800699144663444
422.11.059300855336561.04069914466344
432.51.049771290442541.45022870955746
442.71.099300855336561.60069914466344
452.40.9174191149126051.48258088508739
462.41.090712160654521.30928783934548
472.91.068830420230571.83116957976943
483.11.331653030866491.76834696913351
4931.671532168092221.32846783190778
503.42.289529564894011.11047043510599
513.72.969408702119750.730591297880253
523.53.355994793603570.144005206396429
533.53.53693566381554-0.0369356638155449
543.33.49693566381554-0.196935663815545
553.13.18270174786166-0.082701747861659
563.43.384583488285610.0154165117143911
5743.507406098921530.492593901078467
583.43.375994793603570.0240052063964295
593.43.50646522870956-0.106465228709557
603.43.46458348828561-0.0645834882856088

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2 & 1.5191799925623 & 0.480820007437698 \tabularnewline
2 & 2.1 & 1.8324730383042 & 0.267526961695799 \tabularnewline
3 & 1.7 & 2.05529564894013 & -0.355295648940127 \tabularnewline
4 & 1.8 & 1.98482521383414 & -0.184825213834138 \tabularnewline
5 & 1.8 & 2.01341390851618 & -0.213413908516176 \tabularnewline
6 & 1.8 & 1.51635738192637 & 0.283642618073633 \tabularnewline
7 & 1.3 & 1.50682781703235 & -0.206827817032353 \tabularnewline
8 & 1.3 & 2.31811825957605 & -1.01811825957605 \tabularnewline
9 & 1.3 & 2.89799739680179 & -1.59799739680179 \tabularnewline
10 & 1.2 & 3.22364261807363 & -2.02364261807363 \tabularnewline
11 & 1.4 & 3.35411305317962 & -1.95411305317962 \tabularnewline
12 & 2.2 & 3.0075269616958 & -0.807526961695798 \tabularnewline
13 & 2.9 & 2.89034957233172 & 0.00965042766828086 \tabularnewline
14 & 3.1 & 2.89893826701376 & 0.20106173298624 \tabularnewline
15 & 3.5 & 3.12176087764968 & 0.378239122350316 \tabularnewline
16 & 3.6 & 3.35599479360357 & 0.244005206396429 \tabularnewline
17 & 4.4 & 3.68928783934548 & 0.710712160654518 \tabularnewline
18 & 4.1 & 3.95399219040535 & 0.146007809594645 \tabularnewline
19 & 5.1 & 3.94446262551134 & 1.15553737448866 \tabularnewline
20 & 5.8 & 3.38458348828561 & 2.41541651171439 \tabularnewline
21 & 5.9 & 2.59329304574191 & 3.30670695425809 \tabularnewline
22 & 5.4 & 2.30952956489401 & 3.09047043510599 \tabularnewline
23 & 5.5 & 2.59235217552994 & 2.90764782447006 \tabularnewline
24 & 4.8 & 3.15987913722573 & 1.64012086277426 \tabularnewline
25 & 3.2 & 3.49975827445147 & -0.299758274451467 \tabularnewline
26 & 2.7 & 3.35599479360357 & -0.65599479360357 \tabularnewline
27 & 2.1 & 2.51235217552994 & -0.412352175529936 \tabularnewline
28 & 1.9 & 1.98482521383414 & -0.0848252138341388 \tabularnewline
29 & 0.6 & 1.86106173298624 & -1.26106173298624 \tabularnewline
30 & 0.7 & 1.97341390851618 & -1.27341390851618 \tabularnewline
31 & -0.2 & 2.1162365191521 & -2.3162365191521 \tabularnewline
32 & -1 & 2.01341390851618 & -3.01341390851618 \tabularnewline
33 & -1.7 & 1.98388434362216 & -3.68388434362216 \tabularnewline
34 & -0.7 & 1.70012086277426 & -2.40012086277426 \tabularnewline
35 & -1 & 1.67823912235032 & -2.67823912235032 \tabularnewline
36 & -0.9 & 1.63635738192637 & -2.53635738192637 \tabularnewline
37 & 0 & 1.51917999256229 & -1.51917999256229 \tabularnewline
38 & 0.3 & 1.22306433618445 & -0.923064336184454 \tabularnewline
39 & 0.8 & 1.14118259576051 & -0.341182595760506 \tabularnewline
40 & 0.8 & 0.918359985124582 & -0.118359985124582 \tabularnewline
41 & 1.9 & 1.09930085533656 & 0.800699144663444 \tabularnewline
42 & 2.1 & 1.05930085533656 & 1.04069914466344 \tabularnewline
43 & 2.5 & 1.04977129044254 & 1.45022870955746 \tabularnewline
44 & 2.7 & 1.09930085533656 & 1.60069914466344 \tabularnewline
45 & 2.4 & 0.917419114912605 & 1.48258088508739 \tabularnewline
46 & 2.4 & 1.09071216065452 & 1.30928783934548 \tabularnewline
47 & 2.9 & 1.06883042023057 & 1.83116957976943 \tabularnewline
48 & 3.1 & 1.33165303086649 & 1.76834696913351 \tabularnewline
49 & 3 & 1.67153216809222 & 1.32846783190778 \tabularnewline
50 & 3.4 & 2.28952956489401 & 1.11047043510599 \tabularnewline
51 & 3.7 & 2.96940870211975 & 0.730591297880253 \tabularnewline
52 & 3.5 & 3.35599479360357 & 0.144005206396429 \tabularnewline
53 & 3.5 & 3.53693566381554 & -0.0369356638155449 \tabularnewline
54 & 3.3 & 3.49693566381554 & -0.196935663815545 \tabularnewline
55 & 3.1 & 3.18270174786166 & -0.082701747861659 \tabularnewline
56 & 3.4 & 3.38458348828561 & 0.0154165117143911 \tabularnewline
57 & 4 & 3.50740609892153 & 0.492593901078467 \tabularnewline
58 & 3.4 & 3.37599479360357 & 0.0240052063964295 \tabularnewline
59 & 3.4 & 3.50646522870956 & -0.106465228709557 \tabularnewline
60 & 3.4 & 3.46458348828561 & -0.0645834882856088 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159480&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]2[/C][C]1.5191799925623[/C][C]0.480820007437698[/C][/ROW]
[ROW][C]2[/C][C]2.1[/C][C]1.8324730383042[/C][C]0.267526961695799[/C][/ROW]
[ROW][C]3[/C][C]1.7[/C][C]2.05529564894013[/C][C]-0.355295648940127[/C][/ROW]
[ROW][C]4[/C][C]1.8[/C][C]1.98482521383414[/C][C]-0.184825213834138[/C][/ROW]
[ROW][C]5[/C][C]1.8[/C][C]2.01341390851618[/C][C]-0.213413908516176[/C][/ROW]
[ROW][C]6[/C][C]1.8[/C][C]1.51635738192637[/C][C]0.283642618073633[/C][/ROW]
[ROW][C]7[/C][C]1.3[/C][C]1.50682781703235[/C][C]-0.206827817032353[/C][/ROW]
[ROW][C]8[/C][C]1.3[/C][C]2.31811825957605[/C][C]-1.01811825957605[/C][/ROW]
[ROW][C]9[/C][C]1.3[/C][C]2.89799739680179[/C][C]-1.59799739680179[/C][/ROW]
[ROW][C]10[/C][C]1.2[/C][C]3.22364261807363[/C][C]-2.02364261807363[/C][/ROW]
[ROW][C]11[/C][C]1.4[/C][C]3.35411305317962[/C][C]-1.95411305317962[/C][/ROW]
[ROW][C]12[/C][C]2.2[/C][C]3.0075269616958[/C][C]-0.807526961695798[/C][/ROW]
[ROW][C]13[/C][C]2.9[/C][C]2.89034957233172[/C][C]0.00965042766828086[/C][/ROW]
[ROW][C]14[/C][C]3.1[/C][C]2.89893826701376[/C][C]0.20106173298624[/C][/ROW]
[ROW][C]15[/C][C]3.5[/C][C]3.12176087764968[/C][C]0.378239122350316[/C][/ROW]
[ROW][C]16[/C][C]3.6[/C][C]3.35599479360357[/C][C]0.244005206396429[/C][/ROW]
[ROW][C]17[/C][C]4.4[/C][C]3.68928783934548[/C][C]0.710712160654518[/C][/ROW]
[ROW][C]18[/C][C]4.1[/C][C]3.95399219040535[/C][C]0.146007809594645[/C][/ROW]
[ROW][C]19[/C][C]5.1[/C][C]3.94446262551134[/C][C]1.15553737448866[/C][/ROW]
[ROW][C]20[/C][C]5.8[/C][C]3.38458348828561[/C][C]2.41541651171439[/C][/ROW]
[ROW][C]21[/C][C]5.9[/C][C]2.59329304574191[/C][C]3.30670695425809[/C][/ROW]
[ROW][C]22[/C][C]5.4[/C][C]2.30952956489401[/C][C]3.09047043510599[/C][/ROW]
[ROW][C]23[/C][C]5.5[/C][C]2.59235217552994[/C][C]2.90764782447006[/C][/ROW]
[ROW][C]24[/C][C]4.8[/C][C]3.15987913722573[/C][C]1.64012086277426[/C][/ROW]
[ROW][C]25[/C][C]3.2[/C][C]3.49975827445147[/C][C]-0.299758274451467[/C][/ROW]
[ROW][C]26[/C][C]2.7[/C][C]3.35599479360357[/C][C]-0.65599479360357[/C][/ROW]
[ROW][C]27[/C][C]2.1[/C][C]2.51235217552994[/C][C]-0.412352175529936[/C][/ROW]
[ROW][C]28[/C][C]1.9[/C][C]1.98482521383414[/C][C]-0.0848252138341388[/C][/ROW]
[ROW][C]29[/C][C]0.6[/C][C]1.86106173298624[/C][C]-1.26106173298624[/C][/ROW]
[ROW][C]30[/C][C]0.7[/C][C]1.97341390851618[/C][C]-1.27341390851618[/C][/ROW]
[ROW][C]31[/C][C]-0.2[/C][C]2.1162365191521[/C][C]-2.3162365191521[/C][/ROW]
[ROW][C]32[/C][C]-1[/C][C]2.01341390851618[/C][C]-3.01341390851618[/C][/ROW]
[ROW][C]33[/C][C]-1.7[/C][C]1.98388434362216[/C][C]-3.68388434362216[/C][/ROW]
[ROW][C]34[/C][C]-0.7[/C][C]1.70012086277426[/C][C]-2.40012086277426[/C][/ROW]
[ROW][C]35[/C][C]-1[/C][C]1.67823912235032[/C][C]-2.67823912235032[/C][/ROW]
[ROW][C]36[/C][C]-0.9[/C][C]1.63635738192637[/C][C]-2.53635738192637[/C][/ROW]
[ROW][C]37[/C][C]0[/C][C]1.51917999256229[/C][C]-1.51917999256229[/C][/ROW]
[ROW][C]38[/C][C]0.3[/C][C]1.22306433618445[/C][C]-0.923064336184454[/C][/ROW]
[ROW][C]39[/C][C]0.8[/C][C]1.14118259576051[/C][C]-0.341182595760506[/C][/ROW]
[ROW][C]40[/C][C]0.8[/C][C]0.918359985124582[/C][C]-0.118359985124582[/C][/ROW]
[ROW][C]41[/C][C]1.9[/C][C]1.09930085533656[/C][C]0.800699144663444[/C][/ROW]
[ROW][C]42[/C][C]2.1[/C][C]1.05930085533656[/C][C]1.04069914466344[/C][/ROW]
[ROW][C]43[/C][C]2.5[/C][C]1.04977129044254[/C][C]1.45022870955746[/C][/ROW]
[ROW][C]44[/C][C]2.7[/C][C]1.09930085533656[/C][C]1.60069914466344[/C][/ROW]
[ROW][C]45[/C][C]2.4[/C][C]0.917419114912605[/C][C]1.48258088508739[/C][/ROW]
[ROW][C]46[/C][C]2.4[/C][C]1.09071216065452[/C][C]1.30928783934548[/C][/ROW]
[ROW][C]47[/C][C]2.9[/C][C]1.06883042023057[/C][C]1.83116957976943[/C][/ROW]
[ROW][C]48[/C][C]3.1[/C][C]1.33165303086649[/C][C]1.76834696913351[/C][/ROW]
[ROW][C]49[/C][C]3[/C][C]1.67153216809222[/C][C]1.32846783190778[/C][/ROW]
[ROW][C]50[/C][C]3.4[/C][C]2.28952956489401[/C][C]1.11047043510599[/C][/ROW]
[ROW][C]51[/C][C]3.7[/C][C]2.96940870211975[/C][C]0.730591297880253[/C][/ROW]
[ROW][C]52[/C][C]3.5[/C][C]3.35599479360357[/C][C]0.144005206396429[/C][/ROW]
[ROW][C]53[/C][C]3.5[/C][C]3.53693566381554[/C][C]-0.0369356638155449[/C][/ROW]
[ROW][C]54[/C][C]3.3[/C][C]3.49693566381554[/C][C]-0.196935663815545[/C][/ROW]
[ROW][C]55[/C][C]3.1[/C][C]3.18270174786166[/C][C]-0.082701747861659[/C][/ROW]
[ROW][C]56[/C][C]3.4[/C][C]3.38458348828561[/C][C]0.0154165117143911[/C][/ROW]
[ROW][C]57[/C][C]4[/C][C]3.50740609892153[/C][C]0.492593901078467[/C][/ROW]
[ROW][C]58[/C][C]3.4[/C][C]3.37599479360357[/C][C]0.0240052063964295[/C][/ROW]
[ROW][C]59[/C][C]3.4[/C][C]3.50646522870956[/C][C]-0.106465228709557[/C][/ROW]
[ROW][C]60[/C][C]3.4[/C][C]3.46458348828561[/C][C]-0.0645834882856088[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159480&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159480&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
121.51917999256230.480820007437698
22.11.83247303830420.267526961695799
31.72.05529564894013-0.355295648940127
41.81.98482521383414-0.184825213834138
51.82.01341390851618-0.213413908516176
61.81.516357381926370.283642618073633
71.31.50682781703235-0.206827817032353
81.32.31811825957605-1.01811825957605
91.32.89799739680179-1.59799739680179
101.23.22364261807363-2.02364261807363
111.43.35411305317962-1.95411305317962
122.23.0075269616958-0.807526961695798
132.92.890349572331720.00965042766828086
143.12.898938267013760.20106173298624
153.53.121760877649680.378239122350316
163.63.355994793603570.244005206396429
174.43.689287839345480.710712160654518
184.13.953992190405350.146007809594645
195.13.944462625511341.15553737448866
205.83.384583488285612.41541651171439
215.92.593293045741913.30670695425809
225.42.309529564894013.09047043510599
235.52.592352175529942.90764782447006
244.83.159879137225731.64012086277426
253.23.49975827445147-0.299758274451467
262.73.35599479360357-0.65599479360357
272.12.51235217552994-0.412352175529936
281.91.98482521383414-0.0848252138341388
290.61.86106173298624-1.26106173298624
300.71.97341390851618-1.27341390851618
31-0.22.1162365191521-2.3162365191521
32-12.01341390851618-3.01341390851618
33-1.71.98388434362216-3.68388434362216
34-0.71.70012086277426-2.40012086277426
35-11.67823912235032-2.67823912235032
36-0.91.63635738192637-2.53635738192637
3701.51917999256229-1.51917999256229
380.31.22306433618445-0.923064336184454
390.81.14118259576051-0.341182595760506
400.80.918359985124582-0.118359985124582
411.91.099300855336560.800699144663444
422.11.059300855336561.04069914466344
432.51.049771290442541.45022870955746
442.71.099300855336561.60069914466344
452.40.9174191149126051.48258088508739
462.41.090712160654521.30928783934548
472.91.068830420230571.83116957976943
483.11.331653030866491.76834696913351
4931.671532168092221.32846783190778
503.42.289529564894011.11047043510599
513.72.969408702119750.730591297880253
523.53.355994793603570.144005206396429
533.53.53693566381554-0.0369356638155449
543.33.49693566381554-0.196935663815545
553.13.18270174786166-0.082701747861659
563.43.384583488285610.0154165117143911
5743.507406098921530.492593901078467
583.43.375994793603570.0240052063964295
593.43.50646522870956-0.106465228709557
603.43.46458348828561-0.0645834882856088







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01128353802992780.02256707605985570.988716461970072
170.003641004919918760.007282009839837520.996358995080081
180.001096586553401750.00219317310680350.998903413446598
190.0006352302526466430.001270460505293290.999364769747353
200.02348040348368980.04696080696737960.97651959651631
210.2778228875825720.5556457751651450.722177112417428
220.6027987452218470.7944025095563060.397201254778153
230.7772702902482550.445459419503490.222729709751745
240.76110486233210.47779027533580.2388951376679
250.6759292423906240.6481415152187530.324070757609376
260.5878738914726320.8242522170547370.412126108527368
270.4914348772512970.9828697545025950.508565122748703
280.3926621548310430.7853243096620860.607337845168957
290.3446721658755060.6893443317510130.655327834124494
300.2980378625179430.5960757250358870.701962137482057
310.3450490261207660.6900980522415320.654950973879234
320.4989315517748130.9978631035496260.501068448225187
330.7798925739135790.4402148521728420.220107426086421
340.8430791914972180.3138416170055640.156920808502782
350.9337465176279730.1325069647440530.0662534823720265
360.9869978380956050.02600432380878990.013002161904395
370.9955533475843840.008893304831231280.00444665241561564
380.9987808796010290.00243824079794290.00121912039897145
390.9996684269735620.0006631460528753470.000331573026437673
400.9999596925697158.06148605708601e-054.030743028543e-05
410.9999216327879980.0001567344240038557.83672120019274e-05
420.999634418949810.0007311621003818490.000365581050190924
430.9979420938876810.004115812224637660.00205790611231883
440.9887842691927190.02243146161456240.0112157308072812

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0112835380299278 & 0.0225670760598557 & 0.988716461970072 \tabularnewline
17 & 0.00364100491991876 & 0.00728200983983752 & 0.996358995080081 \tabularnewline
18 & 0.00109658655340175 & 0.0021931731068035 & 0.998903413446598 \tabularnewline
19 & 0.000635230252646643 & 0.00127046050529329 & 0.999364769747353 \tabularnewline
20 & 0.0234804034836898 & 0.0469608069673796 & 0.97651959651631 \tabularnewline
21 & 0.277822887582572 & 0.555645775165145 & 0.722177112417428 \tabularnewline
22 & 0.602798745221847 & 0.794402509556306 & 0.397201254778153 \tabularnewline
23 & 0.777270290248255 & 0.44545941950349 & 0.222729709751745 \tabularnewline
24 & 0.7611048623321 & 0.4777902753358 & 0.2388951376679 \tabularnewline
25 & 0.675929242390624 & 0.648141515218753 & 0.324070757609376 \tabularnewline
26 & 0.587873891472632 & 0.824252217054737 & 0.412126108527368 \tabularnewline
27 & 0.491434877251297 & 0.982869754502595 & 0.508565122748703 \tabularnewline
28 & 0.392662154831043 & 0.785324309662086 & 0.607337845168957 \tabularnewline
29 & 0.344672165875506 & 0.689344331751013 & 0.655327834124494 \tabularnewline
30 & 0.298037862517943 & 0.596075725035887 & 0.701962137482057 \tabularnewline
31 & 0.345049026120766 & 0.690098052241532 & 0.654950973879234 \tabularnewline
32 & 0.498931551774813 & 0.997863103549626 & 0.501068448225187 \tabularnewline
33 & 0.779892573913579 & 0.440214852172842 & 0.220107426086421 \tabularnewline
34 & 0.843079191497218 & 0.313841617005564 & 0.156920808502782 \tabularnewline
35 & 0.933746517627973 & 0.132506964744053 & 0.0662534823720265 \tabularnewline
36 & 0.986997838095605 & 0.0260043238087899 & 0.013002161904395 \tabularnewline
37 & 0.995553347584384 & 0.00889330483123128 & 0.00444665241561564 \tabularnewline
38 & 0.998780879601029 & 0.0024382407979429 & 0.00121912039897145 \tabularnewline
39 & 0.999668426973562 & 0.000663146052875347 & 0.000331573026437673 \tabularnewline
40 & 0.999959692569715 & 8.06148605708601e-05 & 4.030743028543e-05 \tabularnewline
41 & 0.999921632787998 & 0.000156734424003855 & 7.83672120019274e-05 \tabularnewline
42 & 0.99963441894981 & 0.000731162100381849 & 0.000365581050190924 \tabularnewline
43 & 0.997942093887681 & 0.00411581222463766 & 0.00205790611231883 \tabularnewline
44 & 0.988784269192719 & 0.0224314616145624 & 0.0112157308072812 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159480&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.0112835380299278[/C][C]0.0225670760598557[/C][C]0.988716461970072[/C][/ROW]
[ROW][C]17[/C][C]0.00364100491991876[/C][C]0.00728200983983752[/C][C]0.996358995080081[/C][/ROW]
[ROW][C]18[/C][C]0.00109658655340175[/C][C]0.0021931731068035[/C][C]0.998903413446598[/C][/ROW]
[ROW][C]19[/C][C]0.000635230252646643[/C][C]0.00127046050529329[/C][C]0.999364769747353[/C][/ROW]
[ROW][C]20[/C][C]0.0234804034836898[/C][C]0.0469608069673796[/C][C]0.97651959651631[/C][/ROW]
[ROW][C]21[/C][C]0.277822887582572[/C][C]0.555645775165145[/C][C]0.722177112417428[/C][/ROW]
[ROW][C]22[/C][C]0.602798745221847[/C][C]0.794402509556306[/C][C]0.397201254778153[/C][/ROW]
[ROW][C]23[/C][C]0.777270290248255[/C][C]0.44545941950349[/C][C]0.222729709751745[/C][/ROW]
[ROW][C]24[/C][C]0.7611048623321[/C][C]0.4777902753358[/C][C]0.2388951376679[/C][/ROW]
[ROW][C]25[/C][C]0.675929242390624[/C][C]0.648141515218753[/C][C]0.324070757609376[/C][/ROW]
[ROW][C]26[/C][C]0.587873891472632[/C][C]0.824252217054737[/C][C]0.412126108527368[/C][/ROW]
[ROW][C]27[/C][C]0.491434877251297[/C][C]0.982869754502595[/C][C]0.508565122748703[/C][/ROW]
[ROW][C]28[/C][C]0.392662154831043[/C][C]0.785324309662086[/C][C]0.607337845168957[/C][/ROW]
[ROW][C]29[/C][C]0.344672165875506[/C][C]0.689344331751013[/C][C]0.655327834124494[/C][/ROW]
[ROW][C]30[/C][C]0.298037862517943[/C][C]0.596075725035887[/C][C]0.701962137482057[/C][/ROW]
[ROW][C]31[/C][C]0.345049026120766[/C][C]0.690098052241532[/C][C]0.654950973879234[/C][/ROW]
[ROW][C]32[/C][C]0.498931551774813[/C][C]0.997863103549626[/C][C]0.501068448225187[/C][/ROW]
[ROW][C]33[/C][C]0.779892573913579[/C][C]0.440214852172842[/C][C]0.220107426086421[/C][/ROW]
[ROW][C]34[/C][C]0.843079191497218[/C][C]0.313841617005564[/C][C]0.156920808502782[/C][/ROW]
[ROW][C]35[/C][C]0.933746517627973[/C][C]0.132506964744053[/C][C]0.0662534823720265[/C][/ROW]
[ROW][C]36[/C][C]0.986997838095605[/C][C]0.0260043238087899[/C][C]0.013002161904395[/C][/ROW]
[ROW][C]37[/C][C]0.995553347584384[/C][C]0.00889330483123128[/C][C]0.00444665241561564[/C][/ROW]
[ROW][C]38[/C][C]0.998780879601029[/C][C]0.0024382407979429[/C][C]0.00121912039897145[/C][/ROW]
[ROW][C]39[/C][C]0.999668426973562[/C][C]0.000663146052875347[/C][C]0.000331573026437673[/C][/ROW]
[ROW][C]40[/C][C]0.999959692569715[/C][C]8.06148605708601e-05[/C][C]4.030743028543e-05[/C][/ROW]
[ROW][C]41[/C][C]0.999921632787998[/C][C]0.000156734424003855[/C][C]7.83672120019274e-05[/C][/ROW]
[ROW][C]42[/C][C]0.99963441894981[/C][C]0.000731162100381849[/C][C]0.000365581050190924[/C][/ROW]
[ROW][C]43[/C][C]0.997942093887681[/C][C]0.00411581222463766[/C][C]0.00205790611231883[/C][/ROW]
[ROW][C]44[/C][C]0.988784269192719[/C][C]0.0224314616145624[/C][C]0.0112157308072812[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159480&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159480&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.01128353802992780.02256707605985570.988716461970072
170.003641004919918760.007282009839837520.996358995080081
180.001096586553401750.00219317310680350.998903413446598
190.0006352302526466430.001270460505293290.999364769747353
200.02348040348368980.04696080696737960.97651959651631
210.2778228875825720.5556457751651450.722177112417428
220.6027987452218470.7944025095563060.397201254778153
230.7772702902482550.445459419503490.222729709751745
240.76110486233210.47779027533580.2388951376679
250.6759292423906240.6481415152187530.324070757609376
260.5878738914726320.8242522170547370.412126108527368
270.4914348772512970.9828697545025950.508565122748703
280.3926621548310430.7853243096620860.607337845168957
290.3446721658755060.6893443317510130.655327834124494
300.2980378625179430.5960757250358870.701962137482057
310.3450490261207660.6900980522415320.654950973879234
320.4989315517748130.9978631035496260.501068448225187
330.7798925739135790.4402148521728420.220107426086421
340.8430791914972180.3138416170055640.156920808502782
350.9337465176279730.1325069647440530.0662534823720265
360.9869978380956050.02600432380878990.013002161904395
370.9955533475843840.008893304831231280.00444665241561564
380.9987808796010290.00243824079794290.00121912039897145
390.9996684269735620.0006631460528753470.000331573026437673
400.9999596925697158.06148605708601e-054.030743028543e-05
410.9999216327879980.0001567344240038557.83672120019274e-05
420.999634418949810.0007311621003818490.000365581050190924
430.9979420938876810.004115812224637660.00205790611231883
440.9887842691927190.02243146161456240.0112157308072812







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.344827586206897NOK
5% type I error level140.482758620689655NOK
10% type I error level140.482758620689655NOK

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

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



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