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:11:15 -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/t126131122325kd4edllsr56zo.htm/, Retrieved Sat, 27 Apr 2024 10:37:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69850, Retrieved Sat, 27 Apr 2024 10:37:59 +0000
QR Codes:

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

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 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 & 5 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69850&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]5 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=69850&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 952333.91111111 + 52432.972222222X[t] -87550.5749999999Crisis[t] -49993.2215277782M1[t] -12855.8663888886M2[t] + 191658.48875M3[t] + 358720.64388889M4[t] + 449322.199027778M5[t] + 460509.154166666M6[t] + 710123.109305555M7[t] + 601637.864444445M8[t] + 558155.334583333M9[t] + 395377.889722222M10[t] + 116431.644861111M11[t] + 4355.64486111111t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  952333.91111111 +  52432.972222222X[t] -87550.5749999999Crisis[t] -49993.2215277782M1[t] -12855.8663888886M2[t] +  191658.48875M3[t] +  358720.64388889M4[t] +  449322.199027778M5[t] +  460509.154166666M6[t] +  710123.109305555M7[t] +  601637.864444445M8[t] +  558155.334583333M9[t] +  395377.889722222M10[t] +  116431.644861111M11[t] +  4355.64486111111t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69850&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  952333.91111111 +  52432.972222222X[t] -87550.5749999999Crisis[t] -49993.2215277782M1[t] -12855.8663888886M2[t] +  191658.48875M3[t] +  358720.64388889M4[t] +  449322.199027778M5[t] +  460509.154166666M6[t] +  710123.109305555M7[t] +  601637.864444445M8[t] +  558155.334583333M9[t] +  395377.889722222M10[t] +  116431.644861111M11[t] +  4355.64486111111t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69850&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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.972222222X[t] -87550.5749999999Crisis[t] -49993.2215277782M1[t] -12855.8663888886M2[t] + 191658.48875M3[t] + 358720.64388889M4[t] + 449322.199027778M5[t] + 460509.154166666M6[t] + 710123.109305555M7[t] + 601637.864444445M8[t] + 558155.334583333M9[t] + 395377.889722222M10[t] + 116431.644861111M11[t] + 4355.64486111111t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)952333.9111111120235.11225547.063400
X52432.97222222218171.6672412.88540.0059820.002991
Crisis-87550.574999999921113.569379-4.14660.0001477.4e-05
M1-49993.221527778222746.362239-2.19790.0331460.016573
M2-12855.866388888622634.487496-0.5680.5728740.286437
M3191658.4887522534.8822928.50500
M4358720.6438888922447.70995415.980300
M5449322.19902777822373.11581120.083100
M6460509.15416666622311.22602320.640200
M7710123.10930555522262.14654431.898200
M8601637.86444444522225.9622427.069100
M9558155.33458333321865.54517425.526700
M10395377.88972222221832.48495418.109600
M11116431.64486111121812.624775.33783e-061e-06
t4355.64486111111537.5251668.103100

