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 computationWed, 18 Nov 2009 11:37:15 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258569513c4yozh6xbbjxmqj.htm/, Retrieved Sat, 04 May 2024 13:49:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57585, Retrieved Sat, 04 May 2024 13:49:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact198
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [] [2009-11-18 18:37:15] [7dd0431c761b876151627bfbf92230c8] [Current]
Feedback Forum

Post a new message
Dataseries X:
90398	562000
90269	561000
90390	555000
88219	544000
87032	537000
87175	543000
92603	594000
93571	611000
94118	613000
92159	611000
89528	594000
89955	595000
89587	591000
89488	589000
88521	584000
86587	573000
85159	567000
84915	569000
91378	621000
92729	629000
92194	628000
89664	612000
86285	595000
86858	597000
87184	593000
86629	590000
85220	580000
84816	574000
84831	573000
84957	573000
90951	620000
92134	626000
91790	620000
86625	588000
83324	566000
82719	557000
83614	561000
81640	549000
78665	532000
77828	526000
75728	511000
72187	499000
79357	555000
81329	565000
77304	542000
75576	527000
72932	510000
74291	514000
74988	517000
73302	508000
70483	493000
69848	490000
66466	469000
67610	478000
75091	528000
76207	534000
73454	518000
72008	506000
71362	502000
74250	516000




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -20578.3075841541 + 0.183866332465193X[t] + 1884.80300781325M1[t] + 1989.08120312530M2[t] + 2328.26432725635M3[t] + 2492.67518749878M4[t] + 2714.93851215070M5[t] + 2056.67217968551M6[t] -850.08404253236M7[t] -1260.42756770517M8[t] -1064.40384201148M9[t] -798.462322047506M10[t] -487.120802083538M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -20578.3075841541 +  0.183866332465193X[t] +  1884.80300781325M1[t] +  1989.08120312530M2[t] +  2328.26432725635M3[t] +  2492.67518749878M4[t] +  2714.93851215070M5[t] +  2056.67217968551M6[t] -850.08404253236M7[t] -1260.42756770517M8[t] -1064.40384201148M9[t] -798.462322047506M10[t] -487.120802083538M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57585&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -20578.3075841541 +  0.183866332465193X[t] +  1884.80300781325M1[t] +  1989.08120312530M2[t] +  2328.26432725635M3[t] +  2492.67518749878M4[t] +  2714.93851215070M5[t] +  2056.67217968551M6[t] -850.08404253236M7[t] -1260.42756770517M8[t] -1064.40384201148M9[t] -798.462322047506M10[t] -487.120802083538M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57585&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57585&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] = -20578.3075841541 + 0.183866332465193X[t] + 1884.80300781325M1[t] + 1989.08120312530M2[t] + 2328.26432725635M3[t] + 2492.67518749878M4[t] + 2714.93851215070M5[t] + 2056.67217968551M6[t] -850.08404253236M7[t] -1260.42756770517M8[t] -1064.40384201148M9[t] -798.462322047506M10[t] -487.120802083538M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-20578.30758415415588.045948-3.68260.0005950.000298
X0.1838663324651930.00979818.765200
M11884.803007813251773.5587841.06270.2933370.146669
M21989.081203125301771.7162721.12270.2672730.133637
M32328.264327256351772.6924681.31340.1954220.097711
M42492.675187498781776.9755231.40280.1672590.08363
M52714.938512150701787.4261161.51890.1354840.067742
M62056.672179685511786.1419481.15150.2553670.127683
M7-850.084042532361792.186141-0.47430.6374620.318731
M8-1260.427567705171808.477395-0.6970.4892640.244632
M9-1064.403842011481793.089085-0.59360.5556160.277808
M10-798.4623220475061775.938974-0.44960.6550660.327533
M11-487.1208020835381771.521186-0.2750.7845420.392271

