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 computationFri, 27 Nov 2009 03:16:15 -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/27/t1259317214u8g79a7mxiv65sp.htm/, Retrieved Mon, 29 Apr 2024 22:40:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60534, Retrieved Mon, 29 Apr 2024 22:40:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact187
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [Berekening 4 TVD] [2009-11-18 17:29:00] [42ad1186d39724f834063794eac7cea3]
-   PD        [Multiple Regression] [review Ws 7 model...] [2009-11-27 10:16:15] [51d49d3536f6a59f2486a67bf50b2759] [Current]
Feedback Forum

Post a new message
Dataseries X:
102	1	102.8	94	106.3	101.3
105.1	1	102	102.8	94	106.3
92.4	0	105.1	102	102.8	94
81.4	0	92.4	105.1	102	102.8
105.8	1	81.4	92.4	105.1	102
120.3	1	105.8	81.4	92.4	105.1
100.7	1	120.3	105.8	81.4	92.4
88.8	0	100.7	120.3	105.8	81.4
94.3	0	88.8	100.7	120.3	105.8
99.9	0	94.3	88.8	100.7	120.3
103.4	1	99.9	94.3	88.8	100.7
103.3	1	103.4	99.9	94.3	88.8
98.8	0	103.3	103.4	99.9	94.3
104.2	1	98.8	103.3	103.4	99.9
91.2	0	104.2	98.8	103.3	103.4
74.7	0	91.2	104.2	98.8	103.3
108.5	1	74.7	91.2	104.2	98.8
114.5	1	108.5	74.7	91.2	104.2
96.9	0	114.5	108.5	74.7	91.2
89.6	0	96.9	114.5	108.5	74.7
97.1	0	89.6	96.9	114.5	108.5
100.3	1	97.1	89.6	96.9	114.5
122.6	1	100.3	97.1	89.6	96.9
115.4	1	122.6	100.3	97.1	89.6
109	1	115.4	122.6	100.3	97.1
129.1	1	109	115.4	122.6	100.3
102.8	1	129.1	109	115.4	122.6
96.2	0	102.8	129.1	109	115.4
127.7	1	96.2	102.8	129.1	109
128.9	1	127.7	96.2	102.8	129.1
126.5	1	128.9	127.7	96.2	102.8
119.8	1	126.5	128.9	127.7	96.2
113.2	1	119.8	126.5	128.9	127.7
114.1	1	113.2	119.8	126.5	128.9
134.1	1	114.1	113.2	119.8	126.5
130	1	134.1	114.1	113.2	119.8
121.8	1	130	134.1	114.1	113.2
132.1	1	121.8	130	134.1	114.1
105.3	1	132.1	121.8	130	134.1
103	1	105.3	132.1	121.8	130
117.1	1	103	105.3	132.1	121.8
126.3	1	117.1	103	105.3	132.1
138.1	1	126.3	117.1	103	105.3
119.5	1	138.1	126.3	117.1	103
138	1	119.5	138.1	126.3	117.1
135.5	1	138	119.5	138.1	126.3
178.6	1	135.5	138	119.5	138.1
162.2	1	178.6	135.5	138	119.5
176.9	1	162.2	178.6	135.5	138
204.9	1	176.9	162.2	178.6	135.5
132.2	1	204.9	176.9	162.2	178.6
142.5	1	132.2	204.9	176.9	162.2
164.3	1	142.5	132.2	204.9	176.9
174.9	1	164.3	142.5	132.2	204.9
175.4	1	174.9	164.3	142.5	132.2
143	1	175.4	174.9	164.3	142.5




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60534&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60534&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Omzet[t] = + 24.2719954836995 -3.31703241456063Uitvoer[t] + 0.347127616231981`Omzet-1`[t] + 0.355694576847724`Omzet-2`[t] + 0.307636566464671`Omzet-3`[t] -0.236660071043794`Omzet-4`[t] -4.91920455650283M1[t] + 6.34477868482915M2[t] -25.1185619148915M3[t] -26.1790950346311M4[t] + 8.80183878654852M5[t] + 22.3700847428009M6[t] -1.49099973052366M7[t] -27.9110842666772M8[t] -9.46201939302143M9[t] -1.42678907684248M10[t] + 20.2095761552773M11[t] + 0.356533729590830t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Omzet[t] =  +  24.2719954836995 -3.31703241456063Uitvoer[t] +  0.347127616231981`Omzet-1`[t] +  0.355694576847724`Omzet-2`[t] +  0.307636566464671`Omzet-3`[t] -0.236660071043794`Omzet-4`[t] -4.91920455650283M1[t] +  6.34477868482915M2[t] -25.1185619148915M3[t] -26.1790950346311M4[t] +  8.80183878654852M5[t] +  22.3700847428009M6[t] -1.49099973052366M7[t] -27.9110842666772M8[t] -9.46201939302143M9[t] -1.42678907684248M10[t] +  20.2095761552773M11[t] +  0.356533729590830t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60534&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Omzet[t] =  +  24.2719954836995 -3.31703241456063Uitvoer[t] +  0.347127616231981`Omzet-1`[t] +  0.355694576847724`Omzet-2`[t] +  0.307636566464671`Omzet-3`[t] -0.236660071043794`Omzet-4`[t] -4.91920455650283M1[t] +  6.34477868482915M2[t] -25.1185619148915M3[t] -26.1790950346311M4[t] +  8.80183878654852M5[t] +  22.3700847428009M6[t] -1.49099973052366M7[t] -27.9110842666772M8[t] -9.46201939302143M9[t] -1.42678907684248M10[t] +  20.2095761552773M11[t] +  0.356533729590830t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60534&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60534&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
Omzet[t] = + 24.2719954836995 -3.31703241456063Uitvoer[t] + 0.347127616231981`Omzet-1`[t] + 0.355694576847724`Omzet-2`[t] + 0.307636566464671`Omzet-3`[t] -0.236660071043794`Omzet-4`[t] -4.91920455650283M1[t] + 6.34477868482915M2[t] -25.1185619148915M3[t] -26.1790950346311M4[t] + 8.80183878654852M5[t] + 22.3700847428009M6[t] -1.49099973052366M7[t] -27.9110842666772M8[t] -9.46201939302143M9[t] -1.42678907684248M10[t] + 20.2095761552773M11[t] + 0.356533729590830t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)24.271995483699512.6833341.91370.0632140.031607
Uitvoer-3.317032414560634.600685-0.7210.475330.237665
`Omzet-1`0.3471276162319810.1600292.16910.0363950.018197
`Omzet-2`0.3556945768477240.1557912.28310.0281030.014052
`Omzet-3`0.3076365664646710.1520782.02290.0501620.025081
`Omzet-4`-0.2366600710437940.148675-1.59180.1197160.059858
M1-4.919204556502837.632115-0.64450.5230970.261549
M26.344778684829157.9170770.80140.4278810.21394
M3-25.11856191489157.618837-3.29690.0021260.001063
M4-26.179095034631110.452156-2.50470.0166650.008332
M58.8018387865485210.6749720.82450.4147840.207392
M622.37008474280098.9736432.49290.0171460.008573
M7-1.490999730523667.400757-0.20150.8414090.420704
M8-27.91108426667728.188848-3.40840.0015590.00078
M9-9.462019393021439.497802-0.99620.3254390.162719
M10-1.426789076842488.915995-0.160.8737080.436854
M1120.20957615527738.2317922.45510.0187750.009388
t0.3565337295908300.189951.8770.0682130.034107

