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 14:23:16 -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/t12587523186ddhs9nl9dj0mdu.htm/, Retrieved Sat, 20 Apr 2024 01:09:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58473, Retrieved Sat, 20 Apr 2024 01:09:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [workshop 3] [2009-11-20 14:44:02] [68cb6e9d2b1cb3475e83bcdfaf88b501]
- R  D        [Multiple Regression] [multiple regression] [2009-11-20 21:23:16] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
107.11	107.56
107.57	107.70
107.81	107.67
108.75	107.67
109.43	107.72
109.62	108.35
109.54	108.25
109.53	108.26
109.84	108.31
109.67	108.33
109.79	108.36
109.56	108.36
110.22	108.97
110.40	109.62
110.69	109.60
110.72	109.64
110.89	109.65
110.58	109.64
110.94	109.93
110.91	109.81
111.22	109.77
111.09	110.10
111.00	110.40
111.06	110.50
111.55	111.89
112.32	112.10
112.64	111.92
112.36	112.15
112.04	112.16
112.37	112.17
112.59	112.32
112.89	112.38
113.22	112.34
112.85	113.14
113.06	113.18
112.99	113.21
113.32	113.76
113.74	113.99
113.91	113.95
114.52	113.93
114.96	114.01
114.91	114.10
115.30	114.11
115.44	114.10
115.52	114.12
116.08	114.68
115.94	114.71
115.56	114.73
115.88	115.81
116.66	116.01
117.41	116.12
117.68	116.49
117.85	116.51
118.21	116.60
118.92	117.01
119.03	117.01
119.17	117.12
118.95	117.22
118.92	118.38
118.90	118.80




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.0956913721724628 + 1.00521297181906X[t] -0.468065856891305M1[t] -0.233556766831644M2[t] + 0.152610048266569M3[t] + 0.341963639761006M4[t] + 0.535786398719157M5[t] + 0.476941897284473M6[t] + 0.644149525567973M7[t] + 0.7582120812298M8[t] + 0.972107821793418M9[t] + 0.54222072599492M10[t] + 0.242594278787373M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -0.0956913721724628 +  1.00521297181906X[t] -0.468065856891305M1[t] -0.233556766831644M2[t] +  0.152610048266569M3[t] +  0.341963639761006M4[t] +  0.535786398719157M5[t] +  0.476941897284473M6[t] +  0.644149525567973M7[t] +  0.7582120812298M8[t] +  0.972107821793418M9[t] +  0.54222072599492M10[t] +  0.242594278787373M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58473&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -0.0956913721724628 +  1.00521297181906X[t] -0.468065856891305M1[t] -0.233556766831644M2[t] +  0.152610048266569M3[t] +  0.341963639761006M4[t] +  0.535786398719157M5[t] +  0.476941897284473M6[t] +  0.644149525567973M7[t] +  0.7582120812298M8[t] +  0.972107821793418M9[t] +  0.54222072599492M10[t] +  0.242594278787373M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58473&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.0956913721724628 + 1.00521297181906X[t] -0.468065856891305M1[t] -0.233556766831644M2[t] + 0.152610048266569M3[t] + 0.341963639761006M4[t] + 0.535786398719157M5[t] + 0.476941897284473M6[t] + 0.644149525567973M7[t] + 0.7582120812298M8[t] + 0.972107821793418M9[t] + 0.54222072599492M10[t] + 0.242594278787373M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-0.09569137217246282.760814-0.03470.9724970.486249
X1.005212971819060.02429341.378100
M1-0.4680658568913050.376634-1.24280.2201210.11006
M2-0.2335567668316440.376015-0.62110.5375110.268756
M30.1526100482665690.3760780.40580.6867360.343368
M40.3419636397610060.3758440.90990.3675410.18377
M50.5357863987191570.3757831.42580.1605390.080269
M60.4769418972844730.3755221.27010.2103090.105154
M70.6441495255679730.3753131.71630.0926930.046346
M80.75821208122980.3753282.02010.049090.024545
M90.9721078217934180.3753032.59020.0127330.006367
M100.542220725994920.3749571.44610.1547890.077395
M110.2425942787873730.3748250.64720.5206380.260319