\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) & -20578.3075841541 & 5588.045948 & -3.6826 & 0.000595 & 0.000298 \tabularnewline
X & 0.183866332465193 & 0.009798 & 18.7652 & 0 & 0 \tabularnewline
M1 & 1884.80300781325 & 1773.558784 & 1.0627 & 0.293337 & 0.146669 \tabularnewline
M2 & 1989.08120312530 & 1771.716272 & 1.1227 & 0.267273 & 0.133637 \tabularnewline
M3 & 2328.26432725635 & 1772.692468 & 1.3134 & 0.195422 & 0.097711 \tabularnewline
M4 & 2492.67518749878 & 1776.975523 & 1.4028 & 0.167259 & 0.08363 \tabularnewline
M5 & 2714.93851215070 & 1787.426116 & 1.5189 & 0.135484 & 0.067742 \tabularnewline
M6 & 2056.67217968551 & 1786.141948 & 1.1515 & 0.255367 & 0.127683 \tabularnewline
M7 & -850.08404253236 & 1792.186141 & -0.4743 & 0.637462 & 0.318731 \tabularnewline
M8 & -1260.42756770517 & 1808.477395 & -0.697 & 0.489264 & 0.244632 \tabularnewline
M9 & -1064.40384201148 & 1793.089085 & -0.5936 & 0.555616 & 0.277808 \tabularnewline
M10 & -798.462322047506 & 1775.938974 & -0.4496 & 0.655066 & 0.327533 \tabularnewline
M11 & -487.120802083538 & 1771.521186 & -0.275 & 0.784542 & 0.392271 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57585&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]-20578.3075841541[/C][C]5588.045948[/C][C]-3.6826[/C][C]0.000595[/C][C]0.000298[/C][/ROW]
[ROW][C]X[/C][C]0.183866332465193[/C][C]0.009798[/C][C]18.7652[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]1884.80300781325[/C][C]1773.558784[/C][C]1.0627[/C][C]0.293337[/C][C]0.146669[/C][/ROW]
[ROW][C]M2[/C][C]1989.08120312530[/C][C]1771.716272[/C][C]1.1227[/C][C]0.267273[/C][C]0.133637[/C][/ROW]
[ROW][C]M3[/C][C]2328.26432725635[/C][C]1772.692468[/C][C]1.3134[/C][C]0.195422[/C][C]0.097711[/C][/ROW]
[ROW][C]M4[/C][C]2492.67518749878[/C][C]1776.975523[/C][C]1.4028[/C][C]0.167259[/C][C]0.08363[/C][/ROW]
[ROW][C]M5[/C][C]2714.93851215070[/C][C]1787.426116[/C][C]1.5189[/C][C]0.135484[/C][C]0.067742[/C][/ROW]
[ROW][C]M6[/C][C]2056.67217968551[/C][C]1786.141948[/C][C]1.1515[/C][C]0.255367[/C][C]0.127683[/C][/ROW]
[ROW][C]M7[/C][C]-850.08404253236[/C][C]1792.186141[/C][C]-0.4743[/C][C]0.637462[/C][C]0.318731[/C][/ROW]
[ROW][C]M8[/C][C]-1260.42756770517[/C][C]1808.477395[/C][C]-0.697[/C][C]0.489264[/C][C]0.244632[/C][/ROW]
[ROW][C]M9[/C][C]-1064.40384201148[/C][C]1793.089085[/C][C]-0.5936[/C][C]0.555616[/C][C]0.277808[/C][/ROW]
[ROW][C]M10[/C][C]-798.462322047506[/C][C]1775.938974[/C][C]-0.4496[/C][C]0.655066[/C][C]0.327533[/C][/ROW]
[ROW][C]M11[/C][C]-487.120802083538[/C][C]1771.521186[/C][C]-0.275[/C][C]0.784542[/C][C]0.392271[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57585&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57585&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)-20578.30758415415588.045948-3.68260.0005950.000298
X0.1838663324651930.00979818.765200
M11884.803007813251773.5587841.06270.2933370.146669
M21989.081203125301771.7162721.12270.2672730.133637
M32328.264327256351772.6924681.31340.1954220.097711
M42492.675187498781776.9755231.40280.1672590.08363
M52714.938512150701787.4261161.51890.1354840.067742
M62056.672179685511786.1419481.15150.2553670.127683
M7-850.084042532361792.186141-0.47430.6374620.318731
M8-1260.427567705171808.477395-0.6970.4892640.244632
M9-1064.403842011481793.089085-0.59360.5556160.277808
M10-798.4623220475061775.938974-0.44960.6550660.327533
M11-487.1208020835381771.521186-0.2750.7845420.392271







