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 computationWed, 18 Nov 2009 08:53:19 -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/18/t1258559668lm5v4mhodbw1yw9.htm/, Retrieved Sun, 05 May 2024 19:48:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57489, Retrieved Sun, 05 May 2024 19:48:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact168
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS7 Lineair trend] [2009-11-18 15:53:19] [82f421ff86a0429b20e3ed68bd89f1bd] [Current]
Feedback Forum

Post a new message
Dataseries X:
7,55	42,97
7,55	42,98
7,59	43,01
7,59	43,09
7,59	43,14
7,57	43,39
7,57	43,46
7,59	43,54
7,6	43,62
7,64	44,01
7,64	44,5
7,76	44,73
7,76	44,89
7,76	45,09
7,77	45,17
7,83	45,24
7,94	45,42
7,94	45,67
7,94	45,68
8,09	46,56
8,18	46,72
8,26	47,01
8,28	47,26
8,28	47,49
8,28	47,51
8,29	47,52
8,3	47,66
8,3	47,71
8,31	47,87
8,33	48
8,33	48
8,34	48,05
8,48	48,25
8,59	48,72
8,67	48,94
8,67	49,16
8,67	49,18
8,71	49,25
8,72	49,34
8,72	49,49
8,72	49,57
8,74	49,63
8,74	49,67
8,74	49,7
8,74	49,8
8,79	50,09
8,85	50,49
8,86	50,73
8,87	51,12
8,92	51,15
8,96	51,41
8,97	51,61
8,99	52,06
8,98	52,17
8,98	52,18
9,01	52,19
9,01	52,74
9,03	53,05
9,05	53,38
9,05	53,78




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57489&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]6 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=57489&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 4.22116168867431 + 0.0758549542204203X[t] + 0.0319607791880008M1[t] + 0.0312048573213947M2[t] + 0.0282010580184485M3[t] + 0.0179558082577059M4[t] + 0.0160972918846523M5[t] -0.0099407055871113M6[t] -0.0278141391933384M7[t] -0.0176448843761232M8[t] -0.00208246919267101M9[t] + 0.0154670920336852M10[t] + 0.00992691271068713M11[t] + 0.0159012047964963t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  4.22116168867431 +  0.0758549542204203X[t] +  0.0319607791880008M1[t] +  0.0312048573213947M2[t] +  0.0282010580184485M3[t] +  0.0179558082577059M4[t] +  0.0160972918846523M5[t] -0.0099407055871113M6[t] -0.0278141391933384M7[t] -0.0176448843761232M8[t] -0.00208246919267101M9[t] +  0.0154670920336852M10[t] +  0.00992691271068713M11[t] +  0.0159012047964963t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57489&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  4.22116168867431 +  0.0758549542204203X[t] +  0.0319607791880008M1[t] +  0.0312048573213947M2[t] +  0.0282010580184485M3[t] +  0.0179558082577059M4[t] +  0.0160972918846523M5[t] -0.0099407055871113M6[t] -0.0278141391933384M7[t] -0.0176448843761232M8[t] -0.00208246919267101M9[t] +  0.0154670920336852M10[t] +  0.00992691271068713M11[t] +  0.0159012047964963t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57489&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57489&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] = + 4.22116168867431 + 0.0758549542204203X[t] + 0.0319607791880008M1[t] + 0.0312048573213947M2[t] + 0.0282010580184485M3[t] + 0.0179558082577059M4[t] + 0.0160972918846523M5[t] -0.0099407055871113M6[t] -0.0278141391933384M7[t] -0.0176448843761232M8[t] -0.00208246919267101M9[t] + 0.0154670920336852M10[t] + 0.00992691271068713M11[t] + 0.0159012047964963t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4.221161688674311.8095932.33270.0240960.012048
X0.07585495422042030.0422261.79640.0789970.039499
M10.03196077918800080.0596650.53570.594770.297385
M20.03120485732139470.0601220.5190.6062310.303115
M30.02820105801844850.0604530.46650.6430610.321531
M40.01795580825770590.0609810.29450.7697380.384869
M50.01609729188465230.060840.26460.7925130.396257
M6-0.00994070558711130.060947-0.16310.8711520.435576
M7-0.02781413919333840.06274-0.44330.6596090.329804
M8-0.01764488437612320.062236-0.28350.7780540.389027
M9-0.002082469192671010.061671-0.03380.9732090.486604
M100.01546709203368520.0599320.25810.79750.39875
M110.009926912710687130.05910.1680.8673460.433673
t0.01590120479649630.0074682.12910.0386290.019315

