Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 27 Nov 2009 12:17:27 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/27/t12593496082sd6pryvvmhugqw.htm/, Retrieved Mon, 29 Apr 2024 06:31:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61162, Retrieved Mon, 29 Apr 2024 06:31:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
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] [WS 7.1] [2009-11-27 18:28:39] [4a2be4899cba879e4eea9daa25281df8]
-   PD        [Multiple Regression] [WS 7.2] [2009-11-27 19:17:27] [71c065898bd1c08eef04509b4bcee039] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.00	100.00
94.97	106.73
107.50	104.81
124.27	96.15
107.06	88.46
79.71	88.46
163.41	91.35
144.83	92.31
166.82	91.35
154.26	87.50
132.60	85.58
157.51	86.54
104.02	97.12
106.03	99.04
113.23	98.08
117.64	92.31
113.34	88.46
66.62	89.42
185.99	90.38
174.57	90.38
208.19	88.46
163.81	86.54
162.46	86.54
148.16	86.54
113.41	94.23
105.63	96.15
111.79	94.23
132.36	89.42
110.75	86.54
67.37	86.54
178.29	87.50
156.38	87.50
189.71	87.50
152.80	88.46
150.80	84.62
160.40	79.81
127.25	80.77
108.47	77.88
117.09	74.04
147.25	75.96
116.19	75.96
75.83	76.92
181.94	75.96
179.12	73.08
183.15	68.27
197.90	65.38
155.42	62.50
162.54	66.35
125.90	78.85
105.50	83.65
121.11	79.81
137.51	75.96
97.20	72.12
69.74	75.00
152.58	79.81
146.59	80.77
161.16	78.85
152.84	74.04
121.95	69.23
140.12	70.19




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 183.652974945091 -0.383983963036890X[t] -34.9039253829419M1[t] -43.9415014112019M2[t] -34.8759253829419M3[t] -18.8397134824402M4[t] -43.1400229154509M5[t] -79.8253983109354M6[t] + 21.4276619130444M7[t] + 9.20993699214136M8[t] + 29.9799198151845M9[t] + 11.5351919396662M10[t] -9.17372492090307M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  183.652974945091 -0.383983963036890X[t] -34.9039253829419M1[t] -43.9415014112019M2[t] -34.8759253829419M3[t] -18.8397134824402M4[t] -43.1400229154509M5[t] -79.8253983109354M6[t] +  21.4276619130444M7[t] +  9.20993699214136M8[t] +  29.9799198151845M9[t] +  11.5351919396662M10[t] -9.17372492090307M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61162&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  183.652974945091 -0.383983963036890X[t] -34.9039253829419M1[t] -43.9415014112019M2[t] -34.8759253829419M3[t] -18.8397134824402M4[t] -43.1400229154509M5[t] -79.8253983109354M6[t] +  21.4276619130444M7[t] +  9.20993699214136M8[t] +  29.9799198151845M9[t] +  11.5351919396662M10[t] -9.17372492090307M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61162&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 183.652974945091 -0.383983963036890X[t] -34.9039253829419M1[t] -43.9415014112019M2[t] -34.8759253829419M3[t] -18.8397134824402M4[t] -43.1400229154509M5[t] -79.8253983109354M6[t] + 21.4276619130444M7[t] + 9.20993699214136M8[t] + 29.9799198151845M9[t] + 11.5351919396662M10[t] -9.17372492090307M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)183.65297494509115.56819711.796700
X-0.3839839630368900.186769-2.05590.0453670.022683
M1-34.90392538294198.173825-4.27029.4e-054.7e-05
M2-43.94150141120198.316968-5.28343e-062e-06
M3-34.87592538294198.173825-4.26689.5e-054.8e-05
M4-18.83971348244027.987562-2.35860.0225520.011276
M5-43.14002291545097.887285-5.46962e-061e-06
M6-79.82539831093547.90807-10.094200
M721.42766191304447.9556612.69340.0097740.004887
M89.209936992141367.9497511.15850.2525050.126253
M929.97991981518457.8993193.79530.0004220.000211
M1011.53519193966627.8577881.4680.1487670.074383
M11-9.173724920903077.844008-1.16950.2480910.124046

