Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 15 Dec 2009 09:14:46 -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/Dec/15/t1260893760dgmy7bl50g3chph.htm/, Retrieved Thu, 02 May 2024 10:01:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68021, Retrieved Thu, 02 May 2024 10:01:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
F    D    [Multiple Regression] [] [2009-11-20 14:29:56] [e149fd9094b67af26551857fa83a9d9d]
-    D        [Multiple Regression] [] [2009-12-15 16:14:46] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

Post a new message
Dataseries X:
594	0	611	613	611	594
595	0	594	611	613	611
591	0	595	594	611	613
589	0	591	595	594	611
584	0	589	591	595	594
573	0	584	589	591	595
567	0	573	584	589	591
569	0	567	573	584	589
621	0	569	567	573	584
629	0	621	569	567	573
628	0	629	621	569	567
612	0	628	629	621	569
595	0	612	628	629	621
597	0	595	612	628	629
593	0	597	595	612	628
590	0	593	597	595	612
580	0	590	593	597	595
574	0	580	590	593	597
573	0	574	580	590	593
573	0	573	574	580	590
620	0	573	573	574	580
626	0	620	573	573	574
620	0	626	620	573	573
588	0	620	626	620	573
566	0	588	620	626	620
557	0	566	588	620	626
561	0	557	566	588	620
549	0	561	557	566	588
532	0	549	561	557	566
526	0	532	549	561	557
511	0	526	532	549	561
499	0	511	526	532	549
555	0	499	511	526	532
565	0	555	499	511	526
542	0	565	555	499	511
527	0	542	565	555	499
510	0	527	542	565	555
514	0	510	527	542	565
517	0	514	510	527	542
508	0	517	514	510	527
493	0	508	517	514	510
490	0	493	508	517	514
469	0	490	493	508	517
478	0	469	490	493	508
528	0	478	469	490	493
534	0	528	478	469	490
518	1	534	528	478	469
506	1	518	534	528	478
502	1	506	518	534	528
516	1	502	506	518	534
528	1	516	502	506	518
533	1	528	516	502	506
536	1	533	528	516	502
537	1	536	533	528	516
524	1	537	536	533	528
536	1	524	537	536	533
587	1	536	524	537	536
597	1	587	536	524	537
581	1	597	587	536	524
564	1	581	597	587	536
558	1	564	581	597	587




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 18.1060876871175 + 12.0059262813842X[t] + 0.882180375958156Y1[t] + 0.0827073052168757Y2[t] + 0.0159908284361135Y3[t] -0.0437113176740089Y4[t] + 5.76211827668037M1[t] + 22.5118645785743M2[t] + 23.9561811611634M3[t] + 17.4162490894352M4[t] + 11.6541761387199M5[t] + 15.0607192910846M6[t] + 9.38902965726225M7[t] + 22.0663759722488M8[t] + 72.1734533323831M9[t] + 35.0106605241267M10[t] + 8.61892947473618M11[t] -0.226257822163898t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  18.1060876871175 +  12.0059262813842X[t] +  0.882180375958156Y1[t] +  0.0827073052168757Y2[t] +  0.0159908284361135Y3[t] -0.0437113176740089Y4[t] +  5.76211827668037M1[t] +  22.5118645785743M2[t] +  23.9561811611634M3[t] +  17.4162490894352M4[t] +  11.6541761387199M5[t] +  15.0607192910846M6[t] +  9.38902965726225M7[t] +  22.0663759722488M8[t] +  72.1734533323831M9[t] +  35.0106605241267M10[t] +  8.61892947473618M11[t] -0.226257822163898t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68021&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  18.1060876871175 +  12.0059262813842X[t] +  0.882180375958156Y1[t] +  0.0827073052168757Y2[t] +  0.0159908284361135Y3[t] -0.0437113176740089Y4[t] +  5.76211827668037M1[t] +  22.5118645785743M2[t] +  23.9561811611634M3[t] +  17.4162490894352M4[t] +  11.6541761387199M5[t] +  15.0607192910846M6[t] +  9.38902965726225M7[t] +  22.0663759722488M8[t] +  72.1734533323831M9[t] +  35.0106605241267M10[t] +  8.61892947473618M11[t] -0.226257822163898t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68021&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 18.1060876871175 + 12.0059262813842X[t] + 0.882180375958156Y1[t] + 0.0827073052168757Y2[t] + 0.0159908284361135Y3[t] -0.0437113176740089Y4[t] + 5.76211827668037M1[t] + 22.5118645785743M2[t] + 23.9561811611634M3[t] + 17.4162490894352M4[t] + 11.6541761387199M5[t] + 15.0607192910846M6[t] + 9.38902965726225M7[t] + 22.0663759722488M8[t] + 72.1734533323831M9[t] + 35.0106605241267M10[t] + 8.61892947473618M11[t] -0.226257822163898t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)18.106087687117525.6024040.70720.4832560.241628
X12.00592628138424.0028422.99940.0044860.002243
Y10.8821803759581560.1438426.13300
Y20.08270730521687570.1983260.4170.6787330.339367
Y30.01599082843611350.1988140.08040.9362670.468134
Y4-0.04371131767400890.141035-0.30990.7581090.379055
M15.762118276680377.2967410.78970.4340460.217023
M222.51186457857439.5986052.34530.0236940.011847
M323.956181161163410.7515012.22820.0311510.015575
M417.416249089435210.3838591.67720.1007510.050375
M511.65417613871997.9805241.46030.1514690.075734
M615.06071929108467.960881.89180.0652590.032629
M79.389029657262258.8880241.05640.2966990.148349
M822.06637597224889.2277862.39130.0212360.010618
M972.17345333238319.2724237.783700
M1035.010660524126713.472852.59860.0127710.006385
M118.6189294747361810.489620.82170.4158020.207901
t-0.2262578221638980.118262-1.91320.0623970.031199

