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 computationThu, 19 Nov 2009 01:45:43 -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/19/t1258620459ajv85vlig2k0iu3.htm/, Retrieved Thu, 18 Apr 2024 16:37:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57655, Retrieved Thu, 18 Apr 2024 16:37:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
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] [Multivariate regr...] [2009-11-19 08:45:43] [bef26de542bed2eafc60fe4615b06e47] [Current]
-    D        [Multiple Regression] [] [2010-12-07 12:28:40] [f47feae0308dca73181bb669fbad1c56]
- R             [Multiple Regression] [] [2011-11-26 18:16:37] [74be16979710d4c4e7c6647856088456]
- R P             [Multiple Regression] [] [2011-11-27 16:44:08] [3931071255a6f7f4a767409781cc5f7d]
- R P             [Multiple Regression] [] [2011-11-27 16:47:29] [3931071255a6f7f4a767409781cc5f7d]
-    D        [Multiple Regression] [] [2010-12-21 20:19:59] [f47feae0308dca73181bb669fbad1c56]
-   PD        [Multiple Regression] [] [2010-12-21 20:26:33] [f47feae0308dca73181bb669fbad1c56]
-   PD        [Multiple Regression] [] [2010-12-21 20:36:54] [f47feae0308dca73181bb669fbad1c56]
-    D          [Multiple Regression] [] [2010-12-28 18:23:34] [f47feae0308dca73181bb669fbad1c56]
Feedback Forum

Post a new message
Dataseries X:
121.6	0
118.8	0
114.0	1
111.5	1
97.2	1
102.5	1
113.4	1
109.8	1
104.9	1
126.1	1
80.0	1
96.8	1
117.2	1
112.3	1
117.3	1
111.1	0
102.2	0
104.3	0
122.9	0
107.6	0
121.3	0
131.5	0
89.0	0
104.4	0
128.9	0
135.9	0
133.3	0
121.3	0
120.5	0
120.4	0
137.9	0
126.1	0
133.2	0
151.1	0
105.0	0
119.0	0
140.4	0
156.6	0
137.1	0
122.7	0
125.8	0
139.3	0
134.9	0
149.2	1
132.3	0
149.0	1
117.2	1
119.6	1
152.0	1
149.4	1
127.3	1
114.1	1
102.1	1
107.7	1
104.4	1
102.1	1
96.0	1
109.3	1
90.0	1
83.9	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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
Promet[t] = + 111.236666666667 -10.8277777777778Dummy[t] + 25.1144444444445M1[t] + 27.6944444444445M2[t] + 21.06M3[t] + 9.23444444444445M4[t] + 2.65444444444443M5[t] + 7.93444444444446M6[t] + 15.7944444444445M7[t] + 14.2200000000000M8[t] + 10.6344444444444M9[t] + 28.66M10[t] -8.5M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Promet[t] =  +  111.236666666667 -10.8277777777778Dummy[t] +  25.1144444444445M1[t] +  27.6944444444445M2[t] +  21.06M3[t] +  9.23444444444445M4[t] +  2.65444444444443M5[t] +  7.93444444444446M6[t] +  15.7944444444445M7[t] +  14.2200000000000M8[t] +  10.6344444444444M9[t] +  28.66M10[t] -8.5M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57655&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Promet[t] =  +  111.236666666667 -10.8277777777778Dummy[t] +  25.1144444444445M1[t] +  27.6944444444445M2[t] +  21.06M3[t] +  9.23444444444445M4[t] +  2.65444444444443M5[t] +  7.93444444444446M6[t] +  15.7944444444445M7[t] +  14.2200000000000M8[t] +  10.6344444444444M9[t] +  28.66M10[t] -8.5M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57655&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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
Promet[t] = + 111.236666666667 -10.8277777777778Dummy[t] + 25.1144444444445M1[t] + 27.6944444444445M2[t] + 21.06M3[t] + 9.23444444444445M4[t] + 2.65444444444443M5[t] + 7.93444444444446M6[t] + 15.7944444444445M7[t] + 14.2200000000000M8[t] + 10.6344444444444M9[t] + 28.66M10[t] -8.5M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)111.2366666666676.57515616.917700
Dummy-10.82777777777783.652864-2.96420.0047530.002377
M125.11444444444458.7972622.85480.0063890.003194
M227.69444444444458.7972623.14810.0028530.001427
M321.068.7668742.40220.02030.01015
M49.234444444444458.7972621.04970.2992260.149613
M52.654444444444438.7972620.30170.7641850.382092
M67.934444444444468.7972620.90190.3716970.185849
M715.79444444444458.7972621.79540.0790240.039512
M814.22000000000008.7668741.6220.111490.055745
M910.63444444444448.7972621.20880.2327720.116386
M1028.668.7668743.26910.0020220.001011
M11-8.58.766874-0.96960.337230.168615

