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, 20 Nov 2009 11:55:39 -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/20/t1258743397s9yvrlq1tedeumf.htm/, Retrieved Tue, 16 Apr 2024 23:37:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58419, Retrieved Tue, 16 Apr 2024 23:37:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS 7 Model 3
Estimated Impact156
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] [2009-11-19 23:41:15] [9717cb857c153ca3061376906953b329]
-    D      [Multiple Regression] [WS 7 Model 1] [2009-11-20 18:02:51] [9717cb857c153ca3061376906953b329]
-   P         [Multiple Regression] [WS 7 Model 2] [2009-11-20 18:37:24] [9717cb857c153ca3061376906953b329]
-   P             [Multiple Regression] [WS 7 Model 3] [2009-11-20 18:55:39] [52b85b290d6f50b0921ad6729b8a5af2] [Current]
-    D              [Multiple Regression] [WS 7 Model 4] [2009-11-22 16:57:43] [9717cb857c153ca3061376906953b329]
-    D                [Multiple Regression] [WS 7 Model 5] [2009-11-22 20:04:45] [9717cb857c153ca3061376906953b329]
-    D                  [Multiple Regression] [WS 7 Model 6] [2009-11-23 16:53:08] [9717cb857c153ca3061376906953b329]
Feedback Forum

Post a new message
Dataseries X:
286602	0
283042	0
276687	0
277915	0
277128	0
277103	0
275037	0
270150	0
267140	0
264993	0
287259	0
291186	0
292300	0
288186	0
281477	0
282656	0
280190	0
280408	0
276836	0
275216	0
274352	0
271311	0
289802	0
290726	0
292300	0
278506	0
269826	0
265861	0
269034	0
264176	0
255198	0
253353	0
246057	0
235372	0
258556	0
260993	0
254663	0
250643	0
243422	0
247105	0
248541	0
245039	0
237080	0
237085	0
225554	0
226839	1
247934	1
248333	1
246969	1
245098	1
246263	1
255765	1
264319	1
268347	1
273046	1
273963	1
267430	1
271993	1
292710	1
295881	1




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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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
nwwmb[t] = + 300922.883597884 + 18529.5767195767dummy_variable[t] -8596.08624338618M1[t] -13209.2497354498M2[t] -17910.6132275132M3[t] -14726.5767195767M4[t] -11885.9402116402M5[t] -11855.1037037037M6[t] -14571.6671957672M7[t] -15199.0306878307M8[t] -20187.1941798942M9[t] -25039.473015873M10[t] -3030.23650793651M11[t] -858.636507936508t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
nwwmb[t] =  +  300922.883597884 +  18529.5767195767dummy_variable[t] -8596.08624338618M1[t] -13209.2497354498M2[t] -17910.6132275132M3[t] -14726.5767195767M4[t] -11885.9402116402M5[t] -11855.1037037037M6[t] -14571.6671957672M7[t] -15199.0306878307M8[t] -20187.1941798942M9[t] -25039.473015873M10[t] -3030.23650793651M11[t] -858.636507936508t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58419&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]nwwmb[t] =  +  300922.883597884 +  18529.5767195767dummy_variable[t] -8596.08624338618M1[t] -13209.2497354498M2[t] -17910.6132275132M3[t] -14726.5767195767M4[t] -11885.9402116402M5[t] -11855.1037037037M6[t] -14571.6671957672M7[t] -15199.0306878307M8[t] -20187.1941798942M9[t] -25039.473015873M10[t] -3030.23650793651M11[t] -858.636507936508t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58419&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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
nwwmb[t] = + 300922.883597884 + 18529.5767195767dummy_variable[t] -8596.08624338618M1[t] -13209.2497354498M2[t] -17910.6132275132M3[t] -14726.5767195767M4[t] -11885.9402116402M5[t] -11855.1037037037M6[t] -14571.6671957672M7[t] -15199.0306878307M8[t] -20187.1941798942M9[t] -25039.473015873M10[t] -3030.23650793651M11[t] -858.636507936508t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)300922.8835978847984.94780737.686300
dummy_variable18529.57671957676809.586372.72110.0091550.004578
M1-8596.086243386189443.315278-0.91030.3674190.183709
M2-13209.24973544989429.494661-1.40080.1679710.083985
M3-17910.61322751329418.731272-1.90160.0634980.031749
M4-14726.57671957679411.0356-1.56480.1244790.06224
M5-11885.94021164029406.415175-1.26360.212740.10637
M6-11855.10370370379404.874529-1.26050.2138360.106918
M7-14571.66719576729406.415175-1.54910.1282060.064103
M8-15199.03068783079411.0356-1.6150.1131450.056573
M9-20187.19417989429418.731272-2.14330.037410.018705
M10-25039.4730158739367.823008-2.67290.010370.005185
M11-3030.236507936519363.181258-0.32360.7476830.373841
t-858.636507936508170.239659-5.04378e-064e-06

