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 computationMon, 24 Nov 2008 03:30:04 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/24/t1227522739r0vjgwcm0ur5x8j.htm/, Retrieved Mon, 13 May 2024 21:36:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25384, Retrieved Mon, 13 May 2024 21:36:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact180
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [MLRS No trend No ...] [2008-11-20 14:04:53] [bc937651ef42bf891200cf0e0edc7238]
-    D  [Multiple Regression] [Eigen tijdreeksen] [2008-11-22 17:39:57] [bc937651ef42bf891200cf0e0edc7238]
-   PD      [Multiple Regression] [Eigen tijdreeksen] [2008-11-24 10:30:04] [21d7d81e7693ad6dde5aadefb1046611] [Current]
Feedback Forum

Post a new message
Dataseries X:
604,4	0
883,9	0
527,9	0
756,2	0
812,9	0
655,6	0
707,6	0
612,6	0
659,2	0
833,4	0
727,8	0
797,2	0
753	0
762	1
613,7	0
759,2	0
816,4	0
736,8	0
680,1	1
736,5	0
637,2	0
801,9	1
772,3	1
897,3	1
792,1	1
826,8	0
666,8	0
906,6	1
871,4	1
891	1
739,2	0
833,6	1
715,6	1
871,6	1
751,6	0
1005,5	0
681,2	0
837,3	0
674,7	0
806,3	0
860,2	0
689,8	0
691,6	0
682,6	0
800,1	0
1023,7	0
733,5	0
875,3	0
770,2	0
1005,7	0
982,3	1
742,9	1
974,2	1
822,3	1
773,2	1
750,9	1
708	1
690	1
652,8	1
620,7	1
461,9	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 4 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25384&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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
UitvoerBEVS[t] = + 802.183529411765 + 4.93372093023258Dummy[t] -156.870671074632M1[t] + 34.6609059127527M2[t] -136.372510259918M3[t] -37.1726706186350M4[t] + 34.6339132086943M5[t] -74.2595029639763M6[t] -115.992919136647M7[t] -112.066335309317M8[t] -132.259751481988M9[t] + 5.88008815929469M10[t] -110.626583827329M11[t] + 0.97341617267062t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
UitvoerBEVS[t] =  +  802.183529411765 +  4.93372093023258Dummy[t] -156.870671074632M1[t] +  34.6609059127527M2[t] -136.372510259918M3[t] -37.1726706186350M4[t] +  34.6339132086943M5[t] -74.2595029639763M6[t] -115.992919136647M7[t] -112.066335309317M8[t] -132.259751481988M9[t] +  5.88008815929469M10[t] -110.626583827329M11[t] +  0.97341617267062t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]UitvoerBEVS[t] =  +  802.183529411765 +  4.93372093023258Dummy[t] -156.870671074632M1[t] +  34.6609059127527M2[t] -136.372510259918M3[t] -37.1726706186350M4[t] +  34.6339132086943M5[t] -74.2595029639763M6[t] -115.992919136647M7[t] -112.066335309317M8[t] -132.259751481988M9[t] +  5.88008815929469M10[t] -110.626583827329M11[t] +  0.97341617267062t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25384&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
UitvoerBEVS[t] = + 802.183529411765 + 4.93372093023258Dummy[t] -156.870671074632M1[t] + 34.6609059127527M2[t] -136.372510259918M3[t] -37.1726706186350M4[t] + 34.6339132086943M5[t] -74.2595029639763M6[t] -115.992919136647M7[t] -112.066335309317M8[t] -132.259751481988M9[t] + 5.88008815929469M10[t] -110.626583827329M11[t] + 0.97341617267062t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)802.18352941176552.60384115.249500
Dummy4.9337209302325829.8637550.16520.8694890.434745
M1-156.87067107463261.349352-2.5570.0138460.006923
M234.660905912752764.4463880.53780.5932350.296618
M3-136.37251025991864.378768-2.11830.0394670.019733
M4-37.172670618635064.290629-0.57820.5658910.282946
M534.633913208694364.2127590.53940.5921830.296092
M6-74.259502963976364.145196-1.15770.2528450.126422
M7-115.99291913664764.087971-1.80990.0767080.038354
M8-112.06633530931764.041112-1.74990.086660.04333
M9-132.25975148198864.004643-2.06640.0443250.022162
M105.8800881592946964.3184280.09140.9275460.463773
M11-110.62658382732963.962939-1.72950.0902760.045138
t0.973416172670620.8167631.19180.2393240.119662

