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, 16 Dec 2010 14:59:00 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/16/t129251143186kyhf4qgmlt2tw.htm/, Retrieved Fri, 03 May 2024 07:07:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110990, Retrieved Fri, 03 May 2024 07:07:00 +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)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Multiple Regressi...] [2010-12-16 14:59:00] [7a87ed98a7b21a29d6a45388a9b7b229] [Current]
Feedback Forum

Post a new message
Dataseries X:
1368839.00	10192.51	1207763.00	1008380.00	989236.00
1469798.00	10467.48	1368839.00	1207763.00	1008380.00
1498721.00	10274.97	1469798.00	1368839.00	1207763.00
1761769.00	10640.91	1498721.00	1469798.00	1368839.00
1653214.00	10481.60	1761769.00	1498721.00	1469798.00
1599104.00	10568.70	1653214.00	1761769.00	1498721.00
1421179.00	10440.07	1599104.00	1653214.00	1761769.00
1163995.00	10805.87	1421179.00	1599104.00	1653214.00
1037735.00	10717.50	1163995.00	1421179.00	1599104.00
1015407.00	10864.86	1037735.00	1163995.00	1421179.00
1039210.00	10993.41	1015407.00	1037735.00	1163995.00
1258049.00	11109.32	1039210.00	1015407.00	1037735.00
1469445.00	11367.14	1258049.00	1039210.00	1015407.00
1552346.00	11168.31	1469445.00	1258049.00	1039210.00
1549144.00	11150.22	1552346.00	1469445.00	1258049.00
1785895.00	11185.68	1549144.00	1552346.00	1469445.00
1662335.00	11381.15	1785895.00	1549144.00	1552346.00
1629440.00	11679.07	1662335.00	1785895.00	1549144.00
1467430.00	12080.73	1629440.00	1662335.00	1785895.00
1202209.00	12221.93	1467430.00	1629440.00	1662335.00
1076982.00	12463.15	1202209.00	1467430.00	1629440.00
1039367.00	12621.69	1076982.00	1202209.00	1467430.00
1063449.00	12268.63	1039367.00	1076982.00	1202209.00
1335135.00	12354.35	1063449.00	1039367.00	1076982.00
1491602.00	13062.91	1335135.00	1063449.00	1039367.00
1591972.00	13627.64	1491602.00	1335135.00	1063449.00
1641248.00	13408.62	1591972.00	1491602.00	1335135.00
1898849.00	13211.99	1641248.00	1591972.00	1491602.00
1798580.00	13357.74	1898849.00	1641248.00	1591972.00
1762444.00	13895.63	1798580.00	1898849.00	1641248.00
1622044.00	13930.01	1762444.00	1798580.00	1898849.00
1368955.00	13371.72	1622044.00	1762444.00	1798580.00
1262973.00	13264.82	1368955.00	1622044.00	1762444.00
1195650.00	12650.36	1262973.00	1368955.00	1622044.00
1269530.00	12266.39	1195650.00	1262973.00	1368955.00
1479279.00	12262.89	1269530.00	1195650.00	1262973.00
1607819.00	12820.13	1479279.00	1269530.00	1195650.00
1712466.00	12638.32	1607819.00	1479279.00	1269530.00
1721766.00	11350.01	1712466.00	1607819.00	1479279.00
1949843.00	11378.02	1721766.00	1712466.00	1607819.00
1821326.00	11543.55	1949843.00	1721766.00	1712466.00
1757802.00	10850.66	1821326.00	1949843.00	1721766.00
1590367.00	9325.01	1757802.00	1821326.00	1949843.00
1260647.00	8829.04	1590367.00	1757802.00	1821326.00
1149235.00	8776.39	1260647.00	1590367.00	1757802.00
1016367.00	8000.86	1149235.00	1260647.00	1590367.00
1027885.00	7062.93	1016367.00	1149235.00	1260647.00
1262159.00	7608.92	1027885.00	1016367.00	1149235.00
1520854.00	8168.12	1262159.00	1027885.00	1016367.00
1544144.00	8500.33	1520854.00	1262159.00	1027885.00
1564709.00	8447.00	1544144.00	1520854.00	1262159.00
1821776.00	9171.61	1564709.00	1544144.00	1520854.00
1741365.00	9496.28	1821776.00	1564709.00	1544144.00
1623386.00	9712.28	1741365.00	1821776.00	1564709.00
1498658.00	9712.73	1623386.00	1741365.00	1821776.00
1241822.00	10344.84	1498658.00	1623386.00	1741365.00
1136029.00	10428.05	1241822.00	1498658.00	1623386.00




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 6 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110990&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110990&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110990&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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 345982.443779569 + 12.86590127775DJIA[t] + 0.488162532437531Y1[t] + 0.148976790925935Y2[t] + 0.113189507793498Y3[t] + 63514.0036435645M1[t] + 16416.9706865163M2[t] -52070.7870921669M3[t] + 149906.134853546M4[t] -94662.8881851629M5[t] -144095.110759461M6[t] -278527.444988467M7[t] -455213.199363434M8[t] -408260.643328069M9[t] -355094.6489226M10[t] -237124.718321815M11[t] + 809.480894379494t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  345982.443779569 +  12.86590127775DJIA[t] +  0.488162532437531Y1[t] +  0.148976790925935Y2[t] +  0.113189507793498Y3[t] +  63514.0036435645M1[t] +  16416.9706865163M2[t] -52070.7870921669M3[t] +  149906.134853546M4[t] -94662.8881851629M5[t] -144095.110759461M6[t] -278527.444988467M7[t] -455213.199363434M8[t] -408260.643328069M9[t] -355094.6489226M10[t] -237124.718321815M11[t] +  809.480894379494t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110990&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  345982.443779569 +  12.86590127775DJIA[t] +  0.488162532437531Y1[t] +  0.148976790925935Y2[t] +  0.113189507793498Y3[t] +  63514.0036435645M1[t] +  16416.9706865163M2[t] -52070.7870921669M3[t] +  149906.134853546M4[t] -94662.8881851629M5[t] -144095.110759461M6[t] -278527.444988467M7[t] -455213.199363434M8[t] -408260.643328069M9[t] -355094.6489226M10[t] -237124.718321815M11[t] +  809.480894379494t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110990&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110990&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] = + 345982.443779569 + 12.86590127775DJIA[t] + 0.488162532437531Y1[t] + 0.148976790925935Y2[t] + 0.113189507793498Y3[t] + 63514.0036435645M1[t] + 16416.9706865163M2[t] -52070.7870921669M3[t] + 149906.134853546M4[t] -94662.8881851629M5[t] -144095.110759461M6[t] -278527.444988467M7[t] -455213.199363434M8[t] -408260.643328069M9[t] -355094.6489226M10[t] -237124.718321815M11[t] + 809.480894379494t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)345982.44377956959244.5527225.83991e-060
DJIA12.865901277753.2416563.96890.0002920.000146
Y10.4881625324375310.1517733.21640.0025720.001286
Y20.1489767909259350.1670250.89190.3777580.188879
Y30.1131895077934980.1398940.80910.423240.21162
M163514.003643564539904.3049611.59170.1193350.059667
M216416.970686516360049.9468250.27340.7859610.392981
M3-52070.787092166953850.510152-0.9670.3393790.16969
M4149906.13485354644648.0204523.35750.0017350.000868
M5-94662.888185162964018.889479-1.47870.1470610.07353
M6-144095.11075946165355.155099-2.20480.0332810.01664
M7-278527.44498846747294.613622-5.88921e-060
M8-455213.19936343443807.024028-10.391300
M9-408260.64332806952094.223395-7.83700
M10-355094.648922645035.142405-7.884800
M11-237124.71832181525272.447981-9.382700
t809.480894379494338.01392.39480.0214030.010701

