Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 18 Nov 2009 12:08:24 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258571393u50manp7b841e67.htm/, Retrieved Sat, 27 Apr 2024 10:31:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57597, Retrieved Sat, 27 Apr 2024 10:31:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact124
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] [Model 4] [2009-11-18 19:08:24] [82f29a5d509ab8039aab37a0145f886d] [Current]
-   PD        [Multiple Regression] [Model_1] [2009-11-20 15:59:24] [9c2d53170eb755e9ae5fcf19d2174a32]
-   PD        [Multiple Regression] [Model_2] [2009-11-20 16:03:46] [9c2d53170eb755e9ae5fcf19d2174a32]
Feedback Forum

Post a new message
Dataseries X:
537	0	544	555	561	562
543	0	537	544	555	561
594	0	543	537	544	555
611	0	594	543	537	544
613	0	611	594	543	537
611	0	613	611	594	543
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	1	542	565	555	499
510	1	527	542	565	555
514	1	510	527	542	565
517	1	514	510	527	542
508	1	517	514	510	527
493	1	508	517	514	510
490	1	493	508	517	514
469	1	490	493	508	517
478	1	469	490	493	508
528	1	478	469	490	493
534	1	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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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] = + 29.2336583297075 + 5.23704846344995X[t] + 1.06338606720762Y1[t] -0.0515482671707487Y2[t] -0.0346340509314161Y3[t] -0.0281387763492694Y4[t] -4.86619693288056M1[t] + 6.11414942514553M2[t] + 55.4277308752082M3[t] + 10.1263582422227M4[t] -6.02994002777538M5[t] -10.5865832384230M6[t] -8.0507839315179M7[t] + 10.1382562337091M8[t] + 8.4583139369364M9[t] -0.749293718734123M10[t] -5.88400784734467M11[t] -0.247013195172507t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  29.2336583297075 +  5.23704846344995X[t] +  1.06338606720762Y1[t] -0.0515482671707487Y2[t] -0.0346340509314161Y3[t] -0.0281387763492694Y4[t] -4.86619693288056M1[t] +  6.11414942514553M2[t] +  55.4277308752082M3[t] +  10.1263582422227M4[t] -6.02994002777538M5[t] -10.5865832384230M6[t] -8.0507839315179M7[t] +  10.1382562337091M8[t] +  8.4583139369364M9[t] -0.749293718734123M10[t] -5.88400784734467M11[t] -0.247013195172507t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57597&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  29.2336583297075 +  5.23704846344995X[t] +  1.06338606720762Y1[t] -0.0515482671707487Y2[t] -0.0346340509314161Y3[t] -0.0281387763492694Y4[t] -4.86619693288056M1[t] +  6.11414942514553M2[t] +  55.4277308752082M3[t] +  10.1263582422227M4[t] -6.02994002777538M5[t] -10.5865832384230M6[t] -8.0507839315179M7[t] +  10.1382562337091M8[t] +  8.4583139369364M9[t] -0.749293718734123M10[t] -5.88400784734467M11[t] -0.247013195172507t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57597&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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] = + 29.2336583297075 + 5.23704846344995X[t] + 1.06338606720762Y1[t] -0.0515482671707487Y2[t] -0.0346340509314161Y3[t] -0.0281387763492694Y4[t] -4.86619693288056M1[t] + 6.11414942514553M2[t] + 55.4277308752082M3[t] + 10.1263582422227M4[t] -6.02994002777538M5[t] -10.5865832384230M6[t] -8.0507839315179M7[t] + 10.1382562337091M8[t] + 8.4583139369364M9[t] -0.749293718734123M10[t] -5.88400784734467M11[t] -0.247013195172507t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)29.233658329707538.4036610.76120.4511040.225552
X5.237048463449955.2845440.9910.3277890.163894
Y11.063386067207620.1574716.752900
Y2-0.05154826717074870.228578-0.22550.8227550.411377
Y3-0.03463405093141610.22941-0.1510.8807780.440389
Y4-0.02813877634926940.188687-0.14910.882220.44111
M1-4.866196932880565.010833-0.97110.3374660.168733
M26.114149425145535.2269091.16970.2492030.124601
M355.42773087520825.46250110.14700
M410.126358242222710.9055670.92850.3588340.179417
M5-6.0299400277753811.118038-0.54240.5906590.295329
M6-10.586583238423010.891052-0.9720.3370190.16851
M7-8.05078393151795.32993-1.51050.138980.06949
M810.13825623370915.7011471.77830.0831540.041577
M98.45831393693646.4289091.31570.1959670.097984
M10-0.7492937187341236.377451-0.11750.9070740.453537
M11-5.884007847344675.152017-1.14210.2603850.130192
t-0.2470131951725070.11873-2.08050.04410.02205

