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 computationThu, 19 Nov 2009 12:11:31 -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/19/t1258658045iwe5ldg8b8mlsp8.htm/, Retrieved Tue, 16 Apr 2024 12:25:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57904, Retrieved Tue, 16 Apr 2024 12:25:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Multiple regression] [2009-11-19 19:11:31] [4996e0131d5120d29a6e9a8dccb25dc3] [Current]
-   P         [Multiple Regression] [Multiple regression] [2009-11-19 19:20:52] [e3c32faf833f030d3b397185b633f75f]
-    D          [Multiple Regression] [Multiple regression] [2009-11-19 19:31:56] [e3c32faf833f030d3b397185b633f75f]
-   PD            [Multiple Regression] [Multiple regression] [2009-11-19 19:50:16] [e3c32faf833f030d3b397185b633f75f]
Feedback Forum

Post a new message
Dataseries X:
19	613
18	611
19	594
19	595
22	591
23	589
20	584
14	573
14	567
14	569
15	621
11	629
17	628
16	612
20	595
24	597
23	593
20	590
21	580
19	574
23	573
23	573
23	620
23	626
27	620
26	588
17	566
24	557
26	561
24	549
27	532
27	526
26	511
24	499
23	555
23	565
24	542
17	527
21	510
19	514
22	517
22	508
18	493
16	490
14	469
12	478
14	528
16	534
8	518
3	506
0	502
5	516
1	528
1	533
3	536
6	537
7	524
8	536
14	587
14	597
13	581




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
ICONS[t] = -18.1539021701522 + 0.0602404306508848WLH[t] + 0.993570813585798M1[t] -0.110854784071067M2[t] + 0.216847847952559M3[t] + 2.87227081439044M4[t] + 3.33974186695849M5[t] + 2.79275167569221M6[t] + 3.12286746541999M7[t] + 2.02406961867441M8[t] + 3.09876244196432M9[t] + 2.36623349453238M10[t] + 0.881923445207079M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
ICONS[t] =  -18.1539021701522 +  0.0602404306508848WLH[t] +  0.993570813585798M1[t] -0.110854784071067M2[t] +  0.216847847952559M3[t] +  2.87227081439044M4[t] +  3.33974186695849M5[t] +  2.79275167569221M6[t] +  3.12286746541999M7[t] +  2.02406961867441M8[t] +  3.09876244196432M9[t] +  2.36623349453238M10[t] +  0.881923445207079M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57904&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]ICONS[t] =  -18.1539021701522 +  0.0602404306508848WLH[t] +  0.993570813585798M1[t] -0.110854784071067M2[t] +  0.216847847952559M3[t] +  2.87227081439044M4[t] +  3.33974186695849M5[t] +  2.79275167569221M6[t] +  3.12286746541999M7[t] +  2.02406961867441M8[t] +  3.09876244196432M9[t] +  2.36623349453238M10[t] +  0.881923445207079M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57904&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57904&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
ICONS[t] = -18.1539021701522 + 0.0602404306508848WLH[t] + 0.993570813585798M1[t] -0.110854784071067M2[t] + 0.216847847952559M3[t] + 2.87227081439044M4[t] + 3.33974186695849M5[t] + 2.79275167569221M6[t] + 3.12286746541999M7[t] + 2.02406961867441M8[t] + 3.09876244196432M9[t] + 2.36623349453238M10[t] + 0.881923445207079M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-18.153902170152215.837948-1.14620.2573830.128691
WLH0.06024043065088480.0262192.29760.0259850.012992
M10.9935708135857984.5729730.21730.8289190.414459
M2-0.1108547840710674.805827-0.02310.9816930.490846
M30.2168478479525594.8695060.04450.9646650.482333
M42.872270814390444.857430.59130.5570840.278542
M53.339741866958494.8470510.6890.4941240.247062
M62.792751675692214.8674390.57380.5688080.284404
M73.122867465419994.9178830.6350.5284420.264221
M82.024069618674414.9511080.40880.6844960.342248
M93.098762441964325.037130.61520.5413390.270669
M102.366233494532385.0189930.47150.6394510.319726
M110.8819234452070794.7775690.18460.8543230.427162