\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) & 345982.443779569 & 59244.552722 & 5.8399 & 1e-06 & 0 \tabularnewline
DJIA & 12.86590127775 & 3.241656 & 3.9689 & 0.000292 & 0.000146 \tabularnewline
Y1 & 0.488162532437531 & 0.151773 & 3.2164 & 0.002572 & 0.001286 \tabularnewline
Y2 & 0.148976790925935 & 0.167025 & 0.8919 & 0.377758 & 0.188879 \tabularnewline
Y3 & 0.113189507793498 & 0.139894 & 0.8091 & 0.42324 & 0.21162 \tabularnewline
M1 & 63514.0036435645 & 39904.304961 & 1.5917 & 0.119335 & 0.059667 \tabularnewline
M2 & 16416.9706865163 & 60049.946825 & 0.2734 & 0.785961 & 0.392981 \tabularnewline
M3 & -52070.7870921669 & 53850.510152 & -0.967 & 0.339379 & 0.16969 \tabularnewline
M4 & 149906.134853546 & 44648.020452 & 3.3575 & 0.001735 & 0.000868 \tabularnewline
M5 & -94662.8881851629 & 64018.889479 & -1.4787 & 0.147061 & 0.07353 \tabularnewline
M6 & -144095.110759461 & 65355.155099 & -2.2048 & 0.033281 & 0.01664 \tabularnewline
M7 & -278527.444988467 & 47294.613622 & -5.8892 & 1e-06 & 0 \tabularnewline
M8 & -455213.199363434 & 43807.024028 & -10.3913 & 0 & 0 \tabularnewline
M9 & -408260.643328069 & 52094.223395 & -7.837 & 0 & 0 \tabularnewline
M10 & -355094.6489226 & 45035.142405 & -7.8848 & 0 & 0 \tabularnewline
M11 & -237124.718321815 & 25272.447981 & -9.3827 & 0 & 0 \tabularnewline
t & 809.480894379494 & 338.0139 & 2.3948 & 0.021403 & 0.010701 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110990&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]345982.443779569[/C][C]59244.552722[/C][C]5.8399[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]DJIA[/C][C]12.86590127775[/C][C]3.241656[/C][C]3.9689[/C][C]0.000292[/C][C]0.000146[/C][/ROW]
[ROW][C]Y1[/C][C]0.488162532437531[/C][C]0.151773[/C][C]3.2164[/C][C]0.002572[/C][C]0.001286[/C][/ROW]
[ROW][C]Y2[/C][C]0.148976790925935[/C][C]0.167025[/C][C]0.8919[/C][C]0.377758[/C][C]0.188879[/C][/ROW]
[ROW][C]Y3[/C][C]0.113189507793498[/C][C]0.139894[/C][C]0.8091[/C][C]0.42324[/C][C]0.21162[/C][/ROW]
[ROW][C]M1[/C][C]63514.0036435645[/C][C]39904.304961[/C][C]1.5917[/C][C]0.119335[/C][C]0.059667[/C][/ROW]
[ROW][C]M2[/C][C]16416.9706865163[/C][C]60049.946825[/C][C]0.2734[/C][C]0.785961[/C][C]0.392981[/C][/ROW]
[ROW][C]M3[/C][C]-52070.7870921669[/C][C]53850.510152[/C][C]-0.967[/C][C]0.339379[/C][C]0.16969[/C][/ROW]
[ROW][C]M4[/C][C]149906.134853546[/C][C]44648.020452[/C][C]3.3575[/C][C]0.001735[/C][C]0.000868[/C][/ROW]
[ROW][C]M5[/C][C]-94662.8881851629[/C][C]64018.889479[/C][C]-1.4787[/C][C]0.147061[/C][C]0.07353[/C][/ROW]
[ROW][C]M6[/C][C]-144095.110759461[/C][C]65355.155099[/C][C]-2.2048[/C][C]0.033281[/C][C]0.01664[/C][/ROW]
[ROW][C]M7[/C][C]-278527.444988467[/C][C]47294.613622[/C][C]-5.8892[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-455213.199363434[/C][C]43807.024028[/C][C]-10.3913[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-408260.643328069[/C][C]52094.223395[/C][C]-7.837[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-355094.6489226[/C][C]45035.142405[/C][C]-7.8848[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-237124.718321815[/C][C]25272.447981[/C][C]-9.3827[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t[/C][C]809.480894379494[/C][C]338.0139[/C][C]2.3948[/C][C]0.021403[/C][C]0.010701[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110990&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110990&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)345982.44377956959244.5527225.83991e-060
DJIA12.865901277753.2416563.96890.0002920.000146
Y10.4881625324375310.1517733.21640.0025720.001286
Y20.1489767909259350.1670250.89190.3777580.188879
Y30.1131895077934980.1398940.80910.423240.21162
M163514.003643564539904.3049611.59170.1193350.059667
M216416.970686516360049.9468250.27340.7859610.392981
M3-52070.787092166953850.510152-0.9670.3393790.16969
M4149906.13485354644648.0204523.35750.0017350.000868
M5-94662.888185162964018.889479-1.47870.1470610.07353
M6-144095.11075946165355.155099-2.20480.0332810.01664
M7-278527.44498846747294.613622-5.88921e-060
M8-455213.19936343443807.024028-10.391300
M9-408260.64332806952094.223395-7.83700
M10-355094.648922645035.142405-7.884800
M11-237124.71832181525272.447981-9.382700
t809.480894379494338.01392.39480.0214030.010701







Multiple Linear Regression - Regression Statistics
Multiple R0.996336264351105
R-squared0.992685951661115
Adjusted R-squared0.989760332325561
F-TEST (value)339.307967922339
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26454.3175036557
Sum Squared Residuals27993236583.3689

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.996336264351105 \tabularnewline
R-squared & 0.992685951661115 \tabularnewline
Adjusted R-squared & 0.989760332325561 \tabularnewline
F-TEST (value) & 339.307967922339 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 26454.3175036557 \tabularnewline
Sum Squared Residuals & 27993236583.3689 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110990&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.996336264351105[/C][/ROW]
[ROW][C]R-squared[/C][C]0.992685951661115[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.989760332325561[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]339.307967922339[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]26454.3175036557[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]27993236583.3689[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110990&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110990&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.996336264351105
R-squared0.992685951661115
Adjusted R-squared0.989760332325561
F-TEST (value)339.307967922339
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26454.3175036557
Sum Squared Residuals27993236583.3689







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
113688391393222.75277984-24383.7527798437
214697981460974.545108818823.45489118923
314987211486668.5038894712052.496110535
417617691741554.8405612620214.1594387354
516532141639892.1647582813321.8352417208
615991041581859.3864042917244.613595707
714211791433769.21566521-12590.2156652135
811639951155394.549112558600.45088744576
910377351043840.65381177-6105.6538117671
101015407979622.95680668935784.0431933114
1110392101041236.24689217-2026.24689217068
1212580491274663.80444328-16614.8044432789
1314694451450152.1753091519292.8246908541
1415523461539798.2846060412547.7153939645
1515491441568619.80205982-19475.8020598213
1617858951806577.46746442-20682.4674644227
1716623351689812.29046102-27477.2904610172
1816294401619613.167006349826.8329936645
1914674301483490.08194721-16060.0819472071
2012022091211456.97472636-9247.97472636082
2110769821104992.47058993-28010.4705899322
2210393671042026.97080501-2659.97080500856
2310634491089225.56249363-25776.5624936311
2413351351320240.4123903814894.5876096201
2514916021525637.12146894-34035.1214689353
2615919721606197.39494394-14225.39494394
2716412481638760.057902732487.94209726907
2818988491895734.558744133114.44125586782
2917985801798303.18947638276.81052362487
3017624441751607.4149751110836.5850248893
3116220441615006.626602017037.37339798946
3213689551346676.6054689922278.3945310066
3312629731244508.1528804418464.8471195628
3411956501185245.411035510404.5889644959
3512695301221784.258651947745.7413481024
3614792791473713.260199635565.73980037216
3716078191650983.89066225-43164.8906622513
3817124661704715.77476357750.22523649741
3917217661714437.835911857328.16408815093
4019498431952263.8777702-2420.87777020246
4118213261835203.10075281-13877.1007528114
4217578021749959.362521777842.63747822778
4315903671572367.4833217717999.5166782263
4412606471284364.23752591-23717.237525907
4511492351138357.7552763210877.2447236826
4610163671059895.6613528-43528.6613527988
4710278851047827.9319623-19942.9319623007
4812621591266004.52296671-3845.52296671334
4915208541438563.0597798282290.9402201763
5015441441559040.00057771-14896.0005777111
5115647091567101.80023613-2392.80023613371
5218217761822001.25545998-225.25545997812
5317413651713609.2545515227755.7454484828
5416233861669136.66909249-45750.6690924886
5514986581495044.59246383613.40753620485
5612418221239735.633166182086.36683381545
5711360291131254.967441554774.03255845393

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1368839 & 1393222.75277984 & -24383.7527798437 \tabularnewline
2 & 1469798 & 1460974.54510881 & 8823.45489118923 \tabularnewline
3 & 1498721 & 1486668.50388947 & 12052.496110535 \tabularnewline
4 & 1761769 & 1741554.84056126 & 20214.1594387354 \tabularnewline
5 & 1653214 & 1639892.16475828 & 13321.8352417208 \tabularnewline
6 & 1599104 & 1581859.38640429 & 17244.613595707 \tabularnewline
7 & 1421179 & 1433769.21566521 & -12590.2156652135 \tabularnewline
8 & 1163995 & 1155394.54911255 & 8600.45088744576 \tabularnewline
9 & 1037735 & 1043840.65381177 & -6105.6538117671 \tabularnewline
10 & 1015407 & 979622.956806689 & 35784.0431933114 \tabularnewline
11 & 1039210 & 1041236.24689217 & -2026.24689217068 \tabularnewline
12 & 1258049 & 1274663.80444328 & -16614.8044432789 \tabularnewline
13 & 1469445 & 1450152.17530915 & 19292.8246908541 \tabularnewline
14 & 1552346 & 1539798.28460604 & 12547.7153939645 \tabularnewline
15 & 1549144 & 1568619.80205982 & -19475.8020598213 \tabularnewline
16 & 1785895 & 1806577.46746442 & -20682.4674644227 \tabularnewline
17 & 1662335 & 1689812.29046102 & -27477.2904610172 \tabularnewline
18 & 1629440 & 1619613.16700634 & 9826.8329936645 \tabularnewline
19 & 1467430 & 1483490.08194721 & -16060.0819472071 \tabularnewline
20 & 1202209 & 1211456.97472636 & -9247.97472636082 \tabularnewline
21 & 1076982 & 1104992.47058993 & -28010.4705899322 \tabularnewline
22 & 1039367 & 1042026.97080501 & -2659.97080500856 \tabularnewline
23 & 1063449 & 1089225.56249363 & -25776.5624936311 \tabularnewline
24 & 1335135 & 1320240.41239038 & 14894.5876096201 \tabularnewline
25 & 1491602 & 1525637.12146894 & -34035.1214689353 \tabularnewline
26 & 1591972 & 1606197.39494394 & -14225.39494394 \tabularnewline
27 & 1641248 & 1638760.05790273 & 2487.94209726907 \tabularnewline
28 & 1898849 & 1895734.55874413 & 3114.44125586782 \tabularnewline
29 & 1798580 & 1798303.18947638 & 276.81052362487 \tabularnewline
30 & 1762444 & 1751607.41497511 & 10836.5850248893 \tabularnewline
31 & 1622044 & 1615006.62660201 & 7037.37339798946 \tabularnewline
32 & 1368955 & 1346676.60546899 & 22278.3945310066 \tabularnewline
33 & 1262973 & 1244508.15288044 & 18464.8471195628 \tabularnewline
34 & 1195650 & 1185245.4110355 & 10404.5889644959 \tabularnewline
35 & 1269530 & 1221784.2586519 & 47745.7413481024 \tabularnewline
36 & 1479279 & 1473713.26019963 & 5565.73980037216 \tabularnewline
37 & 1607819 & 1650983.89066225 & -43164.8906622513 \tabularnewline
38 & 1712466 & 1704715.7747635 & 7750.22523649741 \tabularnewline
39 & 1721766 & 1714437.83591185 & 7328.16408815093 \tabularnewline
40 & 1949843 & 1952263.8777702 & -2420.87777020246 \tabularnewline
41 & 1821326 & 1835203.10075281 & -13877.1007528114 \tabularnewline
42 & 1757802 & 1749959.36252177 & 7842.63747822778 \tabularnewline
43 & 1590367 & 1572367.48332177 & 17999.5166782263 \tabularnewline
44 & 1260647 & 1284364.23752591 & -23717.237525907 \tabularnewline
45 & 1149235 & 1138357.75527632 & 10877.2447236826 \tabularnewline
46 & 1016367 & 1059895.6613528 & -43528.6613527988 \tabularnewline
47 & 1027885 & 1047827.9319623 & -19942.9319623007 \tabularnewline
48 & 1262159 & 1266004.52296671 & -3845.52296671334 \tabularnewline
49 & 1520854 & 1438563.05977982 & 82290.9402201763 \tabularnewline
50 & 1544144 & 1559040.00057771 & -14896.0005777111 \tabularnewline
51 & 1564709 & 1567101.80023613 & -2392.80023613371 \tabularnewline
52 & 1821776 & 1822001.25545998 & -225.25545997812 \tabularnewline
53 & 1741365 & 1713609.25455152 & 27755.7454484828 \tabularnewline
54 & 1623386 & 1669136.66909249 & -45750.6690924886 \tabularnewline
55 & 1498658 & 1495044.5924638 & 3613.40753620485 \tabularnewline
56 & 1241822 & 1239735.63316618 & 2086.36683381545 \tabularnewline
57 & 1136029 & 1131254.96744155 & 4774.03255845393 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110990&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]1368839[/C][C]1393222.75277984[/C][C]-24383.7527798437[/C][/ROW]
[ROW][C]2[/C][C]1469798[/C][C]1460974.54510881[/C][C]8823.45489118923[/C][/ROW]
[ROW][C]3[/C][C]1498721[/C][C]1486668.50388947[/C][C]12052.496110535[/C][/ROW]
[ROW][C]4[/C][C]1761769[/C][C]1741554.84056126[/C][C]20214.1594387354[/C][/ROW]
[ROW][C]5[/C][C]1653214[/C][C]1639892.16475828[/C][C]13321.8352417208[/C][/ROW]
[ROW][C]6[/C][C]1599104[/C][C]1581859.38640429[/C][C]17244.613595707[/C][/ROW]
[ROW][C]7[/C][C]1421179[/C][C]1433769.21566521[/C][C]-12590.2156652135[/C][/ROW]
[ROW][C]8[/C][C]1163995[/C][C]1155394.54911255[/C][C]8600.45088744576[/C][/ROW]
[ROW][C]9[/C][C]1037735[/C][C]1043840.65381177[/C][C]-6105.6538117671[/C][/ROW]
[ROW][C]10[/C][C]1015407[/C][C]979622.956806689[/C][C]35784.0431933114[/C][/ROW]
[ROW][C]11[/C][C]1039210[/C][C]1041236.24689217[/C][C]-2026.24689217068[/C][/ROW]
[ROW][C]12[/C][C]1258049[/C][C]1274663.80444328[/C][C]-16614.8044432789[/C][/ROW]
[ROW][C]13[/C][C]1469445[/C][C]1450152.17530915[/C][C]19292.8246908541[/C][/ROW]
[ROW][C]14[/C][C]1552346[/C][C]1539798.28460604[/C][C]12547.7153939645[/C][/ROW]
[ROW][C]15[/C][C]1549144[/C][C]1568619.80205982[/C][C]-19475.8020598213[/C][/ROW]
[ROW][C]16[/C][C]1785895[/C][C]1806577.46746442[/C][C]-20682.4674644227[/C][/ROW]
[ROW][C]17[/C][C]1662335[/C][C]1689812.29046102[/C][C]-27477.2904610172[/C][/ROW]
[ROW][C]18[/C][C]1629440[/C][C]1619613.16700634[/C][C]9826.8329936645[/C][/ROW]
[ROW][C]19[/C][C]1467430[/C][C]1483490.08194721[/C][C]-16060.0819472071[/C][/ROW]
[ROW][C]20[/C][C]1202209[/C][C]1211456.97472636[/C][C]-9247.97472636082[/C][/ROW]
[ROW][C]21[/C][C]1076982[/C][C]1104992.47058993[/C][C]-28010.4705899322[/C][/ROW]
[ROW][C]22[/C][C]1039367[/C][C]1042026.97080501[/C][C]-2659.97080500856[/C][/ROW]
[ROW][C]23[/C][C]1063449[/C][C]1089225.56249363[/C][C]-25776.5624936311[/C][/ROW]
[ROW][C]24[/C][C]1335135[/C][C]1320240.41239038[/C][C]14894.5876096201[/C][/ROW]
[ROW][C]25[/C][C]1491602[/C][C]1525637.12146894[/C][C]-34035.1214689353[/C][/ROW]
[ROW][C]26[/C][C]1591972[/C][C]1606197.39494394[/C][C]-14225.39494394[/C][/ROW]
[ROW][C]27[/C][C]1641248[/C][C]1638760.05790273[/C][C]2487.94209726907[/C][/ROW]
[ROW][C]28[/C][C]1898849[/C][C]1895734.55874413[/C][C]3114.44125586782[/C][/ROW]
[ROW][C]29[/C][C]1798580[/C][C]1798303.18947638[/C][C]276.81052362487[/C][/ROW]
[ROW][C]30[/C][C]1762444[/C][C]1751607.41497511[/C][C]10836.5850248893[/C][/ROW]
[ROW][C]31[/C][C]1622044[/C][C]1615006.62660201[/C][C]7037.37339798946[/C][/ROW]
[ROW][C]32[/C][C]1368955[/C][C]1346676.60546899[/C][C]22278.3945310066[/C][/ROW]
[ROW][C]33[/C][C]1262973[/C][C]1244508.15288044[/C][C]18464.8471195628[/C][/ROW]
[ROW][C]34[/C][C]1195650[/C][C]1185245.4110355[/C][C]10404.5889644959[/C][/ROW]
[ROW][C]35[/C][C]1269530[/C][C]1221784.2586519[/C][C]47745.7413481024[/C][/ROW]
[ROW][C]36[/C][C]1479279[/C][C]1473713.26019963[/C][C]5565.73980037216[/C][/ROW]
[ROW][C]37[/C][C]1607819[/C][C]1650983.89066225[/C][C]-43164.8906622513[/C][/ROW]
[ROW][C]38[/C][C]1712466[/C][C]1704715.7747635[/C][C]7750.22523649741[/C][/ROW]
[ROW][C]39[/C][C]1721766[/C][C]1714437.83591185[/C][C]7328.16408815093[/C][/ROW]
[ROW][C]40[/C][C]1949843[/C][C]1952263.8777702[/C][C]-2420.87777020246[/C][/ROW]
[ROW][C]41[/C][C]1821326[/C][C]1835203.10075281[/C][C]-13877.1007528114[/C][/ROW]
[ROW][C]42[/C][C]1757802[/C][C]1749959.36252177[/C][C]7842.63747822778[/C][/ROW]
[ROW][C]43[/C][C]1590367[/C][C]1572367.48332177[/C][C]17999.5166782263[/C][/ROW]
[ROW][C]44[/C][C]1260647[/C][C]1284364.23752591[/C][C]-23717.237525907[/C][/ROW]
[ROW][C]45[/C][C]1149235[/C][C]1138357.75527632[/C][C]10877.2447236826[/C][/ROW]
[ROW][C]46[/C][C]1016367[/C][C]1059895.6613528[/C][C]-43528.6613527988[/C][/ROW]
[ROW][C]47[/C][C]1027885[/C][C]1047827.9319623[/C][C]-19942.9319623007[/C][/ROW]
[ROW][C]48[/C][C]1262159[/C][C]1266004.52296671[/C][C]-3845.52296671334[/C][/ROW]
[ROW][C]49[/C][C]1520854[/C][C]1438563.05977982[/C][C]82290.9402201763[/C][/ROW]
[ROW][C]50[/C][C]1544144[/C][C]1559040.00057771[/C][C]-14896.0005777111[/C][/ROW]
[ROW][C]51[/C][C]1564709[/C][C]1567101.80023613[/C][C]-2392.80023613371[/C][/ROW]
[ROW][C]52[/C][C]1821776[/C][C]1822001.25545998[/C][C]-225.25545997812[/C][/ROW]
[ROW][C]53[/C][C]1741365[/C][C]1713609.25455152[/C][C]27755.7454484828[/C][/ROW]
[ROW][C]54[/C][C]1623386[/C][C]1669136.66909249[/C][C]-45750.6690924886[/C][/ROW]
[ROW][C]55[/C][C]1498658[/C][C]1495044.5924638[/C][C]3613.40753620485[/C][/ROW]
[ROW][C]56[/C][C]1241822[/C][C]1239735.63316618[/C][C]2086.36683381545[/C][/ROW]
[ROW][C]57[/C][C]1136029[/C][C]1131254.96744155[/C][C]4774.03255845393[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110990&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110990&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
113688391393222.75277984-24383.7527798437
214697981460974.545108818823.45489118923
314987211486668.5038894712052.496110535
417617691741554.8405612620214.1594387354
516532141639892.1647582813321.8352417208
615991041581859.3864042917244.613595707
714211791433769.21566521-12590.2156652135
811639951155394.549112558600.45088744576
910377351043840.65381177-6105.6538117671
101015407979622.95680668935784.0431933114
1110392101041236.24689217-2026.24689217068
1212580491274663.80444328-16614.8044432789
1314694451450152.1753091519292.8246908541
1415523461539798.2846060412547.7153939645
1515491441568619.80205982-19475.8020598213
1617858951806577.46746442-20682.4674644227
1716623351689812.29046102-27477.2904610172
1816294401619613.167006349826.8329936645
1914674301483490.08194721-16060.0819472071
2012022091211456.97472636-9247.97472636082
2110769821104992.47058993-28010.4705899322
2210393671042026.97080501-2659.97080500856
2310634491089225.56249363-25776.5624936311
2413351351320240.4123903814894.5876096201
2514916021525637.12146894-34035.1214689353
2615919721606197.39494394-14225.39494394
2716412481638760.057902732487.94209726907
2818988491895734.558744133114.44125586782
2917985801798303.18947638276.81052362487
3017624441751607.4149751110836.5850248893
3116220441615006.626602017037.37339798946
3213689551346676.6054689922278.3945310066
3312629731244508.1528804418464.8471195628
3411956501185245.411035510404.5889644959
3512695301221784.258651947745.7413481024
3614792791473713.260199635565.73980037216
3716078191650983.89066225-43164.8906622513
3817124661704715.77476357750.22523649741
3917217661714437.835911857328.16408815093
4019498431952263.8777702-2420.87777020246
4118213261835203.10075281-13877.1007528114
4217578021749959.362521777842.63747822778
4315903671572367.4833217717999.5166782263
4412606471284364.23752591-23717.237525907
4511492351138357.7552763210877.2447236826
4610163671059895.6613528-43528.6613527988
4710278851047827.9319623-19942.9319623007
4812621591266004.52296671-3845.52296671334
4915208541438563.0597798282290.9402201763
5015441441559040.00057771-14896.0005777111
5115647091567101.80023613-2392.80023613371
5218217761822001.25545998-225.25545997812
5317413651713609.2545515227755.7454484828
5416233861669136.66909249-45750.6690924886
5514986581495044.59246383613.40753620485
5612418221239735.633166182086.36683381545
5711360291131254.967441554774.03255845393







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.2318409409077820.4636818818155640.768159059092218
210.1171498980733350.234299796146670.882850101926665
220.0516365863499610.1032731726999220.948363413650039
230.02601421009516440.05202842019032890.973985789904836
240.02912104230242280.05824208460484560.970878957697577
250.02662540143029510.05325080286059030.973374598569705
260.02130133020412660.04260266040825330.978698669795873
270.06368902096432270.1273780419286450.936310979035677
280.04012978091128190.08025956182256380.959870219088718
290.03334100439314640.06668200878629280.966658995606854
300.01633648368952560.03267296737905110.983663516310474
310.02271752978033990.04543505956067990.97728247021966
320.01317315664270250.02634631328540510.986826843357297
330.08327631471348390.1665526294269680.916723685286516
340.1586110767230620.3172221534461240.841388923276938
350.3959623837291240.7919247674582480.604037616270876
360.316489916259880.632979832519760.68351008374012
370.3356091802427170.6712183604854340.664390819757283

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.231840940907782 & 0.463681881815564 & 0.768159059092218 \tabularnewline
21 & 0.117149898073335 & 0.23429979614667 & 0.882850101926665 \tabularnewline
22 & 0.051636586349961 & 0.103273172699922 & 0.948363413650039 \tabularnewline
23 & 0.0260142100951644 & 0.0520284201903289 & 0.973985789904836 \tabularnewline
24 & 0.0291210423024228 & 0.0582420846048456 & 0.970878957697577 \tabularnewline
25 & 0.0266254014302951 & 0.0532508028605903 & 0.973374598569705 \tabularnewline
26 & 0.0213013302041266 & 0.0426026604082533 & 0.978698669795873 \tabularnewline
27 & 0.0636890209643227 & 0.127378041928645 & 0.936310979035677 \tabularnewline
28 & 0.0401297809112819 & 0.0802595618225638 & 0.959870219088718 \tabularnewline
29 & 0.0333410043931464 & 0.0666820087862928 & 0.966658995606854 \tabularnewline
30 & 0.0163364836895256 & 0.0326729673790511 & 0.983663516310474 \tabularnewline
31 & 0.0227175297803399 & 0.0454350595606799 & 0.97728247021966 \tabularnewline
32 & 0.0131731566427025 & 0.0263463132854051 & 0.986826843357297 \tabularnewline
33 & 0.0832763147134839 & 0.166552629426968 & 0.916723685286516 \tabularnewline
34 & 0.158611076723062 & 0.317222153446124 & 0.841388923276938 \tabularnewline
35 & 0.395962383729124 & 0.791924767458248 & 0.604037616270876 \tabularnewline
36 & 0.31648991625988 & 0.63297983251976 & 0.68351008374012 \tabularnewline
37 & 0.335609180242717 & 0.671218360485434 & 0.664390819757283 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110990&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]20[/C][C]0.231840940907782[/C][C]0.463681881815564[/C][C]0.768159059092218[/C][/ROW]
[ROW][C]21[/C][C]0.117149898073335[/C][C]0.23429979614667[/C][C]0.882850101926665[/C][/ROW]
[ROW][C]22[/C][C]0.051636586349961[/C][C]0.103273172699922[/C][C]0.948363413650039[/C][/ROW]
[ROW][C]23[/C][C]0.0260142100951644[/C][C]0.0520284201903289[/C][C]0.973985789904836[/C][/ROW]
[ROW][C]24[/C][C]0.0291210423024228[/C][C]0.0582420846048456[/C][C]0.970878957697577[/C][/ROW]
[ROW][C]25[/C][C]0.0266254014302951[/C][C]0.0532508028605903[/C][C]0.973374598569705[/C][/ROW]
[ROW][C]26[/C][C]0.0213013302041266[/C][C]0.0426026604082533[/C][C]0.978698669795873[/C][/ROW]
[ROW][C]27[/C][C]0.0636890209643227[/C][C]0.127378041928645[/C][C]0.936310979035677[/C][/ROW]
[ROW][C]28[/C][C]0.0401297809112819[/C][C]0.0802595618225638[/C][C]0.959870219088718[/C][/ROW]
[ROW][C]29[/C][C]0.0333410043931464[/C][C]0.0666820087862928[/C][C]0.966658995606854[/C][/ROW]
[ROW][C]30[/C][C]0.0163364836895256[/C][C]0.0326729673790511[/C][C]0.983663516310474[/C][/ROW]
[ROW][C]31[/C][C]0.0227175297803399[/C][C]0.0454350595606799[/C][C]0.97728247021966[/C][/ROW]
[ROW][C]32[/C][C]0.0131731566427025[/C][C]0.0263463132854051[/C][C]0.986826843357297[/C][/ROW]
[ROW][C]33[/C][C]0.0832763147134839[/C][C]0.166552629426968[/C][C]0.916723685286516[/C][/ROW]
[ROW][C]34[/C][C]0.158611076723062[/C][C]0.317222153446124[/C][C]0.841388923276938[/C][/ROW]
[ROW][C]35[/C][C]0.395962383729124[/C][C]0.791924767458248[/C][C]0.604037616270876[/C][/ROW]
[ROW][C]36[/C][C]0.31648991625988[/C][C]0.63297983251976[/C][C]0.68351008374012[/C][/ROW]
[ROW][C]37[/C][C]0.335609180242717[/C][C]0.671218360485434[/C][C]0.664390819757283[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110990&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110990&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
200.2318409409077820.4636818818155640.768159059092218
210.1171498980733350.234299796146670.882850101926665
220.0516365863499610.1032731726999220.948363413650039
230.02601421009516440.05202842019032890.973985789904836
240.02912104230242280.05824208460484560.970878957697577
250.02662540143029510.05325080286059030.973374598569705
260.02130133020412660.04260266040825330.978698669795873
270.06368902096432270.1273780419286450.936310979035677
280.04012978091128190.08025956182256380.959870219088718
290.03334100439314640.06668200878629280.966658995606854
300.01633648368952560.03267296737905110.983663516310474
310.02271752978033990.04543505956067990.97728247021966
320.01317315664270250.02634631328540510.986826843357297
330.08327631471348390.1665526294269680.916723685286516
340.1586110767230620.3172221534461240.841388923276938
350.3959623837291240.7919247674582480.604037616270876
360.316489916259880.632979832519760.68351008374012
370.3356091802427170.6712183604854340.664390819757283







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

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

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



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