\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) & 29.2336583297075 & 38.403661 & 0.7612 & 0.451104 & 0.225552 \tabularnewline
X & 5.23704846344995 & 5.284544 & 0.991 & 0.327789 & 0.163894 \tabularnewline
Y1 & 1.06338606720762 & 0.157471 & 6.7529 & 0 & 0 \tabularnewline
Y2 & -0.0515482671707487 & 0.228578 & -0.2255 & 0.822755 & 0.411377 \tabularnewline
Y3 & -0.0346340509314161 & 0.22941 & -0.151 & 0.880778 & 0.440389 \tabularnewline
Y4 & -0.0281387763492694 & 0.188687 & -0.1491 & 0.88222 & 0.44111 \tabularnewline
M1 & -4.86619693288056 & 5.010833 & -0.9711 & 0.337466 & 0.168733 \tabularnewline
M2 & 6.11414942514553 & 5.226909 & 1.1697 & 0.249203 & 0.124601 \tabularnewline
M3 & 55.4277308752082 & 5.462501 & 10.147 & 0 & 0 \tabularnewline
M4 & 10.1263582422227 & 10.905567 & 0.9285 & 0.358834 & 0.179417 \tabularnewline
M5 & -6.02994002777538 & 11.118038 & -0.5424 & 0.590659 & 0.295329 \tabularnewline
M6 & -10.5865832384230 & 10.891052 & -0.972 & 0.337019 & 0.16851 \tabularnewline
M7 & -8.0507839315179 & 5.32993 & -1.5105 & 0.13898 & 0.06949 \tabularnewline
M8 & 10.1382562337091 & 5.701147 & 1.7783 & 0.083154 & 0.041577 \tabularnewline
M9 & 8.4583139369364 & 6.428909 & 1.3157 & 0.195967 & 0.097984 \tabularnewline
M10 & -0.749293718734123 & 6.377451 & -0.1175 & 0.907074 & 0.453537 \tabularnewline
M11 & -5.88400784734467 & 5.152017 & -1.1421 & 0.260385 & 0.130192 \tabularnewline
t & -0.247013195172507 & 0.11873 & -2.0805 & 0.0441 & 0.02205 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57597&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]29.2336583297075[/C][C]38.403661[/C][C]0.7612[/C][C]0.451104[/C][C]0.225552[/C][/ROW]
[ROW][C]X[/C][C]5.23704846344995[/C][C]5.284544[/C][C]0.991[/C][C]0.327789[/C][C]0.163894[/C][/ROW]
[ROW][C]Y1[/C][C]1.06338606720762[/C][C]0.157471[/C][C]6.7529[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.0515482671707487[/C][C]0.228578[/C][C]-0.2255[/C][C]0.822755[/C][C]0.411377[/C][/ROW]
[ROW][C]Y3[/C][C]-0.0346340509314161[/C][C]0.22941[/C][C]-0.151[/C][C]0.880778[/C][C]0.440389[/C][/ROW]
[ROW][C]Y4[/C][C]-0.0281387763492694[/C][C]0.188687[/C][C]-0.1491[/C][C]0.88222[/C][C]0.44111[/C][/ROW]
[ROW][C]M1[/C][C]-4.86619693288056[/C][C]5.010833[/C][C]-0.9711[/C][C]0.337466[/C][C]0.168733[/C][/ROW]
[ROW][C]M2[/C][C]6.11414942514553[/C][C]5.226909[/C][C]1.1697[/C][C]0.249203[/C][C]0.124601[/C][/ROW]
[ROW][C]M3[/C][C]55.4277308752082[/C][C]5.462501[/C][C]10.147[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]10.1263582422227[/C][C]10.905567[/C][C]0.9285[/C][C]0.358834[/C][C]0.179417[/C][/ROW]
[ROW][C]M5[/C][C]-6.02994002777538[/C][C]11.118038[/C][C]-0.5424[/C][C]0.590659[/C][C]0.295329[/C][/ROW]
[ROW][C]M6[/C][C]-10.5865832384230[/C][C]10.891052[/C][C]-0.972[/C][C]0.337019[/C][C]0.16851[/C][/ROW]
[ROW][C]M7[/C][C]-8.0507839315179[/C][C]5.32993[/C][C]-1.5105[/C][C]0.13898[/C][C]0.06949[/C][/ROW]
[ROW][C]M8[/C][C]10.1382562337091[/C][C]5.701147[/C][C]1.7783[/C][C]0.083154[/C][C]0.041577[/C][/ROW]
[ROW][C]M9[/C][C]8.4583139369364[/C][C]6.428909[/C][C]1.3157[/C][C]0.195967[/C][C]0.097984[/C][/ROW]
[ROW][C]M10[/C][C]-0.749293718734123[/C][C]6.377451[/C][C]-0.1175[/C][C]0.907074[/C][C]0.453537[/C][/ROW]
[ROW][C]M11[/C][C]-5.88400784734467[/C][C]5.152017[/C][C]-1.1421[/C][C]0.260385[/C][C]0.130192[/C][/ROW]
[ROW][C]t[/C][C]-0.247013195172507[/C][C]0.11873[/C][C]-2.0805[/C][C]0.0441[/C][C]0.02205[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57597&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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)29.233658329707538.4036610.76120.4511040.225552
X5.237048463449955.2845440.9910.3277890.163894
Y11.063386067207620.1574716.752900
Y2-0.05154826717074870.228578-0.22550.8227550.411377
Y3-0.03463405093141610.22941-0.1510.8807780.440389
Y4-0.02813877634926940.188687-0.14910.882220.44111
M1-4.866196932880565.010833-0.97110.3374660.168733
M26.114149425145535.2269091.16970.2492030.124601
M355.42773087520825.46250110.14700
M410.126358242222710.9055670.92850.3588340.179417
M5-6.0299400277753811.118038-0.54240.5906590.295329
M6-10.586583238423010.891052-0.9720.3370190.16851
M7-8.05078393151795.32993-1.51050.138980.06949
M810.13825623370915.7011471.77830.0831540.041577
M98.45831393693646.4289091.31570.1959670.097984
M10-0.7492937187341236.377451-0.11750.9070740.453537
M11-5.884007847344675.152017-1.14210.2603850.130192
t-0.2470131951725070.11873-2.08050.04410.02205







Multiple Linear Regression - Regression Statistics
Multiple R0.99068212547478
R-squared0.981451073735228
Adjusted R-squared0.973365644337764
F-TEST (value)121.385151670855
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.05513794444369
Sum Squared Residuals1941.22388519004

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99068212547478 \tabularnewline
R-squared & 0.981451073735228 \tabularnewline
Adjusted R-squared & 0.973365644337764 \tabularnewline
F-TEST (value) & 121.385151670855 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 7.05513794444369 \tabularnewline
Sum Squared Residuals & 1941.22388519004 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57597&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99068212547478[/C][/ROW]
[ROW][C]R-squared[/C][C]0.981451073735228[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.973365644337764[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]121.385151670855[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/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]7.05513794444369[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1941.22388519004[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57597&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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.99068212547478
R-squared0.981451073735228
Adjusted R-squared0.973365644337764
F-TEST (value)121.385151670855
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.05513794444369
Sum Squared Residuals1941.22388519004







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1537538.749485602019-1.74948560201902
2543542.8420903152350.157909684764762
3594599.199620061908-5.19962006190758
4611608.1265989546752.87340104532457
5613607.1610561351835.8389438648174
6611601.6726820662779.32731793372288
7594599.707743049606-5.70774304960619
8595599.127676111672-4.12767611167222
9591599.153417778002-8.15341777800165
10589586.038760809692.96123919030995
11584579.1801795671814.81982043281908
12573579.713737845033-6.71373784503289
13567563.342845520813.65715447919031
14569568.4923410266510.507658973348595
15621620.5166394609730.483360539026781
16629630.6785634387-1.67856343870026
17628620.2013951745447.7986048254555
18612612.064718363019-0.0647183630185552
19595595.650586888987-0.650586888986726
20597596.1493468313810.850653168619085
21593597.807767607006-4.80776760700562
22590585.0355052404134.96449475958699
23580577.0789038797652.92109612023514
24574572.31894131241.68105868759979
25573561.55735471111.4426452889997
26573571.9673482480331.03265175196732
27620621.574656839175-1.57465683917477
28626626.208882878802-0.208882878801795
29620613.7912580362016.20874196379898
30588600.670195230334-12.6701952303341
31566567.709590000443-1.70959000044332
32557563.945639688887-6.94563968888702
33561554.8593937577316.14060624226932
34549551.784641543923-2.78464154392263
35532534.366847883032-2.36684788303185
36526522.6595713821413.34042861785876
37511512.345418898525-1.34541889852512
38499508.363694838314-9.36369483831425
39555546.12901779788.87098220219973
40565561.4371743613853.56282563861531
41542553.618710863144-11.6187108631444
42527527.476899167323-0.476899167323512
43510513.078392430996-3.07839243099585
44514514.231275674012-0.231275674011911
45517518.600887612804-1.60088761280436
46508513.141092405974-5.1410924059743
47493498.374068670022-5.37406867002236
48490488.3077494604261.69225053957433
49469481.004895267646-12.0048952676459
50478470.3345255717667.66547442823356
51528530.580065840144-2.58006584014417
52534538.548780366438-4.54878036643783
53518526.227579790928-8.22757979092746
54506502.1155051730473.8844948269533
55502490.85368762996811.1463123700321
56516505.54606169404810.4539383059521
57528519.5785332444588.42146675554231

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 537 & 538.749485602019 & -1.74948560201902 \tabularnewline
2 & 543 & 542.842090315235 & 0.157909684764762 \tabularnewline
3 & 594 & 599.199620061908 & -5.19962006190758 \tabularnewline
4 & 611 & 608.126598954675 & 2.87340104532457 \tabularnewline
5 & 613 & 607.161056135183 & 5.8389438648174 \tabularnewline
6 & 611 & 601.672682066277 & 9.32731793372288 \tabularnewline
7 & 594 & 599.707743049606 & -5.70774304960619 \tabularnewline
8 & 595 & 599.127676111672 & -4.12767611167222 \tabularnewline
9 & 591 & 599.153417778002 & -8.15341777800165 \tabularnewline
10 & 589 & 586.03876080969 & 2.96123919030995 \tabularnewline
11 & 584 & 579.180179567181 & 4.81982043281908 \tabularnewline
12 & 573 & 579.713737845033 & -6.71373784503289 \tabularnewline
13 & 567 & 563.34284552081 & 3.65715447919031 \tabularnewline
14 & 569 & 568.492341026651 & 0.507658973348595 \tabularnewline
15 & 621 & 620.516639460973 & 0.483360539026781 \tabularnewline
16 & 629 & 630.6785634387 & -1.67856343870026 \tabularnewline
17 & 628 & 620.201395174544 & 7.7986048254555 \tabularnewline
18 & 612 & 612.064718363019 & -0.0647183630185552 \tabularnewline
19 & 595 & 595.650586888987 & -0.650586888986726 \tabularnewline
20 & 597 & 596.149346831381 & 0.850653168619085 \tabularnewline
21 & 593 & 597.807767607006 & -4.80776760700562 \tabularnewline
22 & 590 & 585.035505240413 & 4.96449475958699 \tabularnewline
23 & 580 & 577.078903879765 & 2.92109612023514 \tabularnewline
24 & 574 & 572.3189413124 & 1.68105868759979 \tabularnewline
25 & 573 & 561.557354711 & 11.4426452889997 \tabularnewline
26 & 573 & 571.967348248033 & 1.03265175196732 \tabularnewline
27 & 620 & 621.574656839175 & -1.57465683917477 \tabularnewline
28 & 626 & 626.208882878802 & -0.208882878801795 \tabularnewline
29 & 620 & 613.791258036201 & 6.20874196379898 \tabularnewline
30 & 588 & 600.670195230334 & -12.6701952303341 \tabularnewline
31 & 566 & 567.709590000443 & -1.70959000044332 \tabularnewline
32 & 557 & 563.945639688887 & -6.94563968888702 \tabularnewline
33 & 561 & 554.859393757731 & 6.14060624226932 \tabularnewline
34 & 549 & 551.784641543923 & -2.78464154392263 \tabularnewline
35 & 532 & 534.366847883032 & -2.36684788303185 \tabularnewline
36 & 526 & 522.659571382141 & 3.34042861785876 \tabularnewline
37 & 511 & 512.345418898525 & -1.34541889852512 \tabularnewline
38 & 499 & 508.363694838314 & -9.36369483831425 \tabularnewline
39 & 555 & 546.1290177978 & 8.87098220219973 \tabularnewline
40 & 565 & 561.437174361385 & 3.56282563861531 \tabularnewline
41 & 542 & 553.618710863144 & -11.6187108631444 \tabularnewline
42 & 527 & 527.476899167323 & -0.476899167323512 \tabularnewline
43 & 510 & 513.078392430996 & -3.07839243099585 \tabularnewline
44 & 514 & 514.231275674012 & -0.231275674011911 \tabularnewline
45 & 517 & 518.600887612804 & -1.60088761280436 \tabularnewline
46 & 508 & 513.141092405974 & -5.1410924059743 \tabularnewline
47 & 493 & 498.374068670022 & -5.37406867002236 \tabularnewline
48 & 490 & 488.307749460426 & 1.69225053957433 \tabularnewline
49 & 469 & 481.004895267646 & -12.0048952676459 \tabularnewline
50 & 478 & 470.334525571766 & 7.66547442823356 \tabularnewline
51 & 528 & 530.580065840144 & -2.58006584014417 \tabularnewline
52 & 534 & 538.548780366438 & -4.54878036643783 \tabularnewline
53 & 518 & 526.227579790928 & -8.22757979092746 \tabularnewline
54 & 506 & 502.115505173047 & 3.8844948269533 \tabularnewline
55 & 502 & 490.853687629968 & 11.1463123700321 \tabularnewline
56 & 516 & 505.546061694048 & 10.4539383059521 \tabularnewline
57 & 528 & 519.578533244458 & 8.42146675554231 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57597&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]537[/C][C]538.749485602019[/C][C]-1.74948560201902[/C][/ROW]
[ROW][C]2[/C][C]543[/C][C]542.842090315235[/C][C]0.157909684764762[/C][/ROW]
[ROW][C]3[/C][C]594[/C][C]599.199620061908[/C][C]-5.19962006190758[/C][/ROW]
[ROW][C]4[/C][C]611[/C][C]608.126598954675[/C][C]2.87340104532457[/C][/ROW]
[ROW][C]5[/C][C]613[/C][C]607.161056135183[/C][C]5.8389438648174[/C][/ROW]
[ROW][C]6[/C][C]611[/C][C]601.672682066277[/C][C]9.32731793372288[/C][/ROW]
[ROW][C]7[/C][C]594[/C][C]599.707743049606[/C][C]-5.70774304960619[/C][/ROW]
[ROW][C]8[/C][C]595[/C][C]599.127676111672[/C][C]-4.12767611167222[/C][/ROW]
[ROW][C]9[/C][C]591[/C][C]599.153417778002[/C][C]-8.15341777800165[/C][/ROW]
[ROW][C]10[/C][C]589[/C][C]586.03876080969[/C][C]2.96123919030995[/C][/ROW]
[ROW][C]11[/C][C]584[/C][C]579.180179567181[/C][C]4.81982043281908[/C][/ROW]
[ROW][C]12[/C][C]573[/C][C]579.713737845033[/C][C]-6.71373784503289[/C][/ROW]
[ROW][C]13[/C][C]567[/C][C]563.34284552081[/C][C]3.65715447919031[/C][/ROW]
[ROW][C]14[/C][C]569[/C][C]568.492341026651[/C][C]0.507658973348595[/C][/ROW]
[ROW][C]15[/C][C]621[/C][C]620.516639460973[/C][C]0.483360539026781[/C][/ROW]
[ROW][C]16[/C][C]629[/C][C]630.6785634387[/C][C]-1.67856343870026[/C][/ROW]
[ROW][C]17[/C][C]628[/C][C]620.201395174544[/C][C]7.7986048254555[/C][/ROW]
[ROW][C]18[/C][C]612[/C][C]612.064718363019[/C][C]-0.0647183630185552[/C][/ROW]
[ROW][C]19[/C][C]595[/C][C]595.650586888987[/C][C]-0.650586888986726[/C][/ROW]
[ROW][C]20[/C][C]597[/C][C]596.149346831381[/C][C]0.850653168619085[/C][/ROW]
[ROW][C]21[/C][C]593[/C][C]597.807767607006[/C][C]-4.80776760700562[/C][/ROW]
[ROW][C]22[/C][C]590[/C][C]585.035505240413[/C][C]4.96449475958699[/C][/ROW]
[ROW][C]23[/C][C]580[/C][C]577.078903879765[/C][C]2.92109612023514[/C][/ROW]
[ROW][C]24[/C][C]574[/C][C]572.3189413124[/C][C]1.68105868759979[/C][/ROW]
[ROW][C]25[/C][C]573[/C][C]561.557354711[/C][C]11.4426452889997[/C][/ROW]
[ROW][C]26[/C][C]573[/C][C]571.967348248033[/C][C]1.03265175196732[/C][/ROW]
[ROW][C]27[/C][C]620[/C][C]621.574656839175[/C][C]-1.57465683917477[/C][/ROW]
[ROW][C]28[/C][C]626[/C][C]626.208882878802[/C][C]-0.208882878801795[/C][/ROW]
[ROW][C]29[/C][C]620[/C][C]613.791258036201[/C][C]6.20874196379898[/C][/ROW]
[ROW][C]30[/C][C]588[/C][C]600.670195230334[/C][C]-12.6701952303341[/C][/ROW]
[ROW][C]31[/C][C]566[/C][C]567.709590000443[/C][C]-1.70959000044332[/C][/ROW]
[ROW][C]32[/C][C]557[/C][C]563.945639688887[/C][C]-6.94563968888702[/C][/ROW]
[ROW][C]33[/C][C]561[/C][C]554.859393757731[/C][C]6.14060624226932[/C][/ROW]
[ROW][C]34[/C][C]549[/C][C]551.784641543923[/C][C]-2.78464154392263[/C][/ROW]
[ROW][C]35[/C][C]532[/C][C]534.366847883032[/C][C]-2.36684788303185[/C][/ROW]
[ROW][C]36[/C][C]526[/C][C]522.659571382141[/C][C]3.34042861785876[/C][/ROW]
[ROW][C]37[/C][C]511[/C][C]512.345418898525[/C][C]-1.34541889852512[/C][/ROW]
[ROW][C]38[/C][C]499[/C][C]508.363694838314[/C][C]-9.36369483831425[/C][/ROW]
[ROW][C]39[/C][C]555[/C][C]546.1290177978[/C][C]8.87098220219973[/C][/ROW]
[ROW][C]40[/C][C]565[/C][C]561.437174361385[/C][C]3.56282563861531[/C][/ROW]
[ROW][C]41[/C][C]542[/C][C]553.618710863144[/C][C]-11.6187108631444[/C][/ROW]
[ROW][C]42[/C][C]527[/C][C]527.476899167323[/C][C]-0.476899167323512[/C][/ROW]
[ROW][C]43[/C][C]510[/C][C]513.078392430996[/C][C]-3.07839243099585[/C][/ROW]
[ROW][C]44[/C][C]514[/C][C]514.231275674012[/C][C]-0.231275674011911[/C][/ROW]
[ROW][C]45[/C][C]517[/C][C]518.600887612804[/C][C]-1.60088761280436[/C][/ROW]
[ROW][C]46[/C][C]508[/C][C]513.141092405974[/C][C]-5.1410924059743[/C][/ROW]
[ROW][C]47[/C][C]493[/C][C]498.374068670022[/C][C]-5.37406867002236[/C][/ROW]
[ROW][C]48[/C][C]490[/C][C]488.307749460426[/C][C]1.69225053957433[/C][/ROW]
[ROW][C]49[/C][C]469[/C][C]481.004895267646[/C][C]-12.0048952676459[/C][/ROW]
[ROW][C]50[/C][C]478[/C][C]470.334525571766[/C][C]7.66547442823356[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]530.580065840144[/C][C]-2.58006584014417[/C][/ROW]
[ROW][C]52[/C][C]534[/C][C]538.548780366438[/C][C]-4.54878036643783[/C][/ROW]
[ROW][C]53[/C][C]518[/C][C]526.227579790928[/C][C]-8.22757979092746[/C][/ROW]
[ROW][C]54[/C][C]506[/C][C]502.115505173047[/C][C]3.8844948269533[/C][/ROW]
[ROW][C]55[/C][C]502[/C][C]490.853687629968[/C][C]11.1463123700321[/C][/ROW]
[ROW][C]56[/C][C]516[/C][C]505.546061694048[/C][C]10.4539383059521[/C][/ROW]
[ROW][C]57[/C][C]528[/C][C]519.578533244458[/C][C]8.42146675554231[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57597&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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
1537538.749485602019-1.74948560201902
2543542.8420903152350.157909684764762
3594599.199620061908-5.19962006190758
4611608.1265989546752.87340104532457
5613607.1610561351835.8389438648174
6611601.6726820662779.32731793372288
7594599.707743049606-5.70774304960619
8595599.127676111672-4.12767611167222
9591599.153417778002-8.15341777800165
10589586.038760809692.96123919030995
11584579.1801795671814.81982043281908
12573579.713737845033-6.71373784503289
13567563.342845520813.65715447919031
14569568.4923410266510.507658973348595
15621620.5166394609730.483360539026781
16629630.6785634387-1.67856343870026
17628620.2013951745447.7986048254555
18612612.064718363019-0.0647183630185552
19595595.650586888987-0.650586888986726
20597596.1493468313810.850653168619085
21593597.807767607006-4.80776760700562
22590585.0355052404134.96449475958699
23580577.0789038797652.92109612023514
24574572.31894131241.68105868759979
25573561.55735471111.4426452889997
26573571.9673482480331.03265175196732
27620621.574656839175-1.57465683917477
28626626.208882878802-0.208882878801795
29620613.7912580362016.20874196379898
30588600.670195230334-12.6701952303341
31566567.709590000443-1.70959000044332
32557563.945639688887-6.94563968888702
33561554.8593937577316.14060624226932
34549551.784641543923-2.78464154392263
35532534.366847883032-2.36684788303185
36526522.6595713821413.34042861785876
37511512.345418898525-1.34541889852512
38499508.363694838314-9.36369483831425
39555546.12901779788.87098220219973
40565561.4371743613853.56282563861531
41542553.618710863144-11.6187108631444
42527527.476899167323-0.476899167323512
43510513.078392430996-3.07839243099585
44514514.231275674012-0.231275674011911
45517518.600887612804-1.60088761280436
46508513.141092405974-5.1410924059743
47493498.374068670022-5.37406867002236
48490488.3077494604261.69225053957433
49469481.004895267646-12.0048952676459
50478470.3345255717667.66547442823356
51528530.580065840144-2.58006584014417
52534538.548780366438-4.54878036643783
53518526.227579790928-8.22757979092746
54506502.1155051730473.8844948269533
55502490.85368762996811.1463123700321
56516505.54606169404810.4539383059521
57528519.5785332444588.42146675554231







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2115853192029830.4231706384059670.788414680797017
220.1163723532652110.2327447065304230.883627646734789
230.05830108992221160.1166021798444230.941698910077788
240.03853487456405760.07706974912811520.961465125435942
250.06762157702063590.1352431540412720.932378422979364
260.05650000473431840.1130000094686370.943499995265682
270.02825252637827800.05650505275655610.971747473621722
280.01427580075574840.02855160151149690.985724199244252
290.1774499488410740.3548998976821480.822550051158926
300.5437704766630350.9124590466739310.456229523336965
310.4372126822729690.8744253645459370.562787317727031
320.4962227771275190.9924455542550370.503777222872481
330.3920473973069640.7840947946139280.607952602693036
340.2847355081145940.5694710162291880.715264491885406
350.2406097856585780.4812195713171550.759390214341422
360.1898809643641850.3797619287283700.810119035635815

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.211585319202983 & 0.423170638405967 & 0.788414680797017 \tabularnewline
22 & 0.116372353265211 & 0.232744706530423 & 0.883627646734789 \tabularnewline
23 & 0.0583010899222116 & 0.116602179844423 & 0.941698910077788 \tabularnewline
24 & 0.0385348745640576 & 0.0770697491281152 & 0.961465125435942 \tabularnewline
25 & 0.0676215770206359 & 0.135243154041272 & 0.932378422979364 \tabularnewline
26 & 0.0565000047343184 & 0.113000009468637 & 0.943499995265682 \tabularnewline
27 & 0.0282525263782780 & 0.0565050527565561 & 0.971747473621722 \tabularnewline
28 & 0.0142758007557484 & 0.0285516015114969 & 0.985724199244252 \tabularnewline
29 & 0.177449948841074 & 0.354899897682148 & 0.822550051158926 \tabularnewline
30 & 0.543770476663035 & 0.912459046673931 & 0.456229523336965 \tabularnewline
31 & 0.437212682272969 & 0.874425364545937 & 0.562787317727031 \tabularnewline
32 & 0.496222777127519 & 0.992445554255037 & 0.503777222872481 \tabularnewline
33 & 0.392047397306964 & 0.784094794613928 & 0.607952602693036 \tabularnewline
34 & 0.284735508114594 & 0.569471016229188 & 0.715264491885406 \tabularnewline
35 & 0.240609785658578 & 0.481219571317155 & 0.759390214341422 \tabularnewline
36 & 0.189880964364185 & 0.379761928728370 & 0.810119035635815 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57597&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.211585319202983[/C][C]0.423170638405967[/C][C]0.788414680797017[/C][/ROW]
[ROW][C]22[/C][C]0.116372353265211[/C][C]0.232744706530423[/C][C]0.883627646734789[/C][/ROW]
[ROW][C]23[/C][C]0.0583010899222116[/C][C]0.116602179844423[/C][C]0.941698910077788[/C][/ROW]
[ROW][C]24[/C][C]0.0385348745640576[/C][C]0.0770697491281152[/C][C]0.961465125435942[/C][/ROW]
[ROW][C]25[/C][C]0.0676215770206359[/C][C]0.135243154041272[/C][C]0.932378422979364[/C][/ROW]
[ROW][C]26[/C][C]0.0565000047343184[/C][C]0.113000009468637[/C][C]0.943499995265682[/C][/ROW]
[ROW][C]27[/C][C]0.0282525263782780[/C][C]0.0565050527565561[/C][C]0.971747473621722[/C][/ROW]
[ROW][C]28[/C][C]0.0142758007557484[/C][C]0.0285516015114969[/C][C]0.985724199244252[/C][/ROW]
[ROW][C]29[/C][C]0.177449948841074[/C][C]0.354899897682148[/C][C]0.822550051158926[/C][/ROW]
[ROW][C]30[/C][C]0.543770476663035[/C][C]0.912459046673931[/C][C]0.456229523336965[/C][/ROW]
[ROW][C]31[/C][C]0.437212682272969[/C][C]0.874425364545937[/C][C]0.562787317727031[/C][/ROW]
[ROW][C]32[/C][C]0.496222777127519[/C][C]0.992445554255037[/C][C]0.503777222872481[/C][/ROW]
[ROW][C]33[/C][C]0.392047397306964[/C][C]0.784094794613928[/C][C]0.607952602693036[/C][/ROW]
[ROW][C]34[/C][C]0.284735508114594[/C][C]0.569471016229188[/C][C]0.715264491885406[/C][/ROW]
[ROW][C]35[/C][C]0.240609785658578[/C][C]0.481219571317155[/C][C]0.759390214341422[/C][/ROW]
[ROW][C]36[/C][C]0.189880964364185[/C][C]0.379761928728370[/C][C]0.810119035635815[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57597&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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.2115853192029830.4231706384059670.788414680797017
220.1163723532652110.2327447065304230.883627646734789
230.05830108992221160.1166021798444230.941698910077788
240.03853487456405760.07706974912811520.961465125435942
250.06762157702063590.1352431540412720.932378422979364
260.05650000473431840.1130000094686370.943499995265682
270.02825252637827800.05650505275655610.971747473621722
280.01427580075574840.02855160151149690.985724199244252
290.1774499488410740.3548998976821480.822550051158926
300.5437704766630350.9124590466739310.456229523336965
310.4372126822729690.8744253645459370.562787317727031
320.4962227771275190.9924455542550370.503777222872481
330.3920473973069640.7840947946139280.607952602693036
340.2847355081145940.5694710162291880.715264491885406
350.2406097856585780.4812195713171550.759390214341422
360.1898809643641850.3797619287283700.810119035635815







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57597&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 level10.0625NOK
10% type I error level30.1875NOK



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