Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 18 Nov 2009 09:18:28 -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/Nov/18/t1258561186ggtpnqtwuz2s1qh.htm/, Retrieved Sun, 05 May 2024 17:01:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57504, Retrieved Sun, 05 May 2024 17:01:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
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 13:54:52] [b98453cac15ba1066b407e146608df68]
- R PD      [Multiple Regression] [] [2009-11-18 16:18:28] [e76c6d261190c0179bc6006a5cdb804c] [Current]
Feedback Forum

Post a new message
Dataseries X:
17823.2	0
17872	0
17420.4	0
16704.4	0
15991.2	0
15583.6	0
19123.5	0
17838.7	0
17209.4	0
18586.5	0
16258.1	0
15141.6	0
19202.1	0
17746.5	0
19090.1	1
18040.3	1
17515.5	1
17751.8	1
21072.4	1
17170	1
19439.5	1
19795.4	1
17574.9	1
16165.4	1
19464.6	1
19932.1	1
19961.2	1
17343.4	1
18924.2	1
18574.1	1
21350.6	1
18594.6	1
19832.1	1
20844.4	1
19640.2	1
17735.4	1
19813.6	1
22160	1
20664.3	1
17877.4	1
20906.5	1
21164.1	1
21374.4	1
22952.3	1
21343.5	1
23899.3	1
22392.9	1
18274.1	1
22786.7	1
22321.5	1
17842.2	1
16373.5	1
15933.8	0
16446.1	0
17729	0
16643	0
16196.7	0
18252.1	0
17570.4	0
15836.8	0




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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 15013.5497058824 + 2695.18382352941X[t] + 3187.38000000000M1[t] + 3375.76M2[t] + 1825.94323529412M3[t] + 98.103235294117M4[t] + 1223.58000000000M5[t] + 1273.28M6[t] + 3499.32M7[t] + 2009.06M8[t] + 2173.58M9[t] + 3644.88M10[t] + 2056.64M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  15013.5497058824 +  2695.18382352941X[t] +  3187.38000000000M1[t] +  3375.76M2[t] +  1825.94323529412M3[t] +  98.103235294117M4[t] +  1223.58000000000M5[t] +  1273.28M6[t] +  3499.32M7[t] +  2009.06M8[t] +  2173.58M9[t] +  3644.88M10[t] +  2056.64M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57504&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  15013.5497058824 +  2695.18382352941X[t] +  3187.38000000000M1[t] +  3375.76M2[t] +  1825.94323529412M3[t] +  98.103235294117M4[t] +  1223.58000000000M5[t] +  1273.28M6[t] +  3499.32M7[t] +  2009.06M8[t] +  2173.58M9[t] +  3644.88M10[t] +  2056.64M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57504&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57504&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] = + 15013.5497058824 + 2695.18382352941X[t] + 3187.38000000000M1[t] + 3375.76M2[t] + 1825.94323529412M3[t] + 98.103235294117M4[t] + 1223.58000000000M5[t] + 1273.28M6[t] + 3499.32M7[t] + 2009.06M8[t] + 2173.58M9[t] + 3644.88M10[t] + 2056.64M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)15013.5497058824636.70967523.579900
X2695.18382352941362.7990087.428900
M13187.38000000000846.1854263.76680.000460.00023
M23375.76846.1854263.98940.000230.000115
M31825.94323529412849.2907042.150.0367350.018368
M498.103235294117849.2907040.11550.9085310.454266
M51223.58000000000846.1854261.4460.1548140.077407
M61273.28846.1854261.50470.1390850.069542
M73499.32846.1854264.13540.0001457.3e-05
M82009.06846.1854262.37430.021720.01086
M92173.58846.1854262.56870.0134450.006722
M103644.88846.1854264.30748.4e-054.2e-05
M112056.64846.1854262.43050.018950.009475