\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) & 4.22116168867431 & 1.809593 & 2.3327 & 0.024096 & 0.012048 \tabularnewline
X & 0.0758549542204203 & 0.042226 & 1.7964 & 0.078997 & 0.039499 \tabularnewline
M1 & 0.0319607791880008 & 0.059665 & 0.5357 & 0.59477 & 0.297385 \tabularnewline
M2 & 0.0312048573213947 & 0.060122 & 0.519 & 0.606231 & 0.303115 \tabularnewline
M3 & 0.0282010580184485 & 0.060453 & 0.4665 & 0.643061 & 0.321531 \tabularnewline
M4 & 0.0179558082577059 & 0.060981 & 0.2945 & 0.769738 & 0.384869 \tabularnewline
M5 & 0.0160972918846523 & 0.06084 & 0.2646 & 0.792513 & 0.396257 \tabularnewline
M6 & -0.0099407055871113 & 0.060947 & -0.1631 & 0.871152 & 0.435576 \tabularnewline
M7 & -0.0278141391933384 & 0.06274 & -0.4433 & 0.659609 & 0.329804 \tabularnewline
M8 & -0.0176448843761232 & 0.062236 & -0.2835 & 0.778054 & 0.389027 \tabularnewline
M9 & -0.00208246919267101 & 0.061671 & -0.0338 & 0.973209 & 0.486604 \tabularnewline
M10 & 0.0154670920336852 & 0.059932 & 0.2581 & 0.7975 & 0.39875 \tabularnewline
M11 & 0.00992691271068713 & 0.0591 & 0.168 & 0.867346 & 0.433673 \tabularnewline
t & 0.0159012047964963 & 0.007468 & 2.1291 & 0.038629 & 0.019315 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57489&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]4.22116168867431[/C][C]1.809593[/C][C]2.3327[/C][C]0.024096[/C][C]0.012048[/C][/ROW]
[ROW][C]X[/C][C]0.0758549542204203[/C][C]0.042226[/C][C]1.7964[/C][C]0.078997[/C][C]0.039499[/C][/ROW]
[ROW][C]M1[/C][C]0.0319607791880008[/C][C]0.059665[/C][C]0.5357[/C][C]0.59477[/C][C]0.297385[/C][/ROW]
[ROW][C]M2[/C][C]0.0312048573213947[/C][C]0.060122[/C][C]0.519[/C][C]0.606231[/C][C]0.303115[/C][/ROW]
[ROW][C]M3[/C][C]0.0282010580184485[/C][C]0.060453[/C][C]0.4665[/C][C]0.643061[/C][C]0.321531[/C][/ROW]
[ROW][C]M4[/C][C]0.0179558082577059[/C][C]0.060981[/C][C]0.2945[/C][C]0.769738[/C][C]0.384869[/C][/ROW]
[ROW][C]M5[/C][C]0.0160972918846523[/C][C]0.06084[/C][C]0.2646[/C][C]0.792513[/C][C]0.396257[/C][/ROW]
[ROW][C]M6[/C][C]-0.0099407055871113[/C][C]0.060947[/C][C]-0.1631[/C][C]0.871152[/C][C]0.435576[/C][/ROW]
[ROW][C]M7[/C][C]-0.0278141391933384[/C][C]0.06274[/C][C]-0.4433[/C][C]0.659609[/C][C]0.329804[/C][/ROW]
[ROW][C]M8[/C][C]-0.0176448843761232[/C][C]0.062236[/C][C]-0.2835[/C][C]0.778054[/C][C]0.389027[/C][/ROW]
[ROW][C]M9[/C][C]-0.00208246919267101[/C][C]0.061671[/C][C]-0.0338[/C][C]0.973209[/C][C]0.486604[/C][/ROW]
[ROW][C]M10[/C][C]0.0154670920336852[/C][C]0.059932[/C][C]0.2581[/C][C]0.7975[/C][C]0.39875[/C][/ROW]
[ROW][C]M11[/C][C]0.00992691271068713[/C][C]0.0591[/C][C]0.168[/C][C]0.867346[/C][C]0.433673[/C][/ROW]
[ROW][C]t[/C][C]0.0159012047964963[/C][C]0.007468[/C][C]2.1291[/C][C]0.038629[/C][C]0.019315[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57489&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57489&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)4.221161688674311.8095932.33270.0240960.012048
X0.07585495422042030.0422261.79640.0789970.039499
M10.03196077918800080.0596650.53570.594770.297385
M20.03120485732139470.0601220.5190.6062310.303115
M30.02820105801844850.0604530.46650.6430610.321531
M40.01795580825770590.0609810.29450.7697380.384869
M50.01609729188465230.060840.26460.7925130.396257
M6-0.00994070558711130.060947-0.16310.8711520.435576
M7-0.02781413919333840.06274-0.44330.6596090.329804
M8-0.01764488437612320.062236-0.28350.7780540.389027
M9-0.002082469192671010.061671-0.03380.9732090.486604
M100.01546709203368520.0599320.25810.79750.39875
M110.009926912710687130.05910.1680.8673460.433673
t0.01590120479649630.0074682.12910.0386290.019315







