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 computationSun, 22 Nov 2009 09:57:43 -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/22/t1258909485qiq6vfna16yu739.htm/, Retrieved Sun, 28 Apr 2024 02:43:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58667, Retrieved Sun, 28 Apr 2024 02:43:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS 7 Model 4
Estimated Impact181
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS 7] [2009-11-19 23:41:15] [9717cb857c153ca3061376906953b329]
-    D      [Multiple Regression] [WS 7 Model 1] [2009-11-20 18:02:51] [9717cb857c153ca3061376906953b329]
-   P         [Multiple Regression] [WS 7 Model 2] [2009-11-20 18:37:24] [9717cb857c153ca3061376906953b329]
-   P           [Multiple Regression] [WS 7 Model 3] [2009-11-20 18:55:39] [9717cb857c153ca3061376906953b329]
-    D              [Multiple Regression] [WS 7 Model 4] [2009-11-22 16:57:43] [52b85b290d6f50b0921ad6729b8a5af2] [Current]
-    D                [Multiple Regression] [WS 7 Model 5] [2009-11-22 20:04:45] [9717cb857c153ca3061376906953b329]
-    D                  [Multiple Regression] [WS 7 Model 6] [2009-11-23 16:53:08] [9717cb857c153ca3061376906953b329]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=58667&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=58667&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Multiple Linear Regression - Estimated Regression Equation
nwwmb[t] = + 19383.0482520845 + 5208.18468261152dummy_variable[t] + 0.925680076204517`y[t-1]`[t] + 0.170923414732768`y[t-2]`[t] + 0.155111372936063`y[t-3]`[t] -0.305318747860637`y[t-4] `[t] + 837.730352246995M1[t] -2931.44490665555M2[t] -8038.39352053068M3[t] -5571.84238247885M4[t] -8599.4415923363M5[t] -5578.99689219737M6[t] + 17664.8784464577M7[t] + 1152.70424096104M8[t] -6679.57569678684M9[t] -16111.3074526013M10[t] -9459.3839340622M11[t] -99.011851773791t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
nwwmb[t] =  +  19383.0482520845 +  5208.18468261152dummy_variable[t] +  0.925680076204517`y[t-1]`[t] +  0.170923414732768`y[t-2]`[t] +  0.155111372936063`y[t-3]`[t] -0.305318747860637`y[t-4]
`[t] +  837.730352246995M1[t] -2931.44490665555M2[t] -8038.39352053068M3[t] -5571.84238247885M4[t] -8599.4415923363M5[t] -5578.99689219737M6[t] +  17664.8784464577M7[t] +  1152.70424096104M8[t] -6679.57569678684M9[t] -16111.3074526013M10[t] -9459.3839340622M11[t] -99.011851773791t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58667&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]nwwmb[t] =  +  19383.0482520845 +  5208.18468261152dummy_variable[t] +  0.925680076204517`y[t-1]`[t] +  0.170923414732768`y[t-2]`[t] +  0.155111372936063`y[t-3]`[t] -0.305318747860637`y[t-4]
`[t] +  837.730352246995M1[t] -2931.44490665555M2[t] -8038.39352053068M3[t] -5571.84238247885M4[t] -8599.4415923363M5[t] -5578.99689219737M6[t] +  17664.8784464577M7[t] +  1152.70424096104M8[t] -6679.57569678684M9[t] -16111.3074526013M10[t] -9459.3839340622M11[t] -99.011851773791t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58667&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
nwwmb[t] = + 19383.0482520845 + 5208.18468261152dummy_variable[t] + 0.925680076204517`y[t-1]`[t] + 0.170923414732768`y[t-2]`[t] + 0.155111372936063`y[t-3]`[t] -0.305318747860637`y[t-4] `[t] + 837.730352246995M1[t] -2931.44490665555M2[t] -8038.39352053068M3[t] -5571.84238247885M4[t] -8599.4415923363M5[t] -5578.99689219737M6[t] + 17664.8784464577M7[t] + 1152.70424096104M8[t] -6679.57569678684M9[t] -16111.3074526013M10[t] -9459.3839340622M11[t] -99.011851773791t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)19383.048252084512923.977141.49980.1419360.070968
dummy_variable5208.184682611522029.5742772.56610.014350.007175
`y[t-1]`0.9256800762045170.1463036.327200
`y[t-2]`0.1709234147327680.2085230.81970.4175060.208753
`y[t-3]`0.1551113729360630.2141730.72420.4733580.236679
`y[t-4] `-0.3053187478606370.156157-1.95520.0579420.028971
M1837.7303522469952718.7860250.30810.7596690.379834
M2-2931.444906655552997.827815-0.97790.334330.167165
M3-8038.393520530682788.968873-2.88220.0064630.003232
M4-5571.842382478852547.179392-2.18750.0349320.017466
M5-8599.44159233632448.908336-3.51150.0011660.000583
M6-5578.996892197372466.297078-2.26210.0294940.014747
M717664.87844645772403.3447457.350100
M81152.704240961044660.8386540.24730.8059940.402997
M9-6679.575696786845008.747669-1.33360.190280.09514
M10-16111.30745260134385.432377-3.67380.0007330.000367
M11-9459.38393406222597.248662-3.64210.0008040.000402
t-99.01185177379154.96703-1.80130.0795960.039798

