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:22:38 -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/t1258619281ury9902malyxgs3.htm/, Retrieved Fri, 19 Apr 2024 09:16:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57648, Retrieved Fri, 19 Apr 2024 09:16:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact183
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 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Multivariate regr...] [2009-11-19 08:22:38] [bef26de542bed2eafc60fe4615b06e47] [Current]
-    D        [Multiple Regression] [] [2010-12-07 12:10:30] [f47feae0308dca73181bb669fbad1c56]
- R             [Multiple Regression] [] [2011-11-26 18:10:13] [74be16979710d4c4e7c6647856088456]
- R P             [Multiple Regression] [] [2011-11-27 16:41:22] [3931071255a6f7f4a767409781cc5f7d]
-    D        [Multiple Regression] [] [2010-12-21 20:04:50] [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 time9 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 & 9 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57648&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]9 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=57648&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Promet[t] = + 124.4 -11.4241379310345Dummy[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Promet[t] =  +  124.4 -11.4241379310345Dummy[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57648&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Promet[t] =  +  124.4 -11.4241379310345Dummy[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57648&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57648&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] = + 124.4 -11.4241379310345Dummy[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)124.43.01590641.24800
Dummy-11.42413793103454.338049-2.63350.0108170.005408

\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) & 124.4 & 3.015906 & 41.248 & 0 & 0 \tabularnewline
Dummy & -11.4241379310345 & 4.338049 & -2.6335 & 0.010817 & 0.005408 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57648&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]124.4[/C][C]3.015906[/C][C]41.248[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-11.4241379310345[/C][C]4.338049[/C][C]-2.6335[/C][C]0.010817[/C][C]0.005408[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57648&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57648&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)124.43.01590641.24800
Dummy-11.42413793103454.338049-2.63350.0108170.005408







Multiple Linear Regression - Regression Statistics
Multiple R0.32680517137013
R-squared0.106801620034260
Adjusted R-squared0.0914016479658856
F-TEST (value)6.93518271072625
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0108165836382075
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.7918561457057
Sum Squared Residuals16354.0531034483

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.32680517137013 \tabularnewline
R-squared & 0.106801620034260 \tabularnewline
Adjusted R-squared & 0.0914016479658856 \tabularnewline
F-TEST (value) & 6.93518271072625 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.0108165836382075 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16.7918561457057 \tabularnewline
Sum Squared Residuals & 16354.0531034483 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57648&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.32680517137013[/C][/ROW]
[ROW][C]R-squared[/C][C]0.106801620034260[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0914016479658856[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]6.93518271072625[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.0108165836382075[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16.7918561457057[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]16354.0531034483[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57648&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57648&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.32680517137013
R-squared0.106801620034260
Adjusted R-squared0.0914016479658856
F-TEST (value)6.93518271072625
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0108165836382075
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.7918561457057
Sum Squared Residuals16354.0531034483







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1121.6124.4-2.7999999999999
2118.8124.4-5.59999999999997
3114112.9758620689661.02413793103448
4111.5112.975862068966-1.47586206896552
597.2112.975862068966-15.7758620689655
6102.5112.975862068966-10.4758620689655
7113.4112.9758620689660.42413793103449
8109.8112.975862068966-3.17586206896552
9104.9112.975862068966-8.0758620689655
10126.1112.97586206896613.1241379310345
1180112.975862068966-32.9758620689655
1296.8112.975862068966-16.1758620689655
13117.2112.9758620689664.22413793103449
14112.3112.975862068966-0.675862068965519
15117.3112.9758620689664.32413793103448
16111.1124.4-13.3
17102.2124.4-22.2
18104.3124.4-20.1
19122.9124.4-1.5
20107.6124.4-16.8
21121.3124.4-3.10000000000001
22131.5124.47.1
2389124.4-35.4
24104.4124.4-20
25128.9124.44.5
26135.9124.411.5
27133.3124.48.9
28121.3124.4-3.10000000000001
29120.5124.4-3.90000000000001
30120.4124.4-4
31137.9124.413.5
32126.1124.41.69999999999999
33133.2124.48.79999999999998
34151.1124.426.7
35105124.4-19.4
36119124.4-5.40000000000001
37140.4124.416
38156.6124.432.2
39137.1124.412.7
40122.7124.4-1.70000000000000
41125.8124.41.39999999999999
42139.3124.414.9
43134.9124.410.5
44149.2112.97586206896636.2241379310345
45132.3124.47.9
46149112.97586206896636.0241379310345
47117.2112.9758620689664.22413793103449
48119.6112.9758620689666.62413793103448
49152112.97586206896639.0241379310345
50149.4112.97586206896636.4241379310345
51127.3112.97586206896614.3241379310345
52114.1112.9758620689661.12413793103448
53102.1112.975862068966-10.8758620689655
54107.7112.975862068966-5.27586206896551
55104.4112.975862068966-8.5758620689655
56102.1112.975862068966-10.8758620689655
5796112.975862068966-16.9758620689655
58109.3112.975862068966-3.67586206896552
5990112.975862068966-22.9758620689655
6083.9112.975862068966-29.0758620689655

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 121.6 & 124.4 & -2.7999999999999 \tabularnewline
2 & 118.8 & 124.4 & -5.59999999999997 \tabularnewline
3 & 114 & 112.975862068966 & 1.02413793103448 \tabularnewline
4 & 111.5 & 112.975862068966 & -1.47586206896552 \tabularnewline
5 & 97.2 & 112.975862068966 & -15.7758620689655 \tabularnewline
6 & 102.5 & 112.975862068966 & -10.4758620689655 \tabularnewline
7 & 113.4 & 112.975862068966 & 0.42413793103449 \tabularnewline
8 & 109.8 & 112.975862068966 & -3.17586206896552 \tabularnewline
9 & 104.9 & 112.975862068966 & -8.0758620689655 \tabularnewline
10 & 126.1 & 112.975862068966 & 13.1241379310345 \tabularnewline
11 & 80 & 112.975862068966 & -32.9758620689655 \tabularnewline
12 & 96.8 & 112.975862068966 & -16.1758620689655 \tabularnewline
13 & 117.2 & 112.975862068966 & 4.22413793103449 \tabularnewline
14 & 112.3 & 112.975862068966 & -0.675862068965519 \tabularnewline
15 & 117.3 & 112.975862068966 & 4.32413793103448 \tabularnewline
16 & 111.1 & 124.4 & -13.3 \tabularnewline
17 & 102.2 & 124.4 & -22.2 \tabularnewline
18 & 104.3 & 124.4 & -20.1 \tabularnewline
19 & 122.9 & 124.4 & -1.5 \tabularnewline
20 & 107.6 & 124.4 & -16.8 \tabularnewline
21 & 121.3 & 124.4 & -3.10000000000001 \tabularnewline
22 & 131.5 & 124.4 & 7.1 \tabularnewline
23 & 89 & 124.4 & -35.4 \tabularnewline
24 & 104.4 & 124.4 & -20 \tabularnewline
25 & 128.9 & 124.4 & 4.5 \tabularnewline
26 & 135.9 & 124.4 & 11.5 \tabularnewline
27 & 133.3 & 124.4 & 8.9 \tabularnewline
28 & 121.3 & 124.4 & -3.10000000000001 \tabularnewline
29 & 120.5 & 124.4 & -3.90000000000001 \tabularnewline
30 & 120.4 & 124.4 & -4 \tabularnewline
31 & 137.9 & 124.4 & 13.5 \tabularnewline
32 & 126.1 & 124.4 & 1.69999999999999 \tabularnewline
33 & 133.2 & 124.4 & 8.79999999999998 \tabularnewline
34 & 151.1 & 124.4 & 26.7 \tabularnewline
35 & 105 & 124.4 & -19.4 \tabularnewline
36 & 119 & 124.4 & -5.40000000000001 \tabularnewline
37 & 140.4 & 124.4 & 16 \tabularnewline
38 & 156.6 & 124.4 & 32.2 \tabularnewline
39 & 137.1 & 124.4 & 12.7 \tabularnewline
40 & 122.7 & 124.4 & -1.70000000000000 \tabularnewline
41 & 125.8 & 124.4 & 1.39999999999999 \tabularnewline
42 & 139.3 & 124.4 & 14.9 \tabularnewline
43 & 134.9 & 124.4 & 10.5 \tabularnewline
44 & 149.2 & 112.975862068966 & 36.2241379310345 \tabularnewline
45 & 132.3 & 124.4 & 7.9 \tabularnewline
46 & 149 & 112.975862068966 & 36.0241379310345 \tabularnewline
47 & 117.2 & 112.975862068966 & 4.22413793103449 \tabularnewline
48 & 119.6 & 112.975862068966 & 6.62413793103448 \tabularnewline
49 & 152 & 112.975862068966 & 39.0241379310345 \tabularnewline
50 & 149.4 & 112.975862068966 & 36.4241379310345 \tabularnewline
51 & 127.3 & 112.975862068966 & 14.3241379310345 \tabularnewline
52 & 114.1 & 112.975862068966 & 1.12413793103448 \tabularnewline
53 & 102.1 & 112.975862068966 & -10.8758620689655 \tabularnewline
54 & 107.7 & 112.975862068966 & -5.27586206896551 \tabularnewline
55 & 104.4 & 112.975862068966 & -8.5758620689655 \tabularnewline
56 & 102.1 & 112.975862068966 & -10.8758620689655 \tabularnewline
57 & 96 & 112.975862068966 & -16.9758620689655 \tabularnewline
58 & 109.3 & 112.975862068966 & -3.67586206896552 \tabularnewline
59 & 90 & 112.975862068966 & -22.9758620689655 \tabularnewline
60 & 83.9 & 112.975862068966 & -29.0758620689655 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57648&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]124.4[/C][C]-2.7999999999999[/C][/ROW]
[ROW][C]2[/C][C]118.8[/C][C]124.4[/C][C]-5.59999999999997[/C][/ROW]
[ROW][C]3[/C][C]114[/C][C]112.975862068966[/C][C]1.02413793103448[/C][/ROW]
[ROW][C]4[/C][C]111.5[/C][C]112.975862068966[/C][C]-1.47586206896552[/C][/ROW]
[ROW][C]5[/C][C]97.2[/C][C]112.975862068966[/C][C]-15.7758620689655[/C][/ROW]
[ROW][C]6[/C][C]102.5[/C][C]112.975862068966[/C][C]-10.4758620689655[/C][/ROW]
[ROW][C]7[/C][C]113.4[/C][C]112.975862068966[/C][C]0.42413793103449[/C][/ROW]
[ROW][C]8[/C][C]109.8[/C][C]112.975862068966[/C][C]-3.17586206896552[/C][/ROW]
[ROW][C]9[/C][C]104.9[/C][C]112.975862068966[/C][C]-8.0758620689655[/C][/ROW]
[ROW][C]10[/C][C]126.1[/C][C]112.975862068966[/C][C]13.1241379310345[/C][/ROW]
[ROW][C]11[/C][C]80[/C][C]112.975862068966[/C][C]-32.9758620689655[/C][/ROW]
[ROW][C]12[/C][C]96.8[/C][C]112.975862068966[/C][C]-16.1758620689655[/C][/ROW]
[ROW][C]13[/C][C]117.2[/C][C]112.975862068966[/C][C]4.22413793103449[/C][/ROW]
[ROW][C]14[/C][C]112.3[/C][C]112.975862068966[/C][C]-0.675862068965519[/C][/ROW]
[ROW][C]15[/C][C]117.3[/C][C]112.975862068966[/C][C]4.32413793103448[/C][/ROW]
[ROW][C]16[/C][C]111.1[/C][C]124.4[/C][C]-13.3[/C][/ROW]
[ROW][C]17[/C][C]102.2[/C][C]124.4[/C][C]-22.2[/C][/ROW]
[ROW][C]18[/C][C]104.3[/C][C]124.4[/C][C]-20.1[/C][/ROW]
[ROW][C]19[/C][C]122.9[/C][C]124.4[/C][C]-1.5[/C][/ROW]
[ROW][C]20[/C][C]107.6[/C][C]124.4[/C][C]-16.8[/C][/ROW]
[ROW][C]21[/C][C]121.3[/C][C]124.4[/C][C]-3.10000000000001[/C][/ROW]
[ROW][C]22[/C][C]131.5[/C][C]124.4[/C][C]7.1[/C][/ROW]
[ROW][C]23[/C][C]89[/C][C]124.4[/C][C]-35.4[/C][/ROW]
[ROW][C]24[/C][C]104.4[/C][C]124.4[/C][C]-20[/C][/ROW]
[ROW][C]25[/C][C]128.9[/C][C]124.4[/C][C]4.5[/C][/ROW]
[ROW][C]26[/C][C]135.9[/C][C]124.4[/C][C]11.5[/C][/ROW]
[ROW][C]27[/C][C]133.3[/C][C]124.4[/C][C]8.9[/C][/ROW]
[ROW][C]28[/C][C]121.3[/C][C]124.4[/C][C]-3.10000000000001[/C][/ROW]
[ROW][C]29[/C][C]120.5[/C][C]124.4[/C][C]-3.90000000000001[/C][/ROW]
[ROW][C]30[/C][C]120.4[/C][C]124.4[/C][C]-4[/C][/ROW]
[ROW][C]31[/C][C]137.9[/C][C]124.4[/C][C]13.5[/C][/ROW]
[ROW][C]32[/C][C]126.1[/C][C]124.4[/C][C]1.69999999999999[/C][/ROW]
[ROW][C]33[/C][C]133.2[/C][C]124.4[/C][C]8.79999999999998[/C][/ROW]
[ROW][C]34[/C][C]151.1[/C][C]124.4[/C][C]26.7[/C][/ROW]
[ROW][C]35[/C][C]105[/C][C]124.4[/C][C]-19.4[/C][/ROW]
[ROW][C]36[/C][C]119[/C][C]124.4[/C][C]-5.40000000000001[/C][/ROW]
[ROW][C]37[/C][C]140.4[/C][C]124.4[/C][C]16[/C][/ROW]
[ROW][C]38[/C][C]156.6[/C][C]124.4[/C][C]32.2[/C][/ROW]
[ROW][C]39[/C][C]137.1[/C][C]124.4[/C][C]12.7[/C][/ROW]
[ROW][C]40[/C][C]122.7[/C][C]124.4[/C][C]-1.70000000000000[/C][/ROW]
[ROW][C]41[/C][C]125.8[/C][C]124.4[/C][C]1.39999999999999[/C][/ROW]
[ROW][C]42[/C][C]139.3[/C][C]124.4[/C][C]14.9[/C][/ROW]
[ROW][C]43[/C][C]134.9[/C][C]124.4[/C][C]10.5[/C][/ROW]
[ROW][C]44[/C][C]149.2[/C][C]112.975862068966[/C][C]36.2241379310345[/C][/ROW]
[ROW][C]45[/C][C]132.3[/C][C]124.4[/C][C]7.9[/C][/ROW]
[ROW][C]46[/C][C]149[/C][C]112.975862068966[/C][C]36.0241379310345[/C][/ROW]
[ROW][C]47[/C][C]117.2[/C][C]112.975862068966[/C][C]4.22413793103449[/C][/ROW]
[ROW][C]48[/C][C]119.6[/C][C]112.975862068966[/C][C]6.62413793103448[/C][/ROW]
[ROW][C]49[/C][C]152[/C][C]112.975862068966[/C][C]39.0241379310345[/C][/ROW]
[ROW][C]50[/C][C]149.4[/C][C]112.975862068966[/C][C]36.4241379310345[/C][/ROW]
[ROW][C]51[/C][C]127.3[/C][C]112.975862068966[/C][C]14.3241379310345[/C][/ROW]
[ROW][C]52[/C][C]114.1[/C][C]112.975862068966[/C][C]1.12413793103448[/C][/ROW]
[ROW][C]53[/C][C]102.1[/C][C]112.975862068966[/C][C]-10.8758620689655[/C][/ROW]
[ROW][C]54[/C][C]107.7[/C][C]112.975862068966[/C][C]-5.27586206896551[/C][/ROW]
[ROW][C]55[/C][C]104.4[/C][C]112.975862068966[/C][C]-8.5758620689655[/C][/ROW]
[ROW][C]56[/C][C]102.1[/C][C]112.975862068966[/C][C]-10.8758620689655[/C][/ROW]
[ROW][C]57[/C][C]96[/C][C]112.975862068966[/C][C]-16.9758620689655[/C][/ROW]
[ROW][C]58[/C][C]109.3[/C][C]112.975862068966[/C][C]-3.67586206896552[/C][/ROW]
[ROW][C]59[/C][C]90[/C][C]112.975862068966[/C][C]-22.9758620689655[/C][/ROW]
[ROW][C]60[/C][C]83.9[/C][C]112.975862068966[/C][C]-29.0758620689655[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57648&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57648&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.6124.4-2.7999999999999
2118.8124.4-5.59999999999997
3114112.9758620689661.02413793103448
4111.5112.975862068966-1.47586206896552
597.2112.975862068966-15.7758620689655
6102.5112.975862068966-10.4758620689655
7113.4112.9758620689660.42413793103449
8109.8112.975862068966-3.17586206896552
9104.9112.975862068966-8.0758620689655
10126.1112.97586206896613.1241379310345
1180112.975862068966-32.9758620689655
1296.8112.975862068966-16.1758620689655
13117.2112.9758620689664.22413793103449
14112.3112.975862068966-0.675862068965519
15117.3112.9758620689664.32413793103448
16111.1124.4-13.3
17102.2124.4-22.2
18104.3124.4-20.1
19122.9124.4-1.5
20107.6124.4-16.8
21121.3124.4-3.10000000000001
22131.5124.47.1
2389124.4-35.4
24104.4124.4-20
25128.9124.44.5
26135.9124.411.5
27133.3124.48.9
28121.3124.4-3.10000000000001
29120.5124.4-3.90000000000001
30120.4124.4-4
31137.9124.413.5
32126.1124.41.69999999999999
33133.2124.48.79999999999998
34151.1124.426.7
35105124.4-19.4
36119124.4-5.40000000000001
37140.4124.416
38156.6124.432.2
39137.1124.412.7
40122.7124.4-1.70000000000000
41125.8124.41.39999999999999
42139.3124.414.9
43134.9124.410.5
44149.2112.97586206896636.2241379310345
45132.3124.47.9
46149112.97586206896636.0241379310345
47117.2112.9758620689664.22413793103449
48119.6112.9758620689666.62413793103448
49152112.97586206896639.0241379310345
50149.4112.97586206896636.4241379310345
51127.3112.97586206896614.3241379310345
52114.1112.9758620689661.12413793103448
53102.1112.975862068966-10.8758620689655
54107.7112.975862068966-5.27586206896551
55104.4112.975862068966-8.5758620689655
56102.1112.975862068966-10.8758620689655
5796112.975862068966-16.9758620689655
58109.3112.975862068966-3.67586206896552
5990112.975862068966-22.9758620689655
6083.9112.975862068966-29.0758620689655







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.09399023504074770.1879804700814950.906009764959252
60.0392261376321970.0784522752643940.960773862367803
70.01963059450938010.03926118901876030.98036940549062
80.006674142884893430.01334828576978690.993325857115107
90.002312576815646770.004625153631293540.997687423184353
100.01162861471917970.02325722943835930.98837138528082
110.1209582041065330.2419164082130660.879041795893467
120.0959801253534690.1919602507069380.904019874646531
130.07571020563856470.1514204112771290.924289794361435
140.04836900345284770.09673800690569530.951630996547152
150.03523102750672620.07046205501345240.964768972493274
160.0243910176098260.0487820352196520.975608982390174
170.02525115682833390.05050231365666770.974748843171666
180.02033980350279470.04067960700558950.979660196497205
190.0151668490754960.0303336981509920.984833150924504
200.01083200074675890.02166400149351780.98916799925324
210.007253678103435770.01450735620687150.992746321896564
220.008268497962714450.01653699592542890.991731502037286
230.03819845375226670.07639690750453350.961801546247733
240.03807774942084060.07615549884168110.96192225057916
250.03676417107192590.07352834214385170.963235828928074
260.04671822380312970.09343644760625940.95328177619687
270.04554357353068090.09108714706136180.95445642646932
280.03214497765123320.06428995530246640.967855022348767
290.02239295764516140.04478591529032270.977607042354839
300.01547520368531880.03095040737063760.984524796314681
310.0171915358442470.0343830716884940.982808464155753
320.01170123392208970.02340246784417930.98829876607791
330.009252595106317920.01850519021263580.990747404893682
340.02321512340275260.04643024680550510.976784876597247
350.03221369104592260.06442738209184510.967786308954077
360.02499511423293340.04999022846586690.975004885767067
370.0235446766449290.0470893532898580.976455323355071
380.05915363498164250.1183072699632850.940846365018357
390.04646695716578120.09293391433156230.953533042834219
400.03222109814398740.06444219628797480.967778901856013
410.02155536339774880.04311072679549750.978444636602251
420.01631999438137720.03263998876275440.983680005618623
430.01066753013071350.02133506026142690.989332469869286
440.04801177258830370.09602354517660750.951988227411696
450.03129960573567530.06259921147135060.968700394264325
460.1057965865061380.2115931730122760.894203413493862
470.07169860038522370.1433972007704470.928301399614776
480.04825314544578160.09650629089156330.951746854554218
490.2396427224249960.4792854448499920.760357277575004
500.7769723663060140.4460552673879710.223027633693986
510.9124376220403650.1751247559192700.0875623779596351
520.9177282714104070.1645434571791850.0822717285895927
530.8523230283645140.2953539432709720.147676971635486
540.7965870329698060.4068259340603880.203412967030194
550.6903844064507470.6192311870985060.309615593549253

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0939902350407477 & 0.187980470081495 & 0.906009764959252 \tabularnewline
6 & 0.039226137632197 & 0.078452275264394 & 0.960773862367803 \tabularnewline
7 & 0.0196305945093801 & 0.0392611890187603 & 0.98036940549062 \tabularnewline
8 & 0.00667414288489343 & 0.0133482857697869 & 0.993325857115107 \tabularnewline
9 & 0.00231257681564677 & 0.00462515363129354 & 0.997687423184353 \tabularnewline
10 & 0.0116286147191797 & 0.0232572294383593 & 0.98837138528082 \tabularnewline
11 & 0.120958204106533 & 0.241916408213066 & 0.879041795893467 \tabularnewline
12 & 0.095980125353469 & 0.191960250706938 & 0.904019874646531 \tabularnewline
13 & 0.0757102056385647 & 0.151420411277129 & 0.924289794361435 \tabularnewline
14 & 0.0483690034528477 & 0.0967380069056953 & 0.951630996547152 \tabularnewline
15 & 0.0352310275067262 & 0.0704620550134524 & 0.964768972493274 \tabularnewline
16 & 0.024391017609826 & 0.048782035219652 & 0.975608982390174 \tabularnewline
17 & 0.0252511568283339 & 0.0505023136566677 & 0.974748843171666 \tabularnewline
18 & 0.0203398035027947 & 0.0406796070055895 & 0.979660196497205 \tabularnewline
19 & 0.015166849075496 & 0.030333698150992 & 0.984833150924504 \tabularnewline
20 & 0.0108320007467589 & 0.0216640014935178 & 0.98916799925324 \tabularnewline
21 & 0.00725367810343577 & 0.0145073562068715 & 0.992746321896564 \tabularnewline
22 & 0.00826849796271445 & 0.0165369959254289 & 0.991731502037286 \tabularnewline
23 & 0.0381984537522667 & 0.0763969075045335 & 0.961801546247733 \tabularnewline
24 & 0.0380777494208406 & 0.0761554988416811 & 0.96192225057916 \tabularnewline
25 & 0.0367641710719259 & 0.0735283421438517 & 0.963235828928074 \tabularnewline
26 & 0.0467182238031297 & 0.0934364476062594 & 0.95328177619687 \tabularnewline
27 & 0.0455435735306809 & 0.0910871470613618 & 0.95445642646932 \tabularnewline
28 & 0.0321449776512332 & 0.0642899553024664 & 0.967855022348767 \tabularnewline
29 & 0.0223929576451614 & 0.0447859152903227 & 0.977607042354839 \tabularnewline
30 & 0.0154752036853188 & 0.0309504073706376 & 0.984524796314681 \tabularnewline
31 & 0.017191535844247 & 0.034383071688494 & 0.982808464155753 \tabularnewline
32 & 0.0117012339220897 & 0.0234024678441793 & 0.98829876607791 \tabularnewline
33 & 0.00925259510631792 & 0.0185051902126358 & 0.990747404893682 \tabularnewline
34 & 0.0232151234027526 & 0.0464302468055051 & 0.976784876597247 \tabularnewline
35 & 0.0322136910459226 & 0.0644273820918451 & 0.967786308954077 \tabularnewline
36 & 0.0249951142329334 & 0.0499902284658669 & 0.975004885767067 \tabularnewline
37 & 0.023544676644929 & 0.047089353289858 & 0.976455323355071 \tabularnewline
38 & 0.0591536349816425 & 0.118307269963285 & 0.940846365018357 \tabularnewline
39 & 0.0464669571657812 & 0.0929339143315623 & 0.953533042834219 \tabularnewline
40 & 0.0322210981439874 & 0.0644421962879748 & 0.967778901856013 \tabularnewline
41 & 0.0215553633977488 & 0.0431107267954975 & 0.978444636602251 \tabularnewline
42 & 0.0163199943813772 & 0.0326399887627544 & 0.983680005618623 \tabularnewline
43 & 0.0106675301307135 & 0.0213350602614269 & 0.989332469869286 \tabularnewline
44 & 0.0480117725883037 & 0.0960235451766075 & 0.951988227411696 \tabularnewline
45 & 0.0312996057356753 & 0.0625992114713506 & 0.968700394264325 \tabularnewline
46 & 0.105796586506138 & 0.211593173012276 & 0.894203413493862 \tabularnewline
47 & 0.0716986003852237 & 0.143397200770447 & 0.928301399614776 \tabularnewline
48 & 0.0482531454457816 & 0.0965062908915633 & 0.951746854554218 \tabularnewline
49 & 0.239642722424996 & 0.479285444849992 & 0.760357277575004 \tabularnewline
50 & 0.776972366306014 & 0.446055267387971 & 0.223027633693986 \tabularnewline
51 & 0.912437622040365 & 0.175124755919270 & 0.0875623779596351 \tabularnewline
52 & 0.917728271410407 & 0.164543457179185 & 0.0822717285895927 \tabularnewline
53 & 0.852323028364514 & 0.295353943270972 & 0.147676971635486 \tabularnewline
54 & 0.796587032969806 & 0.406825934060388 & 0.203412967030194 \tabularnewline
55 & 0.690384406450747 & 0.619231187098506 & 0.309615593549253 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57648&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]5[/C][C]0.0939902350407477[/C][C]0.187980470081495[/C][C]0.906009764959252[/C][/ROW]
[ROW][C]6[/C][C]0.039226137632197[/C][C]0.078452275264394[/C][C]0.960773862367803[/C][/ROW]
[ROW][C]7[/C][C]0.0196305945093801[/C][C]0.0392611890187603[/C][C]0.98036940549062[/C][/ROW]
[ROW][C]8[/C][C]0.00667414288489343[/C][C]0.0133482857697869[/C][C]0.993325857115107[/C][/ROW]
[ROW][C]9[/C][C]0.00231257681564677[/C][C]0.00462515363129354[/C][C]0.997687423184353[/C][/ROW]
[ROW][C]10[/C][C]0.0116286147191797[/C][C]0.0232572294383593[/C][C]0.98837138528082[/C][/ROW]
[ROW][C]11[/C][C]0.120958204106533[/C][C]0.241916408213066[/C][C]0.879041795893467[/C][/ROW]
[ROW][C]12[/C][C]0.095980125353469[/C][C]0.191960250706938[/C][C]0.904019874646531[/C][/ROW]
[ROW][C]13[/C][C]0.0757102056385647[/C][C]0.151420411277129[/C][C]0.924289794361435[/C][/ROW]
[ROW][C]14[/C][C]0.0483690034528477[/C][C]0.0967380069056953[/C][C]0.951630996547152[/C][/ROW]
[ROW][C]15[/C][C]0.0352310275067262[/C][C]0.0704620550134524[/C][C]0.964768972493274[/C][/ROW]
[ROW][C]16[/C][C]0.024391017609826[/C][C]0.048782035219652[/C][C]0.975608982390174[/C][/ROW]
[ROW][C]17[/C][C]0.0252511568283339[/C][C]0.0505023136566677[/C][C]0.974748843171666[/C][/ROW]
[ROW][C]18[/C][C]0.0203398035027947[/C][C]0.0406796070055895[/C][C]0.979660196497205[/C][/ROW]
[ROW][C]19[/C][C]0.015166849075496[/C][C]0.030333698150992[/C][C]0.984833150924504[/C][/ROW]
[ROW][C]20[/C][C]0.0108320007467589[/C][C]0.0216640014935178[/C][C]0.98916799925324[/C][/ROW]
[ROW][C]21[/C][C]0.00725367810343577[/C][C]0.0145073562068715[/C][C]0.992746321896564[/C][/ROW]
[ROW][C]22[/C][C]0.00826849796271445[/C][C]0.0165369959254289[/C][C]0.991731502037286[/C][/ROW]
[ROW][C]23[/C][C]0.0381984537522667[/C][C]0.0763969075045335[/C][C]0.961801546247733[/C][/ROW]
[ROW][C]24[/C][C]0.0380777494208406[/C][C]0.0761554988416811[/C][C]0.96192225057916[/C][/ROW]
[ROW][C]25[/C][C]0.0367641710719259[/C][C]0.0735283421438517[/C][C]0.963235828928074[/C][/ROW]
[ROW][C]26[/C][C]0.0467182238031297[/C][C]0.0934364476062594[/C][C]0.95328177619687[/C][/ROW]
[ROW][C]27[/C][C]0.0455435735306809[/C][C]0.0910871470613618[/C][C]0.95445642646932[/C][/ROW]
[ROW][C]28[/C][C]0.0321449776512332[/C][C]0.0642899553024664[/C][C]0.967855022348767[/C][/ROW]
[ROW][C]29[/C][C]0.0223929576451614[/C][C]0.0447859152903227[/C][C]0.977607042354839[/C][/ROW]
[ROW][C]30[/C][C]0.0154752036853188[/C][C]0.0309504073706376[/C][C]0.984524796314681[/C][/ROW]
[ROW][C]31[/C][C]0.017191535844247[/C][C]0.034383071688494[/C][C]0.982808464155753[/C][/ROW]
[ROW][C]32[/C][C]0.0117012339220897[/C][C]0.0234024678441793[/C][C]0.98829876607791[/C][/ROW]
[ROW][C]33[/C][C]0.00925259510631792[/C][C]0.0185051902126358[/C][C]0.990747404893682[/C][/ROW]
[ROW][C]34[/C][C]0.0232151234027526[/C][C]0.0464302468055051[/C][C]0.976784876597247[/C][/ROW]
[ROW][C]35[/C][C]0.0322136910459226[/C][C]0.0644273820918451[/C][C]0.967786308954077[/C][/ROW]
[ROW][C]36[/C][C]0.0249951142329334[/C][C]0.0499902284658669[/C][C]0.975004885767067[/C][/ROW]
[ROW][C]37[/C][C]0.023544676644929[/C][C]0.047089353289858[/C][C]0.976455323355071[/C][/ROW]
[ROW][C]38[/C][C]0.0591536349816425[/C][C]0.118307269963285[/C][C]0.940846365018357[/C][/ROW]
[ROW][C]39[/C][C]0.0464669571657812[/C][C]0.0929339143315623[/C][C]0.953533042834219[/C][/ROW]
[ROW][C]40[/C][C]0.0322210981439874[/C][C]0.0644421962879748[/C][C]0.967778901856013[/C][/ROW]
[ROW][C]41[/C][C]0.0215553633977488[/C][C]0.0431107267954975[/C][C]0.978444636602251[/C][/ROW]
[ROW][C]42[/C][C]0.0163199943813772[/C][C]0.0326399887627544[/C][C]0.983680005618623[/C][/ROW]
[ROW][C]43[/C][C]0.0106675301307135[/C][C]0.0213350602614269[/C][C]0.989332469869286[/C][/ROW]
[ROW][C]44[/C][C]0.0480117725883037[/C][C]0.0960235451766075[/C][C]0.951988227411696[/C][/ROW]
[ROW][C]45[/C][C]0.0312996057356753[/C][C]0.0625992114713506[/C][C]0.968700394264325[/C][/ROW]
[ROW][C]46[/C][C]0.105796586506138[/C][C]0.211593173012276[/C][C]0.894203413493862[/C][/ROW]
[ROW][C]47[/C][C]0.0716986003852237[/C][C]0.143397200770447[/C][C]0.928301399614776[/C][/ROW]
[ROW][C]48[/C][C]0.0482531454457816[/C][C]0.0965062908915633[/C][C]0.951746854554218[/C][/ROW]
[ROW][C]49[/C][C]0.239642722424996[/C][C]0.479285444849992[/C][C]0.760357277575004[/C][/ROW]
[ROW][C]50[/C][C]0.776972366306014[/C][C]0.446055267387971[/C][C]0.223027633693986[/C][/ROW]
[ROW][C]51[/C][C]0.912437622040365[/C][C]0.175124755919270[/C][C]0.0875623779596351[/C][/ROW]
[ROW][C]52[/C][C]0.917728271410407[/C][C]0.164543457179185[/C][C]0.0822717285895927[/C][/ROW]
[ROW][C]53[/C][C]0.852323028364514[/C][C]0.295353943270972[/C][C]0.147676971635486[/C][/ROW]
[ROW][C]54[/C][C]0.796587032969806[/C][C]0.406825934060388[/C][C]0.203412967030194[/C][/ROW]
[ROW][C]55[/C][C]0.690384406450747[/C][C]0.619231187098506[/C][C]0.309615593549253[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57648&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57648&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
50.09399023504074770.1879804700814950.906009764959252
60.0392261376321970.0784522752643940.960773862367803
70.01963059450938010.03926118901876030.98036940549062
80.006674142884893430.01334828576978690.993325857115107
90.002312576815646770.004625153631293540.997687423184353
100.01162861471917970.02325722943835930.98837138528082
110.1209582041065330.2419164082130660.879041795893467
120.0959801253534690.1919602507069380.904019874646531
130.07571020563856470.1514204112771290.924289794361435
140.04836900345284770.09673800690569530.951630996547152
150.03523102750672620.07046205501345240.964768972493274
160.0243910176098260.0487820352196520.975608982390174
170.02525115682833390.05050231365666770.974748843171666
180.02033980350279470.04067960700558950.979660196497205
190.0151668490754960.0303336981509920.984833150924504
200.01083200074675890.02166400149351780.98916799925324
210.007253678103435770.01450735620687150.992746321896564
220.008268497962714450.01653699592542890.991731502037286
230.03819845375226670.07639690750453350.961801546247733
240.03807774942084060.07615549884168110.96192225057916
250.03676417107192590.07352834214385170.963235828928074
260.04671822380312970.09343644760625940.95328177619687
270.04554357353068090.09108714706136180.95445642646932
280.03214497765123320.06428995530246640.967855022348767
290.02239295764516140.04478591529032270.977607042354839
300.01547520368531880.03095040737063760.984524796314681
310.0171915358442470.0343830716884940.982808464155753
320.01170123392208970.02340246784417930.98829876607791
330.009252595106317920.01850519021263580.990747404893682
340.02321512340275260.04643024680550510.976784876597247
350.03221369104592260.06442738209184510.967786308954077
360.02499511423293340.04999022846586690.975004885767067
370.0235446766449290.0470893532898580.976455323355071
380.05915363498164250.1183072699632850.940846365018357
390.04646695716578120.09293391433156230.953533042834219
400.03222109814398740.06444219628797480.967778901856013
410.02155536339774880.04311072679549750.978444636602251
420.01631999438137720.03263998876275440.983680005618623
430.01066753013071350.02133506026142690.989332469869286
440.04801177258830370.09602354517660750.951988227411696
450.03129960573567530.06259921147135060.968700394264325
460.1057965865061380.2115931730122760.894203413493862
470.07169860038522370.1433972007704470.928301399614776
480.04825314544578160.09650629089156330.951746854554218
490.2396427224249960.4792854448499920.760357277575004
500.7769723663060140.4460552673879710.223027633693986
510.9124376220403650.1751247559192700.0875623779596351
520.9177282714104070.1645434571791850.0822717285895927
530.8523230283645140.2953539432709720.147676971635486
540.7965870329698060.4068259340603880.203412967030194
550.6903844064507470.6192311870985060.309615593549253







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0196078431372549NOK
5% type I error level210.411764705882353NOK
10% type I error level370.725490196078431NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57648&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.0196078431372549NOK
5% type I error level210.411764705882353NOK
10% type I error level370.725490196078431NOK



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