\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) & -0.0956913721724628 & 2.760814 & -0.0347 & 0.972497 & 0.486249 \tabularnewline
X & 1.00521297181906 & 0.024293 & 41.3781 & 0 & 0 \tabularnewline
M1 & -0.468065856891305 & 0.376634 & -1.2428 & 0.220121 & 0.11006 \tabularnewline
M2 & -0.233556766831644 & 0.376015 & -0.6211 & 0.537511 & 0.268756 \tabularnewline
M3 & 0.152610048266569 & 0.376078 & 0.4058 & 0.686736 & 0.343368 \tabularnewline
M4 & 0.341963639761006 & 0.375844 & 0.9099 & 0.367541 & 0.18377 \tabularnewline
M5 & 0.535786398719157 & 0.375783 & 1.4258 & 0.160539 & 0.080269 \tabularnewline
M6 & 0.476941897284473 & 0.375522 & 1.2701 & 0.210309 & 0.105154 \tabularnewline
M7 & 0.644149525567973 & 0.375313 & 1.7163 & 0.092693 & 0.046346 \tabularnewline
M8 & 0.7582120812298 & 0.375328 & 2.0201 & 0.04909 & 0.024545 \tabularnewline
M9 & 0.972107821793418 & 0.375303 & 2.5902 & 0.012733 & 0.006367 \tabularnewline
M10 & 0.54222072599492 & 0.374957 & 1.4461 & 0.154789 & 0.077395 \tabularnewline
M11 & 0.242594278787373 & 0.374825 & 0.6472 & 0.520638 & 0.260319 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58473&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]-0.0956913721724628[/C][C]2.760814[/C][C]-0.0347[/C][C]0.972497[/C][C]0.486249[/C][/ROW]
[ROW][C]X[/C][C]1.00521297181906[/C][C]0.024293[/C][C]41.3781[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.468065856891305[/C][C]0.376634[/C][C]-1.2428[/C][C]0.220121[/C][C]0.11006[/C][/ROW]
[ROW][C]M2[/C][C]-0.233556766831644[/C][C]0.376015[/C][C]-0.6211[/C][C]0.537511[/C][C]0.268756[/C][/ROW]
[ROW][C]M3[/C][C]0.152610048266569[/C][C]0.376078[/C][C]0.4058[/C][C]0.686736[/C][C]0.343368[/C][/ROW]
[ROW][C]M4[/C][C]0.341963639761006[/C][C]0.375844[/C][C]0.9099[/C][C]0.367541[/C][C]0.18377[/C][/ROW]
[ROW][C]M5[/C][C]0.535786398719157[/C][C]0.375783[/C][C]1.4258[/C][C]0.160539[/C][C]0.080269[/C][/ROW]
[ROW][C]M6[/C][C]0.476941897284473[/C][C]0.375522[/C][C]1.2701[/C][C]0.210309[/C][C]0.105154[/C][/ROW]
[ROW][C]M7[/C][C]0.644149525567973[/C][C]0.375313[/C][C]1.7163[/C][C]0.092693[/C][C]0.046346[/C][/ROW]
[ROW][C]M8[/C][C]0.7582120812298[/C][C]0.375328[/C][C]2.0201[/C][C]0.04909[/C][C]0.024545[/C][/ROW]
[ROW][C]M9[/C][C]0.972107821793418[/C][C]0.375303[/C][C]2.5902[/C][C]0.012733[/C][C]0.006367[/C][/ROW]
[ROW][C]M10[/C][C]0.54222072599492[/C][C]0.374957[/C][C]1.4461[/C][C]0.154789[/C][C]0.077395[/C][/ROW]
[ROW][C]M11[/C][C]0.242594278787373[/C][C]0.374825[/C][C]0.6472[/C][C]0.520638[/C][C]0.260319[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58473&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58473&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)-0.09569137217246282.760814-0.03470.9724970.486249
X1.005212971819060.02429341.378100
M1-0.4680658568913050.376634-1.24280.2201210.11006
M2-0.2335567668316440.376015-0.62110.5375110.268756
M30.1526100482665690.3760780.40580.6867360.343368
M40.3419636397610060.3758440.90990.3675410.18377
M50.5357863987191570.3757831.42580.1605390.080269
M60.4769418972844730.3755221.27010.2103090.105154
M70.6441495255679730.3753131.71630.0926930.046346
M80.75821208122980.3753282.02010.049090.024545
M90.9721078217934180.3753032.59020.0127330.006367
M100.542220725994920.3749571.44610.1547890.077395
M110.2425942787873730.3748250.64720.5206380.260319







Multiple Linear Regression - Regression Statistics
Multiple R0.987125789053487
R-squared0.974417323414469
Adjusted R-squared0.967885576201141
F-TEST (value)149.181726051232
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.592634001321065
Sum Squared Residuals16.5071077975254

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987125789053487 \tabularnewline
R-squared & 0.974417323414469 \tabularnewline
Adjusted R-squared & 0.967885576201141 \tabularnewline
F-TEST (value) & 149.181726051232 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.592634001321065 \tabularnewline
Sum Squared Residuals & 16.5071077975254 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58473&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987125789053487[/C][/ROW]
[ROW][C]R-squared[/C][C]0.974417323414469[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.967885576201141[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]149.181726051232[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.592634001321065[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]16.5071077975254[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58473&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58473&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.987125789053487
R-squared0.974417323414469
Adjusted R-squared0.967885576201141
F-TEST (value)149.181726051232
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.592634001321065
Sum Squared Residuals16.5071077975254







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1107.11107.556950019794-0.446950019794272
2107.57107.932188925909-0.362188925909045
3107.81108.288199351853-0.47819935185267
4108.75108.4775529433470.272447056652891
5109.43108.7216363508960.708363649103795
6109.62109.2960760217080.323923978292471
7109.54109.3627623528090.177237647190873
8109.53109.4868770381890.0431229618108451
9109.84109.7510334273440.08896657265628
10109.67109.3412505909820.328749409018399
11109.79109.0717805329290.718219467071378
12109.56108.8291862541410.730813745858746
13110.22108.9743003100601.24569968994042
14110.4109.8621978318020.537802168198367
15110.69110.2282603874630.461739612536538
16110.72110.4578224978310.262177502169334
17110.89110.6616973865070.228302613492988
18110.58110.592800755354-0.0128007553541341
19110.94111.051520145465-0.111520145465170
20110.91111.044957144509-0.134957144508706
21111.22111.2186443662000.00135563380044771
22111.09111.120477551101-0.0304775511013389
23111111.122414995440-0.122414995439526
24111.06110.9803420138340.0796579861659482
25111.55111.909522187771-0.359522187771252
26112.32112.355126001913-0.0351260019129142
27112.64112.5603544820840.0796455179163046
28112.36112.980907057097-0.620907057096522
29112.04113.184781945773-1.14478194577285
30112.37113.135989574056-0.765989574056362
31112.59113.453979148113-0.863979148112714
32112.89113.628354482084-0.73835448208369
33113.22113.802041703775-0.582041703774555
34112.85114.176324985431-1.32632498543131
35113.06113.916907057097-0.856907057096523
36112.99113.704469167464-0.714469167463717
37113.32113.789270445073-0.46927044507291
38113.74114.254978518651-0.514978518650945
39113.91114.600936814876-0.690936814876401
40114.52114.770186146934-0.250186146934460
41114.96115.044425943638-0.0844259436381378
42114.91115.076050609667-0.166050609667156
43115.3115.2533103676690.0466896323311486
44115.44115.3573207936120.0826792063875177
45115.52115.591320793612-0.0713207936124928
46116.08115.7243529620330.355647037967329
47115.94115.4548829039800.485117096020317
48115.56115.2323928846290.327607115371302
49115.88115.8499570373020.0300429626980139
50116.66116.2855087217250.374491278274537
51117.41116.7822489637240.627751036276228
52117.68117.3435313547910.336468645208758
53117.85117.5574583731860.292541626814202
54118.21117.5890830392150.620916960785181
55118.92118.1684279859440.751572014055861
56119.03118.2824905416060.747509458394033
57119.17118.6069597090700.56304029093032
58118.95118.2775939104530.672406089546919
59118.92119.144014510556-0.224014510555646
60118.9119.323609679932-0.423609679932279

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 107.11 & 107.556950019794 & -0.446950019794272 \tabularnewline
2 & 107.57 & 107.932188925909 & -0.362188925909045 \tabularnewline
3 & 107.81 & 108.288199351853 & -0.47819935185267 \tabularnewline
4 & 108.75 & 108.477552943347 & 0.272447056652891 \tabularnewline
5 & 109.43 & 108.721636350896 & 0.708363649103795 \tabularnewline
6 & 109.62 & 109.296076021708 & 0.323923978292471 \tabularnewline
7 & 109.54 & 109.362762352809 & 0.177237647190873 \tabularnewline
8 & 109.53 & 109.486877038189 & 0.0431229618108451 \tabularnewline
9 & 109.84 & 109.751033427344 & 0.08896657265628 \tabularnewline
10 & 109.67 & 109.341250590982 & 0.328749409018399 \tabularnewline
11 & 109.79 & 109.071780532929 & 0.718219467071378 \tabularnewline
12 & 109.56 & 108.829186254141 & 0.730813745858746 \tabularnewline
13 & 110.22 & 108.974300310060 & 1.24569968994042 \tabularnewline
14 & 110.4 & 109.862197831802 & 0.537802168198367 \tabularnewline
15 & 110.69 & 110.228260387463 & 0.461739612536538 \tabularnewline
16 & 110.72 & 110.457822497831 & 0.262177502169334 \tabularnewline
17 & 110.89 & 110.661697386507 & 0.228302613492988 \tabularnewline
18 & 110.58 & 110.592800755354 & -0.0128007553541341 \tabularnewline
19 & 110.94 & 111.051520145465 & -0.111520145465170 \tabularnewline
20 & 110.91 & 111.044957144509 & -0.134957144508706 \tabularnewline
21 & 111.22 & 111.218644366200 & 0.00135563380044771 \tabularnewline
22 & 111.09 & 111.120477551101 & -0.0304775511013389 \tabularnewline
23 & 111 & 111.122414995440 & -0.122414995439526 \tabularnewline
24 & 111.06 & 110.980342013834 & 0.0796579861659482 \tabularnewline
25 & 111.55 & 111.909522187771 & -0.359522187771252 \tabularnewline
26 & 112.32 & 112.355126001913 & -0.0351260019129142 \tabularnewline
27 & 112.64 & 112.560354482084 & 0.0796455179163046 \tabularnewline
28 & 112.36 & 112.980907057097 & -0.620907057096522 \tabularnewline
29 & 112.04 & 113.184781945773 & -1.14478194577285 \tabularnewline
30 & 112.37 & 113.135989574056 & -0.765989574056362 \tabularnewline
31 & 112.59 & 113.453979148113 & -0.863979148112714 \tabularnewline
32 & 112.89 & 113.628354482084 & -0.73835448208369 \tabularnewline
33 & 113.22 & 113.802041703775 & -0.582041703774555 \tabularnewline
34 & 112.85 & 114.176324985431 & -1.32632498543131 \tabularnewline
35 & 113.06 & 113.916907057097 & -0.856907057096523 \tabularnewline
36 & 112.99 & 113.704469167464 & -0.714469167463717 \tabularnewline
37 & 113.32 & 113.789270445073 & -0.46927044507291 \tabularnewline
38 & 113.74 & 114.254978518651 & -0.514978518650945 \tabularnewline
39 & 113.91 & 114.600936814876 & -0.690936814876401 \tabularnewline
40 & 114.52 & 114.770186146934 & -0.250186146934460 \tabularnewline
41 & 114.96 & 115.044425943638 & -0.0844259436381378 \tabularnewline
42 & 114.91 & 115.076050609667 & -0.166050609667156 \tabularnewline
43 & 115.3 & 115.253310367669 & 0.0466896323311486 \tabularnewline
44 & 115.44 & 115.357320793612 & 0.0826792063875177 \tabularnewline
45 & 115.52 & 115.591320793612 & -0.0713207936124928 \tabularnewline
46 & 116.08 & 115.724352962033 & 0.355647037967329 \tabularnewline
47 & 115.94 & 115.454882903980 & 0.485117096020317 \tabularnewline
48 & 115.56 & 115.232392884629 & 0.327607115371302 \tabularnewline
49 & 115.88 & 115.849957037302 & 0.0300429626980139 \tabularnewline
50 & 116.66 & 116.285508721725 & 0.374491278274537 \tabularnewline
51 & 117.41 & 116.782248963724 & 0.627751036276228 \tabularnewline
52 & 117.68 & 117.343531354791 & 0.336468645208758 \tabularnewline
53 & 117.85 & 117.557458373186 & 0.292541626814202 \tabularnewline
54 & 118.21 & 117.589083039215 & 0.620916960785181 \tabularnewline
55 & 118.92 & 118.168427985944 & 0.751572014055861 \tabularnewline
56 & 119.03 & 118.282490541606 & 0.747509458394033 \tabularnewline
57 & 119.17 & 118.606959709070 & 0.56304029093032 \tabularnewline
58 & 118.95 & 118.277593910453 & 0.672406089546919 \tabularnewline
59 & 118.92 & 119.144014510556 & -0.224014510555646 \tabularnewline
60 & 118.9 & 119.323609679932 & -0.423609679932279 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58473&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]107.11[/C][C]107.556950019794[/C][C]-0.446950019794272[/C][/ROW]
[ROW][C]2[/C][C]107.57[/C][C]107.932188925909[/C][C]-0.362188925909045[/C][/ROW]
[ROW][C]3[/C][C]107.81[/C][C]108.288199351853[/C][C]-0.47819935185267[/C][/ROW]
[ROW][C]4[/C][C]108.75[/C][C]108.477552943347[/C][C]0.272447056652891[/C][/ROW]
[ROW][C]5[/C][C]109.43[/C][C]108.721636350896[/C][C]0.708363649103795[/C][/ROW]
[ROW][C]6[/C][C]109.62[/C][C]109.296076021708[/C][C]0.323923978292471[/C][/ROW]
[ROW][C]7[/C][C]109.54[/C][C]109.362762352809[/C][C]0.177237647190873[/C][/ROW]
[ROW][C]8[/C][C]109.53[/C][C]109.486877038189[/C][C]0.0431229618108451[/C][/ROW]
[ROW][C]9[/C][C]109.84[/C][C]109.751033427344[/C][C]0.08896657265628[/C][/ROW]
[ROW][C]10[/C][C]109.67[/C][C]109.341250590982[/C][C]0.328749409018399[/C][/ROW]
[ROW][C]11[/C][C]109.79[/C][C]109.071780532929[/C][C]0.718219467071378[/C][/ROW]
[ROW][C]12[/C][C]109.56[/C][C]108.829186254141[/C][C]0.730813745858746[/C][/ROW]
[ROW][C]13[/C][C]110.22[/C][C]108.974300310060[/C][C]1.24569968994042[/C][/ROW]
[ROW][C]14[/C][C]110.4[/C][C]109.862197831802[/C][C]0.537802168198367[/C][/ROW]
[ROW][C]15[/C][C]110.69[/C][C]110.228260387463[/C][C]0.461739612536538[/C][/ROW]
[ROW][C]16[/C][C]110.72[/C][C]110.457822497831[/C][C]0.262177502169334[/C][/ROW]
[ROW][C]17[/C][C]110.89[/C][C]110.661697386507[/C][C]0.228302613492988[/C][/ROW]
[ROW][C]18[/C][C]110.58[/C][C]110.592800755354[/C][C]-0.0128007553541341[/C][/ROW]
[ROW][C]19[/C][C]110.94[/C][C]111.051520145465[/C][C]-0.111520145465170[/C][/ROW]
[ROW][C]20[/C][C]110.91[/C][C]111.044957144509[/C][C]-0.134957144508706[/C][/ROW]
[ROW][C]21[/C][C]111.22[/C][C]111.218644366200[/C][C]0.00135563380044771[/C][/ROW]
[ROW][C]22[/C][C]111.09[/C][C]111.120477551101[/C][C]-0.0304775511013389[/C][/ROW]
[ROW][C]23[/C][C]111[/C][C]111.122414995440[/C][C]-0.122414995439526[/C][/ROW]
[ROW][C]24[/C][C]111.06[/C][C]110.980342013834[/C][C]0.0796579861659482[/C][/ROW]
[ROW][C]25[/C][C]111.55[/C][C]111.909522187771[/C][C]-0.359522187771252[/C][/ROW]
[ROW][C]26[/C][C]112.32[/C][C]112.355126001913[/C][C]-0.0351260019129142[/C][/ROW]
[ROW][C]27[/C][C]112.64[/C][C]112.560354482084[/C][C]0.0796455179163046[/C][/ROW]
[ROW][C]28[/C][C]112.36[/C][C]112.980907057097[/C][C]-0.620907057096522[/C][/ROW]
[ROW][C]29[/C][C]112.04[/C][C]113.184781945773[/C][C]-1.14478194577285[/C][/ROW]
[ROW][C]30[/C][C]112.37[/C][C]113.135989574056[/C][C]-0.765989574056362[/C][/ROW]
[ROW][C]31[/C][C]112.59[/C][C]113.453979148113[/C][C]-0.863979148112714[/C][/ROW]
[ROW][C]32[/C][C]112.89[/C][C]113.628354482084[/C][C]-0.73835448208369[/C][/ROW]
[ROW][C]33[/C][C]113.22[/C][C]113.802041703775[/C][C]-0.582041703774555[/C][/ROW]
[ROW][C]34[/C][C]112.85[/C][C]114.176324985431[/C][C]-1.32632498543131[/C][/ROW]
[ROW][C]35[/C][C]113.06[/C][C]113.916907057097[/C][C]-0.856907057096523[/C][/ROW]
[ROW][C]36[/C][C]112.99[/C][C]113.704469167464[/C][C]-0.714469167463717[/C][/ROW]
[ROW][C]37[/C][C]113.32[/C][C]113.789270445073[/C][C]-0.46927044507291[/C][/ROW]
[ROW][C]38[/C][C]113.74[/C][C]114.254978518651[/C][C]-0.514978518650945[/C][/ROW]
[ROW][C]39[/C][C]113.91[/C][C]114.600936814876[/C][C]-0.690936814876401[/C][/ROW]
[ROW][C]40[/C][C]114.52[/C][C]114.770186146934[/C][C]-0.250186146934460[/C][/ROW]
[ROW][C]41[/C][C]114.96[/C][C]115.044425943638[/C][C]-0.0844259436381378[/C][/ROW]
[ROW][C]42[/C][C]114.91[/C][C]115.076050609667[/C][C]-0.166050609667156[/C][/ROW]
[ROW][C]43[/C][C]115.3[/C][C]115.253310367669[/C][C]0.0466896323311486[/C][/ROW]
[ROW][C]44[/C][C]115.44[/C][C]115.357320793612[/C][C]0.0826792063875177[/C][/ROW]
[ROW][C]45[/C][C]115.52[/C][C]115.591320793612[/C][C]-0.0713207936124928[/C][/ROW]
[ROW][C]46[/C][C]116.08[/C][C]115.724352962033[/C][C]0.355647037967329[/C][/ROW]
[ROW][C]47[/C][C]115.94[/C][C]115.454882903980[/C][C]0.485117096020317[/C][/ROW]
[ROW][C]48[/C][C]115.56[/C][C]115.232392884629[/C][C]0.327607115371302[/C][/ROW]
[ROW][C]49[/C][C]115.88[/C][C]115.849957037302[/C][C]0.0300429626980139[/C][/ROW]
[ROW][C]50[/C][C]116.66[/C][C]116.285508721725[/C][C]0.374491278274537[/C][/ROW]
[ROW][C]51[/C][C]117.41[/C][C]116.782248963724[/C][C]0.627751036276228[/C][/ROW]
[ROW][C]52[/C][C]117.68[/C][C]117.343531354791[/C][C]0.336468645208758[/C][/ROW]
[ROW][C]53[/C][C]117.85[/C][C]117.557458373186[/C][C]0.292541626814202[/C][/ROW]
[ROW][C]54[/C][C]118.21[/C][C]117.589083039215[/C][C]0.620916960785181[/C][/ROW]
[ROW][C]55[/C][C]118.92[/C][C]118.168427985944[/C][C]0.751572014055861[/C][/ROW]
[ROW][C]56[/C][C]119.03[/C][C]118.282490541606[/C][C]0.747509458394033[/C][/ROW]
[ROW][C]57[/C][C]119.17[/C][C]118.606959709070[/C][C]0.56304029093032[/C][/ROW]
[ROW][C]58[/C][C]118.95[/C][C]118.277593910453[/C][C]0.672406089546919[/C][/ROW]
[ROW][C]59[/C][C]118.92[/C][C]119.144014510556[/C][C]-0.224014510555646[/C][/ROW]
[ROW][C]60[/C][C]118.9[/C][C]119.323609679932[/C][C]-0.423609679932279[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58473&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58473&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
1107.11107.556950019794-0.446950019794272
2107.57107.932188925909-0.362188925909045
3107.81108.288199351853-0.47819935185267
4108.75108.4775529433470.272447056652891
5109.43108.7216363508960.708363649103795
6109.62109.2960760217080.323923978292471
7109.54109.3627623528090.177237647190873
8109.53109.4868770381890.0431229618108451
9109.84109.7510334273440.08896657265628
10109.67109.3412505909820.328749409018399
11109.79109.0717805329290.718219467071378
12109.56108.8291862541410.730813745858746
13110.22108.9743003100601.24569968994042
14110.4109.8621978318020.537802168198367
15110.69110.2282603874630.461739612536538
16110.72110.4578224978310.262177502169334
17110.89110.6616973865070.228302613492988
18110.58110.592800755354-0.0128007553541341
19110.94111.051520145465-0.111520145465170
20110.91111.044957144509-0.134957144508706
21111.22111.2186443662000.00135563380044771
22111.09111.120477551101-0.0304775511013389
23111111.122414995440-0.122414995439526
24111.06110.9803420138340.0796579861659482
25111.55111.909522187771-0.359522187771252
26112.32112.355126001913-0.0351260019129142
27112.64112.5603544820840.0796455179163046
28112.36112.980907057097-0.620907057096522
29112.04113.184781945773-1.14478194577285
30112.37113.135989574056-0.765989574056362
31112.59113.453979148113-0.863979148112714
32112.89113.628354482084-0.73835448208369
33113.22113.802041703775-0.582041703774555
34112.85114.176324985431-1.32632498543131
35113.06113.916907057097-0.856907057096523
36112.99113.704469167464-0.714469167463717
37113.32113.789270445073-0.46927044507291
38113.74114.254978518651-0.514978518650945
39113.91114.600936814876-0.690936814876401
40114.52114.770186146934-0.250186146934460
41114.96115.044425943638-0.0844259436381378
42114.91115.076050609667-0.166050609667156
43115.3115.2533103676690.0466896323311486
44115.44115.3573207936120.0826792063875177
45115.52115.591320793612-0.0713207936124928
46116.08115.7243529620330.355647037967329
47115.94115.4548829039800.485117096020317
48115.56115.2323928846290.327607115371302
49115.88115.8499570373020.0300429626980139
50116.66116.2855087217250.374491278274537
51117.41116.7822489637240.627751036276228
52117.68117.3435313547910.336468645208758
53117.85117.5574583731860.292541626814202
54118.21117.5890830392150.620916960785181
55118.92118.1684279859440.751572014055861
56119.03118.2824905416060.747509458394033
57119.17118.6069597090700.56304029093032
58118.95118.2775939104530.672406089546919
59118.92119.144014510556-0.224014510555646
60118.9119.323609679932-0.423609679932279







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.6271818544955760.7456362910088480.372818145504424
170.7606694766446240.4786610467107520.239330523355376
180.717915287023870.5641694259522610.282084712976130
190.665407489564590.6691850208708210.334592510435410
200.5812311978378360.8375376043243270.418768802162164
210.4990498408083130.9980996816166260.500950159191687
220.4697766762394970.9395533524789940.530223323760503
230.5468286870287980.9063426259424050.453171312971202
240.6489340160605330.7021319678789340.351065983939467
250.6271837843669290.7456324312661430.372816215633071
260.5717269908280270.8565460183439460.428273009171973
270.5554377853794330.8891244292411340.444562214620567
280.5219957968681490.9560084062637020.478004203131851
290.6478994567591360.7042010864817270.352100543240864
300.5863029776273750.827394044745250.413697022372625
310.5451144561450940.9097710877098130.454885543854906
320.4828472117692550.965694423538510.517152788230745
330.3903021235708330.7806042471416650.609697876429167
340.639500396060080.7209992078798390.360499603939919
350.6054653855486110.7890692289027780.394534614451389
360.5221744605732310.9556510788535370.477825539426769
370.4313711348786310.8627422697572620.568628865121369
380.3987199912267550.797439982453510.601280008773245
390.5186709734674790.9626580530650410.481329026532521
400.4615147954661230.9230295909322460.538485204533877
410.3883342132980950.776668426596190.611665786701905
420.3917398107072630.7834796214145270.608260189292737
430.4118631781504850.823726356300970.588136821849515
440.4532546331544130.9065092663088270.546745366845587

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.627181854495576 & 0.745636291008848 & 0.372818145504424 \tabularnewline
17 & 0.760669476644624 & 0.478661046710752 & 0.239330523355376 \tabularnewline
18 & 0.71791528702387 & 0.564169425952261 & 0.282084712976130 \tabularnewline
19 & 0.66540748956459 & 0.669185020870821 & 0.334592510435410 \tabularnewline
20 & 0.581231197837836 & 0.837537604324327 & 0.418768802162164 \tabularnewline
21 & 0.499049840808313 & 0.998099681616626 & 0.500950159191687 \tabularnewline
22 & 0.469776676239497 & 0.939553352478994 & 0.530223323760503 \tabularnewline
23 & 0.546828687028798 & 0.906342625942405 & 0.453171312971202 \tabularnewline
24 & 0.648934016060533 & 0.702131967878934 & 0.351065983939467 \tabularnewline
25 & 0.627183784366929 & 0.745632431266143 & 0.372816215633071 \tabularnewline
26 & 0.571726990828027 & 0.856546018343946 & 0.428273009171973 \tabularnewline
27 & 0.555437785379433 & 0.889124429241134 & 0.444562214620567 \tabularnewline
28 & 0.521995796868149 & 0.956008406263702 & 0.478004203131851 \tabularnewline
29 & 0.647899456759136 & 0.704201086481727 & 0.352100543240864 \tabularnewline
30 & 0.586302977627375 & 0.82739404474525 & 0.413697022372625 \tabularnewline
31 & 0.545114456145094 & 0.909771087709813 & 0.454885543854906 \tabularnewline
32 & 0.482847211769255 & 0.96569442353851 & 0.517152788230745 \tabularnewline
33 & 0.390302123570833 & 0.780604247141665 & 0.609697876429167 \tabularnewline
34 & 0.63950039606008 & 0.720999207879839 & 0.360499603939919 \tabularnewline
35 & 0.605465385548611 & 0.789069228902778 & 0.394534614451389 \tabularnewline
36 & 0.522174460573231 & 0.955651078853537 & 0.477825539426769 \tabularnewline
37 & 0.431371134878631 & 0.862742269757262 & 0.568628865121369 \tabularnewline
38 & 0.398719991226755 & 0.79743998245351 & 0.601280008773245 \tabularnewline
39 & 0.518670973467479 & 0.962658053065041 & 0.481329026532521 \tabularnewline
40 & 0.461514795466123 & 0.923029590932246 & 0.538485204533877 \tabularnewline
41 & 0.388334213298095 & 0.77666842659619 & 0.611665786701905 \tabularnewline
42 & 0.391739810707263 & 0.783479621414527 & 0.608260189292737 \tabularnewline
43 & 0.411863178150485 & 0.82372635630097 & 0.588136821849515 \tabularnewline
44 & 0.453254633154413 & 0.906509266308827 & 0.546745366845587 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58473&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.627181854495576[/C][C]0.745636291008848[/C][C]0.372818145504424[/C][/ROW]
[ROW][C]17[/C][C]0.760669476644624[/C][C]0.478661046710752[/C][C]0.239330523355376[/C][/ROW]
[ROW][C]18[/C][C]0.71791528702387[/C][C]0.564169425952261[/C][C]0.282084712976130[/C][/ROW]
[ROW][C]19[/C][C]0.66540748956459[/C][C]0.669185020870821[/C][C]0.334592510435410[/C][/ROW]
[ROW][C]20[/C][C]0.581231197837836[/C][C]0.837537604324327[/C][C]0.418768802162164[/C][/ROW]
[ROW][C]21[/C][C]0.499049840808313[/C][C]0.998099681616626[/C][C]0.500950159191687[/C][/ROW]
[ROW][C]22[/C][C]0.469776676239497[/C][C]0.939553352478994[/C][C]0.530223323760503[/C][/ROW]
[ROW][C]23[/C][C]0.546828687028798[/C][C]0.906342625942405[/C][C]0.453171312971202[/C][/ROW]
[ROW][C]24[/C][C]0.648934016060533[/C][C]0.702131967878934[/C][C]0.351065983939467[/C][/ROW]
[ROW][C]25[/C][C]0.627183784366929[/C][C]0.745632431266143[/C][C]0.372816215633071[/C][/ROW]
[ROW][C]26[/C][C]0.571726990828027[/C][C]0.856546018343946[/C][C]0.428273009171973[/C][/ROW]
[ROW][C]27[/C][C]0.555437785379433[/C][C]0.889124429241134[/C][C]0.444562214620567[/C][/ROW]
[ROW][C]28[/C][C]0.521995796868149[/C][C]0.956008406263702[/C][C]0.478004203131851[/C][/ROW]
[ROW][C]29[/C][C]0.647899456759136[/C][C]0.704201086481727[/C][C]0.352100543240864[/C][/ROW]
[ROW][C]30[/C][C]0.586302977627375[/C][C]0.82739404474525[/C][C]0.413697022372625[/C][/ROW]
[ROW][C]31[/C][C]0.545114456145094[/C][C]0.909771087709813[/C][C]0.454885543854906[/C][/ROW]
[ROW][C]32[/C][C]0.482847211769255[/C][C]0.96569442353851[/C][C]0.517152788230745[/C][/ROW]
[ROW][C]33[/C][C]0.390302123570833[/C][C]0.780604247141665[/C][C]0.609697876429167[/C][/ROW]
[ROW][C]34[/C][C]0.63950039606008[/C][C]0.720999207879839[/C][C]0.360499603939919[/C][/ROW]
[ROW][C]35[/C][C]0.605465385548611[/C][C]0.789069228902778[/C][C]0.394534614451389[/C][/ROW]
[ROW][C]36[/C][C]0.522174460573231[/C][C]0.955651078853537[/C][C]0.477825539426769[/C][/ROW]
[ROW][C]37[/C][C]0.431371134878631[/C][C]0.862742269757262[/C][C]0.568628865121369[/C][/ROW]
[ROW][C]38[/C][C]0.398719991226755[/C][C]0.79743998245351[/C][C]0.601280008773245[/C][/ROW]
[ROW][C]39[/C][C]0.518670973467479[/C][C]0.962658053065041[/C][C]0.481329026532521[/C][/ROW]
[ROW][C]40[/C][C]0.461514795466123[/C][C]0.923029590932246[/C][C]0.538485204533877[/C][/ROW]
[ROW][C]41[/C][C]0.388334213298095[/C][C]0.77666842659619[/C][C]0.611665786701905[/C][/ROW]
[ROW][C]42[/C][C]0.391739810707263[/C][C]0.783479621414527[/C][C]0.608260189292737[/C][/ROW]
[ROW][C]43[/C][C]0.411863178150485[/C][C]0.82372635630097[/C][C]0.588136821849515[/C][/ROW]
[ROW][C]44[/C][C]0.453254633154413[/C][C]0.906509266308827[/C][C]0.546745366845587[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58473&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.6271818544955760.7456362910088480.372818145504424
170.7606694766446240.4786610467107520.239330523355376
180.717915287023870.5641694259522610.282084712976130
190.665407489564590.6691850208708210.334592510435410
200.5812311978378360.8375376043243270.418768802162164
210.4990498408083130.9980996816166260.500950159191687
220.4697766762394970.9395533524789940.530223323760503
230.5468286870287980.9063426259424050.453171312971202
240.6489340160605330.7021319678789340.351065983939467
250.6271837843669290.7456324312661430.372816215633071
260.5717269908280270.8565460183439460.428273009171973
270.5554377853794330.8891244292411340.444562214620567
280.5219957968681490.9560084062637020.478004203131851
290.6478994567591360.7042010864817270.352100543240864
300.5863029776273750.827394044745250.413697022372625
310.5451144561450940.9097710877098130.454885543854906
320.4828472117692550.965694423538510.517152788230745
330.3903021235708330.7806042471416650.609697876429167
340.639500396060080.7209992078798390.360499603939919
350.6054653855486110.7890692289027780.394534614451389
360.5221744605732310.9556510788535370.477825539426769
370.4313711348786310.8627422697572620.568628865121369
380.3987199912267550.797439982453510.601280008773245
390.5186709734674790.9626580530650410.481329026532521
400.4615147954661230.9230295909322460.538485204533877
410.3883342132980950.776668426596190.611665786701905
420.3917398107072630.7834796214145270.608260189292737
430.4118631781504850.823726356300970.588136821849515
440.4532546331544130.9065092663088270.546745366845587







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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