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 computationTue, 17 Nov 2009 10:31:01 -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/17/t12584797064wgqija4ca1i29p.htm/, Retrieved Sun, 28 Apr 2024 22:44:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57383, Retrieved Sun, 28 Apr 2024 22:44:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-17 17:31:01] [6e025b5370bdd3143fbe248190b38274] [Current]
- R  D    [Multiple Regression] [] [2009-11-20 16:39:27] [eba9b8a72d680086d9ebbb043233c887]
- R  D    [Multiple Regression] [] [2009-11-20 18:03:57] [fa71ec4c741ffec745cb91dcbd756720]
Feedback Forum

Post a new message
Dataseries X:
15836.8	89.1
17570.4	82.6
18252.1	102.7
16196.7	91.8
16643	94.1
17729	103.1
16446.1	93.2
15993.8	91
16373.5	94.3
17842.2	99.4
22321.5	115.7
22786.7	116.8
18274.1	99.8
22392.9	96
23899.3	115.9
21343.5	109.1
22952.3	117.3
21374.4	109.8
21164.1	112.8
20906.5	110.7
17877.4	100
20664.3	113.3
22160	122.4
19813.6	112.5
17735.4	104.2
19640.2	92.5
20844.4	117.2
19823.1	109.3
18594.6	106.1
21350.6	118.8
18574.1	105.3
18924.2	106
17343.4	102
19961.2	112.9
19932.1	116.5
19464.6	114.8
16165.4	100.5
17574.9	85.4
19795.4	114.6
19439.5	109.9
17170	100.7
21072.4	115.5
17751.8	100.7
17515.5	99
18040.3	102.3
19090.1	108.8
17746.5	105.9
19202.1	113.2
15141.6	95.7
16258.1	80.9
18586.5	113.9
17209.4	98.1
17838.7	102.8
19123.5	104.7
16583.6	95.9
15991.2	94.6
16704.4	101.6
17420.4	103.9
17872	110.3
17823.2	114.1




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
uitvoer[t] = -8805.83279053197 + 250.471410487679indproc[t] + 925.360560207709M1[t] + 5581.8938010698M2[t] + 813.169402892505M3[t] + 1649.41580758891M4[t] + 1346.43181771581M5[t] + 1288.77850090195M6[t] + 1466.88691319352M7[t] + 1559.80917503726M8[t] + 1016.47288534455M9[t] + 835.720737428436M10[t] + 218.436569258521M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
uitvoer[t] =  -8805.83279053197 +  250.471410487679indproc[t] +  925.360560207709M1[t] +  5581.8938010698M2[t] +  813.169402892505M3[t] +  1649.41580758891M4[t] +  1346.43181771581M5[t] +  1288.77850090195M6[t] +  1466.88691319352M7[t] +  1559.80917503726M8[t] +  1016.47288534455M9[t] +  835.720737428436M10[t] +  218.436569258521M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57383&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]uitvoer[t] =  -8805.83279053197 +  250.471410487679indproc[t] +  925.360560207709M1[t] +  5581.8938010698M2[t] +  813.169402892505M3[t] +  1649.41580758891M4[t] +  1346.43181771581M5[t] +  1288.77850090195M6[t] +  1466.88691319352M7[t] +  1559.80917503726M8[t] +  1016.47288534455M9[t] +  835.720737428436M10[t] +  218.436569258521M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57383&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57383&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
uitvoer[t] = -8805.83279053197 + 250.471410487679indproc[t] + 925.360560207709M1[t] + 5581.8938010698M2[t] + 813.169402892505M3[t] + 1649.41580758891M4[t] + 1346.43181771581M5[t] + 1288.77850090195M6[t] + 1466.88691319352M7[t] + 1559.80917503726M8[t] + 1016.47288534455M9[t] + 835.720737428436M10[t] + 218.436569258521M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-8805.832790531972662.573029-3.30730.0018110.000906
indproc250.47141048767922.94229810.917500
M1925.360560207709756.5390441.22310.2273710.113685
M25581.8938010698899.1573456.207900
M3813.169402892505656.8868391.23790.2218960.110948
M41649.41580758891700.019112.35620.0226820.011341
M51346.43181771581695.6431711.93550.0589550.029478
M61288.77850090195662.1516131.94630.0576050.028802
M71466.88691319352717.8675562.04340.0466420.023321
M81559.80917503726730.6834942.13470.0380280.019014
M91016.47288534455732.9193591.38690.172020.08601
M10835.720737428436673.4284821.2410.2207670.110383
M11218.436569258521656.0842690.33290.740660.37033

