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 15:09:45 -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/t1259359855vcdlnvsvfpksm4g.htm/, Retrieved Sun, 28 Apr 2024 19:50:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61306, Retrieved Sun, 28 Apr 2024 19:50:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact102
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS7] [2009-11-20 12:03:12] [786e067c4f7cec17385c4742b96b6dfa]
-   PD        [Multiple Regression] [Workshop 7] [2009-11-27 22:09:45] [ee8fc1691ecec7724e0ca78f0c288737] [Current]
Feedback Forum

Post a new message
Dataseries X:
132.92	138.04	136.51	131.02	126.51	0
129.61	132.92	138.04	136.51	131.02	0
122.96	129.61	132.92	138.04	136.51	0
124.04	122.96	129.61	132.92	138.04	0
121.29	124.04	122.96	129.61	132.92	0
124.56	121.29	124.04	122.96	129.61	0
118.53	124.56	121.29	124.04	122.96	0
113.14	118.53	124.56	121.29	124.04	0
114.15	113.14	118.53	124.56	121.29	0
122.17	114.15	113.14	118.53	124.56	0
129.23	122.17	114.15	113.14	118.53	0
131.19	129.23	122.17	114.15	113.14	0
129.12	131.19	129.23	122.17	114.15	0
128.28	129.12	131.19	129.23	122.17	0
126.83	128.28	129.12	131.19	129.23	0
138.13	126.83	128.28	129.12	131.19	0
140.52	138.13	126.83	128.28	129.12	0
146.83	140.52	138.13	126.83	128.28	0
135.14	146.83	140.52	138.13	126.83	0
131.84	135.14	146.83	140.52	138.13	0
125.7	131.84	135.14	146.83	140.52	0
128.98	125.7	131.84	135.14	146.83	0
133.25	128.98	125.7	131.84	135.14	0
136.76	133.25	128.98	125.7	131.84	0
133.24	136.76	133.25	128.98	125.7	0
128.54	133.24	136.76	133.25	128.98	0
121.08	128.54	133.24	136.76	133.25	0
120.23	121.08	128.54	133.24	136.76	0
119.08	120.23	121.08	128.54	133.24	0
125.75	119.08	120.23	121.08	128.54	0
126.89	125.75	119.08	120.23	121.08	0
126.6	126.89	125.75	119.08	120.23	0
121.89	126.6	126.89	125.75	119.08	0
123.44	121.89	126.6	126.89	125.75	0
126.46	123.44	121.89	126.6	126.89	0
129.49	126.46	123.44	121.89	126.6	0
127.78	129.49	126.46	123.44	121.89	0
125.29	127.78	129.49	126.46	123.44	0
119.02	125.29	127.78	129.49	126.46	0
119.96	119.02	125.29	127.78	129.49	0
122.86	119.96	119.02	125.29	127.78	0
131.89	122.86	119.96	119.02	125.29	0
132.73	131.89	122.86	119.96	119.02	0
135.01	132.73	131.89	122.86	119.96	0
136.71	135.01	132.73	131.89	122.86	1
142.73	136.71	135.01	132.73	131.89	1
144.43	142.73	136.71	135.01	132.73	1
144.93	144.43	142.73	136.71	135.01	1
138.75	144.93	144.43	142.73	136.71	1
130.22	138.75	144.93	144.43	142.73	1
122.19	130.22	138.75	144.93	144.43	1
128.4	122.19	130.22	138.75	144.93	1
140.43	128.4	122.19	130.22	138.75	1
153.5	140.43	128.4	122.19	130.22	1
149.33	153.5	140.43	128.4	122.19	1
142.97	149.33	153.5	140.43	128.4	1




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y(t)[t] = + 22.2014493267714 + 1.47305280975136`Y(t-1)`[t] -0.609958903931009`Y(t-2)`[t] -0.311570948737318`Y(t-3)`[t] + 0.266930877605454`Y(t-4)`[t] + 1.67219763575734X[t] -2.25507346474391M1[t] + 0.6140703509069M2[t] -2.28209966022831M3[t] + 6.09052972606484M4[t] -0.631935182812322M5[t] + 4.54801419086582M6[t] -6.35229584801417M7[t] + 1.40352294946333M8[t] + 0.884830647112344M9[t] + 4.65001216934383M10[t] + 0.985345882304379M11[t] + 0.0152649517802632t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y(t)[t] =  +  22.2014493267714 +  1.47305280975136`Y(t-1)`[t] -0.609958903931009`Y(t-2)`[t] -0.311570948737318`Y(t-3)`[t] +  0.266930877605454`Y(t-4)`[t] +  1.67219763575734X[t] -2.25507346474391M1[t] +  0.6140703509069M2[t] -2.28209966022831M3[t] +  6.09052972606484M4[t] -0.631935182812322M5[t] +  4.54801419086582M6[t] -6.35229584801417M7[t] +  1.40352294946333M8[t] +  0.884830647112344M9[t] +  4.65001216934383M10[t] +  0.985345882304379M11[t] +  0.0152649517802632t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61306&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y(t)[t] =  +  22.2014493267714 +  1.47305280975136`Y(t-1)`[t] -0.609958903931009`Y(t-2)`[t] -0.311570948737318`Y(t-3)`[t] +  0.266930877605454`Y(t-4)`[t] +  1.67219763575734X[t] -2.25507346474391M1[t] +  0.6140703509069M2[t] -2.28209966022831M3[t] +  6.09052972606484M4[t] -0.631935182812322M5[t] +  4.54801419086582M6[t] -6.35229584801417M7[t] +  1.40352294946333M8[t] +  0.884830647112344M9[t] +  4.65001216934383M10[t] +  0.985345882304379M11[t] +  0.0152649517802632t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61306&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61306&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)[t] = + 22.2014493267714 + 1.47305280975136`Y(t-1)`[t] -0.609958903931009`Y(t-2)`[t] -0.311570948737318`Y(t-3)`[t] + 0.266930877605454`Y(t-4)`[t] + 1.67219763575734X[t] -2.25507346474391M1[t] + 0.6140703509069M2[t] -2.28209966022831M3[t] + 6.09052972606484M4[t] -0.631935182812322M5[t] + 4.54801419086582M6[t] -6.35229584801417M7[t] + 1.40352294946333M8[t] + 0.884830647112344M9[t] + 4.65001216934383M10[t] + 0.985345882304379M11[t] + 0.0152649517802632t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)22.201449326771411.5328711.92510.0617320.030866
`Y(t-1)`1.473052809751360.1581749.312900
`Y(t-2)`-0.6099589039310090.280548-2.17420.0359880.017994
`Y(t-3)`-0.3115709487373180.286298-1.08830.2833280.141664
`Y(t-4)`0.2669308776054540.1632441.63520.1102720.055136
X1.672197635757341.5986981.0460.3021810.15109
M1-2.255073464743912.113838-1.06680.2927870.146393
M20.61407035090692.2641390.27120.7876930.393846
M3-2.282099660228312.440303-0.93520.3556060.177803
M46.090529726064842.2510472.70560.010150.005075
M5-0.6319351828123222.482619-0.25450.8004480.400224
M64.548014190865821.9408732.34330.0244490.012225
M7-6.352295848014172.327005-2.72980.009550.004775
M81.403522949463332.3329680.60160.551010.275505
M90.8848306471123442.9756980.29740.7678170.383909
M104.650012169343832.1397822.17310.0360730.018036
M110.9853458823043792.3246370.42390.674050.337025
t0.01526495178026320.033590.45440.6520910.326046

