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 computationSun, 20 Dec 2009 05:08:02 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/20/t1261310956s2t4yc9cg5zle6f.htm/, Retrieved Sat, 27 Apr 2024 07:05:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69849, Retrieved Sat, 27 Apr 2024 07:05:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Multiple Linear R...] [2009-12-20 12:08:02] [fe2edc5b0acc9545190e03904e9be55e] [Current]
Feedback Forum

Post a new message
Dataseries X:
921365	0
987921	0
1132614	0
1332224	0
1418133	0
1411549	0
1695920	0
1636173	0
1539653	0
1395314	0
1127575	0
1036076	0
989236	0
1008380	0
1207763	0
1368839	0
1469798	0
1498721	0
1761769	0
1653214	0
1599104	0
1421179	0
1163995	0
1037735	0
1015407	0
1039210	0
1258049	0
1469445	0
1552346	0
1549144	0
1785895	0
1662335	0
1629440	0
1467430	0
1202209	0
1076982	0
1039367	1
1063449	1
1335135	1
1491602	1
1591972	1
1641248	1
1898849	1
1798580	1
1762444	1
1622044	1
1368955	1
1262973	1
1195650	1
1269530	1
1479279	1
1607819	1
1712466	1
1721766	1
1949843	1
1821326	1
1757802	1
1590367	1
1260647	1
1149235	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69849&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69849&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 952333.91111111 + 52432.9722222221X[t] -37833.4194444444M1[t] -209.672222221892M2[t] + 204791.075M3[t] + 372339.622222222M4[t] + 463427.569444444M5[t] + 475100.916666667M6[t] + 725201.263888889M7[t] + 617202.411111111M8[t] + 556696.158333333M9[t] + 394405.105555555M10[t] + 115945.252777778M11[t] + 3869.25277777778t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  952333.91111111 +  52432.9722222221X[t] -37833.4194444444M1[t] -209.672222221892M2[t] +  204791.075M3[t] +  372339.622222222M4[t] +  463427.569444444M5[t] +  475100.916666667M6[t] +  725201.263888889M7[t] +  617202.411111111M8[t] +  556696.158333333M9[t] +  394405.105555555M10[t] +  115945.252777778M11[t] +  3869.25277777778t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69849&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  952333.91111111 +  52432.9722222221X[t] -37833.4194444444M1[t] -209.672222221892M2[t] +  204791.075M3[t] +  372339.622222222M4[t] +  463427.569444444M5[t] +  475100.916666667M6[t] +  725201.263888889M7[t] +  617202.411111111M8[t] +  556696.158333333M9[t] +  394405.105555555M10[t] +  115945.252777778M11[t] +  3869.25277777778t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69849&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69849&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] = + 952333.91111111 + 52432.9722222221X[t] -37833.4194444444M1[t] -209.672222221892M2[t] + 204791.075M3[t] + 372339.622222222M4[t] + 463427.569444444M5[t] + 475100.916666667M6[t] + 725201.263888889M7[t] + 617202.411111111M8[t] + 556696.158333333M9[t] + 394405.105555555M10[t] + 115945.252777778M11[t] + 3869.25277777778t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)952333.9111111123528.99634740.474900
X52432.972222222121129.6624772.48150.0167990.008399
M1-37833.419444444426228.315085-1.44250.1559460.077973
M2-209.67222222189226078.945839-0.0080.993620.49681
M3204791.07525943.0611987.893900
M4372339.62222222225820.87405514.420100
M5463427.56944444425712.57968418.023400
M6475100.91666666725618.35426918.545300
M7725201.26388888925538.35353528.396600
M8617202.41111111125472.71150724.229900
M9556696.15833333325421.53941321.898600
M10394405.10555555525384.92476215.53700
M11115945.25277777825362.9305994.57143.6e-051.8e-05
t3869.25277777778609.9608166.343400

