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:20:52 -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/t1258658546xum0adogwxt3cj1.htm/, Retrieved Thu, 25 Apr 2024 11:20:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57910, Retrieved Thu, 25 Apr 2024 11:20:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact145
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] [e3c32faf833f030d3b397185b633f75f]
-   P         [Multiple Regression] [Multiple regression] [2009-11-19 19:20:52] [4996e0131d5120d29a6e9a8dccb25dc3] [Current]
-    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 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=57910&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=57910&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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
ICONS[t] = + 52.0164275074887 -0.0414585275913714WLH[t] -1.08025189735549M1[t] -5.10599152463905M2[t] -6.0625749461278M3[t] -2.88119657649014M4[t] -1.90810991237075M5[t] -2.60035782483614M6[t] -2.88331496422184M7[t] -4.20872969876033M8[t] -3.99118730436532M9[t] -4.21810064024594M10[t] -0.213546124149344M11[t] -0.28187790341837t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
ICONS[t] =  +  52.0164275074887 -0.0414585275913714WLH[t] -1.08025189735549M1[t] -5.10599152463905M2[t] -6.0625749461278M3[t] -2.88119657649014M4[t] -1.90810991237075M5[t] -2.60035782483614M6[t] -2.88331496422184M7[t] -4.20872969876033M8[t] -3.99118730436532M9[t] -4.21810064024594M10[t] -0.213546124149344M11[t] -0.28187790341837t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57910&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]ICONS[t] =  +  52.0164275074887 -0.0414585275913714WLH[t] -1.08025189735549M1[t] -5.10599152463905M2[t] -6.0625749461278M3[t] -2.88119657649014M4[t] -1.90810991237075M5[t] -2.60035782483614M6[t] -2.88331496422184M7[t] -4.20872969876033M8[t] -3.99118730436532M9[t] -4.21810064024594M10[t] -0.213546124149344M11[t] -0.28187790341837t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57910&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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] = + 52.0164275074887 -0.0414585275913714WLH[t] -1.08025189735549M1[t] -5.10599152463905M2[t] -6.0625749461278M3[t] -2.88119657649014M4[t] -1.90810991237075M5[t] -2.60035782483614M6[t] -2.88331496422184M7[t] -4.20872969876033M8[t] -3.99118730436532M9[t] -4.21810064024594M10[t] -0.213546124149344M11[t] -0.28187790341837t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)52.016427507488723.8921952.17710.0345270.017263
WLH-0.04145852759137140.036427-1.13810.260830.130415
M1-1.080251897355494.120547-0.26220.7943420.397171
M2-5.105991524639054.502715-1.1340.2625540.131277
M3-6.06257494612784.675074-1.29680.2010350.100518
M4-2.881196576490144.613657-0.62450.5353240.267662
M5-1.908109912370754.559214-0.41850.6774750.338738
M6-2.600357824836144.589188-0.56660.5736640.286832
M7-2.883314964221844.68833-0.6150.5415220.270761
M8-4.208729698760334.738206-0.88830.3789280.189464
M9-3.991187304365324.898516-0.81480.4193110.209655
M10-4.218100640245944.830029-0.87330.3869360.193468
M11-0.2135461241493444.274209-0.050.9603650.480182
t-0.281877903418370.07738-3.64280.0006710.000336

