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 computationMon, 24 Nov 2008 03:34:53 -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/2008/Nov/24/t12275229864srp2b9usypewzo.htm/, Retrieved Tue, 14 May 2024 20:20:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25388, Retrieved Tue, 14 May 2024 20:20:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact172
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Multiple Linear R...] [2008-11-24 10:34:53] [63db34dadd44fb018112addcdefe949f] [Current]
Feedback Forum

Post a new message
Dataseries X:
101	0
104	0
99	0
105	0
107	0
111	0
117	0
119	0
127	0
128	0
135	0
132	0
136	0
143	0
142	0
153	0
145	0
138	0
148	0
152	0
169	0
169	0
161	0
174	0
179	0
191	0
190	0
182	0
175	0
181	0
197	0
194	0
197	0
216	0
221	0
218	0
230	0
227	0
204	0
197	0
199	0
208	0
191	0
202	0
211	0
224	1
224	1
231	1
244	1
235	1
250	1
266	1
288	1
283	1
295	1
312	1
334	1
348	1
383	1
407	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 7 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25388&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]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25388&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
IGrSt[t] = + 108.518518518518 + 25.7037037037037D[t] -14.5481481481482M1[t] -15.7037037037037M2[t] -21.8592592592593M3[t] -21.4148148148148M4[t] -22.3703703703704M5[t] -24.1259259259259M6[t] -21.8814814814815M7[t] -18.8370370370370M8[t] -10.1925925925926M9[t] -9.0888888888889M10[t] -4.44444444444445M11[t] + 3.15555555555556t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
IGrSt[t] =  +  108.518518518518 +  25.7037037037037D[t] -14.5481481481482M1[t] -15.7037037037037M2[t] -21.8592592592593M3[t] -21.4148148148148M4[t] -22.3703703703704M5[t] -24.1259259259259M6[t] -21.8814814814815M7[t] -18.8370370370370M8[t] -10.1925925925926M9[t] -9.0888888888889M10[t] -4.44444444444445M11[t] +  3.15555555555556t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25388&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]IGrSt[t] =  +  108.518518518518 +  25.7037037037037D[t] -14.5481481481482M1[t] -15.7037037037037M2[t] -21.8592592592593M3[t] -21.4148148148148M4[t] -22.3703703703704M5[t] -24.1259259259259M6[t] -21.8814814814815M7[t] -18.8370370370370M8[t] -10.1925925925926M9[t] -9.0888888888889M10[t] -4.44444444444445M11[t] +  3.15555555555556t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25388&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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
IGrSt[t] = + 108.518518518518 + 25.7037037037037D[t] -14.5481481481482M1[t] -15.7037037037037M2[t] -21.8592592592593M3[t] -21.4148148148148M4[t] -22.3703703703704M5[t] -24.1259259259259M6[t] -21.8814814814815M7[t] -18.8370370370370M8[t] -10.1925925925926M9[t] -9.0888888888889M10[t] -4.44444444444445M11[t] + 3.15555555555556t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)108.51851851851814.2012927.641500
D25.703703703703712.1109032.12240.0392230.019611
M1-14.548148148148216.79501-0.86620.3908660.195433
M2-15.703703703703716.77043-0.93640.3539610.176981
M3-21.859259259259316.751287-1.30490.1984070.099204
M4-21.414814814814816.7376-1.27940.2071570.103578
M5-22.370370370370416.729383-1.33720.1877360.093868
M6-24.125925925925916.726643-1.44240.1559740.077987
M7-21.881481481481516.729383-1.3080.1973830.098692
M8-18.837037037037016.7376-1.12540.2662440.133122
M9-10.192592592592616.751287-0.60850.5458710.272936
M10-9.088888888888916.660746-0.54550.5880270.294013
M11-4.4444444444444516.652491-0.26690.7907440.395372
t3.155555555555560.30277310.422200