\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) & -8805.83279053197 & 2662.573029 & -3.3073 & 0.001811 & 0.000906 \tabularnewline
indproc & 250.471410487679 & 22.942298 & 10.9175 & 0 & 0 \tabularnewline
M1 & 925.360560207709 & 756.539044 & 1.2231 & 0.227371 & 0.113685 \tabularnewline
M2 & 5581.8938010698 & 899.157345 & 6.2079 & 0 & 0 \tabularnewline
M3 & 813.169402892505 & 656.886839 & 1.2379 & 0.221896 & 0.110948 \tabularnewline
M4 & 1649.41580758891 & 700.01911 & 2.3562 & 0.022682 & 0.011341 \tabularnewline
M5 & 1346.43181771581 & 695.643171 & 1.9355 & 0.058955 & 0.029478 \tabularnewline
M6 & 1288.77850090195 & 662.151613 & 1.9463 & 0.057605 & 0.028802 \tabularnewline
M7 & 1466.88691319352 & 717.867556 & 2.0434 & 0.046642 & 0.023321 \tabularnewline
M8 & 1559.80917503726 & 730.683494 & 2.1347 & 0.038028 & 0.019014 \tabularnewline
M9 & 1016.47288534455 & 732.919359 & 1.3869 & 0.17202 & 0.08601 \tabularnewline
M10 & 835.720737428436 & 673.428482 & 1.241 & 0.220767 & 0.110383 \tabularnewline
M11 & 218.436569258521 & 656.084269 & 0.3329 & 0.74066 & 0.37033 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57383&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]-8805.83279053197[/C][C]2662.573029[/C][C]-3.3073[/C][C]0.001811[/C][C]0.000906[/C][/ROW]
[ROW][C]indproc[/C][C]250.471410487679[/C][C]22.942298[/C][C]10.9175[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]925.360560207709[/C][C]756.539044[/C][C]1.2231[/C][C]0.227371[/C][C]0.113685[/C][/ROW]
[ROW][C]M2[/C][C]5581.8938010698[/C][C]899.157345[/C][C]6.2079[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]813.169402892505[/C][C]656.886839[/C][C]1.2379[/C][C]0.221896[/C][C]0.110948[/C][/ROW]
[ROW][C]M4[/C][C]1649.41580758891[/C][C]700.01911[/C][C]2.3562[/C][C]0.022682[/C][C]0.011341[/C][/ROW]
[ROW][C]M5[/C][C]1346.43181771581[/C][C]695.643171[/C][C]1.9355[/C][C]0.058955[/C][C]0.029478[/C][/ROW]
[ROW][C]M6[/C][C]1288.77850090195[/C][C]662.151613[/C][C]1.9463[/C][C]0.057605[/C][C]0.028802[/C][/ROW]
[ROW][C]M7[/C][C]1466.88691319352[/C][C]717.867556[/C][C]2.0434[/C][C]0.046642[/C][C]0.023321[/C][/ROW]
[ROW][C]M8[/C][C]1559.80917503726[/C][C]730.683494[/C][C]2.1347[/C][C]0.038028[/C][C]0.019014[/C][/ROW]
[ROW][C]M9[/C][C]1016.47288534455[/C][C]732.919359[/C][C]1.3869[/C][C]0.17202[/C][C]0.08601[/C][/ROW]
[ROW][C]M10[/C][C]835.720737428436[/C][C]673.428482[/C][C]1.241[/C][C]0.220767[/C][C]0.110383[/C][/ROW]
[ROW][C]M11[/C][C]218.436569258521[/C][C]656.084269[/C][C]0.3329[/C][C]0.74066[/C][C]0.37033[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57383&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57383&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)-8805.832790531972662.573029-3.30730.0018110.000906
indproc250.47141048767922.94229810.917500
M1925.360560207709756.5390441.22310.2273710.113685
M25581.8938010698899.1573456.207900
M3813.169402892505656.8868391.23790.2218960.110948
M41649.41580758891700.019112.35620.0226820.011341
M51346.43181771581695.6431711.93550.0589550.029478
M61288.77850090195662.1516131.94630.0576050.028802
M71466.88691319352717.8675562.04340.0466420.023321
M81559.80917503726730.6834942.13470.0380280.019014
M91016.47288534455732.9193591.38690.172020.08601
M10835.720737428436673.4284821.2410.2207670.110383
M11218.436569258521656.0842690.33290.740660.37033







