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 15:01:16 +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/t1292511562athtjbplsy1p3cq.htm/, Retrieved Fri, 03 May 2024 07:48:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110993, Retrieved Fri, 03 May 2024 07:48:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact136
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 15:01:16] [7a87ed98a7b21a29d6a45388a9b7b229] [Current]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 9 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110993&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]9 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110993&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110993&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 time9 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 405212.376212214 + 14.2876090146007DJIA[t] + 0.433366643601294Y1[t] + 0.117304164406053Y2[t] + 0.00146315681682760Y3[t] + 0.198193232954481Y4[t] -20549.0296296705M1[t] -58844.700821326M2[t] + 122216.654744061M3[t] -135295.969565926M4[t] -196839.08413439M5[t] -314012.44835748M6[t] -562394.662160664M7[t] -520562.784357975M8[t] -489669.430133837M9[t] -377128.669217277M10[t] -98765.5693057837M11[t] + 737.570519139868t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  405212.376212214 +  14.2876090146007DJIA[t] +  0.433366643601294Y1[t] +  0.117304164406053Y2[t] +  0.00146315681682760Y3[t] +  0.198193232954481Y4[t] -20549.0296296705M1[t] -58844.700821326M2[t] +  122216.654744061M3[t] -135295.969565926M4[t] -196839.08413439M5[t] -314012.44835748M6[t] -562394.662160664M7[t] -520562.784357975M8[t] -489669.430133837M9[t] -377128.669217277M10[t] -98765.5693057837M11[t] +  737.570519139868t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110993&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  405212.376212214 +  14.2876090146007DJIA[t] +  0.433366643601294Y1[t] +  0.117304164406053Y2[t] +  0.00146315681682760Y3[t] +  0.198193232954481Y4[t] -20549.0296296705M1[t] -58844.700821326M2[t] +  122216.654744061M3[t] -135295.969565926M4[t] -196839.08413439M5[t] -314012.44835748M6[t] -562394.662160664M7[t] -520562.784357975M8[t] -489669.430133837M9[t] -377128.669217277M10[t] -98765.5693057837M11[t] +  737.570519139868t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110993&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110993&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] = + 405212.376212214 + 14.2876090146007DJIA[t] + 0.433366643601294Y1[t] + 0.117304164406053Y2[t] + 0.00146315681682760Y3[t] + 0.198193232954481Y4[t] -20549.0296296705M1[t] -58844.700821326M2[t] + 122216.654744061M3[t] -135295.969565926M4[t] -196839.08413439M5[t] -314012.44835748M6[t] -562394.662160664M7[t] -520562.784357975M8[t] -489669.430133837M9[t] -377128.669217277M10[t] -98765.5693057837M11[t] + 737.570519139868t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)405212.37621221474469.2183995.44133e-062e-06
DJIA14.28760901460073.4824764.10270.0002080.000104
Y10.4333666436012940.1532492.82790.0074380.003719
Y20.1173041644060530.1684550.69640.4904450.245223
Y30.001463156816827600.1666950.00880.9930430.496521
Y40.1981932329544810.1483771.33570.1895780.094789
M1-20549.029629670541758.628709-0.49210.6254860.312743
M2-58844.70082132661514.799407-0.95660.3448190.172409
M3122216.65474406153218.6065552.29650.0272520.013626
M4-135295.96956592646548.744748-2.90650.0060670.003033
M5-196839.0841343963011.720563-3.12380.0034090.001705
M6-314012.4483574867733.758776-4.6364.1e-052.1e-05
M7-562394.66216066466408.528594-8.468700
M8-520562.78435797585788.088171-6.06800
M9-489669.43013383786000.973134-5.69381e-061e-06
M10-377128.66921727772659.905333-5.19037e-064e-06
M11-98765.569305783744491.573327-2.21990.0324690.016235
t737.570519139868341.7196372.15840.0372780.018639