\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) & 183.652974945091 & 15.568197 & 11.7967 & 0 & 0 \tabularnewline
X & -0.383983963036890 & 0.186769 & -2.0559 & 0.045367 & 0.022683 \tabularnewline
M1 & -34.9039253829419 & 8.173825 & -4.2702 & 9.4e-05 & 4.7e-05 \tabularnewline
M2 & -43.9415014112019 & 8.316968 & -5.2834 & 3e-06 & 2e-06 \tabularnewline
M3 & -34.8759253829419 & 8.173825 & -4.2668 & 9.5e-05 & 4.8e-05 \tabularnewline
M4 & -18.8397134824402 & 7.987562 & -2.3586 & 0.022552 & 0.011276 \tabularnewline
M5 & -43.1400229154509 & 7.887285 & -5.4696 & 2e-06 & 1e-06 \tabularnewline
M6 & -79.8253983109354 & 7.90807 & -10.0942 & 0 & 0 \tabularnewline
M7 & 21.4276619130444 & 7.955661 & 2.6934 & 0.009774 & 0.004887 \tabularnewline
M8 & 9.20993699214136 & 7.949751 & 1.1585 & 0.252505 & 0.126253 \tabularnewline
M9 & 29.9799198151845 & 7.899319 & 3.7953 & 0.000422 & 0.000211 \tabularnewline
M10 & 11.5351919396662 & 7.857788 & 1.468 & 0.148767 & 0.074383 \tabularnewline
M11 & -9.17372492090307 & 7.844008 & -1.1695 & 0.248091 & 0.124046 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61162&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]183.652974945091[/C][C]15.568197[/C][C]11.7967[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.383983963036890[/C][C]0.186769[/C][C]-2.0559[/C][C]0.045367[/C][C]0.022683[/C][/ROW]
[ROW][C]M1[/C][C]-34.9039253829419[/C][C]8.173825[/C][C]-4.2702[/C][C]9.4e-05[/C][C]4.7e-05[/C][/ROW]
[ROW][C]M2[/C][C]-43.9415014112019[/C][C]8.316968[/C][C]-5.2834[/C][C]3e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M3[/C][C]-34.8759253829419[/C][C]8.173825[/C][C]-4.2668[/C][C]9.5e-05[/C][C]4.8e-05[/C][/ROW]
[ROW][C]M4[/C][C]-18.8397134824402[/C][C]7.987562[/C][C]-2.3586[/C][C]0.022552[/C][C]0.011276[/C][/ROW]
[ROW][C]M5[/C][C]-43.1400229154509[/C][C]7.887285[/C][C]-5.4696[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M6[/C][C]-79.8253983109354[/C][C]7.90807[/C][C]-10.0942[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]21.4276619130444[/C][C]7.955661[/C][C]2.6934[/C][C]0.009774[/C][C]0.004887[/C][/ROW]
[ROW][C]M8[/C][C]9.20993699214136[/C][C]7.949751[/C][C]1.1585[/C][C]0.252505[/C][C]0.126253[/C][/ROW]
[ROW][C]M9[/C][C]29.9799198151845[/C][C]7.899319[/C][C]3.7953[/C][C]0.000422[/C][C]0.000211[/C][/ROW]
[ROW][C]M10[/C][C]11.5351919396662[/C][C]7.857788[/C][C]1.468[/C][C]0.148767[/C][C]0.074383[/C][/ROW]
[ROW][C]M11[/C][C]-9.17372492090307[/C][C]7.844008[/C][C]-1.1695[/C][C]0.248091[/C][C]0.124046[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61162&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61162&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)183.65297494509115.56819711.796700
X-0.3839839630368900.186769-2.05590.0453670.022683
M1-34.90392538294198.173825-4.27029.4e-054.7e-05
M2-43.94150141120198.316968-5.28343e-062e-06
M3-34.87592538294198.173825-4.26689.5e-054.8e-05
M4-18.83971348244027.987562-2.35860.0225520.011276
M5-43.14002291545097.887285-5.46962e-061e-06
M6-79.82539831093547.90807-10.094200
M721.42766191304447.9556612.69340.0097740.004887
M89.209936992141367.9497511.15850.2525050.126253
M929.97991981518457.8993193.79530.0004220.000211
M1011.53519193966627.8577881.4680.1487670.074383
M11-9.173724920903077.844008-1.16950.2480910.124046







Multiple Linear Regression - Regression Statistics
Multiple R0.945413171743223
R-squared0.893806065305581
Adjusted R-squared0.866692720277218
F-TEST (value)32.9655401932369
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.4023356200969
Sum Squared Residuals7229.44265517568

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.945413171743223 \tabularnewline
R-squared & 0.893806065305581 \tabularnewline
Adjusted R-squared & 0.866692720277218 \tabularnewline
F-TEST (value) & 32.9655401932369 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 12.4023356200969 \tabularnewline
Sum Squared Residuals & 7229.44265517568 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61162&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.945413171743223[/C][/ROW]
[ROW][C]R-squared[/C][C]0.893806065305581[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.866692720277218[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]32.9655401932369[/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[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]12.4023356200969[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7229.44265517568[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61162&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61162&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.945413171743223
R-squared0.893806065305581
Adjusted R-squared0.866692720277218
F-TEST (value)32.9655401932369
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.4023356200969
Sum Squared Residuals7229.44265517568







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1100110.350653258460-10.3506532584602
294.9798.728865158962-3.75886515896208
3107.5108.531690396253-1.03169039625281
4124.27127.893203416654-3.62320341665409
5107.06106.5457306593970.514269340602919
679.7169.86035526391249.84964473608757
7163.41170.003701834716-6.59370183471576
8144.83157.417352309297-12.5873523092973
9166.82178.555959736856-11.7359597368558
10154.26161.589570119030-7.3295701190295
11132.6141.617902467491-9.01790246749109
12157.51150.4230027838797.08699721612125
13104.02111.456527072006-7.4365270720065
14106.03101.6817018347164.34829816528426
15113.23111.1159024674912.11409753250891
16117.64129.367701834716-11.7277018347158
17113.34106.5457306593976.79426934060295
1866.6269.4917306593971-2.87173065939706
19185.99170.37616627886215.6138337211385
20174.57158.15844135795816.4115586420415
21208.19179.66567339003228.5243266099676
22163.81161.9581947235451.85180527645510
23162.46141.24927786297621.2107221370243
24148.16150.423002783879-2.26300278387875
25113.41112.5662407251830.843759274816883
26105.63102.7914154878922.83858451210764
27111.79112.594240725183-0.804240725183107
28132.36130.4774154878921.88258451210765
29110.75107.2829798684283.46702013157213
3067.3770.5976044729433-3.22760447294327
31178.29171.4820400924086.80795990759222
32156.38159.264315171505-2.88431517150469
33189.71180.0342979945489.67570200545222
34152.8161.220945514514-8.42094551451407
35150.8141.9865270720068.81347292799352
36160.4153.0072148551177.392785144883
37127.25117.7346648676609.51533513234035
38108.47109.806802492576-1.33680249257633
39117.09120.346876938898-3.25687693889792
40147.25135.64583963036911.6041603696311
41116.19111.3455301973584.84446980264183
4275.8374.29153019735821.53846980264179
43181.94175.9132150258546.0267849741465
44179.12164.80136391849714.3186360815034
45183.15187.418309603747-4.26830960374717
46197.9170.08329538140527.8167046185945
47155.42150.4802523343824.93974766561748
48162.54158.1756389975944.36436100240643
49125.9118.4719140766907.42808592330952
50105.5107.591215025853-2.09121502585348
51121.11118.1312894721752.97871052782493
52137.51135.6458396303691.86416036963108
5397.2112.820028615420-15.6200286154198
5469.7475.028779406389-5.28877940638904
55152.58174.434876768161-21.8548767681614
56146.59161.848527242743-15.2585272427430
57161.16183.355759274817-22.1957592748169
58152.84166.757994261506-13.9179942615060
59121.95147.896040263144-25.9460402631442
60140.12156.701140579532-16.5811405795319

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100 & 110.350653258460 & -10.3506532584602 \tabularnewline
2 & 94.97 & 98.728865158962 & -3.75886515896208 \tabularnewline
3 & 107.5 & 108.531690396253 & -1.03169039625281 \tabularnewline
4 & 124.27 & 127.893203416654 & -3.62320341665409 \tabularnewline
5 & 107.06 & 106.545730659397 & 0.514269340602919 \tabularnewline
6 & 79.71 & 69.8603552639124 & 9.84964473608757 \tabularnewline
7 & 163.41 & 170.003701834716 & -6.59370183471576 \tabularnewline
8 & 144.83 & 157.417352309297 & -12.5873523092973 \tabularnewline
9 & 166.82 & 178.555959736856 & -11.7359597368558 \tabularnewline
10 & 154.26 & 161.589570119030 & -7.3295701190295 \tabularnewline
11 & 132.6 & 141.617902467491 & -9.01790246749109 \tabularnewline
12 & 157.51 & 150.423002783879 & 7.08699721612125 \tabularnewline
13 & 104.02 & 111.456527072006 & -7.4365270720065 \tabularnewline
14 & 106.03 & 101.681701834716 & 4.34829816528426 \tabularnewline
15 & 113.23 & 111.115902467491 & 2.11409753250891 \tabularnewline
16 & 117.64 & 129.367701834716 & -11.7277018347158 \tabularnewline
17 & 113.34 & 106.545730659397 & 6.79426934060295 \tabularnewline
18 & 66.62 & 69.4917306593971 & -2.87173065939706 \tabularnewline
19 & 185.99 & 170.376166278862 & 15.6138337211385 \tabularnewline
20 & 174.57 & 158.158441357958 & 16.4115586420415 \tabularnewline
21 & 208.19 & 179.665673390032 & 28.5243266099676 \tabularnewline
22 & 163.81 & 161.958194723545 & 1.85180527645510 \tabularnewline
23 & 162.46 & 141.249277862976 & 21.2107221370243 \tabularnewline
24 & 148.16 & 150.423002783879 & -2.26300278387875 \tabularnewline
25 & 113.41 & 112.566240725183 & 0.843759274816883 \tabularnewline
26 & 105.63 & 102.791415487892 & 2.83858451210764 \tabularnewline
27 & 111.79 & 112.594240725183 & -0.804240725183107 \tabularnewline
28 & 132.36 & 130.477415487892 & 1.88258451210765 \tabularnewline
29 & 110.75 & 107.282979868428 & 3.46702013157213 \tabularnewline
30 & 67.37 & 70.5976044729433 & -3.22760447294327 \tabularnewline
31 & 178.29 & 171.482040092408 & 6.80795990759222 \tabularnewline
32 & 156.38 & 159.264315171505 & -2.88431517150469 \tabularnewline
33 & 189.71 & 180.034297994548 & 9.67570200545222 \tabularnewline
34 & 152.8 & 161.220945514514 & -8.42094551451407 \tabularnewline
35 & 150.8 & 141.986527072006 & 8.81347292799352 \tabularnewline
36 & 160.4 & 153.007214855117 & 7.392785144883 \tabularnewline
37 & 127.25 & 117.734664867660 & 9.51533513234035 \tabularnewline
38 & 108.47 & 109.806802492576 & -1.33680249257633 \tabularnewline
39 & 117.09 & 120.346876938898 & -3.25687693889792 \tabularnewline
40 & 147.25 & 135.645839630369 & 11.6041603696311 \tabularnewline
41 & 116.19 & 111.345530197358 & 4.84446980264183 \tabularnewline
42 & 75.83 & 74.2915301973582 & 1.53846980264179 \tabularnewline
43 & 181.94 & 175.913215025854 & 6.0267849741465 \tabularnewline
44 & 179.12 & 164.801363918497 & 14.3186360815034 \tabularnewline
45 & 183.15 & 187.418309603747 & -4.26830960374717 \tabularnewline
46 & 197.9 & 170.083295381405 & 27.8167046185945 \tabularnewline
47 & 155.42 & 150.480252334382 & 4.93974766561748 \tabularnewline
48 & 162.54 & 158.175638997594 & 4.36436100240643 \tabularnewline
49 & 125.9 & 118.471914076690 & 7.42808592330952 \tabularnewline
50 & 105.5 & 107.591215025853 & -2.09121502585348 \tabularnewline
51 & 121.11 & 118.131289472175 & 2.97871052782493 \tabularnewline
52 & 137.51 & 135.645839630369 & 1.86416036963108 \tabularnewline
53 & 97.2 & 112.820028615420 & -15.6200286154198 \tabularnewline
54 & 69.74 & 75.028779406389 & -5.28877940638904 \tabularnewline
55 & 152.58 & 174.434876768161 & -21.8548767681614 \tabularnewline
56 & 146.59 & 161.848527242743 & -15.2585272427430 \tabularnewline
57 & 161.16 & 183.355759274817 & -22.1957592748169 \tabularnewline
58 & 152.84 & 166.757994261506 & -13.9179942615060 \tabularnewline
59 & 121.95 & 147.896040263144 & -25.9460402631442 \tabularnewline
60 & 140.12 & 156.701140579532 & -16.5811405795319 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61162&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]100[/C][C]110.350653258460[/C][C]-10.3506532584602[/C][/ROW]
[ROW][C]2[/C][C]94.97[/C][C]98.728865158962[/C][C]-3.75886515896208[/C][/ROW]
[ROW][C]3[/C][C]107.5[/C][C]108.531690396253[/C][C]-1.03169039625281[/C][/ROW]
[ROW][C]4[/C][C]124.27[/C][C]127.893203416654[/C][C]-3.62320341665409[/C][/ROW]
[ROW][C]5[/C][C]107.06[/C][C]106.545730659397[/C][C]0.514269340602919[/C][/ROW]
[ROW][C]6[/C][C]79.71[/C][C]69.8603552639124[/C][C]9.84964473608757[/C][/ROW]
[ROW][C]7[/C][C]163.41[/C][C]170.003701834716[/C][C]-6.59370183471576[/C][/ROW]
[ROW][C]8[/C][C]144.83[/C][C]157.417352309297[/C][C]-12.5873523092973[/C][/ROW]
[ROW][C]9[/C][C]166.82[/C][C]178.555959736856[/C][C]-11.7359597368558[/C][/ROW]
[ROW][C]10[/C][C]154.26[/C][C]161.589570119030[/C][C]-7.3295701190295[/C][/ROW]
[ROW][C]11[/C][C]132.6[/C][C]141.617902467491[/C][C]-9.01790246749109[/C][/ROW]
[ROW][C]12[/C][C]157.51[/C][C]150.423002783879[/C][C]7.08699721612125[/C][/ROW]
[ROW][C]13[/C][C]104.02[/C][C]111.456527072006[/C][C]-7.4365270720065[/C][/ROW]
[ROW][C]14[/C][C]106.03[/C][C]101.681701834716[/C][C]4.34829816528426[/C][/ROW]
[ROW][C]15[/C][C]113.23[/C][C]111.115902467491[/C][C]2.11409753250891[/C][/ROW]
[ROW][C]16[/C][C]117.64[/C][C]129.367701834716[/C][C]-11.7277018347158[/C][/ROW]
[ROW][C]17[/C][C]113.34[/C][C]106.545730659397[/C][C]6.79426934060295[/C][/ROW]
[ROW][C]18[/C][C]66.62[/C][C]69.4917306593971[/C][C]-2.87173065939706[/C][/ROW]
[ROW][C]19[/C][C]185.99[/C][C]170.376166278862[/C][C]15.6138337211385[/C][/ROW]
[ROW][C]20[/C][C]174.57[/C][C]158.158441357958[/C][C]16.4115586420415[/C][/ROW]
[ROW][C]21[/C][C]208.19[/C][C]179.665673390032[/C][C]28.5243266099676[/C][/ROW]
[ROW][C]22[/C][C]163.81[/C][C]161.958194723545[/C][C]1.85180527645510[/C][/ROW]
[ROW][C]23[/C][C]162.46[/C][C]141.249277862976[/C][C]21.2107221370243[/C][/ROW]
[ROW][C]24[/C][C]148.16[/C][C]150.423002783879[/C][C]-2.26300278387875[/C][/ROW]
[ROW][C]25[/C][C]113.41[/C][C]112.566240725183[/C][C]0.843759274816883[/C][/ROW]
[ROW][C]26[/C][C]105.63[/C][C]102.791415487892[/C][C]2.83858451210764[/C][/ROW]
[ROW][C]27[/C][C]111.79[/C][C]112.594240725183[/C][C]-0.804240725183107[/C][/ROW]
[ROW][C]28[/C][C]132.36[/C][C]130.477415487892[/C][C]1.88258451210765[/C][/ROW]
[ROW][C]29[/C][C]110.75[/C][C]107.282979868428[/C][C]3.46702013157213[/C][/ROW]
[ROW][C]30[/C][C]67.37[/C][C]70.5976044729433[/C][C]-3.22760447294327[/C][/ROW]
[ROW][C]31[/C][C]178.29[/C][C]171.482040092408[/C][C]6.80795990759222[/C][/ROW]
[ROW][C]32[/C][C]156.38[/C][C]159.264315171505[/C][C]-2.88431517150469[/C][/ROW]
[ROW][C]33[/C][C]189.71[/C][C]180.034297994548[/C][C]9.67570200545222[/C][/ROW]
[ROW][C]34[/C][C]152.8[/C][C]161.220945514514[/C][C]-8.42094551451407[/C][/ROW]
[ROW][C]35[/C][C]150.8[/C][C]141.986527072006[/C][C]8.81347292799352[/C][/ROW]
[ROW][C]36[/C][C]160.4[/C][C]153.007214855117[/C][C]7.392785144883[/C][/ROW]
[ROW][C]37[/C][C]127.25[/C][C]117.734664867660[/C][C]9.51533513234035[/C][/ROW]
[ROW][C]38[/C][C]108.47[/C][C]109.806802492576[/C][C]-1.33680249257633[/C][/ROW]
[ROW][C]39[/C][C]117.09[/C][C]120.346876938898[/C][C]-3.25687693889792[/C][/ROW]
[ROW][C]40[/C][C]147.25[/C][C]135.645839630369[/C][C]11.6041603696311[/C][/ROW]
[ROW][C]41[/C][C]116.19[/C][C]111.345530197358[/C][C]4.84446980264183[/C][/ROW]
[ROW][C]42[/C][C]75.83[/C][C]74.2915301973582[/C][C]1.53846980264179[/C][/ROW]
[ROW][C]43[/C][C]181.94[/C][C]175.913215025854[/C][C]6.0267849741465[/C][/ROW]
[ROW][C]44[/C][C]179.12[/C][C]164.801363918497[/C][C]14.3186360815034[/C][/ROW]
[ROW][C]45[/C][C]183.15[/C][C]187.418309603747[/C][C]-4.26830960374717[/C][/ROW]
[ROW][C]46[/C][C]197.9[/C][C]170.083295381405[/C][C]27.8167046185945[/C][/ROW]
[ROW][C]47[/C][C]155.42[/C][C]150.480252334382[/C][C]4.93974766561748[/C][/ROW]
[ROW][C]48[/C][C]162.54[/C][C]158.175638997594[/C][C]4.36436100240643[/C][/ROW]
[ROW][C]49[/C][C]125.9[/C][C]118.471914076690[/C][C]7.42808592330952[/C][/ROW]
[ROW][C]50[/C][C]105.5[/C][C]107.591215025853[/C][C]-2.09121502585348[/C][/ROW]
[ROW][C]51[/C][C]121.11[/C][C]118.131289472175[/C][C]2.97871052782493[/C][/ROW]
[ROW][C]52[/C][C]137.51[/C][C]135.645839630369[/C][C]1.86416036963108[/C][/ROW]
[ROW][C]53[/C][C]97.2[/C][C]112.820028615420[/C][C]-15.6200286154198[/C][/ROW]
[ROW][C]54[/C][C]69.74[/C][C]75.028779406389[/C][C]-5.28877940638904[/C][/ROW]
[ROW][C]55[/C][C]152.58[/C][C]174.434876768161[/C][C]-21.8548767681614[/C][/ROW]
[ROW][C]56[/C][C]146.59[/C][C]161.848527242743[/C][C]-15.2585272427430[/C][/ROW]
[ROW][C]57[/C][C]161.16[/C][C]183.355759274817[/C][C]-22.1957592748169[/C][/ROW]
[ROW][C]58[/C][C]152.84[/C][C]166.757994261506[/C][C]-13.9179942615060[/C][/ROW]
[ROW][C]59[/C][C]121.95[/C][C]147.896040263144[/C][C]-25.9460402631442[/C][/ROW]
[ROW][C]60[/C][C]140.12[/C][C]156.701140579532[/C][C]-16.5811405795319[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61162&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61162&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
1100110.350653258460-10.3506532584602
294.9798.728865158962-3.75886515896208
3107.5108.531690396253-1.03169039625281
4124.27127.893203416654-3.62320341665409
5107.06106.5457306593970.514269340602919
679.7169.86035526391249.84964473608757
7163.41170.003701834716-6.59370183471576
8144.83157.417352309297-12.5873523092973
9166.82178.555959736856-11.7359597368558
10154.26161.589570119030-7.3295701190295
11132.6141.617902467491-9.01790246749109
12157.51150.4230027838797.08699721612125
13104.02111.456527072006-7.4365270720065
14106.03101.6817018347164.34829816528426
15113.23111.1159024674912.11409753250891
16117.64129.367701834716-11.7277018347158
17113.34106.5457306593976.79426934060295
1866.6269.4917306593971-2.87173065939706
19185.99170.37616627886215.6138337211385
20174.57158.15844135795816.4115586420415
21208.19179.66567339003228.5243266099676
22163.81161.9581947235451.85180527645510
23162.46141.24927786297621.2107221370243
24148.16150.423002783879-2.26300278387875
25113.41112.5662407251830.843759274816883
26105.63102.7914154878922.83858451210764
27111.79112.594240725183-0.804240725183107
28132.36130.4774154878921.88258451210765
29110.75107.2829798684283.46702013157213
3067.3770.5976044729433-3.22760447294327
31178.29171.4820400924086.80795990759222
32156.38159.264315171505-2.88431517150469
33189.71180.0342979945489.67570200545222
34152.8161.220945514514-8.42094551451407
35150.8141.9865270720068.81347292799352
36160.4153.0072148551177.392785144883
37127.25117.7346648676609.51533513234035
38108.47109.806802492576-1.33680249257633
39117.09120.346876938898-3.25687693889792
40147.25135.64583963036911.6041603696311
41116.19111.3455301973584.84446980264183
4275.8374.29153019735821.53846980264179
43181.94175.9132150258546.0267849741465
44179.12164.80136391849714.3186360815034
45183.15187.418309603747-4.26830960374717
46197.9170.08329538140527.8167046185945
47155.42150.4802523343824.93974766561748
48162.54158.1756389975944.36436100240643
49125.9118.4719140766907.42808592330952
50105.5107.591215025853-2.09121502585348
51121.11118.1312894721752.97871052782493
52137.51135.6458396303691.86416036963108
5397.2112.820028615420-15.6200286154198
5469.7475.028779406389-5.28877940638904
55152.58174.434876768161-21.8548767681614
56146.59161.848527242743-15.2585272427430
57161.16183.355759274817-22.1957592748169
58152.84166.757994261506-13.9179942615060
59121.95147.896040263144-25.9460402631442
60140.12156.701140579532-16.5811405795319







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04620491571281310.09240983142562630.953795084287187
170.02053001399761600.04106002799523210.979469986002384
180.02446555830610090.04893111661220180.975534441693899
190.08542950010727180.1708590002145440.914570499892728
200.2140753847126020.4281507694252040.785924615287398
210.553263979115640.893472041768720.44673602088436
220.4505477613361540.9010955226723090.549452238663846
230.6395886250681070.7208227498637860.360411374931893
240.5519563644593960.8960872710812070.448043635540604
250.4545376914400050.9090753828800110.545462308559995
260.3733692300833080.7467384601666160.626630769916692
270.3034683274465820.6069366548931640.696531672553418
280.2264782210733790.4529564421467580.773521778926621
290.1662094878017530.3324189756035060.833790512198247
300.1216794661417740.2433589322835470.878320533858226
310.09236862187230350.1847372437446070.907631378127697
320.06274747294036940.1254949458807390.93725252705963
330.06834089256453530.1366817851290710.931659107435465
340.04425392372583650.0885078474516730.955746076274164
350.08438384287300880.1687676857460180.915616157126991
360.230365774548690.460731549097380.76963422545131
370.1660854369979130.3321708739958270.833914563002087
380.1787055516806120.3574111033612230.821294448319388
390.2364103689844280.4728207379688560.763589631015572
400.1937338458203960.3874676916407930.806266154179604
410.5199658091108130.9600683817783740.480034190889187
420.5020955926325180.9958088147349640.497904407367482
430.4972301561020680.9944603122041350.502769843897932
440.346143274254650.69228654850930.65385672574535

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0462049157128131 & 0.0924098314256263 & 0.953795084287187 \tabularnewline
17 & 0.0205300139976160 & 0.0410600279952321 & 0.979469986002384 \tabularnewline
18 & 0.0244655583061009 & 0.0489311166122018 & 0.975534441693899 \tabularnewline
19 & 0.0854295001072718 & 0.170859000214544 & 0.914570499892728 \tabularnewline
20 & 0.214075384712602 & 0.428150769425204 & 0.785924615287398 \tabularnewline
21 & 0.55326397911564 & 0.89347204176872 & 0.44673602088436 \tabularnewline
22 & 0.450547761336154 & 0.901095522672309 & 0.549452238663846 \tabularnewline
23 & 0.639588625068107 & 0.720822749863786 & 0.360411374931893 \tabularnewline
24 & 0.551956364459396 & 0.896087271081207 & 0.448043635540604 \tabularnewline
25 & 0.454537691440005 & 0.909075382880011 & 0.545462308559995 \tabularnewline
26 & 0.373369230083308 & 0.746738460166616 & 0.626630769916692 \tabularnewline
27 & 0.303468327446582 & 0.606936654893164 & 0.696531672553418 \tabularnewline
28 & 0.226478221073379 & 0.452956442146758 & 0.773521778926621 \tabularnewline
29 & 0.166209487801753 & 0.332418975603506 & 0.833790512198247 \tabularnewline
30 & 0.121679466141774 & 0.243358932283547 & 0.878320533858226 \tabularnewline
31 & 0.0923686218723035 & 0.184737243744607 & 0.907631378127697 \tabularnewline
32 & 0.0627474729403694 & 0.125494945880739 & 0.93725252705963 \tabularnewline
33 & 0.0683408925645353 & 0.136681785129071 & 0.931659107435465 \tabularnewline
34 & 0.0442539237258365 & 0.088507847451673 & 0.955746076274164 \tabularnewline
35 & 0.0843838428730088 & 0.168767685746018 & 0.915616157126991 \tabularnewline
36 & 0.23036577454869 & 0.46073154909738 & 0.76963422545131 \tabularnewline
37 & 0.166085436997913 & 0.332170873995827 & 0.833914563002087 \tabularnewline
38 & 0.178705551680612 & 0.357411103361223 & 0.821294448319388 \tabularnewline
39 & 0.236410368984428 & 0.472820737968856 & 0.763589631015572 \tabularnewline
40 & 0.193733845820396 & 0.387467691640793 & 0.806266154179604 \tabularnewline
41 & 0.519965809110813 & 0.960068381778374 & 0.480034190889187 \tabularnewline
42 & 0.502095592632518 & 0.995808814734964 & 0.497904407367482 \tabularnewline
43 & 0.497230156102068 & 0.994460312204135 & 0.502769843897932 \tabularnewline
44 & 0.34614327425465 & 0.6922865485093 & 0.65385672574535 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61162&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.0462049157128131[/C][C]0.0924098314256263[/C][C]0.953795084287187[/C][/ROW]
[ROW][C]17[/C][C]0.0205300139976160[/C][C]0.0410600279952321[/C][C]0.979469986002384[/C][/ROW]
[ROW][C]18[/C][C]0.0244655583061009[/C][C]0.0489311166122018[/C][C]0.975534441693899[/C][/ROW]
[ROW][C]19[/C][C]0.0854295001072718[/C][C]0.170859000214544[/C][C]0.914570499892728[/C][/ROW]
[ROW][C]20[/C][C]0.214075384712602[/C][C]0.428150769425204[/C][C]0.785924615287398[/C][/ROW]
[ROW][C]21[/C][C]0.55326397911564[/C][C]0.89347204176872[/C][C]0.44673602088436[/C][/ROW]
[ROW][C]22[/C][C]0.450547761336154[/C][C]0.901095522672309[/C][C]0.549452238663846[/C][/ROW]
[ROW][C]23[/C][C]0.639588625068107[/C][C]0.720822749863786[/C][C]0.360411374931893[/C][/ROW]
[ROW][C]24[/C][C]0.551956364459396[/C][C]0.896087271081207[/C][C]0.448043635540604[/C][/ROW]
[ROW][C]25[/C][C]0.454537691440005[/C][C]0.909075382880011[/C][C]0.545462308559995[/C][/ROW]
[ROW][C]26[/C][C]0.373369230083308[/C][C]0.746738460166616[/C][C]0.626630769916692[/C][/ROW]
[ROW][C]27[/C][C]0.303468327446582[/C][C]0.606936654893164[/C][C]0.696531672553418[/C][/ROW]
[ROW][C]28[/C][C]0.226478221073379[/C][C]0.452956442146758[/C][C]0.773521778926621[/C][/ROW]
[ROW][C]29[/C][C]0.166209487801753[/C][C]0.332418975603506[/C][C]0.833790512198247[/C][/ROW]
[ROW][C]30[/C][C]0.121679466141774[/C][C]0.243358932283547[/C][C]0.878320533858226[/C][/ROW]
[ROW][C]31[/C][C]0.0923686218723035[/C][C]0.184737243744607[/C][C]0.907631378127697[/C][/ROW]
[ROW][C]32[/C][C]0.0627474729403694[/C][C]0.125494945880739[/C][C]0.93725252705963[/C][/ROW]
[ROW][C]33[/C][C]0.0683408925645353[/C][C]0.136681785129071[/C][C]0.931659107435465[/C][/ROW]
[ROW][C]34[/C][C]0.0442539237258365[/C][C]0.088507847451673[/C][C]0.955746076274164[/C][/ROW]
[ROW][C]35[/C][C]0.0843838428730088[/C][C]0.168767685746018[/C][C]0.915616157126991[/C][/ROW]
[ROW][C]36[/C][C]0.23036577454869[/C][C]0.46073154909738[/C][C]0.76963422545131[/C][/ROW]
[ROW][C]37[/C][C]0.166085436997913[/C][C]0.332170873995827[/C][C]0.833914563002087[/C][/ROW]
[ROW][C]38[/C][C]0.178705551680612[/C][C]0.357411103361223[/C][C]0.821294448319388[/C][/ROW]
[ROW][C]39[/C][C]0.236410368984428[/C][C]0.472820737968856[/C][C]0.763589631015572[/C][/ROW]
[ROW][C]40[/C][C]0.193733845820396[/C][C]0.387467691640793[/C][C]0.806266154179604[/C][/ROW]
[ROW][C]41[/C][C]0.519965809110813[/C][C]0.960068381778374[/C][C]0.480034190889187[/C][/ROW]
[ROW][C]42[/C][C]0.502095592632518[/C][C]0.995808814734964[/C][C]0.497904407367482[/C][/ROW]
[ROW][C]43[/C][C]0.497230156102068[/C][C]0.994460312204135[/C][C]0.502769843897932[/C][/ROW]
[ROW][C]44[/C][C]0.34614327425465[/C][C]0.6922865485093[/C][C]0.65385672574535[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61162&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61162&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.04620491571281310.09240983142562630.953795084287187
170.02053001399761600.04106002799523210.979469986002384
180.02446555830610090.04893111661220180.975534441693899
190.08542950010727180.1708590002145440.914570499892728
200.2140753847126020.4281507694252040.785924615287398
210.553263979115640.893472041768720.44673602088436
220.4505477613361540.9010955226723090.549452238663846
230.6395886250681070.7208227498637860.360411374931893
240.5519563644593960.8960872710812070.448043635540604
250.4545376914400050.9090753828800110.545462308559995
260.3733692300833080.7467384601666160.626630769916692
270.3034683274465820.6069366548931640.696531672553418
280.2264782210733790.4529564421467580.773521778926621
290.1662094878017530.3324189756035060.833790512198247
300.1216794661417740.2433589322835470.878320533858226
310.09236862187230350.1847372437446070.907631378127697
320.06274747294036940.1254949458807390.93725252705963
330.06834089256453530.1366817851290710.931659107435465
340.04425392372583650.0885078474516730.955746076274164
350.08438384287300880.1687676857460180.915616157126991
360.230365774548690.460731549097380.76963422545131
370.1660854369979130.3321708739958270.833914563002087
380.1787055516806120.3574111033612230.821294448319388
390.2364103689844280.4728207379688560.763589631015572
400.1937338458203960.3874676916407930.806266154179604
410.5199658091108130.9600683817783740.480034190889187
420.5020955926325180.9958088147349640.497904407367482
430.4972301561020680.9944603122041350.502769843897932
440.346143274254650.69228654850930.65385672574535







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0689655172413793NOK
10% type I error level40.137931034482759NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 2 & 0.0689655172413793 & NOK \tabularnewline
10% type I error level & 4 & 0.137931034482759 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61162&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]2[/C][C]0.0689655172413793[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]4[/C][C]0.137931034482759[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61162&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0689655172413793NOK
10% type I error level40.137931034482759NOK



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