\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) & 52.0164275074887 & 23.892195 & 2.1771 & 0.034527 & 0.017263 \tabularnewline
WLH & -0.0414585275913714 & 0.036427 & -1.1381 & 0.26083 & 0.130415 \tabularnewline
M1 & -1.08025189735549 & 4.120547 & -0.2622 & 0.794342 & 0.397171 \tabularnewline
M2 & -5.10599152463905 & 4.502715 & -1.134 & 0.262554 & 0.131277 \tabularnewline
M3 & -6.0625749461278 & 4.675074 & -1.2968 & 0.201035 & 0.100518 \tabularnewline
M4 & -2.88119657649014 & 4.613657 & -0.6245 & 0.535324 & 0.267662 \tabularnewline
M5 & -1.90810991237075 & 4.559214 & -0.4185 & 0.677475 & 0.338738 \tabularnewline
M6 & -2.60035782483614 & 4.589188 & -0.5666 & 0.573664 & 0.286832 \tabularnewline
M7 & -2.88331496422184 & 4.68833 & -0.615 & 0.541522 & 0.270761 \tabularnewline
M8 & -4.20872969876033 & 4.738206 & -0.8883 & 0.378928 & 0.189464 \tabularnewline
M9 & -3.99118730436532 & 4.898516 & -0.8148 & 0.419311 & 0.209655 \tabularnewline
M10 & -4.21810064024594 & 4.830029 & -0.8733 & 0.386936 & 0.193468 \tabularnewline
M11 & -0.213546124149344 & 4.274209 & -0.05 & 0.960365 & 0.480182 \tabularnewline
t & -0.28187790341837 & 0.07738 & -3.6428 & 0.000671 & 0.000336 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57910&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]52.0164275074887[/C][C]23.892195[/C][C]2.1771[/C][C]0.034527[/C][C]0.017263[/C][/ROW]
[ROW][C]WLH[/C][C]-0.0414585275913714[/C][C]0.036427[/C][C]-1.1381[/C][C]0.26083[/C][C]0.130415[/C][/ROW]
[ROW][C]M1[/C][C]-1.08025189735549[/C][C]4.120547[/C][C]-0.2622[/C][C]0.794342[/C][C]0.397171[/C][/ROW]
[ROW][C]M2[/C][C]-5.10599152463905[/C][C]4.502715[/C][C]-1.134[/C][C]0.262554[/C][C]0.131277[/C][/ROW]
[ROW][C]M3[/C][C]-6.0625749461278[/C][C]4.675074[/C][C]-1.2968[/C][C]0.201035[/C][C]0.100518[/C][/ROW]
[ROW][C]M4[/C][C]-2.88119657649014[/C][C]4.613657[/C][C]-0.6245[/C][C]0.535324[/C][C]0.267662[/C][/ROW]
[ROW][C]M5[/C][C]-1.90810991237075[/C][C]4.559214[/C][C]-0.4185[/C][C]0.677475[/C][C]0.338738[/C][/ROW]
[ROW][C]M6[/C][C]-2.60035782483614[/C][C]4.589188[/C][C]-0.5666[/C][C]0.573664[/C][C]0.286832[/C][/ROW]
[ROW][C]M7[/C][C]-2.88331496422184[/C][C]4.68833[/C][C]-0.615[/C][C]0.541522[/C][C]0.270761[/C][/ROW]
[ROW][C]M8[/C][C]-4.20872969876033[/C][C]4.738206[/C][C]-0.8883[/C][C]0.378928[/C][C]0.189464[/C][/ROW]
[ROW][C]M9[/C][C]-3.99118730436532[/C][C]4.898516[/C][C]-0.8148[/C][C]0.419311[/C][C]0.209655[/C][/ROW]
[ROW][C]M10[/C][C]-4.21810064024594[/C][C]4.830029[/C][C]-0.8733[/C][C]0.386936[/C][C]0.193468[/C][/ROW]
[ROW][C]M11[/C][C]-0.213546124149344[/C][C]4.274209[/C][C]-0.05[/C][C]0.960365[/C][C]0.480182[/C][/ROW]
[ROW][C]t[/C][C]-0.28187790341837[/C][C]0.07738[/C][C]-3.6428[/C][C]0.000671[/C][C]0.000336[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57910&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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)52.016427507488723.8921952.17710.0345270.017263
WLH-0.04145852759137140.036427-1.13810.260830.130415
M1-1.080251897355494.120547-0.26220.7943420.397171
M2-5.105991524639054.502715-1.1340.2625540.131277
M3-6.06257494612784.675074-1.29680.2010350.100518
M4-2.881196576490144.613657-0.62450.5353240.267662
M5-1.908109912370754.559214-0.41850.6774750.338738
M6-2.600357824836144.589188-0.56660.5736640.286832
M7-2.883314964221844.68833-0.6150.5415220.270761
M8-4.208729698760334.738206-0.88830.3789280.189464
M9-3.991187304365324.898516-0.81480.4193110.209655
M10-4.218100640245944.830029-0.87330.3869360.193468
M11-0.2135461241493444.274209-0.050.9603650.480182
t-0.281877903418370.07738-3.64280.0006710.000336