Multiple Linear Regression - Regression Statistics
Multiple R0.945772715791592
R-squared0.894486029935803
Adjusted R-squared0.867546292898136
F-TEST (value)33.2032205320018
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2800.77414274199
Sum Squared Residuals368683782.536650

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.945772715791592 \tabularnewline
R-squared & 0.894486029935803 \tabularnewline
Adjusted R-squared & 0.867546292898136 \tabularnewline
F-TEST (value) & 33.2032205320018 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2800.77414274199 \tabularnewline
Sum Squared Residuals & 368683782.536650 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57585&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.945772715791592[/C][/ROW]
[ROW][C]R-squared[/C][C]0.894486029935803[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.867546292898136[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]33.2032205320018[/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]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2800.77414274199[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]368683782.536650[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57585&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57585&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.945772715791592
R-squared0.894486029935803
Adjusted R-squared0.867546292898136
F-TEST (value)33.2032205320018
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2800.77414274199
Sum Squared Residuals368683782.536650







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19039884639.37426909755758.62573090246
29026984559.78613194435709.21386805568
39039083795.77126128426594.2287387158
48821981937.65246440956281.3475355905
58703280872.85146180516159.14853819492
68717581317.7831241315857.21687586895
79260387788.2098576384814.79014236200
89357190503.59398437353067.40601562653
99411891067.35037499753050.64962500245
109215990965.55923003111193.44076996886
118952888151.17309808681376.82690191317
128995588822.16023263561132.83976736444
138958789971.497910588-384.49791058803
148948889708.0434409697-220.043440969703
158852189127.8949027748-606.894902774786
168658787269.7761059001-682.776105900093
178515986388.8414357609-1229.84143576086
188491586098.307768226-1183.30776822606
199137892752.6008341982-1374.60083419821
209272993813.187968747-1084.18796874694
219219493825.3453619754-1631.34536197544
228966491149.4255624963-1485.42556249633
238628588335.039430552-2050.03943055202
248685889189.892897566-2331.89289756594
258718490339.2305755184-3155.23057551842
268662989891.9097734349-3262.90977343490
278522088392.429572914-3172.42957291401
288481687453.6424383653-2637.64243836529
298483187492.039430552-2661.03943055202
308495786833.7730980868-1876.77309808683
319095192568.734501733-1617.73450173302
329213493261.5889713514-1127.58897135136
339179092354.4147022539-564.414702253901
348662586736.6335833317-111.633583331701
358332483002.9157890614321.08421093857
368271981835.2395989582883.760401041769
378361484455.5079366322-841.507936632245
388164082353.390142362-713.390142361991
397866579566.8456145848-901.845614584762
407782878628.058480036-800.058480036032
417572876092.32681771-364.326817710067
427218773227.6644956626-1040.66449566256
437935780617.4228914955-1260.42289149548
448132982045.7426909746-716.742690974601
457730478012.8407699689-708.840769968862
467557675520.78730295555.2126970450593
477293272706.4011710106225.598828989367
487429173928.987302955362.012697045059
497498876365.3893081638-1377.38930816376
507330274814.8705112891-1512.87051128909
517048372396.0586484422-1913.05864844224
526984872008.8705112891-2160.87051128909
536646668369.940854172-1903.94085417197
546761069366.4715138935-1756.47151389351
557509175653.0319149353-562.03191493528
567620776345.8863845536-138.886384553624
577345473600.0487908042-146.048790804236
587200871659.5943211859348.405678814108
597136271235.4705112891126.529488710910
607425074296.7199678853-46.7199678853268

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 90398 & 84639.3742690975 & 5758.62573090246 \tabularnewline
2 & 90269 & 84559.7861319443 & 5709.21386805568 \tabularnewline
3 & 90390 & 83795.7712612842 & 6594.2287387158 \tabularnewline
4 & 88219 & 81937.6524644095 & 6281.3475355905 \tabularnewline
5 & 87032 & 80872.8514618051 & 6159.14853819492 \tabularnewline
6 & 87175 & 81317.783124131 & 5857.21687586895 \tabularnewline
7 & 92603 & 87788.209857638 & 4814.79014236200 \tabularnewline
8 & 93571 & 90503.5939843735 & 3067.40601562653 \tabularnewline
9 & 94118 & 91067.3503749975 & 3050.64962500245 \tabularnewline
10 & 92159 & 90965.5592300311 & 1193.44076996886 \tabularnewline
11 & 89528 & 88151.1730980868 & 1376.82690191317 \tabularnewline
12 & 89955 & 88822.1602326356 & 1132.83976736444 \tabularnewline
13 & 89587 & 89971.497910588 & -384.49791058803 \tabularnewline
14 & 89488 & 89708.0434409697 & -220.043440969703 \tabularnewline
15 & 88521 & 89127.8949027748 & -606.894902774786 \tabularnewline
16 & 86587 & 87269.7761059001 & -682.776105900093 \tabularnewline
17 & 85159 & 86388.8414357609 & -1229.84143576086 \tabularnewline
18 & 84915 & 86098.307768226 & -1183.30776822606 \tabularnewline
19 & 91378 & 92752.6008341982 & -1374.60083419821 \tabularnewline
20 & 92729 & 93813.187968747 & -1084.18796874694 \tabularnewline
21 & 92194 & 93825.3453619754 & -1631.34536197544 \tabularnewline
22 & 89664 & 91149.4255624963 & -1485.42556249633 \tabularnewline
23 & 86285 & 88335.039430552 & -2050.03943055202 \tabularnewline
24 & 86858 & 89189.892897566 & -2331.89289756594 \tabularnewline
25 & 87184 & 90339.2305755184 & -3155.23057551842 \tabularnewline
26 & 86629 & 89891.9097734349 & -3262.90977343490 \tabularnewline
27 & 85220 & 88392.429572914 & -3172.42957291401 \tabularnewline
28 & 84816 & 87453.6424383653 & -2637.64243836529 \tabularnewline
29 & 84831 & 87492.039430552 & -2661.03943055202 \tabularnewline
30 & 84957 & 86833.7730980868 & -1876.77309808683 \tabularnewline
31 & 90951 & 92568.734501733 & -1617.73450173302 \tabularnewline
32 & 92134 & 93261.5889713514 & -1127.58897135136 \tabularnewline
33 & 91790 & 92354.4147022539 & -564.414702253901 \tabularnewline
34 & 86625 & 86736.6335833317 & -111.633583331701 \tabularnewline
35 & 83324 & 83002.9157890614 & 321.08421093857 \tabularnewline
36 & 82719 & 81835.2395989582 & 883.760401041769 \tabularnewline
37 & 83614 & 84455.5079366322 & -841.507936632245 \tabularnewline
38 & 81640 & 82353.390142362 & -713.390142361991 \tabularnewline
39 & 78665 & 79566.8456145848 & -901.845614584762 \tabularnewline
40 & 77828 & 78628.058480036 & -800.058480036032 \tabularnewline
41 & 75728 & 76092.32681771 & -364.326817710067 \tabularnewline
42 & 72187 & 73227.6644956626 & -1040.66449566256 \tabularnewline
43 & 79357 & 80617.4228914955 & -1260.42289149548 \tabularnewline
44 & 81329 & 82045.7426909746 & -716.742690974601 \tabularnewline
45 & 77304 & 78012.8407699689 & -708.840769968862 \tabularnewline
46 & 75576 & 75520.787302955 & 55.2126970450593 \tabularnewline
47 & 72932 & 72706.4011710106 & 225.598828989367 \tabularnewline
48 & 74291 & 73928.987302955 & 362.012697045059 \tabularnewline
49 & 74988 & 76365.3893081638 & -1377.38930816376 \tabularnewline
50 & 73302 & 74814.8705112891 & -1512.87051128909 \tabularnewline
51 & 70483 & 72396.0586484422 & -1913.05864844224 \tabularnewline
52 & 69848 & 72008.8705112891 & -2160.87051128909 \tabularnewline
53 & 66466 & 68369.940854172 & -1903.94085417197 \tabularnewline
54 & 67610 & 69366.4715138935 & -1756.47151389351 \tabularnewline
55 & 75091 & 75653.0319149353 & -562.03191493528 \tabularnewline
56 & 76207 & 76345.8863845536 & -138.886384553624 \tabularnewline
57 & 73454 & 73600.0487908042 & -146.048790804236 \tabularnewline
58 & 72008 & 71659.5943211859 & 348.405678814108 \tabularnewline
59 & 71362 & 71235.4705112891 & 126.529488710910 \tabularnewline
60 & 74250 & 74296.7199678853 & -46.7199678853268 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57585&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]90398[/C][C]84639.3742690975[/C][C]5758.62573090246[/C][/ROW]
[ROW][C]2[/C][C]90269[/C][C]84559.7861319443[/C][C]5709.21386805568[/C][/ROW]
[ROW][C]3[/C][C]90390[/C][C]83795.7712612842[/C][C]6594.2287387158[/C][/ROW]
[ROW][C]4[/C][C]88219[/C][C]81937.6524644095[/C][C]6281.3475355905[/C][/ROW]
[ROW][C]5[/C][C]87032[/C][C]80872.8514618051[/C][C]6159.14853819492[/C][/ROW]
[ROW][C]6[/C][C]87175[/C][C]81317.783124131[/C][C]5857.21687586895[/C][/ROW]
[ROW][C]7[/C][C]92603[/C][C]87788.209857638[/C][C]4814.79014236200[/C][/ROW]
[ROW][C]8[/C][C]93571[/C][C]90503.5939843735[/C][C]3067.40601562653[/C][/ROW]
[ROW][C]9[/C][C]94118[/C][C]91067.3503749975[/C][C]3050.64962500245[/C][/ROW]
[ROW][C]10[/C][C]92159[/C][C]90965.5592300311[/C][C]1193.44076996886[/C][/ROW]
[ROW][C]11[/C][C]89528[/C][C]88151.1730980868[/C][C]1376.82690191317[/C][/ROW]
[ROW][C]12[/C][C]89955[/C][C]88822.1602326356[/C][C]1132.83976736444[/C][/ROW]
[ROW][C]13[/C][C]89587[/C][C]89971.497910588[/C][C]-384.49791058803[/C][/ROW]
[ROW][C]14[/C][C]89488[/C][C]89708.0434409697[/C][C]-220.043440969703[/C][/ROW]
[ROW][C]15[/C][C]88521[/C][C]89127.8949027748[/C][C]-606.894902774786[/C][/ROW]
[ROW][C]16[/C][C]86587[/C][C]87269.7761059001[/C][C]-682.776105900093[/C][/ROW]
[ROW][C]17[/C][C]85159[/C][C]86388.8414357609[/C][C]-1229.84143576086[/C][/ROW]
[ROW][C]18[/C][C]84915[/C][C]86098.307768226[/C][C]-1183.30776822606[/C][/ROW]
[ROW][C]19[/C][C]91378[/C][C]92752.6008341982[/C][C]-1374.60083419821[/C][/ROW]
[ROW][C]20[/C][C]92729[/C][C]93813.187968747[/C][C]-1084.18796874694[/C][/ROW]
[ROW][C]21[/C][C]92194[/C][C]93825.3453619754[/C][C]-1631.34536197544[/C][/ROW]
[ROW][C]22[/C][C]89664[/C][C]91149.4255624963[/C][C]-1485.42556249633[/C][/ROW]
[ROW][C]23[/C][C]86285[/C][C]88335.039430552[/C][C]-2050.03943055202[/C][/ROW]
[ROW][C]24[/C][C]86858[/C][C]89189.892897566[/C][C]-2331.89289756594[/C][/ROW]
[ROW][C]25[/C][C]87184[/C][C]90339.2305755184[/C][C]-3155.23057551842[/C][/ROW]
[ROW][C]26[/C][C]86629[/C][C]89891.9097734349[/C][C]-3262.90977343490[/C][/ROW]
[ROW][C]27[/C][C]85220[/C][C]88392.429572914[/C][C]-3172.42957291401[/C][/ROW]
[ROW][C]28[/C][C]84816[/C][C]87453.6424383653[/C][C]-2637.64243836529[/C][/ROW]
[ROW][C]29[/C][C]84831[/C][C]87492.039430552[/C][C]-2661.03943055202[/C][/ROW]
[ROW][C]30[/C][C]84957[/C][C]86833.7730980868[/C][C]-1876.77309808683[/C][/ROW]
[ROW][C]31[/C][C]90951[/C][C]92568.734501733[/C][C]-1617.73450173302[/C][/ROW]
[ROW][C]32[/C][C]92134[/C][C]93261.5889713514[/C][C]-1127.58897135136[/C][/ROW]
[ROW][C]33[/C][C]91790[/C][C]92354.4147022539[/C][C]-564.414702253901[/C][/ROW]
[ROW][C]34[/C][C]86625[/C][C]86736.6335833317[/C][C]-111.633583331701[/C][/ROW]
[ROW][C]35[/C][C]83324[/C][C]83002.9157890614[/C][C]321.08421093857[/C][/ROW]
[ROW][C]36[/C][C]82719[/C][C]81835.2395989582[/C][C]883.760401041769[/C][/ROW]
[ROW][C]37[/C][C]83614[/C][C]84455.5079366322[/C][C]-841.507936632245[/C][/ROW]
[ROW][C]38[/C][C]81640[/C][C]82353.390142362[/C][C]-713.390142361991[/C][/ROW]
[ROW][C]39[/C][C]78665[/C][C]79566.8456145848[/C][C]-901.845614584762[/C][/ROW]
[ROW][C]40[/C][C]77828[/C][C]78628.058480036[/C][C]-800.058480036032[/C][/ROW]
[ROW][C]41[/C][C]75728[/C][C]76092.32681771[/C][C]-364.326817710067[/C][/ROW]
[ROW][C]42[/C][C]72187[/C][C]73227.6644956626[/C][C]-1040.66449566256[/C][/ROW]
[ROW][C]43[/C][C]79357[/C][C]80617.4228914955[/C][C]-1260.42289149548[/C][/ROW]
[ROW][C]44[/C][C]81329[/C][C]82045.7426909746[/C][C]-716.742690974601[/C][/ROW]
[ROW][C]45[/C][C]77304[/C][C]78012.8407699689[/C][C]-708.840769968862[/C][/ROW]
[ROW][C]46[/C][C]75576[/C][C]75520.787302955[/C][C]55.2126970450593[/C][/ROW]
[ROW][C]47[/C][C]72932[/C][C]72706.4011710106[/C][C]225.598828989367[/C][/ROW]
[ROW][C]48[/C][C]74291[/C][C]73928.987302955[/C][C]362.012697045059[/C][/ROW]
[ROW][C]49[/C][C]74988[/C][C]76365.3893081638[/C][C]-1377.38930816376[/C][/ROW]
[ROW][C]50[/C][C]73302[/C][C]74814.8705112891[/C][C]-1512.87051128909[/C][/ROW]
[ROW][C]51[/C][C]70483[/C][C]72396.0586484422[/C][C]-1913.05864844224[/C][/ROW]
[ROW][C]52[/C][C]69848[/C][C]72008.8705112891[/C][C]-2160.87051128909[/C][/ROW]
[ROW][C]53[/C][C]66466[/C][C]68369.940854172[/C][C]-1903.94085417197[/C][/ROW]
[ROW][C]54[/C][C]67610[/C][C]69366.4715138935[/C][C]-1756.47151389351[/C][/ROW]
[ROW][C]55[/C][C]75091[/C][C]75653.0319149353[/C][C]-562.03191493528[/C][/ROW]
[ROW][C]56[/C][C]76207[/C][C]76345.8863845536[/C][C]-138.886384553624[/C][/ROW]
[ROW][C]57[/C][C]73454[/C][C]73600.0487908042[/C][C]-146.048790804236[/C][/ROW]
[ROW][C]58[/C][C]72008[/C][C]71659.5943211859[/C][C]348.405678814108[/C][/ROW]
[ROW][C]59[/C][C]71362[/C][C]71235.4705112891[/C][C]126.529488710910[/C][/ROW]
[ROW][C]60[/C][C]74250[/C][C]74296.7199678853[/C][C]-46.7199678853268[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57585&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57585&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
19039884639.37426909755758.62573090246
29026984559.78613194435709.21386805568
39039083795.77126128426594.2287387158
48821981937.65246440956281.3475355905
58703280872.85146180516159.14853819492
68717581317.7831241315857.21687586895
79260387788.2098576384814.79014236200
89357190503.59398437353067.40601562653
99411891067.35037499753050.64962500245
109215990965.55923003111193.44076996886
118952888151.17309808681376.82690191317
128995588822.16023263561132.83976736444
138958789971.497910588-384.49791058803
148948889708.0434409697-220.043440969703
158852189127.8949027748-606.894902774786
168658787269.7761059001-682.776105900093
178515986388.8414357609-1229.84143576086
188491586098.307768226-1183.30776822606
199137892752.6008341982-1374.60083419821
209272993813.187968747-1084.18796874694
219219493825.3453619754-1631.34536197544
228966491149.4255624963-1485.42556249633
238628588335.039430552-2050.03943055202
248685889189.892897566-2331.89289756594
258718490339.2305755184-3155.23057551842
268662989891.9097734349-3262.90977343490
278522088392.429572914-3172.42957291401
288481687453.6424383653-2637.64243836529
298483187492.039430552-2661.03943055202
308495786833.7730980868-1876.77309808683
319095192568.734501733-1617.73450173302
329213493261.5889713514-1127.58897135136
339179092354.4147022539-564.414702253901
348662586736.6335833317-111.633583331701
358332483002.9157890614321.08421093857
368271981835.2395989582883.760401041769
378361484455.5079366322-841.507936632245
388164082353.390142362-713.390142361991
397866579566.8456145848-901.845614584762
407782878628.058480036-800.058480036032
417572876092.32681771-364.326817710067
427218773227.6644956626-1040.66449566256
437935780617.4228914955-1260.42289149548
448132982045.7426909746-716.742690974601
457730478012.8407699689-708.840769968862
467557675520.78730295555.2126970450593
477293272706.4011710106225.598828989367
487429173928.987302955362.012697045059
497498876365.3893081638-1377.38930816376
507330274814.8705112891-1512.87051128909
517048372396.0586484422-1913.05864844224
526984872008.8705112891-2160.87051128909
536646668369.940854172-1903.94085417197
546761069366.4715138935-1756.47151389351
557509175653.0319149353-562.03191493528
567620776345.8863845536-138.886384553624
577345473600.0487908042-146.048790804236
587200871659.5943211859348.405678814108
597136271235.4705112891126.529488710910
607425074296.7199678853-46.7199678853268







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1313980662333270.2627961324666530.868601933766673
170.07845247358441080.1569049471688220.921547526415589
180.1053512484555180.2107024969110350.894648751544482
190.0529028869943510.1058057739887020.94709711300565
200.0236860692320980.0473721384641960.976313930767902
210.04250234091727390.08500468183454770.957497659082726
220.3339497086078580.6678994172157160.666050291392142
230.7969401046015330.4061197907969350.203059895398467
240.9623289562328640.07534208753427280.0376710437671364
250.9831160408919410.03376791821611720.0168839591080586
260.9962742527047320.007451494590536650.00372574729526832
270.9996871389828580.000625722034283540.00031286101714177
280.9996673882721310.0006652234557377060.000332611727868853
290.9998035877337170.0003928245325665220.000196412266283261
300.9995784542833960.0008430914332074040.000421545716603702
310.9993799406153180.001240118769364550.000620059384682276
320.999336309905780.001327380188440490.000663690094220245
330.999134058228390.001731883543220950.000865941771610474
340.9999619703107987.60593784031995e-053.80296892015998e-05
350.9999888135214172.23729571668393e-051.11864785834197e-05
360.999990673956641.86520867192285e-059.32604335961424e-06
370.9999833361781723.33276436558205e-051.66638218279103e-05
380.999971870725495.62585490195347e-052.81292745097674e-05
390.9999544659477759.10681044495212e-054.55340522247606e-05
400.9999331849755650.0001336300488696886.6815024434844e-05
410.999989146157012.17076859795375e-051.08538429897688e-05
420.9999988889185172.2221629659937e-061.11108148299685e-06
430.9999840407752143.19184495716426e-051.59592247858213e-05
440.9996871764935190.0006256470129627820.000312823506481391

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.131398066233327 & 0.262796132466653 & 0.868601933766673 \tabularnewline
17 & 0.0784524735844108 & 0.156904947168822 & 0.921547526415589 \tabularnewline
18 & 0.105351248455518 & 0.210702496911035 & 0.894648751544482 \tabularnewline
19 & 0.052902886994351 & 0.105805773988702 & 0.94709711300565 \tabularnewline
20 & 0.023686069232098 & 0.047372138464196 & 0.976313930767902 \tabularnewline
21 & 0.0425023409172739 & 0.0850046818345477 & 0.957497659082726 \tabularnewline
22 & 0.333949708607858 & 0.667899417215716 & 0.666050291392142 \tabularnewline
23 & 0.796940104601533 & 0.406119790796935 & 0.203059895398467 \tabularnewline
24 & 0.962328956232864 & 0.0753420875342728 & 0.0376710437671364 \tabularnewline
25 & 0.983116040891941 & 0.0337679182161172 & 0.0168839591080586 \tabularnewline
26 & 0.996274252704732 & 0.00745149459053665 & 0.00372574729526832 \tabularnewline
27 & 0.999687138982858 & 0.00062572203428354 & 0.00031286101714177 \tabularnewline
28 & 0.999667388272131 & 0.000665223455737706 & 0.000332611727868853 \tabularnewline
29 & 0.999803587733717 & 0.000392824532566522 & 0.000196412266283261 \tabularnewline
30 & 0.999578454283396 & 0.000843091433207404 & 0.000421545716603702 \tabularnewline
31 & 0.999379940615318 & 0.00124011876936455 & 0.000620059384682276 \tabularnewline
32 & 0.99933630990578 & 0.00132738018844049 & 0.000663690094220245 \tabularnewline
33 & 0.99913405822839 & 0.00173188354322095 & 0.000865941771610474 \tabularnewline
34 & 0.999961970310798 & 7.60593784031995e-05 & 3.80296892015998e-05 \tabularnewline
35 & 0.999988813521417 & 2.23729571668393e-05 & 1.11864785834197e-05 \tabularnewline
36 & 0.99999067395664 & 1.86520867192285e-05 & 9.32604335961424e-06 \tabularnewline
37 & 0.999983336178172 & 3.33276436558205e-05 & 1.66638218279103e-05 \tabularnewline
38 & 0.99997187072549 & 5.62585490195347e-05 & 2.81292745097674e-05 \tabularnewline
39 & 0.999954465947775 & 9.10681044495212e-05 & 4.55340522247606e-05 \tabularnewline
40 & 0.999933184975565 & 0.000133630048869688 & 6.6815024434844e-05 \tabularnewline
41 & 0.99998914615701 & 2.17076859795375e-05 & 1.08538429897688e-05 \tabularnewline
42 & 0.999998888918517 & 2.2221629659937e-06 & 1.11108148299685e-06 \tabularnewline
43 & 0.999984040775214 & 3.19184495716426e-05 & 1.59592247858213e-05 \tabularnewline
44 & 0.999687176493519 & 0.000625647012962782 & 0.000312823506481391 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57585&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.131398066233327[/C][C]0.262796132466653[/C][C]0.868601933766673[/C][/ROW]
[ROW][C]17[/C][C]0.0784524735844108[/C][C]0.156904947168822[/C][C]0.921547526415589[/C][/ROW]
[ROW][C]18[/C][C]0.105351248455518[/C][C]0.210702496911035[/C][C]0.894648751544482[/C][/ROW]
[ROW][C]19[/C][C]0.052902886994351[/C][C]0.105805773988702[/C][C]0.94709711300565[/C][/ROW]
[ROW][C]20[/C][C]0.023686069232098[/C][C]0.047372138464196[/C][C]0.976313930767902[/C][/ROW]
[ROW][C]21[/C][C]0.0425023409172739[/C][C]0.0850046818345477[/C][C]0.957497659082726[/C][/ROW]
[ROW][C]22[/C][C]0.333949708607858[/C][C]0.667899417215716[/C][C]0.666050291392142[/C][/ROW]
[ROW][C]23[/C][C]0.796940104601533[/C][C]0.406119790796935[/C][C]0.203059895398467[/C][/ROW]
[ROW][C]24[/C][C]0.962328956232864[/C][C]0.0753420875342728[/C][C]0.0376710437671364[/C][/ROW]
[ROW][C]25[/C][C]0.983116040891941[/C][C]0.0337679182161172[/C][C]0.0168839591080586[/C][/ROW]
[ROW][C]26[/C][C]0.996274252704732[/C][C]0.00745149459053665[/C][C]0.00372574729526832[/C][/ROW]
[ROW][C]27[/C][C]0.999687138982858[/C][C]0.00062572203428354[/C][C]0.00031286101714177[/C][/ROW]
[ROW][C]28[/C][C]0.999667388272131[/C][C]0.000665223455737706[/C][C]0.000332611727868853[/C][/ROW]
[ROW][C]29[/C][C]0.999803587733717[/C][C]0.000392824532566522[/C][C]0.000196412266283261[/C][/ROW]
[ROW][C]30[/C][C]0.999578454283396[/C][C]0.000843091433207404[/C][C]0.000421545716603702[/C][/ROW]
[ROW][C]31[/C][C]0.999379940615318[/C][C]0.00124011876936455[/C][C]0.000620059384682276[/C][/ROW]
[ROW][C]32[/C][C]0.99933630990578[/C][C]0.00132738018844049[/C][C]0.000663690094220245[/C][/ROW]
[ROW][C]33[/C][C]0.99913405822839[/C][C]0.00173188354322095[/C][C]0.000865941771610474[/C][/ROW]
[ROW][C]34[/C][C]0.999961970310798[/C][C]7.60593784031995e-05[/C][C]3.80296892015998e-05[/C][/ROW]
[ROW][C]35[/C][C]0.999988813521417[/C][C]2.23729571668393e-05[/C][C]1.11864785834197e-05[/C][/ROW]
[ROW][C]36[/C][C]0.99999067395664[/C][C]1.86520867192285e-05[/C][C]9.32604335961424e-06[/C][/ROW]
[ROW][C]37[/C][C]0.999983336178172[/C][C]3.33276436558205e-05[/C][C]1.66638218279103e-05[/C][/ROW]
[ROW][C]38[/C][C]0.99997187072549[/C][C]5.62585490195347e-05[/C][C]2.81292745097674e-05[/C][/ROW]
[ROW][C]39[/C][C]0.999954465947775[/C][C]9.10681044495212e-05[/C][C]4.55340522247606e-05[/C][/ROW]
[ROW][C]40[/C][C]0.999933184975565[/C][C]0.000133630048869688[/C][C]6.6815024434844e-05[/C][/ROW]
[ROW][C]41[/C][C]0.99998914615701[/C][C]2.17076859795375e-05[/C][C]1.08538429897688e-05[/C][/ROW]
[ROW][C]42[/C][C]0.999998888918517[/C][C]2.2221629659937e-06[/C][C]1.11108148299685e-06[/C][/ROW]
[ROW][C]43[/C][C]0.999984040775214[/C][C]3.19184495716426e-05[/C][C]1.59592247858213e-05[/C][/ROW]
[ROW][C]44[/C][C]0.999687176493519[/C][C]0.000625647012962782[/C][C]0.000312823506481391[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57585&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57585&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.1313980662333270.2627961324666530.868601933766673
170.07845247358441080.1569049471688220.921547526415589
180.1053512484555180.2107024969110350.894648751544482
190.0529028869943510.1058057739887020.94709711300565
200.0236860692320980.0473721384641960.976313930767902
210.04250234091727390.08500468183454770.957497659082726
220.3339497086078580.6678994172157160.666050291392142
230.7969401046015330.4061197907969350.203059895398467
240.9623289562328640.07534208753427280.0376710437671364
250.9831160408919410.03376791821611720.0168839591080586
260.9962742527047320.007451494590536650.00372574729526832
270.9996871389828580.000625722034283540.00031286101714177
280.9996673882721310.0006652234557377060.000332611727868853
290.9998035877337170.0003928245325665220.000196412266283261
300.9995784542833960.0008430914332074040.000421545716603702
310.9993799406153180.001240118769364550.000620059384682276
320.999336309905780.001327380188440490.000663690094220245
330.999134058228390.001731883543220950.000865941771610474
340.9999619703107987.60593784031995e-053.80296892015998e-05
350.9999888135214172.23729571668393e-051.11864785834197e-05
360.999990673956641.86520867192285e-059.32604335961424e-06
370.9999833361781723.33276436558205e-051.66638218279103e-05
380.999971870725495.62585490195347e-052.81292745097674e-05
390.9999544659477759.10681044495212e-054.55340522247606e-05
400.9999331849755650.0001336300488696886.6815024434844e-05
410.999989146157012.17076859795375e-051.08538429897688e-05
420.9999988889185172.2221629659937e-061.11108148299685e-06
430.9999840407752143.19184495716426e-051.59592247858213e-05
440.9996871764935190.0006256470129627820.000312823506481391







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level190.655172413793103NOK
5% type I error level210.724137931034483NOK
10% type I error level230.793103448275862NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57585&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 level190.655172413793103NOK
5% type I error level210.724137931034483NOK
10% type I error level230.793103448275862NOK



Parameters (Session):
par1 = 2 ; 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')
}