\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) & 22.2014493267714 & 11.532871 & 1.9251 & 0.061732 & 0.030866 \tabularnewline
`Y(t-1)` & 1.47305280975136 & 0.158174 & 9.3129 & 0 & 0 \tabularnewline
`Y(t-2)` & -0.609958903931009 & 0.280548 & -2.1742 & 0.035988 & 0.017994 \tabularnewline
`Y(t-3)` & -0.311570948737318 & 0.286298 & -1.0883 & 0.283328 & 0.141664 \tabularnewline
`Y(t-4)` & 0.266930877605454 & 0.163244 & 1.6352 & 0.110272 & 0.055136 \tabularnewline
X & 1.67219763575734 & 1.598698 & 1.046 & 0.302181 & 0.15109 \tabularnewline
M1 & -2.25507346474391 & 2.113838 & -1.0668 & 0.292787 & 0.146393 \tabularnewline
M2 & 0.6140703509069 & 2.264139 & 0.2712 & 0.787693 & 0.393846 \tabularnewline
M3 & -2.28209966022831 & 2.440303 & -0.9352 & 0.355606 & 0.177803 \tabularnewline
M4 & 6.09052972606484 & 2.251047 & 2.7056 & 0.01015 & 0.005075 \tabularnewline
M5 & -0.631935182812322 & 2.482619 & -0.2545 & 0.800448 & 0.400224 \tabularnewline
M6 & 4.54801419086582 & 1.940873 & 2.3433 & 0.024449 & 0.012225 \tabularnewline
M7 & -6.35229584801417 & 2.327005 & -2.7298 & 0.00955 & 0.004775 \tabularnewline
M8 & 1.40352294946333 & 2.332968 & 0.6016 & 0.55101 & 0.275505 \tabularnewline
M9 & 0.884830647112344 & 2.975698 & 0.2974 & 0.767817 & 0.383909 \tabularnewline
M10 & 4.65001216934383 & 2.139782 & 2.1731 & 0.036073 & 0.018036 \tabularnewline
M11 & 0.985345882304379 & 2.324637 & 0.4239 & 0.67405 & 0.337025 \tabularnewline
t & 0.0152649517802632 & 0.03359 & 0.4544 & 0.652091 & 0.326046 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61306&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]22.2014493267714[/C][C]11.532871[/C][C]1.9251[/C][C]0.061732[/C][C]0.030866[/C][/ROW]
[ROW][C]`Y(t-1)`[/C][C]1.47305280975136[/C][C]0.158174[/C][C]9.3129[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Y(t-2)`[/C][C]-0.609958903931009[/C][C]0.280548[/C][C]-2.1742[/C][C]0.035988[/C][C]0.017994[/C][/ROW]
[ROW][C]`Y(t-3)`[/C][C]-0.311570948737318[/C][C]0.286298[/C][C]-1.0883[/C][C]0.283328[/C][C]0.141664[/C][/ROW]
[ROW][C]`Y(t-4)`[/C][C]0.266930877605454[/C][C]0.163244[/C][C]1.6352[/C][C]0.110272[/C][C]0.055136[/C][/ROW]
[ROW][C]X[/C][C]1.67219763575734[/C][C]1.598698[/C][C]1.046[/C][C]0.302181[/C][C]0.15109[/C][/ROW]
[ROW][C]M1[/C][C]-2.25507346474391[/C][C]2.113838[/C][C]-1.0668[/C][C]0.292787[/C][C]0.146393[/C][/ROW]
[ROW][C]M2[/C][C]0.6140703509069[/C][C]2.264139[/C][C]0.2712[/C][C]0.787693[/C][C]0.393846[/C][/ROW]
[ROW][C]M3[/C][C]-2.28209966022831[/C][C]2.440303[/C][C]-0.9352[/C][C]0.355606[/C][C]0.177803[/C][/ROW]
[ROW][C]M4[/C][C]6.09052972606484[/C][C]2.251047[/C][C]2.7056[/C][C]0.01015[/C][C]0.005075[/C][/ROW]
[ROW][C]M5[/C][C]-0.631935182812322[/C][C]2.482619[/C][C]-0.2545[/C][C]0.800448[/C][C]0.400224[/C][/ROW]
[ROW][C]M6[/C][C]4.54801419086582[/C][C]1.940873[/C][C]2.3433[/C][C]0.024449[/C][C]0.012225[/C][/ROW]
[ROW][C]M7[/C][C]-6.35229584801417[/C][C]2.327005[/C][C]-2.7298[/C][C]0.00955[/C][C]0.004775[/C][/ROW]
[ROW][C]M8[/C][C]1.40352294946333[/C][C]2.332968[/C][C]0.6016[/C][C]0.55101[/C][C]0.275505[/C][/ROW]
[ROW][C]M9[/C][C]0.884830647112344[/C][C]2.975698[/C][C]0.2974[/C][C]0.767817[/C][C]0.383909[/C][/ROW]
[ROW][C]M10[/C][C]4.65001216934383[/C][C]2.139782[/C][C]2.1731[/C][C]0.036073[/C][C]0.018036[/C][/ROW]
[ROW][C]M11[/C][C]0.985345882304379[/C][C]2.324637[/C][C]0.4239[/C][C]0.67405[/C][C]0.337025[/C][/ROW]
[ROW][C]t[/C][C]0.0152649517802632[/C][C]0.03359[/C][C]0.4544[/C][C]0.652091[/C][C]0.326046[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61306&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61306&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)22.201449326771411.5328711.92510.0617320.030866
`Y(t-1)`1.473052809751360.1581749.312900
`Y(t-2)`-0.6099589039310090.280548-2.17420.0359880.017994
`Y(t-3)`-0.3115709487373180.286298-1.08830.2833280.141664
`Y(t-4)`0.2669308776054540.1632441.63520.1102720.055136
X1.672197635757341.5986981.0460.3021810.15109
M1-2.255073464743912.113838-1.06680.2927870.146393
M20.61407035090692.2641390.27120.7876930.393846
M3-2.282099660228312.440303-0.93520.3556060.177803
M46.090529726064842.2510472.70560.010150.005075
M5-0.6319351828123222.482619-0.25450.8004480.400224
M64.548014190865821.9408732.34330.0244490.012225
M7-6.352295848014172.327005-2.72980.009550.004775
M81.403522949463332.3329680.60160.551010.275505
M90.8848306471123442.9756980.29740.7678170.383909
M104.650012169343832.1397822.17310.0360730.018036
M110.9853458823043792.3246370.42390.674050.337025
t0.01526495178026320.033590.45440.6520910.326046







Multiple Linear Regression - Regression Statistics
Multiple R0.965438204984186
R-squared0.932070927643088
Adjusted R-squared0.901681605799206
F-TEST (value)30.6710012296883
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.77038156067033
Sum Squared Residuals291.650531684682

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.965438204984186 \tabularnewline
R-squared & 0.932070927643088 \tabularnewline
Adjusted R-squared & 0.901681605799206 \tabularnewline
F-TEST (value) & 30.6710012296883 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.77038156067033 \tabularnewline
Sum Squared Residuals & 291.650531684682 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61306&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.965438204984186[/C][/ROW]
[ROW][C]R-squared[/C][C]0.932070927643088[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.901681605799206[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]30.6710012296883[/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]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2.77038156067033[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]291.650531684682[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61306&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61306&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.965438204984186
R-squared0.932070927643088
Adjusted R-squared0.901681605799206
F-TEST (value)30.6710012296883
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.77038156067033
Sum Squared Residuals291.650531684682







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1132.92132.983760318567-0.0637603185665924
2129.61126.8862353264892.72376467351121
3122.96123.241262021469-0.281262021469456
4124.04125.855966646979-1.81596664697931
5121.29124.460504182536-3.17050418253571
6124.56126.134473269161-1.57447326916149
7118.53119.632110895046-1.10211089504641
8113.14117.671226042491-4.53122604249057
9114.15111.1531993222782.99680067772204
10122.17122.460744416983-0.290744416982594
11129.23130.078942344692-0.848942344692285
12131.19132.863299752968-1.67329975296797
13129.12126.9751660628722.14483393712770
14128.28125.5559308027242.72406919727643
15126.83123.9741292506842.85587074931597
16138.13131.9065988779136.22340112208706
17140.52142.438508762002-1.91850876200246
18146.83144.4893396268272.34066037317325
19135.14137.533654495603-2.39365449560344
20131.84126.5075745645225.33242543547753
21125.7126.945444639670-1.24544463967037
22128.98129.020809473211-0.0408094732107547
23133.25131.8559311956981.39406880430221
24136.76136.2072942870670.552705712932555
25133.24133.872468316190-0.632468316189744
26128.54128.975900767936-0.435900767935761
27121.08121.364883661894-0.284883661893834
28120.23123.664268007648-3.43426800764833
29119.08120.780053355482-1.70005335548232
30125.75125.869466170903-0.119466170902747
31126.89123.7846670238553.10533297614469
32126.6129.298020432093-2.69802043209308
33121.89125.286905878889-3.39690587888891
34123.44123.731399773180-0.291399773179585
35126.46125.6327935061540.827206493845888
36129.49129.555984974033-0.0659849740332081
37127.78128.19727118068-0.417271180680044
38125.29126.187382759627-0.897382759627055
39119.02120.543677205408-1.52367720540766
40119.96122.555914978614-2.59591497861357
41122.86121.3771868519811.48281314801903
42131.89131.5597849193690.330215080631395
43132.73130.2409925885242.48900741147555
44135.01133.0888710690871.92112893091275
45136.71135.0644501591631.64554984083724
46142.73142.1070463366270.622953663372934
47144.43145.802332953456-1.37233295345582
48144.93143.7434209859311.18657901406863
49138.75139.781334121691-1.03133412169131
50130.22134.334550343225-4.11455034322483
51122.19122.956047860545-0.766047860545026
52128.4126.7772514888461.62274851115415
53140.43135.1237468479995.30625315200145
54153.5154.476936013740-0.976936013740409
55149.33151.428574996970-2.09857499697038
56142.97142.994307891807-0.0243078918066325

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 132.92 & 132.983760318567 & -0.0637603185665924 \tabularnewline
2 & 129.61 & 126.886235326489 & 2.72376467351121 \tabularnewline
3 & 122.96 & 123.241262021469 & -0.281262021469456 \tabularnewline
4 & 124.04 & 125.855966646979 & -1.81596664697931 \tabularnewline
5 & 121.29 & 124.460504182536 & -3.17050418253571 \tabularnewline
6 & 124.56 & 126.134473269161 & -1.57447326916149 \tabularnewline
7 & 118.53 & 119.632110895046 & -1.10211089504641 \tabularnewline
8 & 113.14 & 117.671226042491 & -4.53122604249057 \tabularnewline
9 & 114.15 & 111.153199322278 & 2.99680067772204 \tabularnewline
10 & 122.17 & 122.460744416983 & -0.290744416982594 \tabularnewline
11 & 129.23 & 130.078942344692 & -0.848942344692285 \tabularnewline
12 & 131.19 & 132.863299752968 & -1.67329975296797 \tabularnewline
13 & 129.12 & 126.975166062872 & 2.14483393712770 \tabularnewline
14 & 128.28 & 125.555930802724 & 2.72406919727643 \tabularnewline
15 & 126.83 & 123.974129250684 & 2.85587074931597 \tabularnewline
16 & 138.13 & 131.906598877913 & 6.22340112208706 \tabularnewline
17 & 140.52 & 142.438508762002 & -1.91850876200246 \tabularnewline
18 & 146.83 & 144.489339626827 & 2.34066037317325 \tabularnewline
19 & 135.14 & 137.533654495603 & -2.39365449560344 \tabularnewline
20 & 131.84 & 126.507574564522 & 5.33242543547753 \tabularnewline
21 & 125.7 & 126.945444639670 & -1.24544463967037 \tabularnewline
22 & 128.98 & 129.020809473211 & -0.0408094732107547 \tabularnewline
23 & 133.25 & 131.855931195698 & 1.39406880430221 \tabularnewline
24 & 136.76 & 136.207294287067 & 0.552705712932555 \tabularnewline
25 & 133.24 & 133.872468316190 & -0.632468316189744 \tabularnewline
26 & 128.54 & 128.975900767936 & -0.435900767935761 \tabularnewline
27 & 121.08 & 121.364883661894 & -0.284883661893834 \tabularnewline
28 & 120.23 & 123.664268007648 & -3.43426800764833 \tabularnewline
29 & 119.08 & 120.780053355482 & -1.70005335548232 \tabularnewline
30 & 125.75 & 125.869466170903 & -0.119466170902747 \tabularnewline
31 & 126.89 & 123.784667023855 & 3.10533297614469 \tabularnewline
32 & 126.6 & 129.298020432093 & -2.69802043209308 \tabularnewline
33 & 121.89 & 125.286905878889 & -3.39690587888891 \tabularnewline
34 & 123.44 & 123.731399773180 & -0.291399773179585 \tabularnewline
35 & 126.46 & 125.632793506154 & 0.827206493845888 \tabularnewline
36 & 129.49 & 129.555984974033 & -0.0659849740332081 \tabularnewline
37 & 127.78 & 128.19727118068 & -0.417271180680044 \tabularnewline
38 & 125.29 & 126.187382759627 & -0.897382759627055 \tabularnewline
39 & 119.02 & 120.543677205408 & -1.52367720540766 \tabularnewline
40 & 119.96 & 122.555914978614 & -2.59591497861357 \tabularnewline
41 & 122.86 & 121.377186851981 & 1.48281314801903 \tabularnewline
42 & 131.89 & 131.559784919369 & 0.330215080631395 \tabularnewline
43 & 132.73 & 130.240992588524 & 2.48900741147555 \tabularnewline
44 & 135.01 & 133.088871069087 & 1.92112893091275 \tabularnewline
45 & 136.71 & 135.064450159163 & 1.64554984083724 \tabularnewline
46 & 142.73 & 142.107046336627 & 0.622953663372934 \tabularnewline
47 & 144.43 & 145.802332953456 & -1.37233295345582 \tabularnewline
48 & 144.93 & 143.743420985931 & 1.18657901406863 \tabularnewline
49 & 138.75 & 139.781334121691 & -1.03133412169131 \tabularnewline
50 & 130.22 & 134.334550343225 & -4.11455034322483 \tabularnewline
51 & 122.19 & 122.956047860545 & -0.766047860545026 \tabularnewline
52 & 128.4 & 126.777251488846 & 1.62274851115415 \tabularnewline
53 & 140.43 & 135.123746847999 & 5.30625315200145 \tabularnewline
54 & 153.5 & 154.476936013740 & -0.976936013740409 \tabularnewline
55 & 149.33 & 151.428574996970 & -2.09857499697038 \tabularnewline
56 & 142.97 & 142.994307891807 & -0.0243078918066325 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61306&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]132.92[/C][C]132.983760318567[/C][C]-0.0637603185665924[/C][/ROW]
[ROW][C]2[/C][C]129.61[/C][C]126.886235326489[/C][C]2.72376467351121[/C][/ROW]
[ROW][C]3[/C][C]122.96[/C][C]123.241262021469[/C][C]-0.281262021469456[/C][/ROW]
[ROW][C]4[/C][C]124.04[/C][C]125.855966646979[/C][C]-1.81596664697931[/C][/ROW]
[ROW][C]5[/C][C]121.29[/C][C]124.460504182536[/C][C]-3.17050418253571[/C][/ROW]
[ROW][C]6[/C][C]124.56[/C][C]126.134473269161[/C][C]-1.57447326916149[/C][/ROW]
[ROW][C]7[/C][C]118.53[/C][C]119.632110895046[/C][C]-1.10211089504641[/C][/ROW]
[ROW][C]8[/C][C]113.14[/C][C]117.671226042491[/C][C]-4.53122604249057[/C][/ROW]
[ROW][C]9[/C][C]114.15[/C][C]111.153199322278[/C][C]2.99680067772204[/C][/ROW]
[ROW][C]10[/C][C]122.17[/C][C]122.460744416983[/C][C]-0.290744416982594[/C][/ROW]
[ROW][C]11[/C][C]129.23[/C][C]130.078942344692[/C][C]-0.848942344692285[/C][/ROW]
[ROW][C]12[/C][C]131.19[/C][C]132.863299752968[/C][C]-1.67329975296797[/C][/ROW]
[ROW][C]13[/C][C]129.12[/C][C]126.975166062872[/C][C]2.14483393712770[/C][/ROW]
[ROW][C]14[/C][C]128.28[/C][C]125.555930802724[/C][C]2.72406919727643[/C][/ROW]
[ROW][C]15[/C][C]126.83[/C][C]123.974129250684[/C][C]2.85587074931597[/C][/ROW]
[ROW][C]16[/C][C]138.13[/C][C]131.906598877913[/C][C]6.22340112208706[/C][/ROW]
[ROW][C]17[/C][C]140.52[/C][C]142.438508762002[/C][C]-1.91850876200246[/C][/ROW]
[ROW][C]18[/C][C]146.83[/C][C]144.489339626827[/C][C]2.34066037317325[/C][/ROW]
[ROW][C]19[/C][C]135.14[/C][C]137.533654495603[/C][C]-2.39365449560344[/C][/ROW]
[ROW][C]20[/C][C]131.84[/C][C]126.507574564522[/C][C]5.33242543547753[/C][/ROW]
[ROW][C]21[/C][C]125.7[/C][C]126.945444639670[/C][C]-1.24544463967037[/C][/ROW]
[ROW][C]22[/C][C]128.98[/C][C]129.020809473211[/C][C]-0.0408094732107547[/C][/ROW]
[ROW][C]23[/C][C]133.25[/C][C]131.855931195698[/C][C]1.39406880430221[/C][/ROW]
[ROW][C]24[/C][C]136.76[/C][C]136.207294287067[/C][C]0.552705712932555[/C][/ROW]
[ROW][C]25[/C][C]133.24[/C][C]133.872468316190[/C][C]-0.632468316189744[/C][/ROW]
[ROW][C]26[/C][C]128.54[/C][C]128.975900767936[/C][C]-0.435900767935761[/C][/ROW]
[ROW][C]27[/C][C]121.08[/C][C]121.364883661894[/C][C]-0.284883661893834[/C][/ROW]
[ROW][C]28[/C][C]120.23[/C][C]123.664268007648[/C][C]-3.43426800764833[/C][/ROW]
[ROW][C]29[/C][C]119.08[/C][C]120.780053355482[/C][C]-1.70005335548232[/C][/ROW]
[ROW][C]30[/C][C]125.75[/C][C]125.869466170903[/C][C]-0.119466170902747[/C][/ROW]
[ROW][C]31[/C][C]126.89[/C][C]123.784667023855[/C][C]3.10533297614469[/C][/ROW]
[ROW][C]32[/C][C]126.6[/C][C]129.298020432093[/C][C]-2.69802043209308[/C][/ROW]
[ROW][C]33[/C][C]121.89[/C][C]125.286905878889[/C][C]-3.39690587888891[/C][/ROW]
[ROW][C]34[/C][C]123.44[/C][C]123.731399773180[/C][C]-0.291399773179585[/C][/ROW]
[ROW][C]35[/C][C]126.46[/C][C]125.632793506154[/C][C]0.827206493845888[/C][/ROW]
[ROW][C]36[/C][C]129.49[/C][C]129.555984974033[/C][C]-0.0659849740332081[/C][/ROW]
[ROW][C]37[/C][C]127.78[/C][C]128.19727118068[/C][C]-0.417271180680044[/C][/ROW]
[ROW][C]38[/C][C]125.29[/C][C]126.187382759627[/C][C]-0.897382759627055[/C][/ROW]
[ROW][C]39[/C][C]119.02[/C][C]120.543677205408[/C][C]-1.52367720540766[/C][/ROW]
[ROW][C]40[/C][C]119.96[/C][C]122.555914978614[/C][C]-2.59591497861357[/C][/ROW]
[ROW][C]41[/C][C]122.86[/C][C]121.377186851981[/C][C]1.48281314801903[/C][/ROW]
[ROW][C]42[/C][C]131.89[/C][C]131.559784919369[/C][C]0.330215080631395[/C][/ROW]
[ROW][C]43[/C][C]132.73[/C][C]130.240992588524[/C][C]2.48900741147555[/C][/ROW]
[ROW][C]44[/C][C]135.01[/C][C]133.088871069087[/C][C]1.92112893091275[/C][/ROW]
[ROW][C]45[/C][C]136.71[/C][C]135.064450159163[/C][C]1.64554984083724[/C][/ROW]
[ROW][C]46[/C][C]142.73[/C][C]142.107046336627[/C][C]0.622953663372934[/C][/ROW]
[ROW][C]47[/C][C]144.43[/C][C]145.802332953456[/C][C]-1.37233295345582[/C][/ROW]
[ROW][C]48[/C][C]144.93[/C][C]143.743420985931[/C][C]1.18657901406863[/C][/ROW]
[ROW][C]49[/C][C]138.75[/C][C]139.781334121691[/C][C]-1.03133412169131[/C][/ROW]
[ROW][C]50[/C][C]130.22[/C][C]134.334550343225[/C][C]-4.11455034322483[/C][/ROW]
[ROW][C]51[/C][C]122.19[/C][C]122.956047860545[/C][C]-0.766047860545026[/C][/ROW]
[ROW][C]52[/C][C]128.4[/C][C]126.777251488846[/C][C]1.62274851115415[/C][/ROW]
[ROW][C]53[/C][C]140.43[/C][C]135.123746847999[/C][C]5.30625315200145[/C][/ROW]
[ROW][C]54[/C][C]153.5[/C][C]154.476936013740[/C][C]-0.976936013740409[/C][/ROW]
[ROW][C]55[/C][C]149.33[/C][C]151.428574996970[/C][C]-2.09857499697038[/C][/ROW]
[ROW][C]56[/C][C]142.97[/C][C]142.994307891807[/C][C]-0.0243078918066325[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61306&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61306&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
1132.92132.983760318567-0.0637603185665924
2129.61126.8862353264892.72376467351121
3122.96123.241262021469-0.281262021469456
4124.04125.855966646979-1.81596664697931
5121.29124.460504182536-3.17050418253571
6124.56126.134473269161-1.57447326916149
7118.53119.632110895046-1.10211089504641
8113.14117.671226042491-4.53122604249057
9114.15111.1531993222782.99680067772204
10122.17122.460744416983-0.290744416982594
11129.23130.078942344692-0.848942344692285
12131.19132.863299752968-1.67329975296797
13129.12126.9751660628722.14483393712770
14128.28125.5559308027242.72406919727643
15126.83123.9741292506842.85587074931597
16138.13131.9065988779136.22340112208706
17140.52142.438508762002-1.91850876200246
18146.83144.4893396268272.34066037317325
19135.14137.533654495603-2.39365449560344
20131.84126.5075745645225.33242543547753
21125.7126.945444639670-1.24544463967037
22128.98129.020809473211-0.0408094732107547
23133.25131.8559311956981.39406880430221
24136.76136.2072942870670.552705712932555
25133.24133.872468316190-0.632468316189744
26128.54128.975900767936-0.435900767935761
27121.08121.364883661894-0.284883661893834
28120.23123.664268007648-3.43426800764833
29119.08120.780053355482-1.70005335548232
30125.75125.869466170903-0.119466170902747
31126.89123.7846670238553.10533297614469
32126.6129.298020432093-2.69802043209308
33121.89125.286905878889-3.39690587888891
34123.44123.731399773180-0.291399773179585
35126.46125.6327935061540.827206493845888
36129.49129.555984974033-0.0659849740332081
37127.78128.19727118068-0.417271180680044
38125.29126.187382759627-0.897382759627055
39119.02120.543677205408-1.52367720540766
40119.96122.555914978614-2.59591497861357
41122.86121.3771868519811.48281314801903
42131.89131.5597849193690.330215080631395
43132.73130.2409925885242.48900741147555
44135.01133.0888710690871.92112893091275
45136.71135.0644501591631.64554984083724
46142.73142.1070463366270.622953663372934
47144.43145.802332953456-1.37233295345582
48144.93143.7434209859311.18657901406863
49138.75139.781334121691-1.03133412169131
50130.22134.334550343225-4.11455034322483
51122.19122.956047860545-0.766047860545026
52128.4126.7772514888461.62274851115415
53140.43135.1237468479995.30625315200145
54153.5154.476936013740-0.976936013740409
55149.33151.428574996970-2.09857499697038
56142.97142.994307891807-0.0243078918066325







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.9578407738503880.08431845229922450.0421592261496122
220.9861150198740890.02776996025182280.0138849801259114
230.9725035327060710.05499293458785720.0274964672939286
240.9622077163951790.07558456720964220.0377922836048211
250.9609339159420920.07813216811581570.0390660840579078
260.9893743122151970.02125137556960550.0106256877848027
270.9917963955727880.01640720885442380.0082036044272119
280.9949475441986040.01010491160279120.00505245580139561
290.9880491987978820.02390160240423540.0119508012021177
300.9890219770976480.02195604580470320.0109780229023516
310.9962490170707320.007501965858536040.00375098292926802
320.9893608764574390.02127824708512270.0106391235425614
330.9836536171081730.03269276578365440.0163463828918272
340.9552356260640560.08952874787188770.0447643739359439
350.8774235592710520.2451528814578970.122576440728948

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.957840773850388 & 0.0843184522992245 & 0.0421592261496122 \tabularnewline
22 & 0.986115019874089 & 0.0277699602518228 & 0.0138849801259114 \tabularnewline
23 & 0.972503532706071 & 0.0549929345878572 & 0.0274964672939286 \tabularnewline
24 & 0.962207716395179 & 0.0755845672096422 & 0.0377922836048211 \tabularnewline
25 & 0.960933915942092 & 0.0781321681158157 & 0.0390660840579078 \tabularnewline
26 & 0.989374312215197 & 0.0212513755696055 & 0.0106256877848027 \tabularnewline
27 & 0.991796395572788 & 0.0164072088544238 & 0.0082036044272119 \tabularnewline
28 & 0.994947544198604 & 0.0101049116027912 & 0.00505245580139561 \tabularnewline
29 & 0.988049198797882 & 0.0239016024042354 & 0.0119508012021177 \tabularnewline
30 & 0.989021977097648 & 0.0219560458047032 & 0.0109780229023516 \tabularnewline
31 & 0.996249017070732 & 0.00750196585853604 & 0.00375098292926802 \tabularnewline
32 & 0.989360876457439 & 0.0212782470851227 & 0.0106391235425614 \tabularnewline
33 & 0.983653617108173 & 0.0326927657836544 & 0.0163463828918272 \tabularnewline
34 & 0.955235626064056 & 0.0895287478718877 & 0.0447643739359439 \tabularnewline
35 & 0.877423559271052 & 0.245152881457897 & 0.122576440728948 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61306&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.957840773850388[/C][C]0.0843184522992245[/C][C]0.0421592261496122[/C][/ROW]
[ROW][C]22[/C][C]0.986115019874089[/C][C]0.0277699602518228[/C][C]0.0138849801259114[/C][/ROW]
[ROW][C]23[/C][C]0.972503532706071[/C][C]0.0549929345878572[/C][C]0.0274964672939286[/C][/ROW]
[ROW][C]24[/C][C]0.962207716395179[/C][C]0.0755845672096422[/C][C]0.0377922836048211[/C][/ROW]
[ROW][C]25[/C][C]0.960933915942092[/C][C]0.0781321681158157[/C][C]0.0390660840579078[/C][/ROW]
[ROW][C]26[/C][C]0.989374312215197[/C][C]0.0212513755696055[/C][C]0.0106256877848027[/C][/ROW]
[ROW][C]27[/C][C]0.991796395572788[/C][C]0.0164072088544238[/C][C]0.0082036044272119[/C][/ROW]
[ROW][C]28[/C][C]0.994947544198604[/C][C]0.0101049116027912[/C][C]0.00505245580139561[/C][/ROW]
[ROW][C]29[/C][C]0.988049198797882[/C][C]0.0239016024042354[/C][C]0.0119508012021177[/C][/ROW]
[ROW][C]30[/C][C]0.989021977097648[/C][C]0.0219560458047032[/C][C]0.0109780229023516[/C][/ROW]
[ROW][C]31[/C][C]0.996249017070732[/C][C]0.00750196585853604[/C][C]0.00375098292926802[/C][/ROW]
[ROW][C]32[/C][C]0.989360876457439[/C][C]0.0212782470851227[/C][C]0.0106391235425614[/C][/ROW]
[ROW][C]33[/C][C]0.983653617108173[/C][C]0.0326927657836544[/C][C]0.0163463828918272[/C][/ROW]
[ROW][C]34[/C][C]0.955235626064056[/C][C]0.0895287478718877[/C][C]0.0447643739359439[/C][/ROW]
[ROW][C]35[/C][C]0.877423559271052[/C][C]0.245152881457897[/C][C]0.122576440728948[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61306&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61306&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.9578407738503880.08431845229922450.0421592261496122
220.9861150198740890.02776996025182280.0138849801259114
230.9725035327060710.05499293458785720.0274964672939286
240.9622077163951790.07558456720964220.0377922836048211
250.9609339159420920.07813216811581570.0390660840579078
260.9893743122151970.02125137556960550.0106256877848027
270.9917963955727880.01640720885442380.0082036044272119
280.9949475441986040.01010491160279120.00505245580139561
290.9880491987978820.02390160240423540.0119508012021177
300.9890219770976480.02195604580470320.0109780229023516
310.9962490170707320.007501965858536040.00375098292926802
320.9893608764574390.02127824708512270.0106391235425614
330.9836536171081730.03269276578365440.0163463828918272
340.9552356260640560.08952874787188770.0447643739359439
350.8774235592710520.2451528814578970.122576440728948







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0666666666666667NOK
5% type I error level90.6NOK
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 & 1 & 0.0666666666666667 & NOK \tabularnewline
5% type I error level & 9 & 0.6 & NOK \tabularnewline
10% type I error level & 14 & 0.933333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61306&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]1[/C][C]0.0666666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]9[/C][C]0.6[/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=61306&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61306&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 level10.0666666666666667NOK
5% type I error level90.6NOK
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')
}