\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) & 108.518518518518 & 14.201292 & 7.6415 & 0 & 0 \tabularnewline
D & 25.7037037037037 & 12.110903 & 2.1224 & 0.039223 & 0.019611 \tabularnewline
M1 & -14.5481481481482 & 16.79501 & -0.8662 & 0.390866 & 0.195433 \tabularnewline
M2 & -15.7037037037037 & 16.77043 & -0.9364 & 0.353961 & 0.176981 \tabularnewline
M3 & -21.8592592592593 & 16.751287 & -1.3049 & 0.198407 & 0.099204 \tabularnewline
M4 & -21.4148148148148 & 16.7376 & -1.2794 & 0.207157 & 0.103578 \tabularnewline
M5 & -22.3703703703704 & 16.729383 & -1.3372 & 0.187736 & 0.093868 \tabularnewline
M6 & -24.1259259259259 & 16.726643 & -1.4424 & 0.155974 & 0.077987 \tabularnewline
M7 & -21.8814814814815 & 16.729383 & -1.308 & 0.197383 & 0.098692 \tabularnewline
M8 & -18.8370370370370 & 16.7376 & -1.1254 & 0.266244 & 0.133122 \tabularnewline
M9 & -10.1925925925926 & 16.751287 & -0.6085 & 0.545871 & 0.272936 \tabularnewline
M10 & -9.0888888888889 & 16.660746 & -0.5455 & 0.588027 & 0.294013 \tabularnewline
M11 & -4.44444444444445 & 16.652491 & -0.2669 & 0.790744 & 0.395372 \tabularnewline
t & 3.15555555555556 & 0.302773 & 10.4222 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25388&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]108.518518518518[/C][C]14.201292[/C][C]7.6415[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]D[/C][C]25.7037037037037[/C][C]12.110903[/C][C]2.1224[/C][C]0.039223[/C][C]0.019611[/C][/ROW]
[ROW][C]M1[/C][C]-14.5481481481482[/C][C]16.79501[/C][C]-0.8662[/C][C]0.390866[/C][C]0.195433[/C][/ROW]
[ROW][C]M2[/C][C]-15.7037037037037[/C][C]16.77043[/C][C]-0.9364[/C][C]0.353961[/C][C]0.176981[/C][/ROW]
[ROW][C]M3[/C][C]-21.8592592592593[/C][C]16.751287[/C][C]-1.3049[/C][C]0.198407[/C][C]0.099204[/C][/ROW]
[ROW][C]M4[/C][C]-21.4148148148148[/C][C]16.7376[/C][C]-1.2794[/C][C]0.207157[/C][C]0.103578[/C][/ROW]
[ROW][C]M5[/C][C]-22.3703703703704[/C][C]16.729383[/C][C]-1.3372[/C][C]0.187736[/C][C]0.093868[/C][/ROW]
[ROW][C]M6[/C][C]-24.1259259259259[/C][C]16.726643[/C][C]-1.4424[/C][C]0.155974[/C][C]0.077987[/C][/ROW]
[ROW][C]M7[/C][C]-21.8814814814815[/C][C]16.729383[/C][C]-1.308[/C][C]0.197383[/C][C]0.098692[/C][/ROW]
[ROW][C]M8[/C][C]-18.8370370370370[/C][C]16.7376[/C][C]-1.1254[/C][C]0.266244[/C][C]0.133122[/C][/ROW]
[ROW][C]M9[/C][C]-10.1925925925926[/C][C]16.751287[/C][C]-0.6085[/C][C]0.545871[/C][C]0.272936[/C][/ROW]
[ROW][C]M10[/C][C]-9.0888888888889[/C][C]16.660746[/C][C]-0.5455[/C][C]0.588027[/C][C]0.294013[/C][/ROW]
[ROW][C]M11[/C][C]-4.44444444444445[/C][C]16.652491[/C][C]-0.2669[/C][C]0.790744[/C][C]0.395372[/C][/ROW]
[ROW][C]t[/C][C]3.15555555555556[/C][C]0.302773[/C][C]10.4222[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25388&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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)108.51851851851814.2012927.641500
D25.703703703703712.1109032.12240.0392230.019611
M1-14.548148148148216.79501-0.86620.3908660.195433
M2-15.703703703703716.77043-0.93640.3539610.176981
M3-21.859259259259316.751287-1.30490.1984070.099204
M4-21.414814814814816.7376-1.27940.2071570.103578
M5-22.370370370370416.729383-1.33720.1877360.093868
M6-24.125925925925916.726643-1.44240.1559740.077987
M7-21.881481481481516.729383-1.3080.1973830.098692
M8-18.837037037037016.7376-1.12540.2662440.133122
M9-10.192592592592616.751287-0.60850.5458710.272936
M10-9.088888888888916.660746-0.54550.5880270.294013
M11-4.4444444444444516.652491-0.26690.7907440.395372
t3.155555555555560.30277310.422200