\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) & 15013.5497058824 & 636.709675 & 23.5799 & 0 & 0 \tabularnewline
X & 2695.18382352941 & 362.799008 & 7.4289 & 0 & 0 \tabularnewline
M1 & 3187.38000000000 & 846.185426 & 3.7668 & 0.00046 & 0.00023 \tabularnewline
M2 & 3375.76 & 846.185426 & 3.9894 & 0.00023 & 0.000115 \tabularnewline
M3 & 1825.94323529412 & 849.290704 & 2.15 & 0.036735 & 0.018368 \tabularnewline
M4 & 98.103235294117 & 849.290704 & 0.1155 & 0.908531 & 0.454266 \tabularnewline
M5 & 1223.58000000000 & 846.185426 & 1.446 & 0.154814 & 0.077407 \tabularnewline
M6 & 1273.28 & 846.185426 & 1.5047 & 0.139085 & 0.069542 \tabularnewline
M7 & 3499.32 & 846.185426 & 4.1354 & 0.000145 & 7.3e-05 \tabularnewline
M8 & 2009.06 & 846.185426 & 2.3743 & 0.02172 & 0.01086 \tabularnewline
M9 & 2173.58 & 846.185426 & 2.5687 & 0.013445 & 0.006722 \tabularnewline
M10 & 3644.88 & 846.185426 & 4.3074 & 8.4e-05 & 4.2e-05 \tabularnewline
M11 & 2056.64 & 846.185426 & 2.4305 & 0.01895 & 0.009475 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57504&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]15013.5497058824[/C][C]636.709675[/C][C]23.5799[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]2695.18382352941[/C][C]362.799008[/C][C]7.4289[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]3187.38000000000[/C][C]846.185426[/C][C]3.7668[/C][C]0.00046[/C][C]0.00023[/C][/ROW]
[ROW][C]M2[/C][C]3375.76[/C][C]846.185426[/C][C]3.9894[/C][C]0.00023[/C][C]0.000115[/C][/ROW]
[ROW][C]M3[/C][C]1825.94323529412[/C][C]849.290704[/C][C]2.15[/C][C]0.036735[/C][C]0.018368[/C][/ROW]
[ROW][C]M4[/C][C]98.103235294117[/C][C]849.290704[/C][C]0.1155[/C][C]0.908531[/C][C]0.454266[/C][/ROW]
[ROW][C]M5[/C][C]1223.58000000000[/C][C]846.185426[/C][C]1.446[/C][C]0.154814[/C][C]0.077407[/C][/ROW]
[ROW][C]M6[/C][C]1273.28[/C][C]846.185426[/C][C]1.5047[/C][C]0.139085[/C][C]0.069542[/C][/ROW]
[ROW][C]M7[/C][C]3499.32[/C][C]846.185426[/C][C]4.1354[/C][C]0.000145[/C][C]7.3e-05[/C][/ROW]
[ROW][C]M8[/C][C]2009.06[/C][C]846.185426[/C][C]2.3743[/C][C]0.02172[/C][C]0.01086[/C][/ROW]
[ROW][C]M9[/C][C]2173.58[/C][C]846.185426[/C][C]2.5687[/C][C]0.013445[/C][C]0.006722[/C][/ROW]
[ROW][C]M10[/C][C]3644.88[/C][C]846.185426[/C][C]4.3074[/C][C]8.4e-05[/C][C]4.2e-05[/C][/ROW]
[ROW][C]M11[/C][C]2056.64[/C][C]846.185426[/C][C]2.4305[/C][C]0.01895[/C][C]0.009475[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57504&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57504&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)15013.5497058824636.70967523.579900
X2695.18382352941362.7990087.428900
M13187.38000000000846.1854263.76680.000460.00023
M23375.76846.1854263.98940.000230.000115
M31825.94323529412849.2907042.150.0367350.018368
M498.103235294117849.2907040.11550.9085310.454266
M51223.58000000000846.1854261.4460.1548140.077407
M61273.28846.1854261.50470.1390850.069542
M73499.32846.1854264.13540.0001457.3e-05
M82009.06846.1854262.37430.021720.01086
M92173.58846.1854262.56870.0134450.006722
M103644.88846.1854264.30748.4e-054.2e-05
M112056.64846.1854262.43050.018950.009475