\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) & 300922.883597884 & 7984.947807 & 37.6863 & 0 & 0 \tabularnewline
dummy_variable & 18529.5767195767 & 6809.58637 & 2.7211 & 0.009155 & 0.004578 \tabularnewline
M1 & -8596.08624338618 & 9443.315278 & -0.9103 & 0.367419 & 0.183709 \tabularnewline
M2 & -13209.2497354498 & 9429.494661 & -1.4008 & 0.167971 & 0.083985 \tabularnewline
M3 & -17910.6132275132 & 9418.731272 & -1.9016 & 0.063498 & 0.031749 \tabularnewline
M4 & -14726.5767195767 & 9411.0356 & -1.5648 & 0.124479 & 0.06224 \tabularnewline
M5 & -11885.9402116402 & 9406.415175 & -1.2636 & 0.21274 & 0.10637 \tabularnewline
M6 & -11855.1037037037 & 9404.874529 & -1.2605 & 0.213836 & 0.106918 \tabularnewline
M7 & -14571.6671957672 & 9406.415175 & -1.5491 & 0.128206 & 0.064103 \tabularnewline
M8 & -15199.0306878307 & 9411.0356 & -1.615 & 0.113145 & 0.056573 \tabularnewline
M9 & -20187.1941798942 & 9418.731272 & -2.1433 & 0.03741 & 0.018705 \tabularnewline
M10 & -25039.473015873 & 9367.823008 & -2.6729 & 0.01037 & 0.005185 \tabularnewline
M11 & -3030.23650793651 & 9363.181258 & -0.3236 & 0.747683 & 0.373841 \tabularnewline
t & -858.636507936508 & 170.239659 & -5.0437 & 8e-06 & 4e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58419&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]300922.883597884[/C][C]7984.947807[/C][C]37.6863[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummy_variable[/C][C]18529.5767195767[/C][C]6809.58637[/C][C]2.7211[/C][C]0.009155[/C][C]0.004578[/C][/ROW]
[ROW][C]M1[/C][C]-8596.08624338618[/C][C]9443.315278[/C][C]-0.9103[/C][C]0.367419[/C][C]0.183709[/C][/ROW]
[ROW][C]M2[/C][C]-13209.2497354498[/C][C]9429.494661[/C][C]-1.4008[/C][C]0.167971[/C][C]0.083985[/C][/ROW]
[ROW][C]M3[/C][C]-17910.6132275132[/C][C]9418.731272[/C][C]-1.9016[/C][C]0.063498[/C][C]0.031749[/C][/ROW]
[ROW][C]M4[/C][C]-14726.5767195767[/C][C]9411.0356[/C][C]-1.5648[/C][C]0.124479[/C][C]0.06224[/C][/ROW]
[ROW][C]M5[/C][C]-11885.9402116402[/C][C]9406.415175[/C][C]-1.2636[/C][C]0.21274[/C][C]0.10637[/C][/ROW]
[ROW][C]M6[/C][C]-11855.1037037037[/C][C]9404.874529[/C][C]-1.2605[/C][C]0.213836[/C][C]0.106918[/C][/ROW]
[ROW][C]M7[/C][C]-14571.6671957672[/C][C]9406.415175[/C][C]-1.5491[/C][C]0.128206[/C][C]0.064103[/C][/ROW]
[ROW][C]M8[/C][C]-15199.0306878307[/C][C]9411.0356[/C][C]-1.615[/C][C]0.113145[/C][C]0.056573[/C][/ROW]
[ROW][C]M9[/C][C]-20187.1941798942[/C][C]9418.731272[/C][C]-2.1433[/C][C]0.03741[/C][C]0.018705[/C][/ROW]
[ROW][C]M10[/C][C]-25039.473015873[/C][C]9367.823008[/C][C]-2.6729[/C][C]0.01037[/C][C]0.005185[/C][/ROW]
[ROW][C]M11[/C][C]-3030.23650793651[/C][C]9363.181258[/C][C]-0.3236[/C][C]0.747683[/C][C]0.373841[/C][/ROW]
[ROW][C]t[/C][C]-858.636507936508[/C][C]170.239659[/C][C]-5.0437[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58419&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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)300922.8835978847984.94780737.686300
dummy_variable18529.57671957676809.586372.72110.0091550.004578
M1-8596.086243386189443.315278-0.91030.3674190.183709
M2-13209.24973544989429.494661-1.40080.1679710.083985
M3-17910.61322751329418.731272-1.90160.0634980.031749
M4-14726.57671957679411.0356-1.56480.1244790.06224
M5-11885.94021164029406.415175-1.26360.212740.10637
M6-11855.10370370379404.874529-1.26050.2138360.106918
M7-14571.66719576729406.415175-1.54910.1282060.064103
M8-15199.03068783079411.0356-1.6150.1131450.056573
M9-20187.19417989429418.731272-2.14330.037410.018705
M10-25039.4730158739367.823008-2.67290.010370.005185
M11-3030.236507936519363.181258-0.32360.7476830.373841
t-858.636507936508170.239659-5.04378e-064e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.686640127164347
R-squared0.47147466423227
Adjusted R-squared0.322108808471825
F-TEST (value)3.15650897477149
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00197702536040545
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14802.0422352870
Sum Squared Residuals10078620899.4201

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.686640127164347 \tabularnewline
R-squared & 0.47147466423227 \tabularnewline
Adjusted R-squared & 0.322108808471825 \tabularnewline
F-TEST (value) & 3.15650897477149 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.00197702536040545 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 14802.0422352870 \tabularnewline
Sum Squared Residuals & 10078620899.4201 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58419&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.686640127164347[/C][/ROW]
[ROW][C]R-squared[/C][C]0.47147466423227[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.322108808471825[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.15650897477149[/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.00197702536040545[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]14802.0422352870[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]10078620899.4201[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58419&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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.686640127164347
R-squared0.47147466423227
Adjusted R-squared0.322108808471825
F-TEST (value)3.15650897477149
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00197702536040545
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14802.0422352870
Sum Squared Residuals10078620899.4201







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1286602291468.160846561-4866.16084656058
2283042285996.360846561-2954.36084656087
3276687280436.360846561-3749.36084656086
4277915282761.760846561-4846.76084656088
5277128284743.760846561-7615.76084656085
6277103283915.960846561-6812.96084656087
7275037280340.760846561-5303.76084656087
8270150278854.760846561-8704.76084656087
9267140273007.960846561-5867.96084656083
10264993267297.045502645-2304.04550264550
11287259288447.645502646-1188.64550264552
12291186290619.245502645566.754497354496
13292300281164.52275132311135.4772486772
14288186275692.72275132312493.2772486772
15281477270132.72275132311344.2772486772
16282656272458.12275132310197.8772486773
17280190274440.1227513235749.87724867724
18280408273612.3227513236795.67724867724
19276836270037.1227513236798.87724867725
20275216268551.1227513236664.87724867725
21274352262704.32275132311647.6772486772
22271311256993.40740740714317.5925925926
23289802278144.00740740711657.9925925926
24290726280315.60740740710410.3925925926
25292300270860.88465608521439.1153439153
26278506265389.08465608513116.9153439154
27269826259829.0846560859996.91534391535
28265861262154.4846560853706.51534391535
29269034264136.4846560854897.51534391534
30264176263308.684656085867.315343915351
31255198259733.484656085-4535.48465608465
32253353258247.484656085-4894.48465608464
33246057252400.684656085-6343.68465608465
34235372246689.769312169-11317.7693121693
35258556267840.369312169-9284.3693121693
36260993270011.969312169-9018.96931216931
37254663260557.246560847-5894.24656084662
38250643255085.446560847-4442.44656084654
39243422249525.446560847-6103.44656084655
40247105251850.846560847-4745.84656084654
41248541253832.846560847-5291.84656084655
42245039253005.046560847-7966.04656084655
43237080249429.846560847-12349.8465608465
44237085247943.846560847-10858.8465608466
45225554242097.046560847-16543.0465608466
46226839254915.707936508-28076.7079365079
47247934276066.307936508-28132.3079365079
48248333278237.907936508-29904.9079365079
49246969268783.185185185-21814.1851851852
50245098263311.385185185-18213.3851851852
51246263257751.385185185-11488.3851851852
52255765260076.785185185-4311.78518518518
53264319262058.7851851852260.21481481481
54268347261230.9851851857116.01481481481
55273046257655.78518518515390.2148148148
56273963256169.78518518517793.2148148148
57267430250322.98518518517107.0148148148
58271993244612.0698412727380.9301587302
59292710265762.6698412726947.3301587302
60295881267934.2698412727946.7301587302

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 286602 & 291468.160846561 & -4866.16084656058 \tabularnewline
2 & 283042 & 285996.360846561 & -2954.36084656087 \tabularnewline
3 & 276687 & 280436.360846561 & -3749.36084656086 \tabularnewline
4 & 277915 & 282761.760846561 & -4846.76084656088 \tabularnewline
5 & 277128 & 284743.760846561 & -7615.76084656085 \tabularnewline
6 & 277103 & 283915.960846561 & -6812.96084656087 \tabularnewline
7 & 275037 & 280340.760846561 & -5303.76084656087 \tabularnewline
8 & 270150 & 278854.760846561 & -8704.76084656087 \tabularnewline
9 & 267140 & 273007.960846561 & -5867.96084656083 \tabularnewline
10 & 264993 & 267297.045502645 & -2304.04550264550 \tabularnewline
11 & 287259 & 288447.645502646 & -1188.64550264552 \tabularnewline
12 & 291186 & 290619.245502645 & 566.754497354496 \tabularnewline
13 & 292300 & 281164.522751323 & 11135.4772486772 \tabularnewline
14 & 288186 & 275692.722751323 & 12493.2772486772 \tabularnewline
15 & 281477 & 270132.722751323 & 11344.2772486772 \tabularnewline
16 & 282656 & 272458.122751323 & 10197.8772486773 \tabularnewline
17 & 280190 & 274440.122751323 & 5749.87724867724 \tabularnewline
18 & 280408 & 273612.322751323 & 6795.67724867724 \tabularnewline
19 & 276836 & 270037.122751323 & 6798.87724867725 \tabularnewline
20 & 275216 & 268551.122751323 & 6664.87724867725 \tabularnewline
21 & 274352 & 262704.322751323 & 11647.6772486772 \tabularnewline
22 & 271311 & 256993.407407407 & 14317.5925925926 \tabularnewline
23 & 289802 & 278144.007407407 & 11657.9925925926 \tabularnewline
24 & 290726 & 280315.607407407 & 10410.3925925926 \tabularnewline
25 & 292300 & 270860.884656085 & 21439.1153439153 \tabularnewline
26 & 278506 & 265389.084656085 & 13116.9153439154 \tabularnewline
27 & 269826 & 259829.084656085 & 9996.91534391535 \tabularnewline
28 & 265861 & 262154.484656085 & 3706.51534391535 \tabularnewline
29 & 269034 & 264136.484656085 & 4897.51534391534 \tabularnewline
30 & 264176 & 263308.684656085 & 867.315343915351 \tabularnewline
31 & 255198 & 259733.484656085 & -4535.48465608465 \tabularnewline
32 & 253353 & 258247.484656085 & -4894.48465608464 \tabularnewline
33 & 246057 & 252400.684656085 & -6343.68465608465 \tabularnewline
34 & 235372 & 246689.769312169 & -11317.7693121693 \tabularnewline
35 & 258556 & 267840.369312169 & -9284.3693121693 \tabularnewline
36 & 260993 & 270011.969312169 & -9018.96931216931 \tabularnewline
37 & 254663 & 260557.246560847 & -5894.24656084662 \tabularnewline
38 & 250643 & 255085.446560847 & -4442.44656084654 \tabularnewline
39 & 243422 & 249525.446560847 & -6103.44656084655 \tabularnewline
40 & 247105 & 251850.846560847 & -4745.84656084654 \tabularnewline
41 & 248541 & 253832.846560847 & -5291.84656084655 \tabularnewline
42 & 245039 & 253005.046560847 & -7966.04656084655 \tabularnewline
43 & 237080 & 249429.846560847 & -12349.8465608465 \tabularnewline
44 & 237085 & 247943.846560847 & -10858.8465608466 \tabularnewline
45 & 225554 & 242097.046560847 & -16543.0465608466 \tabularnewline
46 & 226839 & 254915.707936508 & -28076.7079365079 \tabularnewline
47 & 247934 & 276066.307936508 & -28132.3079365079 \tabularnewline
48 & 248333 & 278237.907936508 & -29904.9079365079 \tabularnewline
49 & 246969 & 268783.185185185 & -21814.1851851852 \tabularnewline
50 & 245098 & 263311.385185185 & -18213.3851851852 \tabularnewline
51 & 246263 & 257751.385185185 & -11488.3851851852 \tabularnewline
52 & 255765 & 260076.785185185 & -4311.78518518518 \tabularnewline
53 & 264319 & 262058.785185185 & 2260.21481481481 \tabularnewline
54 & 268347 & 261230.985185185 & 7116.01481481481 \tabularnewline
55 & 273046 & 257655.785185185 & 15390.2148148148 \tabularnewline
56 & 273963 & 256169.785185185 & 17793.2148148148 \tabularnewline
57 & 267430 & 250322.985185185 & 17107.0148148148 \tabularnewline
58 & 271993 & 244612.06984127 & 27380.9301587302 \tabularnewline
59 & 292710 & 265762.66984127 & 26947.3301587302 \tabularnewline
60 & 295881 & 267934.26984127 & 27946.7301587302 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58419&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]286602[/C][C]291468.160846561[/C][C]-4866.16084656058[/C][/ROW]
[ROW][C]2[/C][C]283042[/C][C]285996.360846561[/C][C]-2954.36084656087[/C][/ROW]
[ROW][C]3[/C][C]276687[/C][C]280436.360846561[/C][C]-3749.36084656086[/C][/ROW]
[ROW][C]4[/C][C]277915[/C][C]282761.760846561[/C][C]-4846.76084656088[/C][/ROW]
[ROW][C]5[/C][C]277128[/C][C]284743.760846561[/C][C]-7615.76084656085[/C][/ROW]
[ROW][C]6[/C][C]277103[/C][C]283915.960846561[/C][C]-6812.96084656087[/C][/ROW]
[ROW][C]7[/C][C]275037[/C][C]280340.760846561[/C][C]-5303.76084656087[/C][/ROW]
[ROW][C]8[/C][C]270150[/C][C]278854.760846561[/C][C]-8704.76084656087[/C][/ROW]
[ROW][C]9[/C][C]267140[/C][C]273007.960846561[/C][C]-5867.96084656083[/C][/ROW]
[ROW][C]10[/C][C]264993[/C][C]267297.045502645[/C][C]-2304.04550264550[/C][/ROW]
[ROW][C]11[/C][C]287259[/C][C]288447.645502646[/C][C]-1188.64550264552[/C][/ROW]
[ROW][C]12[/C][C]291186[/C][C]290619.245502645[/C][C]566.754497354496[/C][/ROW]
[ROW][C]13[/C][C]292300[/C][C]281164.522751323[/C][C]11135.4772486772[/C][/ROW]
[ROW][C]14[/C][C]288186[/C][C]275692.722751323[/C][C]12493.2772486772[/C][/ROW]
[ROW][C]15[/C][C]281477[/C][C]270132.722751323[/C][C]11344.2772486772[/C][/ROW]
[ROW][C]16[/C][C]282656[/C][C]272458.122751323[/C][C]10197.8772486773[/C][/ROW]
[ROW][C]17[/C][C]280190[/C][C]274440.122751323[/C][C]5749.87724867724[/C][/ROW]
[ROW][C]18[/C][C]280408[/C][C]273612.322751323[/C][C]6795.67724867724[/C][/ROW]
[ROW][C]19[/C][C]276836[/C][C]270037.122751323[/C][C]6798.87724867725[/C][/ROW]
[ROW][C]20[/C][C]275216[/C][C]268551.122751323[/C][C]6664.87724867725[/C][/ROW]
[ROW][C]21[/C][C]274352[/C][C]262704.322751323[/C][C]11647.6772486772[/C][/ROW]
[ROW][C]22[/C][C]271311[/C][C]256993.407407407[/C][C]14317.5925925926[/C][/ROW]
[ROW][C]23[/C][C]289802[/C][C]278144.007407407[/C][C]11657.9925925926[/C][/ROW]
[ROW][C]24[/C][C]290726[/C][C]280315.607407407[/C][C]10410.3925925926[/C][/ROW]
[ROW][C]25[/C][C]292300[/C][C]270860.884656085[/C][C]21439.1153439153[/C][/ROW]
[ROW][C]26[/C][C]278506[/C][C]265389.084656085[/C][C]13116.9153439154[/C][/ROW]
[ROW][C]27[/C][C]269826[/C][C]259829.084656085[/C][C]9996.91534391535[/C][/ROW]
[ROW][C]28[/C][C]265861[/C][C]262154.484656085[/C][C]3706.51534391535[/C][/ROW]
[ROW][C]29[/C][C]269034[/C][C]264136.484656085[/C][C]4897.51534391534[/C][/ROW]
[ROW][C]30[/C][C]264176[/C][C]263308.684656085[/C][C]867.315343915351[/C][/ROW]
[ROW][C]31[/C][C]255198[/C][C]259733.484656085[/C][C]-4535.48465608465[/C][/ROW]
[ROW][C]32[/C][C]253353[/C][C]258247.484656085[/C][C]-4894.48465608464[/C][/ROW]
[ROW][C]33[/C][C]246057[/C][C]252400.684656085[/C][C]-6343.68465608465[/C][/ROW]
[ROW][C]34[/C][C]235372[/C][C]246689.769312169[/C][C]-11317.7693121693[/C][/ROW]
[ROW][C]35[/C][C]258556[/C][C]267840.369312169[/C][C]-9284.3693121693[/C][/ROW]
[ROW][C]36[/C][C]260993[/C][C]270011.969312169[/C][C]-9018.96931216931[/C][/ROW]
[ROW][C]37[/C][C]254663[/C][C]260557.246560847[/C][C]-5894.24656084662[/C][/ROW]
[ROW][C]38[/C][C]250643[/C][C]255085.446560847[/C][C]-4442.44656084654[/C][/ROW]
[ROW][C]39[/C][C]243422[/C][C]249525.446560847[/C][C]-6103.44656084655[/C][/ROW]
[ROW][C]40[/C][C]247105[/C][C]251850.846560847[/C][C]-4745.84656084654[/C][/ROW]
[ROW][C]41[/C][C]248541[/C][C]253832.846560847[/C][C]-5291.84656084655[/C][/ROW]
[ROW][C]42[/C][C]245039[/C][C]253005.046560847[/C][C]-7966.04656084655[/C][/ROW]
[ROW][C]43[/C][C]237080[/C][C]249429.846560847[/C][C]-12349.8465608465[/C][/ROW]
[ROW][C]44[/C][C]237085[/C][C]247943.846560847[/C][C]-10858.8465608466[/C][/ROW]
[ROW][C]45[/C][C]225554[/C][C]242097.046560847[/C][C]-16543.0465608466[/C][/ROW]
[ROW][C]46[/C][C]226839[/C][C]254915.707936508[/C][C]-28076.7079365079[/C][/ROW]
[ROW][C]47[/C][C]247934[/C][C]276066.307936508[/C][C]-28132.3079365079[/C][/ROW]
[ROW][C]48[/C][C]248333[/C][C]278237.907936508[/C][C]-29904.9079365079[/C][/ROW]
[ROW][C]49[/C][C]246969[/C][C]268783.185185185[/C][C]-21814.1851851852[/C][/ROW]
[ROW][C]50[/C][C]245098[/C][C]263311.385185185[/C][C]-18213.3851851852[/C][/ROW]
[ROW][C]51[/C][C]246263[/C][C]257751.385185185[/C][C]-11488.3851851852[/C][/ROW]
[ROW][C]52[/C][C]255765[/C][C]260076.785185185[/C][C]-4311.78518518518[/C][/ROW]
[ROW][C]53[/C][C]264319[/C][C]262058.785185185[/C][C]2260.21481481481[/C][/ROW]
[ROW][C]54[/C][C]268347[/C][C]261230.985185185[/C][C]7116.01481481481[/C][/ROW]
[ROW][C]55[/C][C]273046[/C][C]257655.785185185[/C][C]15390.2148148148[/C][/ROW]
[ROW][C]56[/C][C]273963[/C][C]256169.785185185[/C][C]17793.2148148148[/C][/ROW]
[ROW][C]57[/C][C]267430[/C][C]250322.985185185[/C][C]17107.0148148148[/C][/ROW]
[ROW][C]58[/C][C]271993[/C][C]244612.06984127[/C][C]27380.9301587302[/C][/ROW]
[ROW][C]59[/C][C]292710[/C][C]265762.66984127[/C][C]26947.3301587302[/C][/ROW]
[ROW][C]60[/C][C]295881[/C][C]267934.26984127[/C][C]27946.7301587302[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58419&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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
1286602291468.160846561-4866.16084656058
2283042285996.360846561-2954.36084656087
3276687280436.360846561-3749.36084656086
4277915282761.760846561-4846.76084656088
5277128284743.760846561-7615.76084656085
6277103283915.960846561-6812.96084656087
7275037280340.760846561-5303.76084656087
8270150278854.760846561-8704.76084656087
9267140273007.960846561-5867.96084656083
10264993267297.045502645-2304.04550264550
11287259288447.645502646-1188.64550264552
12291186290619.245502645566.754497354496
13292300281164.52275132311135.4772486772
14288186275692.72275132312493.2772486772
15281477270132.72275132311344.2772486772
16282656272458.12275132310197.8772486773
17280190274440.1227513235749.87724867724
18280408273612.3227513236795.67724867724
19276836270037.1227513236798.87724867725
20275216268551.1227513236664.87724867725
21274352262704.32275132311647.6772486772
22271311256993.40740740714317.5925925926
23289802278144.00740740711657.9925925926
24290726280315.60740740710410.3925925926
25292300270860.88465608521439.1153439153
26278506265389.08465608513116.9153439154
27269826259829.0846560859996.91534391535
28265861262154.4846560853706.51534391535
29269034264136.4846560854897.51534391534
30264176263308.684656085867.315343915351
31255198259733.484656085-4535.48465608465
32253353258247.484656085-4894.48465608464
33246057252400.684656085-6343.68465608465
34235372246689.769312169-11317.7693121693
35258556267840.369312169-9284.3693121693
36260993270011.969312169-9018.96931216931
37254663260557.246560847-5894.24656084662
38250643255085.446560847-4442.44656084654
39243422249525.446560847-6103.44656084655
40247105251850.846560847-4745.84656084654
41248541253832.846560847-5291.84656084655
42245039253005.046560847-7966.04656084655
43237080249429.846560847-12349.8465608465
44237085247943.846560847-10858.8465608466
45225554242097.046560847-16543.0465608466
46226839254915.707936508-28076.7079365079
47247934276066.307936508-28132.3079365079
48248333278237.907936508-29904.9079365079
49246969268783.185185185-21814.1851851852
50245098263311.385185185-18213.3851851852
51246263257751.385185185-11488.3851851852
52255765260076.785185185-4311.78518518518
53264319262058.7851851852260.21481481481
54268347261230.9851851857116.01481481481
55273046257655.78518518515390.2148148148
56273963256169.78518518517793.2148148148
57267430250322.98518518517107.0148148148
58271993244612.0698412727380.9301587302
59292710265762.6698412726947.3301587302
60295881267934.2698412727946.7301587302







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0001361087397260550.0002722174794521100.999863891260274
189.8240077334868e-061.96480154669736e-050.999990175992266
192.41865338570884e-064.83730677141767e-060.999997581346614
201.50760129608247e-073.01520259216494e-070.99999984923987
214.27371871427268e-088.54743742854537e-080.999999957262813
224.61035879434699e-099.22071758869399e-090.99999999538964
236.35788730089558e-101.27157746017912e-090.999999999364211
248.76244940826283e-101.75248988165257e-090.999999999123755
254.98162206386414e-109.96324412772828e-100.999999999501838
262.42428256344013e-074.84856512688027e-070.999999757571744
272.88850392459384e-065.77700784918767e-060.999997111496075
283.18550778620203e-056.37101557240405e-050.999968144922138
294.17225184766949e-058.34450369533899e-050.999958277481523
300.0001128142802693230.0002256285605386450.99988718571973
310.0005573027642052000.001114605528410400.999442697235795
320.001442998423228080.002885996846456160.998557001576772
330.01285207751445570.02570415502891130.987147922485544
340.04174050530086070.08348101060172140.95825949469914
350.08242883611159260.1648576722231850.917571163888407
360.1881639007890820.3763278015781630.811836099210918
370.3428504051678050.6857008103356090.657149594832195
380.5640787272799630.8718425454400740.435921272720037
390.7361204537413280.5277590925173440.263879546258672
400.8748365566064860.2503268867870290.125163443393514
410.960269013171210.07946197365757820.0397309868287891
420.9978146706224590.004370658755082510.00218532937754125
430.9927582550688670.01448348986226690.00724174493113345

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.000136108739726055 & 0.000272217479452110 & 0.999863891260274 \tabularnewline
18 & 9.8240077334868e-06 & 1.96480154669736e-05 & 0.999990175992266 \tabularnewline
19 & 2.41865338570884e-06 & 4.83730677141767e-06 & 0.999997581346614 \tabularnewline
20 & 1.50760129608247e-07 & 3.01520259216494e-07 & 0.99999984923987 \tabularnewline
21 & 4.27371871427268e-08 & 8.54743742854537e-08 & 0.999999957262813 \tabularnewline
22 & 4.61035879434699e-09 & 9.22071758869399e-09 & 0.99999999538964 \tabularnewline
23 & 6.35788730089558e-10 & 1.27157746017912e-09 & 0.999999999364211 \tabularnewline
24 & 8.76244940826283e-10 & 1.75248988165257e-09 & 0.999999999123755 \tabularnewline
25 & 4.98162206386414e-10 & 9.96324412772828e-10 & 0.999999999501838 \tabularnewline
26 & 2.42428256344013e-07 & 4.84856512688027e-07 & 0.999999757571744 \tabularnewline
27 & 2.88850392459384e-06 & 5.77700784918767e-06 & 0.999997111496075 \tabularnewline
28 & 3.18550778620203e-05 & 6.37101557240405e-05 & 0.999968144922138 \tabularnewline
29 & 4.17225184766949e-05 & 8.34450369533899e-05 & 0.999958277481523 \tabularnewline
30 & 0.000112814280269323 & 0.000225628560538645 & 0.99988718571973 \tabularnewline
31 & 0.000557302764205200 & 0.00111460552841040 & 0.999442697235795 \tabularnewline
32 & 0.00144299842322808 & 0.00288599684645616 & 0.998557001576772 \tabularnewline
33 & 0.0128520775144557 & 0.0257041550289113 & 0.987147922485544 \tabularnewline
34 & 0.0417405053008607 & 0.0834810106017214 & 0.95825949469914 \tabularnewline
35 & 0.0824288361115926 & 0.164857672223185 & 0.917571163888407 \tabularnewline
36 & 0.188163900789082 & 0.376327801578163 & 0.811836099210918 \tabularnewline
37 & 0.342850405167805 & 0.685700810335609 & 0.657149594832195 \tabularnewline
38 & 0.564078727279963 & 0.871842545440074 & 0.435921272720037 \tabularnewline
39 & 0.736120453741328 & 0.527759092517344 & 0.263879546258672 \tabularnewline
40 & 0.874836556606486 & 0.250326886787029 & 0.125163443393514 \tabularnewline
41 & 0.96026901317121 & 0.0794619736575782 & 0.0397309868287891 \tabularnewline
42 & 0.997814670622459 & 0.00437065875508251 & 0.00218532937754125 \tabularnewline
43 & 0.992758255068867 & 0.0144834898622669 & 0.00724174493113345 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58419&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.000136108739726055[/C][C]0.000272217479452110[/C][C]0.999863891260274[/C][/ROW]
[ROW][C]18[/C][C]9.8240077334868e-06[/C][C]1.96480154669736e-05[/C][C]0.999990175992266[/C][/ROW]
[ROW][C]19[/C][C]2.41865338570884e-06[/C][C]4.83730677141767e-06[/C][C]0.999997581346614[/C][/ROW]
[ROW][C]20[/C][C]1.50760129608247e-07[/C][C]3.01520259216494e-07[/C][C]0.99999984923987[/C][/ROW]
[ROW][C]21[/C][C]4.27371871427268e-08[/C][C]8.54743742854537e-08[/C][C]0.999999957262813[/C][/ROW]
[ROW][C]22[/C][C]4.61035879434699e-09[/C][C]9.22071758869399e-09[/C][C]0.99999999538964[/C][/ROW]
[ROW][C]23[/C][C]6.35788730089558e-10[/C][C]1.27157746017912e-09[/C][C]0.999999999364211[/C][/ROW]
[ROW][C]24[/C][C]8.76244940826283e-10[/C][C]1.75248988165257e-09[/C][C]0.999999999123755[/C][/ROW]
[ROW][C]25[/C][C]4.98162206386414e-10[/C][C]9.96324412772828e-10[/C][C]0.999999999501838[/C][/ROW]
[ROW][C]26[/C][C]2.42428256344013e-07[/C][C]4.84856512688027e-07[/C][C]0.999999757571744[/C][/ROW]
[ROW][C]27[/C][C]2.88850392459384e-06[/C][C]5.77700784918767e-06[/C][C]0.999997111496075[/C][/ROW]
[ROW][C]28[/C][C]3.18550778620203e-05[/C][C]6.37101557240405e-05[/C][C]0.999968144922138[/C][/ROW]
[ROW][C]29[/C][C]4.17225184766949e-05[/C][C]8.34450369533899e-05[/C][C]0.999958277481523[/C][/ROW]
[ROW][C]30[/C][C]0.000112814280269323[/C][C]0.000225628560538645[/C][C]0.99988718571973[/C][/ROW]
[ROW][C]31[/C][C]0.000557302764205200[/C][C]0.00111460552841040[/C][C]0.999442697235795[/C][/ROW]
[ROW][C]32[/C][C]0.00144299842322808[/C][C]0.00288599684645616[/C][C]0.998557001576772[/C][/ROW]
[ROW][C]33[/C][C]0.0128520775144557[/C][C]0.0257041550289113[/C][C]0.987147922485544[/C][/ROW]
[ROW][C]34[/C][C]0.0417405053008607[/C][C]0.0834810106017214[/C][C]0.95825949469914[/C][/ROW]
[ROW][C]35[/C][C]0.0824288361115926[/C][C]0.164857672223185[/C][C]0.917571163888407[/C][/ROW]
[ROW][C]36[/C][C]0.188163900789082[/C][C]0.376327801578163[/C][C]0.811836099210918[/C][/ROW]
[ROW][C]37[/C][C]0.342850405167805[/C][C]0.685700810335609[/C][C]0.657149594832195[/C][/ROW]
[ROW][C]38[/C][C]0.564078727279963[/C][C]0.871842545440074[/C][C]0.435921272720037[/C][/ROW]
[ROW][C]39[/C][C]0.736120453741328[/C][C]0.527759092517344[/C][C]0.263879546258672[/C][/ROW]
[ROW][C]40[/C][C]0.874836556606486[/C][C]0.250326886787029[/C][C]0.125163443393514[/C][/ROW]
[ROW][C]41[/C][C]0.96026901317121[/C][C]0.0794619736575782[/C][C]0.0397309868287891[/C][/ROW]
[ROW][C]42[/C][C]0.997814670622459[/C][C]0.00437065875508251[/C][C]0.00218532937754125[/C][/ROW]
[ROW][C]43[/C][C]0.992758255068867[/C][C]0.0144834898622669[/C][C]0.00724174493113345[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58419&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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.0001361087397260550.0002722174794521100.999863891260274
189.8240077334868e-061.96480154669736e-050.999990175992266
192.41865338570884e-064.83730677141767e-060.999997581346614
201.50760129608247e-073.01520259216494e-070.99999984923987
214.27371871427268e-088.54743742854537e-080.999999957262813
224.61035879434699e-099.22071758869399e-090.99999999538964
236.35788730089558e-101.27157746017912e-090.999999999364211
248.76244940826283e-101.75248988165257e-090.999999999123755
254.98162206386414e-109.96324412772828e-100.999999999501838
262.42428256344013e-074.84856512688027e-070.999999757571744
272.88850392459384e-065.77700784918767e-060.999997111496075
283.18550778620203e-056.37101557240405e-050.999968144922138
294.17225184766949e-058.34450369533899e-050.999958277481523
300.0001128142802693230.0002256285605386450.99988718571973
310.0005573027642052000.001114605528410400.999442697235795
320.001442998423228080.002885996846456160.998557001576772
330.01285207751445570.02570415502891130.987147922485544
340.04174050530086070.08348101060172140.95825949469914
350.08242883611159260.1648576722231850.917571163888407
360.1881639007890820.3763278015781630.811836099210918
370.3428504051678050.6857008103356090.657149594832195
380.5640787272799630.8718425454400740.435921272720037
390.7361204537413280.5277590925173440.263879546258672
400.8748365566064860.2503268867870290.125163443393514
410.960269013171210.07946197365757820.0397309868287891
420.9978146706224590.004370658755082510.00218532937754125
430.9927582550688670.01448348986226690.00724174493113345







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.62962962962963NOK
5% type I error level190.703703703703704NOK
10% type I error level210.777777777777778NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58419&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 level170.62962962962963NOK
5% type I error level190.703703703703704NOK
10% type I error level210.777777777777778NOK



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