\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) & 952333.91111111 & 23528.996347 & 40.4749 & 0 & 0 \tabularnewline
X & 52432.9722222221 & 21129.662477 & 2.4815 & 0.016799 & 0.008399 \tabularnewline
M1 & -37833.4194444444 & 26228.315085 & -1.4425 & 0.155946 & 0.077973 \tabularnewline
M2 & -209.672222221892 & 26078.945839 & -0.008 & 0.99362 & 0.49681 \tabularnewline
M3 & 204791.075 & 25943.061198 & 7.8939 & 0 & 0 \tabularnewline
M4 & 372339.622222222 & 25820.874055 & 14.4201 & 0 & 0 \tabularnewline
M5 & 463427.569444444 & 25712.579684 & 18.0234 & 0 & 0 \tabularnewline
M6 & 475100.916666667 & 25618.354269 & 18.5453 & 0 & 0 \tabularnewline
M7 & 725201.263888889 & 25538.353535 & 28.3966 & 0 & 0 \tabularnewline
M8 & 617202.411111111 & 25472.711507 & 24.2299 & 0 & 0 \tabularnewline
M9 & 556696.158333333 & 25421.539413 & 21.8986 & 0 & 0 \tabularnewline
M10 & 394405.105555555 & 25384.924762 & 15.537 & 0 & 0 \tabularnewline
M11 & 115945.252777778 & 25362.930599 & 4.5714 & 3.6e-05 & 1.8e-05 \tabularnewline
t & 3869.25277777778 & 609.960816 & 6.3434 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69849&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]952333.91111111[/C][C]23528.996347[/C][C]40.4749[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]52432.9722222221[/C][C]21129.662477[/C][C]2.4815[/C][C]0.016799[/C][C]0.008399[/C][/ROW]
[ROW][C]M1[/C][C]-37833.4194444444[/C][C]26228.315085[/C][C]-1.4425[/C][C]0.155946[/C][C]0.077973[/C][/ROW]
[ROW][C]M2[/C][C]-209.672222221892[/C][C]26078.945839[/C][C]-0.008[/C][C]0.99362[/C][C]0.49681[/C][/ROW]
[ROW][C]M3[/C][C]204791.075[/C][C]25943.061198[/C][C]7.8939[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]372339.622222222[/C][C]25820.874055[/C][C]14.4201[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]463427.569444444[/C][C]25712.579684[/C][C]18.0234[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]475100.916666667[/C][C]25618.354269[/C][C]18.5453[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]725201.263888889[/C][C]25538.353535[/C][C]28.3966[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]617202.411111111[/C][C]25472.711507[/C][C]24.2299[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]556696.158333333[/C][C]25421.539413[/C][C]21.8986[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]394405.105555555[/C][C]25384.924762[/C][C]15.537[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]115945.252777778[/C][C]25362.930599[/C][C]4.5714[/C][C]3.6e-05[/C][C]1.8e-05[/C][/ROW]
[ROW][C]t[/C][C]3869.25277777778[/C][C]609.960816[/C][C]6.3434[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69849&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69849&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)952333.9111111123528.99634740.474900
X52432.972222222121129.6624772.48150.0167990.008399
M1-37833.419444444426228.315085-1.44250.1559460.077973
M2-209.67222222189226078.945839-0.0080.993620.49681
M3204791.07525943.0611987.893900
M4372339.62222222225820.87405514.420100
M5463427.56944444425712.57968418.023400
M6475100.91666666725618.35426918.545300
M7725201.26388888925538.35353528.396600
M8617202.41111111125472.71150724.229900
M9556696.15833333325421.53941321.898600
M10394405.10555555525384.92476215.53700
M11115945.25277777825362.9305994.57143.6e-051.8e-05
t3869.25277777778609.9608166.343400