Multiple Linear Regression - Regression Statistics
Multiple R0.821764579421597
R-squared0.675297023991954
Adjusted R-squared0.592394136500538
F-TEST (value)8.14563936704709
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value5.5601213855283e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1337.93663438386
Sum Squared Residuals84133498.5684411

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.821764579421597 \tabularnewline
R-squared & 0.675297023991954 \tabularnewline
Adjusted R-squared & 0.592394136500538 \tabularnewline
F-TEST (value) & 8.14563936704709 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 5.5601213855283e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1337.93663438386 \tabularnewline
Sum Squared Residuals & 84133498.5684411 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57504&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.821764579421597[/C][/ROW]
[ROW][C]R-squared[/C][C]0.675297023991954[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.592394136500538[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.14563936704709[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]5.5601213855283e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1337.93663438386[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]84133498.5684411[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57504&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57504&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.821764579421597
R-squared0.675297023991954
Adjusted R-squared0.592394136500538
F-TEST (value)8.14563936704709
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value5.5601213855283e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1337.93663438386
Sum Squared Residuals84133498.5684411







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
117823.218200.9297058823-377.729705882324
21787218389.3097058824-517.309705882358
317420.416839.4929411765580.907058823533
416704.415111.65294117651592.74705882353
515991.216237.1297058824-245.929705882350
615583.616286.8297058824-703.229705882352
719123.518512.8697058824610.630294117639
817838.717022.6097058824816.090294117646
917209.417187.129705882422.2702941176465
1018586.518658.4297058824-71.9297058823531
1116258.117070.1897058824-812.089705882354
1215141.615013.5497058824128.050294117644
1319202.118200.92970588241001.17029411764
1417746.518389.3097058824-642.809705882354
1519090.119534.6767647059-444.576764705885
1618040.317806.8367647059233.463235294118
1717515.518932.3135294118-1416.81352941177
1817751.818982.0135294118-1230.21352941176
1921072.421208.0535294118-135.653529411761
201717019717.7935294118-2547.79352941176
2119439.519882.3135294118-442.813529411764
2219795.421353.6135294118-1558.21352941176
2317574.919765.3735294118-2190.47352941176
2416165.417708.7335294118-1543.33352941176
2519464.620896.1135294118-1431.51352941177
2619932.121084.4935294118-1152.39352941177
2719961.219534.6767647059426.523235294117
2817343.417806.8367647059-463.43676470588
2918924.218932.3135294118-8.11352941176437
3018574.118982.0135294118-407.913529411765
3121350.621208.0535294118142.546470588236
3218594.619717.7935294118-1123.19352941177
3319832.119882.3135294118-50.213529411765
3420844.421353.6135294118-509.213529411763
3519640.219765.3735294118-125.173529411765
3617735.417708.733529411826.6664705882384
3719813.620896.1135294118-1082.51352941177
382216021084.49352941181075.50647058824
3920664.319534.67676470591129.62323529412
4017877.417806.836764705970.56323529412
4120906.518932.31352941181974.18647058823
4221164.118982.01352941182182.08647058823
4321374.421208.0535294118166.346470588239
4422952.319717.79352941183234.50647058824
4521343.519882.31352941181461.18647058824
4623899.321353.61352941182545.68647058823
4722392.919765.37352941182627.52647058824
4818274.117708.7335294118565.366470588235
4922786.720896.11352941181890.58647058823
5022321.521084.49352941181237.00647058824
5117842.219534.6767647059-1692.47676470588
5216373.517806.8367647059-1433.33676470588
5315933.816237.1297058824-303.329705882356
5416446.116286.8297058824159.270294117645
551772918512.8697058824-783.869705882353
561664317022.6097058824-379.609705882354
5716196.717187.1297058824-990.429705882353
5818252.118658.4297058824-406.329705882356
5917570.417070.1897058824500.210294117645
6015836.815013.5497058824823.250294117646

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 17823.2 & 18200.9297058823 & -377.729705882324 \tabularnewline
2 & 17872 & 18389.3097058824 & -517.309705882358 \tabularnewline
3 & 17420.4 & 16839.4929411765 & 580.907058823533 \tabularnewline
4 & 16704.4 & 15111.6529411765 & 1592.74705882353 \tabularnewline
5 & 15991.2 & 16237.1297058824 & -245.929705882350 \tabularnewline
6 & 15583.6 & 16286.8297058824 & -703.229705882352 \tabularnewline
7 & 19123.5 & 18512.8697058824 & 610.630294117639 \tabularnewline
8 & 17838.7 & 17022.6097058824 & 816.090294117646 \tabularnewline
9 & 17209.4 & 17187.1297058824 & 22.2702941176465 \tabularnewline
10 & 18586.5 & 18658.4297058824 & -71.9297058823531 \tabularnewline
11 & 16258.1 & 17070.1897058824 & -812.089705882354 \tabularnewline
12 & 15141.6 & 15013.5497058824 & 128.050294117644 \tabularnewline
13 & 19202.1 & 18200.9297058824 & 1001.17029411764 \tabularnewline
14 & 17746.5 & 18389.3097058824 & -642.809705882354 \tabularnewline
15 & 19090.1 & 19534.6767647059 & -444.576764705885 \tabularnewline
16 & 18040.3 & 17806.8367647059 & 233.463235294118 \tabularnewline
17 & 17515.5 & 18932.3135294118 & -1416.81352941177 \tabularnewline
18 & 17751.8 & 18982.0135294118 & -1230.21352941176 \tabularnewline
19 & 21072.4 & 21208.0535294118 & -135.653529411761 \tabularnewline
20 & 17170 & 19717.7935294118 & -2547.79352941176 \tabularnewline
21 & 19439.5 & 19882.3135294118 & -442.813529411764 \tabularnewline
22 & 19795.4 & 21353.6135294118 & -1558.21352941176 \tabularnewline
23 & 17574.9 & 19765.3735294118 & -2190.47352941176 \tabularnewline
24 & 16165.4 & 17708.7335294118 & -1543.33352941176 \tabularnewline
25 & 19464.6 & 20896.1135294118 & -1431.51352941177 \tabularnewline
26 & 19932.1 & 21084.4935294118 & -1152.39352941177 \tabularnewline
27 & 19961.2 & 19534.6767647059 & 426.523235294117 \tabularnewline
28 & 17343.4 & 17806.8367647059 & -463.43676470588 \tabularnewline
29 & 18924.2 & 18932.3135294118 & -8.11352941176437 \tabularnewline
30 & 18574.1 & 18982.0135294118 & -407.913529411765 \tabularnewline
31 & 21350.6 & 21208.0535294118 & 142.546470588236 \tabularnewline
32 & 18594.6 & 19717.7935294118 & -1123.19352941177 \tabularnewline
33 & 19832.1 & 19882.3135294118 & -50.213529411765 \tabularnewline
34 & 20844.4 & 21353.6135294118 & -509.213529411763 \tabularnewline
35 & 19640.2 & 19765.3735294118 & -125.173529411765 \tabularnewline
36 & 17735.4 & 17708.7335294118 & 26.6664705882384 \tabularnewline
37 & 19813.6 & 20896.1135294118 & -1082.51352941177 \tabularnewline
38 & 22160 & 21084.4935294118 & 1075.50647058824 \tabularnewline
39 & 20664.3 & 19534.6767647059 & 1129.62323529412 \tabularnewline
40 & 17877.4 & 17806.8367647059 & 70.56323529412 \tabularnewline
41 & 20906.5 & 18932.3135294118 & 1974.18647058823 \tabularnewline
42 & 21164.1 & 18982.0135294118 & 2182.08647058823 \tabularnewline
43 & 21374.4 & 21208.0535294118 & 166.346470588239 \tabularnewline
44 & 22952.3 & 19717.7935294118 & 3234.50647058824 \tabularnewline
45 & 21343.5 & 19882.3135294118 & 1461.18647058824 \tabularnewline
46 & 23899.3 & 21353.6135294118 & 2545.68647058823 \tabularnewline
47 & 22392.9 & 19765.3735294118 & 2627.52647058824 \tabularnewline
48 & 18274.1 & 17708.7335294118 & 565.366470588235 \tabularnewline
49 & 22786.7 & 20896.1135294118 & 1890.58647058823 \tabularnewline
50 & 22321.5 & 21084.4935294118 & 1237.00647058824 \tabularnewline
51 & 17842.2 & 19534.6767647059 & -1692.47676470588 \tabularnewline
52 & 16373.5 & 17806.8367647059 & -1433.33676470588 \tabularnewline
53 & 15933.8 & 16237.1297058824 & -303.329705882356 \tabularnewline
54 & 16446.1 & 16286.8297058824 & 159.270294117645 \tabularnewline
55 & 17729 & 18512.8697058824 & -783.869705882353 \tabularnewline
56 & 16643 & 17022.6097058824 & -379.609705882354 \tabularnewline
57 & 16196.7 & 17187.1297058824 & -990.429705882353 \tabularnewline
58 & 18252.1 & 18658.4297058824 & -406.329705882356 \tabularnewline
59 & 17570.4 & 17070.1897058824 & 500.210294117645 \tabularnewline
60 & 15836.8 & 15013.5497058824 & 823.250294117646 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57504&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]17823.2[/C][C]18200.9297058823[/C][C]-377.729705882324[/C][/ROW]
[ROW][C]2[/C][C]17872[/C][C]18389.3097058824[/C][C]-517.309705882358[/C][/ROW]
[ROW][C]3[/C][C]17420.4[/C][C]16839.4929411765[/C][C]580.907058823533[/C][/ROW]
[ROW][C]4[/C][C]16704.4[/C][C]15111.6529411765[/C][C]1592.74705882353[/C][/ROW]
[ROW][C]5[/C][C]15991.2[/C][C]16237.1297058824[/C][C]-245.929705882350[/C][/ROW]
[ROW][C]6[/C][C]15583.6[/C][C]16286.8297058824[/C][C]-703.229705882352[/C][/ROW]
[ROW][C]7[/C][C]19123.5[/C][C]18512.8697058824[/C][C]610.630294117639[/C][/ROW]
[ROW][C]8[/C][C]17838.7[/C][C]17022.6097058824[/C][C]816.090294117646[/C][/ROW]
[ROW][C]9[/C][C]17209.4[/C][C]17187.1297058824[/C][C]22.2702941176465[/C][/ROW]
[ROW][C]10[/C][C]18586.5[/C][C]18658.4297058824[/C][C]-71.9297058823531[/C][/ROW]
[ROW][C]11[/C][C]16258.1[/C][C]17070.1897058824[/C][C]-812.089705882354[/C][/ROW]
[ROW][C]12[/C][C]15141.6[/C][C]15013.5497058824[/C][C]128.050294117644[/C][/ROW]
[ROW][C]13[/C][C]19202.1[/C][C]18200.9297058824[/C][C]1001.17029411764[/C][/ROW]
[ROW][C]14[/C][C]17746.5[/C][C]18389.3097058824[/C][C]-642.809705882354[/C][/ROW]
[ROW][C]15[/C][C]19090.1[/C][C]19534.6767647059[/C][C]-444.576764705885[/C][/ROW]
[ROW][C]16[/C][C]18040.3[/C][C]17806.8367647059[/C][C]233.463235294118[/C][/ROW]
[ROW][C]17[/C][C]17515.5[/C][C]18932.3135294118[/C][C]-1416.81352941177[/C][/ROW]
[ROW][C]18[/C][C]17751.8[/C][C]18982.0135294118[/C][C]-1230.21352941176[/C][/ROW]
[ROW][C]19[/C][C]21072.4[/C][C]21208.0535294118[/C][C]-135.653529411761[/C][/ROW]
[ROW][C]20[/C][C]17170[/C][C]19717.7935294118[/C][C]-2547.79352941176[/C][/ROW]
[ROW][C]21[/C][C]19439.5[/C][C]19882.3135294118[/C][C]-442.813529411764[/C][/ROW]
[ROW][C]22[/C][C]19795.4[/C][C]21353.6135294118[/C][C]-1558.21352941176[/C][/ROW]
[ROW][C]23[/C][C]17574.9[/C][C]19765.3735294118[/C][C]-2190.47352941176[/C][/ROW]
[ROW][C]24[/C][C]16165.4[/C][C]17708.7335294118[/C][C]-1543.33352941176[/C][/ROW]
[ROW][C]25[/C][C]19464.6[/C][C]20896.1135294118[/C][C]-1431.51352941177[/C][/ROW]
[ROW][C]26[/C][C]19932.1[/C][C]21084.4935294118[/C][C]-1152.39352941177[/C][/ROW]
[ROW][C]27[/C][C]19961.2[/C][C]19534.6767647059[/C][C]426.523235294117[/C][/ROW]
[ROW][C]28[/C][C]17343.4[/C][C]17806.8367647059[/C][C]-463.43676470588[/C][/ROW]
[ROW][C]29[/C][C]18924.2[/C][C]18932.3135294118[/C][C]-8.11352941176437[/C][/ROW]
[ROW][C]30[/C][C]18574.1[/C][C]18982.0135294118[/C][C]-407.913529411765[/C][/ROW]
[ROW][C]31[/C][C]21350.6[/C][C]21208.0535294118[/C][C]142.546470588236[/C][/ROW]
[ROW][C]32[/C][C]18594.6[/C][C]19717.7935294118[/C][C]-1123.19352941177[/C][/ROW]
[ROW][C]33[/C][C]19832.1[/C][C]19882.3135294118[/C][C]-50.213529411765[/C][/ROW]
[ROW][C]34[/C][C]20844.4[/C][C]21353.6135294118[/C][C]-509.213529411763[/C][/ROW]
[ROW][C]35[/C][C]19640.2[/C][C]19765.3735294118[/C][C]-125.173529411765[/C][/ROW]
[ROW][C]36[/C][C]17735.4[/C][C]17708.7335294118[/C][C]26.6664705882384[/C][/ROW]
[ROW][C]37[/C][C]19813.6[/C][C]20896.1135294118[/C][C]-1082.51352941177[/C][/ROW]
[ROW][C]38[/C][C]22160[/C][C]21084.4935294118[/C][C]1075.50647058824[/C][/ROW]
[ROW][C]39[/C][C]20664.3[/C][C]19534.6767647059[/C][C]1129.62323529412[/C][/ROW]
[ROW][C]40[/C][C]17877.4[/C][C]17806.8367647059[/C][C]70.56323529412[/C][/ROW]
[ROW][C]41[/C][C]20906.5[/C][C]18932.3135294118[/C][C]1974.18647058823[/C][/ROW]
[ROW][C]42[/C][C]21164.1[/C][C]18982.0135294118[/C][C]2182.08647058823[/C][/ROW]
[ROW][C]43[/C][C]21374.4[/C][C]21208.0535294118[/C][C]166.346470588239[/C][/ROW]
[ROW][C]44[/C][C]22952.3[/C][C]19717.7935294118[/C][C]3234.50647058824[/C][/ROW]
[ROW][C]45[/C][C]21343.5[/C][C]19882.3135294118[/C][C]1461.18647058824[/C][/ROW]
[ROW][C]46[/C][C]23899.3[/C][C]21353.6135294118[/C][C]2545.68647058823[/C][/ROW]
[ROW][C]47[/C][C]22392.9[/C][C]19765.3735294118[/C][C]2627.52647058824[/C][/ROW]
[ROW][C]48[/C][C]18274.1[/C][C]17708.7335294118[/C][C]565.366470588235[/C][/ROW]
[ROW][C]49[/C][C]22786.7[/C][C]20896.1135294118[/C][C]1890.58647058823[/C][/ROW]
[ROW][C]50[/C][C]22321.5[/C][C]21084.4935294118[/C][C]1237.00647058824[/C][/ROW]
[ROW][C]51[/C][C]17842.2[/C][C]19534.6767647059[/C][C]-1692.47676470588[/C][/ROW]
[ROW][C]52[/C][C]16373.5[/C][C]17806.8367647059[/C][C]-1433.33676470588[/C][/ROW]
[ROW][C]53[/C][C]15933.8[/C][C]16237.1297058824[/C][C]-303.329705882356[/C][/ROW]
[ROW][C]54[/C][C]16446.1[/C][C]16286.8297058824[/C][C]159.270294117645[/C][/ROW]
[ROW][C]55[/C][C]17729[/C][C]18512.8697058824[/C][C]-783.869705882353[/C][/ROW]
[ROW][C]56[/C][C]16643[/C][C]17022.6097058824[/C][C]-379.609705882354[/C][/ROW]
[ROW][C]57[/C][C]16196.7[/C][C]17187.1297058824[/C][C]-990.429705882353[/C][/ROW]
[ROW][C]58[/C][C]18252.1[/C][C]18658.4297058824[/C][C]-406.329705882356[/C][/ROW]
[ROW][C]59[/C][C]17570.4[/C][C]17070.1897058824[/C][C]500.210294117645[/C][/ROW]
[ROW][C]60[/C][C]15836.8[/C][C]15013.5497058824[/C][C]823.250294117646[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57504&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57504&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
117823.218200.9297058823-377.729705882324
21787218389.3097058824-517.309705882358
317420.416839.4929411765580.907058823533
416704.415111.65294117651592.74705882353
515991.216237.1297058824-245.929705882350
615583.616286.8297058824-703.229705882352
719123.518512.8697058824610.630294117639
817838.717022.6097058824816.090294117646
917209.417187.129705882422.2702941176465
1018586.518658.4297058824-71.9297058823531
1116258.117070.1897058824-812.089705882354
1215141.615013.5497058824128.050294117644
1319202.118200.92970588241001.17029411764
1417746.518389.3097058824-642.809705882354
1519090.119534.6767647059-444.576764705885
1618040.317806.8367647059233.463235294118
1717515.518932.3135294118-1416.81352941177
1817751.818982.0135294118-1230.21352941176
1921072.421208.0535294118-135.653529411761
201717019717.7935294118-2547.79352941176
2119439.519882.3135294118-442.813529411764
2219795.421353.6135294118-1558.21352941176
2317574.919765.3735294118-2190.47352941176
2416165.417708.7335294118-1543.33352941176
2519464.620896.1135294118-1431.51352941177
2619932.121084.4935294118-1152.39352941177
2719961.219534.6767647059426.523235294117
2817343.417806.8367647059-463.43676470588
2918924.218932.3135294118-8.11352941176437
3018574.118982.0135294118-407.913529411765
3121350.621208.0535294118142.546470588236
3218594.619717.7935294118-1123.19352941177
3319832.119882.3135294118-50.213529411765
3420844.421353.6135294118-509.213529411763
3519640.219765.3735294118-125.173529411765
3617735.417708.733529411826.6664705882384
3719813.620896.1135294118-1082.51352941177
382216021084.49352941181075.50647058824
3920664.319534.67676470591129.62323529412
4017877.417806.836764705970.56323529412
4120906.518932.31352941181974.18647058823
4221164.118982.01352941182182.08647058823
4321374.421208.0535294118166.346470588239
4422952.319717.79352941183234.50647058824
4521343.519882.31352941181461.18647058824
4623899.321353.61352941182545.68647058823
4722392.919765.37352941182627.52647058824
4818274.117708.7335294118565.366470588235
4922786.720896.11352941181890.58647058823
5022321.521084.49352941181237.00647058824
5117842.219534.6767647059-1692.47676470588
5216373.517806.8367647059-1433.33676470588
5315933.816237.1297058824-303.329705882356
5416446.116286.8297058824159.270294117645
551772918512.8697058824-783.869705882353
561664317022.6097058824-379.609705882354
5716196.717187.1297058824-990.429705882353
5818252.118658.4297058824-406.329705882356
5917570.417070.1897058824500.210294117645
6015836.815013.5497058824823.250294117646







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.06295475649383850.1259095129876770.937045243506161
170.01979263569495630.03958527138991270.980207364305044
180.008240889048612090.01648177809722420.991759110951388
190.002339623110511910.004679246221023830.997660376889488
200.02558943690599250.05117887381198510.974410563094007
210.01457805772296750.02915611544593500.985421942277033
220.007770823554309180.01554164710861840.99222917644569
230.006165602122761890.01233120424552380.993834397877238
240.003933460752669890.007866921505339780.99606653924733
250.002271842138654230.004543684277308450.997728157861346
260.002181378040125610.004362756080251210.997818621959874
270.001864159779678230.003728319559356450.998135840220322
280.001120195312795790.002240390625591580.998879804687204
290.001966001052390590.003932002104781180.99803399894761
300.002809038711798160.005618077423596320.997190961288202
310.001390012206558870.002780024413117740.99860998779344
320.002705196173198710.005410392346397410.997294803826801
330.001847928454525600.003695856909051190.998152071545474
340.003209932218420820.006419864436841640.99679006778158
350.02138344298547410.04276688597094810.978616557014526
360.03015036047951960.06030072095903920.96984963952048
370.07946509973677020.1589301994735400.92053490026323
380.1412342251667980.2824684503335970.858765774833202
390.3744277815548910.7488555631097830.625572218445109
400.3930628830395920.7861257660791850.606937116960408
410.4494084997929500.8988169995858990.550591500207050
420.4747922130489320.9495844260978640.525207786951068
430.3970705539851220.7941411079702450.602929446014878
440.5609293345806680.8781413308386650.439070665419332

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0629547564938385 & 0.125909512987677 & 0.937045243506161 \tabularnewline
17 & 0.0197926356949563 & 0.0395852713899127 & 0.980207364305044 \tabularnewline
18 & 0.00824088904861209 & 0.0164817780972242 & 0.991759110951388 \tabularnewline
19 & 0.00233962311051191 & 0.00467924622102383 & 0.997660376889488 \tabularnewline
20 & 0.0255894369059925 & 0.0511788738119851 & 0.974410563094007 \tabularnewline
21 & 0.0145780577229675 & 0.0291561154459350 & 0.985421942277033 \tabularnewline
22 & 0.00777082355430918 & 0.0155416471086184 & 0.99222917644569 \tabularnewline
23 & 0.00616560212276189 & 0.0123312042455238 & 0.993834397877238 \tabularnewline
24 & 0.00393346075266989 & 0.00786692150533978 & 0.99606653924733 \tabularnewline
25 & 0.00227184213865423 & 0.00454368427730845 & 0.997728157861346 \tabularnewline
26 & 0.00218137804012561 & 0.00436275608025121 & 0.997818621959874 \tabularnewline
27 & 0.00186415977967823 & 0.00372831955935645 & 0.998135840220322 \tabularnewline
28 & 0.00112019531279579 & 0.00224039062559158 & 0.998879804687204 \tabularnewline
29 & 0.00196600105239059 & 0.00393200210478118 & 0.99803399894761 \tabularnewline
30 & 0.00280903871179816 & 0.00561807742359632 & 0.997190961288202 \tabularnewline
31 & 0.00139001220655887 & 0.00278002441311774 & 0.99860998779344 \tabularnewline
32 & 0.00270519617319871 & 0.00541039234639741 & 0.997294803826801 \tabularnewline
33 & 0.00184792845452560 & 0.00369585690905119 & 0.998152071545474 \tabularnewline
34 & 0.00320993221842082 & 0.00641986443684164 & 0.99679006778158 \tabularnewline
35 & 0.0213834429854741 & 0.0427668859709481 & 0.978616557014526 \tabularnewline
36 & 0.0301503604795196 & 0.0603007209590392 & 0.96984963952048 \tabularnewline
37 & 0.0794650997367702 & 0.158930199473540 & 0.92053490026323 \tabularnewline
38 & 0.141234225166798 & 0.282468450333597 & 0.858765774833202 \tabularnewline
39 & 0.374427781554891 & 0.748855563109783 & 0.625572218445109 \tabularnewline
40 & 0.393062883039592 & 0.786125766079185 & 0.606937116960408 \tabularnewline
41 & 0.449408499792950 & 0.898816999585899 & 0.550591500207050 \tabularnewline
42 & 0.474792213048932 & 0.949584426097864 & 0.525207786951068 \tabularnewline
43 & 0.397070553985122 & 0.794141107970245 & 0.602929446014878 \tabularnewline
44 & 0.560929334580668 & 0.878141330838665 & 0.439070665419332 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57504&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]16[/C][C]0.0629547564938385[/C][C]0.125909512987677[/C][C]0.937045243506161[/C][/ROW]
[ROW][C]17[/C][C]0.0197926356949563[/C][C]0.0395852713899127[/C][C]0.980207364305044[/C][/ROW]
[ROW][C]18[/C][C]0.00824088904861209[/C][C]0.0164817780972242[/C][C]0.991759110951388[/C][/ROW]
[ROW][C]19[/C][C]0.00233962311051191[/C][C]0.00467924622102383[/C][C]0.997660376889488[/C][/ROW]
[ROW][C]20[/C][C]0.0255894369059925[/C][C]0.0511788738119851[/C][C]0.974410563094007[/C][/ROW]
[ROW][C]21[/C][C]0.0145780577229675[/C][C]0.0291561154459350[/C][C]0.985421942277033[/C][/ROW]
[ROW][C]22[/C][C]0.00777082355430918[/C][C]0.0155416471086184[/C][C]0.99222917644569[/C][/ROW]
[ROW][C]23[/C][C]0.00616560212276189[/C][C]0.0123312042455238[/C][C]0.993834397877238[/C][/ROW]
[ROW][C]24[/C][C]0.00393346075266989[/C][C]0.00786692150533978[/C][C]0.99606653924733[/C][/ROW]
[ROW][C]25[/C][C]0.00227184213865423[/C][C]0.00454368427730845[/C][C]0.997728157861346[/C][/ROW]
[ROW][C]26[/C][C]0.00218137804012561[/C][C]0.00436275608025121[/C][C]0.997818621959874[/C][/ROW]
[ROW][C]27[/C][C]0.00186415977967823[/C][C]0.00372831955935645[/C][C]0.998135840220322[/C][/ROW]
[ROW][C]28[/C][C]0.00112019531279579[/C][C]0.00224039062559158[/C][C]0.998879804687204[/C][/ROW]
[ROW][C]29[/C][C]0.00196600105239059[/C][C]0.00393200210478118[/C][C]0.99803399894761[/C][/ROW]
[ROW][C]30[/C][C]0.00280903871179816[/C][C]0.00561807742359632[/C][C]0.997190961288202[/C][/ROW]
[ROW][C]31[/C][C]0.00139001220655887[/C][C]0.00278002441311774[/C][C]0.99860998779344[/C][/ROW]
[ROW][C]32[/C][C]0.00270519617319871[/C][C]0.00541039234639741[/C][C]0.997294803826801[/C][/ROW]
[ROW][C]33[/C][C]0.00184792845452560[/C][C]0.00369585690905119[/C][C]0.998152071545474[/C][/ROW]
[ROW][C]34[/C][C]0.00320993221842082[/C][C]0.00641986443684164[/C][C]0.99679006778158[/C][/ROW]
[ROW][C]35[/C][C]0.0213834429854741[/C][C]0.0427668859709481[/C][C]0.978616557014526[/C][/ROW]
[ROW][C]36[/C][C]0.0301503604795196[/C][C]0.0603007209590392[/C][C]0.96984963952048[/C][/ROW]
[ROW][C]37[/C][C]0.0794650997367702[/C][C]0.158930199473540[/C][C]0.92053490026323[/C][/ROW]
[ROW][C]38[/C][C]0.141234225166798[/C][C]0.282468450333597[/C][C]0.858765774833202[/C][/ROW]
[ROW][C]39[/C][C]0.374427781554891[/C][C]0.748855563109783[/C][C]0.625572218445109[/C][/ROW]
[ROW][C]40[/C][C]0.393062883039592[/C][C]0.786125766079185[/C][C]0.606937116960408[/C][/ROW]
[ROW][C]41[/C][C]0.449408499792950[/C][C]0.898816999585899[/C][C]0.550591500207050[/C][/ROW]
[ROW][C]42[/C][C]0.474792213048932[/C][C]0.949584426097864[/C][C]0.525207786951068[/C][/ROW]
[ROW][C]43[/C][C]0.397070553985122[/C][C]0.794141107970245[/C][C]0.602929446014878[/C][/ROW]
[ROW][C]44[/C][C]0.560929334580668[/C][C]0.878141330838665[/C][C]0.439070665419332[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57504&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57504&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
160.06295475649383850.1259095129876770.937045243506161
170.01979263569495630.03958527138991270.980207364305044
180.008240889048612090.01648177809722420.991759110951388
190.002339623110511910.004679246221023830.997660376889488
200.02558943690599250.05117887381198510.974410563094007
210.01457805772296750.02915611544593500.985421942277033
220.007770823554309180.01554164710861840.99222917644569
230.006165602122761890.01233120424552380.993834397877238
240.003933460752669890.007866921505339780.99606653924733
250.002271842138654230.004543684277308450.997728157861346
260.002181378040125610.004362756080251210.997818621959874
270.001864159779678230.003728319559356450.998135840220322
280.001120195312795790.002240390625591580.998879804687204
290.001966001052390590.003932002104781180.99803399894761
300.002809038711798160.005618077423596320.997190961288202
310.001390012206558870.002780024413117740.99860998779344
320.002705196173198710.005410392346397410.997294803826801
330.001847928454525600.003695856909051190.998152071545474
340.003209932218420820.006419864436841640.99679006778158
350.02138344298547410.04276688597094810.978616557014526
360.03015036047951960.06030072095903920.96984963952048
370.07946509973677020.1589301994735400.92053490026323
380.1412342251667980.2824684503335970.858765774833202
390.3744277815548910.7488555631097830.625572218445109
400.3930628830395920.7861257660791850.606937116960408
410.4494084997929500.8988169995858990.550591500207050
420.4747922130489320.9495844260978640.525207786951068
430.3970705539851220.7941411079702450.602929446014878
440.5609293345806680.8781413308386650.439070665419332







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level120.413793103448276NOK
5% type I error level180.620689655172414NOK
10% type I error level200.689655172413793NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57504&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 level120.413793103448276NOK
5% type I error level180.620689655172414NOK
10% type I error level200.689655172413793NOK



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}