Multiple Linear Regression - Regression Statistics
Multiple R0.55791164972303
R-squared0.311265408896673
Adjusted R-squared0.120764351782986
F-TEST (value)1.63393008738485
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.109387943459274
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.73486969870926
Sum Squared Residuals2131.84808335383

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.55791164972303 \tabularnewline
R-squared & 0.311265408896673 \tabularnewline
Adjusted R-squared & 0.120764351782986 \tabularnewline
F-TEST (value) & 1.63393008738485 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.109387943459274 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.73486969870926 \tabularnewline
Sum Squared Residuals & 2131.84808335383 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57910&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.55791164972303[/C][/ROW]
[ROW][C]R-squared[/C][C]0.311265408896673[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.120764351782986[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.63393008738485[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.109387943459274[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.73486969870926[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2131.84808335383[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57910&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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.55791164972303
R-squared0.311265408896673
Adjusted R-squared0.120764351782986
F-TEST (value)1.63393008738485
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.109387943459274
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.73486969870926
Sum Squared Residuals2131.84808335383







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11925.2402202932042-6.24022029320423
21821.015519817685-3.015519817685
31920.4818534618312-1.48185346183120
41923.3398954004591-4.33989540045913
52224.1969382715256-2.19693827152562
62323.3057295108246-0.305729510824605
72022.9481871059774-2.9481871059774
81421.7969382715256-7.79693827152563
91421.9813539280505-7.98135392805049
101421.3896456335688-7.38964563356877
111522.9564788114957-7.95647881149567
121122.5564788114957-11.5564788114957
131721.2358075383132-4.23580753831319
141617.5915264490732-1.5915264490732
152017.05786009321942.94213990678061
162419.87444350425594.12555649574406
172320.73148637532242.26851362467756
182019.88173614221280.118263857787203
192119.73148637532241.26851362467756
201918.37294490291380.62705509708619
212318.35006792148184.64993207851818
222317.84127668218285.15872331781716
232319.61540249806663.38459750193340
242319.29831955324933.70168044675065
252718.18494091802378.81505908197628
262615.203996270245710.7960037297543
271714.87762255234872.12237744765128
282418.15024976689045.84975023310964
292618.67562441722597.32437558277411
302418.19900093243865.80099906756142
312718.33896085868788.66103914131218
322716.980419386279210.0195806137208
332617.53796179112648.4620382088736
342417.52667288292396.47332711707611
352318.92767195048534.0723280495147
362318.44475489530264.55524510469744
372418.03617122913035.96382877086975
381714.35043161229892.64956838770111
392113.81676525644517.18323474355492
401916.55043161229892.44956838770112
412217.11726479022584.88273520977421
422216.51626572266445.48373427733563
431816.57330859373091.42669140626912
441615.09039153854810.90960846145187
451415.8966851089436-1.89668510894357
461215.0147671213222-3.01476712132224
471416.6645173544319-2.66451735443189
481616.3474344096146-0.347434409614636
49815.6486410503027-7.64864105030273
50311.8385258506972-8.83852585069725
51010.7658986361556-10.7658986361556
52513.0849797160957-8.0849797160957
53113.2786861457003-12.2786861457003
54112.0972676918596-11.0972676918596
55311.4080570662815-8.40805706628146
5669.75930590073324-3.75930590073324
57710.2339312503977-3.2339312503977
5889.22763768000226-1.22763768000226
591410.83592938552053.16407061447946
601410.35301233033783.64698766966221
61139.654218971025893.34578102897411

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19 & 25.2402202932042 & -6.24022029320423 \tabularnewline
2 & 18 & 21.015519817685 & -3.015519817685 \tabularnewline
3 & 19 & 20.4818534618312 & -1.48185346183120 \tabularnewline
4 & 19 & 23.3398954004591 & -4.33989540045913 \tabularnewline
5 & 22 & 24.1969382715256 & -2.19693827152562 \tabularnewline
6 & 23 & 23.3057295108246 & -0.305729510824605 \tabularnewline
7 & 20 & 22.9481871059774 & -2.9481871059774 \tabularnewline
8 & 14 & 21.7969382715256 & -7.79693827152563 \tabularnewline
9 & 14 & 21.9813539280505 & -7.98135392805049 \tabularnewline
10 & 14 & 21.3896456335688 & -7.38964563356877 \tabularnewline
11 & 15 & 22.9564788114957 & -7.95647881149567 \tabularnewline
12 & 11 & 22.5564788114957 & -11.5564788114957 \tabularnewline
13 & 17 & 21.2358075383132 & -4.23580753831319 \tabularnewline
14 & 16 & 17.5915264490732 & -1.5915264490732 \tabularnewline
15 & 20 & 17.0578600932194 & 2.94213990678061 \tabularnewline
16 & 24 & 19.8744435042559 & 4.12555649574406 \tabularnewline
17 & 23 & 20.7314863753224 & 2.26851362467756 \tabularnewline
18 & 20 & 19.8817361422128 & 0.118263857787203 \tabularnewline
19 & 21 & 19.7314863753224 & 1.26851362467756 \tabularnewline
20 & 19 & 18.3729449029138 & 0.62705509708619 \tabularnewline
21 & 23 & 18.3500679214818 & 4.64993207851818 \tabularnewline
22 & 23 & 17.8412766821828 & 5.15872331781716 \tabularnewline
23 & 23 & 19.6154024980666 & 3.38459750193340 \tabularnewline
24 & 23 & 19.2983195532493 & 3.70168044675065 \tabularnewline
25 & 27 & 18.1849409180237 & 8.81505908197628 \tabularnewline
26 & 26 & 15.2039962702457 & 10.7960037297543 \tabularnewline
27 & 17 & 14.8776225523487 & 2.12237744765128 \tabularnewline
28 & 24 & 18.1502497668904 & 5.84975023310964 \tabularnewline
29 & 26 & 18.6756244172259 & 7.32437558277411 \tabularnewline
30 & 24 & 18.1990009324386 & 5.80099906756142 \tabularnewline
31 & 27 & 18.3389608586878 & 8.66103914131218 \tabularnewline
32 & 27 & 16.9804193862792 & 10.0195806137208 \tabularnewline
33 & 26 & 17.5379617911264 & 8.4620382088736 \tabularnewline
34 & 24 & 17.5266728829239 & 6.47332711707611 \tabularnewline
35 & 23 & 18.9276719504853 & 4.0723280495147 \tabularnewline
36 & 23 & 18.4447548953026 & 4.55524510469744 \tabularnewline
37 & 24 & 18.0361712291303 & 5.96382877086975 \tabularnewline
38 & 17 & 14.3504316122989 & 2.64956838770111 \tabularnewline
39 & 21 & 13.8167652564451 & 7.18323474355492 \tabularnewline
40 & 19 & 16.5504316122989 & 2.44956838770112 \tabularnewline
41 & 22 & 17.1172647902258 & 4.88273520977421 \tabularnewline
42 & 22 & 16.5162657226644 & 5.48373427733563 \tabularnewline
43 & 18 & 16.5733085937309 & 1.42669140626912 \tabularnewline
44 & 16 & 15.0903915385481 & 0.90960846145187 \tabularnewline
45 & 14 & 15.8966851089436 & -1.89668510894357 \tabularnewline
46 & 12 & 15.0147671213222 & -3.01476712132224 \tabularnewline
47 & 14 & 16.6645173544319 & -2.66451735443189 \tabularnewline
48 & 16 & 16.3474344096146 & -0.347434409614636 \tabularnewline
49 & 8 & 15.6486410503027 & -7.64864105030273 \tabularnewline
50 & 3 & 11.8385258506972 & -8.83852585069725 \tabularnewline
51 & 0 & 10.7658986361556 & -10.7658986361556 \tabularnewline
52 & 5 & 13.0849797160957 & -8.0849797160957 \tabularnewline
53 & 1 & 13.2786861457003 & -12.2786861457003 \tabularnewline
54 & 1 & 12.0972676918596 & -11.0972676918596 \tabularnewline
55 & 3 & 11.4080570662815 & -8.40805706628146 \tabularnewline
56 & 6 & 9.75930590073324 & -3.75930590073324 \tabularnewline
57 & 7 & 10.2339312503977 & -3.2339312503977 \tabularnewline
58 & 8 & 9.22763768000226 & -1.22763768000226 \tabularnewline
59 & 14 & 10.8359293855205 & 3.16407061447946 \tabularnewline
60 & 14 & 10.3530123303378 & 3.64698766966221 \tabularnewline
61 & 13 & 9.65421897102589 & 3.34578102897411 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57910&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]25.2402202932042[/C][C]-6.24022029320423[/C][/ROW]
[ROW][C]2[/C][C]18[/C][C]21.015519817685[/C][C]-3.015519817685[/C][/ROW]
[ROW][C]3[/C][C]19[/C][C]20.4818534618312[/C][C]-1.48185346183120[/C][/ROW]
[ROW][C]4[/C][C]19[/C][C]23.3398954004591[/C][C]-4.33989540045913[/C][/ROW]
[ROW][C]5[/C][C]22[/C][C]24.1969382715256[/C][C]-2.19693827152562[/C][/ROW]
[ROW][C]6[/C][C]23[/C][C]23.3057295108246[/C][C]-0.305729510824605[/C][/ROW]
[ROW][C]7[/C][C]20[/C][C]22.9481871059774[/C][C]-2.9481871059774[/C][/ROW]
[ROW][C]8[/C][C]14[/C][C]21.7969382715256[/C][C]-7.79693827152563[/C][/ROW]
[ROW][C]9[/C][C]14[/C][C]21.9813539280505[/C][C]-7.98135392805049[/C][/ROW]
[ROW][C]10[/C][C]14[/C][C]21.3896456335688[/C][C]-7.38964563356877[/C][/ROW]
[ROW][C]11[/C][C]15[/C][C]22.9564788114957[/C][C]-7.95647881149567[/C][/ROW]
[ROW][C]12[/C][C]11[/C][C]22.5564788114957[/C][C]-11.5564788114957[/C][/ROW]
[ROW][C]13[/C][C]17[/C][C]21.2358075383132[/C][C]-4.23580753831319[/C][/ROW]
[ROW][C]14[/C][C]16[/C][C]17.5915264490732[/C][C]-1.5915264490732[/C][/ROW]
[ROW][C]15[/C][C]20[/C][C]17.0578600932194[/C][C]2.94213990678061[/C][/ROW]
[ROW][C]16[/C][C]24[/C][C]19.8744435042559[/C][C]4.12555649574406[/C][/ROW]
[ROW][C]17[/C][C]23[/C][C]20.7314863753224[/C][C]2.26851362467756[/C][/ROW]
[ROW][C]18[/C][C]20[/C][C]19.8817361422128[/C][C]0.118263857787203[/C][/ROW]
[ROW][C]19[/C][C]21[/C][C]19.7314863753224[/C][C]1.26851362467756[/C][/ROW]
[ROW][C]20[/C][C]19[/C][C]18.3729449029138[/C][C]0.62705509708619[/C][/ROW]
[ROW][C]21[/C][C]23[/C][C]18.3500679214818[/C][C]4.64993207851818[/C][/ROW]
[ROW][C]22[/C][C]23[/C][C]17.8412766821828[/C][C]5.15872331781716[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]19.6154024980666[/C][C]3.38459750193340[/C][/ROW]
[ROW][C]24[/C][C]23[/C][C]19.2983195532493[/C][C]3.70168044675065[/C][/ROW]
[ROW][C]25[/C][C]27[/C][C]18.1849409180237[/C][C]8.81505908197628[/C][/ROW]
[ROW][C]26[/C][C]26[/C][C]15.2039962702457[/C][C]10.7960037297543[/C][/ROW]
[ROW][C]27[/C][C]17[/C][C]14.8776225523487[/C][C]2.12237744765128[/C][/ROW]
[ROW][C]28[/C][C]24[/C][C]18.1502497668904[/C][C]5.84975023310964[/C][/ROW]
[ROW][C]29[/C][C]26[/C][C]18.6756244172259[/C][C]7.32437558277411[/C][/ROW]
[ROW][C]30[/C][C]24[/C][C]18.1990009324386[/C][C]5.80099906756142[/C][/ROW]
[ROW][C]31[/C][C]27[/C][C]18.3389608586878[/C][C]8.66103914131218[/C][/ROW]
[ROW][C]32[/C][C]27[/C][C]16.9804193862792[/C][C]10.0195806137208[/C][/ROW]
[ROW][C]33[/C][C]26[/C][C]17.5379617911264[/C][C]8.4620382088736[/C][/ROW]
[ROW][C]34[/C][C]24[/C][C]17.5266728829239[/C][C]6.47332711707611[/C][/ROW]
[ROW][C]35[/C][C]23[/C][C]18.9276719504853[/C][C]4.0723280495147[/C][/ROW]
[ROW][C]36[/C][C]23[/C][C]18.4447548953026[/C][C]4.55524510469744[/C][/ROW]
[ROW][C]37[/C][C]24[/C][C]18.0361712291303[/C][C]5.96382877086975[/C][/ROW]
[ROW][C]38[/C][C]17[/C][C]14.3504316122989[/C][C]2.64956838770111[/C][/ROW]
[ROW][C]39[/C][C]21[/C][C]13.8167652564451[/C][C]7.18323474355492[/C][/ROW]
[ROW][C]40[/C][C]19[/C][C]16.5504316122989[/C][C]2.44956838770112[/C][/ROW]
[ROW][C]41[/C][C]22[/C][C]17.1172647902258[/C][C]4.88273520977421[/C][/ROW]
[ROW][C]42[/C][C]22[/C][C]16.5162657226644[/C][C]5.48373427733563[/C][/ROW]
[ROW][C]43[/C][C]18[/C][C]16.5733085937309[/C][C]1.42669140626912[/C][/ROW]
[ROW][C]44[/C][C]16[/C][C]15.0903915385481[/C][C]0.90960846145187[/C][/ROW]
[ROW][C]45[/C][C]14[/C][C]15.8966851089436[/C][C]-1.89668510894357[/C][/ROW]
[ROW][C]46[/C][C]12[/C][C]15.0147671213222[/C][C]-3.01476712132224[/C][/ROW]
[ROW][C]47[/C][C]14[/C][C]16.6645173544319[/C][C]-2.66451735443189[/C][/ROW]
[ROW][C]48[/C][C]16[/C][C]16.3474344096146[/C][C]-0.347434409614636[/C][/ROW]
[ROW][C]49[/C][C]8[/C][C]15.6486410503027[/C][C]-7.64864105030273[/C][/ROW]
[ROW][C]50[/C][C]3[/C][C]11.8385258506972[/C][C]-8.83852585069725[/C][/ROW]
[ROW][C]51[/C][C]0[/C][C]10.7658986361556[/C][C]-10.7658986361556[/C][/ROW]
[ROW][C]52[/C][C]5[/C][C]13.0849797160957[/C][C]-8.0849797160957[/C][/ROW]
[ROW][C]53[/C][C]1[/C][C]13.2786861457003[/C][C]-12.2786861457003[/C][/ROW]
[ROW][C]54[/C][C]1[/C][C]12.0972676918596[/C][C]-11.0972676918596[/C][/ROW]
[ROW][C]55[/C][C]3[/C][C]11.4080570662815[/C][C]-8.40805706628146[/C][/ROW]
[ROW][C]56[/C][C]6[/C][C]9.75930590073324[/C][C]-3.75930590073324[/C][/ROW]
[ROW][C]57[/C][C]7[/C][C]10.2339312503977[/C][C]-3.2339312503977[/C][/ROW]
[ROW][C]58[/C][C]8[/C][C]9.22763768000226[/C][C]-1.22763768000226[/C][/ROW]
[ROW][C]59[/C][C]14[/C][C]10.8359293855205[/C][C]3.16407061447946[/C][/ROW]
[ROW][C]60[/C][C]14[/C][C]10.3530123303378[/C][C]3.64698766966221[/C][/ROW]
[ROW][C]61[/C][C]13[/C][C]9.65421897102589[/C][C]3.34578102897411[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57910&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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
11925.2402202932042-6.24022029320423
21821.015519817685-3.015519817685
31920.4818534618312-1.48185346183120
41923.3398954004591-4.33989540045913
52224.1969382715256-2.19693827152562
62323.3057295108246-0.305729510824605
72022.9481871059774-2.9481871059774
81421.7969382715256-7.79693827152563
91421.9813539280505-7.98135392805049
101421.3896456335688-7.38964563356877
111522.9564788114957-7.95647881149567
121122.5564788114957-11.5564788114957
131721.2358075383132-4.23580753831319
141617.5915264490732-1.5915264490732
152017.05786009321942.94213990678061
162419.87444350425594.12555649574406
172320.73148637532242.26851362467756
182019.88173614221280.118263857787203
192119.73148637532241.26851362467756
201918.37294490291380.62705509708619
212318.35006792148184.64993207851818
222317.84127668218285.15872331781716
232319.61540249806663.38459750193340
242319.29831955324933.70168044675065
252718.18494091802378.81505908197628
262615.203996270245710.7960037297543
271714.87762255234872.12237744765128
282418.15024976689045.84975023310964
292618.67562441722597.32437558277411
302418.19900093243865.80099906756142
312718.33896085868788.66103914131218
322716.980419386279210.0195806137208
332617.53796179112648.4620382088736
342417.52667288292396.47332711707611
352318.92767195048534.0723280495147
362318.44475489530264.55524510469744
372418.03617122913035.96382877086975
381714.35043161229892.64956838770111
392113.81676525644517.18323474355492
401916.55043161229892.44956838770112
412217.11726479022584.88273520977421
422216.51626572266445.48373427733563
431816.57330859373091.42669140626912
441615.09039153854810.90960846145187
451415.8966851089436-1.89668510894357
461215.0147671213222-3.01476712132224
471416.6645173544319-2.66451735443189
481616.3474344096146-0.347434409614636
49815.6486410503027-7.64864105030273
50311.8385258506972-8.83852585069725
51010.7658986361556-10.7658986361556
52513.0849797160957-8.0849797160957
53113.2786861457003-12.2786861457003
54112.0972676918596-11.0972676918596
55311.4080570662815-8.40805706628146
5669.75930590073324-3.75930590073324
57710.2339312503977-3.2339312503977
5889.22763768000226-1.22763768000226
591410.83592938552053.16407061447946
601410.35301233033783.64698766966221
61139.654218971025893.34578102897411







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.06654941162138960.1330988232427790.93345058837861
180.04673178465334820.09346356930669630.953268215346652
190.01714654178434410.03429308356868820.982853458215656
200.01847515182307950.03695030364615900.98152484817692
210.05971161605591350.1194232321118270.940288383944087
220.08011447231533680.1602289446306740.919885527684663
230.08634415378060370.1726883075612070.913655846219396
240.1708203596882030.3416407193764060.829179640311797
250.1456741811630360.2913483623260720.854325818836964
260.0986088166252830.1972176332505660.901391183374717
270.2561866377249120.5123732754498230.743813362275088
280.2024812580166110.4049625160332220.797518741983389
290.1451335733396230.2902671466792460.854866426660377
300.1108668096165570.2217336192331150.889133190383443
310.08337719791757930.1667543958351590.91662280208242
320.0806136201165370.1612272402330740.919386379883463
330.05344783552716420.1068956710543280.946552164472836
340.03154591474903050.0630918294980610.96845408525097
350.03172129094585340.06344258189170680.968278709054147
360.08034056418631010.1606811283726200.91965943581369
370.1545972688194260.3091945376388520.845402731180574
380.4296581936959830.8593163873919660.570341806304017
390.3632960291722090.7265920583444170.636703970827791
400.8086823998886060.3826352002227880.191317600111394
410.9213496658188760.1573006683622490.0786503341811245
420.9295911014785660.1408177970428680.0704088985214338
430.8721157768048740.2557684463902510.127884223195126
440.795878779855390.4082424402892220.204121220144611

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0665494116213896 & 0.133098823242779 & 0.93345058837861 \tabularnewline
18 & 0.0467317846533482 & 0.0934635693066963 & 0.953268215346652 \tabularnewline
19 & 0.0171465417843441 & 0.0342930835686882 & 0.982853458215656 \tabularnewline
20 & 0.0184751518230795 & 0.0369503036461590 & 0.98152484817692 \tabularnewline
21 & 0.0597116160559135 & 0.119423232111827 & 0.940288383944087 \tabularnewline
22 & 0.0801144723153368 & 0.160228944630674 & 0.919885527684663 \tabularnewline
23 & 0.0863441537806037 & 0.172688307561207 & 0.913655846219396 \tabularnewline
24 & 0.170820359688203 & 0.341640719376406 & 0.829179640311797 \tabularnewline
25 & 0.145674181163036 & 0.291348362326072 & 0.854325818836964 \tabularnewline
26 & 0.098608816625283 & 0.197217633250566 & 0.901391183374717 \tabularnewline
27 & 0.256186637724912 & 0.512373275449823 & 0.743813362275088 \tabularnewline
28 & 0.202481258016611 & 0.404962516033222 & 0.797518741983389 \tabularnewline
29 & 0.145133573339623 & 0.290267146679246 & 0.854866426660377 \tabularnewline
30 & 0.110866809616557 & 0.221733619233115 & 0.889133190383443 \tabularnewline
31 & 0.0833771979175793 & 0.166754395835159 & 0.91662280208242 \tabularnewline
32 & 0.080613620116537 & 0.161227240233074 & 0.919386379883463 \tabularnewline
33 & 0.0534478355271642 & 0.106895671054328 & 0.946552164472836 \tabularnewline
34 & 0.0315459147490305 & 0.063091829498061 & 0.96845408525097 \tabularnewline
35 & 0.0317212909458534 & 0.0634425818917068 & 0.968278709054147 \tabularnewline
36 & 0.0803405641863101 & 0.160681128372620 & 0.91965943581369 \tabularnewline
37 & 0.154597268819426 & 0.309194537638852 & 0.845402731180574 \tabularnewline
38 & 0.429658193695983 & 0.859316387391966 & 0.570341806304017 \tabularnewline
39 & 0.363296029172209 & 0.726592058344417 & 0.636703970827791 \tabularnewline
40 & 0.808682399888606 & 0.382635200222788 & 0.191317600111394 \tabularnewline
41 & 0.921349665818876 & 0.157300668362249 & 0.0786503341811245 \tabularnewline
42 & 0.929591101478566 & 0.140817797042868 & 0.0704088985214338 \tabularnewline
43 & 0.872115776804874 & 0.255768446390251 & 0.127884223195126 \tabularnewline
44 & 0.79587877985539 & 0.408242440289222 & 0.204121220144611 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57910&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]17[/C][C]0.0665494116213896[/C][C]0.133098823242779[/C][C]0.93345058837861[/C][/ROW]
[ROW][C]18[/C][C]0.0467317846533482[/C][C]0.0934635693066963[/C][C]0.953268215346652[/C][/ROW]
[ROW][C]19[/C][C]0.0171465417843441[/C][C]0.0342930835686882[/C][C]0.982853458215656[/C][/ROW]
[ROW][C]20[/C][C]0.0184751518230795[/C][C]0.0369503036461590[/C][C]0.98152484817692[/C][/ROW]
[ROW][C]21[/C][C]0.0597116160559135[/C][C]0.119423232111827[/C][C]0.940288383944087[/C][/ROW]
[ROW][C]22[/C][C]0.0801144723153368[/C][C]0.160228944630674[/C][C]0.919885527684663[/C][/ROW]
[ROW][C]23[/C][C]0.0863441537806037[/C][C]0.172688307561207[/C][C]0.913655846219396[/C][/ROW]
[ROW][C]24[/C][C]0.170820359688203[/C][C]0.341640719376406[/C][C]0.829179640311797[/C][/ROW]
[ROW][C]25[/C][C]0.145674181163036[/C][C]0.291348362326072[/C][C]0.854325818836964[/C][/ROW]
[ROW][C]26[/C][C]0.098608816625283[/C][C]0.197217633250566[/C][C]0.901391183374717[/C][/ROW]
[ROW][C]27[/C][C]0.256186637724912[/C][C]0.512373275449823[/C][C]0.743813362275088[/C][/ROW]
[ROW][C]28[/C][C]0.202481258016611[/C][C]0.404962516033222[/C][C]0.797518741983389[/C][/ROW]
[ROW][C]29[/C][C]0.145133573339623[/C][C]0.290267146679246[/C][C]0.854866426660377[/C][/ROW]
[ROW][C]30[/C][C]0.110866809616557[/C][C]0.221733619233115[/C][C]0.889133190383443[/C][/ROW]
[ROW][C]31[/C][C]0.0833771979175793[/C][C]0.166754395835159[/C][C]0.91662280208242[/C][/ROW]
[ROW][C]32[/C][C]0.080613620116537[/C][C]0.161227240233074[/C][C]0.919386379883463[/C][/ROW]
[ROW][C]33[/C][C]0.0534478355271642[/C][C]0.106895671054328[/C][C]0.946552164472836[/C][/ROW]
[ROW][C]34[/C][C]0.0315459147490305[/C][C]0.063091829498061[/C][C]0.96845408525097[/C][/ROW]
[ROW][C]35[/C][C]0.0317212909458534[/C][C]0.0634425818917068[/C][C]0.968278709054147[/C][/ROW]
[ROW][C]36[/C][C]0.0803405641863101[/C][C]0.160681128372620[/C][C]0.91965943581369[/C][/ROW]
[ROW][C]37[/C][C]0.154597268819426[/C][C]0.309194537638852[/C][C]0.845402731180574[/C][/ROW]
[ROW][C]38[/C][C]0.429658193695983[/C][C]0.859316387391966[/C][C]0.570341806304017[/C][/ROW]
[ROW][C]39[/C][C]0.363296029172209[/C][C]0.726592058344417[/C][C]0.636703970827791[/C][/ROW]
[ROW][C]40[/C][C]0.808682399888606[/C][C]0.382635200222788[/C][C]0.191317600111394[/C][/ROW]
[ROW][C]41[/C][C]0.921349665818876[/C][C]0.157300668362249[/C][C]0.0786503341811245[/C][/ROW]
[ROW][C]42[/C][C]0.929591101478566[/C][C]0.140817797042868[/C][C]0.0704088985214338[/C][/ROW]
[ROW][C]43[/C][C]0.872115776804874[/C][C]0.255768446390251[/C][C]0.127884223195126[/C][/ROW]
[ROW][C]44[/C][C]0.79587877985539[/C][C]0.408242440289222[/C][C]0.204121220144611[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57910&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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
170.06654941162138960.1330988232427790.93345058837861
180.04673178465334820.09346356930669630.953268215346652
190.01714654178434410.03429308356868820.982853458215656
200.01847515182307950.03695030364615900.98152484817692
210.05971161605591350.1194232321118270.940288383944087
220.08011447231533680.1602289446306740.919885527684663
230.08634415378060370.1726883075612070.913655846219396
240.1708203596882030.3416407193764060.829179640311797
250.1456741811630360.2913483623260720.854325818836964
260.0986088166252830.1972176332505660.901391183374717
270.2561866377249120.5123732754498230.743813362275088
280.2024812580166110.4049625160332220.797518741983389
290.1451335733396230.2902671466792460.854866426660377
300.1108668096165570.2217336192331150.889133190383443
310.08337719791757930.1667543958351590.91662280208242
320.0806136201165370.1612272402330740.919386379883463
330.05344783552716420.1068956710543280.946552164472836
340.03154591474903050.0630918294980610.96845408525097
350.03172129094585340.06344258189170680.968278709054147
360.08034056418631010.1606811283726200.91965943581369
370.1545972688194260.3091945376388520.845402731180574
380.4296581936959830.8593163873919660.570341806304017
390.3632960291722090.7265920583444170.636703970827791
400.8086823998886060.3826352002227880.191317600111394
410.9213496658188760.1573006683622490.0786503341811245
420.9295911014785660.1408177970428680.0704088985214338
430.8721157768048740.2557684463902510.127884223195126
440.795878779855390.4082424402892220.204121220144611







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0714285714285714NOK
10% type I error level50.178571428571429NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57910&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 level00OK
5% type I error level20.0714285714285714NOK
10% type I error level50.178571428571429NOK



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