Multiple Linear Regression - Regression Statistics
Multiple R0.991542565105353
R-squared0.983156658415704
Adjusted R-squared0.978396583620142
F-TEST (value)206.542271002199
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40090.7157698318
Sum Squared Residuals73934212583.1223

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.991542565105353 \tabularnewline
R-squared & 0.983156658415704 \tabularnewline
Adjusted R-squared & 0.978396583620142 \tabularnewline
F-TEST (value) & 206.542271002199 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 40090.7157698318 \tabularnewline
Sum Squared Residuals & 73934212583.1223 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69849&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.991542565105353[/C][/ROW]
[ROW][C]R-squared[/C][C]0.983156658415704[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.978396583620142[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]206.542271002199[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]40090.7157698318[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]73934212583.1223[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69849&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69849&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.991542565105353
R-squared0.983156658415704
Adjusted R-squared0.978396583620142
F-TEST (value)206.542271002199
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40090.7157698318
Sum Squared Residuals73934212583.1223







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1921365918369.7444444452995.25555555506
2987921959862.74444444428058.2555555558
311326141168732.74444444-36118.7444444446
413322241340150.54444445-7926.54444444494
514181331435107.74444444-16974.7444444443
614115491450650.34444445-39101.344444445
716959201704619.94444444-8699.94444444406
816361731600490.3444444435682.6555555557
915396531543853.34444444-4200.34444444413
1013953141385431.544444449882.45555555539
1111275751110840.9444444416734.0555555555
121036076998764.94444444437311.0555555556
13989236964800.77777777824435.2222222224
1410083801006293.777777782086.22222222239
1512077631215163.77777778-7400.7777777777
1613688391386581.57777778-17742.5777777776
1714697981481538.77777778-11740.7777777778
1814987211497081.377777781639.62222222239
1917617691751050.9777777810718.0222222222
2016532141646921.377777786292.62222222226
2115991041590284.377777788819.62222222224
2214211791431862.57777778-10683.5777777777
2311639951157271.977777786723.02222222223
2410377351045195.97777778-7460.97777777782
2510154071011231.811111114175.18888888893
2610392101052724.81111111-13514.8111111112
2712580491261594.81111111-3545.81111111111
2814694451433012.6111111136432.388888889
2915523461527969.8111111124376.1888888888
3015491441543512.411111115631.58888888902
3117858951797482.01111111-11587.0111111112
3216623351693352.41111111-31017.4111111111
3316294401636715.41111111-7275.41111111114
3414674301478293.61111111-10863.6111111111
3512022091203703.01111111-1494.01111111119
3610769821091627.01111111-14645.0111111112
3710393671110095.81666667-70728.8166666665
3810634491151588.81666667-88139.8166666668
3913351351360458.81666667-25323.8166666666
4014916021531876.61666667-40274.6166666665
4115919721626833.81666667-34861.8166666667
4216412481642376.41666667-1128.41666666652
4318988491896346.016666672502.98333333320
4417985801792216.416666676363.5833333333
4517624441735579.4166666726864.5833333332
4616220441577157.6166666744886.3833333334
4713689551302567.0166666766387.9833333334
4812629731190491.0166666772481.9833333334
4911956501156526.8539123.1500000001
5012695301198019.8571510.1499999999
5114792791406889.8572389.15
5216078191578307.6529511.3500000001
5317124661673264.8539201.1499999999
5417217661688807.4532958.5500000001
5519498431942777.057065.9499999998
5618213261838647.45-17321.4500000001
5717578021782010.45-24208.4500000002
5815903671623588.65-33221.65
5912606471348998.05-88351.05
6011492351236922.05-87687.05

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 921365 & 918369.744444445 & 2995.25555555506 \tabularnewline
2 & 987921 & 959862.744444444 & 28058.2555555558 \tabularnewline
3 & 1132614 & 1168732.74444444 & -36118.7444444446 \tabularnewline
4 & 1332224 & 1340150.54444445 & -7926.54444444494 \tabularnewline
5 & 1418133 & 1435107.74444444 & -16974.7444444443 \tabularnewline
6 & 1411549 & 1450650.34444445 & -39101.344444445 \tabularnewline
7 & 1695920 & 1704619.94444444 & -8699.94444444406 \tabularnewline
8 & 1636173 & 1600490.34444444 & 35682.6555555557 \tabularnewline
9 & 1539653 & 1543853.34444444 & -4200.34444444413 \tabularnewline
10 & 1395314 & 1385431.54444444 & 9882.45555555539 \tabularnewline
11 & 1127575 & 1110840.94444444 & 16734.0555555555 \tabularnewline
12 & 1036076 & 998764.944444444 & 37311.0555555556 \tabularnewline
13 & 989236 & 964800.777777778 & 24435.2222222224 \tabularnewline
14 & 1008380 & 1006293.77777778 & 2086.22222222239 \tabularnewline
15 & 1207763 & 1215163.77777778 & -7400.7777777777 \tabularnewline
16 & 1368839 & 1386581.57777778 & -17742.5777777776 \tabularnewline
17 & 1469798 & 1481538.77777778 & -11740.7777777778 \tabularnewline
18 & 1498721 & 1497081.37777778 & 1639.62222222239 \tabularnewline
19 & 1761769 & 1751050.97777778 & 10718.0222222222 \tabularnewline
20 & 1653214 & 1646921.37777778 & 6292.62222222226 \tabularnewline
21 & 1599104 & 1590284.37777778 & 8819.62222222224 \tabularnewline
22 & 1421179 & 1431862.57777778 & -10683.5777777777 \tabularnewline
23 & 1163995 & 1157271.97777778 & 6723.02222222223 \tabularnewline
24 & 1037735 & 1045195.97777778 & -7460.97777777782 \tabularnewline
25 & 1015407 & 1011231.81111111 & 4175.18888888893 \tabularnewline
26 & 1039210 & 1052724.81111111 & -13514.8111111112 \tabularnewline
27 & 1258049 & 1261594.81111111 & -3545.81111111111 \tabularnewline
28 & 1469445 & 1433012.61111111 & 36432.388888889 \tabularnewline
29 & 1552346 & 1527969.81111111 & 24376.1888888888 \tabularnewline
30 & 1549144 & 1543512.41111111 & 5631.58888888902 \tabularnewline
31 & 1785895 & 1797482.01111111 & -11587.0111111112 \tabularnewline
32 & 1662335 & 1693352.41111111 & -31017.4111111111 \tabularnewline
33 & 1629440 & 1636715.41111111 & -7275.41111111114 \tabularnewline
34 & 1467430 & 1478293.61111111 & -10863.6111111111 \tabularnewline
35 & 1202209 & 1203703.01111111 & -1494.01111111119 \tabularnewline
36 & 1076982 & 1091627.01111111 & -14645.0111111112 \tabularnewline
37 & 1039367 & 1110095.81666667 & -70728.8166666665 \tabularnewline
38 & 1063449 & 1151588.81666667 & -88139.8166666668 \tabularnewline
39 & 1335135 & 1360458.81666667 & -25323.8166666666 \tabularnewline
40 & 1491602 & 1531876.61666667 & -40274.6166666665 \tabularnewline
41 & 1591972 & 1626833.81666667 & -34861.8166666667 \tabularnewline
42 & 1641248 & 1642376.41666667 & -1128.41666666652 \tabularnewline
43 & 1898849 & 1896346.01666667 & 2502.98333333320 \tabularnewline
44 & 1798580 & 1792216.41666667 & 6363.5833333333 \tabularnewline
45 & 1762444 & 1735579.41666667 & 26864.5833333332 \tabularnewline
46 & 1622044 & 1577157.61666667 & 44886.3833333334 \tabularnewline
47 & 1368955 & 1302567.01666667 & 66387.9833333334 \tabularnewline
48 & 1262973 & 1190491.01666667 & 72481.9833333334 \tabularnewline
49 & 1195650 & 1156526.85 & 39123.1500000001 \tabularnewline
50 & 1269530 & 1198019.85 & 71510.1499999999 \tabularnewline
51 & 1479279 & 1406889.85 & 72389.15 \tabularnewline
52 & 1607819 & 1578307.65 & 29511.3500000001 \tabularnewline
53 & 1712466 & 1673264.85 & 39201.1499999999 \tabularnewline
54 & 1721766 & 1688807.45 & 32958.5500000001 \tabularnewline
55 & 1949843 & 1942777.05 & 7065.9499999998 \tabularnewline
56 & 1821326 & 1838647.45 & -17321.4500000001 \tabularnewline
57 & 1757802 & 1782010.45 & -24208.4500000002 \tabularnewline
58 & 1590367 & 1623588.65 & -33221.65 \tabularnewline
59 & 1260647 & 1348998.05 & -88351.05 \tabularnewline
60 & 1149235 & 1236922.05 & -87687.05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69849&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]921365[/C][C]918369.744444445[/C][C]2995.25555555506[/C][/ROW]
[ROW][C]2[/C][C]987921[/C][C]959862.744444444[/C][C]28058.2555555558[/C][/ROW]
[ROW][C]3[/C][C]1132614[/C][C]1168732.74444444[/C][C]-36118.7444444446[/C][/ROW]
[ROW][C]4[/C][C]1332224[/C][C]1340150.54444445[/C][C]-7926.54444444494[/C][/ROW]
[ROW][C]5[/C][C]1418133[/C][C]1435107.74444444[/C][C]-16974.7444444443[/C][/ROW]
[ROW][C]6[/C][C]1411549[/C][C]1450650.34444445[/C][C]-39101.344444445[/C][/ROW]
[ROW][C]7[/C][C]1695920[/C][C]1704619.94444444[/C][C]-8699.94444444406[/C][/ROW]
[ROW][C]8[/C][C]1636173[/C][C]1600490.34444444[/C][C]35682.6555555557[/C][/ROW]
[ROW][C]9[/C][C]1539653[/C][C]1543853.34444444[/C][C]-4200.34444444413[/C][/ROW]
[ROW][C]10[/C][C]1395314[/C][C]1385431.54444444[/C][C]9882.45555555539[/C][/ROW]
[ROW][C]11[/C][C]1127575[/C][C]1110840.94444444[/C][C]16734.0555555555[/C][/ROW]
[ROW][C]12[/C][C]1036076[/C][C]998764.944444444[/C][C]37311.0555555556[/C][/ROW]
[ROW][C]13[/C][C]989236[/C][C]964800.777777778[/C][C]24435.2222222224[/C][/ROW]
[ROW][C]14[/C][C]1008380[/C][C]1006293.77777778[/C][C]2086.22222222239[/C][/ROW]
[ROW][C]15[/C][C]1207763[/C][C]1215163.77777778[/C][C]-7400.7777777777[/C][/ROW]
[ROW][C]16[/C][C]1368839[/C][C]1386581.57777778[/C][C]-17742.5777777776[/C][/ROW]
[ROW][C]17[/C][C]1469798[/C][C]1481538.77777778[/C][C]-11740.7777777778[/C][/ROW]
[ROW][C]18[/C][C]1498721[/C][C]1497081.37777778[/C][C]1639.62222222239[/C][/ROW]
[ROW][C]19[/C][C]1761769[/C][C]1751050.97777778[/C][C]10718.0222222222[/C][/ROW]
[ROW][C]20[/C][C]1653214[/C][C]1646921.37777778[/C][C]6292.62222222226[/C][/ROW]
[ROW][C]21[/C][C]1599104[/C][C]1590284.37777778[/C][C]8819.62222222224[/C][/ROW]
[ROW][C]22[/C][C]1421179[/C][C]1431862.57777778[/C][C]-10683.5777777777[/C][/ROW]
[ROW][C]23[/C][C]1163995[/C][C]1157271.97777778[/C][C]6723.02222222223[/C][/ROW]
[ROW][C]24[/C][C]1037735[/C][C]1045195.97777778[/C][C]-7460.97777777782[/C][/ROW]
[ROW][C]25[/C][C]1015407[/C][C]1011231.81111111[/C][C]4175.18888888893[/C][/ROW]
[ROW][C]26[/C][C]1039210[/C][C]1052724.81111111[/C][C]-13514.8111111112[/C][/ROW]
[ROW][C]27[/C][C]1258049[/C][C]1261594.81111111[/C][C]-3545.81111111111[/C][/ROW]
[ROW][C]28[/C][C]1469445[/C][C]1433012.61111111[/C][C]36432.388888889[/C][/ROW]
[ROW][C]29[/C][C]1552346[/C][C]1527969.81111111[/C][C]24376.1888888888[/C][/ROW]
[ROW][C]30[/C][C]1549144[/C][C]1543512.41111111[/C][C]5631.58888888902[/C][/ROW]
[ROW][C]31[/C][C]1785895[/C][C]1797482.01111111[/C][C]-11587.0111111112[/C][/ROW]
[ROW][C]32[/C][C]1662335[/C][C]1693352.41111111[/C][C]-31017.4111111111[/C][/ROW]
[ROW][C]33[/C][C]1629440[/C][C]1636715.41111111[/C][C]-7275.41111111114[/C][/ROW]
[ROW][C]34[/C][C]1467430[/C][C]1478293.61111111[/C][C]-10863.6111111111[/C][/ROW]
[ROW][C]35[/C][C]1202209[/C][C]1203703.01111111[/C][C]-1494.01111111119[/C][/ROW]
[ROW][C]36[/C][C]1076982[/C][C]1091627.01111111[/C][C]-14645.0111111112[/C][/ROW]
[ROW][C]37[/C][C]1039367[/C][C]1110095.81666667[/C][C]-70728.8166666665[/C][/ROW]
[ROW][C]38[/C][C]1063449[/C][C]1151588.81666667[/C][C]-88139.8166666668[/C][/ROW]
[ROW][C]39[/C][C]1335135[/C][C]1360458.81666667[/C][C]-25323.8166666666[/C][/ROW]
[ROW][C]40[/C][C]1491602[/C][C]1531876.61666667[/C][C]-40274.6166666665[/C][/ROW]
[ROW][C]41[/C][C]1591972[/C][C]1626833.81666667[/C][C]-34861.8166666667[/C][/ROW]
[ROW][C]42[/C][C]1641248[/C][C]1642376.41666667[/C][C]-1128.41666666652[/C][/ROW]
[ROW][C]43[/C][C]1898849[/C][C]1896346.01666667[/C][C]2502.98333333320[/C][/ROW]
[ROW][C]44[/C][C]1798580[/C][C]1792216.41666667[/C][C]6363.5833333333[/C][/ROW]
[ROW][C]45[/C][C]1762444[/C][C]1735579.41666667[/C][C]26864.5833333332[/C][/ROW]
[ROW][C]46[/C][C]1622044[/C][C]1577157.61666667[/C][C]44886.3833333334[/C][/ROW]
[ROW][C]47[/C][C]1368955[/C][C]1302567.01666667[/C][C]66387.9833333334[/C][/ROW]
[ROW][C]48[/C][C]1262973[/C][C]1190491.01666667[/C][C]72481.9833333334[/C][/ROW]
[ROW][C]49[/C][C]1195650[/C][C]1156526.85[/C][C]39123.1500000001[/C][/ROW]
[ROW][C]50[/C][C]1269530[/C][C]1198019.85[/C][C]71510.1499999999[/C][/ROW]
[ROW][C]51[/C][C]1479279[/C][C]1406889.85[/C][C]72389.15[/C][/ROW]
[ROW][C]52[/C][C]1607819[/C][C]1578307.65[/C][C]29511.3500000001[/C][/ROW]
[ROW][C]53[/C][C]1712466[/C][C]1673264.85[/C][C]39201.1499999999[/C][/ROW]
[ROW][C]54[/C][C]1721766[/C][C]1688807.45[/C][C]32958.5500000001[/C][/ROW]
[ROW][C]55[/C][C]1949843[/C][C]1942777.05[/C][C]7065.9499999998[/C][/ROW]
[ROW][C]56[/C][C]1821326[/C][C]1838647.45[/C][C]-17321.4500000001[/C][/ROW]
[ROW][C]57[/C][C]1757802[/C][C]1782010.45[/C][C]-24208.4500000002[/C][/ROW]
[ROW][C]58[/C][C]1590367[/C][C]1623588.65[/C][C]-33221.65[/C][/ROW]
[ROW][C]59[/C][C]1260647[/C][C]1348998.05[/C][C]-88351.05[/C][/ROW]
[ROW][C]60[/C][C]1149235[/C][C]1236922.05[/C][C]-87687.05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69849&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69849&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
1921365918369.7444444452995.25555555506
2987921959862.74444444428058.2555555558
311326141168732.74444444-36118.7444444446
413322241340150.54444445-7926.54444444494
514181331435107.74444444-16974.7444444443
614115491450650.34444445-39101.344444445
716959201704619.94444444-8699.94444444406
816361731600490.3444444435682.6555555557
915396531543853.34444444-4200.34444444413
1013953141385431.544444449882.45555555539
1111275751110840.9444444416734.0555555555
121036076998764.94444444437311.0555555556
13989236964800.77777777824435.2222222224
1410083801006293.777777782086.22222222239
1512077631215163.77777778-7400.7777777777
1613688391386581.57777778-17742.5777777776
1714697981481538.77777778-11740.7777777778
1814987211497081.377777781639.62222222239
1917617691751050.9777777810718.0222222222
2016532141646921.377777786292.62222222226
2115991041590284.377777788819.62222222224
2214211791431862.57777778-10683.5777777777
2311639951157271.977777786723.02222222223
2410377351045195.97777778-7460.97777777782
2510154071011231.811111114175.18888888893
2610392101052724.81111111-13514.8111111112
2712580491261594.81111111-3545.81111111111
2814694451433012.6111111136432.388888889
2915523461527969.8111111124376.1888888888
3015491441543512.411111115631.58888888902
3117858951797482.01111111-11587.0111111112
3216623351693352.41111111-31017.4111111111
3316294401636715.41111111-7275.41111111114
3414674301478293.61111111-10863.6111111111
3512022091203703.01111111-1494.01111111119
3610769821091627.01111111-14645.0111111112
3710393671110095.81666667-70728.8166666665
3810634491151588.81666667-88139.8166666668
3913351351360458.81666667-25323.8166666666
4014916021531876.61666667-40274.6166666665
4115919721626833.81666667-34861.8166666667
4216412481642376.41666667-1128.41666666652
4318988491896346.016666672502.98333333320
4417985801792216.416666676363.5833333333
4517624441735579.4166666726864.5833333332
4616220441577157.6166666744886.3833333334
4713689551302567.0166666766387.9833333334
4812629731190491.0166666772481.9833333334
4911956501156526.8539123.1500000001
5012695301198019.8571510.1499999999
5114792791406889.8572389.15
5216078191578307.6529511.3500000001
5317124661673264.8539201.1499999999
5417217661688807.4532958.5500000001
5519498431942777.057065.9499999998
5618213261838647.45-17321.4500000001
5717578021782010.45-24208.4500000002
5815903671623588.65-33221.65
5912606471348998.05-88351.05
6011492351236922.05-87687.05







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.07391225540762990.1478245108152600.92608774459237
180.0505405678732020.1010811357464040.949459432126798
190.01815741571923740.03631483143847480.981842584280763
200.01546404918333940.03092809836667880.98453595081666
210.005493936089713690.01098787217942740.994506063910286
220.002829099920738260.005658199841476520.997170900079262
230.001042422045521910.002084844091043820.998957577954478
240.001251261200821280.002502522401642560.998748738799179
250.0004400530057922190.0008801060115844380.999559946994208
260.0002160736091852940.0004321472183705880.999783926390815
270.0001091744611818980.0002183489223637960.999890825538818
280.0002222142011210200.0004444284022420400.99977778579888
290.0001575299508842100.0003150599017684210.999842470049116
306.13886303523405e-050.0001227772607046810.999938611369648
312.50468944862047e-055.00937889724094e-050.999974953105514
324.64012871780496e-059.28025743560991e-050.999953598712822
331.57694306437690e-053.15388612875379e-050.999984230569356
345.1540956779474e-061.03081913558948e-050.999994845904322
351.61897321064977e-063.23794642129954e-060.99999838102679
366.73548984820819e-071.34709796964164e-060.999999326451015
374.40564645005409e-078.81129290010818e-070.999999559435355
382.18226517834296e-064.36453035668591e-060.999997817734822
393.54583605312925e-057.0916721062585e-050.999964541639469
406.41198500359249e-050.0001282397000718500.999935880149964
410.0004228176090035400.0008456352180070810.999577182390996
420.003796498121400280.007592996242800560.9962035018786
430.01530460390936960.03060920781873920.98469539609063

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0739122554076299 & 0.147824510815260 & 0.92608774459237 \tabularnewline
18 & 0.050540567873202 & 0.101081135746404 & 0.949459432126798 \tabularnewline
19 & 0.0181574157192374 & 0.0363148314384748 & 0.981842584280763 \tabularnewline
20 & 0.0154640491833394 & 0.0309280983666788 & 0.98453595081666 \tabularnewline
21 & 0.00549393608971369 & 0.0109878721794274 & 0.994506063910286 \tabularnewline
22 & 0.00282909992073826 & 0.00565819984147652 & 0.997170900079262 \tabularnewline
23 & 0.00104242204552191 & 0.00208484409104382 & 0.998957577954478 \tabularnewline
24 & 0.00125126120082128 & 0.00250252240164256 & 0.998748738799179 \tabularnewline
25 & 0.000440053005792219 & 0.000880106011584438 & 0.999559946994208 \tabularnewline
26 & 0.000216073609185294 & 0.000432147218370588 & 0.999783926390815 \tabularnewline
27 & 0.000109174461181898 & 0.000218348922363796 & 0.999890825538818 \tabularnewline
28 & 0.000222214201121020 & 0.000444428402242040 & 0.99977778579888 \tabularnewline
29 & 0.000157529950884210 & 0.000315059901768421 & 0.999842470049116 \tabularnewline
30 & 6.13886303523405e-05 & 0.000122777260704681 & 0.999938611369648 \tabularnewline
31 & 2.50468944862047e-05 & 5.00937889724094e-05 & 0.999974953105514 \tabularnewline
32 & 4.64012871780496e-05 & 9.28025743560991e-05 & 0.999953598712822 \tabularnewline
33 & 1.57694306437690e-05 & 3.15388612875379e-05 & 0.999984230569356 \tabularnewline
34 & 5.1540956779474e-06 & 1.03081913558948e-05 & 0.999994845904322 \tabularnewline
35 & 1.61897321064977e-06 & 3.23794642129954e-06 & 0.99999838102679 \tabularnewline
36 & 6.73548984820819e-07 & 1.34709796964164e-06 & 0.999999326451015 \tabularnewline
37 & 4.40564645005409e-07 & 8.81129290010818e-07 & 0.999999559435355 \tabularnewline
38 & 2.18226517834296e-06 & 4.36453035668591e-06 & 0.999997817734822 \tabularnewline
39 & 3.54583605312925e-05 & 7.0916721062585e-05 & 0.999964541639469 \tabularnewline
40 & 6.41198500359249e-05 & 0.000128239700071850 & 0.999935880149964 \tabularnewline
41 & 0.000422817609003540 & 0.000845635218007081 & 0.999577182390996 \tabularnewline
42 & 0.00379649812140028 & 0.00759299624280056 & 0.9962035018786 \tabularnewline
43 & 0.0153046039093696 & 0.0306092078187392 & 0.98469539609063 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69849&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0739122554076299[/C][C]0.147824510815260[/C][C]0.92608774459237[/C][/ROW]
[ROW][C]18[/C][C]0.050540567873202[/C][C]0.101081135746404[/C][C]0.949459432126798[/C][/ROW]
[ROW][C]19[/C][C]0.0181574157192374[/C][C]0.0363148314384748[/C][C]0.981842584280763[/C][/ROW]
[ROW][C]20[/C][C]0.0154640491833394[/C][C]0.0309280983666788[/C][C]0.98453595081666[/C][/ROW]
[ROW][C]21[/C][C]0.00549393608971369[/C][C]0.0109878721794274[/C][C]0.994506063910286[/C][/ROW]
[ROW][C]22[/C][C]0.00282909992073826[/C][C]0.00565819984147652[/C][C]0.997170900079262[/C][/ROW]
[ROW][C]23[/C][C]0.00104242204552191[/C][C]0.00208484409104382[/C][C]0.998957577954478[/C][/ROW]
[ROW][C]24[/C][C]0.00125126120082128[/C][C]0.00250252240164256[/C][C]0.998748738799179[/C][/ROW]
[ROW][C]25[/C][C]0.000440053005792219[/C][C]0.000880106011584438[/C][C]0.999559946994208[/C][/ROW]
[ROW][C]26[/C][C]0.000216073609185294[/C][C]0.000432147218370588[/C][C]0.999783926390815[/C][/ROW]
[ROW][C]27[/C][C]0.000109174461181898[/C][C]0.000218348922363796[/C][C]0.999890825538818[/C][/ROW]
[ROW][C]28[/C][C]0.000222214201121020[/C][C]0.000444428402242040[/C][C]0.99977778579888[/C][/ROW]
[ROW][C]29[/C][C]0.000157529950884210[/C][C]0.000315059901768421[/C][C]0.999842470049116[/C][/ROW]
[ROW][C]30[/C][C]6.13886303523405e-05[/C][C]0.000122777260704681[/C][C]0.999938611369648[/C][/ROW]
[ROW][C]31[/C][C]2.50468944862047e-05[/C][C]5.00937889724094e-05[/C][C]0.999974953105514[/C][/ROW]
[ROW][C]32[/C][C]4.64012871780496e-05[/C][C]9.28025743560991e-05[/C][C]0.999953598712822[/C][/ROW]
[ROW][C]33[/C][C]1.57694306437690e-05[/C][C]3.15388612875379e-05[/C][C]0.999984230569356[/C][/ROW]
[ROW][C]34[/C][C]5.1540956779474e-06[/C][C]1.03081913558948e-05[/C][C]0.999994845904322[/C][/ROW]
[ROW][C]35[/C][C]1.61897321064977e-06[/C][C]3.23794642129954e-06[/C][C]0.99999838102679[/C][/ROW]
[ROW][C]36[/C][C]6.73548984820819e-07[/C][C]1.34709796964164e-06[/C][C]0.999999326451015[/C][/ROW]
[ROW][C]37[/C][C]4.40564645005409e-07[/C][C]8.81129290010818e-07[/C][C]0.999999559435355[/C][/ROW]
[ROW][C]38[/C][C]2.18226517834296e-06[/C][C]4.36453035668591e-06[/C][C]0.999997817734822[/C][/ROW]
[ROW][C]39[/C][C]3.54583605312925e-05[/C][C]7.0916721062585e-05[/C][C]0.999964541639469[/C][/ROW]
[ROW][C]40[/C][C]6.41198500359249e-05[/C][C]0.000128239700071850[/C][C]0.999935880149964[/C][/ROW]
[ROW][C]41[/C][C]0.000422817609003540[/C][C]0.000845635218007081[/C][C]0.999577182390996[/C][/ROW]
[ROW][C]42[/C][C]0.00379649812140028[/C][C]0.00759299624280056[/C][C]0.9962035018786[/C][/ROW]
[ROW][C]43[/C][C]0.0153046039093696[/C][C]0.0306092078187392[/C][C]0.98469539609063[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69849&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.07391225540762990.1478245108152600.92608774459237
180.0505405678732020.1010811357464040.949459432126798
190.01815741571923740.03631483143847480.981842584280763
200.01546404918333940.03092809836667880.98453595081666
210.005493936089713690.01098787217942740.994506063910286
220.002829099920738260.005658199841476520.997170900079262
230.001042422045521910.002084844091043820.998957577954478
240.001251261200821280.002502522401642560.998748738799179
250.0004400530057922190.0008801060115844380.999559946994208
260.0002160736091852940.0004321472183705880.999783926390815
270.0001091744611818980.0002183489223637960.999890825538818
280.0002222142011210200.0004444284022420400.99977778579888
290.0001575299508842100.0003150599017684210.999842470049116
306.13886303523405e-050.0001227772607046810.999938611369648
312.50468944862047e-055.00937889724094e-050.999974953105514
324.64012871780496e-059.28025743560991e-050.999953598712822
331.57694306437690e-053.15388612875379e-050.999984230569356
345.1540956779474e-061.03081913558948e-050.999994845904322
351.61897321064977e-063.23794642129954e-060.99999838102679
366.73548984820819e-071.34709796964164e-060.999999326451015
374.40564645005409e-078.81129290010818e-070.999999559435355
382.18226517834296e-064.36453035668591e-060.999997817734822
393.54583605312925e-057.0916721062585e-050.999964541639469
406.41198500359249e-050.0001282397000718500.999935880149964
410.0004228176090035400.0008456352180070810.999577182390996
420.003796498121400280.007592996242800560.9962035018786
430.01530460390936960.03060920781873920.98469539609063







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level210.777777777777778NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69849&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 level210.777777777777778NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK



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