Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 15 Dec 2008 01:26:03 -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/2008/Dec/15/t12293296352x2gtu23zm3gf45.htm/, Retrieved Wed, 15 May 2024 23:37:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=33616, Retrieved Wed, 15 May 2024 23:37:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact193
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Dow Jones and Dummy] [2008-12-13 13:10:09] [a1024b375232228f065c2de1e1d1e03d]
-   PD    [Multiple Regression] [DowJones met tren...] [2008-12-15 08:26:03] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
10540.05	0	1	0
10601.61	0	2	0
10323.73	0	3	0
10418.4	0	4	0
10092.96	0	5	0
10364.91	0	6	0
10152.09	0	7	0
10032.8	0	8	0
10204.59	0	9	0
10001.6	0	10	0
10411.75	0	11	0
10673.38	0	12	0
10539.51	0	13	0
10723.78	0	14	0
10682.06	0	15	0
10283.19	0	16	0
10377.18	0	17	0
10486.64	0	18	0
10545.38	0	19	0
10554.27	0	20	0
10532.54	0	21	0
10324.31	0	22	0
10695.25	0	23	0
10827.81	0	24	0
10872.48	0	25	0
10971.19	0	26	0
11145.65	0	27	0
11234.68	0	28	0
11333.88	0	29	0
10997.97	0	30	0
11036.89	0	31	0
11257.35	0	32	0
11533.59	0	33	0
11963.12	0	34	0
12185.15	0	35	0
12377.62	0	36	0
12512.89	0	37	0
12631.48	0	38	0
12268.53	0	39	0
12754.8	1	40	40
13407.75	1	41	41
13480.21	1	42	42
13673.28	1	43	43
13239.71	1	44	44
13557.69	1	45	45
13901.28	1	46	46
13200.58	1	47	47
13406.97	1	48	48
12538.12	1	49	49
12419.57	1	50	50
12193.88	1	51	51
12656.63	1	52	52
12812.48	1	53	53
12056.67	1	54	54
11322.38	1	55	55
11530.75	1	56	56
11114.08	1	57	57
9181.73	1	58	58
8614.55	1	59	59




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=33616&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=33616&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33616&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
DowJones[t] = + 10136.6554994998 + 12188.4723831642Dummy[t] + 53.4215031442048Trend[t] -247.081140801415Dumtrend[t] -87.8823748838845M1[t] -22.9716498678022M2[t] -173.732924851722M3[t] -492.013550057167M4[t] -311.292596880806M5[t] -393.451643704445M6[t] -479.316690528083M7[t] -456.933737351722M8[t] -346.000784175360M9[t] -614.679830998999M10[t] -622.220877822638M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
DowJones[t] =  +  10136.6554994998 +  12188.4723831642Dummy[t] +  53.4215031442048Trend[t] -247.081140801415Dumtrend[t] -87.8823748838845M1[t] -22.9716498678022M2[t] -173.732924851722M3[t] -492.013550057167M4[t] -311.292596880806M5[t] -393.451643704445M6[t] -479.316690528083M7[t] -456.933737351722M8[t] -346.000784175360M9[t] -614.679830998999M10[t] -622.220877822638M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33616&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]DowJones[t] =  +  10136.6554994998 +  12188.4723831642Dummy[t] +  53.4215031442048Trend[t] -247.081140801415Dumtrend[t] -87.8823748838845M1[t] -22.9716498678022M2[t] -173.732924851722M3[t] -492.013550057167M4[t] -311.292596880806M5[t] -393.451643704445M6[t] -479.316690528083M7[t] -456.933737351722M8[t] -346.000784175360M9[t] -614.679830998999M10[t] -622.220877822638M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33616&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33616&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
DowJones[t] = + 10136.6554994998 + 12188.4723831642Dummy[t] + 53.4215031442048Trend[t] -247.081140801415Dumtrend[t] -87.8823748838845M1[t] -22.9716498678022M2[t] -173.732924851722M3[t] -492.013550057167M4[t] -311.292596880806M5[t] -393.451643704445M6[t] -479.316690528083M7[t] -456.933737351722M8[t] -346.000784175360M9[t] -614.679830998999M10[t] -622.220877822638M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)10136.6554994998359.96026428.160500
Dummy12188.47238316421195.72108110.193400
Trend53.42150314420488.59396.216200
Dumtrend-247.08114080141525.045887-9.865100
M1-87.8823748838845401.465428-0.21890.8277370.413869
M2-22.9716498678022401.066194-0.05730.9545840.477292
M3-173.732924851722400.845305-0.43340.666830.333415
M4-492.013550057167404.30834-1.21690.2301190.11506
M5-311.292596880806403.249327-0.7720.4442640.222132
M6-393.451643704445402.484769-0.97760.3336380.166819
M7-479.316690528083402.016348-1.19230.2395420.119771
M8-456.933737351722401.845098-1.13710.2616560.130828
M9-346.000784175360401.9714-0.86080.3940370.197018
M10-614.679830998999402.394972-1.52760.1337810.06689
M11-622.220877822638403.114879-1.54350.1298640.064932