Multiple Linear Regression - Regression Statistics
Multiple R0.987232335545595
R-squared0.97462768434681
Adjusted R-squared0.967457247314387
F-TEST (value)135.923051822328
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0932545584418886
Sum Squared Residuals0.400034982828815

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987232335545595 \tabularnewline
R-squared & 0.97462768434681 \tabularnewline
Adjusted R-squared & 0.967457247314387 \tabularnewline
F-TEST (value) & 135.923051822328 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.0932545584418886 \tabularnewline
Sum Squared Residuals & 0.400034982828815 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57489&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987232335545595[/C][/ROW]
[ROW][C]R-squared[/C][C]0.97462768434681[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.967457247314387[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]135.923051822328[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.0932545584418886[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.400034982828815[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57489&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57489&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.987232335545595
R-squared0.97462768434681
Adjusted R-squared0.967457247314387
F-TEST (value)135.923051822328
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0932545584418886
Sum Squared Residuals0.400034982828815







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.557.528511055510250.0214889444897528
27.557.544414887982360.00558511201764301
37.597.559587942102520.0304120578974805
47.597.571312293475910.0186877065240928
57.597.589147729610370.00085227038962934
67.577.5979746754902-0.0279746754902079
77.577.60131229347591-0.0313122934759064
87.597.63345114942725-0.0434511494272518
97.67.67098316574483-0.070983165744834
107.647.73401736391365-0.0940173639136505
117.647.78154731695515-0.141547316955155
127.767.80496824851166-0.0449682485116601
137.767.86496702517142-0.104967025171425
147.767.8952832989454-0.135283298945399
157.777.91424910077658-0.144249100776583
167.837.92521490260777-0.0952149026077656
177.947.95291148279088-0.0129114827908836
187.947.96173842867072-0.0217384286707213
197.947.9605247494032-0.0205247494031945
208.098.053347568730880.0366524312691235
218.188.09694798138610.0830520186139079
228.268.152396684132870.107603315867134
238.288.181721448161470.09827855183853
248.288.205142379717970.0748576202820239
258.288.254521462786880.0254785372131187
268.298.270425295258980.0195747047410238
278.38.293942394343380.00605760565661685
288.38.30339109709016-0.00339109709015810
298.318.32957057818887-0.019570578188868
308.338.329294929562260.00070507043774407
318.338.327322700752530.00267729924747491
328.348.35718590807726-0.0171859080772575
338.488.403820518901290.0761794810987103
348.598.472923113407740.117076886592260
358.678.499972228809730.170027771190269
368.678.522634610824030.147365389175968
378.678.572013693892940.0979863061070621
388.718.592468823618260.117531176381743
398.728.612193174991650.107806825008355
408.728.629227373160460.0907726268395384
418.728.649338457921540.0706615420784622
428.748.64375296249950.0962470375005038
438.748.644814931858580.0951850681414178
448.748.67316104009890.0668389599010938
458.748.71221015550090.0277898444991037
468.798.767658858247670.0223411417523278
478.858.808361865409340.0416381345906621
488.868.832541346508050.0274586534919522
498.878.90998676263851-0.0399867626385089
508.928.92740769419501-0.00740769419501105
518.968.96002738778587-2.73877858694475e-05
528.978.9808543336657-0.0108543336657076
538.999.02903175148834-0.03903175148834
548.989.02723900377732-0.0472390037773186
558.989.0260253245098-0.0460253245097919
569.019.0528543336657-0.0428543336657079
579.019.12603817846689-0.116038178466888
589.039.18300398029807-0.153003980298071
599.059.21839714066431-0.168397140664307
609.059.25471341443829-0.204713414438284

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.55 & 7.52851105551025 & 0.0214889444897528 \tabularnewline
2 & 7.55 & 7.54441488798236 & 0.00558511201764301 \tabularnewline
3 & 7.59 & 7.55958794210252 & 0.0304120578974805 \tabularnewline
4 & 7.59 & 7.57131229347591 & 0.0186877065240928 \tabularnewline
5 & 7.59 & 7.58914772961037 & 0.00085227038962934 \tabularnewline
6 & 7.57 & 7.5979746754902 & -0.0279746754902079 \tabularnewline
7 & 7.57 & 7.60131229347591 & -0.0313122934759064 \tabularnewline
8 & 7.59 & 7.63345114942725 & -0.0434511494272518 \tabularnewline
9 & 7.6 & 7.67098316574483 & -0.070983165744834 \tabularnewline
10 & 7.64 & 7.73401736391365 & -0.0940173639136505 \tabularnewline
11 & 7.64 & 7.78154731695515 & -0.141547316955155 \tabularnewline
12 & 7.76 & 7.80496824851166 & -0.0449682485116601 \tabularnewline
13 & 7.76 & 7.86496702517142 & -0.104967025171425 \tabularnewline
14 & 7.76 & 7.8952832989454 & -0.135283298945399 \tabularnewline
15 & 7.77 & 7.91424910077658 & -0.144249100776583 \tabularnewline
16 & 7.83 & 7.92521490260777 & -0.0952149026077656 \tabularnewline
17 & 7.94 & 7.95291148279088 & -0.0129114827908836 \tabularnewline
18 & 7.94 & 7.96173842867072 & -0.0217384286707213 \tabularnewline
19 & 7.94 & 7.9605247494032 & -0.0205247494031945 \tabularnewline
20 & 8.09 & 8.05334756873088 & 0.0366524312691235 \tabularnewline
21 & 8.18 & 8.0969479813861 & 0.0830520186139079 \tabularnewline
22 & 8.26 & 8.15239668413287 & 0.107603315867134 \tabularnewline
23 & 8.28 & 8.18172144816147 & 0.09827855183853 \tabularnewline
24 & 8.28 & 8.20514237971797 & 0.0748576202820239 \tabularnewline
25 & 8.28 & 8.25452146278688 & 0.0254785372131187 \tabularnewline
26 & 8.29 & 8.27042529525898 & 0.0195747047410238 \tabularnewline
27 & 8.3 & 8.29394239434338 & 0.00605760565661685 \tabularnewline
28 & 8.3 & 8.30339109709016 & -0.00339109709015810 \tabularnewline
29 & 8.31 & 8.32957057818887 & -0.019570578188868 \tabularnewline
30 & 8.33 & 8.32929492956226 & 0.00070507043774407 \tabularnewline
31 & 8.33 & 8.32732270075253 & 0.00267729924747491 \tabularnewline
32 & 8.34 & 8.35718590807726 & -0.0171859080772575 \tabularnewline
33 & 8.48 & 8.40382051890129 & 0.0761794810987103 \tabularnewline
34 & 8.59 & 8.47292311340774 & 0.117076886592260 \tabularnewline
35 & 8.67 & 8.49997222880973 & 0.170027771190269 \tabularnewline
36 & 8.67 & 8.52263461082403 & 0.147365389175968 \tabularnewline
37 & 8.67 & 8.57201369389294 & 0.0979863061070621 \tabularnewline
38 & 8.71 & 8.59246882361826 & 0.117531176381743 \tabularnewline
39 & 8.72 & 8.61219317499165 & 0.107806825008355 \tabularnewline
40 & 8.72 & 8.62922737316046 & 0.0907726268395384 \tabularnewline
41 & 8.72 & 8.64933845792154 & 0.0706615420784622 \tabularnewline
42 & 8.74 & 8.6437529624995 & 0.0962470375005038 \tabularnewline
43 & 8.74 & 8.64481493185858 & 0.0951850681414178 \tabularnewline
44 & 8.74 & 8.6731610400989 & 0.0668389599010938 \tabularnewline
45 & 8.74 & 8.7122101555009 & 0.0277898444991037 \tabularnewline
46 & 8.79 & 8.76765885824767 & 0.0223411417523278 \tabularnewline
47 & 8.85 & 8.80836186540934 & 0.0416381345906621 \tabularnewline
48 & 8.86 & 8.83254134650805 & 0.0274586534919522 \tabularnewline
49 & 8.87 & 8.90998676263851 & -0.0399867626385089 \tabularnewline
50 & 8.92 & 8.92740769419501 & -0.00740769419501105 \tabularnewline
51 & 8.96 & 8.96002738778587 & -2.73877858694475e-05 \tabularnewline
52 & 8.97 & 8.9808543336657 & -0.0108543336657076 \tabularnewline
53 & 8.99 & 9.02903175148834 & -0.03903175148834 \tabularnewline
54 & 8.98 & 9.02723900377732 & -0.0472390037773186 \tabularnewline
55 & 8.98 & 9.0260253245098 & -0.0460253245097919 \tabularnewline
56 & 9.01 & 9.0528543336657 & -0.0428543336657079 \tabularnewline
57 & 9.01 & 9.12603817846689 & -0.116038178466888 \tabularnewline
58 & 9.03 & 9.18300398029807 & -0.153003980298071 \tabularnewline
59 & 9.05 & 9.21839714066431 & -0.168397140664307 \tabularnewline
60 & 9.05 & 9.25471341443829 & -0.204713414438284 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57489&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]7.55[/C][C]7.52851105551025[/C][C]0.0214889444897528[/C][/ROW]
[ROW][C]2[/C][C]7.55[/C][C]7.54441488798236[/C][C]0.00558511201764301[/C][/ROW]
[ROW][C]3[/C][C]7.59[/C][C]7.55958794210252[/C][C]0.0304120578974805[/C][/ROW]
[ROW][C]4[/C][C]7.59[/C][C]7.57131229347591[/C][C]0.0186877065240928[/C][/ROW]
[ROW][C]5[/C][C]7.59[/C][C]7.58914772961037[/C][C]0.00085227038962934[/C][/ROW]
[ROW][C]6[/C][C]7.57[/C][C]7.5979746754902[/C][C]-0.0279746754902079[/C][/ROW]
[ROW][C]7[/C][C]7.57[/C][C]7.60131229347591[/C][C]-0.0313122934759064[/C][/ROW]
[ROW][C]8[/C][C]7.59[/C][C]7.63345114942725[/C][C]-0.0434511494272518[/C][/ROW]
[ROW][C]9[/C][C]7.6[/C][C]7.67098316574483[/C][C]-0.070983165744834[/C][/ROW]
[ROW][C]10[/C][C]7.64[/C][C]7.73401736391365[/C][C]-0.0940173639136505[/C][/ROW]
[ROW][C]11[/C][C]7.64[/C][C]7.78154731695515[/C][C]-0.141547316955155[/C][/ROW]
[ROW][C]12[/C][C]7.76[/C][C]7.80496824851166[/C][C]-0.0449682485116601[/C][/ROW]
[ROW][C]13[/C][C]7.76[/C][C]7.86496702517142[/C][C]-0.104967025171425[/C][/ROW]
[ROW][C]14[/C][C]7.76[/C][C]7.8952832989454[/C][C]-0.135283298945399[/C][/ROW]
[ROW][C]15[/C][C]7.77[/C][C]7.91424910077658[/C][C]-0.144249100776583[/C][/ROW]
[ROW][C]16[/C][C]7.83[/C][C]7.92521490260777[/C][C]-0.0952149026077656[/C][/ROW]
[ROW][C]17[/C][C]7.94[/C][C]7.95291148279088[/C][C]-0.0129114827908836[/C][/ROW]
[ROW][C]18[/C][C]7.94[/C][C]7.96173842867072[/C][C]-0.0217384286707213[/C][/ROW]
[ROW][C]19[/C][C]7.94[/C][C]7.9605247494032[/C][C]-0.0205247494031945[/C][/ROW]
[ROW][C]20[/C][C]8.09[/C][C]8.05334756873088[/C][C]0.0366524312691235[/C][/ROW]
[ROW][C]21[/C][C]8.18[/C][C]8.0969479813861[/C][C]0.0830520186139079[/C][/ROW]
[ROW][C]22[/C][C]8.26[/C][C]8.15239668413287[/C][C]0.107603315867134[/C][/ROW]
[ROW][C]23[/C][C]8.28[/C][C]8.18172144816147[/C][C]0.09827855183853[/C][/ROW]
[ROW][C]24[/C][C]8.28[/C][C]8.20514237971797[/C][C]0.0748576202820239[/C][/ROW]
[ROW][C]25[/C][C]8.28[/C][C]8.25452146278688[/C][C]0.0254785372131187[/C][/ROW]
[ROW][C]26[/C][C]8.29[/C][C]8.27042529525898[/C][C]0.0195747047410238[/C][/ROW]
[ROW][C]27[/C][C]8.3[/C][C]8.29394239434338[/C][C]0.00605760565661685[/C][/ROW]
[ROW][C]28[/C][C]8.3[/C][C]8.30339109709016[/C][C]-0.00339109709015810[/C][/ROW]
[ROW][C]29[/C][C]8.31[/C][C]8.32957057818887[/C][C]-0.019570578188868[/C][/ROW]
[ROW][C]30[/C][C]8.33[/C][C]8.32929492956226[/C][C]0.00070507043774407[/C][/ROW]
[ROW][C]31[/C][C]8.33[/C][C]8.32732270075253[/C][C]0.00267729924747491[/C][/ROW]
[ROW][C]32[/C][C]8.34[/C][C]8.35718590807726[/C][C]-0.0171859080772575[/C][/ROW]
[ROW][C]33[/C][C]8.48[/C][C]8.40382051890129[/C][C]0.0761794810987103[/C][/ROW]
[ROW][C]34[/C][C]8.59[/C][C]8.47292311340774[/C][C]0.117076886592260[/C][/ROW]
[ROW][C]35[/C][C]8.67[/C][C]8.49997222880973[/C][C]0.170027771190269[/C][/ROW]
[ROW][C]36[/C][C]8.67[/C][C]8.52263461082403[/C][C]0.147365389175968[/C][/ROW]
[ROW][C]37[/C][C]8.67[/C][C]8.57201369389294[/C][C]0.0979863061070621[/C][/ROW]
[ROW][C]38[/C][C]8.71[/C][C]8.59246882361826[/C][C]0.117531176381743[/C][/ROW]
[ROW][C]39[/C][C]8.72[/C][C]8.61219317499165[/C][C]0.107806825008355[/C][/ROW]
[ROW][C]40[/C][C]8.72[/C][C]8.62922737316046[/C][C]0.0907726268395384[/C][/ROW]
[ROW][C]41[/C][C]8.72[/C][C]8.64933845792154[/C][C]0.0706615420784622[/C][/ROW]
[ROW][C]42[/C][C]8.74[/C][C]8.6437529624995[/C][C]0.0962470375005038[/C][/ROW]
[ROW][C]43[/C][C]8.74[/C][C]8.64481493185858[/C][C]0.0951850681414178[/C][/ROW]
[ROW][C]44[/C][C]8.74[/C][C]8.6731610400989[/C][C]0.0668389599010938[/C][/ROW]
[ROW][C]45[/C][C]8.74[/C][C]8.7122101555009[/C][C]0.0277898444991037[/C][/ROW]
[ROW][C]46[/C][C]8.79[/C][C]8.76765885824767[/C][C]0.0223411417523278[/C][/ROW]
[ROW][C]47[/C][C]8.85[/C][C]8.80836186540934[/C][C]0.0416381345906621[/C][/ROW]
[ROW][C]48[/C][C]8.86[/C][C]8.83254134650805[/C][C]0.0274586534919522[/C][/ROW]
[ROW][C]49[/C][C]8.87[/C][C]8.90998676263851[/C][C]-0.0399867626385089[/C][/ROW]
[ROW][C]50[/C][C]8.92[/C][C]8.92740769419501[/C][C]-0.00740769419501105[/C][/ROW]
[ROW][C]51[/C][C]8.96[/C][C]8.96002738778587[/C][C]-2.73877858694475e-05[/C][/ROW]
[ROW][C]52[/C][C]8.97[/C][C]8.9808543336657[/C][C]-0.0108543336657076[/C][/ROW]
[ROW][C]53[/C][C]8.99[/C][C]9.02903175148834[/C][C]-0.03903175148834[/C][/ROW]
[ROW][C]54[/C][C]8.98[/C][C]9.02723900377732[/C][C]-0.0472390037773186[/C][/ROW]
[ROW][C]55[/C][C]8.98[/C][C]9.0260253245098[/C][C]-0.0460253245097919[/C][/ROW]
[ROW][C]56[/C][C]9.01[/C][C]9.0528543336657[/C][C]-0.0428543336657079[/C][/ROW]
[ROW][C]57[/C][C]9.01[/C][C]9.12603817846689[/C][C]-0.116038178466888[/C][/ROW]
[ROW][C]58[/C][C]9.03[/C][C]9.18300398029807[/C][C]-0.153003980298071[/C][/ROW]
[ROW][C]59[/C][C]9.05[/C][C]9.21839714066431[/C][C]-0.168397140664307[/C][/ROW]
[ROW][C]60[/C][C]9.05[/C][C]9.25471341443829[/C][C]-0.204713414438284[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57489&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57489&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
17.557.528511055510250.0214889444897528
27.557.544414887982360.00558511201764301
37.597.559587942102520.0304120578974805
47.597.571312293475910.0186877065240928
57.597.589147729610370.00085227038962934
67.577.5979746754902-0.0279746754902079
77.577.60131229347591-0.0313122934759064
87.597.63345114942725-0.0434511494272518
97.67.67098316574483-0.070983165744834
107.647.73401736391365-0.0940173639136505
117.647.78154731695515-0.141547316955155
127.767.80496824851166-0.0449682485116601
137.767.86496702517142-0.104967025171425
147.767.8952832989454-0.135283298945399
157.777.91424910077658-0.144249100776583
167.837.92521490260777-0.0952149026077656
177.947.95291148279088-0.0129114827908836
187.947.96173842867072-0.0217384286707213
197.947.9605247494032-0.0205247494031945
208.098.053347568730880.0366524312691235
218.188.09694798138610.0830520186139079
228.268.152396684132870.107603315867134
238.288.181721448161470.09827855183853
248.288.205142379717970.0748576202820239
258.288.254521462786880.0254785372131187
268.298.270425295258980.0195747047410238
278.38.293942394343380.00605760565661685
288.38.30339109709016-0.00339109709015810
298.318.32957057818887-0.019570578188868
308.338.329294929562260.00070507043774407
318.338.327322700752530.00267729924747491
328.348.35718590807726-0.0171859080772575
338.488.403820518901290.0761794810987103
348.598.472923113407740.117076886592260
358.678.499972228809730.170027771190269
368.678.522634610824030.147365389175968
378.678.572013693892940.0979863061070621
388.718.592468823618260.117531176381743
398.728.612193174991650.107806825008355
408.728.629227373160460.0907726268395384
418.728.649338457921540.0706615420784622
428.748.64375296249950.0962470375005038
438.748.644814931858580.0951850681414178
448.748.67316104009890.0668389599010938
458.748.71221015550090.0277898444991037
468.798.767658858247670.0223411417523278
478.858.808361865409340.0416381345906621
488.868.832541346508050.0274586534919522
498.878.90998676263851-0.0399867626385089
508.928.92740769419501-0.00740769419501105
518.968.96002738778587-2.73877858694475e-05
528.978.9808543336657-0.0108543336657076
538.999.02903175148834-0.03903175148834
548.989.02723900377732-0.0472390037773186
558.989.0260253245098-0.0460253245097919
569.019.0528543336657-0.0428543336657079
579.019.12603817846689-0.116038178466888
589.039.18300398029807-0.153003980298071
599.059.21839714066431-0.168397140664307
609.059.25471341443829-0.204713414438284







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2179804293351750.435960858670350.782019570664825
180.2151328237341070.4302656474682130.784867176265893
190.2728137951816050.545627590363210.727186204818395
200.2321168069295760.4642336138591510.767883193070424
210.1523806296004530.3047612592009060.847619370399547
220.1542384750686330.3084769501372670.845761524931367
230.338558044012650.67711608802530.66144195598735
240.2478141167158560.4956282334317120.752185883284144
250.2220254662075750.4440509324151510.777974533792425
260.2541353327605660.5082706655211320.745864667239434
270.2196070698766990.4392141397533980.780392930123301
280.2037049760231050.407409952046210.796295023976895
290.2466890775594430.4933781551188860.753310922440557
300.3050370508820740.6100741017641480.694962949117926
310.5093243312743810.9813513374512380.490675668725619
320.9854569454269390.02908610914612250.0145430545730612
330.9981857077984220.003628584403155530.00181429220157777
340.9981078168886680.003784366222664350.00189218311133217
350.9995133257287870.000973348542426660.00048667427121333
360.9997981390113060.0004037219773875980.000201860988693799
370.9997310289655520.0005379420688953090.000268971034447655
380.9997382513729680.0005234972540630190.000261748627031510
390.9993307474839510.001338505032097430.000669252516048715
400.998129807186080.003740385627838070.00187019281391903
410.9934650680129140.0130698639741730.0065349319870865
420.978191256027550.04361748794489860.0218087439724493
430.9396164222631940.1207671554736130.0603835777368064

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.217980429335175 & 0.43596085867035 & 0.782019570664825 \tabularnewline
18 & 0.215132823734107 & 0.430265647468213 & 0.784867176265893 \tabularnewline
19 & 0.272813795181605 & 0.54562759036321 & 0.727186204818395 \tabularnewline
20 & 0.232116806929576 & 0.464233613859151 & 0.767883193070424 \tabularnewline
21 & 0.152380629600453 & 0.304761259200906 & 0.847619370399547 \tabularnewline
22 & 0.154238475068633 & 0.308476950137267 & 0.845761524931367 \tabularnewline
23 & 0.33855804401265 & 0.6771160880253 & 0.66144195598735 \tabularnewline
24 & 0.247814116715856 & 0.495628233431712 & 0.752185883284144 \tabularnewline
25 & 0.222025466207575 & 0.444050932415151 & 0.777974533792425 \tabularnewline
26 & 0.254135332760566 & 0.508270665521132 & 0.745864667239434 \tabularnewline
27 & 0.219607069876699 & 0.439214139753398 & 0.780392930123301 \tabularnewline
28 & 0.203704976023105 & 0.40740995204621 & 0.796295023976895 \tabularnewline
29 & 0.246689077559443 & 0.493378155118886 & 0.753310922440557 \tabularnewline
30 & 0.305037050882074 & 0.610074101764148 & 0.694962949117926 \tabularnewline
31 & 0.509324331274381 & 0.981351337451238 & 0.490675668725619 \tabularnewline
32 & 0.985456945426939 & 0.0290861091461225 & 0.0145430545730612 \tabularnewline
33 & 0.998185707798422 & 0.00362858440315553 & 0.00181429220157777 \tabularnewline
34 & 0.998107816888668 & 0.00378436622266435 & 0.00189218311133217 \tabularnewline
35 & 0.999513325728787 & 0.00097334854242666 & 0.00048667427121333 \tabularnewline
36 & 0.999798139011306 & 0.000403721977387598 & 0.000201860988693799 \tabularnewline
37 & 0.999731028965552 & 0.000537942068895309 & 0.000268971034447655 \tabularnewline
38 & 0.999738251372968 & 0.000523497254063019 & 0.000261748627031510 \tabularnewline
39 & 0.999330747483951 & 0.00133850503209743 & 0.000669252516048715 \tabularnewline
40 & 0.99812980718608 & 0.00374038562783807 & 0.00187019281391903 \tabularnewline
41 & 0.993465068012914 & 0.013069863974173 & 0.0065349319870865 \tabularnewline
42 & 0.97819125602755 & 0.0436174879448986 & 0.0218087439724493 \tabularnewline
43 & 0.939616422263194 & 0.120767155473613 & 0.0603835777368064 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57489&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.217980429335175[/C][C]0.43596085867035[/C][C]0.782019570664825[/C][/ROW]
[ROW][C]18[/C][C]0.215132823734107[/C][C]0.430265647468213[/C][C]0.784867176265893[/C][/ROW]
[ROW][C]19[/C][C]0.272813795181605[/C][C]0.54562759036321[/C][C]0.727186204818395[/C][/ROW]
[ROW][C]20[/C][C]0.232116806929576[/C][C]0.464233613859151[/C][C]0.767883193070424[/C][/ROW]
[ROW][C]21[/C][C]0.152380629600453[/C][C]0.304761259200906[/C][C]0.847619370399547[/C][/ROW]
[ROW][C]22[/C][C]0.154238475068633[/C][C]0.308476950137267[/C][C]0.845761524931367[/C][/ROW]
[ROW][C]23[/C][C]0.33855804401265[/C][C]0.6771160880253[/C][C]0.66144195598735[/C][/ROW]
[ROW][C]24[/C][C]0.247814116715856[/C][C]0.495628233431712[/C][C]0.752185883284144[/C][/ROW]
[ROW][C]25[/C][C]0.222025466207575[/C][C]0.444050932415151[/C][C]0.777974533792425[/C][/ROW]
[ROW][C]26[/C][C]0.254135332760566[/C][C]0.508270665521132[/C][C]0.745864667239434[/C][/ROW]
[ROW][C]27[/C][C]0.219607069876699[/C][C]0.439214139753398[/C][C]0.780392930123301[/C][/ROW]
[ROW][C]28[/C][C]0.203704976023105[/C][C]0.40740995204621[/C][C]0.796295023976895[/C][/ROW]
[ROW][C]29[/C][C]0.246689077559443[/C][C]0.493378155118886[/C][C]0.753310922440557[/C][/ROW]
[ROW][C]30[/C][C]0.305037050882074[/C][C]0.610074101764148[/C][C]0.694962949117926[/C][/ROW]
[ROW][C]31[/C][C]0.509324331274381[/C][C]0.981351337451238[/C][C]0.490675668725619[/C][/ROW]
[ROW][C]32[/C][C]0.985456945426939[/C][C]0.0290861091461225[/C][C]0.0145430545730612[/C][/ROW]
[ROW][C]33[/C][C]0.998185707798422[/C][C]0.00362858440315553[/C][C]0.00181429220157777[/C][/ROW]
[ROW][C]34[/C][C]0.998107816888668[/C][C]0.00378436622266435[/C][C]0.00189218311133217[/C][/ROW]
[ROW][C]35[/C][C]0.999513325728787[/C][C]0.00097334854242666[/C][C]0.00048667427121333[/C][/ROW]
[ROW][C]36[/C][C]0.999798139011306[/C][C]0.000403721977387598[/C][C]0.000201860988693799[/C][/ROW]
[ROW][C]37[/C][C]0.999731028965552[/C][C]0.000537942068895309[/C][C]0.000268971034447655[/C][/ROW]
[ROW][C]38[/C][C]0.999738251372968[/C][C]0.000523497254063019[/C][C]0.000261748627031510[/C][/ROW]
[ROW][C]39[/C][C]0.999330747483951[/C][C]0.00133850503209743[/C][C]0.000669252516048715[/C][/ROW]
[ROW][C]40[/C][C]0.99812980718608[/C][C]0.00374038562783807[/C][C]0.00187019281391903[/C][/ROW]
[ROW][C]41[/C][C]0.993465068012914[/C][C]0.013069863974173[/C][C]0.0065349319870865[/C][/ROW]
[ROW][C]42[/C][C]0.97819125602755[/C][C]0.0436174879448986[/C][C]0.0218087439724493[/C][/ROW]
[ROW][C]43[/C][C]0.939616422263194[/C][C]0.120767155473613[/C][C]0.0603835777368064[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57489&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57489&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.2179804293351750.435960858670350.782019570664825
180.2151328237341070.4302656474682130.784867176265893
190.2728137951816050.545627590363210.727186204818395
200.2321168069295760.4642336138591510.767883193070424
210.1523806296004530.3047612592009060.847619370399547
220.1542384750686330.3084769501372670.845761524931367
230.338558044012650.67711608802530.66144195598735
240.2478141167158560.4956282334317120.752185883284144
250.2220254662075750.4440509324151510.777974533792425
260.2541353327605660.5082706655211320.745864667239434
270.2196070698766990.4392141397533980.780392930123301
280.2037049760231050.407409952046210.796295023976895
290.2466890775594430.4933781551188860.753310922440557
300.3050370508820740.6100741017641480.694962949117926
310.5093243312743810.9813513374512380.490675668725619
320.9854569454269390.02908610914612250.0145430545730612
330.9981857077984220.003628584403155530.00181429220157777
340.9981078168886680.003784366222664350.00189218311133217
350.9995133257287870.000973348542426660.00048667427121333
360.9997981390113060.0004037219773875980.000201860988693799
370.9997310289655520.0005379420688953090.000268971034447655
380.9997382513729680.0005234972540630190.000261748627031510
390.9993307474839510.001338505032097430.000669252516048715
400.998129807186080.003740385627838070.00187019281391903
410.9934650680129140.0130698639741730.0065349319870865
420.978191256027550.04361748794489860.0218087439724493
430.9396164222631940.1207671554736130.0603835777368064







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.296296296296296NOK
5% type I error level110.407407407407407NOK
10% type I error level110.407407407407407NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57489&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 level80.296296296296296NOK
5% type I error level110.407407407407407NOK
10% type I error level110.407407407407407NOK



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