\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) & 111.236666666667 & 6.575156 & 16.9177 & 0 & 0 \tabularnewline
Dummy & -10.8277777777778 & 3.652864 & -2.9642 & 0.004753 & 0.002377 \tabularnewline
M1 & 25.1144444444445 & 8.797262 & 2.8548 & 0.006389 & 0.003194 \tabularnewline
M2 & 27.6944444444445 & 8.797262 & 3.1481 & 0.002853 & 0.001427 \tabularnewline
M3 & 21.06 & 8.766874 & 2.4022 & 0.0203 & 0.01015 \tabularnewline
M4 & 9.23444444444445 & 8.797262 & 1.0497 & 0.299226 & 0.149613 \tabularnewline
M5 & 2.65444444444443 & 8.797262 & 0.3017 & 0.764185 & 0.382092 \tabularnewline
M6 & 7.93444444444446 & 8.797262 & 0.9019 & 0.371697 & 0.185849 \tabularnewline
M7 & 15.7944444444445 & 8.797262 & 1.7954 & 0.079024 & 0.039512 \tabularnewline
M8 & 14.2200000000000 & 8.766874 & 1.622 & 0.11149 & 0.055745 \tabularnewline
M9 & 10.6344444444444 & 8.797262 & 1.2088 & 0.232772 & 0.116386 \tabularnewline
M10 & 28.66 & 8.766874 & 3.2691 & 0.002022 & 0.001011 \tabularnewline
M11 & -8.5 & 8.766874 & -0.9696 & 0.33723 & 0.168615 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57655&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]111.236666666667[/C][C]6.575156[/C][C]16.9177[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-10.8277777777778[/C][C]3.652864[/C][C]-2.9642[/C][C]0.004753[/C][C]0.002377[/C][/ROW]
[ROW][C]M1[/C][C]25.1144444444445[/C][C]8.797262[/C][C]2.8548[/C][C]0.006389[/C][C]0.003194[/C][/ROW]
[ROW][C]M2[/C][C]27.6944444444445[/C][C]8.797262[/C][C]3.1481[/C][C]0.002853[/C][C]0.001427[/C][/ROW]
[ROW][C]M3[/C][C]21.06[/C][C]8.766874[/C][C]2.4022[/C][C]0.0203[/C][C]0.01015[/C][/ROW]
[ROW][C]M4[/C][C]9.23444444444445[/C][C]8.797262[/C][C]1.0497[/C][C]0.299226[/C][C]0.149613[/C][/ROW]
[ROW][C]M5[/C][C]2.65444444444443[/C][C]8.797262[/C][C]0.3017[/C][C]0.764185[/C][C]0.382092[/C][/ROW]
[ROW][C]M6[/C][C]7.93444444444446[/C][C]8.797262[/C][C]0.9019[/C][C]0.371697[/C][C]0.185849[/C][/ROW]
[ROW][C]M7[/C][C]15.7944444444445[/C][C]8.797262[/C][C]1.7954[/C][C]0.079024[/C][C]0.039512[/C][/ROW]
[ROW][C]M8[/C][C]14.2200000000000[/C][C]8.766874[/C][C]1.622[/C][C]0.11149[/C][C]0.055745[/C][/ROW]
[ROW][C]M9[/C][C]10.6344444444444[/C][C]8.797262[/C][C]1.2088[/C][C]0.232772[/C][C]0.116386[/C][/ROW]
[ROW][C]M10[/C][C]28.66[/C][C]8.766874[/C][C]3.2691[/C][C]0.002022[/C][C]0.001011[/C][/ROW]
[ROW][C]M11[/C][C]-8.5[/C][C]8.766874[/C][C]-0.9696[/C][C]0.33723[/C][C]0.168615[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57655&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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)111.2366666666676.57515616.917700
Dummy-10.82777777777783.652864-2.96420.0047530.002377
M125.11444444444458.7972622.85480.0063890.003194
M227.69444444444458.7972623.14810.0028530.001427
M321.068.7668742.40220.02030.01015
M49.234444444444458.7972621.04970.2992260.149613
M52.654444444444438.7972620.30170.7641850.382092
M67.934444444444468.7972620.90190.3716970.185849
M715.79444444444458.7972621.79540.0790240.039512
M814.22000000000008.7668741.6220.111490.055745
M910.63444444444448.7972621.20880.2327720.116386
M1028.668.7668743.26910.0020220.001011
M11-8.58.766874-0.96960.337230.168615







Multiple Linear Regression - Regression Statistics
Multiple R0.711877431372855
R-squared0.506769477298014
Adjusted R-squared0.3808382800124
F-TEST (value)4.02417739385622
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00027256842434098
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.8616452992382
Sum Squared Residuals9030.82488888888

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.711877431372855 \tabularnewline
R-squared & 0.506769477298014 \tabularnewline
Adjusted R-squared & 0.3808382800124 \tabularnewline
F-TEST (value) & 4.02417739385622 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00027256842434098 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.8616452992382 \tabularnewline
Sum Squared Residuals & 9030.82488888888 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57655&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.711877431372855[/C][/ROW]
[ROW][C]R-squared[/C][C]0.506769477298014[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.3808382800124[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.02417739385622[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.00027256842434098[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.8616452992382[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9030.82488888888[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57655&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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.711877431372855
R-squared0.506769477298014
Adjusted R-squared0.3808382800124
F-TEST (value)4.02417739385622
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00027256842434098
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.8616452992382
Sum Squared Residuals9030.82488888888







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1121.6136.351111111111-14.7511111111110
2118.8138.931111111111-20.1311111111111
3114121.468888888889-7.46888888888888
4111.5109.6433333333331.85666666666675
597.2103.063333333333-5.86333333333334
6102.5108.343333333333-5.84333333333332
7113.4116.203333333333-2.80333333333332
8109.8114.628888888889-4.82888888888889
9104.9111.043333333333-6.14333333333334
10126.1129.068888888889-2.9688888888889
118091.9088888888889-11.9088888888889
1296.8100.408888888889-3.60888888888889
13117.2125.523333333333-8.32333333333335
14112.3128.103333333333-15.8033333333333
15117.3121.468888888889-4.16888888888889
16111.1120.471111111111-9.37111111111114
17102.2113.891111111111-11.6911111111111
18104.3119.171111111111-14.8711111111111
19122.9127.031111111111-4.13111111111112
20107.6125.456666666667-17.8566666666667
21121.3121.871111111111-0.571111111111111
22131.5139.896666666667-8.39666666666667
2389102.736666666667-13.7366666666667
24104.4111.236666666667-6.83666666666667
25128.9136.351111111111-7.45111111111114
26135.9138.931111111111-3.03111111111111
27133.3132.2966666666671.00333333333334
28121.3120.4711111111110.828888888888866
29120.5113.8911111111116.60888888888889
30120.4119.1711111111111.22888888888888
31137.9127.03111111111110.8688888888889
32126.1125.4566666666670.64333333333334
33133.2121.87111111111111.3288888888889
34151.1139.89666666666711.2033333333333
35105102.7366666666672.26333333333332
36119111.2366666666677.76333333333333
37140.4136.3511111111114.04888888888886
38156.6138.93111111111117.6688888888889
39137.1132.2966666666674.80333333333332
40122.7120.4711111111112.22888888888887
41125.8113.89111111111111.9088888888889
42139.3119.17111111111120.1288888888889
43134.9127.0311111111117.86888888888888
44149.2114.62888888888934.5711111111111
45132.3121.87111111111110.4288888888889
46149129.06888888888919.9311111111111
47117.291.908888888888925.2911111111111
48119.6100.40888888888919.1911111111111
49152125.52333333333326.4766666666666
50149.4128.10333333333321.2966666666667
51127.3121.4688888888895.83111111111111
52114.1109.6433333333334.45666666666665
53102.1103.063333333333-0.96333333333333
54107.7108.343333333333-0.643333333333334
55104.4116.203333333333-11.8033333333333
56102.1114.628888888889-12.5288888888889
5796111.043333333333-15.0433333333333
58109.3129.068888888889-19.7688888888889
599091.9088888888889-1.90888888888889
6083.9100.408888888889-16.5088888888889

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 121.6 & 136.351111111111 & -14.7511111111110 \tabularnewline
2 & 118.8 & 138.931111111111 & -20.1311111111111 \tabularnewline
3 & 114 & 121.468888888889 & -7.46888888888888 \tabularnewline
4 & 111.5 & 109.643333333333 & 1.85666666666675 \tabularnewline
5 & 97.2 & 103.063333333333 & -5.86333333333334 \tabularnewline
6 & 102.5 & 108.343333333333 & -5.84333333333332 \tabularnewline
7 & 113.4 & 116.203333333333 & -2.80333333333332 \tabularnewline
8 & 109.8 & 114.628888888889 & -4.82888888888889 \tabularnewline
9 & 104.9 & 111.043333333333 & -6.14333333333334 \tabularnewline
10 & 126.1 & 129.068888888889 & -2.9688888888889 \tabularnewline
11 & 80 & 91.9088888888889 & -11.9088888888889 \tabularnewline
12 & 96.8 & 100.408888888889 & -3.60888888888889 \tabularnewline
13 & 117.2 & 125.523333333333 & -8.32333333333335 \tabularnewline
14 & 112.3 & 128.103333333333 & -15.8033333333333 \tabularnewline
15 & 117.3 & 121.468888888889 & -4.16888888888889 \tabularnewline
16 & 111.1 & 120.471111111111 & -9.37111111111114 \tabularnewline
17 & 102.2 & 113.891111111111 & -11.6911111111111 \tabularnewline
18 & 104.3 & 119.171111111111 & -14.8711111111111 \tabularnewline
19 & 122.9 & 127.031111111111 & -4.13111111111112 \tabularnewline
20 & 107.6 & 125.456666666667 & -17.8566666666667 \tabularnewline
21 & 121.3 & 121.871111111111 & -0.571111111111111 \tabularnewline
22 & 131.5 & 139.896666666667 & -8.39666666666667 \tabularnewline
23 & 89 & 102.736666666667 & -13.7366666666667 \tabularnewline
24 & 104.4 & 111.236666666667 & -6.83666666666667 \tabularnewline
25 & 128.9 & 136.351111111111 & -7.45111111111114 \tabularnewline
26 & 135.9 & 138.931111111111 & -3.03111111111111 \tabularnewline
27 & 133.3 & 132.296666666667 & 1.00333333333334 \tabularnewline
28 & 121.3 & 120.471111111111 & 0.828888888888866 \tabularnewline
29 & 120.5 & 113.891111111111 & 6.60888888888889 \tabularnewline
30 & 120.4 & 119.171111111111 & 1.22888888888888 \tabularnewline
31 & 137.9 & 127.031111111111 & 10.8688888888889 \tabularnewline
32 & 126.1 & 125.456666666667 & 0.64333333333334 \tabularnewline
33 & 133.2 & 121.871111111111 & 11.3288888888889 \tabularnewline
34 & 151.1 & 139.896666666667 & 11.2033333333333 \tabularnewline
35 & 105 & 102.736666666667 & 2.26333333333332 \tabularnewline
36 & 119 & 111.236666666667 & 7.76333333333333 \tabularnewline
37 & 140.4 & 136.351111111111 & 4.04888888888886 \tabularnewline
38 & 156.6 & 138.931111111111 & 17.6688888888889 \tabularnewline
39 & 137.1 & 132.296666666667 & 4.80333333333332 \tabularnewline
40 & 122.7 & 120.471111111111 & 2.22888888888887 \tabularnewline
41 & 125.8 & 113.891111111111 & 11.9088888888889 \tabularnewline
42 & 139.3 & 119.171111111111 & 20.1288888888889 \tabularnewline
43 & 134.9 & 127.031111111111 & 7.86888888888888 \tabularnewline
44 & 149.2 & 114.628888888889 & 34.5711111111111 \tabularnewline
45 & 132.3 & 121.871111111111 & 10.4288888888889 \tabularnewline
46 & 149 & 129.068888888889 & 19.9311111111111 \tabularnewline
47 & 117.2 & 91.9088888888889 & 25.2911111111111 \tabularnewline
48 & 119.6 & 100.408888888889 & 19.1911111111111 \tabularnewline
49 & 152 & 125.523333333333 & 26.4766666666666 \tabularnewline
50 & 149.4 & 128.103333333333 & 21.2966666666667 \tabularnewline
51 & 127.3 & 121.468888888889 & 5.83111111111111 \tabularnewline
52 & 114.1 & 109.643333333333 & 4.45666666666665 \tabularnewline
53 & 102.1 & 103.063333333333 & -0.96333333333333 \tabularnewline
54 & 107.7 & 108.343333333333 & -0.643333333333334 \tabularnewline
55 & 104.4 & 116.203333333333 & -11.8033333333333 \tabularnewline
56 & 102.1 & 114.628888888889 & -12.5288888888889 \tabularnewline
57 & 96 & 111.043333333333 & -15.0433333333333 \tabularnewline
58 & 109.3 & 129.068888888889 & -19.7688888888889 \tabularnewline
59 & 90 & 91.9088888888889 & -1.90888888888889 \tabularnewline
60 & 83.9 & 100.408888888889 & -16.5088888888889 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57655&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]121.6[/C][C]136.351111111111[/C][C]-14.7511111111110[/C][/ROW]
[ROW][C]2[/C][C]118.8[/C][C]138.931111111111[/C][C]-20.1311111111111[/C][/ROW]
[ROW][C]3[/C][C]114[/C][C]121.468888888889[/C][C]-7.46888888888888[/C][/ROW]
[ROW][C]4[/C][C]111.5[/C][C]109.643333333333[/C][C]1.85666666666675[/C][/ROW]
[ROW][C]5[/C][C]97.2[/C][C]103.063333333333[/C][C]-5.86333333333334[/C][/ROW]
[ROW][C]6[/C][C]102.5[/C][C]108.343333333333[/C][C]-5.84333333333332[/C][/ROW]
[ROW][C]7[/C][C]113.4[/C][C]116.203333333333[/C][C]-2.80333333333332[/C][/ROW]
[ROW][C]8[/C][C]109.8[/C][C]114.628888888889[/C][C]-4.82888888888889[/C][/ROW]
[ROW][C]9[/C][C]104.9[/C][C]111.043333333333[/C][C]-6.14333333333334[/C][/ROW]
[ROW][C]10[/C][C]126.1[/C][C]129.068888888889[/C][C]-2.9688888888889[/C][/ROW]
[ROW][C]11[/C][C]80[/C][C]91.9088888888889[/C][C]-11.9088888888889[/C][/ROW]
[ROW][C]12[/C][C]96.8[/C][C]100.408888888889[/C][C]-3.60888888888889[/C][/ROW]
[ROW][C]13[/C][C]117.2[/C][C]125.523333333333[/C][C]-8.32333333333335[/C][/ROW]
[ROW][C]14[/C][C]112.3[/C][C]128.103333333333[/C][C]-15.8033333333333[/C][/ROW]
[ROW][C]15[/C][C]117.3[/C][C]121.468888888889[/C][C]-4.16888888888889[/C][/ROW]
[ROW][C]16[/C][C]111.1[/C][C]120.471111111111[/C][C]-9.37111111111114[/C][/ROW]
[ROW][C]17[/C][C]102.2[/C][C]113.891111111111[/C][C]-11.6911111111111[/C][/ROW]
[ROW][C]18[/C][C]104.3[/C][C]119.171111111111[/C][C]-14.8711111111111[/C][/ROW]
[ROW][C]19[/C][C]122.9[/C][C]127.031111111111[/C][C]-4.13111111111112[/C][/ROW]
[ROW][C]20[/C][C]107.6[/C][C]125.456666666667[/C][C]-17.8566666666667[/C][/ROW]
[ROW][C]21[/C][C]121.3[/C][C]121.871111111111[/C][C]-0.571111111111111[/C][/ROW]
[ROW][C]22[/C][C]131.5[/C][C]139.896666666667[/C][C]-8.39666666666667[/C][/ROW]
[ROW][C]23[/C][C]89[/C][C]102.736666666667[/C][C]-13.7366666666667[/C][/ROW]
[ROW][C]24[/C][C]104.4[/C][C]111.236666666667[/C][C]-6.83666666666667[/C][/ROW]
[ROW][C]25[/C][C]128.9[/C][C]136.351111111111[/C][C]-7.45111111111114[/C][/ROW]
[ROW][C]26[/C][C]135.9[/C][C]138.931111111111[/C][C]-3.03111111111111[/C][/ROW]
[ROW][C]27[/C][C]133.3[/C][C]132.296666666667[/C][C]1.00333333333334[/C][/ROW]
[ROW][C]28[/C][C]121.3[/C][C]120.471111111111[/C][C]0.828888888888866[/C][/ROW]
[ROW][C]29[/C][C]120.5[/C][C]113.891111111111[/C][C]6.60888888888889[/C][/ROW]
[ROW][C]30[/C][C]120.4[/C][C]119.171111111111[/C][C]1.22888888888888[/C][/ROW]
[ROW][C]31[/C][C]137.9[/C][C]127.031111111111[/C][C]10.8688888888889[/C][/ROW]
[ROW][C]32[/C][C]126.1[/C][C]125.456666666667[/C][C]0.64333333333334[/C][/ROW]
[ROW][C]33[/C][C]133.2[/C][C]121.871111111111[/C][C]11.3288888888889[/C][/ROW]
[ROW][C]34[/C][C]151.1[/C][C]139.896666666667[/C][C]11.2033333333333[/C][/ROW]
[ROW][C]35[/C][C]105[/C][C]102.736666666667[/C][C]2.26333333333332[/C][/ROW]
[ROW][C]36[/C][C]119[/C][C]111.236666666667[/C][C]7.76333333333333[/C][/ROW]
[ROW][C]37[/C][C]140.4[/C][C]136.351111111111[/C][C]4.04888888888886[/C][/ROW]
[ROW][C]38[/C][C]156.6[/C][C]138.931111111111[/C][C]17.6688888888889[/C][/ROW]
[ROW][C]39[/C][C]137.1[/C][C]132.296666666667[/C][C]4.80333333333332[/C][/ROW]
[ROW][C]40[/C][C]122.7[/C][C]120.471111111111[/C][C]2.22888888888887[/C][/ROW]
[ROW][C]41[/C][C]125.8[/C][C]113.891111111111[/C][C]11.9088888888889[/C][/ROW]
[ROW][C]42[/C][C]139.3[/C][C]119.171111111111[/C][C]20.1288888888889[/C][/ROW]
[ROW][C]43[/C][C]134.9[/C][C]127.031111111111[/C][C]7.86888888888888[/C][/ROW]
[ROW][C]44[/C][C]149.2[/C][C]114.628888888889[/C][C]34.5711111111111[/C][/ROW]
[ROW][C]45[/C][C]132.3[/C][C]121.871111111111[/C][C]10.4288888888889[/C][/ROW]
[ROW][C]46[/C][C]149[/C][C]129.068888888889[/C][C]19.9311111111111[/C][/ROW]
[ROW][C]47[/C][C]117.2[/C][C]91.9088888888889[/C][C]25.2911111111111[/C][/ROW]
[ROW][C]48[/C][C]119.6[/C][C]100.408888888889[/C][C]19.1911111111111[/C][/ROW]
[ROW][C]49[/C][C]152[/C][C]125.523333333333[/C][C]26.4766666666666[/C][/ROW]
[ROW][C]50[/C][C]149.4[/C][C]128.103333333333[/C][C]21.2966666666667[/C][/ROW]
[ROW][C]51[/C][C]127.3[/C][C]121.468888888889[/C][C]5.83111111111111[/C][/ROW]
[ROW][C]52[/C][C]114.1[/C][C]109.643333333333[/C][C]4.45666666666665[/C][/ROW]
[ROW][C]53[/C][C]102.1[/C][C]103.063333333333[/C][C]-0.96333333333333[/C][/ROW]
[ROW][C]54[/C][C]107.7[/C][C]108.343333333333[/C][C]-0.643333333333334[/C][/ROW]
[ROW][C]55[/C][C]104.4[/C][C]116.203333333333[/C][C]-11.8033333333333[/C][/ROW]
[ROW][C]56[/C][C]102.1[/C][C]114.628888888889[/C][C]-12.5288888888889[/C][/ROW]
[ROW][C]57[/C][C]96[/C][C]111.043333333333[/C][C]-15.0433333333333[/C][/ROW]
[ROW][C]58[/C][C]109.3[/C][C]129.068888888889[/C][C]-19.7688888888889[/C][/ROW]
[ROW][C]59[/C][C]90[/C][C]91.9088888888889[/C][C]-1.90888888888889[/C][/ROW]
[ROW][C]60[/C][C]83.9[/C][C]100.408888888889[/C][C]-16.5088888888889[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57655&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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
1121.6136.351111111111-14.7511111111110
2118.8138.931111111111-20.1311111111111
3114121.468888888889-7.46888888888888
4111.5109.6433333333331.85666666666675
597.2103.063333333333-5.86333333333334
6102.5108.343333333333-5.84333333333332
7113.4116.203333333333-2.80333333333332
8109.8114.628888888889-4.82888888888889
9104.9111.043333333333-6.14333333333334
10126.1129.068888888889-2.9688888888889
118091.9088888888889-11.9088888888889
1296.8100.408888888889-3.60888888888889
13117.2125.523333333333-8.32333333333335
14112.3128.103333333333-15.8033333333333
15117.3121.468888888889-4.16888888888889
16111.1120.471111111111-9.37111111111114
17102.2113.891111111111-11.6911111111111
18104.3119.171111111111-14.8711111111111
19122.9127.031111111111-4.13111111111112
20107.6125.456666666667-17.8566666666667
21121.3121.871111111111-0.571111111111111
22131.5139.896666666667-8.39666666666667
2389102.736666666667-13.7366666666667
24104.4111.236666666667-6.83666666666667
25128.9136.351111111111-7.45111111111114
26135.9138.931111111111-3.03111111111111
27133.3132.2966666666671.00333333333334
28121.3120.4711111111110.828888888888866
29120.5113.8911111111116.60888888888889
30120.4119.1711111111111.22888888888888
31137.9127.03111111111110.8688888888889
32126.1125.4566666666670.64333333333334
33133.2121.87111111111111.3288888888889
34151.1139.89666666666711.2033333333333
35105102.7366666666672.26333333333332
36119111.2366666666677.76333333333333
37140.4136.3511111111114.04888888888886
38156.6138.93111111111117.6688888888889
39137.1132.2966666666674.80333333333332
40122.7120.4711111111112.22888888888887
41125.8113.89111111111111.9088888888889
42139.3119.17111111111120.1288888888889
43134.9127.0311111111117.86888888888888
44149.2114.62888888888934.5711111111111
45132.3121.87111111111110.4288888888889
46149129.06888888888919.9311111111111
47117.291.908888888888925.2911111111111
48119.6100.40888888888919.1911111111111
49152125.52333333333326.4766666666666
50149.4128.10333333333321.2966666666667
51127.3121.4688888888895.83111111111111
52114.1109.6433333333334.45666666666665
53102.1103.063333333333-0.96333333333333
54107.7108.343333333333-0.643333333333334
55104.4116.203333333333-11.8033333333333
56102.1114.628888888889-12.5288888888889
5796111.043333333333-15.0433333333333
58109.3129.068888888889-19.7688888888889
599091.9088888888889-1.90888888888889
6083.9100.408888888889-16.5088888888889







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.006277304677835590.01255460935567120.993722695322164
170.0009575926892978520.001915185378595700.999042407310702
180.0001635744257460340.0003271488514920670.999836425574254
199.95659565424565e-050.0001991319130849130.999900434043458
207.77568608440021e-050.0001555137216880040.999922243139156
210.0003247048627591560.0006494097255183120.99967529513724
228.30708980192928e-050.0001661417960385860.99991692910198
233.24381928596528e-056.48763857193056e-050.99996756180714
248.47280888509778e-061.69456177701956e-050.999991527191115
257.86357942518515e-061.57271588503703e-050.999992136420575
260.0002523734422330090.0005047468844660190.999747626557767
270.0002285925621392440.0004571851242784880.99977140743786
280.0001075288526070180.0002150577052140360.999892471147393
290.0002980543983357910.0005961087966715820.999701945601664
300.0003134717327381980.0006269434654763960.999686528267262
310.0004293780702860890.0008587561405721780.999570621929714
320.0004289085875777640.0008578171751555280.999571091412422
330.0004787639946806490.0009575279893612970.99952123600532
340.0005545455304223750.001109091060844750.999445454469578
350.0005724656634869710.001144931326973940.999427534336513
360.0003585304682436160.0007170609364872330.999641469531756
370.0006504688776008000.001300937755201600.9993495311224
380.003094100342829850.00618820068565970.99690589965717
390.001783958132201620.003567916264403230.998216041867798
400.001124273100007000.002248546200014010.998875726899993
410.0007001568316723040.001400313663344610.999299843168328
420.0008088505680500720.001617701136100140.99919114943195
430.0002828246266069910.0005656492532139810.999717175373393
440.01369424204426480.02738848408852960.986305757955735

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00627730467783559 & 0.0125546093556712 & 0.993722695322164 \tabularnewline
17 & 0.000957592689297852 & 0.00191518537859570 & 0.999042407310702 \tabularnewline
18 & 0.000163574425746034 & 0.000327148851492067 & 0.999836425574254 \tabularnewline
19 & 9.95659565424565e-05 & 0.000199131913084913 & 0.999900434043458 \tabularnewline
20 & 7.77568608440021e-05 & 0.000155513721688004 & 0.999922243139156 \tabularnewline
21 & 0.000324704862759156 & 0.000649409725518312 & 0.99967529513724 \tabularnewline
22 & 8.30708980192928e-05 & 0.000166141796038586 & 0.99991692910198 \tabularnewline
23 & 3.24381928596528e-05 & 6.48763857193056e-05 & 0.99996756180714 \tabularnewline
24 & 8.47280888509778e-06 & 1.69456177701956e-05 & 0.999991527191115 \tabularnewline
25 & 7.86357942518515e-06 & 1.57271588503703e-05 & 0.999992136420575 \tabularnewline
26 & 0.000252373442233009 & 0.000504746884466019 & 0.999747626557767 \tabularnewline
27 & 0.000228592562139244 & 0.000457185124278488 & 0.99977140743786 \tabularnewline
28 & 0.000107528852607018 & 0.000215057705214036 & 0.999892471147393 \tabularnewline
29 & 0.000298054398335791 & 0.000596108796671582 & 0.999701945601664 \tabularnewline
30 & 0.000313471732738198 & 0.000626943465476396 & 0.999686528267262 \tabularnewline
31 & 0.000429378070286089 & 0.000858756140572178 & 0.999570621929714 \tabularnewline
32 & 0.000428908587577764 & 0.000857817175155528 & 0.999571091412422 \tabularnewline
33 & 0.000478763994680649 & 0.000957527989361297 & 0.99952123600532 \tabularnewline
34 & 0.000554545530422375 & 0.00110909106084475 & 0.999445454469578 \tabularnewline
35 & 0.000572465663486971 & 0.00114493132697394 & 0.999427534336513 \tabularnewline
36 & 0.000358530468243616 & 0.000717060936487233 & 0.999641469531756 \tabularnewline
37 & 0.000650468877600800 & 0.00130093775520160 & 0.9993495311224 \tabularnewline
38 & 0.00309410034282985 & 0.0061882006856597 & 0.99690589965717 \tabularnewline
39 & 0.00178395813220162 & 0.00356791626440323 & 0.998216041867798 \tabularnewline
40 & 0.00112427310000700 & 0.00224854620001401 & 0.998875726899993 \tabularnewline
41 & 0.000700156831672304 & 0.00140031366334461 & 0.999299843168328 \tabularnewline
42 & 0.000808850568050072 & 0.00161770113610014 & 0.99919114943195 \tabularnewline
43 & 0.000282824626606991 & 0.000565649253213981 & 0.999717175373393 \tabularnewline
44 & 0.0136942420442648 & 0.0273884840885296 & 0.986305757955735 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57655&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]16[/C][C]0.00627730467783559[/C][C]0.0125546093556712[/C][C]0.993722695322164[/C][/ROW]
[ROW][C]17[/C][C]0.000957592689297852[/C][C]0.00191518537859570[/C][C]0.999042407310702[/C][/ROW]
[ROW][C]18[/C][C]0.000163574425746034[/C][C]0.000327148851492067[/C][C]0.999836425574254[/C][/ROW]
[ROW][C]19[/C][C]9.95659565424565e-05[/C][C]0.000199131913084913[/C][C]0.999900434043458[/C][/ROW]
[ROW][C]20[/C][C]7.77568608440021e-05[/C][C]0.000155513721688004[/C][C]0.999922243139156[/C][/ROW]
[ROW][C]21[/C][C]0.000324704862759156[/C][C]0.000649409725518312[/C][C]0.99967529513724[/C][/ROW]
[ROW][C]22[/C][C]8.30708980192928e-05[/C][C]0.000166141796038586[/C][C]0.99991692910198[/C][/ROW]
[ROW][C]23[/C][C]3.24381928596528e-05[/C][C]6.48763857193056e-05[/C][C]0.99996756180714[/C][/ROW]
[ROW][C]24[/C][C]8.47280888509778e-06[/C][C]1.69456177701956e-05[/C][C]0.999991527191115[/C][/ROW]
[ROW][C]25[/C][C]7.86357942518515e-06[/C][C]1.57271588503703e-05[/C][C]0.999992136420575[/C][/ROW]
[ROW][C]26[/C][C]0.000252373442233009[/C][C]0.000504746884466019[/C][C]0.999747626557767[/C][/ROW]
[ROW][C]27[/C][C]0.000228592562139244[/C][C]0.000457185124278488[/C][C]0.99977140743786[/C][/ROW]
[ROW][C]28[/C][C]0.000107528852607018[/C][C]0.000215057705214036[/C][C]0.999892471147393[/C][/ROW]
[ROW][C]29[/C][C]0.000298054398335791[/C][C]0.000596108796671582[/C][C]0.999701945601664[/C][/ROW]
[ROW][C]30[/C][C]0.000313471732738198[/C][C]0.000626943465476396[/C][C]0.999686528267262[/C][/ROW]
[ROW][C]31[/C][C]0.000429378070286089[/C][C]0.000858756140572178[/C][C]0.999570621929714[/C][/ROW]
[ROW][C]32[/C][C]0.000428908587577764[/C][C]0.000857817175155528[/C][C]0.999571091412422[/C][/ROW]
[ROW][C]33[/C][C]0.000478763994680649[/C][C]0.000957527989361297[/C][C]0.99952123600532[/C][/ROW]
[ROW][C]34[/C][C]0.000554545530422375[/C][C]0.00110909106084475[/C][C]0.999445454469578[/C][/ROW]
[ROW][C]35[/C][C]0.000572465663486971[/C][C]0.00114493132697394[/C][C]0.999427534336513[/C][/ROW]
[ROW][C]36[/C][C]0.000358530468243616[/C][C]0.000717060936487233[/C][C]0.999641469531756[/C][/ROW]
[ROW][C]37[/C][C]0.000650468877600800[/C][C]0.00130093775520160[/C][C]0.9993495311224[/C][/ROW]
[ROW][C]38[/C][C]0.00309410034282985[/C][C]0.0061882006856597[/C][C]0.99690589965717[/C][/ROW]
[ROW][C]39[/C][C]0.00178395813220162[/C][C]0.00356791626440323[/C][C]0.998216041867798[/C][/ROW]
[ROW][C]40[/C][C]0.00112427310000700[/C][C]0.00224854620001401[/C][C]0.998875726899993[/C][/ROW]
[ROW][C]41[/C][C]0.000700156831672304[/C][C]0.00140031366334461[/C][C]0.999299843168328[/C][/ROW]
[ROW][C]42[/C][C]0.000808850568050072[/C][C]0.00161770113610014[/C][C]0.99919114943195[/C][/ROW]
[ROW][C]43[/C][C]0.000282824626606991[/C][C]0.000565649253213981[/C][C]0.999717175373393[/C][/ROW]
[ROW][C]44[/C][C]0.0136942420442648[/C][C]0.0273884840885296[/C][C]0.986305757955735[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57655&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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
160.006277304677835590.01255460935567120.993722695322164
170.0009575926892978520.001915185378595700.999042407310702
180.0001635744257460340.0003271488514920670.999836425574254
199.95659565424565e-050.0001991319130849130.999900434043458
207.77568608440021e-050.0001555137216880040.999922243139156
210.0003247048627591560.0006494097255183120.99967529513724
228.30708980192928e-050.0001661417960385860.99991692910198
233.24381928596528e-056.48763857193056e-050.99996756180714
248.47280888509778e-061.69456177701956e-050.999991527191115
257.86357942518515e-061.57271588503703e-050.999992136420575
260.0002523734422330090.0005047468844660190.999747626557767
270.0002285925621392440.0004571851242784880.99977140743786
280.0001075288526070180.0002150577052140360.999892471147393
290.0002980543983357910.0005961087966715820.999701945601664
300.0003134717327381980.0006269434654763960.999686528267262
310.0004293780702860890.0008587561405721780.999570621929714
320.0004289085875777640.0008578171751555280.999571091412422
330.0004787639946806490.0009575279893612970.99952123600532
340.0005545455304223750.001109091060844750.999445454469578
350.0005724656634869710.001144931326973940.999427534336513
360.0003585304682436160.0007170609364872330.999641469531756
370.0006504688776008000.001300937755201600.9993495311224
380.003094100342829850.00618820068565970.99690589965717
390.001783958132201620.003567916264403230.998216041867798
400.001124273100007000.002248546200014010.998875726899993
410.0007001568316723040.001400313663344610.999299843168328
420.0008088505680500720.001617701136100140.99919114943195
430.0002828246266069910.0005656492532139810.999717175373393
440.01369424204426480.02738848408852960.986305757955735







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level270.93103448275862NOK
5% type I error level291NOK
10% type I error level291NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57655&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 level270.93103448275862NOK
5% type I error level291NOK
10% type I error level291NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}