Multiple Linear Regression - Regression Statistics
Multiple R0.942402549209953
R-squared0.888122564757418
Adjusted R-squared0.856505028710601
F-TEST (value)28.0895564867027
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26.3255476780162
Sum Squared Residuals31879.5851851852

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.942402549209953 \tabularnewline
R-squared & 0.888122564757418 \tabularnewline
Adjusted R-squared & 0.856505028710601 \tabularnewline
F-TEST (value) & 28.0895564867027 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 26.3255476780162 \tabularnewline
Sum Squared Residuals & 31879.5851851852 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25388&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.942402549209953[/C][/ROW]
[ROW][C]R-squared[/C][C]0.888122564757418[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.856505028710601[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]28.0895564867027[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/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]26.3255476780162[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]31879.5851851852[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25388&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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.942402549209953
R-squared0.888122564757418
Adjusted R-squared0.856505028710601
F-TEST (value)28.0895564867027
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26.3255476780162
Sum Squared Residuals31879.5851851852







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110197.1259259259263.87407407407398
210499.1259259259264.87407407407406
39996.1259259259262.87407407407408
410599.7259259259265.27407407407407
5107101.9259259259265.07407407407408
6111103.3259259259267.67407407407407
7117108.7259259259268.27407407407408
8119114.9259259259264.07407407407408
9127126.7259259259260.274074074074094
10128130.985185185185-2.98518518518516
11135138.785185185185-3.78518518518518
12132146.385185185185-14.3851851851852
13136134.9925925925931.00740740740743
14143136.9925925925936.00740740740739
15142133.9925925925938.00740740740741
16153137.59259259259315.4074074074074
17145139.7925925925935.20740740740741
18138141.192592592593-3.19259259259259
19148146.5925925925931.4074074074074
20152152.792592592593-0.792592592592592
21169164.5925925925934.40740740740742
22169168.8518518518520.148148148148156
23161176.651851851852-15.6518518518518
24174184.251851851852-10.2518518518518
25179172.8592592592596.14074074074078
26191174.85925925925916.1407407407408
27190171.85925925925918.1407407407407
28182175.4592592592596.54074074074075
29175177.659259259259-2.65925925925927
30181179.0592592592591.94074074074075
31197184.45925925925912.5407407407407
32194190.6592592592593.34074074074075
33197202.459259259259-5.45925925925927
34216206.7185185185199.28148148148146
35221214.5185185185196.48148148148148
36218222.118518518519-4.11851851851852
37230210.72592592592619.2740740740741
38227212.72592592592614.2740740740741
39204209.725925925926-5.72592592592594
40197213.325925925926-16.3259259259259
41199215.525925925926-16.5259259259259
42208216.925925925926-8.92592592592594
43191222.325925925926-31.3259259259259
44202228.525925925926-26.5259259259259
45211240.325925925926-29.3259259259259
46224270.288888888889-46.2888888888889
47224278.088888888889-54.0888888888889
48231285.688888888889-54.6888888888889
49244274.296296296296-30.2962962962963
50235276.296296296296-41.2962962962963
51250273.296296296296-23.2962962962963
52266276.896296296296-10.8962962962963
53288279.0962962962968.9037037037037
54283280.4962962962962.50370370370371
55295285.8962962962969.1037037037037
56312292.09629629629619.9037037037037
57334303.89629629629630.1037037037037
58348308.15555555555639.8444444444444
59383315.95555555555667.0444444444444
60407323.55555555555683.4444444444444

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 101 & 97.125925925926 & 3.87407407407398 \tabularnewline
2 & 104 & 99.125925925926 & 4.87407407407406 \tabularnewline
3 & 99 & 96.125925925926 & 2.87407407407408 \tabularnewline
4 & 105 & 99.725925925926 & 5.27407407407407 \tabularnewline
5 & 107 & 101.925925925926 & 5.07407407407408 \tabularnewline
6 & 111 & 103.325925925926 & 7.67407407407407 \tabularnewline
7 & 117 & 108.725925925926 & 8.27407407407408 \tabularnewline
8 & 119 & 114.925925925926 & 4.07407407407408 \tabularnewline
9 & 127 & 126.725925925926 & 0.274074074074094 \tabularnewline
10 & 128 & 130.985185185185 & -2.98518518518516 \tabularnewline
11 & 135 & 138.785185185185 & -3.78518518518518 \tabularnewline
12 & 132 & 146.385185185185 & -14.3851851851852 \tabularnewline
13 & 136 & 134.992592592593 & 1.00740740740743 \tabularnewline
14 & 143 & 136.992592592593 & 6.00740740740739 \tabularnewline
15 & 142 & 133.992592592593 & 8.00740740740741 \tabularnewline
16 & 153 & 137.592592592593 & 15.4074074074074 \tabularnewline
17 & 145 & 139.792592592593 & 5.20740740740741 \tabularnewline
18 & 138 & 141.192592592593 & -3.19259259259259 \tabularnewline
19 & 148 & 146.592592592593 & 1.4074074074074 \tabularnewline
20 & 152 & 152.792592592593 & -0.792592592592592 \tabularnewline
21 & 169 & 164.592592592593 & 4.40740740740742 \tabularnewline
22 & 169 & 168.851851851852 & 0.148148148148156 \tabularnewline
23 & 161 & 176.651851851852 & -15.6518518518518 \tabularnewline
24 & 174 & 184.251851851852 & -10.2518518518518 \tabularnewline
25 & 179 & 172.859259259259 & 6.14074074074078 \tabularnewline
26 & 191 & 174.859259259259 & 16.1407407407408 \tabularnewline
27 & 190 & 171.859259259259 & 18.1407407407407 \tabularnewline
28 & 182 & 175.459259259259 & 6.54074074074075 \tabularnewline
29 & 175 & 177.659259259259 & -2.65925925925927 \tabularnewline
30 & 181 & 179.059259259259 & 1.94074074074075 \tabularnewline
31 & 197 & 184.459259259259 & 12.5407407407407 \tabularnewline
32 & 194 & 190.659259259259 & 3.34074074074075 \tabularnewline
33 & 197 & 202.459259259259 & -5.45925925925927 \tabularnewline
34 & 216 & 206.718518518519 & 9.28148148148146 \tabularnewline
35 & 221 & 214.518518518519 & 6.48148148148148 \tabularnewline
36 & 218 & 222.118518518519 & -4.11851851851852 \tabularnewline
37 & 230 & 210.725925925926 & 19.2740740740741 \tabularnewline
38 & 227 & 212.725925925926 & 14.2740740740741 \tabularnewline
39 & 204 & 209.725925925926 & -5.72592592592594 \tabularnewline
40 & 197 & 213.325925925926 & -16.3259259259259 \tabularnewline
41 & 199 & 215.525925925926 & -16.5259259259259 \tabularnewline
42 & 208 & 216.925925925926 & -8.92592592592594 \tabularnewline
43 & 191 & 222.325925925926 & -31.3259259259259 \tabularnewline
44 & 202 & 228.525925925926 & -26.5259259259259 \tabularnewline
45 & 211 & 240.325925925926 & -29.3259259259259 \tabularnewline
46 & 224 & 270.288888888889 & -46.2888888888889 \tabularnewline
47 & 224 & 278.088888888889 & -54.0888888888889 \tabularnewline
48 & 231 & 285.688888888889 & -54.6888888888889 \tabularnewline
49 & 244 & 274.296296296296 & -30.2962962962963 \tabularnewline
50 & 235 & 276.296296296296 & -41.2962962962963 \tabularnewline
51 & 250 & 273.296296296296 & -23.2962962962963 \tabularnewline
52 & 266 & 276.896296296296 & -10.8962962962963 \tabularnewline
53 & 288 & 279.096296296296 & 8.9037037037037 \tabularnewline
54 & 283 & 280.496296296296 & 2.50370370370371 \tabularnewline
55 & 295 & 285.896296296296 & 9.1037037037037 \tabularnewline
56 & 312 & 292.096296296296 & 19.9037037037037 \tabularnewline
57 & 334 & 303.896296296296 & 30.1037037037037 \tabularnewline
58 & 348 & 308.155555555556 & 39.8444444444444 \tabularnewline
59 & 383 & 315.955555555556 & 67.0444444444444 \tabularnewline
60 & 407 & 323.555555555556 & 83.4444444444444 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25388&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]101[/C][C]97.125925925926[/C][C]3.87407407407398[/C][/ROW]
[ROW][C]2[/C][C]104[/C][C]99.125925925926[/C][C]4.87407407407406[/C][/ROW]
[ROW][C]3[/C][C]99[/C][C]96.125925925926[/C][C]2.87407407407408[/C][/ROW]
[ROW][C]4[/C][C]105[/C][C]99.725925925926[/C][C]5.27407407407407[/C][/ROW]
[ROW][C]5[/C][C]107[/C][C]101.925925925926[/C][C]5.07407407407408[/C][/ROW]
[ROW][C]6[/C][C]111[/C][C]103.325925925926[/C][C]7.67407407407407[/C][/ROW]
[ROW][C]7[/C][C]117[/C][C]108.725925925926[/C][C]8.27407407407408[/C][/ROW]
[ROW][C]8[/C][C]119[/C][C]114.925925925926[/C][C]4.07407407407408[/C][/ROW]
[ROW][C]9[/C][C]127[/C][C]126.725925925926[/C][C]0.274074074074094[/C][/ROW]
[ROW][C]10[/C][C]128[/C][C]130.985185185185[/C][C]-2.98518518518516[/C][/ROW]
[ROW][C]11[/C][C]135[/C][C]138.785185185185[/C][C]-3.78518518518518[/C][/ROW]
[ROW][C]12[/C][C]132[/C][C]146.385185185185[/C][C]-14.3851851851852[/C][/ROW]
[ROW][C]13[/C][C]136[/C][C]134.992592592593[/C][C]1.00740740740743[/C][/ROW]
[ROW][C]14[/C][C]143[/C][C]136.992592592593[/C][C]6.00740740740739[/C][/ROW]
[ROW][C]15[/C][C]142[/C][C]133.992592592593[/C][C]8.00740740740741[/C][/ROW]
[ROW][C]16[/C][C]153[/C][C]137.592592592593[/C][C]15.4074074074074[/C][/ROW]
[ROW][C]17[/C][C]145[/C][C]139.792592592593[/C][C]5.20740740740741[/C][/ROW]
[ROW][C]18[/C][C]138[/C][C]141.192592592593[/C][C]-3.19259259259259[/C][/ROW]
[ROW][C]19[/C][C]148[/C][C]146.592592592593[/C][C]1.4074074074074[/C][/ROW]
[ROW][C]20[/C][C]152[/C][C]152.792592592593[/C][C]-0.792592592592592[/C][/ROW]
[ROW][C]21[/C][C]169[/C][C]164.592592592593[/C][C]4.40740740740742[/C][/ROW]
[ROW][C]22[/C][C]169[/C][C]168.851851851852[/C][C]0.148148148148156[/C][/ROW]
[ROW][C]23[/C][C]161[/C][C]176.651851851852[/C][C]-15.6518518518518[/C][/ROW]
[ROW][C]24[/C][C]174[/C][C]184.251851851852[/C][C]-10.2518518518518[/C][/ROW]
[ROW][C]25[/C][C]179[/C][C]172.859259259259[/C][C]6.14074074074078[/C][/ROW]
[ROW][C]26[/C][C]191[/C][C]174.859259259259[/C][C]16.1407407407408[/C][/ROW]
[ROW][C]27[/C][C]190[/C][C]171.859259259259[/C][C]18.1407407407407[/C][/ROW]
[ROW][C]28[/C][C]182[/C][C]175.459259259259[/C][C]6.54074074074075[/C][/ROW]
[ROW][C]29[/C][C]175[/C][C]177.659259259259[/C][C]-2.65925925925927[/C][/ROW]
[ROW][C]30[/C][C]181[/C][C]179.059259259259[/C][C]1.94074074074075[/C][/ROW]
[ROW][C]31[/C][C]197[/C][C]184.459259259259[/C][C]12.5407407407407[/C][/ROW]
[ROW][C]32[/C][C]194[/C][C]190.659259259259[/C][C]3.34074074074075[/C][/ROW]
[ROW][C]33[/C][C]197[/C][C]202.459259259259[/C][C]-5.45925925925927[/C][/ROW]
[ROW][C]34[/C][C]216[/C][C]206.718518518519[/C][C]9.28148148148146[/C][/ROW]
[ROW][C]35[/C][C]221[/C][C]214.518518518519[/C][C]6.48148148148148[/C][/ROW]
[ROW][C]36[/C][C]218[/C][C]222.118518518519[/C][C]-4.11851851851852[/C][/ROW]
[ROW][C]37[/C][C]230[/C][C]210.725925925926[/C][C]19.2740740740741[/C][/ROW]
[ROW][C]38[/C][C]227[/C][C]212.725925925926[/C][C]14.2740740740741[/C][/ROW]
[ROW][C]39[/C][C]204[/C][C]209.725925925926[/C][C]-5.72592592592594[/C][/ROW]
[ROW][C]40[/C][C]197[/C][C]213.325925925926[/C][C]-16.3259259259259[/C][/ROW]
[ROW][C]41[/C][C]199[/C][C]215.525925925926[/C][C]-16.5259259259259[/C][/ROW]
[ROW][C]42[/C][C]208[/C][C]216.925925925926[/C][C]-8.92592592592594[/C][/ROW]
[ROW][C]43[/C][C]191[/C][C]222.325925925926[/C][C]-31.3259259259259[/C][/ROW]
[ROW][C]44[/C][C]202[/C][C]228.525925925926[/C][C]-26.5259259259259[/C][/ROW]
[ROW][C]45[/C][C]211[/C][C]240.325925925926[/C][C]-29.3259259259259[/C][/ROW]
[ROW][C]46[/C][C]224[/C][C]270.288888888889[/C][C]-46.2888888888889[/C][/ROW]
[ROW][C]47[/C][C]224[/C][C]278.088888888889[/C][C]-54.0888888888889[/C][/ROW]
[ROW][C]48[/C][C]231[/C][C]285.688888888889[/C][C]-54.6888888888889[/C][/ROW]
[ROW][C]49[/C][C]244[/C][C]274.296296296296[/C][C]-30.2962962962963[/C][/ROW]
[ROW][C]50[/C][C]235[/C][C]276.296296296296[/C][C]-41.2962962962963[/C][/ROW]
[ROW][C]51[/C][C]250[/C][C]273.296296296296[/C][C]-23.2962962962963[/C][/ROW]
[ROW][C]52[/C][C]266[/C][C]276.896296296296[/C][C]-10.8962962962963[/C][/ROW]
[ROW][C]53[/C][C]288[/C][C]279.096296296296[/C][C]8.9037037037037[/C][/ROW]
[ROW][C]54[/C][C]283[/C][C]280.496296296296[/C][C]2.50370370370371[/C][/ROW]
[ROW][C]55[/C][C]295[/C][C]285.896296296296[/C][C]9.1037037037037[/C][/ROW]
[ROW][C]56[/C][C]312[/C][C]292.096296296296[/C][C]19.9037037037037[/C][/ROW]
[ROW][C]57[/C][C]334[/C][C]303.896296296296[/C][C]30.1037037037037[/C][/ROW]
[ROW][C]58[/C][C]348[/C][C]308.155555555556[/C][C]39.8444444444444[/C][/ROW]
[ROW][C]59[/C][C]383[/C][C]315.955555555556[/C][C]67.0444444444444[/C][/ROW]
[ROW][C]60[/C][C]407[/C][C]323.555555555556[/C][C]83.4444444444444[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25388&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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
110197.1259259259263.87407407407398
210499.1259259259264.87407407407406
39996.1259259259262.87407407407408
410599.7259259259265.27407407407407
5107101.9259259259265.07407407407408
6111103.3259259259267.67407407407407
7117108.7259259259268.27407407407408
8119114.9259259259264.07407407407408
9127126.7259259259260.274074074074094
10128130.985185185185-2.98518518518516
11135138.785185185185-3.78518518518518
12132146.385185185185-14.3851851851852
13136134.9925925925931.00740740740743
14143136.9925925925936.00740740740739
15142133.9925925925938.00740740740741
16153137.59259259259315.4074074074074
17145139.7925925925935.20740740740741
18138141.192592592593-3.19259259259259
19148146.5925925925931.4074074074074
20152152.792592592593-0.792592592592592
21169164.5925925925934.40740740740742
22169168.8518518518520.148148148148156
23161176.651851851852-15.6518518518518
24174184.251851851852-10.2518518518518
25179172.8592592592596.14074074074078
26191174.85925925925916.1407407407408
27190171.85925925925918.1407407407407
28182175.4592592592596.54074074074075
29175177.659259259259-2.65925925925927
30181179.0592592592591.94074074074075
31197184.45925925925912.5407407407407
32194190.6592592592593.34074074074075
33197202.459259259259-5.45925925925927
34216206.7185185185199.28148148148146
35221214.5185185185196.48148148148148
36218222.118518518519-4.11851851851852
37230210.72592592592619.2740740740741
38227212.72592592592614.2740740740741
39204209.725925925926-5.72592592592594
40197213.325925925926-16.3259259259259
41199215.525925925926-16.5259259259259
42208216.925925925926-8.92592592592594
43191222.325925925926-31.3259259259259
44202228.525925925926-26.5259259259259
45211240.325925925926-29.3259259259259
46224270.288888888889-46.2888888888889
47224278.088888888889-54.0888888888889
48231285.688888888889-54.6888888888889
49244274.296296296296-30.2962962962963
50235276.296296296296-41.2962962962963
51250273.296296296296-23.2962962962963
52266276.896296296296-10.8962962962963
53288279.0962962962968.9037037037037
54283280.4962962962962.50370370370371
55295285.8962962962969.1037037037037
56312292.09629629629619.9037037037037
57334303.89629629629630.1037037037037
58348308.15555555555639.8444444444444
59383315.95555555555667.0444444444444
60407323.55555555555683.4444444444444







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.002932862687150880.005865725374301770.99706713731285
180.001851427524718920.003702855049437830.998148572475281
190.0004062391892815960.0008124783785631910.999593760810718
206.81641755978409e-050.0001363283511956820.999931835824402
211.23972283470065e-052.47944566940130e-050.999987602771653
221.85848864241253e-063.71697728482507e-060.999998141511358
238.50222513540588e-071.70044502708118e-060.999999149777486
241.44563825867371e-072.89127651734743e-070.999999855436174
252.53708046438792e-085.07416092877585e-080.999999974629195
261.50906004864213e-083.01812009728425e-080.9999999849094
271.04509110814302e-082.09018221628603e-080.999999989549089
283.45193704083778e-096.90387408167555e-090.999999996548063
291.54977717250219e-093.09955434500437e-090.999999998450223
303.3390928901994e-106.6781857803988e-100.99999999966609
312.59535513808233e-105.19071027616466e-100.999999999740464
321.60073416389761e-103.20146832779521e-100.999999999839927
334.94356937256122e-109.88713874512244e-100.999999999505643
349.82041151411343e-101.96408230282269e-090.999999999017959
355.65201113617721e-091.13040222723544e-080.999999994347989
365.54657854016118e-091.10931570803224e-080.999999994453421
374.94931185021643e-089.89862370043285e-080.999999950506882
386.52651032239021e-061.30530206447804e-050.999993473489678
390.0006254940782593490.001250988156518700.99937450592174
400.01144000846857120.02288001693714240.988559991531429
410.01364471859913050.0272894371982610.98635528140087
420.05263375658089430.1052675131617890.947366243419106
430.09321414250038160.1864282850007630.906785857499618

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00293286268715088 & 0.00586572537430177 & 0.99706713731285 \tabularnewline
18 & 0.00185142752471892 & 0.00370285504943783 & 0.998148572475281 \tabularnewline
19 & 0.000406239189281596 & 0.000812478378563191 & 0.999593760810718 \tabularnewline
20 & 6.81641755978409e-05 & 0.000136328351195682 & 0.999931835824402 \tabularnewline
21 & 1.23972283470065e-05 & 2.47944566940130e-05 & 0.999987602771653 \tabularnewline
22 & 1.85848864241253e-06 & 3.71697728482507e-06 & 0.999998141511358 \tabularnewline
23 & 8.50222513540588e-07 & 1.70044502708118e-06 & 0.999999149777486 \tabularnewline
24 & 1.44563825867371e-07 & 2.89127651734743e-07 & 0.999999855436174 \tabularnewline
25 & 2.53708046438792e-08 & 5.07416092877585e-08 & 0.999999974629195 \tabularnewline
26 & 1.50906004864213e-08 & 3.01812009728425e-08 & 0.9999999849094 \tabularnewline
27 & 1.04509110814302e-08 & 2.09018221628603e-08 & 0.999999989549089 \tabularnewline
28 & 3.45193704083778e-09 & 6.90387408167555e-09 & 0.999999996548063 \tabularnewline
29 & 1.54977717250219e-09 & 3.09955434500437e-09 & 0.999999998450223 \tabularnewline
30 & 3.3390928901994e-10 & 6.6781857803988e-10 & 0.99999999966609 \tabularnewline
31 & 2.59535513808233e-10 & 5.19071027616466e-10 & 0.999999999740464 \tabularnewline
32 & 1.60073416389761e-10 & 3.20146832779521e-10 & 0.999999999839927 \tabularnewline
33 & 4.94356937256122e-10 & 9.88713874512244e-10 & 0.999999999505643 \tabularnewline
34 & 9.82041151411343e-10 & 1.96408230282269e-09 & 0.999999999017959 \tabularnewline
35 & 5.65201113617721e-09 & 1.13040222723544e-08 & 0.999999994347989 \tabularnewline
36 & 5.54657854016118e-09 & 1.10931570803224e-08 & 0.999999994453421 \tabularnewline
37 & 4.94931185021643e-08 & 9.89862370043285e-08 & 0.999999950506882 \tabularnewline
38 & 6.52651032239021e-06 & 1.30530206447804e-05 & 0.999993473489678 \tabularnewline
39 & 0.000625494078259349 & 0.00125098815651870 & 0.99937450592174 \tabularnewline
40 & 0.0114400084685712 & 0.0228800169371424 & 0.988559991531429 \tabularnewline
41 & 0.0136447185991305 & 0.027289437198261 & 0.98635528140087 \tabularnewline
42 & 0.0526337565808943 & 0.105267513161789 & 0.947366243419106 \tabularnewline
43 & 0.0932141425003816 & 0.186428285000763 & 0.906785857499618 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25388&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]17[/C][C]0.00293286268715088[/C][C]0.00586572537430177[/C][C]0.99706713731285[/C][/ROW]
[ROW][C]18[/C][C]0.00185142752471892[/C][C]0.00370285504943783[/C][C]0.998148572475281[/C][/ROW]
[ROW][C]19[/C][C]0.000406239189281596[/C][C]0.000812478378563191[/C][C]0.999593760810718[/C][/ROW]
[ROW][C]20[/C][C]6.81641755978409e-05[/C][C]0.000136328351195682[/C][C]0.999931835824402[/C][/ROW]
[ROW][C]21[/C][C]1.23972283470065e-05[/C][C]2.47944566940130e-05[/C][C]0.999987602771653[/C][/ROW]
[ROW][C]22[/C][C]1.85848864241253e-06[/C][C]3.71697728482507e-06[/C][C]0.999998141511358[/C][/ROW]
[ROW][C]23[/C][C]8.50222513540588e-07[/C][C]1.70044502708118e-06[/C][C]0.999999149777486[/C][/ROW]
[ROW][C]24[/C][C]1.44563825867371e-07[/C][C]2.89127651734743e-07[/C][C]0.999999855436174[/C][/ROW]
[ROW][C]25[/C][C]2.53708046438792e-08[/C][C]5.07416092877585e-08[/C][C]0.999999974629195[/C][/ROW]
[ROW][C]26[/C][C]1.50906004864213e-08[/C][C]3.01812009728425e-08[/C][C]0.9999999849094[/C][/ROW]
[ROW][C]27[/C][C]1.04509110814302e-08[/C][C]2.09018221628603e-08[/C][C]0.999999989549089[/C][/ROW]
[ROW][C]28[/C][C]3.45193704083778e-09[/C][C]6.90387408167555e-09[/C][C]0.999999996548063[/C][/ROW]
[ROW][C]29[/C][C]1.54977717250219e-09[/C][C]3.09955434500437e-09[/C][C]0.999999998450223[/C][/ROW]
[ROW][C]30[/C][C]3.3390928901994e-10[/C][C]6.6781857803988e-10[/C][C]0.99999999966609[/C][/ROW]
[ROW][C]31[/C][C]2.59535513808233e-10[/C][C]5.19071027616466e-10[/C][C]0.999999999740464[/C][/ROW]
[ROW][C]32[/C][C]1.60073416389761e-10[/C][C]3.20146832779521e-10[/C][C]0.999999999839927[/C][/ROW]
[ROW][C]33[/C][C]4.94356937256122e-10[/C][C]9.88713874512244e-10[/C][C]0.999999999505643[/C][/ROW]
[ROW][C]34[/C][C]9.82041151411343e-10[/C][C]1.96408230282269e-09[/C][C]0.999999999017959[/C][/ROW]
[ROW][C]35[/C][C]5.65201113617721e-09[/C][C]1.13040222723544e-08[/C][C]0.999999994347989[/C][/ROW]
[ROW][C]36[/C][C]5.54657854016118e-09[/C][C]1.10931570803224e-08[/C][C]0.999999994453421[/C][/ROW]
[ROW][C]37[/C][C]4.94931185021643e-08[/C][C]9.89862370043285e-08[/C][C]0.999999950506882[/C][/ROW]
[ROW][C]38[/C][C]6.52651032239021e-06[/C][C]1.30530206447804e-05[/C][C]0.999993473489678[/C][/ROW]
[ROW][C]39[/C][C]0.000625494078259349[/C][C]0.00125098815651870[/C][C]0.99937450592174[/C][/ROW]
[ROW][C]40[/C][C]0.0114400084685712[/C][C]0.0228800169371424[/C][C]0.988559991531429[/C][/ROW]
[ROW][C]41[/C][C]0.0136447185991305[/C][C]0.027289437198261[/C][C]0.98635528140087[/C][/ROW]
[ROW][C]42[/C][C]0.0526337565808943[/C][C]0.105267513161789[/C][C]0.947366243419106[/C][/ROW]
[ROW][C]43[/C][C]0.0932141425003816[/C][C]0.186428285000763[/C][C]0.906785857499618[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25388&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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
170.002932862687150880.005865725374301770.99706713731285
180.001851427524718920.003702855049437830.998148572475281
190.0004062391892815960.0008124783785631910.999593760810718
206.81641755978409e-050.0001363283511956820.999931835824402
211.23972283470065e-052.47944566940130e-050.999987602771653
221.85848864241253e-063.71697728482507e-060.999998141511358
238.50222513540588e-071.70044502708118e-060.999999149777486
241.44563825867371e-072.89127651734743e-070.999999855436174
252.53708046438792e-085.07416092877585e-080.999999974629195
261.50906004864213e-083.01812009728425e-080.9999999849094
271.04509110814302e-082.09018221628603e-080.999999989549089
283.45193704083778e-096.90387408167555e-090.999999996548063
291.54977717250219e-093.09955434500437e-090.999999998450223
303.3390928901994e-106.6781857803988e-100.99999999966609
312.59535513808233e-105.19071027616466e-100.999999999740464
321.60073416389761e-103.20146832779521e-100.999999999839927
334.94356937256122e-109.88713874512244e-100.999999999505643
349.82041151411343e-101.96408230282269e-090.999999999017959
355.65201113617721e-091.13040222723544e-080.999999994347989
365.54657854016118e-091.10931570803224e-080.999999994453421
374.94931185021643e-089.89862370043285e-080.999999950506882
386.52651032239021e-061.30530206447804e-050.999993473489678
390.0006254940782593490.001250988156518700.99937450592174
400.01144000846857120.02288001693714240.988559991531429
410.01364471859913050.0272894371982610.98635528140087
420.05263375658089430.1052675131617890.947366243419106
430.09321414250038160.1864282850007630.906785857499618







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.851851851851852NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25388&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 level230.851851851851852NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}