\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) & -18.1539021701522 & 15.837948 & -1.1462 & 0.257383 & 0.128691 \tabularnewline
WLH & 0.0602404306508848 & 0.026219 & 2.2976 & 0.025985 & 0.012992 \tabularnewline
M1 & 0.993570813585798 & 4.572973 & 0.2173 & 0.828919 & 0.414459 \tabularnewline
M2 & -0.110854784071067 & 4.805827 & -0.0231 & 0.981693 & 0.490846 \tabularnewline
M3 & 0.216847847952559 & 4.869506 & 0.0445 & 0.964665 & 0.482333 \tabularnewline
M4 & 2.87227081439044 & 4.85743 & 0.5913 & 0.557084 & 0.278542 \tabularnewline
M5 & 3.33974186695849 & 4.847051 & 0.689 & 0.494124 & 0.247062 \tabularnewline
M6 & 2.79275167569221 & 4.867439 & 0.5738 & 0.568808 & 0.284404 \tabularnewline
M7 & 3.12286746541999 & 4.917883 & 0.635 & 0.528442 & 0.264221 \tabularnewline
M8 & 2.02406961867441 & 4.951108 & 0.4088 & 0.684496 & 0.342248 \tabularnewline
M9 & 3.09876244196432 & 5.03713 & 0.6152 & 0.541339 & 0.270669 \tabularnewline
M10 & 2.36623349453238 & 5.018993 & 0.4715 & 0.639451 & 0.319726 \tabularnewline
M11 & 0.881923445207079 & 4.777569 & 0.1846 & 0.854323 & 0.427162 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57904&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]-18.1539021701522[/C][C]15.837948[/C][C]-1.1462[/C][C]0.257383[/C][C]0.128691[/C][/ROW]
[ROW][C]WLH[/C][C]0.0602404306508848[/C][C]0.026219[/C][C]2.2976[/C][C]0.025985[/C][C]0.012992[/C][/ROW]
[ROW][C]M1[/C][C]0.993570813585798[/C][C]4.572973[/C][C]0.2173[/C][C]0.828919[/C][C]0.414459[/C][/ROW]
[ROW][C]M2[/C][C]-0.110854784071067[/C][C]4.805827[/C][C]-0.0231[/C][C]0.981693[/C][C]0.490846[/C][/ROW]
[ROW][C]M3[/C][C]0.216847847952559[/C][C]4.869506[/C][C]0.0445[/C][C]0.964665[/C][C]0.482333[/C][/ROW]
[ROW][C]M4[/C][C]2.87227081439044[/C][C]4.85743[/C][C]0.5913[/C][C]0.557084[/C][C]0.278542[/C][/ROW]
[ROW][C]M5[/C][C]3.33974186695849[/C][C]4.847051[/C][C]0.689[/C][C]0.494124[/C][C]0.247062[/C][/ROW]
[ROW][C]M6[/C][C]2.79275167569221[/C][C]4.867439[/C][C]0.5738[/C][C]0.568808[/C][C]0.284404[/C][/ROW]
[ROW][C]M7[/C][C]3.12286746541999[/C][C]4.917883[/C][C]0.635[/C][C]0.528442[/C][C]0.264221[/C][/ROW]
[ROW][C]M8[/C][C]2.02406961867441[/C][C]4.951108[/C][C]0.4088[/C][C]0.684496[/C][C]0.342248[/C][/ROW]
[ROW][C]M9[/C][C]3.09876244196432[/C][C]5.03713[/C][C]0.6152[/C][C]0.541339[/C][C]0.270669[/C][/ROW]
[ROW][C]M10[/C][C]2.36623349453238[/C][C]5.018993[/C][C]0.4715[/C][C]0.639451[/C][C]0.319726[/C][/ROW]
[ROW][C]M11[/C][C]0.881923445207079[/C][C]4.777569[/C][C]0.1846[/C][C]0.854323[/C][C]0.427162[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57904&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57904&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)-18.153902170152215.837948-1.14620.2573830.128691
WLH0.06024043065088480.0262192.29760.0259850.012992
M10.9935708135857984.5729730.21730.8289190.414459
M2-0.1108547840710674.805827-0.02310.9816930.490846
M30.2168478479525594.8695060.04450.9646650.482333
M42.872270814390444.857430.59130.5570840.278542
M53.339741866958494.8470510.6890.4941240.247062
M62.792751675692214.8674390.57380.5688080.284404
M73.122867465419994.9178830.6350.5284420.264221
M82.024069618674414.9511080.40880.6844960.342248
M93.098762441964325.037130.61520.5413390.270669
M102.366233494532385.0189930.47150.6394510.319726
M110.8819234452070794.7775690.18460.8543230.427162