\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.1060876871175 & 25.602404 & 0.7072 & 0.483256 & 0.241628 \tabularnewline
X & 12.0059262813842 & 4.002842 & 2.9994 & 0.004486 & 0.002243 \tabularnewline
Y1 & 0.882180375958156 & 0.143842 & 6.133 & 0 & 0 \tabularnewline
Y2 & 0.0827073052168757 & 0.198326 & 0.417 & 0.678733 & 0.339367 \tabularnewline
Y3 & 0.0159908284361135 & 0.198814 & 0.0804 & 0.936267 & 0.468134 \tabularnewline
Y4 & -0.0437113176740089 & 0.141035 & -0.3099 & 0.758109 & 0.379055 \tabularnewline
M1 & 5.76211827668037 & 7.296741 & 0.7897 & 0.434046 & 0.217023 \tabularnewline
M2 & 22.5118645785743 & 9.598605 & 2.3453 & 0.023694 & 0.011847 \tabularnewline
M3 & 23.9561811611634 & 10.751501 & 2.2282 & 0.031151 & 0.015575 \tabularnewline
M4 & 17.4162490894352 & 10.383859 & 1.6772 & 0.100751 & 0.050375 \tabularnewline
M5 & 11.6541761387199 & 7.980524 & 1.4603 & 0.151469 & 0.075734 \tabularnewline
M6 & 15.0607192910846 & 7.96088 & 1.8918 & 0.065259 & 0.032629 \tabularnewline
M7 & 9.38902965726225 & 8.888024 & 1.0564 & 0.296699 & 0.148349 \tabularnewline
M8 & 22.0663759722488 & 9.227786 & 2.3913 & 0.021236 & 0.010618 \tabularnewline
M9 & 72.1734533323831 & 9.272423 & 7.7837 & 0 & 0 \tabularnewline
M10 & 35.0106605241267 & 13.47285 & 2.5986 & 0.012771 & 0.006385 \tabularnewline
M11 & 8.61892947473618 & 10.48962 & 0.8217 & 0.415802 & 0.207901 \tabularnewline
t & -0.226257822163898 & 0.118262 & -1.9132 & 0.062397 & 0.031199 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68021&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.1060876871175[/C][C]25.602404[/C][C]0.7072[/C][C]0.483256[/C][C]0.241628[/C][/ROW]
[ROW][C]X[/C][C]12.0059262813842[/C][C]4.002842[/C][C]2.9994[/C][C]0.004486[/C][C]0.002243[/C][/ROW]
[ROW][C]Y1[/C][C]0.882180375958156[/C][C]0.143842[/C][C]6.133[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0827073052168757[/C][C]0.198326[/C][C]0.417[/C][C]0.678733[/C][C]0.339367[/C][/ROW]
[ROW][C]Y3[/C][C]0.0159908284361135[/C][C]0.198814[/C][C]0.0804[/C][C]0.936267[/C][C]0.468134[/C][/ROW]
[ROW][C]Y4[/C][C]-0.0437113176740089[/C][C]0.141035[/C][C]-0.3099[/C][C]0.758109[/C][C]0.379055[/C][/ROW]
[ROW][C]M1[/C][C]5.76211827668037[/C][C]7.296741[/C][C]0.7897[/C][C]0.434046[/C][C]0.217023[/C][/ROW]
[ROW][C]M2[/C][C]22.5118645785743[/C][C]9.598605[/C][C]2.3453[/C][C]0.023694[/C][C]0.011847[/C][/ROW]
[ROW][C]M3[/C][C]23.9561811611634[/C][C]10.751501[/C][C]2.2282[/C][C]0.031151[/C][C]0.015575[/C][/ROW]
[ROW][C]M4[/C][C]17.4162490894352[/C][C]10.383859[/C][C]1.6772[/C][C]0.100751[/C][C]0.050375[/C][/ROW]
[ROW][C]M5[/C][C]11.6541761387199[/C][C]7.980524[/C][C]1.4603[/C][C]0.151469[/C][C]0.075734[/C][/ROW]
[ROW][C]M6[/C][C]15.0607192910846[/C][C]7.96088[/C][C]1.8918[/C][C]0.065259[/C][C]0.032629[/C][/ROW]
[ROW][C]M7[/C][C]9.38902965726225[/C][C]8.888024[/C][C]1.0564[/C][C]0.296699[/C][C]0.148349[/C][/ROW]
[ROW][C]M8[/C][C]22.0663759722488[/C][C]9.227786[/C][C]2.3913[/C][C]0.021236[/C][C]0.010618[/C][/ROW]
[ROW][C]M9[/C][C]72.1734533323831[/C][C]9.272423[/C][C]7.7837[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]35.0106605241267[/C][C]13.47285[/C][C]2.5986[/C][C]0.012771[/C][C]0.006385[/C][/ROW]
[ROW][C]M11[/C][C]8.61892947473618[/C][C]10.48962[/C][C]0.8217[/C][C]0.415802[/C][C]0.207901[/C][/ROW]
[ROW][C]t[/C][C]-0.226257822163898[/C][C]0.118262[/C][C]-1.9132[/C][C]0.062397[/C][C]0.031199[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68021&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68021&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.106087687117525.6024040.70720.4832560.241628
X12.00592628138424.0028422.99940.0044860.002243
Y10.8821803759581560.1438426.13300
Y20.08270730521687570.1983260.4170.6787330.339367
Y30.01599082843611350.1988140.08040.9362670.468134
Y4-0.04371131767400890.141035-0.30990.7581090.379055
M15.762118276680377.2967410.78970.4340460.217023
M222.51186457857439.5986052.34530.0236940.011847
M323.956181161163410.7515012.22820.0311510.015575
M417.416249089435210.3838591.67720.1007510.050375
M511.65417613871997.9805241.46030.1514690.075734
M615.06071929108467.960881.89180.0652590.032629
M79.389029657262258.8880241.05640.2966990.148349
M822.06637597224889.2277862.39130.0212360.010618
M972.17345333238319.2724237.783700
M1035.010660524126713.472852.59860.0127710.006385
M118.6189294747361810.489620.82170.4158020.207901
t-0.2262578221638980.118262-1.91320.0623970.031199







Multiple Linear Regression - Regression Statistics
Multiple R0.991373738052704
R-squared0.982821888500591
Adjusted R-squared0.976030542093848
F-TEST (value)144.716795409636
F-TEST (DF numerator)17
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.32429195090337
Sum Squared Residuals1719.85675325123

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.991373738052704 \tabularnewline
R-squared & 0.982821888500591 \tabularnewline
Adjusted R-squared & 0.976030542093848 \tabularnewline
F-TEST (value) & 144.716795409636 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.32429195090337 \tabularnewline
Sum Squared Residuals & 1719.85675325123 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68021&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.991373738052704[/C][/ROW]
[ROW][C]R-squared[/C][C]0.982821888500591[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.976030542093848[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]144.716795409636[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.32429195090337[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1719.85675325123[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68021&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68021&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.991373738052704
R-squared0.982821888500591
Adjusted R-squared0.976030542093848
F-TEST (value)144.716795409636
F-TEST (DF numerator)17
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.32429195090337
Sum Squared Residuals1719.85675325123







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1594597.159609426116-3.15960942611592
2595597.809506160538-2.80950616053790
3591598.384316816014-7.38431681601391
4589587.987691275441.01230872455958
5584580.6632537586723.33674624132844
6573579.15954796723-6.1595479672294
7567563.2869434634433.71305653655711
8569569.542637836298-0.542637836298484
9621620.7342317704570.265768229543422
10629629.768854824092-0.76885482409166
11628614.80333839439613.1966616056037
12612606.4817296066035.5182703933971
13595595.674934849013-0.674934849012486
14597595.5123586841561.48764131584432
15593596.876612070506-3.87661207050647
16590587.1746522825862.82534771741423
17580578.9840252182951.01597478170509
18574572.9429989241711.05700107582893
19573561.05176894565511.9482310543451
20573572.0956588998790.904341100120988
21620622.234939338756-2.23493933875593
22626626.554643455977-0.554643455976893
23620609.16069150303810.8393084969615
24588596.270234718188-8.27023471818812
25566571.12159235068-5.12159235068064
26557565.23226591573-8.23226591573049
27561556.4417019738494.55829802615049
28549553.506831776812-4.50683177681194
29532538.080897246205-6.08089724620548
30526525.7289936953260.271006304674322
31511512.765204582974-1.76520458297425
32499511.740035333797-12.7400353337975
33555550.4412282118584.55877178814162
34565561.4841964519953.51580354800536
35542548.783400256043-6.78340025604353
36527521.8951595687855.10484043121488
37510510.008120858558-0.00812085855775108
38514509.4890311379754.51096886202470
39517513.5952850935073.40471490649321
40508510.190291230053-2.19029123005287
41493497.317514703403-4.31751470340342
42490486.3938558618923.60614413810766
43469476.333706290831-7.33370629083146
44478470.1644244054077.83557559459338
45528526.8557111972481.14428880275219
46534534.115371667551-0.115371667550825
47518529.993611721053-11.9936117210525
48506507.935921802863-1.93592180286277
49502499.4726799493282.52732005067240
50516510.9568381016015.04316189839939
51528524.7020840461233.29791595387669
52533530.1405334351092.85946656489101
53536529.9543090734256.04569092657538
54537535.7746035513811.22539644861848
55524530.562376717097-6.56237671709654
56536531.4572435246184.54275647538163
57587590.733889481681-3.73388948168130
58597599.076933600386-2.07693360038598
59581586.258958125469-5.25895812546921
60564564.416954303561-0.416954303561106
61558551.5630625663066.4369374336944

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 594 & 597.159609426116 & -3.15960942611592 \tabularnewline
2 & 595 & 597.809506160538 & -2.80950616053790 \tabularnewline
3 & 591 & 598.384316816014 & -7.38431681601391 \tabularnewline
4 & 589 & 587.98769127544 & 1.01230872455958 \tabularnewline
5 & 584 & 580.663253758672 & 3.33674624132844 \tabularnewline
6 & 573 & 579.15954796723 & -6.1595479672294 \tabularnewline
7 & 567 & 563.286943463443 & 3.71305653655711 \tabularnewline
8 & 569 & 569.542637836298 & -0.542637836298484 \tabularnewline
9 & 621 & 620.734231770457 & 0.265768229543422 \tabularnewline
10 & 629 & 629.768854824092 & -0.76885482409166 \tabularnewline
11 & 628 & 614.803338394396 & 13.1966616056037 \tabularnewline
12 & 612 & 606.481729606603 & 5.5182703933971 \tabularnewline
13 & 595 & 595.674934849013 & -0.674934849012486 \tabularnewline
14 & 597 & 595.512358684156 & 1.48764131584432 \tabularnewline
15 & 593 & 596.876612070506 & -3.87661207050647 \tabularnewline
16 & 590 & 587.174652282586 & 2.82534771741423 \tabularnewline
17 & 580 & 578.984025218295 & 1.01597478170509 \tabularnewline
18 & 574 & 572.942998924171 & 1.05700107582893 \tabularnewline
19 & 573 & 561.051768945655 & 11.9482310543451 \tabularnewline
20 & 573 & 572.095658899879 & 0.904341100120988 \tabularnewline
21 & 620 & 622.234939338756 & -2.23493933875593 \tabularnewline
22 & 626 & 626.554643455977 & -0.554643455976893 \tabularnewline
23 & 620 & 609.160691503038 & 10.8393084969615 \tabularnewline
24 & 588 & 596.270234718188 & -8.27023471818812 \tabularnewline
25 & 566 & 571.12159235068 & -5.12159235068064 \tabularnewline
26 & 557 & 565.23226591573 & -8.23226591573049 \tabularnewline
27 & 561 & 556.441701973849 & 4.55829802615049 \tabularnewline
28 & 549 & 553.506831776812 & -4.50683177681194 \tabularnewline
29 & 532 & 538.080897246205 & -6.08089724620548 \tabularnewline
30 & 526 & 525.728993695326 & 0.271006304674322 \tabularnewline
31 & 511 & 512.765204582974 & -1.76520458297425 \tabularnewline
32 & 499 & 511.740035333797 & -12.7400353337975 \tabularnewline
33 & 555 & 550.441228211858 & 4.55877178814162 \tabularnewline
34 & 565 & 561.484196451995 & 3.51580354800536 \tabularnewline
35 & 542 & 548.783400256043 & -6.78340025604353 \tabularnewline
36 & 527 & 521.895159568785 & 5.10484043121488 \tabularnewline
37 & 510 & 510.008120858558 & -0.00812085855775108 \tabularnewline
38 & 514 & 509.489031137975 & 4.51096886202470 \tabularnewline
39 & 517 & 513.595285093507 & 3.40471490649321 \tabularnewline
40 & 508 & 510.190291230053 & -2.19029123005287 \tabularnewline
41 & 493 & 497.317514703403 & -4.31751470340342 \tabularnewline
42 & 490 & 486.393855861892 & 3.60614413810766 \tabularnewline
43 & 469 & 476.333706290831 & -7.33370629083146 \tabularnewline
44 & 478 & 470.164424405407 & 7.83557559459338 \tabularnewline
45 & 528 & 526.855711197248 & 1.14428880275219 \tabularnewline
46 & 534 & 534.115371667551 & -0.115371667550825 \tabularnewline
47 & 518 & 529.993611721053 & -11.9936117210525 \tabularnewline
48 & 506 & 507.935921802863 & -1.93592180286277 \tabularnewline
49 & 502 & 499.472679949328 & 2.52732005067240 \tabularnewline
50 & 516 & 510.956838101601 & 5.04316189839939 \tabularnewline
51 & 528 & 524.702084046123 & 3.29791595387669 \tabularnewline
52 & 533 & 530.140533435109 & 2.85946656489101 \tabularnewline
53 & 536 & 529.954309073425 & 6.04569092657538 \tabularnewline
54 & 537 & 535.774603551381 & 1.22539644861848 \tabularnewline
55 & 524 & 530.562376717097 & -6.56237671709654 \tabularnewline
56 & 536 & 531.457243524618 & 4.54275647538163 \tabularnewline
57 & 587 & 590.733889481681 & -3.73388948168130 \tabularnewline
58 & 597 & 599.076933600386 & -2.07693360038598 \tabularnewline
59 & 581 & 586.258958125469 & -5.25895812546921 \tabularnewline
60 & 564 & 564.416954303561 & -0.416954303561106 \tabularnewline
61 & 558 & 551.563062566306 & 6.4369374336944 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68021&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]594[/C][C]597.159609426116[/C][C]-3.15960942611592[/C][/ROW]
[ROW][C]2[/C][C]595[/C][C]597.809506160538[/C][C]-2.80950616053790[/C][/ROW]
[ROW][C]3[/C][C]591[/C][C]598.384316816014[/C][C]-7.38431681601391[/C][/ROW]
[ROW][C]4[/C][C]589[/C][C]587.98769127544[/C][C]1.01230872455958[/C][/ROW]
[ROW][C]5[/C][C]584[/C][C]580.663253758672[/C][C]3.33674624132844[/C][/ROW]
[ROW][C]6[/C][C]573[/C][C]579.15954796723[/C][C]-6.1595479672294[/C][/ROW]
[ROW][C]7[/C][C]567[/C][C]563.286943463443[/C][C]3.71305653655711[/C][/ROW]
[ROW][C]8[/C][C]569[/C][C]569.542637836298[/C][C]-0.542637836298484[/C][/ROW]
[ROW][C]9[/C][C]621[/C][C]620.734231770457[/C][C]0.265768229543422[/C][/ROW]
[ROW][C]10[/C][C]629[/C][C]629.768854824092[/C][C]-0.76885482409166[/C][/ROW]
[ROW][C]11[/C][C]628[/C][C]614.803338394396[/C][C]13.1966616056037[/C][/ROW]
[ROW][C]12[/C][C]612[/C][C]606.481729606603[/C][C]5.5182703933971[/C][/ROW]
[ROW][C]13[/C][C]595[/C][C]595.674934849013[/C][C]-0.674934849012486[/C][/ROW]
[ROW][C]14[/C][C]597[/C][C]595.512358684156[/C][C]1.48764131584432[/C][/ROW]
[ROW][C]15[/C][C]593[/C][C]596.876612070506[/C][C]-3.87661207050647[/C][/ROW]
[ROW][C]16[/C][C]590[/C][C]587.174652282586[/C][C]2.82534771741423[/C][/ROW]
[ROW][C]17[/C][C]580[/C][C]578.984025218295[/C][C]1.01597478170509[/C][/ROW]
[ROW][C]18[/C][C]574[/C][C]572.942998924171[/C][C]1.05700107582893[/C][/ROW]
[ROW][C]19[/C][C]573[/C][C]561.051768945655[/C][C]11.9482310543451[/C][/ROW]
[ROW][C]20[/C][C]573[/C][C]572.095658899879[/C][C]0.904341100120988[/C][/ROW]
[ROW][C]21[/C][C]620[/C][C]622.234939338756[/C][C]-2.23493933875593[/C][/ROW]
[ROW][C]22[/C][C]626[/C][C]626.554643455977[/C][C]-0.554643455976893[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]609.160691503038[/C][C]10.8393084969615[/C][/ROW]
[ROW][C]24[/C][C]588[/C][C]596.270234718188[/C][C]-8.27023471818812[/C][/ROW]
[ROW][C]25[/C][C]566[/C][C]571.12159235068[/C][C]-5.12159235068064[/C][/ROW]
[ROW][C]26[/C][C]557[/C][C]565.23226591573[/C][C]-8.23226591573049[/C][/ROW]
[ROW][C]27[/C][C]561[/C][C]556.441701973849[/C][C]4.55829802615049[/C][/ROW]
[ROW][C]28[/C][C]549[/C][C]553.506831776812[/C][C]-4.50683177681194[/C][/ROW]
[ROW][C]29[/C][C]532[/C][C]538.080897246205[/C][C]-6.08089724620548[/C][/ROW]
[ROW][C]30[/C][C]526[/C][C]525.728993695326[/C][C]0.271006304674322[/C][/ROW]
[ROW][C]31[/C][C]511[/C][C]512.765204582974[/C][C]-1.76520458297425[/C][/ROW]
[ROW][C]32[/C][C]499[/C][C]511.740035333797[/C][C]-12.7400353337975[/C][/ROW]
[ROW][C]33[/C][C]555[/C][C]550.441228211858[/C][C]4.55877178814162[/C][/ROW]
[ROW][C]34[/C][C]565[/C][C]561.484196451995[/C][C]3.51580354800536[/C][/ROW]
[ROW][C]35[/C][C]542[/C][C]548.783400256043[/C][C]-6.78340025604353[/C][/ROW]
[ROW][C]36[/C][C]527[/C][C]521.895159568785[/C][C]5.10484043121488[/C][/ROW]
[ROW][C]37[/C][C]510[/C][C]510.008120858558[/C][C]-0.00812085855775108[/C][/ROW]
[ROW][C]38[/C][C]514[/C][C]509.489031137975[/C][C]4.51096886202470[/C][/ROW]
[ROW][C]39[/C][C]517[/C][C]513.595285093507[/C][C]3.40471490649321[/C][/ROW]
[ROW][C]40[/C][C]508[/C][C]510.190291230053[/C][C]-2.19029123005287[/C][/ROW]
[ROW][C]41[/C][C]493[/C][C]497.317514703403[/C][C]-4.31751470340342[/C][/ROW]
[ROW][C]42[/C][C]490[/C][C]486.393855861892[/C][C]3.60614413810766[/C][/ROW]
[ROW][C]43[/C][C]469[/C][C]476.333706290831[/C][C]-7.33370629083146[/C][/ROW]
[ROW][C]44[/C][C]478[/C][C]470.164424405407[/C][C]7.83557559459338[/C][/ROW]
[ROW][C]45[/C][C]528[/C][C]526.855711197248[/C][C]1.14428880275219[/C][/ROW]
[ROW][C]46[/C][C]534[/C][C]534.115371667551[/C][C]-0.115371667550825[/C][/ROW]
[ROW][C]47[/C][C]518[/C][C]529.993611721053[/C][C]-11.9936117210525[/C][/ROW]
[ROW][C]48[/C][C]506[/C][C]507.935921802863[/C][C]-1.93592180286277[/C][/ROW]
[ROW][C]49[/C][C]502[/C][C]499.472679949328[/C][C]2.52732005067240[/C][/ROW]
[ROW][C]50[/C][C]516[/C][C]510.956838101601[/C][C]5.04316189839939[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]524.702084046123[/C][C]3.29791595387669[/C][/ROW]
[ROW][C]52[/C][C]533[/C][C]530.140533435109[/C][C]2.85946656489101[/C][/ROW]
[ROW][C]53[/C][C]536[/C][C]529.954309073425[/C][C]6.04569092657538[/C][/ROW]
[ROW][C]54[/C][C]537[/C][C]535.774603551381[/C][C]1.22539644861848[/C][/ROW]
[ROW][C]55[/C][C]524[/C][C]530.562376717097[/C][C]-6.56237671709654[/C][/ROW]
[ROW][C]56[/C][C]536[/C][C]531.457243524618[/C][C]4.54275647538163[/C][/ROW]
[ROW][C]57[/C][C]587[/C][C]590.733889481681[/C][C]-3.73388948168130[/C][/ROW]
[ROW][C]58[/C][C]597[/C][C]599.076933600386[/C][C]-2.07693360038598[/C][/ROW]
[ROW][C]59[/C][C]581[/C][C]586.258958125469[/C][C]-5.25895812546921[/C][/ROW]
[ROW][C]60[/C][C]564[/C][C]564.416954303561[/C][C]-0.416954303561106[/C][/ROW]
[ROW][C]61[/C][C]558[/C][C]551.563062566306[/C][C]6.4369374336944[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68021&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68021&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
1594597.159609426116-3.15960942611592
2595597.809506160538-2.80950616053790
3591598.384316816014-7.38431681601391
4589587.987691275441.01230872455958
5584580.6632537586723.33674624132844
6573579.15954796723-6.1595479672294
7567563.2869434634433.71305653655711
8569569.542637836298-0.542637836298484
9621620.7342317704570.265768229543422
10629629.768854824092-0.76885482409166
11628614.80333839439613.1966616056037
12612606.4817296066035.5182703933971
13595595.674934849013-0.674934849012486
14597595.5123586841561.48764131584432
15593596.876612070506-3.87661207050647
16590587.1746522825862.82534771741423
17580578.9840252182951.01597478170509
18574572.9429989241711.05700107582893
19573561.05176894565511.9482310543451
20573572.0956588998790.904341100120988
21620622.234939338756-2.23493933875593
22626626.554643455977-0.554643455976893
23620609.16069150303810.8393084969615
24588596.270234718188-8.27023471818812
25566571.12159235068-5.12159235068064
26557565.23226591573-8.23226591573049
27561556.4417019738494.55829802615049
28549553.506831776812-4.50683177681194
29532538.080897246205-6.08089724620548
30526525.7289936953260.271006304674322
31511512.765204582974-1.76520458297425
32499511.740035333797-12.7400353337975
33555550.4412282118584.55877178814162
34565561.4841964519953.51580354800536
35542548.783400256043-6.78340025604353
36527521.8951595687855.10484043121488
37510510.008120858558-0.00812085855775108
38514509.4890311379754.51096886202470
39517513.5952850935073.40471490649321
40508510.190291230053-2.19029123005287
41493497.317514703403-4.31751470340342
42490486.3938558618923.60614413810766
43469476.333706290831-7.33370629083146
44478470.1644244054077.83557559459338
45528526.8557111972481.14428880275219
46534534.115371667551-0.115371667550825
47518529.993611721053-11.9936117210525
48506507.935921802863-1.93592180286277
49502499.4726799493282.52732005067240
50516510.9568381016015.04316189839939
51528524.7020840461233.29791595387669
52533530.1405334351092.85946656489101
53536529.9543090734256.04569092657538
54537535.7746035513811.22539644861848
55524530.562376717097-6.56237671709654
56536531.4572435246184.54275647538163
57587590.733889481681-3.73388948168130
58597599.076933600386-2.07693360038598
59581586.258958125469-5.25895812546921
60564564.416954303561-0.416954303561106
61558551.5630625663066.4369374336944







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.0743108990952430.1486217981904860.925689100904757
220.02559470081828660.05118940163657320.974405299181713
230.1406151452211310.2812302904422620.85938485477887
240.3494764070830160.6989528141660320.650523592916984
250.3390356670789210.6780713341578430.660964332921079
260.3319229440023920.6638458880047850.668077055997608
270.5236887386022670.9526225227954650.476311261397733
280.4354165856220520.8708331712441040.564583414377948
290.3604140376578810.7208280753157620.639585962342119
300.469021307476970.938042614953940.53097869252303
310.5208895814063920.9582208371872160.479110418593608
320.8285388743032770.3429222513934460.171461125696723
330.912850857957620.1742982840847610.0871491420423804
340.953205847566620.09358830486676060.0467941524333803
350.9606331564568120.0787336870863760.039366843543188
360.971434964381480.05713007123704070.0285650356185204
370.9394530523186930.1210938953626130.0605469476813065
380.938685649466090.1226287010678200.0613143505339099
390.9339572241735730.1320855516528550.0660427758264275
400.93300683631650.1339863273669980.066993163683499

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.074310899095243 & 0.148621798190486 & 0.925689100904757 \tabularnewline
22 & 0.0255947008182866 & 0.0511894016365732 & 0.974405299181713 \tabularnewline
23 & 0.140615145221131 & 0.281230290442262 & 0.85938485477887 \tabularnewline
24 & 0.349476407083016 & 0.698952814166032 & 0.650523592916984 \tabularnewline
25 & 0.339035667078921 & 0.678071334157843 & 0.660964332921079 \tabularnewline
26 & 0.331922944002392 & 0.663845888004785 & 0.668077055997608 \tabularnewline
27 & 0.523688738602267 & 0.952622522795465 & 0.476311261397733 \tabularnewline
28 & 0.435416585622052 & 0.870833171244104 & 0.564583414377948 \tabularnewline
29 & 0.360414037657881 & 0.720828075315762 & 0.639585962342119 \tabularnewline
30 & 0.46902130747697 & 0.93804261495394 & 0.53097869252303 \tabularnewline
31 & 0.520889581406392 & 0.958220837187216 & 0.479110418593608 \tabularnewline
32 & 0.828538874303277 & 0.342922251393446 & 0.171461125696723 \tabularnewline
33 & 0.91285085795762 & 0.174298284084761 & 0.0871491420423804 \tabularnewline
34 & 0.95320584756662 & 0.0935883048667606 & 0.0467941524333803 \tabularnewline
35 & 0.960633156456812 & 0.078733687086376 & 0.039366843543188 \tabularnewline
36 & 0.97143496438148 & 0.0571300712370407 & 0.0285650356185204 \tabularnewline
37 & 0.939453052318693 & 0.121093895362613 & 0.0605469476813065 \tabularnewline
38 & 0.93868564946609 & 0.122628701067820 & 0.0613143505339099 \tabularnewline
39 & 0.933957224173573 & 0.132085551652855 & 0.0660427758264275 \tabularnewline
40 & 0.9330068363165 & 0.133986327366998 & 0.066993163683499 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68021&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]21[/C][C]0.074310899095243[/C][C]0.148621798190486[/C][C]0.925689100904757[/C][/ROW]
[ROW][C]22[/C][C]0.0255947008182866[/C][C]0.0511894016365732[/C][C]0.974405299181713[/C][/ROW]
[ROW][C]23[/C][C]0.140615145221131[/C][C]0.281230290442262[/C][C]0.85938485477887[/C][/ROW]
[ROW][C]24[/C][C]0.349476407083016[/C][C]0.698952814166032[/C][C]0.650523592916984[/C][/ROW]
[ROW][C]25[/C][C]0.339035667078921[/C][C]0.678071334157843[/C][C]0.660964332921079[/C][/ROW]
[ROW][C]26[/C][C]0.331922944002392[/C][C]0.663845888004785[/C][C]0.668077055997608[/C][/ROW]
[ROW][C]27[/C][C]0.523688738602267[/C][C]0.952622522795465[/C][C]0.476311261397733[/C][/ROW]
[ROW][C]28[/C][C]0.435416585622052[/C][C]0.870833171244104[/C][C]0.564583414377948[/C][/ROW]
[ROW][C]29[/C][C]0.360414037657881[/C][C]0.720828075315762[/C][C]0.639585962342119[/C][/ROW]
[ROW][C]30[/C][C]0.46902130747697[/C][C]0.93804261495394[/C][C]0.53097869252303[/C][/ROW]
[ROW][C]31[/C][C]0.520889581406392[/C][C]0.958220837187216[/C][C]0.479110418593608[/C][/ROW]
[ROW][C]32[/C][C]0.828538874303277[/C][C]0.342922251393446[/C][C]0.171461125696723[/C][/ROW]
[ROW][C]33[/C][C]0.91285085795762[/C][C]0.174298284084761[/C][C]0.0871491420423804[/C][/ROW]
[ROW][C]34[/C][C]0.95320584756662[/C][C]0.0935883048667606[/C][C]0.0467941524333803[/C][/ROW]
[ROW][C]35[/C][C]0.960633156456812[/C][C]0.078733687086376[/C][C]0.039366843543188[/C][/ROW]
[ROW][C]36[/C][C]0.97143496438148[/C][C]0.0571300712370407[/C][C]0.0285650356185204[/C][/ROW]
[ROW][C]37[/C][C]0.939453052318693[/C][C]0.121093895362613[/C][C]0.0605469476813065[/C][/ROW]
[ROW][C]38[/C][C]0.93868564946609[/C][C]0.122628701067820[/C][C]0.0613143505339099[/C][/ROW]
[ROW][C]39[/C][C]0.933957224173573[/C][C]0.132085551652855[/C][C]0.0660427758264275[/C][/ROW]
[ROW][C]40[/C][C]0.9330068363165[/C][C]0.133986327366998[/C][C]0.066993163683499[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68021&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68021&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
210.0743108990952430.1486217981904860.925689100904757
220.02559470081828660.05118940163657320.974405299181713
230.1406151452211310.2812302904422620.85938485477887
240.3494764070830160.6989528141660320.650523592916984
250.3390356670789210.6780713341578430.660964332921079
260.3319229440023920.6638458880047850.668077055997608
270.5236887386022670.9526225227954650.476311261397733
280.4354165856220520.8708331712441040.564583414377948
290.3604140376578810.7208280753157620.639585962342119
300.469021307476970.938042614953940.53097869252303
310.5208895814063920.9582208371872160.479110418593608
320.8285388743032770.3429222513934460.171461125696723
330.912850857957620.1742982840847610.0871491420423804
340.953205847566620.09358830486676060.0467941524333803
350.9606331564568120.0787336870863760.039366843543188
360.971434964381480.05713007123704070.0285650356185204
370.9394530523186930.1210938953626130.0605469476813065
380.938685649466090.1226287010678200.0613143505339099
390.9339572241735730.1320855516528550.0660427758264275
400.93300683631650.1339863273669980.066993163683499







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68021&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 level00OK
10% type I error level40.2NOK



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