\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) & 19383.0482520845 & 12923.97714 & 1.4998 & 0.141936 & 0.070968 \tabularnewline
dummy_variable & 5208.18468261152 & 2029.574277 & 2.5661 & 0.01435 & 0.007175 \tabularnewline
`y[t-1]` & 0.925680076204517 & 0.146303 & 6.3272 & 0 & 0 \tabularnewline
`y[t-2]` & 0.170923414732768 & 0.208523 & 0.8197 & 0.417506 & 0.208753 \tabularnewline
`y[t-3]` & 0.155111372936063 & 0.214173 & 0.7242 & 0.473358 & 0.236679 \tabularnewline
`y[t-4]
` & -0.305318747860637 & 0.156157 & -1.9552 & 0.057942 & 0.028971 \tabularnewline
M1 & 837.730352246995 & 2718.786025 & 0.3081 & 0.759669 & 0.379834 \tabularnewline
M2 & -2931.44490665555 & 2997.827815 & -0.9779 & 0.33433 & 0.167165 \tabularnewline
M3 & -8038.39352053068 & 2788.968873 & -2.8822 & 0.006463 & 0.003232 \tabularnewline
M4 & -5571.84238247885 & 2547.179392 & -2.1875 & 0.034932 & 0.017466 \tabularnewline
M5 & -8599.4415923363 & 2448.908336 & -3.5115 & 0.001166 & 0.000583 \tabularnewline
M6 & -5578.99689219737 & 2466.297078 & -2.2621 & 0.029494 & 0.014747 \tabularnewline
M7 & 17664.8784464577 & 2403.344745 & 7.3501 & 0 & 0 \tabularnewline
M8 & 1152.70424096104 & 4660.838654 & 0.2473 & 0.805994 & 0.402997 \tabularnewline
M9 & -6679.57569678684 & 5008.747669 & -1.3336 & 0.19028 & 0.09514 \tabularnewline
M10 & -16111.3074526013 & 4385.432377 & -3.6738 & 0.000733 & 0.000367 \tabularnewline
M11 & -9459.3839340622 & 2597.248662 & -3.6421 & 0.000804 & 0.000402 \tabularnewline
t & -99.011851773791 & 54.96703 & -1.8013 & 0.079596 & 0.039798 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58667&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]19383.0482520845[/C][C]12923.97714[/C][C]1.4998[/C][C]0.141936[/C][C]0.070968[/C][/ROW]
[ROW][C]dummy_variable[/C][C]5208.18468261152[/C][C]2029.574277[/C][C]2.5661[/C][C]0.01435[/C][C]0.007175[/C][/ROW]
[ROW][C]`y[t-1]`[/C][C]0.925680076204517[/C][C]0.146303[/C][C]6.3272[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`y[t-2]`[/C][C]0.170923414732768[/C][C]0.208523[/C][C]0.8197[/C][C]0.417506[/C][C]0.208753[/C][/ROW]
[ROW][C]`y[t-3]`[/C][C]0.155111372936063[/C][C]0.214173[/C][C]0.7242[/C][C]0.473358[/C][C]0.236679[/C][/ROW]
[ROW][C]`y[t-4]
`[/C][C]-0.305318747860637[/C][C]0.156157[/C][C]-1.9552[/C][C]0.057942[/C][C]0.028971[/C][/ROW]
[ROW][C]M1[/C][C]837.730352246995[/C][C]2718.786025[/C][C]0.3081[/C][C]0.759669[/C][C]0.379834[/C][/ROW]
[ROW][C]M2[/C][C]-2931.44490665555[/C][C]2997.827815[/C][C]-0.9779[/C][C]0.33433[/C][C]0.167165[/C][/ROW]
[ROW][C]M3[/C][C]-8038.39352053068[/C][C]2788.968873[/C][C]-2.8822[/C][C]0.006463[/C][C]0.003232[/C][/ROW]
[ROW][C]M4[/C][C]-5571.84238247885[/C][C]2547.179392[/C][C]-2.1875[/C][C]0.034932[/C][C]0.017466[/C][/ROW]
[ROW][C]M5[/C][C]-8599.4415923363[/C][C]2448.908336[/C][C]-3.5115[/C][C]0.001166[/C][C]0.000583[/C][/ROW]
[ROW][C]M6[/C][C]-5578.99689219737[/C][C]2466.297078[/C][C]-2.2621[/C][C]0.029494[/C][C]0.014747[/C][/ROW]
[ROW][C]M7[/C][C]17664.8784464577[/C][C]2403.344745[/C][C]7.3501[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]1152.70424096104[/C][C]4660.838654[/C][C]0.2473[/C][C]0.805994[/C][C]0.402997[/C][/ROW]
[ROW][C]M9[/C][C]-6679.57569678684[/C][C]5008.747669[/C][C]-1.3336[/C][C]0.19028[/C][C]0.09514[/C][/ROW]
[ROW][C]M10[/C][C]-16111.3074526013[/C][C]4385.432377[/C][C]-3.6738[/C][C]0.000733[/C][C]0.000367[/C][/ROW]
[ROW][C]M11[/C][C]-9459.3839340622[/C][C]2597.248662[/C][C]-3.6421[/C][C]0.000804[/C][C]0.000402[/C][/ROW]
[ROW][C]t[/C][C]-99.011851773791[/C][C]54.96703[/C][C]-1.8013[/C][C]0.079596[/C][C]0.039798[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58667&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58667&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)19383.048252084512923.977141.49980.1419360.070968
dummy_variable5208.184682611522029.5742772.56610.014350.007175
`y[t-1]`0.9256800762045170.1463036.327200
`y[t-2]`0.1709234147327680.2085230.81970.4175060.208753
`y[t-3]`0.1551113729360630.2141730.72420.4733580.236679
`y[t-4] `-0.3053187478606370.156157-1.95520.0579420.028971
M1837.7303522469952718.7860250.30810.7596690.379834
M2-2931.444906655552997.827815-0.97790.334330.167165
M3-8038.393520530682788.968873-2.88220.0064630.003232
M4-5571.842382478852547.179392-2.18750.0349320.017466
M5-8599.44159233632448.908336-3.51150.0011660.000583
M6-5578.996892197372466.297078-2.26210.0294940.014747
M717664.87844645772403.3447457.350100
M81152.704240961044660.8386540.24730.8059940.402997
M9-6679.575696786845008.747669-1.33360.190280.09514
M10-16111.30745260134385.432377-3.67380.0007330.000367
M11-9459.38393406222597.248662-3.64210.0008040.000402
t-99.01185177379154.96703-1.80130.0795960.039798







Multiple Linear Regression - Regression Statistics
Multiple R0.987230121934677
R-squared0.974623313655158
Adjusted R-squared0.963270585553518
F-TEST (value)85.8492606296439
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3474.57074208821
Sum Squared Residuals458760389.987466

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987230121934677 \tabularnewline
R-squared & 0.974623313655158 \tabularnewline
Adjusted R-squared & 0.963270585553518 \tabularnewline
F-TEST (value) & 85.8492606296439 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3474.57074208821 \tabularnewline
Sum Squared Residuals & 458760389.987466 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58667&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987230121934677[/C][/ROW]
[ROW][C]R-squared[/C][C]0.974623313655158[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.963270585553518[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]85.8492606296439[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/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]3474.57074208821[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]458760389.987466[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58667&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58667&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.987230121934677
R-squared0.974623313655158
Adjusted R-squared0.963270585553518
F-TEST (value)85.8492606296439
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3474.57074208821
Sum Squared Residuals458760389.987466







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1277128281072.501427316-3944.50142731563
2277103276786.900017334316.099982666263
3275037273554.0582310051482.94176899508
4270150273507.865321602-3357.86532160251
5267140265740.7360229651399.26397703518
6264993264727.741986366265.258013634064
7287259285243.4501248322015.54987516802
8291186289901.6915611571284.30843884250
9292300289997.3114966982302.68850330244
10288186286278.2209251081907.77907489212
11281477283024.188564035-1547.18856403507
12282656284444.801433459-1788.80143345883
13280190284149.918280959-3959.9182809593
14280408278415.9619360031992.03806399682
15276836275221.5623743241614.43762567553
16275216273577.3582834241638.64171657631
17274352269127.337372445224.66262755993
18271311270351.469391936959.53060806381
19289802291372.980079952-1570.98007995215
20290726291719.366352895-993.366352894611
21292300287596.0495286634703.95047133746
22278506283476.898305438-4970.89830543822
23269826272027.686397730-2201.68639772965
24265861270957.468613717-5096.4686137172
25269034263922.0723847465111.92761525363
26264176265178.556907356-1002.55690735615
27255198258053.132764192-2855.1327641916
28253353252982.327599127370.672400872754
29246057244890.9789427431166.02105725731
30235372240833.944825825-5461.94482582471
31258556255295.8306997963260.16930020383
32260993257750.9153556933242.08464430695
33254663256608.434923616-1945.43492361564
34250643248493.1096863972149.89031360285
35243422243542.338797006-120.338797006029
36247105243805.3461425743299.65385742575
37248541248028.226340678512.773659321764
38245039246226.148898321-1187.14889832082
39237080240799.884694185-3719.88469418512
40237085234299.6134387232785.38656127730
41225554228835.613569664-3281.61356966443
42226839226126.763596810712.236403189713
43247934250921.015557418-2987.01555741829
44248333252266.571460549-3933.57146054875
45246969252030.204051024-5061.20405102425
46245098244184.771083057913.228916943247
47246263242393.7862412293869.21375877075
48255765252179.3838102503585.61618975027
49264319262039.2815663002279.71843369953
50268347268465.432240986-118.432240986103
51273046269568.3619362943477.63806370610
52273963275399.835357124-1436.83535712385
53267430271938.334092188-4508.33409218799
54271993268468.0801990633524.91980093712
55292710293427.723538001-717.723538001405
56295881295480.455269706400.544730293901

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 277128 & 281072.501427316 & -3944.50142731563 \tabularnewline
2 & 277103 & 276786.900017334 & 316.099982666263 \tabularnewline
3 & 275037 & 273554.058231005 & 1482.94176899508 \tabularnewline
4 & 270150 & 273507.865321602 & -3357.86532160251 \tabularnewline
5 & 267140 & 265740.736022965 & 1399.26397703518 \tabularnewline
6 & 264993 & 264727.741986366 & 265.258013634064 \tabularnewline
7 & 287259 & 285243.450124832 & 2015.54987516802 \tabularnewline
8 & 291186 & 289901.691561157 & 1284.30843884250 \tabularnewline
9 & 292300 & 289997.311496698 & 2302.68850330244 \tabularnewline
10 & 288186 & 286278.220925108 & 1907.77907489212 \tabularnewline
11 & 281477 & 283024.188564035 & -1547.18856403507 \tabularnewline
12 & 282656 & 284444.801433459 & -1788.80143345883 \tabularnewline
13 & 280190 & 284149.918280959 & -3959.9182809593 \tabularnewline
14 & 280408 & 278415.961936003 & 1992.03806399682 \tabularnewline
15 & 276836 & 275221.562374324 & 1614.43762567553 \tabularnewline
16 & 275216 & 273577.358283424 & 1638.64171657631 \tabularnewline
17 & 274352 & 269127.33737244 & 5224.66262755993 \tabularnewline
18 & 271311 & 270351.469391936 & 959.53060806381 \tabularnewline
19 & 289802 & 291372.980079952 & -1570.98007995215 \tabularnewline
20 & 290726 & 291719.366352895 & -993.366352894611 \tabularnewline
21 & 292300 & 287596.049528663 & 4703.95047133746 \tabularnewline
22 & 278506 & 283476.898305438 & -4970.89830543822 \tabularnewline
23 & 269826 & 272027.686397730 & -2201.68639772965 \tabularnewline
24 & 265861 & 270957.468613717 & -5096.4686137172 \tabularnewline
25 & 269034 & 263922.072384746 & 5111.92761525363 \tabularnewline
26 & 264176 & 265178.556907356 & -1002.55690735615 \tabularnewline
27 & 255198 & 258053.132764192 & -2855.1327641916 \tabularnewline
28 & 253353 & 252982.327599127 & 370.672400872754 \tabularnewline
29 & 246057 & 244890.978942743 & 1166.02105725731 \tabularnewline
30 & 235372 & 240833.944825825 & -5461.94482582471 \tabularnewline
31 & 258556 & 255295.830699796 & 3260.16930020383 \tabularnewline
32 & 260993 & 257750.915355693 & 3242.08464430695 \tabularnewline
33 & 254663 & 256608.434923616 & -1945.43492361564 \tabularnewline
34 & 250643 & 248493.109686397 & 2149.89031360285 \tabularnewline
35 & 243422 & 243542.338797006 & -120.338797006029 \tabularnewline
36 & 247105 & 243805.346142574 & 3299.65385742575 \tabularnewline
37 & 248541 & 248028.226340678 & 512.773659321764 \tabularnewline
38 & 245039 & 246226.148898321 & -1187.14889832082 \tabularnewline
39 & 237080 & 240799.884694185 & -3719.88469418512 \tabularnewline
40 & 237085 & 234299.613438723 & 2785.38656127730 \tabularnewline
41 & 225554 & 228835.613569664 & -3281.61356966443 \tabularnewline
42 & 226839 & 226126.763596810 & 712.236403189713 \tabularnewline
43 & 247934 & 250921.015557418 & -2987.01555741829 \tabularnewline
44 & 248333 & 252266.571460549 & -3933.57146054875 \tabularnewline
45 & 246969 & 252030.204051024 & -5061.20405102425 \tabularnewline
46 & 245098 & 244184.771083057 & 913.228916943247 \tabularnewline
47 & 246263 & 242393.786241229 & 3869.21375877075 \tabularnewline
48 & 255765 & 252179.383810250 & 3585.61618975027 \tabularnewline
49 & 264319 & 262039.281566300 & 2279.71843369953 \tabularnewline
50 & 268347 & 268465.432240986 & -118.432240986103 \tabularnewline
51 & 273046 & 269568.361936294 & 3477.63806370610 \tabularnewline
52 & 273963 & 275399.835357124 & -1436.83535712385 \tabularnewline
53 & 267430 & 271938.334092188 & -4508.33409218799 \tabularnewline
54 & 271993 & 268468.080199063 & 3524.91980093712 \tabularnewline
55 & 292710 & 293427.723538001 & -717.723538001405 \tabularnewline
56 & 295881 & 295480.455269706 & 400.544730293901 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58667&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]277128[/C][C]281072.501427316[/C][C]-3944.50142731563[/C][/ROW]
[ROW][C]2[/C][C]277103[/C][C]276786.900017334[/C][C]316.099982666263[/C][/ROW]
[ROW][C]3[/C][C]275037[/C][C]273554.058231005[/C][C]1482.94176899508[/C][/ROW]
[ROW][C]4[/C][C]270150[/C][C]273507.865321602[/C][C]-3357.86532160251[/C][/ROW]
[ROW][C]5[/C][C]267140[/C][C]265740.736022965[/C][C]1399.26397703518[/C][/ROW]
[ROW][C]6[/C][C]264993[/C][C]264727.741986366[/C][C]265.258013634064[/C][/ROW]
[ROW][C]7[/C][C]287259[/C][C]285243.450124832[/C][C]2015.54987516802[/C][/ROW]
[ROW][C]8[/C][C]291186[/C][C]289901.691561157[/C][C]1284.30843884250[/C][/ROW]
[ROW][C]9[/C][C]292300[/C][C]289997.311496698[/C][C]2302.68850330244[/C][/ROW]
[ROW][C]10[/C][C]288186[/C][C]286278.220925108[/C][C]1907.77907489212[/C][/ROW]
[ROW][C]11[/C][C]281477[/C][C]283024.188564035[/C][C]-1547.18856403507[/C][/ROW]
[ROW][C]12[/C][C]282656[/C][C]284444.801433459[/C][C]-1788.80143345883[/C][/ROW]
[ROW][C]13[/C][C]280190[/C][C]284149.918280959[/C][C]-3959.9182809593[/C][/ROW]
[ROW][C]14[/C][C]280408[/C][C]278415.961936003[/C][C]1992.03806399682[/C][/ROW]
[ROW][C]15[/C][C]276836[/C][C]275221.562374324[/C][C]1614.43762567553[/C][/ROW]
[ROW][C]16[/C][C]275216[/C][C]273577.358283424[/C][C]1638.64171657631[/C][/ROW]
[ROW][C]17[/C][C]274352[/C][C]269127.33737244[/C][C]5224.66262755993[/C][/ROW]
[ROW][C]18[/C][C]271311[/C][C]270351.469391936[/C][C]959.53060806381[/C][/ROW]
[ROW][C]19[/C][C]289802[/C][C]291372.980079952[/C][C]-1570.98007995215[/C][/ROW]
[ROW][C]20[/C][C]290726[/C][C]291719.366352895[/C][C]-993.366352894611[/C][/ROW]
[ROW][C]21[/C][C]292300[/C][C]287596.049528663[/C][C]4703.95047133746[/C][/ROW]
[ROW][C]22[/C][C]278506[/C][C]283476.898305438[/C][C]-4970.89830543822[/C][/ROW]
[ROW][C]23[/C][C]269826[/C][C]272027.686397730[/C][C]-2201.68639772965[/C][/ROW]
[ROW][C]24[/C][C]265861[/C][C]270957.468613717[/C][C]-5096.4686137172[/C][/ROW]
[ROW][C]25[/C][C]269034[/C][C]263922.072384746[/C][C]5111.92761525363[/C][/ROW]
[ROW][C]26[/C][C]264176[/C][C]265178.556907356[/C][C]-1002.55690735615[/C][/ROW]
[ROW][C]27[/C][C]255198[/C][C]258053.132764192[/C][C]-2855.1327641916[/C][/ROW]
[ROW][C]28[/C][C]253353[/C][C]252982.327599127[/C][C]370.672400872754[/C][/ROW]
[ROW][C]29[/C][C]246057[/C][C]244890.978942743[/C][C]1166.02105725731[/C][/ROW]
[ROW][C]30[/C][C]235372[/C][C]240833.944825825[/C][C]-5461.94482582471[/C][/ROW]
[ROW][C]31[/C][C]258556[/C][C]255295.830699796[/C][C]3260.16930020383[/C][/ROW]
[ROW][C]32[/C][C]260993[/C][C]257750.915355693[/C][C]3242.08464430695[/C][/ROW]
[ROW][C]33[/C][C]254663[/C][C]256608.434923616[/C][C]-1945.43492361564[/C][/ROW]
[ROW][C]34[/C][C]250643[/C][C]248493.109686397[/C][C]2149.89031360285[/C][/ROW]
[ROW][C]35[/C][C]243422[/C][C]243542.338797006[/C][C]-120.338797006029[/C][/ROW]
[ROW][C]36[/C][C]247105[/C][C]243805.346142574[/C][C]3299.65385742575[/C][/ROW]
[ROW][C]37[/C][C]248541[/C][C]248028.226340678[/C][C]512.773659321764[/C][/ROW]
[ROW][C]38[/C][C]245039[/C][C]246226.148898321[/C][C]-1187.14889832082[/C][/ROW]
[ROW][C]39[/C][C]237080[/C][C]240799.884694185[/C][C]-3719.88469418512[/C][/ROW]
[ROW][C]40[/C][C]237085[/C][C]234299.613438723[/C][C]2785.38656127730[/C][/ROW]
[ROW][C]41[/C][C]225554[/C][C]228835.613569664[/C][C]-3281.61356966443[/C][/ROW]
[ROW][C]42[/C][C]226839[/C][C]226126.763596810[/C][C]712.236403189713[/C][/ROW]
[ROW][C]43[/C][C]247934[/C][C]250921.015557418[/C][C]-2987.01555741829[/C][/ROW]
[ROW][C]44[/C][C]248333[/C][C]252266.571460549[/C][C]-3933.57146054875[/C][/ROW]
[ROW][C]45[/C][C]246969[/C][C]252030.204051024[/C][C]-5061.20405102425[/C][/ROW]
[ROW][C]46[/C][C]245098[/C][C]244184.771083057[/C][C]913.228916943247[/C][/ROW]
[ROW][C]47[/C][C]246263[/C][C]242393.786241229[/C][C]3869.21375877075[/C][/ROW]
[ROW][C]48[/C][C]255765[/C][C]252179.383810250[/C][C]3585.61618975027[/C][/ROW]
[ROW][C]49[/C][C]264319[/C][C]262039.281566300[/C][C]2279.71843369953[/C][/ROW]
[ROW][C]50[/C][C]268347[/C][C]268465.432240986[/C][C]-118.432240986103[/C][/ROW]
[ROW][C]51[/C][C]273046[/C][C]269568.361936294[/C][C]3477.63806370610[/C][/ROW]
[ROW][C]52[/C][C]273963[/C][C]275399.835357124[/C][C]-1436.83535712385[/C][/ROW]
[ROW][C]53[/C][C]267430[/C][C]271938.334092188[/C][C]-4508.33409218799[/C][/ROW]
[ROW][C]54[/C][C]271993[/C][C]268468.080199063[/C][C]3524.91980093712[/C][/ROW]
[ROW][C]55[/C][C]292710[/C][C]293427.723538001[/C][C]-717.723538001405[/C][/ROW]
[ROW][C]56[/C][C]295881[/C][C]295480.455269706[/C][C]400.544730293901[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58667&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58667&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
1277128281072.501427316-3944.50142731563
2277103276786.900017334316.099982666263
3275037273554.0582310051482.94176899508
4270150273507.865321602-3357.86532160251
5267140265740.7360229651399.26397703518
6264993264727.741986366265.258013634064
7287259285243.4501248322015.54987516802
8291186289901.6915611571284.30843884250
9292300289997.3114966982302.68850330244
10288186286278.2209251081907.77907489212
11281477283024.188564035-1547.18856403507
12282656284444.801433459-1788.80143345883
13280190284149.918280959-3959.9182809593
14280408278415.9619360031992.03806399682
15276836275221.5623743241614.43762567553
16275216273577.3582834241638.64171657631
17274352269127.337372445224.66262755993
18271311270351.469391936959.53060806381
19289802291372.980079952-1570.98007995215
20290726291719.366352895-993.366352894611
21292300287596.0495286634703.95047133746
22278506283476.898305438-4970.89830543822
23269826272027.686397730-2201.68639772965
24265861270957.468613717-5096.4686137172
25269034263922.0723847465111.92761525363
26264176265178.556907356-1002.55690735615
27255198258053.132764192-2855.1327641916
28253353252982.327599127370.672400872754
29246057244890.9789427431166.02105725731
30235372240833.944825825-5461.94482582471
31258556255295.8306997963260.16930020383
32260993257750.9153556933242.08464430695
33254663256608.434923616-1945.43492361564
34250643248493.1096863972149.89031360285
35243422243542.338797006-120.338797006029
36247105243805.3461425743299.65385742575
37248541248028.226340678512.773659321764
38245039246226.148898321-1187.14889832082
39237080240799.884694185-3719.88469418512
40237085234299.6134387232785.38656127730
41225554228835.613569664-3281.61356966443
42226839226126.763596810712.236403189713
43247934250921.015557418-2987.01555741829
44248333252266.571460549-3933.57146054875
45246969252030.204051024-5061.20405102425
46245098244184.771083057913.228916943247
47246263242393.7862412293869.21375877075
48255765252179.3838102503585.61618975027
49264319262039.2815663002279.71843369953
50268347268465.432240986-118.432240986103
51273046269568.3619362943477.63806370610
52273963275399.835357124-1436.83535712385
53267430271938.334092188-4508.33409218799
54271993268468.0801990633524.91980093712
55292710293427.723538001-717.723538001405
56295881295480.455269706400.544730293901







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.02563041871909400.05126083743818790.974369581280906
220.5955904819706410.8088190360587180.404409518029359
230.447338573017630.894677146035260.55266142698237
240.4808341156660410.9616682313320820.519165884333959
250.4673739722549890.9347479445099780.532626027745011
260.3682505050006440.7365010100012880.631749494999356
270.3461881734853050.6923763469706090.653811826514695
280.4534570464166260.9069140928332520.546542953583374
290.3620209759133060.7240419518266120.637979024086694
300.4811707488706940.9623414977413890.518829251129306
310.5664588767503540.8670822464992910.433541123249646
320.7452185949868990.5095628100262020.254781405013101
330.682203020710820.635593958578360.31779697928918
340.6362773274439660.7274453451120680.363722672556034
350.4649821105263080.9299642210526160.535017889473692

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0256304187190940 & 0.0512608374381879 & 0.974369581280906 \tabularnewline
22 & 0.595590481970641 & 0.808819036058718 & 0.404409518029359 \tabularnewline
23 & 0.44733857301763 & 0.89467714603526 & 0.55266142698237 \tabularnewline
24 & 0.480834115666041 & 0.961668231332082 & 0.519165884333959 \tabularnewline
25 & 0.467373972254989 & 0.934747944509978 & 0.532626027745011 \tabularnewline
26 & 0.368250505000644 & 0.736501010001288 & 0.631749494999356 \tabularnewline
27 & 0.346188173485305 & 0.692376346970609 & 0.653811826514695 \tabularnewline
28 & 0.453457046416626 & 0.906914092833252 & 0.546542953583374 \tabularnewline
29 & 0.362020975913306 & 0.724041951826612 & 0.637979024086694 \tabularnewline
30 & 0.481170748870694 & 0.962341497741389 & 0.518829251129306 \tabularnewline
31 & 0.566458876750354 & 0.867082246499291 & 0.433541123249646 \tabularnewline
32 & 0.745218594986899 & 0.509562810026202 & 0.254781405013101 \tabularnewline
33 & 0.68220302071082 & 0.63559395857836 & 0.31779697928918 \tabularnewline
34 & 0.636277327443966 & 0.727445345112068 & 0.363722672556034 \tabularnewline
35 & 0.464982110526308 & 0.929964221052616 & 0.535017889473692 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58667&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]21[/C][C]0.0256304187190940[/C][C]0.0512608374381879[/C][C]0.974369581280906[/C][/ROW]
[ROW][C]22[/C][C]0.595590481970641[/C][C]0.808819036058718[/C][C]0.404409518029359[/C][/ROW]
[ROW][C]23[/C][C]0.44733857301763[/C][C]0.89467714603526[/C][C]0.55266142698237[/C][/ROW]
[ROW][C]24[/C][C]0.480834115666041[/C][C]0.961668231332082[/C][C]0.519165884333959[/C][/ROW]
[ROW][C]25[/C][C]0.467373972254989[/C][C]0.934747944509978[/C][C]0.532626027745011[/C][/ROW]
[ROW][C]26[/C][C]0.368250505000644[/C][C]0.736501010001288[/C][C]0.631749494999356[/C][/ROW]
[ROW][C]27[/C][C]0.346188173485305[/C][C]0.692376346970609[/C][C]0.653811826514695[/C][/ROW]
[ROW][C]28[/C][C]0.453457046416626[/C][C]0.906914092833252[/C][C]0.546542953583374[/C][/ROW]
[ROW][C]29[/C][C]0.362020975913306[/C][C]0.724041951826612[/C][C]0.637979024086694[/C][/ROW]
[ROW][C]30[/C][C]0.481170748870694[/C][C]0.962341497741389[/C][C]0.518829251129306[/C][/ROW]
[ROW][C]31[/C][C]0.566458876750354[/C][C]0.867082246499291[/C][C]0.433541123249646[/C][/ROW]
[ROW][C]32[/C][C]0.745218594986899[/C][C]0.509562810026202[/C][C]0.254781405013101[/C][/ROW]
[ROW][C]33[/C][C]0.68220302071082[/C][C]0.63559395857836[/C][C]0.31779697928918[/C][/ROW]
[ROW][C]34[/C][C]0.636277327443966[/C][C]0.727445345112068[/C][C]0.363722672556034[/C][/ROW]
[ROW][C]35[/C][C]0.464982110526308[/C][C]0.929964221052616[/C][C]0.535017889473692[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58667&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58667&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
210.02563041871909400.05126083743818790.974369581280906
220.5955904819706410.8088190360587180.404409518029359
230.447338573017630.894677146035260.55266142698237
240.4808341156660410.9616682313320820.519165884333959
250.4673739722549890.9347479445099780.532626027745011
260.3682505050006440.7365010100012880.631749494999356
270.3461881734853050.6923763469706090.653811826514695
280.4534570464166260.9069140928332520.546542953583374
290.3620209759133060.7240419518266120.637979024086694
300.4811707488706940.9623414977413890.518829251129306
310.5664588767503540.8670822464992910.433541123249646
320.7452185949868990.5095628100262020.254781405013101
330.682203020710820.635593958578360.31779697928918
340.6362773274439660.7274453451120680.363722672556034
350.4649821105263080.9299642210526160.535017889473692







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 level10.0666666666666667OK

\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 & 1 & 0.0666666666666667 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58667&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]1[/C][C]0.0666666666666667[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58667&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58667&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 level10.0666666666666667OK



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