Multiple Linear Regression - Regression Statistics
Multiple R0.894656098130333
R-squared0.800409533921793
Adjusted R-squared0.749450265986931
F-TEST (value)15.7068491436124
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.33715261085854e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1037.35118094877
Sum Squared Residuals50576581.2129433

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.894656098130333 \tabularnewline
R-squared & 0.800409533921793 \tabularnewline
Adjusted R-squared & 0.749450265986931 \tabularnewline
F-TEST (value) & 15.7068491436124 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.33715261085854e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1037.35118094877 \tabularnewline
Sum Squared Residuals & 50576581.2129433 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57383&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.894656098130333[/C][/ROW]
[ROW][C]R-squared[/C][C]0.800409533921793[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.749450265986931[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.7068491436124[/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]1.33715261085854e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1037.35118094877[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]50576581.2129433[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57383&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57383&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.894656098130333
R-squared0.800409533921793
Adjusted R-squared0.749450265986931
F-TEST (value)15.7068491436124
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.33715261085854e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1037.35118094877
Sum Squared Residuals50576581.2129433







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
115836.814436.53044412791400.26955587214
217570.417464.9995168201105.400483179876
318252.117730.7504694452521.349530554822
416196.715836.8584998259359.841500174122
51664316109.9587540744533.04124592556
61772918306.5481316497-577.548131649693
716446.116004.9895801132441.110419886751
815993.815546.8747388841446.925261115908
916373.515830.0941038007543.405896199278
1017842.216926.7461493718915.45385062823
1122321.520392.14597215101929.35402784897
1222786.720449.22795442892337.47204557105
1318274.117116.57453634611157.52546365388
1422392.920821.31641735501571.58358264498
1523899.321036.97308788252862.32691211745
1621343.520170.01390126271173.48609873727
1722952.321920.89547738861031.40452261140
1821374.419984.70658191711389.69341808286
1921164.120914.2292256718249.870774328241
2020906.520481.1615254914425.338474508629
2117877.417257.7811435805619.618856419507
2220664.320408.2987551505256.001244849490
232216022070.304422418589.6955775815234
2419813.619372.2008893319441.399110668067
2517735.418218.6487424919-483.248742491903
2619640.219944.6664806481-304.46648064815
2720844.421362.5859215165-518.185921516527
2819823.120220.1081833603-397.008183360266
2918594.619115.6156799266-521.015679926591
3021350.622238.9492763063-888.34927630626
3118574.119035.6936470142-461.593647014166
3218924.219303.9458961993-379.745896199278
3317343.417758.7239645559-415.323964555851
3419961.220308.1101909554-346.91019095544
3519932.120592.5231005412-660.42310054117
3619464.619948.2851334536-483.685133453594
3716165.417291.9045236875-1126.50452368749
3817574.918166.3194661856-591.419466185628
3919795.420711.3602542486-915.96025424856
4019439.520370.3910296529-930.891029652874
411717017763.0700632931-593.070063293124
4221072.421412.3936216969-339.993621696917
4317751.817883.5251587708-131.725158770842
4417515.517550.6460227855-35.1460227855242
4518040.317833.8653877022206.434612297844
4619090.119281.1774079560-191.077407955955
4717746.517937.5261493718-191.02614937177
4819202.119547.5308766733-345.430876673309
4915141.616089.6417533466-948.041753346631
5016258.117039.1981189911-781.098118991072
5118586.520536.0302669072-1949.53026690719
5217209.417414.8283858983-205.428385898255
5317838.718289.0600253172-450.360025317248
5419123.518707.30238843416.197611570016
5516583.616681.2623884300-97.6623884299837
5615991.216448.5718166397-457.371816639734
5716704.417658.5354003608-954.135400360777
5817420.418053.8674965663-633.467496566326
591787219039.6003555176-1167.60035551756
6017823.219772.9551461122-1949.75514611222

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 15836.8 & 14436.5304441279 & 1400.26955587214 \tabularnewline
2 & 17570.4 & 17464.9995168201 & 105.400483179876 \tabularnewline
3 & 18252.1 & 17730.7504694452 & 521.349530554822 \tabularnewline
4 & 16196.7 & 15836.8584998259 & 359.841500174122 \tabularnewline
5 & 16643 & 16109.9587540744 & 533.04124592556 \tabularnewline
6 & 17729 & 18306.5481316497 & -577.548131649693 \tabularnewline
7 & 16446.1 & 16004.9895801132 & 441.110419886751 \tabularnewline
8 & 15993.8 & 15546.8747388841 & 446.925261115908 \tabularnewline
9 & 16373.5 & 15830.0941038007 & 543.405896199278 \tabularnewline
10 & 17842.2 & 16926.7461493718 & 915.45385062823 \tabularnewline
11 & 22321.5 & 20392.1459721510 & 1929.35402784897 \tabularnewline
12 & 22786.7 & 20449.2279544289 & 2337.47204557105 \tabularnewline
13 & 18274.1 & 17116.5745363461 & 1157.52546365388 \tabularnewline
14 & 22392.9 & 20821.3164173550 & 1571.58358264498 \tabularnewline
15 & 23899.3 & 21036.9730878825 & 2862.32691211745 \tabularnewline
16 & 21343.5 & 20170.0139012627 & 1173.48609873727 \tabularnewline
17 & 22952.3 & 21920.8954773886 & 1031.40452261140 \tabularnewline
18 & 21374.4 & 19984.7065819171 & 1389.69341808286 \tabularnewline
19 & 21164.1 & 20914.2292256718 & 249.870774328241 \tabularnewline
20 & 20906.5 & 20481.1615254914 & 425.338474508629 \tabularnewline
21 & 17877.4 & 17257.7811435805 & 619.618856419507 \tabularnewline
22 & 20664.3 & 20408.2987551505 & 256.001244849490 \tabularnewline
23 & 22160 & 22070.3044224185 & 89.6955775815234 \tabularnewline
24 & 19813.6 & 19372.2008893319 & 441.399110668067 \tabularnewline
25 & 17735.4 & 18218.6487424919 & -483.248742491903 \tabularnewline
26 & 19640.2 & 19944.6664806481 & -304.46648064815 \tabularnewline
27 & 20844.4 & 21362.5859215165 & -518.185921516527 \tabularnewline
28 & 19823.1 & 20220.1081833603 & -397.008183360266 \tabularnewline
29 & 18594.6 & 19115.6156799266 & -521.015679926591 \tabularnewline
30 & 21350.6 & 22238.9492763063 & -888.34927630626 \tabularnewline
31 & 18574.1 & 19035.6936470142 & -461.593647014166 \tabularnewline
32 & 18924.2 & 19303.9458961993 & -379.745896199278 \tabularnewline
33 & 17343.4 & 17758.7239645559 & -415.323964555851 \tabularnewline
34 & 19961.2 & 20308.1101909554 & -346.91019095544 \tabularnewline
35 & 19932.1 & 20592.5231005412 & -660.42310054117 \tabularnewline
36 & 19464.6 & 19948.2851334536 & -483.685133453594 \tabularnewline
37 & 16165.4 & 17291.9045236875 & -1126.50452368749 \tabularnewline
38 & 17574.9 & 18166.3194661856 & -591.419466185628 \tabularnewline
39 & 19795.4 & 20711.3602542486 & -915.96025424856 \tabularnewline
40 & 19439.5 & 20370.3910296529 & -930.891029652874 \tabularnewline
41 & 17170 & 17763.0700632931 & -593.070063293124 \tabularnewline
42 & 21072.4 & 21412.3936216969 & -339.993621696917 \tabularnewline
43 & 17751.8 & 17883.5251587708 & -131.725158770842 \tabularnewline
44 & 17515.5 & 17550.6460227855 & -35.1460227855242 \tabularnewline
45 & 18040.3 & 17833.8653877022 & 206.434612297844 \tabularnewline
46 & 19090.1 & 19281.1774079560 & -191.077407955955 \tabularnewline
47 & 17746.5 & 17937.5261493718 & -191.02614937177 \tabularnewline
48 & 19202.1 & 19547.5308766733 & -345.430876673309 \tabularnewline
49 & 15141.6 & 16089.6417533466 & -948.041753346631 \tabularnewline
50 & 16258.1 & 17039.1981189911 & -781.098118991072 \tabularnewline
51 & 18586.5 & 20536.0302669072 & -1949.53026690719 \tabularnewline
52 & 17209.4 & 17414.8283858983 & -205.428385898255 \tabularnewline
53 & 17838.7 & 18289.0600253172 & -450.360025317248 \tabularnewline
54 & 19123.5 & 18707.30238843 & 416.197611570016 \tabularnewline
55 & 16583.6 & 16681.2623884300 & -97.6623884299837 \tabularnewline
56 & 15991.2 & 16448.5718166397 & -457.371816639734 \tabularnewline
57 & 16704.4 & 17658.5354003608 & -954.135400360777 \tabularnewline
58 & 17420.4 & 18053.8674965663 & -633.467496566326 \tabularnewline
59 & 17872 & 19039.6003555176 & -1167.60035551756 \tabularnewline
60 & 17823.2 & 19772.9551461122 & -1949.75514611222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57383&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]15836.8[/C][C]14436.5304441279[/C][C]1400.26955587214[/C][/ROW]
[ROW][C]2[/C][C]17570.4[/C][C]17464.9995168201[/C][C]105.400483179876[/C][/ROW]
[ROW][C]3[/C][C]18252.1[/C][C]17730.7504694452[/C][C]521.349530554822[/C][/ROW]
[ROW][C]4[/C][C]16196.7[/C][C]15836.8584998259[/C][C]359.841500174122[/C][/ROW]
[ROW][C]5[/C][C]16643[/C][C]16109.9587540744[/C][C]533.04124592556[/C][/ROW]
[ROW][C]6[/C][C]17729[/C][C]18306.5481316497[/C][C]-577.548131649693[/C][/ROW]
[ROW][C]7[/C][C]16446.1[/C][C]16004.9895801132[/C][C]441.110419886751[/C][/ROW]
[ROW][C]8[/C][C]15993.8[/C][C]15546.8747388841[/C][C]446.925261115908[/C][/ROW]
[ROW][C]9[/C][C]16373.5[/C][C]15830.0941038007[/C][C]543.405896199278[/C][/ROW]
[ROW][C]10[/C][C]17842.2[/C][C]16926.7461493718[/C][C]915.45385062823[/C][/ROW]
[ROW][C]11[/C][C]22321.5[/C][C]20392.1459721510[/C][C]1929.35402784897[/C][/ROW]
[ROW][C]12[/C][C]22786.7[/C][C]20449.2279544289[/C][C]2337.47204557105[/C][/ROW]
[ROW][C]13[/C][C]18274.1[/C][C]17116.5745363461[/C][C]1157.52546365388[/C][/ROW]
[ROW][C]14[/C][C]22392.9[/C][C]20821.3164173550[/C][C]1571.58358264498[/C][/ROW]
[ROW][C]15[/C][C]23899.3[/C][C]21036.9730878825[/C][C]2862.32691211745[/C][/ROW]
[ROW][C]16[/C][C]21343.5[/C][C]20170.0139012627[/C][C]1173.48609873727[/C][/ROW]
[ROW][C]17[/C][C]22952.3[/C][C]21920.8954773886[/C][C]1031.40452261140[/C][/ROW]
[ROW][C]18[/C][C]21374.4[/C][C]19984.7065819171[/C][C]1389.69341808286[/C][/ROW]
[ROW][C]19[/C][C]21164.1[/C][C]20914.2292256718[/C][C]249.870774328241[/C][/ROW]
[ROW][C]20[/C][C]20906.5[/C][C]20481.1615254914[/C][C]425.338474508629[/C][/ROW]
[ROW][C]21[/C][C]17877.4[/C][C]17257.7811435805[/C][C]619.618856419507[/C][/ROW]
[ROW][C]22[/C][C]20664.3[/C][C]20408.2987551505[/C][C]256.001244849490[/C][/ROW]
[ROW][C]23[/C][C]22160[/C][C]22070.3044224185[/C][C]89.6955775815234[/C][/ROW]
[ROW][C]24[/C][C]19813.6[/C][C]19372.2008893319[/C][C]441.399110668067[/C][/ROW]
[ROW][C]25[/C][C]17735.4[/C][C]18218.6487424919[/C][C]-483.248742491903[/C][/ROW]
[ROW][C]26[/C][C]19640.2[/C][C]19944.6664806481[/C][C]-304.46648064815[/C][/ROW]
[ROW][C]27[/C][C]20844.4[/C][C]21362.5859215165[/C][C]-518.185921516527[/C][/ROW]
[ROW][C]28[/C][C]19823.1[/C][C]20220.1081833603[/C][C]-397.008183360266[/C][/ROW]
[ROW][C]29[/C][C]18594.6[/C][C]19115.6156799266[/C][C]-521.015679926591[/C][/ROW]
[ROW][C]30[/C][C]21350.6[/C][C]22238.9492763063[/C][C]-888.34927630626[/C][/ROW]
[ROW][C]31[/C][C]18574.1[/C][C]19035.6936470142[/C][C]-461.593647014166[/C][/ROW]
[ROW][C]32[/C][C]18924.2[/C][C]19303.9458961993[/C][C]-379.745896199278[/C][/ROW]
[ROW][C]33[/C][C]17343.4[/C][C]17758.7239645559[/C][C]-415.323964555851[/C][/ROW]
[ROW][C]34[/C][C]19961.2[/C][C]20308.1101909554[/C][C]-346.91019095544[/C][/ROW]
[ROW][C]35[/C][C]19932.1[/C][C]20592.5231005412[/C][C]-660.42310054117[/C][/ROW]
[ROW][C]36[/C][C]19464.6[/C][C]19948.2851334536[/C][C]-483.685133453594[/C][/ROW]
[ROW][C]37[/C][C]16165.4[/C][C]17291.9045236875[/C][C]-1126.50452368749[/C][/ROW]
[ROW][C]38[/C][C]17574.9[/C][C]18166.3194661856[/C][C]-591.419466185628[/C][/ROW]
[ROW][C]39[/C][C]19795.4[/C][C]20711.3602542486[/C][C]-915.96025424856[/C][/ROW]
[ROW][C]40[/C][C]19439.5[/C][C]20370.3910296529[/C][C]-930.891029652874[/C][/ROW]
[ROW][C]41[/C][C]17170[/C][C]17763.0700632931[/C][C]-593.070063293124[/C][/ROW]
[ROW][C]42[/C][C]21072.4[/C][C]21412.3936216969[/C][C]-339.993621696917[/C][/ROW]
[ROW][C]43[/C][C]17751.8[/C][C]17883.5251587708[/C][C]-131.725158770842[/C][/ROW]
[ROW][C]44[/C][C]17515.5[/C][C]17550.6460227855[/C][C]-35.1460227855242[/C][/ROW]
[ROW][C]45[/C][C]18040.3[/C][C]17833.8653877022[/C][C]206.434612297844[/C][/ROW]
[ROW][C]46[/C][C]19090.1[/C][C]19281.1774079560[/C][C]-191.077407955955[/C][/ROW]
[ROW][C]47[/C][C]17746.5[/C][C]17937.5261493718[/C][C]-191.02614937177[/C][/ROW]
[ROW][C]48[/C][C]19202.1[/C][C]19547.5308766733[/C][C]-345.430876673309[/C][/ROW]
[ROW][C]49[/C][C]15141.6[/C][C]16089.6417533466[/C][C]-948.041753346631[/C][/ROW]
[ROW][C]50[/C][C]16258.1[/C][C]17039.1981189911[/C][C]-781.098118991072[/C][/ROW]
[ROW][C]51[/C][C]18586.5[/C][C]20536.0302669072[/C][C]-1949.53026690719[/C][/ROW]
[ROW][C]52[/C][C]17209.4[/C][C]17414.8283858983[/C][C]-205.428385898255[/C][/ROW]
[ROW][C]53[/C][C]17838.7[/C][C]18289.0600253172[/C][C]-450.360025317248[/C][/ROW]
[ROW][C]54[/C][C]19123.5[/C][C]18707.30238843[/C][C]416.197611570016[/C][/ROW]
[ROW][C]55[/C][C]16583.6[/C][C]16681.2623884300[/C][C]-97.6623884299837[/C][/ROW]
[ROW][C]56[/C][C]15991.2[/C][C]16448.5718166397[/C][C]-457.371816639734[/C][/ROW]
[ROW][C]57[/C][C]16704.4[/C][C]17658.5354003608[/C][C]-954.135400360777[/C][/ROW]
[ROW][C]58[/C][C]17420.4[/C][C]18053.8674965663[/C][C]-633.467496566326[/C][/ROW]
[ROW][C]59[/C][C]17872[/C][C]19039.6003555176[/C][C]-1167.60035551756[/C][/ROW]
[ROW][C]60[/C][C]17823.2[/C][C]19772.9551461122[/C][C]-1949.75514611222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57383&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57383&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
115836.814436.53044412791400.26955587214
217570.417464.9995168201105.400483179876
318252.117730.7504694452521.349530554822
416196.715836.8584998259359.841500174122
51664316109.9587540744533.04124592556
61772918306.5481316497-577.548131649693
716446.116004.9895801132441.110419886751
815993.815546.8747388841446.925261115908
916373.515830.0941038007543.405896199278
1017842.216926.7461493718915.45385062823
1122321.520392.14597215101929.35402784897
1222786.720449.22795442892337.47204557105
1318274.117116.57453634611157.52546365388
1422392.920821.31641735501571.58358264498
1523899.321036.97308788252862.32691211745
1621343.520170.01390126271173.48609873727
1722952.321920.89547738861031.40452261140
1821374.419984.70658191711389.69341808286
1921164.120914.2292256718249.870774328241
2020906.520481.1615254914425.338474508629
2117877.417257.7811435805619.618856419507
2220664.320408.2987551505256.001244849490
232216022070.304422418589.6955775815234
2419813.619372.2008893319441.399110668067
2517735.418218.6487424919-483.248742491903
2619640.219944.6664806481-304.46648064815
2720844.421362.5859215165-518.185921516527
2819823.120220.1081833603-397.008183360266
2918594.619115.6156799266-521.015679926591
3021350.622238.9492763063-888.34927630626
3118574.119035.6936470142-461.593647014166
3218924.219303.9458961993-379.745896199278
3317343.417758.7239645559-415.323964555851
3419961.220308.1101909554-346.91019095544
3519932.120592.5231005412-660.42310054117
3619464.619948.2851334536-483.685133453594
3716165.417291.9045236875-1126.50452368749
3817574.918166.3194661856-591.419466185628
3919795.420711.3602542486-915.96025424856
4019439.520370.3910296529-930.891029652874
411717017763.0700632931-593.070063293124
4221072.421412.3936216969-339.993621696917
4317751.817883.5251587708-131.725158770842
4417515.517550.6460227855-35.1460227855242
4518040.317833.8653877022206.434612297844
4619090.119281.1774079560-191.077407955955
4717746.517937.5261493718-191.02614937177
4819202.119547.5308766733-345.430876673309
4915141.616089.6417533466-948.041753346631
5016258.117039.1981189911-781.098118991072
5118586.520536.0302669072-1949.53026690719
5217209.417414.8283858983-205.428385898255
5317838.718289.0600253172-450.360025317248
5419123.518707.30238843416.197611570016
5516583.616681.2623884300-97.6623884299837
5615991.216448.5718166397-457.371816639734
5716704.417658.5354003608-954.135400360777
5817420.418053.8674965663-633.467496566326
591787219039.6003555176-1167.60035551756
6017823.219772.9551461122-1949.75514611222







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.7315763360640830.5368473278718330.268423663935917
170.7734022426299860.4531955147400290.226597757370014
180.9211347707071960.1577304585856080.0788652292928041
190.9317685490197090.1364629019605820.0682314509802912
200.9228531117703840.1542937764592320.0771468882296159
210.9059467749351370.1881064501297260.0940532250648631
220.9156791726511970.1686416546976050.0843208273488026
230.9730328508712180.05393429825756390.0269671491287819
240.9938602194766680.01227956104666490.00613978052333243
250.997993347369610.004013305260782330.00200665263039116
260.9979998140113750.004000371977249430.00200018598862471
270.999641095574910.0007178088501814510.000358904425090725
280.999467935838620.001064128322761220.000532064161380609
290.9991608278220540.001678344355892650.000839172177946327
300.99906281703030.001874365939401030.000937182969700517
310.9980948145984060.003810370803187290.00190518540159364
320.9961781801498520.007643639700296020.00382181985014801
330.9928609947760850.01427801044782920.0071390052239146
340.9873415808106230.02531683837875390.0126584191893770
350.9834528818362060.03309423632758770.0165471181637938
360.9840395304890730.03192093902185340.0159604695109267
370.9763162033048940.04736759339021120.0236837966951056
380.9604664157089620.07906716858207670.0395335842910383
390.964965826802990.0700683463940190.0350341731970095
400.935827998880350.1283440022393000.0641720011196499
410.885434814429610.2291303711407810.114565185570391
420.804556977486180.3908860450276410.195443022513821
430.6722044340999570.6555911318000860.327795565900043
440.5250823004597450.949835399080510.474917699540255

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.731576336064083 & 0.536847327871833 & 0.268423663935917 \tabularnewline
17 & 0.773402242629986 & 0.453195514740029 & 0.226597757370014 \tabularnewline
18 & 0.921134770707196 & 0.157730458585608 & 0.0788652292928041 \tabularnewline
19 & 0.931768549019709 & 0.136462901960582 & 0.0682314509802912 \tabularnewline
20 & 0.922853111770384 & 0.154293776459232 & 0.0771468882296159 \tabularnewline
21 & 0.905946774935137 & 0.188106450129726 & 0.0940532250648631 \tabularnewline
22 & 0.915679172651197 & 0.168641654697605 & 0.0843208273488026 \tabularnewline
23 & 0.973032850871218 & 0.0539342982575639 & 0.0269671491287819 \tabularnewline
24 & 0.993860219476668 & 0.0122795610466649 & 0.00613978052333243 \tabularnewline
25 & 0.99799334736961 & 0.00401330526078233 & 0.00200665263039116 \tabularnewline
26 & 0.997999814011375 & 0.00400037197724943 & 0.00200018598862471 \tabularnewline
27 & 0.99964109557491 & 0.000717808850181451 & 0.000358904425090725 \tabularnewline
28 & 0.99946793583862 & 0.00106412832276122 & 0.000532064161380609 \tabularnewline
29 & 0.999160827822054 & 0.00167834435589265 & 0.000839172177946327 \tabularnewline
30 & 0.9990628170303 & 0.00187436593940103 & 0.000937182969700517 \tabularnewline
31 & 0.998094814598406 & 0.00381037080318729 & 0.00190518540159364 \tabularnewline
32 & 0.996178180149852 & 0.00764363970029602 & 0.00382181985014801 \tabularnewline
33 & 0.992860994776085 & 0.0142780104478292 & 0.0071390052239146 \tabularnewline
34 & 0.987341580810623 & 0.0253168383787539 & 0.0126584191893770 \tabularnewline
35 & 0.983452881836206 & 0.0330942363275877 & 0.0165471181637938 \tabularnewline
36 & 0.984039530489073 & 0.0319209390218534 & 0.0159604695109267 \tabularnewline
37 & 0.976316203304894 & 0.0473675933902112 & 0.0236837966951056 \tabularnewline
38 & 0.960466415708962 & 0.0790671685820767 & 0.0395335842910383 \tabularnewline
39 & 0.96496582680299 & 0.070068346394019 & 0.0350341731970095 \tabularnewline
40 & 0.93582799888035 & 0.128344002239300 & 0.0641720011196499 \tabularnewline
41 & 0.88543481442961 & 0.229130371140781 & 0.114565185570391 \tabularnewline
42 & 0.80455697748618 & 0.390886045027641 & 0.195443022513821 \tabularnewline
43 & 0.672204434099957 & 0.655591131800086 & 0.327795565900043 \tabularnewline
44 & 0.525082300459745 & 0.94983539908051 & 0.474917699540255 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57383&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.731576336064083[/C][C]0.536847327871833[/C][C]0.268423663935917[/C][/ROW]
[ROW][C]17[/C][C]0.773402242629986[/C][C]0.453195514740029[/C][C]0.226597757370014[/C][/ROW]
[ROW][C]18[/C][C]0.921134770707196[/C][C]0.157730458585608[/C][C]0.0788652292928041[/C][/ROW]
[ROW][C]19[/C][C]0.931768549019709[/C][C]0.136462901960582[/C][C]0.0682314509802912[/C][/ROW]
[ROW][C]20[/C][C]0.922853111770384[/C][C]0.154293776459232[/C][C]0.0771468882296159[/C][/ROW]
[ROW][C]21[/C][C]0.905946774935137[/C][C]0.188106450129726[/C][C]0.0940532250648631[/C][/ROW]
[ROW][C]22[/C][C]0.915679172651197[/C][C]0.168641654697605[/C][C]0.0843208273488026[/C][/ROW]
[ROW][C]23[/C][C]0.973032850871218[/C][C]0.0539342982575639[/C][C]0.0269671491287819[/C][/ROW]
[ROW][C]24[/C][C]0.993860219476668[/C][C]0.0122795610466649[/C][C]0.00613978052333243[/C][/ROW]
[ROW][C]25[/C][C]0.99799334736961[/C][C]0.00401330526078233[/C][C]0.00200665263039116[/C][/ROW]
[ROW][C]26[/C][C]0.997999814011375[/C][C]0.00400037197724943[/C][C]0.00200018598862471[/C][/ROW]
[ROW][C]27[/C][C]0.99964109557491[/C][C]0.000717808850181451[/C][C]0.000358904425090725[/C][/ROW]
[ROW][C]28[/C][C]0.99946793583862[/C][C]0.00106412832276122[/C][C]0.000532064161380609[/C][/ROW]
[ROW][C]29[/C][C]0.999160827822054[/C][C]0.00167834435589265[/C][C]0.000839172177946327[/C][/ROW]
[ROW][C]30[/C][C]0.9990628170303[/C][C]0.00187436593940103[/C][C]0.000937182969700517[/C][/ROW]
[ROW][C]31[/C][C]0.998094814598406[/C][C]0.00381037080318729[/C][C]0.00190518540159364[/C][/ROW]
[ROW][C]32[/C][C]0.996178180149852[/C][C]0.00764363970029602[/C][C]0.00382181985014801[/C][/ROW]
[ROW][C]33[/C][C]0.992860994776085[/C][C]0.0142780104478292[/C][C]0.0071390052239146[/C][/ROW]
[ROW][C]34[/C][C]0.987341580810623[/C][C]0.0253168383787539[/C][C]0.0126584191893770[/C][/ROW]
[ROW][C]35[/C][C]0.983452881836206[/C][C]0.0330942363275877[/C][C]0.0165471181637938[/C][/ROW]
[ROW][C]36[/C][C]0.984039530489073[/C][C]0.0319209390218534[/C][C]0.0159604695109267[/C][/ROW]
[ROW][C]37[/C][C]0.976316203304894[/C][C]0.0473675933902112[/C][C]0.0236837966951056[/C][/ROW]
[ROW][C]38[/C][C]0.960466415708962[/C][C]0.0790671685820767[/C][C]0.0395335842910383[/C][/ROW]
[ROW][C]39[/C][C]0.96496582680299[/C][C]0.070068346394019[/C][C]0.0350341731970095[/C][/ROW]
[ROW][C]40[/C][C]0.93582799888035[/C][C]0.128344002239300[/C][C]0.0641720011196499[/C][/ROW]
[ROW][C]41[/C][C]0.88543481442961[/C][C]0.229130371140781[/C][C]0.114565185570391[/C][/ROW]
[ROW][C]42[/C][C]0.80455697748618[/C][C]0.390886045027641[/C][C]0.195443022513821[/C][/ROW]
[ROW][C]43[/C][C]0.672204434099957[/C][C]0.655591131800086[/C][C]0.327795565900043[/C][/ROW]
[ROW][C]44[/C][C]0.525082300459745[/C][C]0.94983539908051[/C][C]0.474917699540255[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57383&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57383&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.7315763360640830.5368473278718330.268423663935917
170.7734022426299860.4531955147400290.226597757370014
180.9211347707071960.1577304585856080.0788652292928041
190.9317685490197090.1364629019605820.0682314509802912
200.9228531117703840.1542937764592320.0771468882296159
210.9059467749351370.1881064501297260.0940532250648631
220.9156791726511970.1686416546976050.0843208273488026
230.9730328508712180.05393429825756390.0269671491287819
240.9938602194766680.01227956104666490.00613978052333243
250.997993347369610.004013305260782330.00200665263039116
260.9979998140113750.004000371977249430.00200018598862471
270.999641095574910.0007178088501814510.000358904425090725
280.999467935838620.001064128322761220.000532064161380609
290.9991608278220540.001678344355892650.000839172177946327
300.99906281703030.001874365939401030.000937182969700517
310.9980948145984060.003810370803187290.00190518540159364
320.9961781801498520.007643639700296020.00382181985014801
330.9928609947760850.01427801044782920.0071390052239146
340.9873415808106230.02531683837875390.0126584191893770
350.9834528818362060.03309423632758770.0165471181637938
360.9840395304890730.03192093902185340.0159604695109267
370.9763162033048940.04736759339021120.0236837966951056
380.9604664157089620.07906716858207670.0395335842910383
390.964965826802990.0700683463940190.0350341731970095
400.935827998880350.1283440022393000.0641720011196499
410.885434814429610.2291303711407810.114565185570391
420.804556977486180.3908860450276410.195443022513821
430.6722044340999570.6555911318000860.327795565900043
440.5250823004597450.949835399080510.474917699540255







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.275862068965517NOK
5% type I error level140.482758620689655NOK
10% type I error level170.586206896551724NOK

\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 & 8 & 0.275862068965517 & NOK \tabularnewline
5% type I error level & 14 & 0.482758620689655 & NOK \tabularnewline
10% type I error level & 17 & 0.586206896551724 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57383&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]8[/C][C]0.275862068965517[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]14[/C][C]0.482758620689655[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]17[/C][C]0.586206896551724[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57383&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57383&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 level80.275862068965517NOK
5% type I error level140.482758620689655NOK
10% type I error level170.586206896551724NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}