\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) & 24.2719954836995 & 12.683334 & 1.9137 & 0.063214 & 0.031607 \tabularnewline
Uitvoer & -3.31703241456063 & 4.600685 & -0.721 & 0.47533 & 0.237665 \tabularnewline
`Omzet-1` & 0.347127616231981 & 0.160029 & 2.1691 & 0.036395 & 0.018197 \tabularnewline
`Omzet-2` & 0.355694576847724 & 0.155791 & 2.2831 & 0.028103 & 0.014052 \tabularnewline
`Omzet-3` & 0.307636566464671 & 0.152078 & 2.0229 & 0.050162 & 0.025081 \tabularnewline
`Omzet-4` & -0.236660071043794 & 0.148675 & -1.5918 & 0.119716 & 0.059858 \tabularnewline
M1 & -4.91920455650283 & 7.632115 & -0.6445 & 0.523097 & 0.261549 \tabularnewline
M2 & 6.34477868482915 & 7.917077 & 0.8014 & 0.427881 & 0.21394 \tabularnewline
M3 & -25.1185619148915 & 7.618837 & -3.2969 & 0.002126 & 0.001063 \tabularnewline
M4 & -26.1790950346311 & 10.452156 & -2.5047 & 0.016665 & 0.008332 \tabularnewline
M5 & 8.80183878654852 & 10.674972 & 0.8245 & 0.414784 & 0.207392 \tabularnewline
M6 & 22.3700847428009 & 8.973643 & 2.4929 & 0.017146 & 0.008573 \tabularnewline
M7 & -1.49099973052366 & 7.400757 & -0.2015 & 0.841409 & 0.420704 \tabularnewline
M8 & -27.9110842666772 & 8.188848 & -3.4084 & 0.001559 & 0.00078 \tabularnewline
M9 & -9.46201939302143 & 9.497802 & -0.9962 & 0.325439 & 0.162719 \tabularnewline
M10 & -1.42678907684248 & 8.915995 & -0.16 & 0.873708 & 0.436854 \tabularnewline
M11 & 20.2095761552773 & 8.231792 & 2.4551 & 0.018775 & 0.009388 \tabularnewline
t & 0.356533729590830 & 0.18995 & 1.877 & 0.068213 & 0.034107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60534&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]24.2719954836995[/C][C]12.683334[/C][C]1.9137[/C][C]0.063214[/C][C]0.031607[/C][/ROW]
[ROW][C]Uitvoer[/C][C]-3.31703241456063[/C][C]4.600685[/C][C]-0.721[/C][C]0.47533[/C][C]0.237665[/C][/ROW]
[ROW][C]`Omzet-1`[/C][C]0.347127616231981[/C][C]0.160029[/C][C]2.1691[/C][C]0.036395[/C][C]0.018197[/C][/ROW]
[ROW][C]`Omzet-2`[/C][C]0.355694576847724[/C][C]0.155791[/C][C]2.2831[/C][C]0.028103[/C][C]0.014052[/C][/ROW]
[ROW][C]`Omzet-3`[/C][C]0.307636566464671[/C][C]0.152078[/C][C]2.0229[/C][C]0.050162[/C][C]0.025081[/C][/ROW]
[ROW][C]`Omzet-4`[/C][C]-0.236660071043794[/C][C]0.148675[/C][C]-1.5918[/C][C]0.119716[/C][C]0.059858[/C][/ROW]
[ROW][C]M1[/C][C]-4.91920455650283[/C][C]7.632115[/C][C]-0.6445[/C][C]0.523097[/C][C]0.261549[/C][/ROW]
[ROW][C]M2[/C][C]6.34477868482915[/C][C]7.917077[/C][C]0.8014[/C][C]0.427881[/C][C]0.21394[/C][/ROW]
[ROW][C]M3[/C][C]-25.1185619148915[/C][C]7.618837[/C][C]-3.2969[/C][C]0.002126[/C][C]0.001063[/C][/ROW]
[ROW][C]M4[/C][C]-26.1790950346311[/C][C]10.452156[/C][C]-2.5047[/C][C]0.016665[/C][C]0.008332[/C][/ROW]
[ROW][C]M5[/C][C]8.80183878654852[/C][C]10.674972[/C][C]0.8245[/C][C]0.414784[/C][C]0.207392[/C][/ROW]
[ROW][C]M6[/C][C]22.3700847428009[/C][C]8.973643[/C][C]2.4929[/C][C]0.017146[/C][C]0.008573[/C][/ROW]
[ROW][C]M7[/C][C]-1.49099973052366[/C][C]7.400757[/C][C]-0.2015[/C][C]0.841409[/C][C]0.420704[/C][/ROW]
[ROW][C]M8[/C][C]-27.9110842666772[/C][C]8.188848[/C][C]-3.4084[/C][C]0.001559[/C][C]0.00078[/C][/ROW]
[ROW][C]M9[/C][C]-9.46201939302143[/C][C]9.497802[/C][C]-0.9962[/C][C]0.325439[/C][C]0.162719[/C][/ROW]
[ROW][C]M10[/C][C]-1.42678907684248[/C][C]8.915995[/C][C]-0.16[/C][C]0.873708[/C][C]0.436854[/C][/ROW]
[ROW][C]M11[/C][C]20.2095761552773[/C][C]8.231792[/C][C]2.4551[/C][C]0.018775[/C][C]0.009388[/C][/ROW]
[ROW][C]t[/C][C]0.356533729590830[/C][C]0.18995[/C][C]1.877[/C][C]0.068213[/C][C]0.034107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60534&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60534&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)24.271995483699512.6833341.91370.0632140.031607
Uitvoer-3.317032414560634.600685-0.7210.475330.237665
`Omzet-1`0.3471276162319810.1600292.16910.0363950.018197
`Omzet-2`0.3556945768477240.1557912.28310.0281030.014052
`Omzet-3`0.3076365664646710.1520782.02290.0501620.025081
`Omzet-4`-0.2366600710437940.148675-1.59180.1197160.059858
M1-4.919204556502837.632115-0.64450.5230970.261549
M26.344778684829157.9170770.80140.4278810.21394
M3-25.11856191489157.618837-3.29690.0021260.001063
M4-26.179095034631110.452156-2.50470.0166650.008332
M58.8018387865485210.6749720.82450.4147840.207392
M622.37008474280098.9736432.49290.0171460.008573
M7-1.490999730523667.400757-0.20150.8414090.420704
M8-27.91108426667728.188848-3.40840.0015590.00078
M9-9.462019393021439.497802-0.99620.3254390.162719
M10-1.426789076842488.915995-0.160.8737080.436854
M1120.20957615527738.2317922.45510.0187750.009388
t0.3565337295908300.189951.8770.0682130.034107







