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:55:05 +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/t12925111990860bzzsasbk8ys.htm/, Retrieved Fri, 03 May 2024 06:45:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110984, Retrieved Fri, 03 May 2024 06:45:08 +0000
QR Codes:

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

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110984&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110984&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 129656.217228832 + 12.4358918340159DJIA[t] + 0.524824953147275Y1[t] + 0.222560731502311Y2[t] + 221392.319599041M1[t] + 273538.387148335M2[t] + 206489.247472616M3[t] + 146948.49845131M4[t] + 362848.209945268M5[t] + 116948.288333272M6[t] + 55546.0535751213M7[t] -40727.3840958933M8[t] -219577.429709325M9[t] -158224.026404345M10[t] -97473.7128923078M11[t] + 874.612157839409t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  129656.217228832 +  12.4358918340159DJIA[t] +  0.524824953147275Y1[t] +  0.222560731502311Y2[t] +  221392.319599041M1[t] +  273538.387148335M2[t] +  206489.247472616M3[t] +  146948.49845131M4[t] +  362848.209945268M5[t] +  116948.288333272M6[t] +  55546.0535751213M7[t] -40727.3840958933M8[t] -219577.429709325M9[t] -158224.026404345M10[t] -97473.7128923078M11[t] +  874.612157839409t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110984&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  129656.217228832 +  12.4358918340159DJIA[t] +  0.524824953147275Y1[t] +  0.222560731502311Y2[t] +  221392.319599041M1[t] +  273538.387148335M2[t] +  206489.247472616M3[t] +  146948.49845131M4[t] +  362848.209945268M5[t] +  116948.288333272M6[t] +  55546.0535751213M7[t] -40727.3840958933M8[t] -219577.429709325M9[t] -158224.026404345M10[t] -97473.7128923078M11[t] +  874.612157839409t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110984&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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] = + 129656.217228832 + 12.4358918340159DJIA[t] + 0.524824953147275Y1[t] + 0.222560731502311Y2[t] + 221392.319599041M1[t] + 273538.387148335M2[t] + 206489.247472616M3[t] + 146948.49845131M4[t] + 362848.209945268M5[t] + 116948.288333272M6[t] + 55546.0535751213M7[t] -40727.3840958933M8[t] -219577.429709325M9[t] -158224.026404345M10[t] -97473.7128923078M11[t] + 874.612157839409t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)129656.21722883257637.8166272.24950.0297810.014891
DJIA12.43589183401593.0793224.03850.0002240.000112
Y10.5248249531472750.1458343.59880.0008370.000418
Y20.2225607315023110.1323111.68210.0999710.049985
M1221392.31959904121753.82626810.177200
M2273538.38714833544595.7765186.133700
M3206489.24747261645965.9342254.49225.4e-052.7e-05
M4146948.4984513143381.0945883.38740.0015430.000771
M5362848.20994526841606.3472748.72100
M6116948.28833327267849.3138081.72360.0921270.046063
M755546.053575121349809.6248711.11520.2711190.13556
M8-40727.384095893345260.145545-0.89990.373330.186665
M9-219577.42970932537915.746689-5.79121e-060
M10-158224.02640434535261.391135-4.48725.5e-052.8e-05
M11-97473.712892307820490.289028-4.75712.3e-051.2e-05
t874.612157839409330.1785092.64890.011330.005665