\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) & 405212.376212214 & 74469.218399 & 5.4413 & 3e-06 & 2e-06 \tabularnewline
DJIA & 14.2876090146007 & 3.482476 & 4.1027 & 0.000208 & 0.000104 \tabularnewline
Y1 & 0.433366643601294 & 0.153249 & 2.8279 & 0.007438 & 0.003719 \tabularnewline
Y2 & 0.117304164406053 & 0.168455 & 0.6964 & 0.490445 & 0.245223 \tabularnewline
Y3 & 0.00146315681682760 & 0.166695 & 0.0088 & 0.993043 & 0.496521 \tabularnewline
Y4 & 0.198193232954481 & 0.148377 & 1.3357 & 0.189578 & 0.094789 \tabularnewline
M1 & -20549.0296296705 & 41758.628709 & -0.4921 & 0.625486 & 0.312743 \tabularnewline
M2 & -58844.700821326 & 61514.799407 & -0.9566 & 0.344819 & 0.172409 \tabularnewline
M3 & 122216.654744061 & 53218.606555 & 2.2965 & 0.027252 & 0.013626 \tabularnewline
M4 & -135295.969565926 & 46548.744748 & -2.9065 & 0.006067 & 0.003033 \tabularnewline
M5 & -196839.08413439 & 63011.720563 & -3.1238 & 0.003409 & 0.001705 \tabularnewline
M6 & -314012.44835748 & 67733.758776 & -4.636 & 4.1e-05 & 2.1e-05 \tabularnewline
M7 & -562394.662160664 & 66408.528594 & -8.4687 & 0 & 0 \tabularnewline
M8 & -520562.784357975 & 85788.088171 & -6.068 & 0 & 0 \tabularnewline
M9 & -489669.430133837 & 86000.973134 & -5.6938 & 1e-06 & 1e-06 \tabularnewline
M10 & -377128.669217277 & 72659.905333 & -5.1903 & 7e-06 & 4e-06 \tabularnewline
M11 & -98765.5693057837 & 44491.573327 & -2.2199 & 0.032469 & 0.016235 \tabularnewline
t & 737.570519139868 & 341.719637 & 2.1584 & 0.037278 & 0.018639 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110993&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]405212.376212214[/C][C]74469.218399[/C][C]5.4413[/C][C]3e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]DJIA[/C][C]14.2876090146007[/C][C]3.482476[/C][C]4.1027[/C][C]0.000208[/C][C]0.000104[/C][/ROW]
[ROW][C]Y1[/C][C]0.433366643601294[/C][C]0.153249[/C][C]2.8279[/C][C]0.007438[/C][C]0.003719[/C][/ROW]
[ROW][C]Y2[/C][C]0.117304164406053[/C][C]0.168455[/C][C]0.6964[/C][C]0.490445[/C][C]0.245223[/C][/ROW]
[ROW][C]Y3[/C][C]0.00146315681682760[/C][C]0.166695[/C][C]0.0088[/C][C]0.993043[/C][C]0.496521[/C][/ROW]
[ROW][C]Y4[/C][C]0.198193232954481[/C][C]0.148377[/C][C]1.3357[/C][C]0.189578[/C][C]0.094789[/C][/ROW]
[ROW][C]M1[/C][C]-20549.0296296705[/C][C]41758.628709[/C][C]-0.4921[/C][C]0.625486[/C][C]0.312743[/C][/ROW]
[ROW][C]M2[/C][C]-58844.700821326[/C][C]61514.799407[/C][C]-0.9566[/C][C]0.344819[/C][C]0.172409[/C][/ROW]
[ROW][C]M3[/C][C]122216.654744061[/C][C]53218.606555[/C][C]2.2965[/C][C]0.027252[/C][C]0.013626[/C][/ROW]
[ROW][C]M4[/C][C]-135295.969565926[/C][C]46548.744748[/C][C]-2.9065[/C][C]0.006067[/C][C]0.003033[/C][/ROW]
[ROW][C]M5[/C][C]-196839.08413439[/C][C]63011.720563[/C][C]-3.1238[/C][C]0.003409[/C][C]0.001705[/C][/ROW]
[ROW][C]M6[/C][C]-314012.44835748[/C][C]67733.758776[/C][C]-4.636[/C][C]4.1e-05[/C][C]2.1e-05[/C][/ROW]
[ROW][C]M7[/C][C]-562394.662160664[/C][C]66408.528594[/C][C]-8.4687[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-520562.784357975[/C][C]85788.088171[/C][C]-6.068[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-489669.430133837[/C][C]86000.973134[/C][C]-5.6938[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M10[/C][C]-377128.669217277[/C][C]72659.905333[/C][C]-5.1903[/C][C]7e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M11[/C][C]-98765.5693057837[/C][C]44491.573327[/C][C]-2.2199[/C][C]0.032469[/C][C]0.016235[/C][/ROW]
[ROW][C]t[/C][C]737.570519139868[/C][C]341.719637[/C][C]2.1584[/C][C]0.037278[/C][C]0.018639[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110993&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110993&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)405212.37621221474469.2183995.44133e-062e-06
DJIA14.28760901460073.4824764.10270.0002080.000104
Y10.4333666436012940.1532492.82790.0074380.003719
Y20.1173041644060530.1684550.69640.4904450.245223
Y30.001463156816827600.1666950.00880.9930430.496521
Y40.1981932329544810.1483771.33570.1895780.094789
M1-20549.029629670541758.628709-0.49210.6254860.312743
M2-58844.70082132661514.799407-0.95660.3448190.172409
M3122216.65474406153218.6065552.29650.0272520.013626
M4-135295.96956592646548.744748-2.90650.0060670.003033
M5-196839.0841343963011.720563-3.12380.0034090.001705
M6-314012.4483574867733.758776-4.6364.1e-052.1e-05
M7-562394.66216066466408.528594-8.468700
M8-520562.78435797585788.088171-6.06800
M9-489669.43013383786000.973134-5.69381e-061e-06
M10-377128.66921727772659.905333-5.19037e-064e-06
M11-98765.569305783744491.573327-2.21990.0324690.016235
t737.570519139868341.7196372.15840.0372780.018639







Multiple Linear Regression - Regression Statistics
Multiple R0.996597096381513
R-squared0.993205772516062
Adjusted R-squared0.9901662496943
F-TEST (value)326.763716135021
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26131.9690148321
Sum Squared Residuals25949432574.5016

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.996597096381513 \tabularnewline
R-squared & 0.993205772516062 \tabularnewline
Adjusted R-squared & 0.9901662496943 \tabularnewline
F-TEST (value) & 326.763716135021 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 26131.9690148321 \tabularnewline
Sum Squared Residuals & 25949432574.5016 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110993&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.996597096381513[/C][/ROW]
[ROW][C]R-squared[/C][C]0.993205772516062[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.9901662496943[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]326.763716135021[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/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]26131.9690148321[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]25949432574.5016[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110993&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110993&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.996597096381513
R-squared0.993205772516062
Adjusted R-squared0.9901662496943
F-TEST (value)326.763716135021
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26131.9690148321
Sum Squared Residuals25949432574.5016







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
114697981467376.270351852421.72964815017
214987211493800.750472434920.24952756512
317617691744957.2995805116811.7004194935
416532141635366.9960511417847.0039488613
515991041579670.1220800019433.8779200041
614211791431330.31392723-10151.3139272284
711639951157433.490175916561.509824087
810377351044819.99435049-7084.99435048725
91015407982686.14650664932720.853493351
1010392101037674.284368731535.71563126705
1112580491274970.42379117-16921.423791174
1214694451450730.3619584218714.6380415762
1315523461540970.3675890211375.6324109812
1415491441568915.75262806-19771.7526280553
1517858951803240.02427383-17345.0242738306
1616623351693500.70155881-31165.7015588062
1716294401627602.549908071837.45009193418
1814674301487867.60805326-20437.6080532646
1912022091214913.58318302-12704.5831830183
2010769821102450.219886-25468.2198860006
2110393671044208.95726232-4841.95726232361
2210634491088954.82497912-25505.8249791178
2313351351322555.9344454312579.0655545659
2414916021527873.09070757-36271.090707575
2515919721608387.94815593-16415.9481559265
2616412481634722.224726366525.7752736366
2718988491900915.43440801-2066.43440801189
2817985801794796.318025053783.68197495404
2917624441748405.1193634414038.8806365614
3016220441615181.505769646862.49423035942
3113689551345384.7189336823570.281066323
3212629731240351.4767969822621.5232030184
3311956501180218.4421345115431.5578654944
3412695301218206.4490351951323.5509648063
3514792791471061.376782258217.623217747
3616078191656987.37632816-49168.3763281587
3717124661701652.8015746310813.1984253682
3817217661721066.03950806699.960491935596
3919498431961329.90679539-11486.9067953871
4018213261832480.64676173-11154.6467617347
4117578021753588.69687924213.30312079985
4215903671574927.1600008115439.8399991883
4312606471285199.19503061-24552.1950306141
4411492351138921.7829490310313.2170509651
4510163671059677.45409652-43310.4540965218
4610278851055238.44161696-27353.4416169555
4712621591266034.26498114-3875.26498113887
4815208541454129.1710058466724.8289941574
4915441441552338.61232857-8194.61232857302
5015647091557083.232665087625.76733491793
5118217761807689.3349422614086.6650577361
5217413651720675.3376032720689.6623967256
5316233861662909.5117693-39523.5117692996
5414986581490371.412249058286.58775094537
5512418221234697.012676787124.98732322246
5611360291136410.52601750-381.526017495626

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1469798 & 1467376.27035185 & 2421.72964815017 \tabularnewline
2 & 1498721 & 1493800.75047243 & 4920.24952756512 \tabularnewline
3 & 1761769 & 1744957.29958051 & 16811.7004194935 \tabularnewline
4 & 1653214 & 1635366.99605114 & 17847.0039488613 \tabularnewline
5 & 1599104 & 1579670.12208000 & 19433.8779200041 \tabularnewline
6 & 1421179 & 1431330.31392723 & -10151.3139272284 \tabularnewline
7 & 1163995 & 1157433.49017591 & 6561.509824087 \tabularnewline
8 & 1037735 & 1044819.99435049 & -7084.99435048725 \tabularnewline
9 & 1015407 & 982686.146506649 & 32720.853493351 \tabularnewline
10 & 1039210 & 1037674.28436873 & 1535.71563126705 \tabularnewline
11 & 1258049 & 1274970.42379117 & -16921.423791174 \tabularnewline
12 & 1469445 & 1450730.36195842 & 18714.6380415762 \tabularnewline
13 & 1552346 & 1540970.36758902 & 11375.6324109812 \tabularnewline
14 & 1549144 & 1568915.75262806 & -19771.7526280553 \tabularnewline
15 & 1785895 & 1803240.02427383 & -17345.0242738306 \tabularnewline
16 & 1662335 & 1693500.70155881 & -31165.7015588062 \tabularnewline
17 & 1629440 & 1627602.54990807 & 1837.45009193418 \tabularnewline
18 & 1467430 & 1487867.60805326 & -20437.6080532646 \tabularnewline
19 & 1202209 & 1214913.58318302 & -12704.5831830183 \tabularnewline
20 & 1076982 & 1102450.219886 & -25468.2198860006 \tabularnewline
21 & 1039367 & 1044208.95726232 & -4841.95726232361 \tabularnewline
22 & 1063449 & 1088954.82497912 & -25505.8249791178 \tabularnewline
23 & 1335135 & 1322555.93444543 & 12579.0655545659 \tabularnewline
24 & 1491602 & 1527873.09070757 & -36271.090707575 \tabularnewline
25 & 1591972 & 1608387.94815593 & -16415.9481559265 \tabularnewline
26 & 1641248 & 1634722.22472636 & 6525.7752736366 \tabularnewline
27 & 1898849 & 1900915.43440801 & -2066.43440801189 \tabularnewline
28 & 1798580 & 1794796.31802505 & 3783.68197495404 \tabularnewline
29 & 1762444 & 1748405.11936344 & 14038.8806365614 \tabularnewline
30 & 1622044 & 1615181.50576964 & 6862.49423035942 \tabularnewline
31 & 1368955 & 1345384.71893368 & 23570.281066323 \tabularnewline
32 & 1262973 & 1240351.47679698 & 22621.5232030184 \tabularnewline
33 & 1195650 & 1180218.44213451 & 15431.5578654944 \tabularnewline
34 & 1269530 & 1218206.44903519 & 51323.5509648063 \tabularnewline
35 & 1479279 & 1471061.37678225 & 8217.623217747 \tabularnewline
36 & 1607819 & 1656987.37632816 & -49168.3763281587 \tabularnewline
37 & 1712466 & 1701652.80157463 & 10813.1984253682 \tabularnewline
38 & 1721766 & 1721066.03950806 & 699.960491935596 \tabularnewline
39 & 1949843 & 1961329.90679539 & -11486.9067953871 \tabularnewline
40 & 1821326 & 1832480.64676173 & -11154.6467617347 \tabularnewline
41 & 1757802 & 1753588.6968792 & 4213.30312079985 \tabularnewline
42 & 1590367 & 1574927.16000081 & 15439.8399991883 \tabularnewline
43 & 1260647 & 1285199.19503061 & -24552.1950306141 \tabularnewline
44 & 1149235 & 1138921.78294903 & 10313.2170509651 \tabularnewline
45 & 1016367 & 1059677.45409652 & -43310.4540965218 \tabularnewline
46 & 1027885 & 1055238.44161696 & -27353.4416169555 \tabularnewline
47 & 1262159 & 1266034.26498114 & -3875.26498113887 \tabularnewline
48 & 1520854 & 1454129.17100584 & 66724.8289941574 \tabularnewline
49 & 1544144 & 1552338.61232857 & -8194.61232857302 \tabularnewline
50 & 1564709 & 1557083.23266508 & 7625.76733491793 \tabularnewline
51 & 1821776 & 1807689.33494226 & 14086.6650577361 \tabularnewline
52 & 1741365 & 1720675.33760327 & 20689.6623967256 \tabularnewline
53 & 1623386 & 1662909.5117693 & -39523.5117692996 \tabularnewline
54 & 1498658 & 1490371.41224905 & 8286.58775094537 \tabularnewline
55 & 1241822 & 1234697.01267678 & 7124.98732322246 \tabularnewline
56 & 1136029 & 1136410.52601750 & -381.526017495626 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110993&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]1469798[/C][C]1467376.27035185[/C][C]2421.72964815017[/C][/ROW]
[ROW][C]2[/C][C]1498721[/C][C]1493800.75047243[/C][C]4920.24952756512[/C][/ROW]
[ROW][C]3[/C][C]1761769[/C][C]1744957.29958051[/C][C]16811.7004194935[/C][/ROW]
[ROW][C]4[/C][C]1653214[/C][C]1635366.99605114[/C][C]17847.0039488613[/C][/ROW]
[ROW][C]5[/C][C]1599104[/C][C]1579670.12208000[/C][C]19433.8779200041[/C][/ROW]
[ROW][C]6[/C][C]1421179[/C][C]1431330.31392723[/C][C]-10151.3139272284[/C][/ROW]
[ROW][C]7[/C][C]1163995[/C][C]1157433.49017591[/C][C]6561.509824087[/C][/ROW]
[ROW][C]8[/C][C]1037735[/C][C]1044819.99435049[/C][C]-7084.99435048725[/C][/ROW]
[ROW][C]9[/C][C]1015407[/C][C]982686.146506649[/C][C]32720.853493351[/C][/ROW]
[ROW][C]10[/C][C]1039210[/C][C]1037674.28436873[/C][C]1535.71563126705[/C][/ROW]
[ROW][C]11[/C][C]1258049[/C][C]1274970.42379117[/C][C]-16921.423791174[/C][/ROW]
[ROW][C]12[/C][C]1469445[/C][C]1450730.36195842[/C][C]18714.6380415762[/C][/ROW]
[ROW][C]13[/C][C]1552346[/C][C]1540970.36758902[/C][C]11375.6324109812[/C][/ROW]
[ROW][C]14[/C][C]1549144[/C][C]1568915.75262806[/C][C]-19771.7526280553[/C][/ROW]
[ROW][C]15[/C][C]1785895[/C][C]1803240.02427383[/C][C]-17345.0242738306[/C][/ROW]
[ROW][C]16[/C][C]1662335[/C][C]1693500.70155881[/C][C]-31165.7015588062[/C][/ROW]
[ROW][C]17[/C][C]1629440[/C][C]1627602.54990807[/C][C]1837.45009193418[/C][/ROW]
[ROW][C]18[/C][C]1467430[/C][C]1487867.60805326[/C][C]-20437.6080532646[/C][/ROW]
[ROW][C]19[/C][C]1202209[/C][C]1214913.58318302[/C][C]-12704.5831830183[/C][/ROW]
[ROW][C]20[/C][C]1076982[/C][C]1102450.219886[/C][C]-25468.2198860006[/C][/ROW]
[ROW][C]21[/C][C]1039367[/C][C]1044208.95726232[/C][C]-4841.95726232361[/C][/ROW]
[ROW][C]22[/C][C]1063449[/C][C]1088954.82497912[/C][C]-25505.8249791178[/C][/ROW]
[ROW][C]23[/C][C]1335135[/C][C]1322555.93444543[/C][C]12579.0655545659[/C][/ROW]
[ROW][C]24[/C][C]1491602[/C][C]1527873.09070757[/C][C]-36271.090707575[/C][/ROW]
[ROW][C]25[/C][C]1591972[/C][C]1608387.94815593[/C][C]-16415.9481559265[/C][/ROW]
[ROW][C]26[/C][C]1641248[/C][C]1634722.22472636[/C][C]6525.7752736366[/C][/ROW]
[ROW][C]27[/C][C]1898849[/C][C]1900915.43440801[/C][C]-2066.43440801189[/C][/ROW]
[ROW][C]28[/C][C]1798580[/C][C]1794796.31802505[/C][C]3783.68197495404[/C][/ROW]
[ROW][C]29[/C][C]1762444[/C][C]1748405.11936344[/C][C]14038.8806365614[/C][/ROW]
[ROW][C]30[/C][C]1622044[/C][C]1615181.50576964[/C][C]6862.49423035942[/C][/ROW]
[ROW][C]31[/C][C]1368955[/C][C]1345384.71893368[/C][C]23570.281066323[/C][/ROW]
[ROW][C]32[/C][C]1262973[/C][C]1240351.47679698[/C][C]22621.5232030184[/C][/ROW]
[ROW][C]33[/C][C]1195650[/C][C]1180218.44213451[/C][C]15431.5578654944[/C][/ROW]
[ROW][C]34[/C][C]1269530[/C][C]1218206.44903519[/C][C]51323.5509648063[/C][/ROW]
[ROW][C]35[/C][C]1479279[/C][C]1471061.37678225[/C][C]8217.623217747[/C][/ROW]
[ROW][C]36[/C][C]1607819[/C][C]1656987.37632816[/C][C]-49168.3763281587[/C][/ROW]
[ROW][C]37[/C][C]1712466[/C][C]1701652.80157463[/C][C]10813.1984253682[/C][/ROW]
[ROW][C]38[/C][C]1721766[/C][C]1721066.03950806[/C][C]699.960491935596[/C][/ROW]
[ROW][C]39[/C][C]1949843[/C][C]1961329.90679539[/C][C]-11486.9067953871[/C][/ROW]
[ROW][C]40[/C][C]1821326[/C][C]1832480.64676173[/C][C]-11154.6467617347[/C][/ROW]
[ROW][C]41[/C][C]1757802[/C][C]1753588.6968792[/C][C]4213.30312079985[/C][/ROW]
[ROW][C]42[/C][C]1590367[/C][C]1574927.16000081[/C][C]15439.8399991883[/C][/ROW]
[ROW][C]43[/C][C]1260647[/C][C]1285199.19503061[/C][C]-24552.1950306141[/C][/ROW]
[ROW][C]44[/C][C]1149235[/C][C]1138921.78294903[/C][C]10313.2170509651[/C][/ROW]
[ROW][C]45[/C][C]1016367[/C][C]1059677.45409652[/C][C]-43310.4540965218[/C][/ROW]
[ROW][C]46[/C][C]1027885[/C][C]1055238.44161696[/C][C]-27353.4416169555[/C][/ROW]
[ROW][C]47[/C][C]1262159[/C][C]1266034.26498114[/C][C]-3875.26498113887[/C][/ROW]
[ROW][C]48[/C][C]1520854[/C][C]1454129.17100584[/C][C]66724.8289941574[/C][/ROW]
[ROW][C]49[/C][C]1544144[/C][C]1552338.61232857[/C][C]-8194.61232857302[/C][/ROW]
[ROW][C]50[/C][C]1564709[/C][C]1557083.23266508[/C][C]7625.76733491793[/C][/ROW]
[ROW][C]51[/C][C]1821776[/C][C]1807689.33494226[/C][C]14086.6650577361[/C][/ROW]
[ROW][C]52[/C][C]1741365[/C][C]1720675.33760327[/C][C]20689.6623967256[/C][/ROW]
[ROW][C]53[/C][C]1623386[/C][C]1662909.5117693[/C][C]-39523.5117692996[/C][/ROW]
[ROW][C]54[/C][C]1498658[/C][C]1490371.41224905[/C][C]8286.58775094537[/C][/ROW]
[ROW][C]55[/C][C]1241822[/C][C]1234697.01267678[/C][C]7124.98732322246[/C][/ROW]
[ROW][C]56[/C][C]1136029[/C][C]1136410.52601750[/C][C]-381.526017495626[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110993&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110993&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
114697981467376.270351852421.72964815017
214987211493800.750472434920.24952756512
317617691744957.2995805116811.7004194935
416532141635366.9960511417847.0039488613
515991041579670.1220800019433.8779200041
614211791431330.31392723-10151.3139272284
711639951157433.490175916561.509824087
810377351044819.99435049-7084.99435048725
91015407982686.14650664932720.853493351
1010392101037674.284368731535.71563126705
1112580491274970.42379117-16921.423791174
1214694451450730.3619584218714.6380415762
1315523461540970.3675890211375.6324109812
1415491441568915.75262806-19771.7526280553
1517858951803240.02427383-17345.0242738306
1616623351693500.70155881-31165.7015588062
1716294401627602.549908071837.45009193418
1814674301487867.60805326-20437.6080532646
1912022091214913.58318302-12704.5831830183
2010769821102450.219886-25468.2198860006
2110393671044208.95726232-4841.95726232361
2210634491088954.82497912-25505.8249791178
2313351351322555.9344454312579.0655545659
2414916021527873.09070757-36271.090707575
2515919721608387.94815593-16415.9481559265
2616412481634722.224726366525.7752736366
2718988491900915.43440801-2066.43440801189
2817985801794796.318025053783.68197495404
2917624441748405.1193634414038.8806365614
3016220441615181.505769646862.49423035942
3113689551345384.7189336823570.281066323
3212629731240351.4767969822621.5232030184
3311956501180218.4421345115431.5578654944
3412695301218206.4490351951323.5509648063
3514792791471061.376782258217.623217747
3616078191656987.37632816-49168.3763281587
3717124661701652.8015746310813.1984253682
3817217661721066.03950806699.960491935596
3919498431961329.90679539-11486.9067953871
4018213261832480.64676173-11154.6467617347
4117578021753588.69687924213.30312079985
4215903671574927.1600008115439.8399991883
4312606471285199.19503061-24552.1950306141
4411492351138921.7829490310313.2170509651
4510163671059677.45409652-43310.4540965218
4610278851055238.44161696-27353.4416169555
4712621591266034.26498114-3875.26498113887
4815208541454129.1710058466724.8289941574
4915441441552338.61232857-8194.61232857302
5015647091557083.232665087625.76733491793
5118217761807689.3349422614086.6650577361
5217413651720675.3376032720689.6623967256
5316233861662909.5117693-39523.5117692996
5414986581490371.412249058286.58775094537
5512418221234697.012676787124.98732322246
5611360291136410.52601750-381.526017495626







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.02369866833640310.04739733667280610.976301331663597
220.00592336355210120.01184672710420240.994076636447899
230.02105088969112840.04210177938225690.978949110308872
240.01307428844275360.02614857688550720.986925711557246
250.02192855487278140.04385710974556270.978071445127219
260.05658863318446310.1131772663689260.943411366815537
270.06968117032552660.1393623406510530.930318829674473
280.05336170537477380.1067234107495480.946638294625226
290.02631167834196650.0526233566839330.973688321658034
300.03571124447714930.07142248895429860.96428875552285
310.02403529884357420.04807059768714840.975964701156426
320.1122908925290110.2245817850580220.887709107470989
330.2361669168852920.4723338337705840.763833083114708
340.2966194224051080.5932388448102160.703380577594892
350.4987930838012260.9975861676024520.501206916198774

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0236986683364031 & 0.0473973366728061 & 0.976301331663597 \tabularnewline
22 & 0.0059233635521012 & 0.0118467271042024 & 0.994076636447899 \tabularnewline
23 & 0.0210508896911284 & 0.0421017793822569 & 0.978949110308872 \tabularnewline
24 & 0.0130742884427536 & 0.0261485768855072 & 0.986925711557246 \tabularnewline
25 & 0.0219285548727814 & 0.0438571097455627 & 0.978071445127219 \tabularnewline
26 & 0.0565886331844631 & 0.113177266368926 & 0.943411366815537 \tabularnewline
27 & 0.0696811703255266 & 0.139362340651053 & 0.930318829674473 \tabularnewline
28 & 0.0533617053747738 & 0.106723410749548 & 0.946638294625226 \tabularnewline
29 & 0.0263116783419665 & 0.052623356683933 & 0.973688321658034 \tabularnewline
30 & 0.0357112444771493 & 0.0714224889542986 & 0.96428875552285 \tabularnewline
31 & 0.0240352988435742 & 0.0480705976871484 & 0.975964701156426 \tabularnewline
32 & 0.112290892529011 & 0.224581785058022 & 0.887709107470989 \tabularnewline
33 & 0.236166916885292 & 0.472333833770584 & 0.763833083114708 \tabularnewline
34 & 0.296619422405108 & 0.593238844810216 & 0.703380577594892 \tabularnewline
35 & 0.498793083801226 & 0.997586167602452 & 0.501206916198774 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110993&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]21[/C][C]0.0236986683364031[/C][C]0.0473973366728061[/C][C]0.976301331663597[/C][/ROW]
[ROW][C]22[/C][C]0.0059233635521012[/C][C]0.0118467271042024[/C][C]0.994076636447899[/C][/ROW]
[ROW][C]23[/C][C]0.0210508896911284[/C][C]0.0421017793822569[/C][C]0.978949110308872[/C][/ROW]
[ROW][C]24[/C][C]0.0130742884427536[/C][C]0.0261485768855072[/C][C]0.986925711557246[/C][/ROW]
[ROW][C]25[/C][C]0.0219285548727814[/C][C]0.0438571097455627[/C][C]0.978071445127219[/C][/ROW]
[ROW][C]26[/C][C]0.0565886331844631[/C][C]0.113177266368926[/C][C]0.943411366815537[/C][/ROW]
[ROW][C]27[/C][C]0.0696811703255266[/C][C]0.139362340651053[/C][C]0.930318829674473[/C][/ROW]
[ROW][C]28[/C][C]0.0533617053747738[/C][C]0.106723410749548[/C][C]0.946638294625226[/C][/ROW]
[ROW][C]29[/C][C]0.0263116783419665[/C][C]0.052623356683933[/C][C]0.973688321658034[/C][/ROW]
[ROW][C]30[/C][C]0.0357112444771493[/C][C]0.0714224889542986[/C][C]0.96428875552285[/C][/ROW]
[ROW][C]31[/C][C]0.0240352988435742[/C][C]0.0480705976871484[/C][C]0.975964701156426[/C][/ROW]
[ROW][C]32[/C][C]0.112290892529011[/C][C]0.224581785058022[/C][C]0.887709107470989[/C][/ROW]
[ROW][C]33[/C][C]0.236166916885292[/C][C]0.472333833770584[/C][C]0.763833083114708[/C][/ROW]
[ROW][C]34[/C][C]0.296619422405108[/C][C]0.593238844810216[/C][C]0.703380577594892[/C][/ROW]
[ROW][C]35[/C][C]0.498793083801226[/C][C]0.997586167602452[/C][C]0.501206916198774[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110993&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110993&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
210.02369866833640310.04739733667280610.976301331663597
220.00592336355210120.01184672710420240.994076636447899
230.02105088969112840.04210177938225690.978949110308872
240.01307428844275360.02614857688550720.986925711557246
250.02192855487278140.04385710974556270.978071445127219
260.05658863318446310.1131772663689260.943411366815537
270.06968117032552660.1393623406510530.930318829674473
280.05336170537477380.1067234107495480.946638294625226
290.02631167834196650.0526233566839330.973688321658034
300.03571124447714930.07142248895429860.96428875552285
310.02403529884357420.04807059768714840.975964701156426
320.1122908925290110.2245817850580220.887709107470989
330.2361669168852920.4723338337705840.763833083114708
340.2966194224051080.5932388448102160.703380577594892
350.4987930838012260.9975861676024520.501206916198774







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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