Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 18 Nov 2009 12:45:07 -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/t125857355555i9wxztl8eggxx.htm/, Retrieved Sun, 05 May 2024 14:34:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57606, Retrieved Sun, 05 May 2024 14:34:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact219
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-18 19:45:07] [f90b018c65398c2fee7b197f24b65ddd] [Current]
Feedback Forum

Post a new message
Dataseries X:
902.2	0
891.9	0
874	0
930.9	0
944.2	0
935.9	0
937.1	0
885.1	0
892.4	0
987.3	0
946.3	0
799.6	0
875.4	0
846.2	0
880.6	0
885.7	0
868.9	0
882.5	0
789.6	0
773.3	0
804.3	0
817.8	0
836.7	0
721.8	0
760.8	0
841.4	0
1045.6	0
949.2	1
850.1	1
957.4	0
851.8	0
913.9	0
888	0
973.8	0
927.6	1
833	1
879.5	1
797.3	1
834.5	1
735.1	1
835	1
892.8	1
697.2	1
821.1	1
732.7	1
797.6	1
866.3	1
826.3	1
778.6	1
779.2	1
951	1
692.3	1
841.4	1
857.3	1
760.7	1
841.2	0
810.3	0
1007.4	1
931.3	0
931.2	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57606&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57606&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57606&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'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 852.701226415094 -45.3792452830189X[t] + 13.2015330188675M1[t] + 5.43957547169818M2[t] + 91.7176179245284M3[t] + 22.6315094339623M4[t] + 52.2495518867925M5[t] + 80.771745283019M6[t] -16.7902122641509M7[t] + 14.1119811320755M8[t] -6.92997641509435M9[t] + 93.7239150943396M10[t] + 78.9219575471698M11[t] -0.338042452830185t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  852.701226415094 -45.3792452830189X[t] +  13.2015330188675M1[t] +  5.43957547169818M2[t] +  91.7176179245284M3[t] +  22.6315094339623M4[t] +  52.2495518867925M5[t] +  80.771745283019M6[t] -16.7902122641509M7[t] +  14.1119811320755M8[t] -6.92997641509435M9[t] +  93.7239150943396M10[t] +  78.9219575471698M11[t] -0.338042452830185t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57606&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  852.701226415094 -45.3792452830189X[t] +  13.2015330188675M1[t] +  5.43957547169818M2[t] +  91.7176179245284M3[t] +  22.6315094339623M4[t] +  52.2495518867925M5[t] +  80.771745283019M6[t] -16.7902122641509M7[t] +  14.1119811320755M8[t] -6.92997641509435M9[t] +  93.7239150943396M10[t] +  78.9219575471698M11[t] -0.338042452830185t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57606&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57606&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] = + 852.701226415094 -45.3792452830189X[t] + 13.2015330188675M1[t] + 5.43957547169818M2[t] + 91.7176179245284M3[t] + 22.6315094339623M4[t] + 52.2495518867925M5[t] + 80.771745283019M6[t] -16.7902122641509M7[t] + 14.1119811320755M8[t] -6.92997641509435M9[t] + 93.7239150943396M10[t] + 78.9219575471698M11[t] -0.338042452830185t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)852.70122641509436.82917523.152900
X-45.379245283018925.827817-1.7570.0855740.042787
M113.201533018867544.1489360.2990.766270.383135
M25.4395754716981844.0238940.12360.9022020.451101
M391.717617924528443.9104542.08870.0422930.021146
M422.631509433962344.5801840.50770.6141180.307059
M552.249551886792544.4334241.17590.2456820.122841
M680.77174528301943.6406051.85080.070620.03531
M7-16.790212264150943.574387-0.38530.7017740.350887
M814.111981132075543.5882060.32380.747590.373795
M9-6.9299764150943543.605561-0.15890.8744240.437212
M1093.723915094339643.4476922.15720.0362520.018126
M1178.921957547169843.4295621.81720.0756980.037849
t-0.3380424528301850.724578-0.46650.6430330.321517