Multiple Linear Regression - Regression Statistics
Multiple R0.341778622777809
R-squared0.116812626987896
Adjusted R-squared-0.103984216265131
F-TEST (value)0.529050258449719
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.885066905782545
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.54671563582109
Sum Squared Residuals2733.74001062143

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.341778622777809 \tabularnewline
R-squared & 0.116812626987896 \tabularnewline
Adjusted R-squared & -0.103984216265131 \tabularnewline
F-TEST (value) & 0.529050258449719 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.885066905782545 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 7.54671563582109 \tabularnewline
Sum Squared Residuals & 2733.74001062143 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57904&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.341778622777809[/C][/ROW]
[ROW][C]R-squared[/C][C]0.116812626987896[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.103984216265131[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.529050258449719[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.885066905782545[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]7.54671563582109[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2733.74001062143[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57904&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57904&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.341778622777809
R-squared0.116812626987896
Adjusted R-squared-0.103984216265131
F-TEST (value)0.529050258449719
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.885066905782545
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.54671563582109
Sum Squared Residuals2733.74001062143







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11919.7670526324259-0.767052632425869
21818.5421461734673-0.542146173467337
31917.84576148442591.15423851557408
41920.5614248815147-1.56142488151468
52220.78793421147921.21206578852080
62320.12046315891122.87953684108885
72020.1493767953845-0.149376795384509
81418.3879342114792-4.3879342114792
91419.1011844508638-5.1011844508638
101418.4891363647336-4.48913636473362
111520.1373287092543-5.13732870925433
121119.7373287092543-8.73732870925433
131720.6706590921892-3.67065909218924
141618.6023866041182-2.60238660411822
152017.90600191507682.09399808492320
162420.68190574281653.31809425718355
172320.90841507278102.09158492721904
182020.1807035895620-0.180703589562029
192119.90841507278101.09158492721903
201918.44817464213010.55182535786992
212319.46262703476913.53737296523089
222318.73009808733724.26990191266284
232320.07708827860342.92291172139656
242319.55660741730173.44339258269833
252720.18873564698226.81126435301784
262617.1566162684978.84338373150301
271716.15902942620110.840970573798854
282418.27228851678115.72771148321894
292618.98072129195277.01927870804735
302417.71084593287586.28915406712425
312717.01687440153859.9831255984615
322715.556633970887611.4433660291124
332615.727720334414310.2722796655857
342414.27230621917179.72769378082831
352316.16146028629596.83853971370407
362315.88194114759777.1180588524023
372415.48998205621328.51001794378684
381713.48194999879303.51805000120698
392112.78556530975168.2144346902484
401915.6819499987933.31805000120698
412216.33014234331375.66985765668628
422215.24098827618956.75901172381052
431814.6674976061543.33250239384601
441613.38797846745582.61202153254424
451413.19762224707710.802377752922909
461213.0072571755031-1.00725717550311
471414.5349686587220-0.534968658722045
481614.01448779742031.98551220257972
49814.0442117205919-6.04421172059192
50312.2169009551244-9.21690095512444
51012.3036418645445-12.3036418645445
52515.8024308600948-10.8024308600948
53116.9927870804735-15.9927870804735
54116.7469990424616-15.7469990424616
55317.2578361241420-14.2578361241420
56616.2192787080473-10.2192787080473
57716.5108459328758-9.51084593287576
58816.5012021532544-8.50120215325442
591418.0891540671242-4.08915406712425
601417.8096349284260-3.80963492842602
611317.8393588515977-4.83935885159765

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19 & 19.7670526324259 & -0.767052632425869 \tabularnewline
2 & 18 & 18.5421461734673 & -0.542146173467337 \tabularnewline
3 & 19 & 17.8457614844259 & 1.15423851557408 \tabularnewline
4 & 19 & 20.5614248815147 & -1.56142488151468 \tabularnewline
5 & 22 & 20.7879342114792 & 1.21206578852080 \tabularnewline
6 & 23 & 20.1204631589112 & 2.87953684108885 \tabularnewline
7 & 20 & 20.1493767953845 & -0.149376795384509 \tabularnewline
8 & 14 & 18.3879342114792 & -4.3879342114792 \tabularnewline
9 & 14 & 19.1011844508638 & -5.1011844508638 \tabularnewline
10 & 14 & 18.4891363647336 & -4.48913636473362 \tabularnewline
11 & 15 & 20.1373287092543 & -5.13732870925433 \tabularnewline
12 & 11 & 19.7373287092543 & -8.73732870925433 \tabularnewline
13 & 17 & 20.6706590921892 & -3.67065909218924 \tabularnewline
14 & 16 & 18.6023866041182 & -2.60238660411822 \tabularnewline
15 & 20 & 17.9060019150768 & 2.09399808492320 \tabularnewline
16 & 24 & 20.6819057428165 & 3.31809425718355 \tabularnewline
17 & 23 & 20.9084150727810 & 2.09158492721904 \tabularnewline
18 & 20 & 20.1807035895620 & -0.180703589562029 \tabularnewline
19 & 21 & 19.9084150727810 & 1.09158492721903 \tabularnewline
20 & 19 & 18.4481746421301 & 0.55182535786992 \tabularnewline
21 & 23 & 19.4626270347691 & 3.53737296523089 \tabularnewline
22 & 23 & 18.7300980873372 & 4.26990191266284 \tabularnewline
23 & 23 & 20.0770882786034 & 2.92291172139656 \tabularnewline
24 & 23 & 19.5566074173017 & 3.44339258269833 \tabularnewline
25 & 27 & 20.1887356469822 & 6.81126435301784 \tabularnewline
26 & 26 & 17.156616268497 & 8.84338373150301 \tabularnewline
27 & 17 & 16.1590294262011 & 0.840970573798854 \tabularnewline
28 & 24 & 18.2722885167811 & 5.72771148321894 \tabularnewline
29 & 26 & 18.9807212919527 & 7.01927870804735 \tabularnewline
30 & 24 & 17.7108459328758 & 6.28915406712425 \tabularnewline
31 & 27 & 17.0168744015385 & 9.9831255984615 \tabularnewline
32 & 27 & 15.5566339708876 & 11.4433660291124 \tabularnewline
33 & 26 & 15.7277203344143 & 10.2722796655857 \tabularnewline
34 & 24 & 14.2723062191717 & 9.72769378082831 \tabularnewline
35 & 23 & 16.1614602862959 & 6.83853971370407 \tabularnewline
36 & 23 & 15.8819411475977 & 7.1180588524023 \tabularnewline
37 & 24 & 15.4899820562132 & 8.51001794378684 \tabularnewline
38 & 17 & 13.4819499987930 & 3.51805000120698 \tabularnewline
39 & 21 & 12.7855653097516 & 8.2144346902484 \tabularnewline
40 & 19 & 15.681949998793 & 3.31805000120698 \tabularnewline
41 & 22 & 16.3301423433137 & 5.66985765668628 \tabularnewline
42 & 22 & 15.2409882761895 & 6.75901172381052 \tabularnewline
43 & 18 & 14.667497606154 & 3.33250239384601 \tabularnewline
44 & 16 & 13.3879784674558 & 2.61202153254424 \tabularnewline
45 & 14 & 13.1976222470771 & 0.802377752922909 \tabularnewline
46 & 12 & 13.0072571755031 & -1.00725717550311 \tabularnewline
47 & 14 & 14.5349686587220 & -0.534968658722045 \tabularnewline
48 & 16 & 14.0144877974203 & 1.98551220257972 \tabularnewline
49 & 8 & 14.0442117205919 & -6.04421172059192 \tabularnewline
50 & 3 & 12.2169009551244 & -9.21690095512444 \tabularnewline
51 & 0 & 12.3036418645445 & -12.3036418645445 \tabularnewline
52 & 5 & 15.8024308600948 & -10.8024308600948 \tabularnewline
53 & 1 & 16.9927870804735 & -15.9927870804735 \tabularnewline
54 & 1 & 16.7469990424616 & -15.7469990424616 \tabularnewline
55 & 3 & 17.2578361241420 & -14.2578361241420 \tabularnewline
56 & 6 & 16.2192787080473 & -10.2192787080473 \tabularnewline
57 & 7 & 16.5108459328758 & -9.51084593287576 \tabularnewline
58 & 8 & 16.5012021532544 & -8.50120215325442 \tabularnewline
59 & 14 & 18.0891540671242 & -4.08915406712425 \tabularnewline
60 & 14 & 17.8096349284260 & -3.80963492842602 \tabularnewline
61 & 13 & 17.8393588515977 & -4.83935885159765 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57904&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]19[/C][C]19.7670526324259[/C][C]-0.767052632425869[/C][/ROW]
[ROW][C]2[/C][C]18[/C][C]18.5421461734673[/C][C]-0.542146173467337[/C][/ROW]
[ROW][C]3[/C][C]19[/C][C]17.8457614844259[/C][C]1.15423851557408[/C][/ROW]
[ROW][C]4[/C][C]19[/C][C]20.5614248815147[/C][C]-1.56142488151468[/C][/ROW]
[ROW][C]5[/C][C]22[/C][C]20.7879342114792[/C][C]1.21206578852080[/C][/ROW]
[ROW][C]6[/C][C]23[/C][C]20.1204631589112[/C][C]2.87953684108885[/C][/ROW]
[ROW][C]7[/C][C]20[/C][C]20.1493767953845[/C][C]-0.149376795384509[/C][/ROW]
[ROW][C]8[/C][C]14[/C][C]18.3879342114792[/C][C]-4.3879342114792[/C][/ROW]
[ROW][C]9[/C][C]14[/C][C]19.1011844508638[/C][C]-5.1011844508638[/C][/ROW]
[ROW][C]10[/C][C]14[/C][C]18.4891363647336[/C][C]-4.48913636473362[/C][/ROW]
[ROW][C]11[/C][C]15[/C][C]20.1373287092543[/C][C]-5.13732870925433[/C][/ROW]
[ROW][C]12[/C][C]11[/C][C]19.7373287092543[/C][C]-8.73732870925433[/C][/ROW]
[ROW][C]13[/C][C]17[/C][C]20.6706590921892[/C][C]-3.67065909218924[/C][/ROW]
[ROW][C]14[/C][C]16[/C][C]18.6023866041182[/C][C]-2.60238660411822[/C][/ROW]
[ROW][C]15[/C][C]20[/C][C]17.9060019150768[/C][C]2.09399808492320[/C][/ROW]
[ROW][C]16[/C][C]24[/C][C]20.6819057428165[/C][C]3.31809425718355[/C][/ROW]
[ROW][C]17[/C][C]23[/C][C]20.9084150727810[/C][C]2.09158492721904[/C][/ROW]
[ROW][C]18[/C][C]20[/C][C]20.1807035895620[/C][C]-0.180703589562029[/C][/ROW]
[ROW][C]19[/C][C]21[/C][C]19.9084150727810[/C][C]1.09158492721903[/C][/ROW]
[ROW][C]20[/C][C]19[/C][C]18.4481746421301[/C][C]0.55182535786992[/C][/ROW]
[ROW][C]21[/C][C]23[/C][C]19.4626270347691[/C][C]3.53737296523089[/C][/ROW]
[ROW][C]22[/C][C]23[/C][C]18.7300980873372[/C][C]4.26990191266284[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]20.0770882786034[/C][C]2.92291172139656[/C][/ROW]
[ROW][C]24[/C][C]23[/C][C]19.5566074173017[/C][C]3.44339258269833[/C][/ROW]
[ROW][C]25[/C][C]27[/C][C]20.1887356469822[/C][C]6.81126435301784[/C][/ROW]
[ROW][C]26[/C][C]26[/C][C]17.156616268497[/C][C]8.84338373150301[/C][/ROW]
[ROW][C]27[/C][C]17[/C][C]16.1590294262011[/C][C]0.840970573798854[/C][/ROW]
[ROW][C]28[/C][C]24[/C][C]18.2722885167811[/C][C]5.72771148321894[/C][/ROW]
[ROW][C]29[/C][C]26[/C][C]18.9807212919527[/C][C]7.01927870804735[/C][/ROW]
[ROW][C]30[/C][C]24[/C][C]17.7108459328758[/C][C]6.28915406712425[/C][/ROW]
[ROW][C]31[/C][C]27[/C][C]17.0168744015385[/C][C]9.9831255984615[/C][/ROW]
[ROW][C]32[/C][C]27[/C][C]15.5566339708876[/C][C]11.4433660291124[/C][/ROW]
[ROW][C]33[/C][C]26[/C][C]15.7277203344143[/C][C]10.2722796655857[/C][/ROW]
[ROW][C]34[/C][C]24[/C][C]14.2723062191717[/C][C]9.72769378082831[/C][/ROW]
[ROW][C]35[/C][C]23[/C][C]16.1614602862959[/C][C]6.83853971370407[/C][/ROW]
[ROW][C]36[/C][C]23[/C][C]15.8819411475977[/C][C]7.1180588524023[/C][/ROW]
[ROW][C]37[/C][C]24[/C][C]15.4899820562132[/C][C]8.51001794378684[/C][/ROW]
[ROW][C]38[/C][C]17[/C][C]13.4819499987930[/C][C]3.51805000120698[/C][/ROW]
[ROW][C]39[/C][C]21[/C][C]12.7855653097516[/C][C]8.2144346902484[/C][/ROW]
[ROW][C]40[/C][C]19[/C][C]15.681949998793[/C][C]3.31805000120698[/C][/ROW]
[ROW][C]41[/C][C]22[/C][C]16.3301423433137[/C][C]5.66985765668628[/C][/ROW]
[ROW][C]42[/C][C]22[/C][C]15.2409882761895[/C][C]6.75901172381052[/C][/ROW]
[ROW][C]43[/C][C]18[/C][C]14.667497606154[/C][C]3.33250239384601[/C][/ROW]
[ROW][C]44[/C][C]16[/C][C]13.3879784674558[/C][C]2.61202153254424[/C][/ROW]
[ROW][C]45[/C][C]14[/C][C]13.1976222470771[/C][C]0.802377752922909[/C][/ROW]
[ROW][C]46[/C][C]12[/C][C]13.0072571755031[/C][C]-1.00725717550311[/C][/ROW]
[ROW][C]47[/C][C]14[/C][C]14.5349686587220[/C][C]-0.534968658722045[/C][/ROW]
[ROW][C]48[/C][C]16[/C][C]14.0144877974203[/C][C]1.98551220257972[/C][/ROW]
[ROW][C]49[/C][C]8[/C][C]14.0442117205919[/C][C]-6.04421172059192[/C][/ROW]
[ROW][C]50[/C][C]3[/C][C]12.2169009551244[/C][C]-9.21690095512444[/C][/ROW]
[ROW][C]51[/C][C]0[/C][C]12.3036418645445[/C][C]-12.3036418645445[/C][/ROW]
[ROW][C]52[/C][C]5[/C][C]15.8024308600948[/C][C]-10.8024308600948[/C][/ROW]
[ROW][C]53[/C][C]1[/C][C]16.9927870804735[/C][C]-15.9927870804735[/C][/ROW]
[ROW][C]54[/C][C]1[/C][C]16.7469990424616[/C][C]-15.7469990424616[/C][/ROW]
[ROW][C]55[/C][C]3[/C][C]17.2578361241420[/C][C]-14.2578361241420[/C][/ROW]
[ROW][C]56[/C][C]6[/C][C]16.2192787080473[/C][C]-10.2192787080473[/C][/ROW]
[ROW][C]57[/C][C]7[/C][C]16.5108459328758[/C][C]-9.51084593287576[/C][/ROW]
[ROW][C]58[/C][C]8[/C][C]16.5012021532544[/C][C]-8.50120215325442[/C][/ROW]
[ROW][C]59[/C][C]14[/C][C]18.0891540671242[/C][C]-4.08915406712425[/C][/ROW]
[ROW][C]60[/C][C]14[/C][C]17.8096349284260[/C][C]-3.80963492842602[/C][/ROW]
[ROW][C]61[/C][C]13[/C][C]17.8393588515977[/C][C]-4.83935885159765[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57904&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57904&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
11919.7670526324259-0.767052632425869
21818.5421461734673-0.542146173467337
31917.84576148442591.15423851557408
41920.5614248815147-1.56142488151468
52220.78793421147921.21206578852080
62320.12046315891122.87953684108885
72020.1493767953845-0.149376795384509
81418.3879342114792-4.3879342114792
91419.1011844508638-5.1011844508638
101418.4891363647336-4.48913636473362
111520.1373287092543-5.13732870925433
121119.7373287092543-8.73732870925433
131720.6706590921892-3.67065909218924
141618.6023866041182-2.60238660411822
152017.90600191507682.09399808492320
162420.68190574281653.31809425718355
172320.90841507278102.09158492721904
182020.1807035895620-0.180703589562029
192119.90841507278101.09158492721903
201918.44817464213010.55182535786992
212319.46262703476913.53737296523089
222318.73009808733724.26990191266284
232320.07708827860342.92291172139656
242319.55660741730173.44339258269833
252720.18873564698226.81126435301784
262617.1566162684978.84338373150301
271716.15902942620110.840970573798854
282418.27228851678115.72771148321894
292618.98072129195277.01927870804735
302417.71084593287586.28915406712425
312717.01687440153859.9831255984615
322715.556633970887611.4433660291124
332615.727720334414310.2722796655857
342414.27230621917179.72769378082831
352316.16146028629596.83853971370407
362315.88194114759777.1180588524023
372415.48998205621328.51001794378684
381713.48194999879303.51805000120698
392112.78556530975168.2144346902484
401915.6819499987933.31805000120698
412216.33014234331375.66985765668628
422215.24098827618956.75901172381052
431814.6674976061543.33250239384601
441613.38797846745582.61202153254424
451413.19762224707710.802377752922909
461213.0072571755031-1.00725717550311
471414.5349686587220-0.534968658722045
481614.01448779742031.98551220257972
49814.0442117205919-6.04421172059192
50312.2169009551244-9.21690095512444
51012.3036418645445-12.3036418645445
52515.8024308600948-10.8024308600948
53116.9927870804735-15.9927870804735
54116.7469990424616-15.7469990424616
55317.2578361241420-14.2578361241420
56616.2192787080473-10.2192787080473
57716.5108459328758-9.51084593287576
58816.5012021532544-8.50120215325442
591418.0891540671242-4.08915406712425
601417.8096349284260-3.80963492842602
611317.8393588515977-4.83935885159765







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02476862571630560.04953725143261110.975231374283694
170.005635581779780080.01127116355956020.99436441822022
180.001854534013916430.003709068027832870.998145465986084
190.0003681604178497920.0007363208356995840.99963183958215
200.0003269575385780180.0006539150771560370.999673042461422
210.001183639944079740.002367279888159470.99881636005592
220.001570408896082250.00314081779216450.998429591103918
230.001610133648837330.003220267297674660.998389866351163
240.003883168258512150.007766336517024290.996116831741488
250.004590437685342910.009180875370685820.995409562314657
260.003458937351939950.00691787470387990.99654106264806
270.00250097813856190.00500195627712380.997499021861438
280.001304984461766770.002609968923533540.998695015538233
290.0008189728931421730.001637945786284350.999181027106858
300.0004847230343205810.0009694460686411610.99951527696568
310.0004253289754472990.0008506579508945980.999574671024553
320.0005453937881171250.001090787576234250.999454606211883
330.0005435299230879830.001087059846175970.999456470076912
340.0004671909794480970.0009343819588961950.999532809020552
350.0002862929723474160.0005725859446948310.999713707027653
360.000146965301916110.000293930603832220.999853034698084
370.0001664619687810790.0003329239375621580.999833538031219
380.0005274305620099130.001054861124019830.99947256943799
390.002110745206365530.004221490412731070.997889254793634
400.0043916566106910.0087833132213820.99560834338931
410.02817268086258680.05634536172517370.971827319137413
420.2159713339883450.431942667976690.784028666011655
430.525025458560530.949949082878940.47497454143947
440.6856881583013890.6286236833972220.314311841698611
450.7654908679975220.4690182640049570.234509132002478

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0247686257163056 & 0.0495372514326111 & 0.975231374283694 \tabularnewline
17 & 0.00563558177978008 & 0.0112711635595602 & 0.99436441822022 \tabularnewline
18 & 0.00185453401391643 & 0.00370906802783287 & 0.998145465986084 \tabularnewline
19 & 0.000368160417849792 & 0.000736320835699584 & 0.99963183958215 \tabularnewline
20 & 0.000326957538578018 & 0.000653915077156037 & 0.999673042461422 \tabularnewline
21 & 0.00118363994407974 & 0.00236727988815947 & 0.99881636005592 \tabularnewline
22 & 0.00157040889608225 & 0.0031408177921645 & 0.998429591103918 \tabularnewline
23 & 0.00161013364883733 & 0.00322026729767466 & 0.998389866351163 \tabularnewline
24 & 0.00388316825851215 & 0.00776633651702429 & 0.996116831741488 \tabularnewline
25 & 0.00459043768534291 & 0.00918087537068582 & 0.995409562314657 \tabularnewline
26 & 0.00345893735193995 & 0.0069178747038799 & 0.99654106264806 \tabularnewline
27 & 0.0025009781385619 & 0.0050019562771238 & 0.997499021861438 \tabularnewline
28 & 0.00130498446176677 & 0.00260996892353354 & 0.998695015538233 \tabularnewline
29 & 0.000818972893142173 & 0.00163794578628435 & 0.999181027106858 \tabularnewline
30 & 0.000484723034320581 & 0.000969446068641161 & 0.99951527696568 \tabularnewline
31 & 0.000425328975447299 & 0.000850657950894598 & 0.999574671024553 \tabularnewline
32 & 0.000545393788117125 & 0.00109078757623425 & 0.999454606211883 \tabularnewline
33 & 0.000543529923087983 & 0.00108705984617597 & 0.999456470076912 \tabularnewline
34 & 0.000467190979448097 & 0.000934381958896195 & 0.999532809020552 \tabularnewline
35 & 0.000286292972347416 & 0.000572585944694831 & 0.999713707027653 \tabularnewline
36 & 0.00014696530191611 & 0.00029393060383222 & 0.999853034698084 \tabularnewline
37 & 0.000166461968781079 & 0.000332923937562158 & 0.999833538031219 \tabularnewline
38 & 0.000527430562009913 & 0.00105486112401983 & 0.99947256943799 \tabularnewline
39 & 0.00211074520636553 & 0.00422149041273107 & 0.997889254793634 \tabularnewline
40 & 0.004391656610691 & 0.008783313221382 & 0.99560834338931 \tabularnewline
41 & 0.0281726808625868 & 0.0563453617251737 & 0.971827319137413 \tabularnewline
42 & 0.215971333988345 & 0.43194266797669 & 0.784028666011655 \tabularnewline
43 & 0.52502545856053 & 0.94994908287894 & 0.47497454143947 \tabularnewline
44 & 0.685688158301389 & 0.628623683397222 & 0.314311841698611 \tabularnewline
45 & 0.765490867997522 & 0.469018264004957 & 0.234509132002478 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57904&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.0247686257163056[/C][C]0.0495372514326111[/C][C]0.975231374283694[/C][/ROW]
[ROW][C]17[/C][C]0.00563558177978008[/C][C]0.0112711635595602[/C][C]0.99436441822022[/C][/ROW]
[ROW][C]18[/C][C]0.00185453401391643[/C][C]0.00370906802783287[/C][C]0.998145465986084[/C][/ROW]
[ROW][C]19[/C][C]0.000368160417849792[/C][C]0.000736320835699584[/C][C]0.99963183958215[/C][/ROW]
[ROW][C]20[/C][C]0.000326957538578018[/C][C]0.000653915077156037[/C][C]0.999673042461422[/C][/ROW]
[ROW][C]21[/C][C]0.00118363994407974[/C][C]0.00236727988815947[/C][C]0.99881636005592[/C][/ROW]
[ROW][C]22[/C][C]0.00157040889608225[/C][C]0.0031408177921645[/C][C]0.998429591103918[/C][/ROW]
[ROW][C]23[/C][C]0.00161013364883733[/C][C]0.00322026729767466[/C][C]0.998389866351163[/C][/ROW]
[ROW][C]24[/C][C]0.00388316825851215[/C][C]0.00776633651702429[/C][C]0.996116831741488[/C][/ROW]
[ROW][C]25[/C][C]0.00459043768534291[/C][C]0.00918087537068582[/C][C]0.995409562314657[/C][/ROW]
[ROW][C]26[/C][C]0.00345893735193995[/C][C]0.0069178747038799[/C][C]0.99654106264806[/C][/ROW]
[ROW][C]27[/C][C]0.0025009781385619[/C][C]0.0050019562771238[/C][C]0.997499021861438[/C][/ROW]
[ROW][C]28[/C][C]0.00130498446176677[/C][C]0.00260996892353354[/C][C]0.998695015538233[/C][/ROW]
[ROW][C]29[/C][C]0.000818972893142173[/C][C]0.00163794578628435[/C][C]0.999181027106858[/C][/ROW]
[ROW][C]30[/C][C]0.000484723034320581[/C][C]0.000969446068641161[/C][C]0.99951527696568[/C][/ROW]
[ROW][C]31[/C][C]0.000425328975447299[/C][C]0.000850657950894598[/C][C]0.999574671024553[/C][/ROW]
[ROW][C]32[/C][C]0.000545393788117125[/C][C]0.00109078757623425[/C][C]0.999454606211883[/C][/ROW]
[ROW][C]33[/C][C]0.000543529923087983[/C][C]0.00108705984617597[/C][C]0.999456470076912[/C][/ROW]
[ROW][C]34[/C][C]0.000467190979448097[/C][C]0.000934381958896195[/C][C]0.999532809020552[/C][/ROW]
[ROW][C]35[/C][C]0.000286292972347416[/C][C]0.000572585944694831[/C][C]0.999713707027653[/C][/ROW]
[ROW][C]36[/C][C]0.00014696530191611[/C][C]0.00029393060383222[/C][C]0.999853034698084[/C][/ROW]
[ROW][C]37[/C][C]0.000166461968781079[/C][C]0.000332923937562158[/C][C]0.999833538031219[/C][/ROW]
[ROW][C]38[/C][C]0.000527430562009913[/C][C]0.00105486112401983[/C][C]0.99947256943799[/C][/ROW]
[ROW][C]39[/C][C]0.00211074520636553[/C][C]0.00422149041273107[/C][C]0.997889254793634[/C][/ROW]
[ROW][C]40[/C][C]0.004391656610691[/C][C]0.008783313221382[/C][C]0.99560834338931[/C][/ROW]
[ROW][C]41[/C][C]0.0281726808625868[/C][C]0.0563453617251737[/C][C]0.971827319137413[/C][/ROW]
[ROW][C]42[/C][C]0.215971333988345[/C][C]0.43194266797669[/C][C]0.784028666011655[/C][/ROW]
[ROW][C]43[/C][C]0.52502545856053[/C][C]0.94994908287894[/C][C]0.47497454143947[/C][/ROW]
[ROW][C]44[/C][C]0.685688158301389[/C][C]0.628623683397222[/C][C]0.314311841698611[/C][/ROW]
[ROW][C]45[/C][C]0.765490867997522[/C][C]0.469018264004957[/C][C]0.234509132002478[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57904&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57904&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.02476862571630560.04953725143261110.975231374283694
170.005635581779780080.01127116355956020.99436441822022
180.001854534013916430.003709068027832870.998145465986084
190.0003681604178497920.0007363208356995840.99963183958215
200.0003269575385780180.0006539150771560370.999673042461422
210.001183639944079740.002367279888159470.99881636005592
220.001570408896082250.00314081779216450.998429591103918
230.001610133648837330.003220267297674660.998389866351163
240.003883168258512150.007766336517024290.996116831741488
250.004590437685342910.009180875370685820.995409562314657
260.003458937351939950.00691787470387990.99654106264806
270.00250097813856190.00500195627712380.997499021861438
280.001304984461766770.002609968923533540.998695015538233
290.0008189728931421730.001637945786284350.999181027106858
300.0004847230343205810.0009694460686411610.99951527696568
310.0004253289754472990.0008506579508945980.999574671024553
320.0005453937881171250.001090787576234250.999454606211883
330.0005435299230879830.001087059846175970.999456470076912
340.0004671909794480970.0009343819588961950.999532809020552
350.0002862929723474160.0005725859446948310.999713707027653
360.000146965301916110.000293930603832220.999853034698084
370.0001664619687810790.0003329239375621580.999833538031219
380.0005274305620099130.001054861124019830.99947256943799
390.002110745206365530.004221490412731070.997889254793634
400.0043916566106910.0087833132213820.99560834338931
410.02817268086258680.05634536172517370.971827319137413
420.2159713339883450.431942667976690.784028666011655
430.525025458560530.949949082878940.47497454143947
440.6856881583013890.6286236833972220.314311841698611
450.7654908679975220.4690182640049570.234509132002478







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.766666666666667NOK
5% type I error level250.833333333333333NOK
10% type I error level260.866666666666667NOK

\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 & 23 & 0.766666666666667 & NOK \tabularnewline
5% type I error level & 25 & 0.833333333333333 & NOK \tabularnewline
10% type I error level & 26 & 0.866666666666667 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57904&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]23[/C][C]0.766666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]25[/C][C]0.833333333333333[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]26[/C][C]0.866666666666667[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57904&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57904&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 level230.766666666666667NOK
5% type I error level250.833333333333333NOK
10% type I error level260.866666666666667NOK



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