\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) & 129656.217228832 & 57637.816627 & 2.2495 & 0.029781 & 0.014891 \tabularnewline
DJIA & 12.4358918340159 & 3.079322 & 4.0385 & 0.000224 & 0.000112 \tabularnewline
Y1 & 0.524824953147275 & 0.145834 & 3.5988 & 0.000837 & 0.000418 \tabularnewline
Y2 & 0.222560731502311 & 0.132311 & 1.6821 & 0.099971 & 0.049985 \tabularnewline
M1 & 221392.319599041 & 21753.826268 & 10.1772 & 0 & 0 \tabularnewline
M2 & 273538.387148335 & 44595.776518 & 6.1337 & 0 & 0 \tabularnewline
M3 & 206489.247472616 & 45965.934225 & 4.4922 & 5.4e-05 & 2.7e-05 \tabularnewline
M4 & 146948.49845131 & 43381.094588 & 3.3874 & 0.001543 & 0.000771 \tabularnewline
M5 & 362848.209945268 & 41606.347274 & 8.721 & 0 & 0 \tabularnewline
M6 & 116948.288333272 & 67849.313808 & 1.7236 & 0.092127 & 0.046063 \tabularnewline
M7 & 55546.0535751213 & 49809.624871 & 1.1152 & 0.271119 & 0.13556 \tabularnewline
M8 & -40727.3840958933 & 45260.145545 & -0.8999 & 0.37333 & 0.186665 \tabularnewline
M9 & -219577.429709325 & 37915.746689 & -5.7912 & 1e-06 & 0 \tabularnewline
M10 & -158224.026404345 & 35261.391135 & -4.4872 & 5.5e-05 & 2.8e-05 \tabularnewline
M11 & -97473.7128923078 & 20490.289028 & -4.7571 & 2.3e-05 & 1.2e-05 \tabularnewline
t & 874.612157839409 & 330.178509 & 2.6489 & 0.01133 & 0.005665 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110984&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]129656.217228832[/C][C]57637.816627[/C][C]2.2495[/C][C]0.029781[/C][C]0.014891[/C][/ROW]
[ROW][C]DJIA[/C][C]12.4358918340159[/C][C]3.079322[/C][C]4.0385[/C][C]0.000224[/C][C]0.000112[/C][/ROW]
[ROW][C]Y1[/C][C]0.524824953147275[/C][C]0.145834[/C][C]3.5988[/C][C]0.000837[/C][C]0.000418[/C][/ROW]
[ROW][C]Y2[/C][C]0.222560731502311[/C][C]0.132311[/C][C]1.6821[/C][C]0.099971[/C][C]0.049985[/C][/ROW]
[ROW][C]M1[/C][C]221392.319599041[/C][C]21753.826268[/C][C]10.1772[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]273538.387148335[/C][C]44595.776518[/C][C]6.1337[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]206489.247472616[/C][C]45965.934225[/C][C]4.4922[/C][C]5.4e-05[/C][C]2.7e-05[/C][/ROW]
[ROW][C]M4[/C][C]146948.49845131[/C][C]43381.094588[/C][C]3.3874[/C][C]0.001543[/C][C]0.000771[/C][/ROW]
[ROW][C]M5[/C][C]362848.209945268[/C][C]41606.347274[/C][C]8.721[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]116948.288333272[/C][C]67849.313808[/C][C]1.7236[/C][C]0.092127[/C][C]0.046063[/C][/ROW]
[ROW][C]M7[/C][C]55546.0535751213[/C][C]49809.624871[/C][C]1.1152[/C][C]0.271119[/C][C]0.13556[/C][/ROW]
[ROW][C]M8[/C][C]-40727.3840958933[/C][C]45260.145545[/C][C]-0.8999[/C][C]0.37333[/C][C]0.186665[/C][/ROW]
[ROW][C]M9[/C][C]-219577.429709325[/C][C]37915.746689[/C][C]-5.7912[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-158224.026404345[/C][C]35261.391135[/C][C]-4.4872[/C][C]5.5e-05[/C][C]2.8e-05[/C][/ROW]
[ROW][C]M11[/C][C]-97473.7128923078[/C][C]20490.289028[/C][C]-4.7571[/C][C]2.3e-05[/C][C]1.2e-05[/C][/ROW]
[ROW][C]t[/C][C]874.612157839409[/C][C]330.178509[/C][C]2.6489[/C][C]0.01133[/C][C]0.005665[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110984&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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)129656.21722883257637.8166272.24950.0297810.014891
DJIA12.43589183401593.0793224.03850.0002240.000112
Y10.5248249531472750.1458343.59880.0008370.000418
Y20.2225607315023110.1323111.68210.0999710.049985
M1221392.31959904121753.82626810.177200
M2273538.38714833544595.7765186.133700
M3206489.24747261645965.9342254.49225.4e-052.7e-05
M4146948.4984513143381.0945883.38740.0015430.000771
M5362848.20994526841606.3472748.72100
M6116948.28833327267849.3138081.72360.0921270.046063
M755546.053575121349809.6248711.11520.2711190.13556
M8-40727.384095893345260.145545-0.89990.373330.186665
M9-219577.42970932537915.746689-5.79121e-060
M10-158224.02640434535261.391135-4.48725.5e-052.8e-05
M11-97473.712892307820490.289028-4.75712.3e-051.2e-05
t874.612157839409330.1785092.64890.011330.005665







Multiple Linear Regression - Regression Statistics
Multiple R0.996234563754612
R-squared0.992483306019343
Adjusted R-squared0.989798772454822
F-TEST (value)369.704189635123
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26380.5966643776
Sum Squared Residuals29229306975.4799

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.996234563754612 \tabularnewline
R-squared & 0.992483306019343 \tabularnewline
Adjusted R-squared & 0.989798772454822 \tabularnewline
F-TEST (value) & 369.704189635123 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 26380.5966643776 \tabularnewline
Sum Squared Residuals & 29229306975.4799 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110984&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.996234563754612[/C][/ROW]
[ROW][C]R-squared[/C][C]0.992483306019343[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.989798772454822[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]369.704189635123[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/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]26380.5966643776[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]29229306975.4799[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110984&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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.996234563754612
R-squared0.992483306019343
Adjusted R-squared0.989798772454822
F-TEST (value)369.704189635123
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26380.5966643776
Sum Squared Residuals29229306975.4799







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
112077631231934.84623924-24171.8462392447
213688391389986.73089028-21147.7308902834
314697981456143.2310322813654.7689677218
414987211483918.0554641114802.9445358923
517617691742892.1903852718876.8096147344
616532141640376.9973157612837.0026842425
715991041582504.3234055116599.6765944936
814211791432947.51070269-11768.5107026891
911639951154098.885509669896.11449033933
1010377351040652.24230833-2917.24230833081
111015407980606.26324380334800.7367561969
1210392101040734.41267586-1524.41267585885
1312580491271965.861002-13916.8610020010
1414694451448342.5433555321102.4566444735
1515523461539346.2511810412999.7488189553
1615491441571012.11087183-21868.1108718256
1717858951804997.42895035-19102.4289503532
1816623351685943.15629329-23608.1562932917
1916294401616964.5391212012475.4608788035
2014674301481796.99310387-14366.9931038669
2112022091213229.48165308-11020.4816530790
2210769821103205.61993474-26223.6199347369
2310393671042052.09771843-2685.09771843052
2410634491088397.90346119-24948.9034611854
2513351351315998.0524723119136.9475276891
2614916021525777.60745416-34175.6074541639
2715919721609210.42197474-17238.4219747393
2816412481635320.666605155927.3333948493
2918988491897849.41585780999.58414220199
3017985801800798.97299965-2218.97299964819
3117624441751668.6860265410775.3139734618
3216220441615416.389980686627.61001931874
3313689551348770.2444576320184.7555423690
3412629731245593.9138133817379.0861866209
3511956501187627.810227288022.18977271624
3612695301222280.9041231147249.095876888
3714792791468294.9216701610984.0783298362
3816078191654769.67368396-46950.6736839629
3917124661700477.0670211711988.9329788306
4017217661709318.9596483312447.0403516682
4119498431954612.79756419-4769.79756419246
4218213261833416.31692726-12090.3169272630
4317578021747584.0446893010217.9553106956
4415903671571270.5829453519096.4170546472
4512606471285115.30627868-24468.3062786766
4611492351136378.8324056312856.1675943738
4710163671056504.82881048-40137.8288104827
4810278851048660.77973984-20775.7797398437
4912621591254191.318616287967.68138372035
5015208541439682.4446160681171.5553839367
5115441441565549.02879077-21405.0287907684
5215647091576018.20741058-11309.2074105842
5318217761817780.167242393995.83275760925
5417413651716284.5564640425080.4435359603
5516233861673454.40675745-50068.4067574546
5614986581498246.52326741411.476732590057
5712418221236414.082100955407.9178990472
5811360291137123.39153793-1094.39153792697

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1207763 & 1231934.84623924 & -24171.8462392447 \tabularnewline
2 & 1368839 & 1389986.73089028 & -21147.7308902834 \tabularnewline
3 & 1469798 & 1456143.23103228 & 13654.7689677218 \tabularnewline
4 & 1498721 & 1483918.05546411 & 14802.9445358923 \tabularnewline
5 & 1761769 & 1742892.19038527 & 18876.8096147344 \tabularnewline
6 & 1653214 & 1640376.99731576 & 12837.0026842425 \tabularnewline
7 & 1599104 & 1582504.32340551 & 16599.6765944936 \tabularnewline
8 & 1421179 & 1432947.51070269 & -11768.5107026891 \tabularnewline
9 & 1163995 & 1154098.88550966 & 9896.11449033933 \tabularnewline
10 & 1037735 & 1040652.24230833 & -2917.24230833081 \tabularnewline
11 & 1015407 & 980606.263243803 & 34800.7367561969 \tabularnewline
12 & 1039210 & 1040734.41267586 & -1524.41267585885 \tabularnewline
13 & 1258049 & 1271965.861002 & -13916.8610020010 \tabularnewline
14 & 1469445 & 1448342.54335553 & 21102.4566444735 \tabularnewline
15 & 1552346 & 1539346.25118104 & 12999.7488189553 \tabularnewline
16 & 1549144 & 1571012.11087183 & -21868.1108718256 \tabularnewline
17 & 1785895 & 1804997.42895035 & -19102.4289503532 \tabularnewline
18 & 1662335 & 1685943.15629329 & -23608.1562932917 \tabularnewline
19 & 1629440 & 1616964.53912120 & 12475.4608788035 \tabularnewline
20 & 1467430 & 1481796.99310387 & -14366.9931038669 \tabularnewline
21 & 1202209 & 1213229.48165308 & -11020.4816530790 \tabularnewline
22 & 1076982 & 1103205.61993474 & -26223.6199347369 \tabularnewline
23 & 1039367 & 1042052.09771843 & -2685.09771843052 \tabularnewline
24 & 1063449 & 1088397.90346119 & -24948.9034611854 \tabularnewline
25 & 1335135 & 1315998.05247231 & 19136.9475276891 \tabularnewline
26 & 1491602 & 1525777.60745416 & -34175.6074541639 \tabularnewline
27 & 1591972 & 1609210.42197474 & -17238.4219747393 \tabularnewline
28 & 1641248 & 1635320.66660515 & 5927.3333948493 \tabularnewline
29 & 1898849 & 1897849.41585780 & 999.58414220199 \tabularnewline
30 & 1798580 & 1800798.97299965 & -2218.97299964819 \tabularnewline
31 & 1762444 & 1751668.68602654 & 10775.3139734618 \tabularnewline
32 & 1622044 & 1615416.38998068 & 6627.61001931874 \tabularnewline
33 & 1368955 & 1348770.24445763 & 20184.7555423690 \tabularnewline
34 & 1262973 & 1245593.91381338 & 17379.0861866209 \tabularnewline
35 & 1195650 & 1187627.81022728 & 8022.18977271624 \tabularnewline
36 & 1269530 & 1222280.90412311 & 47249.095876888 \tabularnewline
37 & 1479279 & 1468294.92167016 & 10984.0783298362 \tabularnewline
38 & 1607819 & 1654769.67368396 & -46950.6736839629 \tabularnewline
39 & 1712466 & 1700477.06702117 & 11988.9329788306 \tabularnewline
40 & 1721766 & 1709318.95964833 & 12447.0403516682 \tabularnewline
41 & 1949843 & 1954612.79756419 & -4769.79756419246 \tabularnewline
42 & 1821326 & 1833416.31692726 & -12090.3169272630 \tabularnewline
43 & 1757802 & 1747584.04468930 & 10217.9553106956 \tabularnewline
44 & 1590367 & 1571270.58294535 & 19096.4170546472 \tabularnewline
45 & 1260647 & 1285115.30627868 & -24468.3062786766 \tabularnewline
46 & 1149235 & 1136378.83240563 & 12856.1675943738 \tabularnewline
47 & 1016367 & 1056504.82881048 & -40137.8288104827 \tabularnewline
48 & 1027885 & 1048660.77973984 & -20775.7797398437 \tabularnewline
49 & 1262159 & 1254191.31861628 & 7967.68138372035 \tabularnewline
50 & 1520854 & 1439682.44461606 & 81171.5553839367 \tabularnewline
51 & 1544144 & 1565549.02879077 & -21405.0287907684 \tabularnewline
52 & 1564709 & 1576018.20741058 & -11309.2074105842 \tabularnewline
53 & 1821776 & 1817780.16724239 & 3995.83275760925 \tabularnewline
54 & 1741365 & 1716284.55646404 & 25080.4435359603 \tabularnewline
55 & 1623386 & 1673454.40675745 & -50068.4067574546 \tabularnewline
56 & 1498658 & 1498246.52326741 & 411.476732590057 \tabularnewline
57 & 1241822 & 1236414.08210095 & 5407.9178990472 \tabularnewline
58 & 1136029 & 1137123.39153793 & -1094.39153792697 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110984&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]1207763[/C][C]1231934.84623924[/C][C]-24171.8462392447[/C][/ROW]
[ROW][C]2[/C][C]1368839[/C][C]1389986.73089028[/C][C]-21147.7308902834[/C][/ROW]
[ROW][C]3[/C][C]1469798[/C][C]1456143.23103228[/C][C]13654.7689677218[/C][/ROW]
[ROW][C]4[/C][C]1498721[/C][C]1483918.05546411[/C][C]14802.9445358923[/C][/ROW]
[ROW][C]5[/C][C]1761769[/C][C]1742892.19038527[/C][C]18876.8096147344[/C][/ROW]
[ROW][C]6[/C][C]1653214[/C][C]1640376.99731576[/C][C]12837.0026842425[/C][/ROW]
[ROW][C]7[/C][C]1599104[/C][C]1582504.32340551[/C][C]16599.6765944936[/C][/ROW]
[ROW][C]8[/C][C]1421179[/C][C]1432947.51070269[/C][C]-11768.5107026891[/C][/ROW]
[ROW][C]9[/C][C]1163995[/C][C]1154098.88550966[/C][C]9896.11449033933[/C][/ROW]
[ROW][C]10[/C][C]1037735[/C][C]1040652.24230833[/C][C]-2917.24230833081[/C][/ROW]
[ROW][C]11[/C][C]1015407[/C][C]980606.263243803[/C][C]34800.7367561969[/C][/ROW]
[ROW][C]12[/C][C]1039210[/C][C]1040734.41267586[/C][C]-1524.41267585885[/C][/ROW]
[ROW][C]13[/C][C]1258049[/C][C]1271965.861002[/C][C]-13916.8610020010[/C][/ROW]
[ROW][C]14[/C][C]1469445[/C][C]1448342.54335553[/C][C]21102.4566444735[/C][/ROW]
[ROW][C]15[/C][C]1552346[/C][C]1539346.25118104[/C][C]12999.7488189553[/C][/ROW]
[ROW][C]16[/C][C]1549144[/C][C]1571012.11087183[/C][C]-21868.1108718256[/C][/ROW]
[ROW][C]17[/C][C]1785895[/C][C]1804997.42895035[/C][C]-19102.4289503532[/C][/ROW]
[ROW][C]18[/C][C]1662335[/C][C]1685943.15629329[/C][C]-23608.1562932917[/C][/ROW]
[ROW][C]19[/C][C]1629440[/C][C]1616964.53912120[/C][C]12475.4608788035[/C][/ROW]
[ROW][C]20[/C][C]1467430[/C][C]1481796.99310387[/C][C]-14366.9931038669[/C][/ROW]
[ROW][C]21[/C][C]1202209[/C][C]1213229.48165308[/C][C]-11020.4816530790[/C][/ROW]
[ROW][C]22[/C][C]1076982[/C][C]1103205.61993474[/C][C]-26223.6199347369[/C][/ROW]
[ROW][C]23[/C][C]1039367[/C][C]1042052.09771843[/C][C]-2685.09771843052[/C][/ROW]
[ROW][C]24[/C][C]1063449[/C][C]1088397.90346119[/C][C]-24948.9034611854[/C][/ROW]
[ROW][C]25[/C][C]1335135[/C][C]1315998.05247231[/C][C]19136.9475276891[/C][/ROW]
[ROW][C]26[/C][C]1491602[/C][C]1525777.60745416[/C][C]-34175.6074541639[/C][/ROW]
[ROW][C]27[/C][C]1591972[/C][C]1609210.42197474[/C][C]-17238.4219747393[/C][/ROW]
[ROW][C]28[/C][C]1641248[/C][C]1635320.66660515[/C][C]5927.3333948493[/C][/ROW]
[ROW][C]29[/C][C]1898849[/C][C]1897849.41585780[/C][C]999.58414220199[/C][/ROW]
[ROW][C]30[/C][C]1798580[/C][C]1800798.97299965[/C][C]-2218.97299964819[/C][/ROW]
[ROW][C]31[/C][C]1762444[/C][C]1751668.68602654[/C][C]10775.3139734618[/C][/ROW]
[ROW][C]32[/C][C]1622044[/C][C]1615416.38998068[/C][C]6627.61001931874[/C][/ROW]
[ROW][C]33[/C][C]1368955[/C][C]1348770.24445763[/C][C]20184.7555423690[/C][/ROW]
[ROW][C]34[/C][C]1262973[/C][C]1245593.91381338[/C][C]17379.0861866209[/C][/ROW]
[ROW][C]35[/C][C]1195650[/C][C]1187627.81022728[/C][C]8022.18977271624[/C][/ROW]
[ROW][C]36[/C][C]1269530[/C][C]1222280.90412311[/C][C]47249.095876888[/C][/ROW]
[ROW][C]37[/C][C]1479279[/C][C]1468294.92167016[/C][C]10984.0783298362[/C][/ROW]
[ROW][C]38[/C][C]1607819[/C][C]1654769.67368396[/C][C]-46950.6736839629[/C][/ROW]
[ROW][C]39[/C][C]1712466[/C][C]1700477.06702117[/C][C]11988.9329788306[/C][/ROW]
[ROW][C]40[/C][C]1721766[/C][C]1709318.95964833[/C][C]12447.0403516682[/C][/ROW]
[ROW][C]41[/C][C]1949843[/C][C]1954612.79756419[/C][C]-4769.79756419246[/C][/ROW]
[ROW][C]42[/C][C]1821326[/C][C]1833416.31692726[/C][C]-12090.3169272630[/C][/ROW]
[ROW][C]43[/C][C]1757802[/C][C]1747584.04468930[/C][C]10217.9553106956[/C][/ROW]
[ROW][C]44[/C][C]1590367[/C][C]1571270.58294535[/C][C]19096.4170546472[/C][/ROW]
[ROW][C]45[/C][C]1260647[/C][C]1285115.30627868[/C][C]-24468.3062786766[/C][/ROW]
[ROW][C]46[/C][C]1149235[/C][C]1136378.83240563[/C][C]12856.1675943738[/C][/ROW]
[ROW][C]47[/C][C]1016367[/C][C]1056504.82881048[/C][C]-40137.8288104827[/C][/ROW]
[ROW][C]48[/C][C]1027885[/C][C]1048660.77973984[/C][C]-20775.7797398437[/C][/ROW]
[ROW][C]49[/C][C]1262159[/C][C]1254191.31861628[/C][C]7967.68138372035[/C][/ROW]
[ROW][C]50[/C][C]1520854[/C][C]1439682.44461606[/C][C]81171.5553839367[/C][/ROW]
[ROW][C]51[/C][C]1544144[/C][C]1565549.02879077[/C][C]-21405.0287907684[/C][/ROW]
[ROW][C]52[/C][C]1564709[/C][C]1576018.20741058[/C][C]-11309.2074105842[/C][/ROW]
[ROW][C]53[/C][C]1821776[/C][C]1817780.16724239[/C][C]3995.83275760925[/C][/ROW]
[ROW][C]54[/C][C]1741365[/C][C]1716284.55646404[/C][C]25080.4435359603[/C][/ROW]
[ROW][C]55[/C][C]1623386[/C][C]1673454.40675745[/C][C]-50068.4067574546[/C][/ROW]
[ROW][C]56[/C][C]1498658[/C][C]1498246.52326741[/C][C]411.476732590057[/C][/ROW]
[ROW][C]57[/C][C]1241822[/C][C]1236414.08210095[/C][C]5407.9178990472[/C][/ROW]
[ROW][C]58[/C][C]1136029[/C][C]1137123.39153793[/C][C]-1094.39153792697[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110984&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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
112077631231934.84623924-24171.8462392447
213688391389986.73089028-21147.7308902834
314697981456143.2310322813654.7689677218
414987211483918.0554641114802.9445358923
517617691742892.1903852718876.8096147344
616532141640376.9973157612837.0026842425
715991041582504.3234055116599.6765944936
814211791432947.51070269-11768.5107026891
911639951154098.885509669896.11449033933
1010377351040652.24230833-2917.24230833081
111015407980606.26324380334800.7367561969
1210392101040734.41267586-1524.41267585885
1312580491271965.861002-13916.8610020010
1414694451448342.5433555321102.4566444735
1515523461539346.2511810412999.7488189553
1615491441571012.11087183-21868.1108718256
1717858951804997.42895035-19102.4289503532
1816623351685943.15629329-23608.1562932917
1916294401616964.5391212012475.4608788035
2014674301481796.99310387-14366.9931038669
2112022091213229.48165308-11020.4816530790
2210769821103205.61993474-26223.6199347369
2310393671042052.09771843-2685.09771843052
2410634491088397.90346119-24948.9034611854
2513351351315998.0524723119136.9475276891
2614916021525777.60745416-34175.6074541639
2715919721609210.42197474-17238.4219747393
2816412481635320.666605155927.3333948493
2918988491897849.41585780999.58414220199
3017985801800798.97299965-2218.97299964819
3117624441751668.6860265410775.3139734618
3216220441615416.389980686627.61001931874
3313689551348770.2444576320184.7555423690
3412629731245593.9138133817379.0861866209
3511956501187627.810227288022.18977271624
3612695301222280.9041231147249.095876888
3714792791468294.9216701610984.0783298362
3816078191654769.67368396-46950.6736839629
3917124661700477.0670211711988.9329788306
4017217661709318.9596483312447.0403516682
4119498431954612.79756419-4769.79756419246
4218213261833416.31692726-12090.3169272630
4317578021747584.0446893010217.9553106956
4415903671571270.5829453519096.4170546472
4512606471285115.30627868-24468.3062786766
4611492351136378.8324056312856.1675943738
4710163671056504.82881048-40137.8288104827
4810278851048660.77973984-20775.7797398437
4912621591254191.318616287967.68138372035
5015208541439682.4446160681171.5553839367
5115441441565549.02879077-21405.0287907684
5215647091576018.20741058-11309.2074105842
5318217761817780.167242393995.83275760925
5417413651716284.5564640425080.4435359603
5516233861673454.40675745-50068.4067574546
5614986581498246.52326741411.476732590057
5712418221236414.082100955407.9178990472
5811360291137123.39153793-1094.39153792697







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1274756511959920.2549513023919850.872524348804008
200.1092025131775190.2184050263550390.89079748682248
210.0657913589525820.1315827179051640.934208641047418
220.02928846748904760.05857693497809520.970711532510952
230.01532517029749330.03065034059498650.984674829702507
240.006798846307228080.01359769261445620.993201153692772
250.00981904057767620.01963808115535240.990180959422324
260.01585122854030450.03170245708060890.984148771459695
270.025054440974090.050108881948180.97494555902591
280.03188885895377890.06377771790755780.968111141046221
290.02321222433612160.04642444867224310.976787775663878
300.02688902885599270.05377805771198530.973110971144007
310.01571510849245360.03143021698490720.984284891507546
320.02927998888038410.05855997776076820.970720011119616
330.02342253203509220.04684506407018430.976577467964908
340.1649312409115550.329862481823110.835068759088445
350.1931520012689360.3863040025378710.806847998731064
360.1947513745706720.3895027491413450.805248625429328
370.2788835990783440.5577671981566870.721116400921656
380.4807625347048210.9615250694096420.519237465295179
390.3411847472342690.6823694944685370.658815252765731

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.127475651195992 & 0.254951302391985 & 0.872524348804008 \tabularnewline
20 & 0.109202513177519 & 0.218405026355039 & 0.89079748682248 \tabularnewline
21 & 0.065791358952582 & 0.131582717905164 & 0.934208641047418 \tabularnewline
22 & 0.0292884674890476 & 0.0585769349780952 & 0.970711532510952 \tabularnewline
23 & 0.0153251702974933 & 0.0306503405949865 & 0.984674829702507 \tabularnewline
24 & 0.00679884630722808 & 0.0135976926144562 & 0.993201153692772 \tabularnewline
25 & 0.0098190405776762 & 0.0196380811553524 & 0.990180959422324 \tabularnewline
26 & 0.0158512285403045 & 0.0317024570806089 & 0.984148771459695 \tabularnewline
27 & 0.02505444097409 & 0.05010888194818 & 0.97494555902591 \tabularnewline
28 & 0.0318888589537789 & 0.0637777179075578 & 0.968111141046221 \tabularnewline
29 & 0.0232122243361216 & 0.0464244486722431 & 0.976787775663878 \tabularnewline
30 & 0.0268890288559927 & 0.0537780577119853 & 0.973110971144007 \tabularnewline
31 & 0.0157151084924536 & 0.0314302169849072 & 0.984284891507546 \tabularnewline
32 & 0.0292799888803841 & 0.0585599777607682 & 0.970720011119616 \tabularnewline
33 & 0.0234225320350922 & 0.0468450640701843 & 0.976577467964908 \tabularnewline
34 & 0.164931240911555 & 0.32986248182311 & 0.835068759088445 \tabularnewline
35 & 0.193152001268936 & 0.386304002537871 & 0.806847998731064 \tabularnewline
36 & 0.194751374570672 & 0.389502749141345 & 0.805248625429328 \tabularnewline
37 & 0.278883599078344 & 0.557767198156687 & 0.721116400921656 \tabularnewline
38 & 0.480762534704821 & 0.961525069409642 & 0.519237465295179 \tabularnewline
39 & 0.341184747234269 & 0.682369494468537 & 0.658815252765731 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110984&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]19[/C][C]0.127475651195992[/C][C]0.254951302391985[/C][C]0.872524348804008[/C][/ROW]
[ROW][C]20[/C][C]0.109202513177519[/C][C]0.218405026355039[/C][C]0.89079748682248[/C][/ROW]
[ROW][C]21[/C][C]0.065791358952582[/C][C]0.131582717905164[/C][C]0.934208641047418[/C][/ROW]
[ROW][C]22[/C][C]0.0292884674890476[/C][C]0.0585769349780952[/C][C]0.970711532510952[/C][/ROW]
[ROW][C]23[/C][C]0.0153251702974933[/C][C]0.0306503405949865[/C][C]0.984674829702507[/C][/ROW]
[ROW][C]24[/C][C]0.00679884630722808[/C][C]0.0135976926144562[/C][C]0.993201153692772[/C][/ROW]
[ROW][C]25[/C][C]0.0098190405776762[/C][C]0.0196380811553524[/C][C]0.990180959422324[/C][/ROW]
[ROW][C]26[/C][C]0.0158512285403045[/C][C]0.0317024570806089[/C][C]0.984148771459695[/C][/ROW]
[ROW][C]27[/C][C]0.02505444097409[/C][C]0.05010888194818[/C][C]0.97494555902591[/C][/ROW]
[ROW][C]28[/C][C]0.0318888589537789[/C][C]0.0637777179075578[/C][C]0.968111141046221[/C][/ROW]
[ROW][C]29[/C][C]0.0232122243361216[/C][C]0.0464244486722431[/C][C]0.976787775663878[/C][/ROW]
[ROW][C]30[/C][C]0.0268890288559927[/C][C]0.0537780577119853[/C][C]0.973110971144007[/C][/ROW]
[ROW][C]31[/C][C]0.0157151084924536[/C][C]0.0314302169849072[/C][C]0.984284891507546[/C][/ROW]
[ROW][C]32[/C][C]0.0292799888803841[/C][C]0.0585599777607682[/C][C]0.970720011119616[/C][/ROW]
[ROW][C]33[/C][C]0.0234225320350922[/C][C]0.0468450640701843[/C][C]0.976577467964908[/C][/ROW]
[ROW][C]34[/C][C]0.164931240911555[/C][C]0.32986248182311[/C][C]0.835068759088445[/C][/ROW]
[ROW][C]35[/C][C]0.193152001268936[/C][C]0.386304002537871[/C][C]0.806847998731064[/C][/ROW]
[ROW][C]36[/C][C]0.194751374570672[/C][C]0.389502749141345[/C][C]0.805248625429328[/C][/ROW]
[ROW][C]37[/C][C]0.278883599078344[/C][C]0.557767198156687[/C][C]0.721116400921656[/C][/ROW]
[ROW][C]38[/C][C]0.480762534704821[/C][C]0.961525069409642[/C][C]0.519237465295179[/C][/ROW]
[ROW][C]39[/C][C]0.341184747234269[/C][C]0.682369494468537[/C][C]0.658815252765731[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110984&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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
190.1274756511959920.2549513023919850.872524348804008
200.1092025131775190.2184050263550390.89079748682248
210.0657913589525820.1315827179051640.934208641047418
220.02928846748904760.05857693497809520.970711532510952
230.01532517029749330.03065034059498650.984674829702507
240.006798846307228080.01359769261445620.993201153692772
250.00981904057767620.01963808115535240.990180959422324
260.01585122854030450.03170245708060890.984148771459695
270.025054440974090.050108881948180.97494555902591
280.03188885895377890.06377771790755780.968111141046221
290.02321222433612160.04642444867224310.976787775663878
300.02688902885599270.05377805771198530.973110971144007
310.01571510849245360.03143021698490720.984284891507546
320.02927998888038410.05855997776076820.970720011119616
330.02342253203509220.04684506407018430.976577467964908
340.1649312409115550.329862481823110.835068759088445
350.1931520012689360.3863040025378710.806847998731064
360.1947513745706720.3895027491413450.805248625429328
370.2788835990783440.5577671981566870.721116400921656
380.4807625347048210.9615250694096420.519237465295179
390.3411847472342690.6823694944685370.658815252765731







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110984&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 level70.333333333333333NOK
10% type I error level120.571428571428571NOK



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