\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) & 852.701226415094 & 36.829175 & 23.1529 & 0 & 0 \tabularnewline
X & -45.3792452830189 & 25.827817 & -1.757 & 0.085574 & 0.042787 \tabularnewline
M1 & 13.2015330188675 & 44.148936 & 0.299 & 0.76627 & 0.383135 \tabularnewline
M2 & 5.43957547169818 & 44.023894 & 0.1236 & 0.902202 & 0.451101 \tabularnewline
M3 & 91.7176179245284 & 43.910454 & 2.0887 & 0.042293 & 0.021146 \tabularnewline
M4 & 22.6315094339623 & 44.580184 & 0.5077 & 0.614118 & 0.307059 \tabularnewline
M5 & 52.2495518867925 & 44.433424 & 1.1759 & 0.245682 & 0.122841 \tabularnewline
M6 & 80.771745283019 & 43.640605 & 1.8508 & 0.07062 & 0.03531 \tabularnewline
M7 & -16.7902122641509 & 43.574387 & -0.3853 & 0.701774 & 0.350887 \tabularnewline
M8 & 14.1119811320755 & 43.588206 & 0.3238 & 0.74759 & 0.373795 \tabularnewline
M9 & -6.92997641509435 & 43.605561 & -0.1589 & 0.874424 & 0.437212 \tabularnewline
M10 & 93.7239150943396 & 43.447692 & 2.1572 & 0.036252 & 0.018126 \tabularnewline
M11 & 78.9219575471698 & 43.429562 & 1.8172 & 0.075698 & 0.037849 \tabularnewline
t & -0.338042452830185 & 0.724578 & -0.4665 & 0.643033 & 0.321517 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57606&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]852.701226415094[/C][C]36.829175[/C][C]23.1529[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-45.3792452830189[/C][C]25.827817[/C][C]-1.757[/C][C]0.085574[/C][C]0.042787[/C][/ROW]
[ROW][C]M1[/C][C]13.2015330188675[/C][C]44.148936[/C][C]0.299[/C][C]0.76627[/C][C]0.383135[/C][/ROW]
[ROW][C]M2[/C][C]5.43957547169818[/C][C]44.023894[/C][C]0.1236[/C][C]0.902202[/C][C]0.451101[/C][/ROW]
[ROW][C]M3[/C][C]91.7176179245284[/C][C]43.910454[/C][C]2.0887[/C][C]0.042293[/C][C]0.021146[/C][/ROW]
[ROW][C]M4[/C][C]22.6315094339623[/C][C]44.580184[/C][C]0.5077[/C][C]0.614118[/C][C]0.307059[/C][/ROW]
[ROW][C]M5[/C][C]52.2495518867925[/C][C]44.433424[/C][C]1.1759[/C][C]0.245682[/C][C]0.122841[/C][/ROW]
[ROW][C]M6[/C][C]80.771745283019[/C][C]43.640605[/C][C]1.8508[/C][C]0.07062[/C][C]0.03531[/C][/ROW]
[ROW][C]M7[/C][C]-16.7902122641509[/C][C]43.574387[/C][C]-0.3853[/C][C]0.701774[/C][C]0.350887[/C][/ROW]
[ROW][C]M8[/C][C]14.1119811320755[/C][C]43.588206[/C][C]0.3238[/C][C]0.74759[/C][C]0.373795[/C][/ROW]
[ROW][C]M9[/C][C]-6.92997641509435[/C][C]43.605561[/C][C]-0.1589[/C][C]0.874424[/C][C]0.437212[/C][/ROW]
[ROW][C]M10[/C][C]93.7239150943396[/C][C]43.447692[/C][C]2.1572[/C][C]0.036252[/C][C]0.018126[/C][/ROW]
[ROW][C]M11[/C][C]78.9219575471698[/C][C]43.429562[/C][C]1.8172[/C][C]0.075698[/C][C]0.037849[/C][/ROW]
[ROW][C]t[/C][C]-0.338042452830185[/C][C]0.724578[/C][C]-0.4665[/C][C]0.643033[/C][C]0.321517[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57606&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57606&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)852.70122641509436.82917523.152900
X-45.379245283018925.827817-1.7570.0855740.042787
M113.201533018867544.1489360.2990.766270.383135
M25.4395754716981844.0238940.12360.9022020.451101
M391.717617924528443.9104542.08870.0422930.021146
M422.631509433962344.5801840.50770.6141180.307059
M552.249551886792544.4334241.17590.2456820.122841
M680.77174528301943.6406051.85080.070620.03531
M7-16.790212264150943.574387-0.38530.7017740.350887
M814.111981132075543.5882060.32380.747590.373795
M9-6.9299764150943543.605561-0.15890.8744240.437212
M1093.723915094339643.4476922.15720.0362520.018126
M1178.921957547169843.4295621.81720.0756980.037849
t-0.3380424528301850.724578-0.46650.6430330.321517







Multiple Linear Regression - Regression Statistics
Multiple R0.609636459867138
R-squared0.371656613199336
Adjusted R-squared0.194081308233931
F-TEST (value)2.09295213245863
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.0333177956843731
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation68.6586098693227
Sum Squared Residuals216844.216622641

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.609636459867138 \tabularnewline
R-squared & 0.371656613199336 \tabularnewline
Adjusted R-squared & 0.194081308233931 \tabularnewline
F-TEST (value) & 2.09295213245863 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.0333177956843731 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 68.6586098693227 \tabularnewline
Sum Squared Residuals & 216844.216622641 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57606&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.609636459867138[/C][/ROW]
[ROW][C]R-squared[/C][C]0.371656613199336[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.194081308233931[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.09295213245863[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.0333177956843731[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]68.6586098693227[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]216844.216622641[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57606&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57606&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.609636459867138
R-squared0.371656613199336
Adjusted R-squared0.194081308233931
F-TEST (value)2.09295213245863
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.0333177956843731
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation68.6586098693227
Sum Squared Residuals216844.216622641







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1902.2865.56471698113436.635283018866
2891.9857.46471698113234.435283018868
3874943.404716981132-69.404716981132
4930.9873.98056603773656.9194339622642
5944.2903.26056603773640.9394339622642
6935.9931.4447169811324.45528301886807
7937.1833.544716981132103.555283018868
8885.1864.10886792452820.9911320754718
9892.4842.72886792452849.6711320754718
10987.3943.04471698113244.2552830188679
11946.3927.90471698113218.395283018868
12799.6848.644716981132-49.0447169811319
13875.4861.5082075471713.8917924528306
14846.2853.40820754717-7.20820754716972
15880.6939.34820754717-58.7482075471697
16885.7869.92405660377415.7759433962265
17868.9899.204056603773-30.3040566037735
18882.5927.38820754717-44.8882075471698
19789.6829.48820754717-39.8882075471698
20773.3860.052358490566-86.752358490566
21804.3838.672358490566-34.3723584905660
22817.8938.98820754717-121.18820754717
23836.7923.84820754717-87.1482075471697
24721.8844.58820754717-122.788207547170
25760.8857.451698113207-96.651698113207
26841.4849.351698113208-7.95169811320757
271045.6935.291698113208110.308301886792
28949.2820.488301886792128.711698113208
29850.1849.7683018867920.331698113207585
30957.4923.33169811320834.0683018867924
31851.8825.43169811320826.3683018867924
32913.9855.99584905660457.9041509433962
33888834.61584905660453.3841509433962
34973.8934.93169811320838.8683018867924
35927.6874.41245283018953.1875471698113
36833795.15245283018937.8475471698113
37879.5808.01594339622671.484056603774
38797.3799.915943396226-2.61594339622653
39834.5885.855943396226-51.3559433962265
40735.1816.43179245283-81.3317924528302
41835845.71179245283-10.7117924528302
42892.8873.89594339622618.9040566037735
43697.2775.995943396226-78.7959433962264
44821.1806.56009433962314.5399056603773
45732.7785.180094339623-52.4800943396226
46797.6885.495943396226-87.8959433962264
47866.3870.355943396227-4.05594339622652
48826.3791.09594339622635.2040566037735
49778.6803.959433962264-25.3594339622637
50779.2795.859433962264-16.6594339622642
51951881.79943396226469.2005660377358
52692.3812.375283018868-120.075283018868
53841.4841.655283018868-0.255283018868008
54857.3869.839433962264-12.5394339622643
55760.7771.939433962264-11.2394339622642
56841.2847.88283018868-6.68283018867928
57810.3826.50283018868-16.2028301886794
581007.4881.439433962264125.960566037736
59931.3911.67867924528319.6213207547168
60931.2832.41867924528398.781320754717

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 902.2 & 865.564716981134 & 36.635283018866 \tabularnewline
2 & 891.9 & 857.464716981132 & 34.435283018868 \tabularnewline
3 & 874 & 943.404716981132 & -69.404716981132 \tabularnewline
4 & 930.9 & 873.980566037736 & 56.9194339622642 \tabularnewline
5 & 944.2 & 903.260566037736 & 40.9394339622642 \tabularnewline
6 & 935.9 & 931.444716981132 & 4.45528301886807 \tabularnewline
7 & 937.1 & 833.544716981132 & 103.555283018868 \tabularnewline
8 & 885.1 & 864.108867924528 & 20.9911320754718 \tabularnewline
9 & 892.4 & 842.728867924528 & 49.6711320754718 \tabularnewline
10 & 987.3 & 943.044716981132 & 44.2552830188679 \tabularnewline
11 & 946.3 & 927.904716981132 & 18.395283018868 \tabularnewline
12 & 799.6 & 848.644716981132 & -49.0447169811319 \tabularnewline
13 & 875.4 & 861.50820754717 & 13.8917924528306 \tabularnewline
14 & 846.2 & 853.40820754717 & -7.20820754716972 \tabularnewline
15 & 880.6 & 939.34820754717 & -58.7482075471697 \tabularnewline
16 & 885.7 & 869.924056603774 & 15.7759433962265 \tabularnewline
17 & 868.9 & 899.204056603773 & -30.3040566037735 \tabularnewline
18 & 882.5 & 927.38820754717 & -44.8882075471698 \tabularnewline
19 & 789.6 & 829.48820754717 & -39.8882075471698 \tabularnewline
20 & 773.3 & 860.052358490566 & -86.752358490566 \tabularnewline
21 & 804.3 & 838.672358490566 & -34.3723584905660 \tabularnewline
22 & 817.8 & 938.98820754717 & -121.18820754717 \tabularnewline
23 & 836.7 & 923.84820754717 & -87.1482075471697 \tabularnewline
24 & 721.8 & 844.58820754717 & -122.788207547170 \tabularnewline
25 & 760.8 & 857.451698113207 & -96.651698113207 \tabularnewline
26 & 841.4 & 849.351698113208 & -7.95169811320757 \tabularnewline
27 & 1045.6 & 935.291698113208 & 110.308301886792 \tabularnewline
28 & 949.2 & 820.488301886792 & 128.711698113208 \tabularnewline
29 & 850.1 & 849.768301886792 & 0.331698113207585 \tabularnewline
30 & 957.4 & 923.331698113208 & 34.0683018867924 \tabularnewline
31 & 851.8 & 825.431698113208 & 26.3683018867924 \tabularnewline
32 & 913.9 & 855.995849056604 & 57.9041509433962 \tabularnewline
33 & 888 & 834.615849056604 & 53.3841509433962 \tabularnewline
34 & 973.8 & 934.931698113208 & 38.8683018867924 \tabularnewline
35 & 927.6 & 874.412452830189 & 53.1875471698113 \tabularnewline
36 & 833 & 795.152452830189 & 37.8475471698113 \tabularnewline
37 & 879.5 & 808.015943396226 & 71.484056603774 \tabularnewline
38 & 797.3 & 799.915943396226 & -2.61594339622653 \tabularnewline
39 & 834.5 & 885.855943396226 & -51.3559433962265 \tabularnewline
40 & 735.1 & 816.43179245283 & -81.3317924528302 \tabularnewline
41 & 835 & 845.71179245283 & -10.7117924528302 \tabularnewline
42 & 892.8 & 873.895943396226 & 18.9040566037735 \tabularnewline
43 & 697.2 & 775.995943396226 & -78.7959433962264 \tabularnewline
44 & 821.1 & 806.560094339623 & 14.5399056603773 \tabularnewline
45 & 732.7 & 785.180094339623 & -52.4800943396226 \tabularnewline
46 & 797.6 & 885.495943396226 & -87.8959433962264 \tabularnewline
47 & 866.3 & 870.355943396227 & -4.05594339622652 \tabularnewline
48 & 826.3 & 791.095943396226 & 35.2040566037735 \tabularnewline
49 & 778.6 & 803.959433962264 & -25.3594339622637 \tabularnewline
50 & 779.2 & 795.859433962264 & -16.6594339622642 \tabularnewline
51 & 951 & 881.799433962264 & 69.2005660377358 \tabularnewline
52 & 692.3 & 812.375283018868 & -120.075283018868 \tabularnewline
53 & 841.4 & 841.655283018868 & -0.255283018868008 \tabularnewline
54 & 857.3 & 869.839433962264 & -12.5394339622643 \tabularnewline
55 & 760.7 & 771.939433962264 & -11.2394339622642 \tabularnewline
56 & 841.2 & 847.88283018868 & -6.68283018867928 \tabularnewline
57 & 810.3 & 826.50283018868 & -16.2028301886794 \tabularnewline
58 & 1007.4 & 881.439433962264 & 125.960566037736 \tabularnewline
59 & 931.3 & 911.678679245283 & 19.6213207547168 \tabularnewline
60 & 931.2 & 832.418679245283 & 98.781320754717 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57606&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]902.2[/C][C]865.564716981134[/C][C]36.635283018866[/C][/ROW]
[ROW][C]2[/C][C]891.9[/C][C]857.464716981132[/C][C]34.435283018868[/C][/ROW]
[ROW][C]3[/C][C]874[/C][C]943.404716981132[/C][C]-69.404716981132[/C][/ROW]
[ROW][C]4[/C][C]930.9[/C][C]873.980566037736[/C][C]56.9194339622642[/C][/ROW]
[ROW][C]5[/C][C]944.2[/C][C]903.260566037736[/C][C]40.9394339622642[/C][/ROW]
[ROW][C]6[/C][C]935.9[/C][C]931.444716981132[/C][C]4.45528301886807[/C][/ROW]
[ROW][C]7[/C][C]937.1[/C][C]833.544716981132[/C][C]103.555283018868[/C][/ROW]
[ROW][C]8[/C][C]885.1[/C][C]864.108867924528[/C][C]20.9911320754718[/C][/ROW]
[ROW][C]9[/C][C]892.4[/C][C]842.728867924528[/C][C]49.6711320754718[/C][/ROW]
[ROW][C]10[/C][C]987.3[/C][C]943.044716981132[/C][C]44.2552830188679[/C][/ROW]
[ROW][C]11[/C][C]946.3[/C][C]927.904716981132[/C][C]18.395283018868[/C][/ROW]
[ROW][C]12[/C][C]799.6[/C][C]848.644716981132[/C][C]-49.0447169811319[/C][/ROW]
[ROW][C]13[/C][C]875.4[/C][C]861.50820754717[/C][C]13.8917924528306[/C][/ROW]
[ROW][C]14[/C][C]846.2[/C][C]853.40820754717[/C][C]-7.20820754716972[/C][/ROW]
[ROW][C]15[/C][C]880.6[/C][C]939.34820754717[/C][C]-58.7482075471697[/C][/ROW]
[ROW][C]16[/C][C]885.7[/C][C]869.924056603774[/C][C]15.7759433962265[/C][/ROW]
[ROW][C]17[/C][C]868.9[/C][C]899.204056603773[/C][C]-30.3040566037735[/C][/ROW]
[ROW][C]18[/C][C]882.5[/C][C]927.38820754717[/C][C]-44.8882075471698[/C][/ROW]
[ROW][C]19[/C][C]789.6[/C][C]829.48820754717[/C][C]-39.8882075471698[/C][/ROW]
[ROW][C]20[/C][C]773.3[/C][C]860.052358490566[/C][C]-86.752358490566[/C][/ROW]
[ROW][C]21[/C][C]804.3[/C][C]838.672358490566[/C][C]-34.3723584905660[/C][/ROW]
[ROW][C]22[/C][C]817.8[/C][C]938.98820754717[/C][C]-121.18820754717[/C][/ROW]
[ROW][C]23[/C][C]836.7[/C][C]923.84820754717[/C][C]-87.1482075471697[/C][/ROW]
[ROW][C]24[/C][C]721.8[/C][C]844.58820754717[/C][C]-122.788207547170[/C][/ROW]
[ROW][C]25[/C][C]760.8[/C][C]857.451698113207[/C][C]-96.651698113207[/C][/ROW]
[ROW][C]26[/C][C]841.4[/C][C]849.351698113208[/C][C]-7.95169811320757[/C][/ROW]
[ROW][C]27[/C][C]1045.6[/C][C]935.291698113208[/C][C]110.308301886792[/C][/ROW]
[ROW][C]28[/C][C]949.2[/C][C]820.488301886792[/C][C]128.711698113208[/C][/ROW]
[ROW][C]29[/C][C]850.1[/C][C]849.768301886792[/C][C]0.331698113207585[/C][/ROW]
[ROW][C]30[/C][C]957.4[/C][C]923.331698113208[/C][C]34.0683018867924[/C][/ROW]
[ROW][C]31[/C][C]851.8[/C][C]825.431698113208[/C][C]26.3683018867924[/C][/ROW]
[ROW][C]32[/C][C]913.9[/C][C]855.995849056604[/C][C]57.9041509433962[/C][/ROW]
[ROW][C]33[/C][C]888[/C][C]834.615849056604[/C][C]53.3841509433962[/C][/ROW]
[ROW][C]34[/C][C]973.8[/C][C]934.931698113208[/C][C]38.8683018867924[/C][/ROW]
[ROW][C]35[/C][C]927.6[/C][C]874.412452830189[/C][C]53.1875471698113[/C][/ROW]
[ROW][C]36[/C][C]833[/C][C]795.152452830189[/C][C]37.8475471698113[/C][/ROW]
[ROW][C]37[/C][C]879.5[/C][C]808.015943396226[/C][C]71.484056603774[/C][/ROW]
[ROW][C]38[/C][C]797.3[/C][C]799.915943396226[/C][C]-2.61594339622653[/C][/ROW]
[ROW][C]39[/C][C]834.5[/C][C]885.855943396226[/C][C]-51.3559433962265[/C][/ROW]
[ROW][C]40[/C][C]735.1[/C][C]816.43179245283[/C][C]-81.3317924528302[/C][/ROW]
[ROW][C]41[/C][C]835[/C][C]845.71179245283[/C][C]-10.7117924528302[/C][/ROW]
[ROW][C]42[/C][C]892.8[/C][C]873.895943396226[/C][C]18.9040566037735[/C][/ROW]
[ROW][C]43[/C][C]697.2[/C][C]775.995943396226[/C][C]-78.7959433962264[/C][/ROW]
[ROW][C]44[/C][C]821.1[/C][C]806.560094339623[/C][C]14.5399056603773[/C][/ROW]
[ROW][C]45[/C][C]732.7[/C][C]785.180094339623[/C][C]-52.4800943396226[/C][/ROW]
[ROW][C]46[/C][C]797.6[/C][C]885.495943396226[/C][C]-87.8959433962264[/C][/ROW]
[ROW][C]47[/C][C]866.3[/C][C]870.355943396227[/C][C]-4.05594339622652[/C][/ROW]
[ROW][C]48[/C][C]826.3[/C][C]791.095943396226[/C][C]35.2040566037735[/C][/ROW]
[ROW][C]49[/C][C]778.6[/C][C]803.959433962264[/C][C]-25.3594339622637[/C][/ROW]
[ROW][C]50[/C][C]779.2[/C][C]795.859433962264[/C][C]-16.6594339622642[/C][/ROW]
[ROW][C]51[/C][C]951[/C][C]881.799433962264[/C][C]69.2005660377358[/C][/ROW]
[ROW][C]52[/C][C]692.3[/C][C]812.375283018868[/C][C]-120.075283018868[/C][/ROW]
[ROW][C]53[/C][C]841.4[/C][C]841.655283018868[/C][C]-0.255283018868008[/C][/ROW]
[ROW][C]54[/C][C]857.3[/C][C]869.839433962264[/C][C]-12.5394339622643[/C][/ROW]
[ROW][C]55[/C][C]760.7[/C][C]771.939433962264[/C][C]-11.2394339622642[/C][/ROW]
[ROW][C]56[/C][C]841.2[/C][C]847.88283018868[/C][C]-6.68283018867928[/C][/ROW]
[ROW][C]57[/C][C]810.3[/C][C]826.50283018868[/C][C]-16.2028301886794[/C][/ROW]
[ROW][C]58[/C][C]1007.4[/C][C]881.439433962264[/C][C]125.960566037736[/C][/ROW]
[ROW][C]59[/C][C]931.3[/C][C]911.678679245283[/C][C]19.6213207547168[/C][/ROW]
[ROW][C]60[/C][C]931.2[/C][C]832.418679245283[/C][C]98.781320754717[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57606&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57606&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
1902.2865.56471698113436.635283018866
2891.9857.46471698113234.435283018868
3874943.404716981132-69.404716981132
4930.9873.98056603773656.9194339622642
5944.2903.26056603773640.9394339622642
6935.9931.4447169811324.45528301886807
7937.1833.544716981132103.555283018868
8885.1864.10886792452820.9911320754718
9892.4842.72886792452849.6711320754718
10987.3943.04471698113244.2552830188679
11946.3927.90471698113218.395283018868
12799.6848.644716981132-49.0447169811319
13875.4861.5082075471713.8917924528306
14846.2853.40820754717-7.20820754716972
15880.6939.34820754717-58.7482075471697
16885.7869.92405660377415.7759433962265
17868.9899.204056603773-30.3040566037735
18882.5927.38820754717-44.8882075471698
19789.6829.48820754717-39.8882075471698
20773.3860.052358490566-86.752358490566
21804.3838.672358490566-34.3723584905660
22817.8938.98820754717-121.18820754717
23836.7923.84820754717-87.1482075471697
24721.8844.58820754717-122.788207547170
25760.8857.451698113207-96.651698113207
26841.4849.351698113208-7.95169811320757
271045.6935.291698113208110.308301886792
28949.2820.488301886792128.711698113208
29850.1849.7683018867920.331698113207585
30957.4923.33169811320834.0683018867924
31851.8825.43169811320826.3683018867924
32913.9855.99584905660457.9041509433962
33888834.61584905660453.3841509433962
34973.8934.93169811320838.8683018867924
35927.6874.41245283018953.1875471698113
36833795.15245283018937.8475471698113
37879.5808.01594339622671.484056603774
38797.3799.915943396226-2.61594339622653
39834.5885.855943396226-51.3559433962265
40735.1816.43179245283-81.3317924528302
41835845.71179245283-10.7117924528302
42892.8873.89594339622618.9040566037735
43697.2775.995943396226-78.7959433962264
44821.1806.56009433962314.5399056603773
45732.7785.180094339623-52.4800943396226
46797.6885.495943396226-87.8959433962264
47866.3870.355943396227-4.05594339622652
48826.3791.09594339622635.2040566037735
49778.6803.959433962264-25.3594339622637
50779.2795.859433962264-16.6594339622642
51951881.79943396226469.2005660377358
52692.3812.375283018868-120.075283018868
53841.4841.655283018868-0.255283018868008
54857.3869.839433962264-12.5394339622643
55760.7771.939433962264-11.2394339622642
56841.2847.88283018868-6.68283018867928
57810.3826.50283018868-16.2028301886794
581007.4881.439433962264125.960566037736
59931.3911.67867924528319.6213207547168
60931.2832.41867924528398.781320754717







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04631859923810520.09263719847621040.953681400761895
180.01352541914841790.02705083829683580.986474580851582
190.05602325332846280.1120465066569260.943976746671537
200.03859396360026360.07718792720052730.961406036399736
210.01747798698179620.03495597396359230.982522013018204
220.03724777698651110.07449555397302220.962752223013489
230.02463904210488210.04927808420976430.975360957895118
240.0288440064494550.057688012898910.971155993550545
250.02980523740409940.05961047480819880.9701947625959
260.04988399597546430.09976799195092860.950116004024536
270.6132282960203090.7735434079593820.386771703979691
280.8390646026514450.3218707946971090.160935397348555
290.7973327220853040.4053345558293920.202667277914696
300.7873005499037130.4253989001925740.212699450096287
310.7214085662040.5571828675919990.278591433795999
320.7324719877864390.5350560244271230.267528012213561
330.7370197154922480.5259605690155050.262980284507752
340.6994243895346820.6011512209306360.300575610465318
350.674881645459390.650236709081220.32511835454061
360.5870362193948030.8259275612103950.412963780605197
370.6633334847036060.6733330305927870.336666515296394
380.6280299503018220.7439400993963570.371970049698178
390.6080091913356220.7839816173287560.391990808664378
400.6867869295100050.6264261409799890.313213070489995
410.6083907007468370.7832185985063270.391609299253163
420.8077712456595280.3844575086809440.192228754340472
430.9409113051688090.1181773896623830.0590886948311914

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0463185992381052 & 0.0926371984762104 & 0.953681400761895 \tabularnewline
18 & 0.0135254191484179 & 0.0270508382968358 & 0.986474580851582 \tabularnewline
19 & 0.0560232533284628 & 0.112046506656926 & 0.943976746671537 \tabularnewline
20 & 0.0385939636002636 & 0.0771879272005273 & 0.961406036399736 \tabularnewline
21 & 0.0174779869817962 & 0.0349559739635923 & 0.982522013018204 \tabularnewline
22 & 0.0372477769865111 & 0.0744955539730222 & 0.962752223013489 \tabularnewline
23 & 0.0246390421048821 & 0.0492780842097643 & 0.975360957895118 \tabularnewline
24 & 0.028844006449455 & 0.05768801289891 & 0.971155993550545 \tabularnewline
25 & 0.0298052374040994 & 0.0596104748081988 & 0.9701947625959 \tabularnewline
26 & 0.0498839959754643 & 0.0997679919509286 & 0.950116004024536 \tabularnewline
27 & 0.613228296020309 & 0.773543407959382 & 0.386771703979691 \tabularnewline
28 & 0.839064602651445 & 0.321870794697109 & 0.160935397348555 \tabularnewline
29 & 0.797332722085304 & 0.405334555829392 & 0.202667277914696 \tabularnewline
30 & 0.787300549903713 & 0.425398900192574 & 0.212699450096287 \tabularnewline
31 & 0.721408566204 & 0.557182867591999 & 0.278591433795999 \tabularnewline
32 & 0.732471987786439 & 0.535056024427123 & 0.267528012213561 \tabularnewline
33 & 0.737019715492248 & 0.525960569015505 & 0.262980284507752 \tabularnewline
34 & 0.699424389534682 & 0.601151220930636 & 0.300575610465318 \tabularnewline
35 & 0.67488164545939 & 0.65023670908122 & 0.32511835454061 \tabularnewline
36 & 0.587036219394803 & 0.825927561210395 & 0.412963780605197 \tabularnewline
37 & 0.663333484703606 & 0.673333030592787 & 0.336666515296394 \tabularnewline
38 & 0.628029950301822 & 0.743940099396357 & 0.371970049698178 \tabularnewline
39 & 0.608009191335622 & 0.783981617328756 & 0.391990808664378 \tabularnewline
40 & 0.686786929510005 & 0.626426140979989 & 0.313213070489995 \tabularnewline
41 & 0.608390700746837 & 0.783218598506327 & 0.391609299253163 \tabularnewline
42 & 0.807771245659528 & 0.384457508680944 & 0.192228754340472 \tabularnewline
43 & 0.940911305168809 & 0.118177389662383 & 0.0590886948311914 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57606&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.0463185992381052[/C][C]0.0926371984762104[/C][C]0.953681400761895[/C][/ROW]
[ROW][C]18[/C][C]0.0135254191484179[/C][C]0.0270508382968358[/C][C]0.986474580851582[/C][/ROW]
[ROW][C]19[/C][C]0.0560232533284628[/C][C]0.112046506656926[/C][C]0.943976746671537[/C][/ROW]
[ROW][C]20[/C][C]0.0385939636002636[/C][C]0.0771879272005273[/C][C]0.961406036399736[/C][/ROW]
[ROW][C]21[/C][C]0.0174779869817962[/C][C]0.0349559739635923[/C][C]0.982522013018204[/C][/ROW]
[ROW][C]22[/C][C]0.0372477769865111[/C][C]0.0744955539730222[/C][C]0.962752223013489[/C][/ROW]
[ROW][C]23[/C][C]0.0246390421048821[/C][C]0.0492780842097643[/C][C]0.975360957895118[/C][/ROW]
[ROW][C]24[/C][C]0.028844006449455[/C][C]0.05768801289891[/C][C]0.971155993550545[/C][/ROW]
[ROW][C]25[/C][C]0.0298052374040994[/C][C]0.0596104748081988[/C][C]0.9701947625959[/C][/ROW]
[ROW][C]26[/C][C]0.0498839959754643[/C][C]0.0997679919509286[/C][C]0.950116004024536[/C][/ROW]
[ROW][C]27[/C][C]0.613228296020309[/C][C]0.773543407959382[/C][C]0.386771703979691[/C][/ROW]
[ROW][C]28[/C][C]0.839064602651445[/C][C]0.321870794697109[/C][C]0.160935397348555[/C][/ROW]
[ROW][C]29[/C][C]0.797332722085304[/C][C]0.405334555829392[/C][C]0.202667277914696[/C][/ROW]
[ROW][C]30[/C][C]0.787300549903713[/C][C]0.425398900192574[/C][C]0.212699450096287[/C][/ROW]
[ROW][C]31[/C][C]0.721408566204[/C][C]0.557182867591999[/C][C]0.278591433795999[/C][/ROW]
[ROW][C]32[/C][C]0.732471987786439[/C][C]0.535056024427123[/C][C]0.267528012213561[/C][/ROW]
[ROW][C]33[/C][C]0.737019715492248[/C][C]0.525960569015505[/C][C]0.262980284507752[/C][/ROW]
[ROW][C]34[/C][C]0.699424389534682[/C][C]0.601151220930636[/C][C]0.300575610465318[/C][/ROW]
[ROW][C]35[/C][C]0.67488164545939[/C][C]0.65023670908122[/C][C]0.32511835454061[/C][/ROW]
[ROW][C]36[/C][C]0.587036219394803[/C][C]0.825927561210395[/C][C]0.412963780605197[/C][/ROW]
[ROW][C]37[/C][C]0.663333484703606[/C][C]0.673333030592787[/C][C]0.336666515296394[/C][/ROW]
[ROW][C]38[/C][C]0.628029950301822[/C][C]0.743940099396357[/C][C]0.371970049698178[/C][/ROW]
[ROW][C]39[/C][C]0.608009191335622[/C][C]0.783981617328756[/C][C]0.391990808664378[/C][/ROW]
[ROW][C]40[/C][C]0.686786929510005[/C][C]0.626426140979989[/C][C]0.313213070489995[/C][/ROW]
[ROW][C]41[/C][C]0.608390700746837[/C][C]0.783218598506327[/C][C]0.391609299253163[/C][/ROW]
[ROW][C]42[/C][C]0.807771245659528[/C][C]0.384457508680944[/C][C]0.192228754340472[/C][/ROW]
[ROW][C]43[/C][C]0.940911305168809[/C][C]0.118177389662383[/C][C]0.0590886948311914[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57606&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57606&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.04631859923810520.09263719847621040.953681400761895
180.01352541914841790.02705083829683580.986474580851582
190.05602325332846280.1120465066569260.943976746671537
200.03859396360026360.07718792720052730.961406036399736
210.01747798698179620.03495597396359230.982522013018204
220.03724777698651110.07449555397302220.962752223013489
230.02463904210488210.04927808420976430.975360957895118
240.0288440064494550.057688012898910.971155993550545
250.02980523740409940.05961047480819880.9701947625959
260.04988399597546430.09976799195092860.950116004024536
270.6132282960203090.7735434079593820.386771703979691
280.8390646026514450.3218707946971090.160935397348555
290.7973327220853040.4053345558293920.202667277914696
300.7873005499037130.4253989001925740.212699450096287
310.7214085662040.5571828675919990.278591433795999
320.7324719877864390.5350560244271230.267528012213561
330.7370197154922480.5259605690155050.262980284507752
340.6994243895346820.6011512209306360.300575610465318
350.674881645459390.650236709081220.32511835454061
360.5870362193948030.8259275612103950.412963780605197
370.6633334847036060.6733330305927870.336666515296394
380.6280299503018220.7439400993963570.371970049698178
390.6080091913356220.7839816173287560.391990808664378
400.6867869295100050.6264261409799890.313213070489995
410.6083907007468370.7832185985063270.391609299253163
420.8077712456595280.3844575086809440.192228754340472
430.9409113051688090.1181773896623830.0590886948311914







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

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

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



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