\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) & 10136.6554994998 & 359.960264 & 28.1605 & 0 & 0 \tabularnewline
Dummy & 12188.4723831642 & 1195.721081 & 10.1934 & 0 & 0 \tabularnewline
Trend & 53.4215031442048 & 8.5939 & 6.2162 & 0 & 0 \tabularnewline
Dumtrend & -247.081140801415 & 25.045887 & -9.8651 & 0 & 0 \tabularnewline
M1 & -87.8823748838845 & 401.465428 & -0.2189 & 0.827737 & 0.413869 \tabularnewline
M2 & -22.9716498678022 & 401.066194 & -0.0573 & 0.954584 & 0.477292 \tabularnewline
M3 & -173.732924851722 & 400.845305 & -0.4334 & 0.66683 & 0.333415 \tabularnewline
M4 & -492.013550057167 & 404.30834 & -1.2169 & 0.230119 & 0.11506 \tabularnewline
M5 & -311.292596880806 & 403.249327 & -0.772 & 0.444264 & 0.222132 \tabularnewline
M6 & -393.451643704445 & 402.484769 & -0.9776 & 0.333638 & 0.166819 \tabularnewline
M7 & -479.316690528083 & 402.016348 & -1.1923 & 0.239542 & 0.119771 \tabularnewline
M8 & -456.933737351722 & 401.845098 & -1.1371 & 0.261656 & 0.130828 \tabularnewline
M9 & -346.000784175360 & 401.9714 & -0.8608 & 0.394037 & 0.197018 \tabularnewline
M10 & -614.679830998999 & 402.394972 & -1.5276 & 0.133781 & 0.06689 \tabularnewline
M11 & -622.220877822638 & 403.114879 & -1.5435 & 0.129864 & 0.064932 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33616&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]10136.6554994998[/C][C]359.960264[/C][C]28.1605[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]12188.4723831642[/C][C]1195.721081[/C][C]10.1934[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Trend[/C][C]53.4215031442048[/C][C]8.5939[/C][C]6.2162[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dumtrend[/C][C]-247.081140801415[/C][C]25.045887[/C][C]-9.8651[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-87.8823748838845[/C][C]401.465428[/C][C]-0.2189[/C][C]0.827737[/C][C]0.413869[/C][/ROW]
[ROW][C]M2[/C][C]-22.9716498678022[/C][C]401.066194[/C][C]-0.0573[/C][C]0.954584[/C][C]0.477292[/C][/ROW]
[ROW][C]M3[/C][C]-173.732924851722[/C][C]400.845305[/C][C]-0.4334[/C][C]0.66683[/C][C]0.333415[/C][/ROW]
[ROW][C]M4[/C][C]-492.013550057167[/C][C]404.30834[/C][C]-1.2169[/C][C]0.230119[/C][C]0.11506[/C][/ROW]
[ROW][C]M5[/C][C]-311.292596880806[/C][C]403.249327[/C][C]-0.772[/C][C]0.444264[/C][C]0.222132[/C][/ROW]
[ROW][C]M6[/C][C]-393.451643704445[/C][C]402.484769[/C][C]-0.9776[/C][C]0.333638[/C][C]0.166819[/C][/ROW]
[ROW][C]M7[/C][C]-479.316690528083[/C][C]402.016348[/C][C]-1.1923[/C][C]0.239542[/C][C]0.119771[/C][/ROW]
[ROW][C]M8[/C][C]-456.933737351722[/C][C]401.845098[/C][C]-1.1371[/C][C]0.261656[/C][C]0.130828[/C][/ROW]
[ROW][C]M9[/C][C]-346.000784175360[/C][C]401.9714[/C][C]-0.8608[/C][C]0.394037[/C][C]0.197018[/C][/ROW]
[ROW][C]M10[/C][C]-614.679830998999[/C][C]402.394972[/C][C]-1.5276[/C][C]0.133781[/C][C]0.06689[/C][/ROW]
[ROW][C]M11[/C][C]-622.220877822638[/C][C]403.114879[/C][C]-1.5435[/C][C]0.129864[/C][C]0.064932[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33616&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33616&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)10136.6554994998359.96026428.160500
Dummy12188.47238316421195.72108110.193400
Trend53.42150314420488.59396.216200
Dumtrend-247.08114080141525.045887-9.865100
M1-87.8823748838845401.465428-0.21890.8277370.413869
M2-22.9716498678022401.066194-0.05730.9545840.477292
M3-173.732924851722400.845305-0.43340.666830.333415
M4-492.013550057167404.30834-1.21690.2301190.11506
M5-311.292596880806403.249327-0.7720.4442640.222132
M6-393.451643704445402.484769-0.97760.3336380.166819
M7-479.316690528083402.016348-1.19230.2395420.119771
M8-456.933737351722401.845098-1.13710.2616560.130828
M9-346.000784175360401.9714-0.86080.3940370.197018
M10-614.679830998999402.394972-1.52760.1337810.06689
M11-622.220877822638403.114879-1.54350.1298640.064932







Multiple Linear Regression - Regression Statistics
Multiple R0.905142613809715
R-squared0.819283151334283
Adjusted R-squared0.761782335849737
F-TEST (value)14.2482005590768
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value5.44542189118147e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation596.305472666329
Sum Squared Residuals15645529.5361998

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.905142613809715 \tabularnewline
R-squared & 0.819283151334283 \tabularnewline
Adjusted R-squared & 0.761782335849737 \tabularnewline
F-TEST (value) & 14.2482005590768 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 5.44542189118147e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 596.305472666329 \tabularnewline
Sum Squared Residuals & 15645529.5361998 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33616&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.905142613809715[/C][/ROW]
[ROW][C]R-squared[/C][C]0.819283151334283[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.761782335849737[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]14.2482005590768[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/C][/ROW]
[ROW][C]p-value[/C][C]5.44542189118147e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]596.305472666329[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15645529.5361998[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33616&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33616&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.905142613809715
R-squared0.819283151334283
Adjusted R-squared0.761782335849737
F-TEST (value)14.2482005590768
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value5.44542189118147e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation596.305472666329
Sum Squared Residuals15645529.5361998







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110540.0510102.1946277601437.855372239867
210601.6110220.5268559204381.0831440796
310323.7310123.1870840807200.542915919326
410418.49858.32796201943560.072037980566
510092.9610092.470418340.489581659998777
610364.9110063.7328746606301.177125339434
710152.0910031.2893309811120.800669018868
810032.810107.0937873017-74.2937873016994
910204.5910271.4482436223-66.8582436222653
1010001.610056.1906999428-54.5906999428304
1110411.7510102.0711562634309.678843736604
1210673.3810777.7135372302-104.33353723024
1310539.5110743.2526654906-203.74266549056
1410723.7810861.5848936508-137.804893650846
1510682.0610764.2451218111-82.1851218111327
1610283.1910499.3859997499-216.195999749892
1710377.1810733.5284560705-356.348456070457
1810486.6410704.7909123910-218.150912391024
1910545.3810672.3473687116-126.967368711591
2010554.2710748.1518250322-193.881825032156
2110532.5410912.5062813527-379.966281352722
2210324.3110697.2487376733-372.938737673289
2310695.2510743.1291939939-47.8791939938542
2410827.8111418.7715749607-590.961574960698
2510872.4811384.3107032210-511.830703221018
2610971.1911502.6429313813-531.452931381304
2711145.6511405.3031595416-259.653159541590
2811234.6811140.444037480494.2359625196504
2911333.8811374.5864938009-40.7064938009163
3010997.9711345.8489501215-347.878950121482
3111036.8911313.4054064420-276.515406442049
3211257.3511389.2098627626-131.859862762614
3311533.5911553.5643190832-19.9743190831807
3411963.1211338.3067754037624.813224596254
3512185.1511384.1872317243800.962768275687
3612377.6212059.8296126912317.790387308845
3712512.8912025.3687409515487.521259048524
3812631.4812143.7009691118487.779030888237
3912268.5312046.3611972720222.168802727953
4012754.814086.7288263184-1331.92882631842
4113407.7514073.7901418376-666.040141837574
4213480.2113797.9714573567-317.761457356726
4313673.2813518.4467728759154.833227124125
4413239.7113347.1700883950-107.460088395028
4513557.6913264.4434039142293.246596085822
4613901.2812802.10471943331099.17528056667
4713200.5812600.9040349525599.67596504752
4813406.9713029.4652751179377.504724882092
4912538.1212747.9232625768-209.803262576812
5012419.5712619.1743499357-199.604349935685
5112193.8812274.7534372946-80.8734372945555
5212656.6311762.8131744319893.8168255681
5312812.4811749.87448995111062.60551004895
5412056.6711474.0558054702582.614194529799
5511322.3811194.5311209894127.848879010647
5611530.7511023.2544365085507.495563491497
5711114.0810940.5277520277173.552247972345
589181.7310478.1890675468-1296.45906754681
598614.5510276.9883830660-1662.43838306596

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 10540.05 & 10102.1946277601 & 437.855372239867 \tabularnewline
2 & 10601.61 & 10220.5268559204 & 381.0831440796 \tabularnewline
3 & 10323.73 & 10123.1870840807 & 200.542915919326 \tabularnewline
4 & 10418.4 & 9858.32796201943 & 560.072037980566 \tabularnewline
5 & 10092.96 & 10092.47041834 & 0.489581659998777 \tabularnewline
6 & 10364.91 & 10063.7328746606 & 301.177125339434 \tabularnewline
7 & 10152.09 & 10031.2893309811 & 120.800669018868 \tabularnewline
8 & 10032.8 & 10107.0937873017 & -74.2937873016994 \tabularnewline
9 & 10204.59 & 10271.4482436223 & -66.8582436222653 \tabularnewline
10 & 10001.6 & 10056.1906999428 & -54.5906999428304 \tabularnewline
11 & 10411.75 & 10102.0711562634 & 309.678843736604 \tabularnewline
12 & 10673.38 & 10777.7135372302 & -104.33353723024 \tabularnewline
13 & 10539.51 & 10743.2526654906 & -203.74266549056 \tabularnewline
14 & 10723.78 & 10861.5848936508 & -137.804893650846 \tabularnewline
15 & 10682.06 & 10764.2451218111 & -82.1851218111327 \tabularnewline
16 & 10283.19 & 10499.3859997499 & -216.195999749892 \tabularnewline
17 & 10377.18 & 10733.5284560705 & -356.348456070457 \tabularnewline
18 & 10486.64 & 10704.7909123910 & -218.150912391024 \tabularnewline
19 & 10545.38 & 10672.3473687116 & -126.967368711591 \tabularnewline
20 & 10554.27 & 10748.1518250322 & -193.881825032156 \tabularnewline
21 & 10532.54 & 10912.5062813527 & -379.966281352722 \tabularnewline
22 & 10324.31 & 10697.2487376733 & -372.938737673289 \tabularnewline
23 & 10695.25 & 10743.1291939939 & -47.8791939938542 \tabularnewline
24 & 10827.81 & 11418.7715749607 & -590.961574960698 \tabularnewline
25 & 10872.48 & 11384.3107032210 & -511.830703221018 \tabularnewline
26 & 10971.19 & 11502.6429313813 & -531.452931381304 \tabularnewline
27 & 11145.65 & 11405.3031595416 & -259.653159541590 \tabularnewline
28 & 11234.68 & 11140.4440374804 & 94.2359625196504 \tabularnewline
29 & 11333.88 & 11374.5864938009 & -40.7064938009163 \tabularnewline
30 & 10997.97 & 11345.8489501215 & -347.878950121482 \tabularnewline
31 & 11036.89 & 11313.4054064420 & -276.515406442049 \tabularnewline
32 & 11257.35 & 11389.2098627626 & -131.859862762614 \tabularnewline
33 & 11533.59 & 11553.5643190832 & -19.9743190831807 \tabularnewline
34 & 11963.12 & 11338.3067754037 & 624.813224596254 \tabularnewline
35 & 12185.15 & 11384.1872317243 & 800.962768275687 \tabularnewline
36 & 12377.62 & 12059.8296126912 & 317.790387308845 \tabularnewline
37 & 12512.89 & 12025.3687409515 & 487.521259048524 \tabularnewline
38 & 12631.48 & 12143.7009691118 & 487.779030888237 \tabularnewline
39 & 12268.53 & 12046.3611972720 & 222.168802727953 \tabularnewline
40 & 12754.8 & 14086.7288263184 & -1331.92882631842 \tabularnewline
41 & 13407.75 & 14073.7901418376 & -666.040141837574 \tabularnewline
42 & 13480.21 & 13797.9714573567 & -317.761457356726 \tabularnewline
43 & 13673.28 & 13518.4467728759 & 154.833227124125 \tabularnewline
44 & 13239.71 & 13347.1700883950 & -107.460088395028 \tabularnewline
45 & 13557.69 & 13264.4434039142 & 293.246596085822 \tabularnewline
46 & 13901.28 & 12802.1047194333 & 1099.17528056667 \tabularnewline
47 & 13200.58 & 12600.9040349525 & 599.67596504752 \tabularnewline
48 & 13406.97 & 13029.4652751179 & 377.504724882092 \tabularnewline
49 & 12538.12 & 12747.9232625768 & -209.803262576812 \tabularnewline
50 & 12419.57 & 12619.1743499357 & -199.604349935685 \tabularnewline
51 & 12193.88 & 12274.7534372946 & -80.8734372945555 \tabularnewline
52 & 12656.63 & 11762.8131744319 & 893.8168255681 \tabularnewline
53 & 12812.48 & 11749.8744899511 & 1062.60551004895 \tabularnewline
54 & 12056.67 & 11474.0558054702 & 582.614194529799 \tabularnewline
55 & 11322.38 & 11194.5311209894 & 127.848879010647 \tabularnewline
56 & 11530.75 & 11023.2544365085 & 507.495563491497 \tabularnewline
57 & 11114.08 & 10940.5277520277 & 173.552247972345 \tabularnewline
58 & 9181.73 & 10478.1890675468 & -1296.45906754681 \tabularnewline
59 & 8614.55 & 10276.9883830660 & -1662.43838306596 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33616&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]10540.05[/C][C]10102.1946277601[/C][C]437.855372239867[/C][/ROW]
[ROW][C]2[/C][C]10601.61[/C][C]10220.5268559204[/C][C]381.0831440796[/C][/ROW]
[ROW][C]3[/C][C]10323.73[/C][C]10123.1870840807[/C][C]200.542915919326[/C][/ROW]
[ROW][C]4[/C][C]10418.4[/C][C]9858.32796201943[/C][C]560.072037980566[/C][/ROW]
[ROW][C]5[/C][C]10092.96[/C][C]10092.47041834[/C][C]0.489581659998777[/C][/ROW]
[ROW][C]6[/C][C]10364.91[/C][C]10063.7328746606[/C][C]301.177125339434[/C][/ROW]
[ROW][C]7[/C][C]10152.09[/C][C]10031.2893309811[/C][C]120.800669018868[/C][/ROW]
[ROW][C]8[/C][C]10032.8[/C][C]10107.0937873017[/C][C]-74.2937873016994[/C][/ROW]
[ROW][C]9[/C][C]10204.59[/C][C]10271.4482436223[/C][C]-66.8582436222653[/C][/ROW]
[ROW][C]10[/C][C]10001.6[/C][C]10056.1906999428[/C][C]-54.5906999428304[/C][/ROW]
[ROW][C]11[/C][C]10411.75[/C][C]10102.0711562634[/C][C]309.678843736604[/C][/ROW]
[ROW][C]12[/C][C]10673.38[/C][C]10777.7135372302[/C][C]-104.33353723024[/C][/ROW]
[ROW][C]13[/C][C]10539.51[/C][C]10743.2526654906[/C][C]-203.74266549056[/C][/ROW]
[ROW][C]14[/C][C]10723.78[/C][C]10861.5848936508[/C][C]-137.804893650846[/C][/ROW]
[ROW][C]15[/C][C]10682.06[/C][C]10764.2451218111[/C][C]-82.1851218111327[/C][/ROW]
[ROW][C]16[/C][C]10283.19[/C][C]10499.3859997499[/C][C]-216.195999749892[/C][/ROW]
[ROW][C]17[/C][C]10377.18[/C][C]10733.5284560705[/C][C]-356.348456070457[/C][/ROW]
[ROW][C]18[/C][C]10486.64[/C][C]10704.7909123910[/C][C]-218.150912391024[/C][/ROW]
[ROW][C]19[/C][C]10545.38[/C][C]10672.3473687116[/C][C]-126.967368711591[/C][/ROW]
[ROW][C]20[/C][C]10554.27[/C][C]10748.1518250322[/C][C]-193.881825032156[/C][/ROW]
[ROW][C]21[/C][C]10532.54[/C][C]10912.5062813527[/C][C]-379.966281352722[/C][/ROW]
[ROW][C]22[/C][C]10324.31[/C][C]10697.2487376733[/C][C]-372.938737673289[/C][/ROW]
[ROW][C]23[/C][C]10695.25[/C][C]10743.1291939939[/C][C]-47.8791939938542[/C][/ROW]
[ROW][C]24[/C][C]10827.81[/C][C]11418.7715749607[/C][C]-590.961574960698[/C][/ROW]
[ROW][C]25[/C][C]10872.48[/C][C]11384.3107032210[/C][C]-511.830703221018[/C][/ROW]
[ROW][C]26[/C][C]10971.19[/C][C]11502.6429313813[/C][C]-531.452931381304[/C][/ROW]
[ROW][C]27[/C][C]11145.65[/C][C]11405.3031595416[/C][C]-259.653159541590[/C][/ROW]
[ROW][C]28[/C][C]11234.68[/C][C]11140.4440374804[/C][C]94.2359625196504[/C][/ROW]
[ROW][C]29[/C][C]11333.88[/C][C]11374.5864938009[/C][C]-40.7064938009163[/C][/ROW]
[ROW][C]30[/C][C]10997.97[/C][C]11345.8489501215[/C][C]-347.878950121482[/C][/ROW]
[ROW][C]31[/C][C]11036.89[/C][C]11313.4054064420[/C][C]-276.515406442049[/C][/ROW]
[ROW][C]32[/C][C]11257.35[/C][C]11389.2098627626[/C][C]-131.859862762614[/C][/ROW]
[ROW][C]33[/C][C]11533.59[/C][C]11553.5643190832[/C][C]-19.9743190831807[/C][/ROW]
[ROW][C]34[/C][C]11963.12[/C][C]11338.3067754037[/C][C]624.813224596254[/C][/ROW]
[ROW][C]35[/C][C]12185.15[/C][C]11384.1872317243[/C][C]800.962768275687[/C][/ROW]
[ROW][C]36[/C][C]12377.62[/C][C]12059.8296126912[/C][C]317.790387308845[/C][/ROW]
[ROW][C]37[/C][C]12512.89[/C][C]12025.3687409515[/C][C]487.521259048524[/C][/ROW]
[ROW][C]38[/C][C]12631.48[/C][C]12143.7009691118[/C][C]487.779030888237[/C][/ROW]
[ROW][C]39[/C][C]12268.53[/C][C]12046.3611972720[/C][C]222.168802727953[/C][/ROW]
[ROW][C]40[/C][C]12754.8[/C][C]14086.7288263184[/C][C]-1331.92882631842[/C][/ROW]
[ROW][C]41[/C][C]13407.75[/C][C]14073.7901418376[/C][C]-666.040141837574[/C][/ROW]
[ROW][C]42[/C][C]13480.21[/C][C]13797.9714573567[/C][C]-317.761457356726[/C][/ROW]
[ROW][C]43[/C][C]13673.28[/C][C]13518.4467728759[/C][C]154.833227124125[/C][/ROW]
[ROW][C]44[/C][C]13239.71[/C][C]13347.1700883950[/C][C]-107.460088395028[/C][/ROW]
[ROW][C]45[/C][C]13557.69[/C][C]13264.4434039142[/C][C]293.246596085822[/C][/ROW]
[ROW][C]46[/C][C]13901.28[/C][C]12802.1047194333[/C][C]1099.17528056667[/C][/ROW]
[ROW][C]47[/C][C]13200.58[/C][C]12600.9040349525[/C][C]599.67596504752[/C][/ROW]
[ROW][C]48[/C][C]13406.97[/C][C]13029.4652751179[/C][C]377.504724882092[/C][/ROW]
[ROW][C]49[/C][C]12538.12[/C][C]12747.9232625768[/C][C]-209.803262576812[/C][/ROW]
[ROW][C]50[/C][C]12419.57[/C][C]12619.1743499357[/C][C]-199.604349935685[/C][/ROW]
[ROW][C]51[/C][C]12193.88[/C][C]12274.7534372946[/C][C]-80.8734372945555[/C][/ROW]
[ROW][C]52[/C][C]12656.63[/C][C]11762.8131744319[/C][C]893.8168255681[/C][/ROW]
[ROW][C]53[/C][C]12812.48[/C][C]11749.8744899511[/C][C]1062.60551004895[/C][/ROW]
[ROW][C]54[/C][C]12056.67[/C][C]11474.0558054702[/C][C]582.614194529799[/C][/ROW]
[ROW][C]55[/C][C]11322.38[/C][C]11194.5311209894[/C][C]127.848879010647[/C][/ROW]
[ROW][C]56[/C][C]11530.75[/C][C]11023.2544365085[/C][C]507.495563491497[/C][/ROW]
[ROW][C]57[/C][C]11114.08[/C][C]10940.5277520277[/C][C]173.552247972345[/C][/ROW]
[ROW][C]58[/C][C]9181.73[/C][C]10478.1890675468[/C][C]-1296.45906754681[/C][/ROW]
[ROW][C]59[/C][C]8614.55[/C][C]10276.9883830660[/C][C]-1662.43838306596[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33616&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33616&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
110540.0510102.1946277601437.855372239867
210601.6110220.5268559204381.0831440796
310323.7310123.1870840807200.542915919326
410418.49858.32796201943560.072037980566
510092.9610092.470418340.489581659998777
610364.9110063.7328746606301.177125339434
710152.0910031.2893309811120.800669018868
810032.810107.0937873017-74.2937873016994
910204.5910271.4482436223-66.8582436222653
1010001.610056.1906999428-54.5906999428304
1110411.7510102.0711562634309.678843736604
1210673.3810777.7135372302-104.33353723024
1310539.5110743.2526654906-203.74266549056
1410723.7810861.5848936508-137.804893650846
1510682.0610764.2451218111-82.1851218111327
1610283.1910499.3859997499-216.195999749892
1710377.1810733.5284560705-356.348456070457
1810486.6410704.7909123910-218.150912391024
1910545.3810672.3473687116-126.967368711591
2010554.2710748.1518250322-193.881825032156
2110532.5410912.5062813527-379.966281352722
2210324.3110697.2487376733-372.938737673289
2310695.2510743.1291939939-47.8791939938542
2410827.8111418.7715749607-590.961574960698
2510872.4811384.3107032210-511.830703221018
2610971.1911502.6429313813-531.452931381304
2711145.6511405.3031595416-259.653159541590
2811234.6811140.444037480494.2359625196504
2911333.8811374.5864938009-40.7064938009163
3010997.9711345.8489501215-347.878950121482
3111036.8911313.4054064420-276.515406442049
3211257.3511389.2098627626-131.859862762614
3311533.5911553.5643190832-19.9743190831807
3411963.1211338.3067754037624.813224596254
3512185.1511384.1872317243800.962768275687
3612377.6212059.8296126912317.790387308845
3712512.8912025.3687409515487.521259048524
3812631.4812143.7009691118487.779030888237
3912268.5312046.3611972720222.168802727953
4012754.814086.7288263184-1331.92882631842
4113407.7514073.7901418376-666.040141837574
4213480.2113797.9714573567-317.761457356726
4313673.2813518.4467728759154.833227124125
4413239.7113347.1700883950-107.460088395028
4513557.6913264.4434039142293.246596085822
4613901.2812802.10471943331099.17528056667
4713200.5812600.9040349525599.67596504752
4813406.9713029.4652751179377.504724882092
4912538.1212747.9232625768-209.803262576812
5012419.5712619.1743499357-199.604349935685
5112193.8812274.7534372946-80.8734372945555
5212656.6311762.8131744319893.8168255681
5312812.4811749.87448995111062.60551004895
5412056.6711474.0558054702582.614194529799
5511322.3811194.5311209894127.848879010647
5611530.7511023.2544365085507.495563491497
5711114.0810940.5277520277173.552247972345
589181.7310478.1890675468-1296.45906754681
598614.5510276.9883830660-1662.43838306596







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.01829296888115880.03658593776231770.98170703111884
190.006523382368905720.01304676473781140.993476617631094
200.003423702317322710.006847404634645410.996576297682677
210.0008283226610949440.001656645322189890.999171677338905
220.0001826715501138380.0003653431002276760.999817328449886
233.95146766500014e-057.90293533000027e-050.99996048532335
247.59516680861796e-061.51903336172359e-050.999992404833191
251.25879788674032e-062.51759577348064e-060.999998741202113
261.97406452010237e-073.94812904020474e-070.999999802593548
271.27962431897263e-072.55924863794527e-070.999999872037568
284.63101678228639e-079.26203356457279e-070.999999536898322
292.29136131958020e-064.58272263916040e-060.99999770863868
305.20159637178784e-071.04031927435757e-060.999999479840363
311.34788713522203e-072.69577427044407e-070.999999865211286
329.97504203807994e-081.99500840761599e-070.99999990024958
332.14293848306477e-074.28587696612954e-070.999999785706152
347.17994400156715e-061.43598880031343e-050.999992820055998
351.79316638642709e-053.58633277285418e-050.999982068336136
362.28449384026408e-054.56898768052817e-050.999977155061597
371.82674059388751e-053.65348118777503e-050.999981732594061
381.06739162752699e-052.13478325505397e-050.999989326083725
393.13769239524645e-066.2753847904929e-060.999996862307605
409.30452561592167e-061.86090512318433e-050.999990695474384
413.53678376742286e-057.07356753484573e-050.999964632162326

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.0182929688811588 & 0.0365859377623177 & 0.98170703111884 \tabularnewline
19 & 0.00652338236890572 & 0.0130467647378114 & 0.993476617631094 \tabularnewline
20 & 0.00342370231732271 & 0.00684740463464541 & 0.996576297682677 \tabularnewline
21 & 0.000828322661094944 & 0.00165664532218989 & 0.999171677338905 \tabularnewline
22 & 0.000182671550113838 & 0.000365343100227676 & 0.999817328449886 \tabularnewline
23 & 3.95146766500014e-05 & 7.90293533000027e-05 & 0.99996048532335 \tabularnewline
24 & 7.59516680861796e-06 & 1.51903336172359e-05 & 0.999992404833191 \tabularnewline
25 & 1.25879788674032e-06 & 2.51759577348064e-06 & 0.999998741202113 \tabularnewline
26 & 1.97406452010237e-07 & 3.94812904020474e-07 & 0.999999802593548 \tabularnewline
27 & 1.27962431897263e-07 & 2.55924863794527e-07 & 0.999999872037568 \tabularnewline
28 & 4.63101678228639e-07 & 9.26203356457279e-07 & 0.999999536898322 \tabularnewline
29 & 2.29136131958020e-06 & 4.58272263916040e-06 & 0.99999770863868 \tabularnewline
30 & 5.20159637178784e-07 & 1.04031927435757e-06 & 0.999999479840363 \tabularnewline
31 & 1.34788713522203e-07 & 2.69577427044407e-07 & 0.999999865211286 \tabularnewline
32 & 9.97504203807994e-08 & 1.99500840761599e-07 & 0.99999990024958 \tabularnewline
33 & 2.14293848306477e-07 & 4.28587696612954e-07 & 0.999999785706152 \tabularnewline
34 & 7.17994400156715e-06 & 1.43598880031343e-05 & 0.999992820055998 \tabularnewline
35 & 1.79316638642709e-05 & 3.58633277285418e-05 & 0.999982068336136 \tabularnewline
36 & 2.28449384026408e-05 & 4.56898768052817e-05 & 0.999977155061597 \tabularnewline
37 & 1.82674059388751e-05 & 3.65348118777503e-05 & 0.999981732594061 \tabularnewline
38 & 1.06739162752699e-05 & 2.13478325505397e-05 & 0.999989326083725 \tabularnewline
39 & 3.13769239524645e-06 & 6.2753847904929e-06 & 0.999996862307605 \tabularnewline
40 & 9.30452561592167e-06 & 1.86090512318433e-05 & 0.999990695474384 \tabularnewline
41 & 3.53678376742286e-05 & 7.07356753484573e-05 & 0.999964632162326 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=33616&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]18[/C][C]0.0182929688811588[/C][C]0.0365859377623177[/C][C]0.98170703111884[/C][/ROW]
[ROW][C]19[/C][C]0.00652338236890572[/C][C]0.0130467647378114[/C][C]0.993476617631094[/C][/ROW]
[ROW][C]20[/C][C]0.00342370231732271[/C][C]0.00684740463464541[/C][C]0.996576297682677[/C][/ROW]
[ROW][C]21[/C][C]0.000828322661094944[/C][C]0.00165664532218989[/C][C]0.999171677338905[/C][/ROW]
[ROW][C]22[/C][C]0.000182671550113838[/C][C]0.000365343100227676[/C][C]0.999817328449886[/C][/ROW]
[ROW][C]23[/C][C]3.95146766500014e-05[/C][C]7.90293533000027e-05[/C][C]0.99996048532335[/C][/ROW]
[ROW][C]24[/C][C]7.59516680861796e-06[/C][C]1.51903336172359e-05[/C][C]0.999992404833191[/C][/ROW]
[ROW][C]25[/C][C]1.25879788674032e-06[/C][C]2.51759577348064e-06[/C][C]0.999998741202113[/C][/ROW]
[ROW][C]26[/C][C]1.97406452010237e-07[/C][C]3.94812904020474e-07[/C][C]0.999999802593548[/C][/ROW]
[ROW][C]27[/C][C]1.27962431897263e-07[/C][C]2.55924863794527e-07[/C][C]0.999999872037568[/C][/ROW]
[ROW][C]28[/C][C]4.63101678228639e-07[/C][C]9.26203356457279e-07[/C][C]0.999999536898322[/C][/ROW]
[ROW][C]29[/C][C]2.29136131958020e-06[/C][C]4.58272263916040e-06[/C][C]0.99999770863868[/C][/ROW]
[ROW][C]30[/C][C]5.20159637178784e-07[/C][C]1.04031927435757e-06[/C][C]0.999999479840363[/C][/ROW]
[ROW][C]31[/C][C]1.34788713522203e-07[/C][C]2.69577427044407e-07[/C][C]0.999999865211286[/C][/ROW]
[ROW][C]32[/C][C]9.97504203807994e-08[/C][C]1.99500840761599e-07[/C][C]0.99999990024958[/C][/ROW]
[ROW][C]33[/C][C]2.14293848306477e-07[/C][C]4.28587696612954e-07[/C][C]0.999999785706152[/C][/ROW]
[ROW][C]34[/C][C]7.17994400156715e-06[/C][C]1.43598880031343e-05[/C][C]0.999992820055998[/C][/ROW]
[ROW][C]35[/C][C]1.79316638642709e-05[/C][C]3.58633277285418e-05[/C][C]0.999982068336136[/C][/ROW]
[ROW][C]36[/C][C]2.28449384026408e-05[/C][C]4.56898768052817e-05[/C][C]0.999977155061597[/C][/ROW]
[ROW][C]37[/C][C]1.82674059388751e-05[/C][C]3.65348118777503e-05[/C][C]0.999981732594061[/C][/ROW]
[ROW][C]38[/C][C]1.06739162752699e-05[/C][C]2.13478325505397e-05[/C][C]0.999989326083725[/C][/ROW]
[ROW][C]39[/C][C]3.13769239524645e-06[/C][C]6.2753847904929e-06[/C][C]0.999996862307605[/C][/ROW]
[ROW][C]40[/C][C]9.30452561592167e-06[/C][C]1.86090512318433e-05[/C][C]0.999990695474384[/C][/ROW]
[ROW][C]41[/C][C]3.53678376742286e-05[/C][C]7.07356753484573e-05[/C][C]0.999964632162326[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=33616&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.01829296888115880.03658593776231770.98170703111884
190.006523382368905720.01304676473781140.993476617631094
200.003423702317322710.006847404634645410.996576297682677
210.0008283226610949440.001656645322189890.999171677338905
220.0001826715501138380.0003653431002276760.999817328449886
233.95146766500014e-057.90293533000027e-050.99996048532335
247.59516680861796e-061.51903336172359e-050.999992404833191
251.25879788674032e-062.51759577348064e-060.999998741202113
261.97406452010237e-073.94812904020474e-070.999999802593548
271.27962431897263e-072.55924863794527e-070.999999872037568
284.63101678228639e-079.26203356457279e-070.999999536898322
292.29136131958020e-064.58272263916040e-060.99999770863868
305.20159637178784e-071.04031927435757e-060.999999479840363
311.34788713522203e-072.69577427044407e-070.999999865211286
329.97504203807994e-081.99500840761599e-070.99999990024958
332.14293848306477e-074.28587696612954e-070.999999785706152
347.17994400156715e-061.43598880031343e-050.999992820055998
351.79316638642709e-053.58633277285418e-050.999982068336136
362.28449384026408e-054.56898768052817e-050.999977155061597
371.82674059388751e-053.65348118777503e-050.999981732594061
381.06739162752699e-052.13478325505397e-050.999989326083725
393.13769239524645e-066.2753847904929e-060.999996862307605
409.30452561592167e-061.86090512318433e-050.999990695474384
413.53678376742286e-057.07356753484573e-050.999964632162326







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.916666666666667NOK
5% type I error level241NOK
10% type I error level241NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=33616&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 level220.916666666666667NOK
5% type I error level241NOK
10% type I error level241NOK



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