\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 & 20235.112255 & 47.0634 & 0 & 0 \tabularnewline
X & 52432.972222222 & 18171.667241 & 2.8854 & 0.005982 & 0.002991 \tabularnewline
Crisis & -87550.5749999999 & 21113.569379 & -4.1466 & 0.000147 & 7.4e-05 \tabularnewline
M1 & -49993.2215277782 & 22746.362239 & -2.1979 & 0.033146 & 0.016573 \tabularnewline
M2 & -12855.8663888886 & 22634.487496 & -0.568 & 0.572874 & 0.286437 \tabularnewline
M3 & 191658.48875 & 22534.882292 & 8.505 & 0 & 0 \tabularnewline
M4 & 358720.64388889 & 22447.709954 & 15.9803 & 0 & 0 \tabularnewline
M5 & 449322.199027778 & 22373.115811 & 20.0831 & 0 & 0 \tabularnewline
M6 & 460509.154166666 & 22311.226023 & 20.6402 & 0 & 0 \tabularnewline
M7 & 710123.109305555 & 22262.146544 & 31.8982 & 0 & 0 \tabularnewline
M8 & 601637.864444445 & 22225.96224 & 27.0691 & 0 & 0 \tabularnewline
M9 & 558155.334583333 & 21865.545174 & 25.5267 & 0 & 0 \tabularnewline
M10 & 395377.889722222 & 21832.484954 & 18.1096 & 0 & 0 \tabularnewline
M11 & 116431.644861111 & 21812.62477 & 5.3378 & 3e-06 & 1e-06 \tabularnewline
t & 4355.64486111111 & 537.525166 & 8.1031 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69850&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]20235.112255[/C][C]47.0634[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]52432.972222222[/C][C]18171.667241[/C][C]2.8854[/C][C]0.005982[/C][C]0.002991[/C][/ROW]
[ROW][C]Crisis[/C][C]-87550.5749999999[/C][C]21113.569379[/C][C]-4.1466[/C][C]0.000147[/C][C]7.4e-05[/C][/ROW]
[ROW][C]M1[/C][C]-49993.2215277782[/C][C]22746.362239[/C][C]-2.1979[/C][C]0.033146[/C][C]0.016573[/C][/ROW]
[ROW][C]M2[/C][C]-12855.8663888886[/C][C]22634.487496[/C][C]-0.568[/C][C]0.572874[/C][C]0.286437[/C][/ROW]
[ROW][C]M3[/C][C]191658.48875[/C][C]22534.882292[/C][C]8.505[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]358720.64388889[/C][C]22447.709954[/C][C]15.9803[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]449322.199027778[/C][C]22373.115811[/C][C]20.0831[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]460509.154166666[/C][C]22311.226023[/C][C]20.6402[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]710123.109305555[/C][C]22262.146544[/C][C]31.8982[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]601637.864444445[/C][C]22225.96224[/C][C]27.0691[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]558155.334583333[/C][C]21865.545174[/C][C]25.5267[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]395377.889722222[/C][C]21832.484954[/C][C]18.1096[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]116431.644861111[/C][C]21812.62477[/C][C]5.3378[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]t[/C][C]4355.64486111111[/C][C]537.525166[/C][C]8.1031[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69850&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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.9111111120235.11225547.063400
X52432.97222222218171.6672412.88540.0059820.002991
Crisis-87550.574999999921113.569379-4.14660.0001477.4e-05
M1-49993.221527778222746.362239-2.19790.0331460.016573
M2-12855.866388888622634.487496-0.5680.5728740.286437
M3191658.4887522534.8822928.50500
M4358720.6438888922447.70995415.980300
M5449322.19902777822373.11581120.083100
M6460509.15416666622311.22602320.640200
M7710123.10930555522262.14654431.898200
M8601637.86444444522225.9622427.069100
M9558155.33458333321865.54517425.526700
M10395377.88972222221832.48495418.109600
M11116431.64486111121812.624775.33783e-061e-06
t4355.64486111111537.5251668.103100







Multiple Linear Regression - Regression Statistics
Multiple R0.993887953915085
R-squared0.987813264937514
Adjusted R-squared0.984021836251407
F-TEST (value)260.53853223119
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation34478.3144177152
Sum Squared Residuals53493937428.9072

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.993887953915085 \tabularnewline
R-squared & 0.987813264937514 \tabularnewline
Adjusted R-squared & 0.984021836251407 \tabularnewline
F-TEST (value) & 260.53853223119 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 34478.3144177152 \tabularnewline
Sum Squared Residuals & 53493937428.9072 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69850&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.993887953915085[/C][/ROW]
[ROW][C]R-squared[/C][C]0.987813264937514[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.984021836251407[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]260.53853223119[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/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]34478.3144177152[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]53493937428.9072[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69850&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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.993887953915085
R-squared0.987813264937514
Adjusted R-squared0.984021836251407
F-TEST (value)260.53853223119
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation34478.3144177152
Sum Squared Residuals53493937428.9072







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1921365906696.33444444514668.6655555549
2987921948189.33444444439731.6655555558
311326141157059.33444444-24445.3344444442
413322241328477.134444443746.86555555624
514181331423434.33444444-5301.3344444448
614115491438976.93444444-27427.9344444444
716959201692946.534444452973.46555555489
816361731588816.9344444447356.0655555555
915396531549690.04944444-10037.049444444
1013953141391268.249444444045.75055555558
1111275751116677.6494444510897.3505555551
1210360761004601.6494444431474.3505555556
13989236958964.07277777730271.9272222226
1410083801000457.072777787922.92722222221
1512077631209327.07277778-1564.07277777785
1613688391380744.87277778-11905.8727777779
1714697981475702.07277778-5904.07277777768
1814987211491244.672777787476.3272222222
1917617691745214.2727777816554.7272222225
2016532141641084.6727777812129.3272222223
2115991041601957.78777778-2853.78777777782
2214211791443535.98777778-22356.9877777778
2311639951168945.38777778-4950.3877777777
2410377351056869.38777778-19134.3877777778
2510154071011231.811111114175.18888888898
2610392101052724.81111111-13514.8111111112
2712580491261594.81111111-3545.81111111128
2814694451433012.6111111136432.3888888887
2915523461527969.8111111124376.188888889
3015491441543512.411111115631.58888888884
3117858951797482.01111111-11587.0111111109
3216623351693352.41111111-31017.4111111111
3316294401654225.52611111-24785.5261111112
3414674301495803.72611111-28373.7261111111
3512022091221213.12611111-19004.1261111110
3610769821109137.12611111-32155.1261111112
3710393671115932.52166667-76565.5216666665
3810634491157425.52166667-93976.5216666667
3913351351366295.52166667-31160.5216666667
4014916021537713.32166667-46111.3216666668
4115919721632670.52166667-40698.5216666666
4216412481648213.12166667-6965.12166666665
4318988491902182.72166667-3333.72166666657
4417985801798053.12166667526.878333333297
4517624441758926.236666673517.7633333331
4616220441600504.4366666721539.5633333333
4713689551325913.8366666743041.1633333335
4812629731213837.8366666749135.1633333333
4911956501168200.2627449.7400000001
5012695301209693.2659836.7399999999
5114792791418563.2660715.74
5216078191589981.0617837.9399999998
5317124661684938.2627527.7400000000
5417217661700480.8621285.1400000000
5519498431954450.46-4607.45999999989
5618213261850320.86-28994.8600000001
5717578021723643.434158.5999999999
5815903671565221.625145.4
5912606471290631-29983.9999999999
6011492351178555-29320

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 921365 & 906696.334444445 & 14668.6655555549 \tabularnewline
2 & 987921 & 948189.334444444 & 39731.6655555558 \tabularnewline
3 & 1132614 & 1157059.33444444 & -24445.3344444442 \tabularnewline
4 & 1332224 & 1328477.13444444 & 3746.86555555624 \tabularnewline
5 & 1418133 & 1423434.33444444 & -5301.3344444448 \tabularnewline
6 & 1411549 & 1438976.93444444 & -27427.9344444444 \tabularnewline
7 & 1695920 & 1692946.53444445 & 2973.46555555489 \tabularnewline
8 & 1636173 & 1588816.93444444 & 47356.0655555555 \tabularnewline
9 & 1539653 & 1549690.04944444 & -10037.049444444 \tabularnewline
10 & 1395314 & 1391268.24944444 & 4045.75055555558 \tabularnewline
11 & 1127575 & 1116677.64944445 & 10897.3505555551 \tabularnewline
12 & 1036076 & 1004601.64944444 & 31474.3505555556 \tabularnewline
13 & 989236 & 958964.072777777 & 30271.9272222226 \tabularnewline
14 & 1008380 & 1000457.07277778 & 7922.92722222221 \tabularnewline
15 & 1207763 & 1209327.07277778 & -1564.07277777785 \tabularnewline
16 & 1368839 & 1380744.87277778 & -11905.8727777779 \tabularnewline
17 & 1469798 & 1475702.07277778 & -5904.07277777768 \tabularnewline
18 & 1498721 & 1491244.67277778 & 7476.3272222222 \tabularnewline
19 & 1761769 & 1745214.27277778 & 16554.7272222225 \tabularnewline
20 & 1653214 & 1641084.67277778 & 12129.3272222223 \tabularnewline
21 & 1599104 & 1601957.78777778 & -2853.78777777782 \tabularnewline
22 & 1421179 & 1443535.98777778 & -22356.9877777778 \tabularnewline
23 & 1163995 & 1168945.38777778 & -4950.3877777777 \tabularnewline
24 & 1037735 & 1056869.38777778 & -19134.3877777778 \tabularnewline
25 & 1015407 & 1011231.81111111 & 4175.18888888898 \tabularnewline
26 & 1039210 & 1052724.81111111 & -13514.8111111112 \tabularnewline
27 & 1258049 & 1261594.81111111 & -3545.81111111128 \tabularnewline
28 & 1469445 & 1433012.61111111 & 36432.3888888887 \tabularnewline
29 & 1552346 & 1527969.81111111 & 24376.188888889 \tabularnewline
30 & 1549144 & 1543512.41111111 & 5631.58888888884 \tabularnewline
31 & 1785895 & 1797482.01111111 & -11587.0111111109 \tabularnewline
32 & 1662335 & 1693352.41111111 & -31017.4111111111 \tabularnewline
33 & 1629440 & 1654225.52611111 & -24785.5261111112 \tabularnewline
34 & 1467430 & 1495803.72611111 & -28373.7261111111 \tabularnewline
35 & 1202209 & 1221213.12611111 & -19004.1261111110 \tabularnewline
36 & 1076982 & 1109137.12611111 & -32155.1261111112 \tabularnewline
37 & 1039367 & 1115932.52166667 & -76565.5216666665 \tabularnewline
38 & 1063449 & 1157425.52166667 & -93976.5216666667 \tabularnewline
39 & 1335135 & 1366295.52166667 & -31160.5216666667 \tabularnewline
40 & 1491602 & 1537713.32166667 & -46111.3216666668 \tabularnewline
41 & 1591972 & 1632670.52166667 & -40698.5216666666 \tabularnewline
42 & 1641248 & 1648213.12166667 & -6965.12166666665 \tabularnewline
43 & 1898849 & 1902182.72166667 & -3333.72166666657 \tabularnewline
44 & 1798580 & 1798053.12166667 & 526.878333333297 \tabularnewline
45 & 1762444 & 1758926.23666667 & 3517.7633333331 \tabularnewline
46 & 1622044 & 1600504.43666667 & 21539.5633333333 \tabularnewline
47 & 1368955 & 1325913.83666667 & 43041.1633333335 \tabularnewline
48 & 1262973 & 1213837.83666667 & 49135.1633333333 \tabularnewline
49 & 1195650 & 1168200.26 & 27449.7400000001 \tabularnewline
50 & 1269530 & 1209693.26 & 59836.7399999999 \tabularnewline
51 & 1479279 & 1418563.26 & 60715.74 \tabularnewline
52 & 1607819 & 1589981.06 & 17837.9399999998 \tabularnewline
53 & 1712466 & 1684938.26 & 27527.7400000000 \tabularnewline
54 & 1721766 & 1700480.86 & 21285.1400000000 \tabularnewline
55 & 1949843 & 1954450.46 & -4607.45999999989 \tabularnewline
56 & 1821326 & 1850320.86 & -28994.8600000001 \tabularnewline
57 & 1757802 & 1723643.4 & 34158.5999999999 \tabularnewline
58 & 1590367 & 1565221.6 & 25145.4 \tabularnewline
59 & 1260647 & 1290631 & -29983.9999999999 \tabularnewline
60 & 1149235 & 1178555 & -29320 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69850&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]906696.334444445[/C][C]14668.6655555549[/C][/ROW]
[ROW][C]2[/C][C]987921[/C][C]948189.334444444[/C][C]39731.6655555558[/C][/ROW]
[ROW][C]3[/C][C]1132614[/C][C]1157059.33444444[/C][C]-24445.3344444442[/C][/ROW]
[ROW][C]4[/C][C]1332224[/C][C]1328477.13444444[/C][C]3746.86555555624[/C][/ROW]
[ROW][C]5[/C][C]1418133[/C][C]1423434.33444444[/C][C]-5301.3344444448[/C][/ROW]
[ROW][C]6[/C][C]1411549[/C][C]1438976.93444444[/C][C]-27427.9344444444[/C][/ROW]
[ROW][C]7[/C][C]1695920[/C][C]1692946.53444445[/C][C]2973.46555555489[/C][/ROW]
[ROW][C]8[/C][C]1636173[/C][C]1588816.93444444[/C][C]47356.0655555555[/C][/ROW]
[ROW][C]9[/C][C]1539653[/C][C]1549690.04944444[/C][C]-10037.049444444[/C][/ROW]
[ROW][C]10[/C][C]1395314[/C][C]1391268.24944444[/C][C]4045.75055555558[/C][/ROW]
[ROW][C]11[/C][C]1127575[/C][C]1116677.64944445[/C][C]10897.3505555551[/C][/ROW]
[ROW][C]12[/C][C]1036076[/C][C]1004601.64944444[/C][C]31474.3505555556[/C][/ROW]
[ROW][C]13[/C][C]989236[/C][C]958964.072777777[/C][C]30271.9272222226[/C][/ROW]
[ROW][C]14[/C][C]1008380[/C][C]1000457.07277778[/C][C]7922.92722222221[/C][/ROW]
[ROW][C]15[/C][C]1207763[/C][C]1209327.07277778[/C][C]-1564.07277777785[/C][/ROW]
[ROW][C]16[/C][C]1368839[/C][C]1380744.87277778[/C][C]-11905.8727777779[/C][/ROW]
[ROW][C]17[/C][C]1469798[/C][C]1475702.07277778[/C][C]-5904.07277777768[/C][/ROW]
[ROW][C]18[/C][C]1498721[/C][C]1491244.67277778[/C][C]7476.3272222222[/C][/ROW]
[ROW][C]19[/C][C]1761769[/C][C]1745214.27277778[/C][C]16554.7272222225[/C][/ROW]
[ROW][C]20[/C][C]1653214[/C][C]1641084.67277778[/C][C]12129.3272222223[/C][/ROW]
[ROW][C]21[/C][C]1599104[/C][C]1601957.78777778[/C][C]-2853.78777777782[/C][/ROW]
[ROW][C]22[/C][C]1421179[/C][C]1443535.98777778[/C][C]-22356.9877777778[/C][/ROW]
[ROW][C]23[/C][C]1163995[/C][C]1168945.38777778[/C][C]-4950.3877777777[/C][/ROW]
[ROW][C]24[/C][C]1037735[/C][C]1056869.38777778[/C][C]-19134.3877777778[/C][/ROW]
[ROW][C]25[/C][C]1015407[/C][C]1011231.81111111[/C][C]4175.18888888898[/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.81111111128[/C][/ROW]
[ROW][C]28[/C][C]1469445[/C][C]1433012.61111111[/C][C]36432.3888888887[/C][/ROW]
[ROW][C]29[/C][C]1552346[/C][C]1527969.81111111[/C][C]24376.188888889[/C][/ROW]
[ROW][C]30[/C][C]1549144[/C][C]1543512.41111111[/C][C]5631.58888888884[/C][/ROW]
[ROW][C]31[/C][C]1785895[/C][C]1797482.01111111[/C][C]-11587.0111111109[/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]1654225.52611111[/C][C]-24785.5261111112[/C][/ROW]
[ROW][C]34[/C][C]1467430[/C][C]1495803.72611111[/C][C]-28373.7261111111[/C][/ROW]
[ROW][C]35[/C][C]1202209[/C][C]1221213.12611111[/C][C]-19004.1261111110[/C][/ROW]
[ROW][C]36[/C][C]1076982[/C][C]1109137.12611111[/C][C]-32155.1261111112[/C][/ROW]
[ROW][C]37[/C][C]1039367[/C][C]1115932.52166667[/C][C]-76565.5216666665[/C][/ROW]
[ROW][C]38[/C][C]1063449[/C][C]1157425.52166667[/C][C]-93976.5216666667[/C][/ROW]
[ROW][C]39[/C][C]1335135[/C][C]1366295.52166667[/C][C]-31160.5216666667[/C][/ROW]
[ROW][C]40[/C][C]1491602[/C][C]1537713.32166667[/C][C]-46111.3216666668[/C][/ROW]
[ROW][C]41[/C][C]1591972[/C][C]1632670.52166667[/C][C]-40698.5216666666[/C][/ROW]
[ROW][C]42[/C][C]1641248[/C][C]1648213.12166667[/C][C]-6965.12166666665[/C][/ROW]
[ROW][C]43[/C][C]1898849[/C][C]1902182.72166667[/C][C]-3333.72166666657[/C][/ROW]
[ROW][C]44[/C][C]1798580[/C][C]1798053.12166667[/C][C]526.878333333297[/C][/ROW]
[ROW][C]45[/C][C]1762444[/C][C]1758926.23666667[/C][C]3517.7633333331[/C][/ROW]
[ROW][C]46[/C][C]1622044[/C][C]1600504.43666667[/C][C]21539.5633333333[/C][/ROW]
[ROW][C]47[/C][C]1368955[/C][C]1325913.83666667[/C][C]43041.1633333335[/C][/ROW]
[ROW][C]48[/C][C]1262973[/C][C]1213837.83666667[/C][C]49135.1633333333[/C][/ROW]
[ROW][C]49[/C][C]1195650[/C][C]1168200.26[/C][C]27449.7400000001[/C][/ROW]
[ROW][C]50[/C][C]1269530[/C][C]1209693.26[/C][C]59836.7399999999[/C][/ROW]
[ROW][C]51[/C][C]1479279[/C][C]1418563.26[/C][C]60715.74[/C][/ROW]
[ROW][C]52[/C][C]1607819[/C][C]1589981.06[/C][C]17837.9399999998[/C][/ROW]
[ROW][C]53[/C][C]1712466[/C][C]1684938.26[/C][C]27527.7400000000[/C][/ROW]
[ROW][C]54[/C][C]1721766[/C][C]1700480.86[/C][C]21285.1400000000[/C][/ROW]
[ROW][C]55[/C][C]1949843[/C][C]1954450.46[/C][C]-4607.45999999989[/C][/ROW]
[ROW][C]56[/C][C]1821326[/C][C]1850320.86[/C][C]-28994.8600000001[/C][/ROW]
[ROW][C]57[/C][C]1757802[/C][C]1723643.4[/C][C]34158.5999999999[/C][/ROW]
[ROW][C]58[/C][C]1590367[/C][C]1565221.6[/C][C]25145.4[/C][/ROW]
[ROW][C]59[/C][C]1260647[/C][C]1290631[/C][C]-29983.9999999999[/C][/ROW]
[ROW][C]60[/C][C]1149235[/C][C]1178555[/C][C]-29320[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69850&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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
1921365906696.33444444514668.6655555549
2987921948189.33444444439731.6655555558
311326141157059.33444444-24445.3344444442
413322241328477.134444443746.86555555624
514181331423434.33444444-5301.3344444448
614115491438976.93444444-27427.9344444444
716959201692946.534444452973.46555555489
816361731588816.9344444447356.0655555555
915396531549690.04944444-10037.049444444
1013953141391268.249444444045.75055555558
1111275751116677.6494444510897.3505555551
1210360761004601.6494444431474.3505555556
13989236958964.07277777730271.9272222226
1410083801000457.072777787922.92722222221
1512077631209327.07277778-1564.07277777785
1613688391380744.87277778-11905.8727777779
1714697981475702.07277778-5904.07277777768
1814987211491244.672777787476.3272222222
1917617691745214.2727777816554.7272222225
2016532141641084.6727777812129.3272222223
2115991041601957.78777778-2853.78777777782
2214211791443535.98777778-22356.9877777778
2311639951168945.38777778-4950.3877777777
2410377351056869.38777778-19134.3877777778
2510154071011231.811111114175.18888888898
2610392101052724.81111111-13514.8111111112
2712580491261594.81111111-3545.81111111128
2814694451433012.6111111136432.3888888887
2915523461527969.8111111124376.188888889
3015491441543512.411111115631.58888888884
3117858951797482.01111111-11587.0111111109
3216623351693352.41111111-31017.4111111111
3316294401654225.52611111-24785.5261111112
3414674301495803.72611111-28373.7261111111
3512022091221213.12611111-19004.1261111110
3610769821109137.12611111-32155.1261111112
3710393671115932.52166667-76565.5216666665
3810634491157425.52166667-93976.5216666667
3913351351366295.52166667-31160.5216666667
4014916021537713.32166667-46111.3216666668
4115919721632670.52166667-40698.5216666666
4216412481648213.12166667-6965.12166666665
4318988491902182.72166667-3333.72166666657
4417985801798053.12166667526.878333333297
4517624441758926.236666673517.7633333331
4616220441600504.4366666721539.5633333333
4713689551325913.8366666743041.1633333335
4812629731213837.8366666749135.1633333333
4911956501168200.2627449.7400000001
5012695301209693.2659836.7399999999
5114792791418563.2660715.74
5216078191589981.0617837.9399999998
5317124661684938.2627527.7400000000
5417217661700480.8621285.1400000000
5519498431954450.46-4607.45999999989
5618213261850320.86-28994.8600000001
5717578021723643.434158.5999999999
5815903671565221.625145.4
5912606471290631-29983.9999999999
6011492351178555-29320







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.2199462852190540.4398925704381080.780053714780946
190.1136480877087450.2272961754174910.886351912291255
200.1225834496118310.2451668992236620.877416550388169
210.06204050122085820.1240810024417160.937959498779142
220.04015981640009950.0803196328001990.9598401835999
230.02111159475038850.04222318950077700.978888405249611
240.02731079838543560.05462159677087110.972689201614564
250.01526904654673330.03053809309346660.984730953453267
260.01015343967277740.02030687934555480.989846560327223
270.006382392107574050.01276478421514810.993617607892426
280.02000659398126600.04001318796253190.979993406018734
290.02836284150865510.05672568301731020.971637158491345
300.02215699124308210.04431398248616410.977843008756918
310.02009415075042920.04018830150085830.97990584924957
320.05180748395831020.1036149679166200.94819251604169
330.03016996619150550.0603399323830110.969830033808494
340.01720511412876870.03441022825753750.982794885871231
350.009283343145551440.01856668629110290.990716656854449
360.005689161417704140.01137832283540830.994310838582296
370.003679164384450570.007358328768901150.99632083561555
380.01854691833731420.03709383667462850.981453081662686
390.05940849285369950.1188169857073990.9405915071463
400.04909667766835690.09819335533671370.950903322331643
410.06822862381022110.1364572476204420.931771376189779
420.07357849265260520.1471569853052100.926421507347395

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.219946285219054 & 0.439892570438108 & 0.780053714780946 \tabularnewline
19 & 0.113648087708745 & 0.227296175417491 & 0.886351912291255 \tabularnewline
20 & 0.122583449611831 & 0.245166899223662 & 0.877416550388169 \tabularnewline
21 & 0.0620405012208582 & 0.124081002441716 & 0.937959498779142 \tabularnewline
22 & 0.0401598164000995 & 0.080319632800199 & 0.9598401835999 \tabularnewline
23 & 0.0211115947503885 & 0.0422231895007770 & 0.978888405249611 \tabularnewline
24 & 0.0273107983854356 & 0.0546215967708711 & 0.972689201614564 \tabularnewline
25 & 0.0152690465467333 & 0.0305380930934666 & 0.984730953453267 \tabularnewline
26 & 0.0101534396727774 & 0.0203068793455548 & 0.989846560327223 \tabularnewline
27 & 0.00638239210757405 & 0.0127647842151481 & 0.993617607892426 \tabularnewline
28 & 0.0200065939812660 & 0.0400131879625319 & 0.979993406018734 \tabularnewline
29 & 0.0283628415086551 & 0.0567256830173102 & 0.971637158491345 \tabularnewline
30 & 0.0221569912430821 & 0.0443139824861641 & 0.977843008756918 \tabularnewline
31 & 0.0200941507504292 & 0.0401883015008583 & 0.97990584924957 \tabularnewline
32 & 0.0518074839583102 & 0.103614967916620 & 0.94819251604169 \tabularnewline
33 & 0.0301699661915055 & 0.060339932383011 & 0.969830033808494 \tabularnewline
34 & 0.0172051141287687 & 0.0344102282575375 & 0.982794885871231 \tabularnewline
35 & 0.00928334314555144 & 0.0185666862911029 & 0.990716656854449 \tabularnewline
36 & 0.00568916141770414 & 0.0113783228354083 & 0.994310838582296 \tabularnewline
37 & 0.00367916438445057 & 0.00735832876890115 & 0.99632083561555 \tabularnewline
38 & 0.0185469183373142 & 0.0370938366746285 & 0.981453081662686 \tabularnewline
39 & 0.0594084928536995 & 0.118816985707399 & 0.9405915071463 \tabularnewline
40 & 0.0490966776683569 & 0.0981933553367137 & 0.950903322331643 \tabularnewline
41 & 0.0682286238102211 & 0.136457247620442 & 0.931771376189779 \tabularnewline
42 & 0.0735784926526052 & 0.147156985305210 & 0.926421507347395 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69850&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]18[/C][C]0.219946285219054[/C][C]0.439892570438108[/C][C]0.780053714780946[/C][/ROW]
[ROW][C]19[/C][C]0.113648087708745[/C][C]0.227296175417491[/C][C]0.886351912291255[/C][/ROW]
[ROW][C]20[/C][C]0.122583449611831[/C][C]0.245166899223662[/C][C]0.877416550388169[/C][/ROW]
[ROW][C]21[/C][C]0.0620405012208582[/C][C]0.124081002441716[/C][C]0.937959498779142[/C][/ROW]
[ROW][C]22[/C][C]0.0401598164000995[/C][C]0.080319632800199[/C][C]0.9598401835999[/C][/ROW]
[ROW][C]23[/C][C]0.0211115947503885[/C][C]0.0422231895007770[/C][C]0.978888405249611[/C][/ROW]
[ROW][C]24[/C][C]0.0273107983854356[/C][C]0.0546215967708711[/C][C]0.972689201614564[/C][/ROW]
[ROW][C]25[/C][C]0.0152690465467333[/C][C]0.0305380930934666[/C][C]0.984730953453267[/C][/ROW]
[ROW][C]26[/C][C]0.0101534396727774[/C][C]0.0203068793455548[/C][C]0.989846560327223[/C][/ROW]
[ROW][C]27[/C][C]0.00638239210757405[/C][C]0.0127647842151481[/C][C]0.993617607892426[/C][/ROW]
[ROW][C]28[/C][C]0.0200065939812660[/C][C]0.0400131879625319[/C][C]0.979993406018734[/C][/ROW]
[ROW][C]29[/C][C]0.0283628415086551[/C][C]0.0567256830173102[/C][C]0.971637158491345[/C][/ROW]
[ROW][C]30[/C][C]0.0221569912430821[/C][C]0.0443139824861641[/C][C]0.977843008756918[/C][/ROW]
[ROW][C]31[/C][C]0.0200941507504292[/C][C]0.0401883015008583[/C][C]0.97990584924957[/C][/ROW]
[ROW][C]32[/C][C]0.0518074839583102[/C][C]0.103614967916620[/C][C]0.94819251604169[/C][/ROW]
[ROW][C]33[/C][C]0.0301699661915055[/C][C]0.060339932383011[/C][C]0.969830033808494[/C][/ROW]
[ROW][C]34[/C][C]0.0172051141287687[/C][C]0.0344102282575375[/C][C]0.982794885871231[/C][/ROW]
[ROW][C]35[/C][C]0.00928334314555144[/C][C]0.0185666862911029[/C][C]0.990716656854449[/C][/ROW]
[ROW][C]36[/C][C]0.00568916141770414[/C][C]0.0113783228354083[/C][C]0.994310838582296[/C][/ROW]
[ROW][C]37[/C][C]0.00367916438445057[/C][C]0.00735832876890115[/C][C]0.99632083561555[/C][/ROW]
[ROW][C]38[/C][C]0.0185469183373142[/C][C]0.0370938366746285[/C][C]0.981453081662686[/C][/ROW]
[ROW][C]39[/C][C]0.0594084928536995[/C][C]0.118816985707399[/C][C]0.9405915071463[/C][/ROW]
[ROW][C]40[/C][C]0.0490966776683569[/C][C]0.0981933553367137[/C][C]0.950903322331643[/C][/ROW]
[ROW][C]41[/C][C]0.0682286238102211[/C][C]0.136457247620442[/C][C]0.931771376189779[/C][/ROW]
[ROW][C]42[/C][C]0.0735784926526052[/C][C]0.147156985305210[/C][C]0.926421507347395[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69850&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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
180.2199462852190540.4398925704381080.780053714780946
190.1136480877087450.2272961754174910.886351912291255
200.1225834496118310.2451668992236620.877416550388169
210.06204050122085820.1240810024417160.937959498779142
220.04015981640009950.0803196328001990.9598401835999
230.02111159475038850.04222318950077700.978888405249611
240.02731079838543560.05462159677087110.972689201614564
250.01526904654673330.03053809309346660.984730953453267
260.01015343967277740.02030687934555480.989846560327223
270.006382392107574050.01276478421514810.993617607892426
280.02000659398126600.04001318796253190.979993406018734
290.02836284150865510.05672568301731020.971637158491345
300.02215699124308210.04431398248616410.977843008756918
310.02009415075042920.04018830150085830.97990584924957
320.05180748395831020.1036149679166200.94819251604169
330.03016996619150550.0603399323830110.969830033808494
340.01720511412876870.03441022825753750.982794885871231
350.009283343145551440.01856668629110290.990716656854449
360.005689161417704140.01137832283540830.994310838582296
370.003679164384450570.007358328768901150.99632083561555
380.01854691833731420.03709383667462850.981453081662686
390.05940849285369950.1188169857073990.9405915071463
400.04909667766835690.09819335533671370.950903322331643
410.06822862381022110.1364572476204420.931771376189779
420.07357849265260520.1471569853052100.926421507347395







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.04NOK
5% type I error level120.48NOK
10% type I error level170.68NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69850&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 level10.04NOK
5% type I error level120.48NOK
10% type I error level170.68NOK



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