\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) & 802.183529411765 & 52.603841 & 15.2495 & 0 & 0 \tabularnewline
Dummy & 4.93372093023258 & 29.863755 & 0.1652 & 0.869489 & 0.434745 \tabularnewline
M1 & -156.870671074632 & 61.349352 & -2.557 & 0.013846 & 0.006923 \tabularnewline
M2 & 34.6609059127527 & 64.446388 & 0.5378 & 0.593235 & 0.296618 \tabularnewline
M3 & -136.372510259918 & 64.378768 & -2.1183 & 0.039467 & 0.019733 \tabularnewline
M4 & -37.1726706186350 & 64.290629 & -0.5782 & 0.565891 & 0.282946 \tabularnewline
M5 & 34.6339132086943 & 64.212759 & 0.5394 & 0.592183 & 0.296092 \tabularnewline
M6 & -74.2595029639763 & 64.145196 & -1.1577 & 0.252845 & 0.126422 \tabularnewline
M7 & -115.992919136647 & 64.087971 & -1.8099 & 0.076708 & 0.038354 \tabularnewline
M8 & -112.066335309317 & 64.041112 & -1.7499 & 0.08666 & 0.04333 \tabularnewline
M9 & -132.259751481988 & 64.004643 & -2.0664 & 0.044325 & 0.022162 \tabularnewline
M10 & 5.88008815929469 & 64.318428 & 0.0914 & 0.927546 & 0.463773 \tabularnewline
M11 & -110.626583827329 & 63.962939 & -1.7295 & 0.090276 & 0.045138 \tabularnewline
t & 0.97341617267062 & 0.816763 & 1.1918 & 0.239324 & 0.119662 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&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]802.183529411765[/C][C]52.603841[/C][C]15.2495[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]4.93372093023258[/C][C]29.863755[/C][C]0.1652[/C][C]0.869489[/C][C]0.434745[/C][/ROW]
[ROW][C]M1[/C][C]-156.870671074632[/C][C]61.349352[/C][C]-2.557[/C][C]0.013846[/C][C]0.006923[/C][/ROW]
[ROW][C]M2[/C][C]34.6609059127527[/C][C]64.446388[/C][C]0.5378[/C][C]0.593235[/C][C]0.296618[/C][/ROW]
[ROW][C]M3[/C][C]-136.372510259918[/C][C]64.378768[/C][C]-2.1183[/C][C]0.039467[/C][C]0.019733[/C][/ROW]
[ROW][C]M4[/C][C]-37.1726706186350[/C][C]64.290629[/C][C]-0.5782[/C][C]0.565891[/C][C]0.282946[/C][/ROW]
[ROW][C]M5[/C][C]34.6339132086943[/C][C]64.212759[/C][C]0.5394[/C][C]0.592183[/C][C]0.296092[/C][/ROW]
[ROW][C]M6[/C][C]-74.2595029639763[/C][C]64.145196[/C][C]-1.1577[/C][C]0.252845[/C][C]0.126422[/C][/ROW]
[ROW][C]M7[/C][C]-115.992919136647[/C][C]64.087971[/C][C]-1.8099[/C][C]0.076708[/C][C]0.038354[/C][/ROW]
[ROW][C]M8[/C][C]-112.066335309317[/C][C]64.041112[/C][C]-1.7499[/C][C]0.08666[/C][C]0.04333[/C][/ROW]
[ROW][C]M9[/C][C]-132.259751481988[/C][C]64.004643[/C][C]-2.0664[/C][C]0.044325[/C][C]0.022162[/C][/ROW]
[ROW][C]M10[/C][C]5.88008815929469[/C][C]64.318428[/C][C]0.0914[/C][C]0.927546[/C][C]0.463773[/C][/ROW]
[ROW][C]M11[/C][C]-110.626583827329[/C][C]63.962939[/C][C]-1.7295[/C][C]0.090276[/C][C]0.045138[/C][/ROW]
[ROW][C]t[/C][C]0.97341617267062[/C][C]0.816763[/C][C]1.1918[/C][C]0.239324[/C][C]0.119662[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25384&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)802.18352941176552.60384115.249500
Dummy4.9337209302325829.8637550.16520.8694890.434745
M1-156.87067107463261.349352-2.5570.0138460.006923
M234.660905912752764.4463880.53780.5932350.296618
M3-136.37251025991864.378768-2.11830.0394670.019733
M4-37.172670618635064.290629-0.57820.5658910.282946
M534.633913208694364.2127590.53940.5921830.296092
M6-74.259502963976364.145196-1.15770.2528450.126422
M7-115.99291913664764.087971-1.80990.0767080.038354
M8-112.06633530931764.041112-1.74990.086660.04333
M9-132.25975148198864.004643-2.06640.0443250.022162
M105.8800881592946964.3184280.09140.9275460.463773
M11-110.62658382732963.962939-1.72950.0902760.045138
t0.973416172670620.8167631.19180.2393240.119662