Multiple Linear Regression - Regression Statistics
Multiple R0.951390734495854
R-squared0.90514432968456
Adjusted R-squared0.862708898227653
F-TEST (value)21.3299193294106
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value2.20934381900406e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.0190822837749
Sum Squared Residuals3814.516372744

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.951390734495854 \tabularnewline
R-squared & 0.90514432968456 \tabularnewline
Adjusted R-squared & 0.862708898227653 \tabularnewline
F-TEST (value) & 21.3299193294106 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 2.20934381900406e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 10.0190822837749 \tabularnewline
Sum Squared Residuals & 3814.516372744 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60534&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.951390734495854[/C][/ROW]
[ROW][C]R-squared[/C][C]0.90514432968456[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.862708898227653[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]21.3299193294106[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]2.20934381900406e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]10.0190822837749[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3814.516372744[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60534&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60534&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.951390734495854
R-squared0.90514432968456
Adjusted R-squared0.862708898227653
F-TEST (value)21.3299193294106
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value2.20934381900406e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.0190822837749
Sum Squared Residuals3814.516372744







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110294.24040323301877.75959676698129
2105.1103.7461002644821.35389973551846
392.482.36598641648110.034013583519
481.476.02740161005695.37259838994313
5105.8100.8551132546244.9448867453756
6120.3114.6965358168665.60346418313407
7100.7104.525863854725-3.82586385472518
888.890.2428085520879-1.44280855208789
994.396.6321992962278-2.33219929622776
1099.993.2391520339436.66084796605706
11103.4116.792915656183-13.3929156561833
12103.3104.654965478633-1.35496547863286
1398.8105.040679705087-6.24067970508657
14104.2111.497952115501-7.29795211550119
1591.283.12296728647028.07703271352985
1674.778.4663610582967-3.76636105829667
17108.5102.8613688062655.63863119373523
18114.5117.372861655084-2.87286165508431
1996.9109.291163297658-12.3911632976583
2089.693.5553410252276-3.95534102522758
2197.197.4133924749686-0.313392474968604
22100.395.66064682088834.63935317911174
23122.6123.351533796078-0.751533796077798
24115.4116.412552625382-1.01255262538195
25109116.492038505162-7.49203850516242
26129.1129.432920983719-0.332920983718978
27102.895.53443104520437.26556895479571
2896.295.90254724349570.297452756504345
29127.7123.9752921821003.7247078179005
30128.9133.639298446054-4.73929844605406
31126.5125.9494385422870.55056145771306
32119.8110.7321232615119.06787673848912
33113.2119.272671493447-6.0726714934468
34114.1121.967919762438-7.867919762438
35134.1140.432468546754-6.33246854675421
36130127.3973247021972.60267529780310
37121.8130.364151564395-8.56415156439549
38132.1143.619611582494-11.5196115824944
39105.3107.177012286022-1.87701228602162
4010399.28133336865653.71866663134348
41117.1129.397061959720-12.2970619597197
42126.3136.715984794680-10.4159847946798
43138.1127.05522745493811.0447725450619
44119.5113.2421663774646.25783362253559
45138129.2817367353578.71826326464317
46135.5138.932281382731-3.43228138273081
47178.6158.12308200098520.4769179990153
48162.2162.435157193788-0.235157193788282
49176.9162.36272699233714.5372730076632
50204.9187.10341505380417.7965849461961
51132.2155.699602965823-23.4996029658230
52142.5148.122356719494-5.62235671949428
53164.3166.311163797292-2.01116379729165
54174.9162.47531928731612.4246807126842
55175.4170.7783068503914.62169314960861
56143152.927560783709-9.92756078370925

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 102 & 94.2404032330187 & 7.75959676698129 \tabularnewline
2 & 105.1 & 103.746100264482 & 1.35389973551846 \tabularnewline
3 & 92.4 & 82.365986416481 & 10.034013583519 \tabularnewline
4 & 81.4 & 76.0274016100569 & 5.37259838994313 \tabularnewline
5 & 105.8 & 100.855113254624 & 4.9448867453756 \tabularnewline
6 & 120.3 & 114.696535816866 & 5.60346418313407 \tabularnewline
7 & 100.7 & 104.525863854725 & -3.82586385472518 \tabularnewline
8 & 88.8 & 90.2428085520879 & -1.44280855208789 \tabularnewline
9 & 94.3 & 96.6321992962278 & -2.33219929622776 \tabularnewline
10 & 99.9 & 93.239152033943 & 6.66084796605706 \tabularnewline
11 & 103.4 & 116.792915656183 & -13.3929156561833 \tabularnewline
12 & 103.3 & 104.654965478633 & -1.35496547863286 \tabularnewline
13 & 98.8 & 105.040679705087 & -6.24067970508657 \tabularnewline
14 & 104.2 & 111.497952115501 & -7.29795211550119 \tabularnewline
15 & 91.2 & 83.1229672864702 & 8.07703271352985 \tabularnewline
16 & 74.7 & 78.4663610582967 & -3.76636105829667 \tabularnewline
17 & 108.5 & 102.861368806265 & 5.63863119373523 \tabularnewline
18 & 114.5 & 117.372861655084 & -2.87286165508431 \tabularnewline
19 & 96.9 & 109.291163297658 & -12.3911632976583 \tabularnewline
20 & 89.6 & 93.5553410252276 & -3.95534102522758 \tabularnewline
21 & 97.1 & 97.4133924749686 & -0.313392474968604 \tabularnewline
22 & 100.3 & 95.6606468208883 & 4.63935317911174 \tabularnewline
23 & 122.6 & 123.351533796078 & -0.751533796077798 \tabularnewline
24 & 115.4 & 116.412552625382 & -1.01255262538195 \tabularnewline
25 & 109 & 116.492038505162 & -7.49203850516242 \tabularnewline
26 & 129.1 & 129.432920983719 & -0.332920983718978 \tabularnewline
27 & 102.8 & 95.5344310452043 & 7.26556895479571 \tabularnewline
28 & 96.2 & 95.9025472434957 & 0.297452756504345 \tabularnewline
29 & 127.7 & 123.975292182100 & 3.7247078179005 \tabularnewline
30 & 128.9 & 133.639298446054 & -4.73929844605406 \tabularnewline
31 & 126.5 & 125.949438542287 & 0.55056145771306 \tabularnewline
32 & 119.8 & 110.732123261511 & 9.06787673848912 \tabularnewline
33 & 113.2 & 119.272671493447 & -6.0726714934468 \tabularnewline
34 & 114.1 & 121.967919762438 & -7.867919762438 \tabularnewline
35 & 134.1 & 140.432468546754 & -6.33246854675421 \tabularnewline
36 & 130 & 127.397324702197 & 2.60267529780310 \tabularnewline
37 & 121.8 & 130.364151564395 & -8.56415156439549 \tabularnewline
38 & 132.1 & 143.619611582494 & -11.5196115824944 \tabularnewline
39 & 105.3 & 107.177012286022 & -1.87701228602162 \tabularnewline
40 & 103 & 99.2813333686565 & 3.71866663134348 \tabularnewline
41 & 117.1 & 129.397061959720 & -12.2970619597197 \tabularnewline
42 & 126.3 & 136.715984794680 & -10.4159847946798 \tabularnewline
43 & 138.1 & 127.055227454938 & 11.0447725450619 \tabularnewline
44 & 119.5 & 113.242166377464 & 6.25783362253559 \tabularnewline
45 & 138 & 129.281736735357 & 8.71826326464317 \tabularnewline
46 & 135.5 & 138.932281382731 & -3.43228138273081 \tabularnewline
47 & 178.6 & 158.123082000985 & 20.4769179990153 \tabularnewline
48 & 162.2 & 162.435157193788 & -0.235157193788282 \tabularnewline
49 & 176.9 & 162.362726992337 & 14.5372730076632 \tabularnewline
50 & 204.9 & 187.103415053804 & 17.7965849461961 \tabularnewline
51 & 132.2 & 155.699602965823 & -23.4996029658230 \tabularnewline
52 & 142.5 & 148.122356719494 & -5.62235671949428 \tabularnewline
53 & 164.3 & 166.311163797292 & -2.01116379729165 \tabularnewline
54 & 174.9 & 162.475319287316 & 12.4246807126842 \tabularnewline
55 & 175.4 & 170.778306850391 & 4.62169314960861 \tabularnewline
56 & 143 & 152.927560783709 & -9.92756078370925 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60534&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]102[/C][C]94.2404032330187[/C][C]7.75959676698129[/C][/ROW]
[ROW][C]2[/C][C]105.1[/C][C]103.746100264482[/C][C]1.35389973551846[/C][/ROW]
[ROW][C]3[/C][C]92.4[/C][C]82.365986416481[/C][C]10.034013583519[/C][/ROW]
[ROW][C]4[/C][C]81.4[/C][C]76.0274016100569[/C][C]5.37259838994313[/C][/ROW]
[ROW][C]5[/C][C]105.8[/C][C]100.855113254624[/C][C]4.9448867453756[/C][/ROW]
[ROW][C]6[/C][C]120.3[/C][C]114.696535816866[/C][C]5.60346418313407[/C][/ROW]
[ROW][C]7[/C][C]100.7[/C][C]104.525863854725[/C][C]-3.82586385472518[/C][/ROW]
[ROW][C]8[/C][C]88.8[/C][C]90.2428085520879[/C][C]-1.44280855208789[/C][/ROW]
[ROW][C]9[/C][C]94.3[/C][C]96.6321992962278[/C][C]-2.33219929622776[/C][/ROW]
[ROW][C]10[/C][C]99.9[/C][C]93.239152033943[/C][C]6.66084796605706[/C][/ROW]
[ROW][C]11[/C][C]103.4[/C][C]116.792915656183[/C][C]-13.3929156561833[/C][/ROW]
[ROW][C]12[/C][C]103.3[/C][C]104.654965478633[/C][C]-1.35496547863286[/C][/ROW]
[ROW][C]13[/C][C]98.8[/C][C]105.040679705087[/C][C]-6.24067970508657[/C][/ROW]
[ROW][C]14[/C][C]104.2[/C][C]111.497952115501[/C][C]-7.29795211550119[/C][/ROW]
[ROW][C]15[/C][C]91.2[/C][C]83.1229672864702[/C][C]8.07703271352985[/C][/ROW]
[ROW][C]16[/C][C]74.7[/C][C]78.4663610582967[/C][C]-3.76636105829667[/C][/ROW]
[ROW][C]17[/C][C]108.5[/C][C]102.861368806265[/C][C]5.63863119373523[/C][/ROW]
[ROW][C]18[/C][C]114.5[/C][C]117.372861655084[/C][C]-2.87286165508431[/C][/ROW]
[ROW][C]19[/C][C]96.9[/C][C]109.291163297658[/C][C]-12.3911632976583[/C][/ROW]
[ROW][C]20[/C][C]89.6[/C][C]93.5553410252276[/C][C]-3.95534102522758[/C][/ROW]
[ROW][C]21[/C][C]97.1[/C][C]97.4133924749686[/C][C]-0.313392474968604[/C][/ROW]
[ROW][C]22[/C][C]100.3[/C][C]95.6606468208883[/C][C]4.63935317911174[/C][/ROW]
[ROW][C]23[/C][C]122.6[/C][C]123.351533796078[/C][C]-0.751533796077798[/C][/ROW]
[ROW][C]24[/C][C]115.4[/C][C]116.412552625382[/C][C]-1.01255262538195[/C][/ROW]
[ROW][C]25[/C][C]109[/C][C]116.492038505162[/C][C]-7.49203850516242[/C][/ROW]
[ROW][C]26[/C][C]129.1[/C][C]129.432920983719[/C][C]-0.332920983718978[/C][/ROW]
[ROW][C]27[/C][C]102.8[/C][C]95.5344310452043[/C][C]7.26556895479571[/C][/ROW]
[ROW][C]28[/C][C]96.2[/C][C]95.9025472434957[/C][C]0.297452756504345[/C][/ROW]
[ROW][C]29[/C][C]127.7[/C][C]123.975292182100[/C][C]3.7247078179005[/C][/ROW]
[ROW][C]30[/C][C]128.9[/C][C]133.639298446054[/C][C]-4.73929844605406[/C][/ROW]
[ROW][C]31[/C][C]126.5[/C][C]125.949438542287[/C][C]0.55056145771306[/C][/ROW]
[ROW][C]32[/C][C]119.8[/C][C]110.732123261511[/C][C]9.06787673848912[/C][/ROW]
[ROW][C]33[/C][C]113.2[/C][C]119.272671493447[/C][C]-6.0726714934468[/C][/ROW]
[ROW][C]34[/C][C]114.1[/C][C]121.967919762438[/C][C]-7.867919762438[/C][/ROW]
[ROW][C]35[/C][C]134.1[/C][C]140.432468546754[/C][C]-6.33246854675421[/C][/ROW]
[ROW][C]36[/C][C]130[/C][C]127.397324702197[/C][C]2.60267529780310[/C][/ROW]
[ROW][C]37[/C][C]121.8[/C][C]130.364151564395[/C][C]-8.56415156439549[/C][/ROW]
[ROW][C]38[/C][C]132.1[/C][C]143.619611582494[/C][C]-11.5196115824944[/C][/ROW]
[ROW][C]39[/C][C]105.3[/C][C]107.177012286022[/C][C]-1.87701228602162[/C][/ROW]
[ROW][C]40[/C][C]103[/C][C]99.2813333686565[/C][C]3.71866663134348[/C][/ROW]
[ROW][C]41[/C][C]117.1[/C][C]129.397061959720[/C][C]-12.2970619597197[/C][/ROW]
[ROW][C]42[/C][C]126.3[/C][C]136.715984794680[/C][C]-10.4159847946798[/C][/ROW]
[ROW][C]43[/C][C]138.1[/C][C]127.055227454938[/C][C]11.0447725450619[/C][/ROW]
[ROW][C]44[/C][C]119.5[/C][C]113.242166377464[/C][C]6.25783362253559[/C][/ROW]
[ROW][C]45[/C][C]138[/C][C]129.281736735357[/C][C]8.71826326464317[/C][/ROW]
[ROW][C]46[/C][C]135.5[/C][C]138.932281382731[/C][C]-3.43228138273081[/C][/ROW]
[ROW][C]47[/C][C]178.6[/C][C]158.123082000985[/C][C]20.4769179990153[/C][/ROW]
[ROW][C]48[/C][C]162.2[/C][C]162.435157193788[/C][C]-0.235157193788282[/C][/ROW]
[ROW][C]49[/C][C]176.9[/C][C]162.362726992337[/C][C]14.5372730076632[/C][/ROW]
[ROW][C]50[/C][C]204.9[/C][C]187.103415053804[/C][C]17.7965849461961[/C][/ROW]
[ROW][C]51[/C][C]132.2[/C][C]155.699602965823[/C][C]-23.4996029658230[/C][/ROW]
[ROW][C]52[/C][C]142.5[/C][C]148.122356719494[/C][C]-5.62235671949428[/C][/ROW]
[ROW][C]53[/C][C]164.3[/C][C]166.311163797292[/C][C]-2.01116379729165[/C][/ROW]
[ROW][C]54[/C][C]174.9[/C][C]162.475319287316[/C][C]12.4246807126842[/C][/ROW]
[ROW][C]55[/C][C]175.4[/C][C]170.778306850391[/C][C]4.62169314960861[/C][/ROW]
[ROW][C]56[/C][C]143[/C][C]152.927560783709[/C][C]-9.92756078370925[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60534&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60534&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
110294.24040323301877.75959676698129
2105.1103.7461002644821.35389973551846
392.482.36598641648110.034013583519
481.476.02740161005695.37259838994313
5105.8100.8551132546244.9448867453756
6120.3114.6965358168665.60346418313407
7100.7104.525863854725-3.82586385472518
888.890.2428085520879-1.44280855208789
994.396.6321992962278-2.33219929622776
1099.993.2391520339436.66084796605706
11103.4116.792915656183-13.3929156561833
12103.3104.654965478633-1.35496547863286
1398.8105.040679705087-6.24067970508657
14104.2111.497952115501-7.29795211550119
1591.283.12296728647028.07703271352985
1674.778.4663610582967-3.76636105829667
17108.5102.8613688062655.63863119373523
18114.5117.372861655084-2.87286165508431
1996.9109.291163297658-12.3911632976583
2089.693.5553410252276-3.95534102522758
2197.197.4133924749686-0.313392474968604
22100.395.66064682088834.63935317911174
23122.6123.351533796078-0.751533796077798
24115.4116.412552625382-1.01255262538195
25109116.492038505162-7.49203850516242
26129.1129.432920983719-0.332920983718978
27102.895.53443104520437.26556895479571
2896.295.90254724349570.297452756504345
29127.7123.9752921821003.7247078179005
30128.9133.639298446054-4.73929844605406
31126.5125.9494385422870.55056145771306
32119.8110.7321232615119.06787673848912
33113.2119.272671493447-6.0726714934468
34114.1121.967919762438-7.867919762438
35134.1140.432468546754-6.33246854675421
36130127.3973247021972.60267529780310
37121.8130.364151564395-8.56415156439549
38132.1143.619611582494-11.5196115824944
39105.3107.177012286022-1.87701228602162
4010399.28133336865653.71866663134348
41117.1129.397061959720-12.2970619597197
42126.3136.715984794680-10.4159847946798
43138.1127.05522745493811.0447725450619
44119.5113.2421663774646.25783362253559
45138129.2817367353578.71826326464317
46135.5138.932281382731-3.43228138273081
47178.6158.12308200098520.4769179990153
48162.2162.435157193788-0.235157193788282
49176.9162.36272699233714.5372730076632
50204.9187.10341505380417.7965849461961
51132.2155.699602965823-23.4996029658230
52142.5148.122356719494-5.62235671949428
53164.3166.311163797292-2.01116379729165
54174.9162.47531928731612.4246807126842
55175.4170.7783068503914.62169314960861
56143152.927560783709-9.92756078370925







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.02917241163044990.05834482326089970.97082758836955
220.006806796279493630.01361359255898730.993193203720506
230.07015983371303060.1403196674260610.929840166286969
240.03109095168657130.06218190337314270.968909048313429
250.01447781579747570.02895563159495140.985522184202524
260.005567859998092540.01113571999618510.994432140001907
270.003800194701687220.007600389403374430.996199805298313
280.001468139239912460.002936278479824910.998531860760087
290.0007654810997851370.001530962199570270.999234518900215
300.000246688604539970.000493377209079940.99975331139546
310.0001249093268176660.0002498186536353330.999875090673182
320.0006933478825839930.001386695765167990.999306652117416
330.0003038667486650100.0006077334973300210.999696133251335
340.002116408762089850.00423281752417970.99788359123791
350.0006208108078952280.001241621615790460.999379189192105

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0291724116304499 & 0.0583448232608997 & 0.97082758836955 \tabularnewline
22 & 0.00680679627949363 & 0.0136135925589873 & 0.993193203720506 \tabularnewline
23 & 0.0701598337130306 & 0.140319667426061 & 0.929840166286969 \tabularnewline
24 & 0.0310909516865713 & 0.0621819033731427 & 0.968909048313429 \tabularnewline
25 & 0.0144778157974757 & 0.0289556315949514 & 0.985522184202524 \tabularnewline
26 & 0.00556785999809254 & 0.0111357199961851 & 0.994432140001907 \tabularnewline
27 & 0.00380019470168722 & 0.00760038940337443 & 0.996199805298313 \tabularnewline
28 & 0.00146813923991246 & 0.00293627847982491 & 0.998531860760087 \tabularnewline
29 & 0.000765481099785137 & 0.00153096219957027 & 0.999234518900215 \tabularnewline
30 & 0.00024668860453997 & 0.00049337720907994 & 0.99975331139546 \tabularnewline
31 & 0.000124909326817666 & 0.000249818653635333 & 0.999875090673182 \tabularnewline
32 & 0.000693347882583993 & 0.00138669576516799 & 0.999306652117416 \tabularnewline
33 & 0.000303866748665010 & 0.000607733497330021 & 0.999696133251335 \tabularnewline
34 & 0.00211640876208985 & 0.0042328175241797 & 0.99788359123791 \tabularnewline
35 & 0.000620810807895228 & 0.00124162161579046 & 0.999379189192105 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60534&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]21[/C][C]0.0291724116304499[/C][C]0.0583448232608997[/C][C]0.97082758836955[/C][/ROW]
[ROW][C]22[/C][C]0.00680679627949363[/C][C]0.0136135925589873[/C][C]0.993193203720506[/C][/ROW]
[ROW][C]23[/C][C]0.0701598337130306[/C][C]0.140319667426061[/C][C]0.929840166286969[/C][/ROW]
[ROW][C]24[/C][C]0.0310909516865713[/C][C]0.0621819033731427[/C][C]0.968909048313429[/C][/ROW]
[ROW][C]25[/C][C]0.0144778157974757[/C][C]0.0289556315949514[/C][C]0.985522184202524[/C][/ROW]
[ROW][C]26[/C][C]0.00556785999809254[/C][C]0.0111357199961851[/C][C]0.994432140001907[/C][/ROW]
[ROW][C]27[/C][C]0.00380019470168722[/C][C]0.00760038940337443[/C][C]0.996199805298313[/C][/ROW]
[ROW][C]28[/C][C]0.00146813923991246[/C][C]0.00293627847982491[/C][C]0.998531860760087[/C][/ROW]
[ROW][C]29[/C][C]0.000765481099785137[/C][C]0.00153096219957027[/C][C]0.999234518900215[/C][/ROW]
[ROW][C]30[/C][C]0.00024668860453997[/C][C]0.00049337720907994[/C][C]0.99975331139546[/C][/ROW]
[ROW][C]31[/C][C]0.000124909326817666[/C][C]0.000249818653635333[/C][C]0.999875090673182[/C][/ROW]
[ROW][C]32[/C][C]0.000693347882583993[/C][C]0.00138669576516799[/C][C]0.999306652117416[/C][/ROW]
[ROW][C]33[/C][C]0.000303866748665010[/C][C]0.000607733497330021[/C][C]0.999696133251335[/C][/ROW]
[ROW][C]34[/C][C]0.00211640876208985[/C][C]0.0042328175241797[/C][C]0.99788359123791[/C][/ROW]
[ROW][C]35[/C][C]0.000620810807895228[/C][C]0.00124162161579046[/C][C]0.999379189192105[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60534&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.02917241163044990.05834482326089970.97082758836955
220.006806796279493630.01361359255898730.993193203720506
230.07015983371303060.1403196674260610.929840166286969
240.03109095168657130.06218190337314270.968909048313429
250.01447781579747570.02895563159495140.985522184202524
260.005567859998092540.01113571999618510.994432140001907
270.003800194701687220.007600389403374430.996199805298313
280.001468139239912460.002936278479824910.998531860760087
290.0007654810997851370.001530962199570270.999234518900215
300.000246688604539970.000493377209079940.99975331139546
310.0001249093268176660.0002498186536353330.999875090673182
320.0006933478825839930.001386695765167990.999306652117416
330.0003038667486650100.0006077334973300210.999696133251335
340.002116408762089850.00423281752417970.99788359123791
350.0006208108078952280.001241621615790460.999379189192105







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.6NOK
5% type I error level120.8NOK
10% type I error level140.933333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60534&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 level90.6NOK
5% type I error level120.8NOK
10% type I error level140.933333333333333NOK



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