Multiple Linear Regression - Regression Statistics
Multiple R0.620220957202846
R-squared0.384674035753614
Adjusted R-squared0.214477492451423
F-TEST (value)2.26017537307211
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0209299169179100
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation101.126040916517
Sum Squared Residuals480644.379118103

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.620220957202846 \tabularnewline
R-squared & 0.384674035753614 \tabularnewline
Adjusted R-squared & 0.214477492451423 \tabularnewline
F-TEST (value) & 2.26017537307211 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0209299169179100 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 101.126040916517 \tabularnewline
Sum Squared Residuals & 480644.379118103 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.620220957202846[/C][/ROW]
[ROW][C]R-squared[/C][C]0.384674035753614[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.214477492451423[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.26017537307211[/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.0209299169179100[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]101.126040916517[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]480644.379118103[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25384&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.620220957202846
R-squared0.384674035753614
Adjusted R-squared0.214477492451423
F-TEST (value)2.26017537307211
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0209299169179100
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation101.126040916517
Sum Squared Residuals480644.379118103







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1604.4646.286274509805-41.8862745098046
2883.9838.79126766985945.1087323301413
3527.9668.731267669858-140.831267669859
4756.2768.904523483812-12.7045234838121
5812.9841.684523483812-28.7845234838121
6655.6733.764523483812-78.1645234838121
7707.6693.00452348381214.5954765161879
8612.6697.904523483812-85.304523483812
9659.2678.684523483812-19.4845234838120
10833.4817.79777929776615.6022207022342
11727.8702.26452348381225.535476516188
12797.2813.864523483812-16.6645234838120
13753657.96726858185195.0327314181488
14762855.405982672138-93.4059826721384
15613.7680.412261741906-66.712261741906
16759.2780.58551755586-21.3855175558595
17816.4853.36551755586-36.9655175558595
18736.8745.44551755586-8.64551755585953
19680.1709.619238486092-29.5192384860921
20736.5709.5855175558626.9144824441405
21637.2690.36551755586-53.1655175558595
22801.9834.412494300046-32.5124943000455
23772.3718.87923848609253.4207615139079
24897.3830.47923848609266.8207615139079
25792.1674.581983584131117.518016415869
26826.8862.153255813953-35.3532558139535
27666.8692.093255813954-25.2932558139536
28906.6797.20023255814109.399767441860
29871.4869.980232558141.41976744186046
30891762.06023255814128.939767441860
31739.2716.36651162790722.8334883720930
32833.6726.20023255814107.399767441860
33715.6706.980232558148.61976744186045
34871.6846.09348837209325.5065116279071
35751.6725.62651162790725.9734883720931
361005.5837.226511627907168.273488372093
37681.2681.329256725946-0.129256725946058
38837.3873.834249886-36.534249886001
39674.7703.774249886001-29.0742498860009
40806.3803.9475056999542.35249430004549
41860.2876.727505699954-16.5275056999544
42689.8768.807505699954-79.0075056999545
43691.6728.047505699955-36.4475056999544
44682.6732.947505699954-50.3475056999544
45800.1713.72750569995486.3724943000455
461023.7852.840761513908170.859238486092
47733.5737.307505699954-3.80750569995441
48875.3848.90750569995426.3924943000455
49770.2693.01025079799477.1897492020065
501005.7885.515243958048120.184756041952
51982.3720.388964888281261.911035111719
52742.9820.562220702234-77.6622207022344
53974.2893.34222070223480.8577792977656
54822.3785.42222070223436.8777792977656
55773.2744.66222070223428.5377792977656
56750.9749.5622207022341.33777929776554
57708730.342220702234-22.3422207022345
58690869.455476516188-179.455476516188
59652.8753.922220702234-101.122220702234
60620.7865.522220702234-244.822220702234
61461.9709.624965800273-247.724965800274

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 604.4 & 646.286274509805 & -41.8862745098046 \tabularnewline
2 & 883.9 & 838.791267669859 & 45.1087323301413 \tabularnewline
3 & 527.9 & 668.731267669858 & -140.831267669859 \tabularnewline
4 & 756.2 & 768.904523483812 & -12.7045234838121 \tabularnewline
5 & 812.9 & 841.684523483812 & -28.7845234838121 \tabularnewline
6 & 655.6 & 733.764523483812 & -78.1645234838121 \tabularnewline
7 & 707.6 & 693.004523483812 & 14.5954765161879 \tabularnewline
8 & 612.6 & 697.904523483812 & -85.304523483812 \tabularnewline
9 & 659.2 & 678.684523483812 & -19.4845234838120 \tabularnewline
10 & 833.4 & 817.797779297766 & 15.6022207022342 \tabularnewline
11 & 727.8 & 702.264523483812 & 25.535476516188 \tabularnewline
12 & 797.2 & 813.864523483812 & -16.6645234838120 \tabularnewline
13 & 753 & 657.967268581851 & 95.0327314181488 \tabularnewline
14 & 762 & 855.405982672138 & -93.4059826721384 \tabularnewline
15 & 613.7 & 680.412261741906 & -66.712261741906 \tabularnewline
16 & 759.2 & 780.58551755586 & -21.3855175558595 \tabularnewline
17 & 816.4 & 853.36551755586 & -36.9655175558595 \tabularnewline
18 & 736.8 & 745.44551755586 & -8.64551755585953 \tabularnewline
19 & 680.1 & 709.619238486092 & -29.5192384860921 \tabularnewline
20 & 736.5 & 709.58551755586 & 26.9144824441405 \tabularnewline
21 & 637.2 & 690.36551755586 & -53.1655175558595 \tabularnewline
22 & 801.9 & 834.412494300046 & -32.5124943000455 \tabularnewline
23 & 772.3 & 718.879238486092 & 53.4207615139079 \tabularnewline
24 & 897.3 & 830.479238486092 & 66.8207615139079 \tabularnewline
25 & 792.1 & 674.581983584131 & 117.518016415869 \tabularnewline
26 & 826.8 & 862.153255813953 & -35.3532558139535 \tabularnewline
27 & 666.8 & 692.093255813954 & -25.2932558139536 \tabularnewline
28 & 906.6 & 797.20023255814 & 109.399767441860 \tabularnewline
29 & 871.4 & 869.98023255814 & 1.41976744186046 \tabularnewline
30 & 891 & 762.06023255814 & 128.939767441860 \tabularnewline
31 & 739.2 & 716.366511627907 & 22.8334883720930 \tabularnewline
32 & 833.6 & 726.20023255814 & 107.399767441860 \tabularnewline
33 & 715.6 & 706.98023255814 & 8.61976744186045 \tabularnewline
34 & 871.6 & 846.093488372093 & 25.5065116279071 \tabularnewline
35 & 751.6 & 725.626511627907 & 25.9734883720931 \tabularnewline
36 & 1005.5 & 837.226511627907 & 168.273488372093 \tabularnewline
37 & 681.2 & 681.329256725946 & -0.129256725946058 \tabularnewline
38 & 837.3 & 873.834249886 & -36.534249886001 \tabularnewline
39 & 674.7 & 703.774249886001 & -29.0742498860009 \tabularnewline
40 & 806.3 & 803.947505699954 & 2.35249430004549 \tabularnewline
41 & 860.2 & 876.727505699954 & -16.5275056999544 \tabularnewline
42 & 689.8 & 768.807505699954 & -79.0075056999545 \tabularnewline
43 & 691.6 & 728.047505699955 & -36.4475056999544 \tabularnewline
44 & 682.6 & 732.947505699954 & -50.3475056999544 \tabularnewline
45 & 800.1 & 713.727505699954 & 86.3724943000455 \tabularnewline
46 & 1023.7 & 852.840761513908 & 170.859238486092 \tabularnewline
47 & 733.5 & 737.307505699954 & -3.80750569995441 \tabularnewline
48 & 875.3 & 848.907505699954 & 26.3924943000455 \tabularnewline
49 & 770.2 & 693.010250797994 & 77.1897492020065 \tabularnewline
50 & 1005.7 & 885.515243958048 & 120.184756041952 \tabularnewline
51 & 982.3 & 720.388964888281 & 261.911035111719 \tabularnewline
52 & 742.9 & 820.562220702234 & -77.6622207022344 \tabularnewline
53 & 974.2 & 893.342220702234 & 80.8577792977656 \tabularnewline
54 & 822.3 & 785.422220702234 & 36.8777792977656 \tabularnewline
55 & 773.2 & 744.662220702234 & 28.5377792977656 \tabularnewline
56 & 750.9 & 749.562220702234 & 1.33777929776554 \tabularnewline
57 & 708 & 730.342220702234 & -22.3422207022345 \tabularnewline
58 & 690 & 869.455476516188 & -179.455476516188 \tabularnewline
59 & 652.8 & 753.922220702234 & -101.122220702234 \tabularnewline
60 & 620.7 & 865.522220702234 & -244.822220702234 \tabularnewline
61 & 461.9 & 709.624965800273 & -247.724965800274 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&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]604.4[/C][C]646.286274509805[/C][C]-41.8862745098046[/C][/ROW]
[ROW][C]2[/C][C]883.9[/C][C]838.791267669859[/C][C]45.1087323301413[/C][/ROW]
[ROW][C]3[/C][C]527.9[/C][C]668.731267669858[/C][C]-140.831267669859[/C][/ROW]
[ROW][C]4[/C][C]756.2[/C][C]768.904523483812[/C][C]-12.7045234838121[/C][/ROW]
[ROW][C]5[/C][C]812.9[/C][C]841.684523483812[/C][C]-28.7845234838121[/C][/ROW]
[ROW][C]6[/C][C]655.6[/C][C]733.764523483812[/C][C]-78.1645234838121[/C][/ROW]
[ROW][C]7[/C][C]707.6[/C][C]693.004523483812[/C][C]14.5954765161879[/C][/ROW]
[ROW][C]8[/C][C]612.6[/C][C]697.904523483812[/C][C]-85.304523483812[/C][/ROW]
[ROW][C]9[/C][C]659.2[/C][C]678.684523483812[/C][C]-19.4845234838120[/C][/ROW]
[ROW][C]10[/C][C]833.4[/C][C]817.797779297766[/C][C]15.6022207022342[/C][/ROW]
[ROW][C]11[/C][C]727.8[/C][C]702.264523483812[/C][C]25.535476516188[/C][/ROW]
[ROW][C]12[/C][C]797.2[/C][C]813.864523483812[/C][C]-16.6645234838120[/C][/ROW]
[ROW][C]13[/C][C]753[/C][C]657.967268581851[/C][C]95.0327314181488[/C][/ROW]
[ROW][C]14[/C][C]762[/C][C]855.405982672138[/C][C]-93.4059826721384[/C][/ROW]
[ROW][C]15[/C][C]613.7[/C][C]680.412261741906[/C][C]-66.712261741906[/C][/ROW]
[ROW][C]16[/C][C]759.2[/C][C]780.58551755586[/C][C]-21.3855175558595[/C][/ROW]
[ROW][C]17[/C][C]816.4[/C][C]853.36551755586[/C][C]-36.9655175558595[/C][/ROW]
[ROW][C]18[/C][C]736.8[/C][C]745.44551755586[/C][C]-8.64551755585953[/C][/ROW]
[ROW][C]19[/C][C]680.1[/C][C]709.619238486092[/C][C]-29.5192384860921[/C][/ROW]
[ROW][C]20[/C][C]736.5[/C][C]709.58551755586[/C][C]26.9144824441405[/C][/ROW]
[ROW][C]21[/C][C]637.2[/C][C]690.36551755586[/C][C]-53.1655175558595[/C][/ROW]
[ROW][C]22[/C][C]801.9[/C][C]834.412494300046[/C][C]-32.5124943000455[/C][/ROW]
[ROW][C]23[/C][C]772.3[/C][C]718.879238486092[/C][C]53.4207615139079[/C][/ROW]
[ROW][C]24[/C][C]897.3[/C][C]830.479238486092[/C][C]66.8207615139079[/C][/ROW]
[ROW][C]25[/C][C]792.1[/C][C]674.581983584131[/C][C]117.518016415869[/C][/ROW]
[ROW][C]26[/C][C]826.8[/C][C]862.153255813953[/C][C]-35.3532558139535[/C][/ROW]
[ROW][C]27[/C][C]666.8[/C][C]692.093255813954[/C][C]-25.2932558139536[/C][/ROW]
[ROW][C]28[/C][C]906.6[/C][C]797.20023255814[/C][C]109.399767441860[/C][/ROW]
[ROW][C]29[/C][C]871.4[/C][C]869.98023255814[/C][C]1.41976744186046[/C][/ROW]
[ROW][C]30[/C][C]891[/C][C]762.06023255814[/C][C]128.939767441860[/C][/ROW]
[ROW][C]31[/C][C]739.2[/C][C]716.366511627907[/C][C]22.8334883720930[/C][/ROW]
[ROW][C]32[/C][C]833.6[/C][C]726.20023255814[/C][C]107.399767441860[/C][/ROW]
[ROW][C]33[/C][C]715.6[/C][C]706.98023255814[/C][C]8.61976744186045[/C][/ROW]
[ROW][C]34[/C][C]871.6[/C][C]846.093488372093[/C][C]25.5065116279071[/C][/ROW]
[ROW][C]35[/C][C]751.6[/C][C]725.626511627907[/C][C]25.9734883720931[/C][/ROW]
[ROW][C]36[/C][C]1005.5[/C][C]837.226511627907[/C][C]168.273488372093[/C][/ROW]
[ROW][C]37[/C][C]681.2[/C][C]681.329256725946[/C][C]-0.129256725946058[/C][/ROW]
[ROW][C]38[/C][C]837.3[/C][C]873.834249886[/C][C]-36.534249886001[/C][/ROW]
[ROW][C]39[/C][C]674.7[/C][C]703.774249886001[/C][C]-29.0742498860009[/C][/ROW]
[ROW][C]40[/C][C]806.3[/C][C]803.947505699954[/C][C]2.35249430004549[/C][/ROW]
[ROW][C]41[/C][C]860.2[/C][C]876.727505699954[/C][C]-16.5275056999544[/C][/ROW]
[ROW][C]42[/C][C]689.8[/C][C]768.807505699954[/C][C]-79.0075056999545[/C][/ROW]
[ROW][C]43[/C][C]691.6[/C][C]728.047505699955[/C][C]-36.4475056999544[/C][/ROW]
[ROW][C]44[/C][C]682.6[/C][C]732.947505699954[/C][C]-50.3475056999544[/C][/ROW]
[ROW][C]45[/C][C]800.1[/C][C]713.727505699954[/C][C]86.3724943000455[/C][/ROW]
[ROW][C]46[/C][C]1023.7[/C][C]852.840761513908[/C][C]170.859238486092[/C][/ROW]
[ROW][C]47[/C][C]733.5[/C][C]737.307505699954[/C][C]-3.80750569995441[/C][/ROW]
[ROW][C]48[/C][C]875.3[/C][C]848.907505699954[/C][C]26.3924943000455[/C][/ROW]
[ROW][C]49[/C][C]770.2[/C][C]693.010250797994[/C][C]77.1897492020065[/C][/ROW]
[ROW][C]50[/C][C]1005.7[/C][C]885.515243958048[/C][C]120.184756041952[/C][/ROW]
[ROW][C]51[/C][C]982.3[/C][C]720.388964888281[/C][C]261.911035111719[/C][/ROW]
[ROW][C]52[/C][C]742.9[/C][C]820.562220702234[/C][C]-77.6622207022344[/C][/ROW]
[ROW][C]53[/C][C]974.2[/C][C]893.342220702234[/C][C]80.8577792977656[/C][/ROW]
[ROW][C]54[/C][C]822.3[/C][C]785.422220702234[/C][C]36.8777792977656[/C][/ROW]
[ROW][C]55[/C][C]773.2[/C][C]744.662220702234[/C][C]28.5377792977656[/C][/ROW]
[ROW][C]56[/C][C]750.9[/C][C]749.562220702234[/C][C]1.33777929776554[/C][/ROW]
[ROW][C]57[/C][C]708[/C][C]730.342220702234[/C][C]-22.3422207022345[/C][/ROW]
[ROW][C]58[/C][C]690[/C][C]869.455476516188[/C][C]-179.455476516188[/C][/ROW]
[ROW][C]59[/C][C]652.8[/C][C]753.922220702234[/C][C]-101.122220702234[/C][/ROW]
[ROW][C]60[/C][C]620.7[/C][C]865.522220702234[/C][C]-244.822220702234[/C][/ROW]
[ROW][C]61[/C][C]461.9[/C][C]709.624965800273[/C][C]-247.724965800274[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25384&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
1604.4646.286274509805-41.8862745098046
2883.9838.79126766985945.1087323301413
3527.9668.731267669858-140.831267669859
4756.2768.904523483812-12.7045234838121
5812.9841.684523483812-28.7845234838121
6655.6733.764523483812-78.1645234838121
7707.6693.00452348381214.5954765161879
8612.6697.904523483812-85.304523483812
9659.2678.684523483812-19.4845234838120
10833.4817.79777929776615.6022207022342
11727.8702.26452348381225.535476516188
12797.2813.864523483812-16.6645234838120
13753657.96726858185195.0327314181488
14762855.405982672138-93.4059826721384
15613.7680.412261741906-66.712261741906
16759.2780.58551755586-21.3855175558595
17816.4853.36551755586-36.9655175558595
18736.8745.44551755586-8.64551755585953
19680.1709.619238486092-29.5192384860921
20736.5709.5855175558626.9144824441405
21637.2690.36551755586-53.1655175558595
22801.9834.412494300046-32.5124943000455
23772.3718.87923848609253.4207615139079
24897.3830.47923848609266.8207615139079
25792.1674.581983584131117.518016415869
26826.8862.153255813953-35.3532558139535
27666.8692.093255813954-25.2932558139536
28906.6797.20023255814109.399767441860
29871.4869.980232558141.41976744186046
30891762.06023255814128.939767441860
31739.2716.36651162790722.8334883720930
32833.6726.20023255814107.399767441860
33715.6706.980232558148.61976744186045
34871.6846.09348837209325.5065116279071
35751.6725.62651162790725.9734883720931
361005.5837.226511627907168.273488372093
37681.2681.329256725946-0.129256725946058
38837.3873.834249886-36.534249886001
39674.7703.774249886001-29.0742498860009
40806.3803.9475056999542.35249430004549
41860.2876.727505699954-16.5275056999544
42689.8768.807505699954-79.0075056999545
43691.6728.047505699955-36.4475056999544
44682.6732.947505699954-50.3475056999544
45800.1713.72750569995486.3724943000455
461023.7852.840761513908170.859238486092
47733.5737.307505699954-3.80750569995441
48875.3848.90750569995426.3924943000455
49770.2693.01025079799477.1897492020065
501005.7885.515243958048120.184756041952
51982.3720.388964888281261.911035111719
52742.9820.562220702234-77.6622207022344
53974.2893.34222070223480.8577792977656
54822.3785.42222070223436.8777792977656
55773.2744.66222070223428.5377792977656
56750.9749.5622207022341.33777929776554
57708730.342220702234-22.3422207022345
58690869.455476516188-179.455476516188
59652.8753.922220702234-101.122220702234
60620.7865.522220702234-244.822220702234
61461.9709.624965800273-247.724965800274







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1061284784990950.2122569569981900.893871521500905
180.03971523457579670.07943046915159340.960284765424203
190.02316738121336980.04633476242673950.97683261878663
200.01120683262518130.02241366525036260.988793167374819
210.01043484906165640.02086969812331280.989565150938344
220.004687372799187410.009374745598374820.995312627200813
230.003835454452203790.007670908904407590.996164545547796
240.004796458328322400.009592916656644790.995203541671678
250.003833352891687560.007666705783375120.996166647108312
260.003874437652239900.007748875304479810.99612556234776
270.002869193167739830.005738386335479660.99713080683226
280.002737199465933140.005474398931866280.997262800534067
290.001279631534396330.002559263068792660.998720368465604
300.001878149367138650.003756298734277310.998121850632861
310.0008698867338422480.001739773467684500.999130113266158
320.000592812437555610.001185624875111220.999407187562444
330.0002561766051974380.0005123532103948760.999743823394803
340.0001030700857721830.0002061401715443660.999896929914228
354.87538117277617e-059.75076234555235e-050.999951246188272
360.0001019555187868580.0002039110375737170.999898044481213
370.0001805206557261740.0003610413114523480.999819479344274
388.03965800890145e-050.0001607931601780290.99991960341991
390.0005160973536532150.001032194707306430.999483902646347
400.0002425191696696560.0004850383393393120.99975748083033
410.0002763657678602270.0005527315357204540.99972363423214
420.001535662934836890.003071325869673770.998464337065163
430.004872344309468330.009744688618936670.995127655690532
440.0528114188487420.1056228376974840.947188581151258

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.106128478499095 & 0.212256956998190 & 0.893871521500905 \tabularnewline
18 & 0.0397152345757967 & 0.0794304691515934 & 0.960284765424203 \tabularnewline
19 & 0.0231673812133698 & 0.0463347624267395 & 0.97683261878663 \tabularnewline
20 & 0.0112068326251813 & 0.0224136652503626 & 0.988793167374819 \tabularnewline
21 & 0.0104348490616564 & 0.0208696981233128 & 0.989565150938344 \tabularnewline
22 & 0.00468737279918741 & 0.00937474559837482 & 0.995312627200813 \tabularnewline
23 & 0.00383545445220379 & 0.00767090890440759 & 0.996164545547796 \tabularnewline
24 & 0.00479645832832240 & 0.00959291665664479 & 0.995203541671678 \tabularnewline
25 & 0.00383335289168756 & 0.00766670578337512 & 0.996166647108312 \tabularnewline
26 & 0.00387443765223990 & 0.00774887530447981 & 0.99612556234776 \tabularnewline
27 & 0.00286919316773983 & 0.00573838633547966 & 0.99713080683226 \tabularnewline
28 & 0.00273719946593314 & 0.00547439893186628 & 0.997262800534067 \tabularnewline
29 & 0.00127963153439633 & 0.00255926306879266 & 0.998720368465604 \tabularnewline
30 & 0.00187814936713865 & 0.00375629873427731 & 0.998121850632861 \tabularnewline
31 & 0.000869886733842248 & 0.00173977346768450 & 0.999130113266158 \tabularnewline
32 & 0.00059281243755561 & 0.00118562487511122 & 0.999407187562444 \tabularnewline
33 & 0.000256176605197438 & 0.000512353210394876 & 0.999743823394803 \tabularnewline
34 & 0.000103070085772183 & 0.000206140171544366 & 0.999896929914228 \tabularnewline
35 & 4.87538117277617e-05 & 9.75076234555235e-05 & 0.999951246188272 \tabularnewline
36 & 0.000101955518786858 & 0.000203911037573717 & 0.999898044481213 \tabularnewline
37 & 0.000180520655726174 & 0.000361041311452348 & 0.999819479344274 \tabularnewline
38 & 8.03965800890145e-05 & 0.000160793160178029 & 0.99991960341991 \tabularnewline
39 & 0.000516097353653215 & 0.00103219470730643 & 0.999483902646347 \tabularnewline
40 & 0.000242519169669656 & 0.000485038339339312 & 0.99975748083033 \tabularnewline
41 & 0.000276365767860227 & 0.000552731535720454 & 0.99972363423214 \tabularnewline
42 & 0.00153566293483689 & 0.00307132586967377 & 0.998464337065163 \tabularnewline
43 & 0.00487234430946833 & 0.00974468861893667 & 0.995127655690532 \tabularnewline
44 & 0.052811418848742 & 0.105622837697484 & 0.947188581151258 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&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.106128478499095[/C][C]0.212256956998190[/C][C]0.893871521500905[/C][/ROW]
[ROW][C]18[/C][C]0.0397152345757967[/C][C]0.0794304691515934[/C][C]0.960284765424203[/C][/ROW]
[ROW][C]19[/C][C]0.0231673812133698[/C][C]0.0463347624267395[/C][C]0.97683261878663[/C][/ROW]
[ROW][C]20[/C][C]0.0112068326251813[/C][C]0.0224136652503626[/C][C]0.988793167374819[/C][/ROW]
[ROW][C]21[/C][C]0.0104348490616564[/C][C]0.0208696981233128[/C][C]0.989565150938344[/C][/ROW]
[ROW][C]22[/C][C]0.00468737279918741[/C][C]0.00937474559837482[/C][C]0.995312627200813[/C][/ROW]
[ROW][C]23[/C][C]0.00383545445220379[/C][C]0.00767090890440759[/C][C]0.996164545547796[/C][/ROW]
[ROW][C]24[/C][C]0.00479645832832240[/C][C]0.00959291665664479[/C][C]0.995203541671678[/C][/ROW]
[ROW][C]25[/C][C]0.00383335289168756[/C][C]0.00766670578337512[/C][C]0.996166647108312[/C][/ROW]
[ROW][C]26[/C][C]0.00387443765223990[/C][C]0.00774887530447981[/C][C]0.99612556234776[/C][/ROW]
[ROW][C]27[/C][C]0.00286919316773983[/C][C]0.00573838633547966[/C][C]0.99713080683226[/C][/ROW]
[ROW][C]28[/C][C]0.00273719946593314[/C][C]0.00547439893186628[/C][C]0.997262800534067[/C][/ROW]
[ROW][C]29[/C][C]0.00127963153439633[/C][C]0.00255926306879266[/C][C]0.998720368465604[/C][/ROW]
[ROW][C]30[/C][C]0.00187814936713865[/C][C]0.00375629873427731[/C][C]0.998121850632861[/C][/ROW]
[ROW][C]31[/C][C]0.000869886733842248[/C][C]0.00173977346768450[/C][C]0.999130113266158[/C][/ROW]
[ROW][C]32[/C][C]0.00059281243755561[/C][C]0.00118562487511122[/C][C]0.999407187562444[/C][/ROW]
[ROW][C]33[/C][C]0.000256176605197438[/C][C]0.000512353210394876[/C][C]0.999743823394803[/C][/ROW]
[ROW][C]34[/C][C]0.000103070085772183[/C][C]0.000206140171544366[/C][C]0.999896929914228[/C][/ROW]
[ROW][C]35[/C][C]4.87538117277617e-05[/C][C]9.75076234555235e-05[/C][C]0.999951246188272[/C][/ROW]
[ROW][C]36[/C][C]0.000101955518786858[/C][C]0.000203911037573717[/C][C]0.999898044481213[/C][/ROW]
[ROW][C]37[/C][C]0.000180520655726174[/C][C]0.000361041311452348[/C][C]0.999819479344274[/C][/ROW]
[ROW][C]38[/C][C]8.03965800890145e-05[/C][C]0.000160793160178029[/C][C]0.99991960341991[/C][/ROW]
[ROW][C]39[/C][C]0.000516097353653215[/C][C]0.00103219470730643[/C][C]0.999483902646347[/C][/ROW]
[ROW][C]40[/C][C]0.000242519169669656[/C][C]0.000485038339339312[/C][C]0.99975748083033[/C][/ROW]
[ROW][C]41[/C][C]0.000276365767860227[/C][C]0.000552731535720454[/C][C]0.99972363423214[/C][/ROW]
[ROW][C]42[/C][C]0.00153566293483689[/C][C]0.00307132586967377[/C][C]0.998464337065163[/C][/ROW]
[ROW][C]43[/C][C]0.00487234430946833[/C][C]0.00974468861893667[/C][C]0.995127655690532[/C][/ROW]
[ROW][C]44[/C][C]0.052811418848742[/C][C]0.105622837697484[/C][C]0.947188581151258[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25384&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.1061284784990950.2122569569981900.893871521500905
180.03971523457579670.07943046915159340.960284765424203
190.02316738121336980.04633476242673950.97683261878663
200.01120683262518130.02241366525036260.988793167374819
210.01043484906165640.02086969812331280.989565150938344
220.004687372799187410.009374745598374820.995312627200813
230.003835454452203790.007670908904407590.996164545547796
240.004796458328322400.009592916656644790.995203541671678
250.003833352891687560.007666705783375120.996166647108312
260.003874437652239900.007748875304479810.99612556234776
270.002869193167739830.005738386335479660.99713080683226
280.002737199465933140.005474398931866280.997262800534067
290.001279631534396330.002559263068792660.998720368465604
300.001878149367138650.003756298734277310.998121850632861
310.0008698867338422480.001739773467684500.999130113266158
320.000592812437555610.001185624875111220.999407187562444
330.0002561766051974380.0005123532103948760.999743823394803
340.0001030700857721830.0002061401715443660.999896929914228
354.87538117277617e-059.75076234555235e-050.999951246188272
360.0001019555187868580.0002039110375737170.999898044481213
370.0001805206557261740.0003610413114523480.999819479344274
388.03965800890145e-050.0001607931601780290.99991960341991
390.0005160973536532150.001032194707306430.999483902646347
400.0002425191696696560.0004850383393393120.99975748083033
410.0002763657678602270.0005527315357204540.99972363423214
420.001535662934836890.003071325869673770.998464337065163
430.004872344309468330.009744688618936670.995127655690532
440.0528114188487420.1056228376974840.947188581151258







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.785714285714286NOK
5% type I error level250.892857142857143NOK
10% type I error level260.928571428571429NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 22 & 0.785714285714286 & NOK \tabularnewline
5% type I error level & 25 & 0.892857142857143 & NOK \tabularnewline
10% type I error level & 26 & 0.928571428571429 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25384&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]22[/C][C]0.785714285714286[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]25[/C][C]0.892857142857143[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]26[/C][C]0.928571428571429[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25384&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.785714285714286NOK
5% type I error level250.892857142857143NOK
10% type I error level260.928571428571429NOK



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