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 07:48:40 -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/t1258555896rkuqhcod7f92bg0.htm/, Retrieved Wed, 01 May 2024 21:01:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57462, Retrieved Wed, 01 May 2024 21:01:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact174
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:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [SHW WS7] [2009-11-18 14:48:40] [b7e46d23597387652ca7420fdeb9acca] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.8	2.61	7.8	8.3	8.5	8.6
8	2.26	7.8	7.8	8.3	8.5
8.6	2.41	8	7.8	7.8	8.3
8.9	2.26	8.6	8	7.8	7.8
8.9	2.03	8.9	8.6	8	7.8
8.6	2.86	8.9	8.9	8.6	8
8.3	2.55	8.6	8.9	8.9	8.6
8.3	2.27	8.3	8.6	8.9	8.9
8.3	2.26	8.3	8.3	8.6	8.9
8.4	2.57	8.3	8.3	8.3	8.6
8.5	3.07	8.4	8.3	8.3	8.3
8.4	2.76	8.5	8.4	8.3	8.3
8.6	2.51	8.4	8.5	8.4	8.3
8.5	2.87	8.6	8.4	8.5	8.4
8.5	3.14	8.5	8.6	8.4	8.5
8.5	3.11	8.5	8.5	8.6	8.4
8.5	3.16	8.5	8.5	8.5	8.6
8.5	2.47	8.5	8.5	8.5	8.5
8.5	2.57	8.5	8.5	8.5	8.5
8.5	2.89	8.5	8.5	8.5	8.5
8.5	2.63	8.5	8.5	8.5	8.5
8.5	2.38	8.5	8.5	8.5	8.5
8.5	1.69	8.5	8.5	8.5	8.5
8.5	1.96	8.5	8.5	8.5	8.5
8.6	2.19	8.5	8.5	8.5	8.5
8.4	1.87	8.6	8.5	8.5	8.5
8.1	1.6	8.4	8.6	8.5	8.5
8	1.63	8.1	8.4	8.6	8.5
8	1.22	8	8.1	8.4	8.6
8	1.21	8	8	8.1	8.4
8	1.49	8	8	8	8.1
7.9	1.64	8	8	8	8
7.8	1.66	7.9	8	8	8
7.8	1.77	7.8	7.9	8	8
7.9	1.82	7.8	7.8	7.9	8
8.1	1.78	7.9	7.8	7.8	7.9
8	1.28	8.1	7.9	7.8	7.8
7.6	1.29	8	8.1	7.9	7.8
7.3	1.37	7.6	8	8.1	7.9
7	1.12	7.3	7.6	8	8.1
6.8	1.51	7	7.3	7.6	8
7	2.24	6.8	7	7.3	7.6
7.1	2.94	7	6.8	7	7.3
7.2	3.09	7.1	7	6.8	7
7.1	3.46	7.2	7.1	7	6.8
6.9	3.64	7.1	7.2	7.1	7
6.7	4.39	6.9	7.1	7.2	7.1
6.7	4.15	6.7	6.9	7.1	7.2
6.6	5.21	6.7	6.7	6.9	7.1
6.9	5.8	6.6	6.7	6.7	6.9
7.3	5.91	6.9	6.6	6.7	6.7
7.5	5.39	7.3	6.9	6.6	6.7
7.3	5.46	7.5	7.3	6.9	6.6
7.1	4.72	7.3	7.5	7.3	6.9
6.9	3.14	7.1	7.3	7.5	7.3
7.1	2.63	6.9	7.1	7.3	7.5




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.64027424928453 + 0.0377069120685262X[t] + 1.36847147956655Y1[t] -0.520279112579848Y2[t] -0.356940166912918Y3[t] + 0.433839342938828Y4[t] + 0.00539445361760528M1[t] -0.097791454205246M2[t] + 0.0385041622066780M3[t] -0.0180838134340601M4[t] -0.100888043206709M5[t] + 0.00891596322495888M6[t] -0.0471410167153764M7[t] + 0.0400868743274814M8[t] -0.0691759095235761M9[t] -0.0311358304896136M10[t] -0.00207945143914559M11[t] -0.00491688463380581t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.64027424928453 +  0.0377069120685262X[t] +  1.36847147956655Y1[t] -0.520279112579848Y2[t] -0.356940166912918Y3[t] +  0.433839342938828Y4[t] +  0.00539445361760528M1[t] -0.097791454205246M2[t] +  0.0385041622066780M3[t] -0.0180838134340601M4[t] -0.100888043206709M5[t] +  0.00891596322495888M6[t] -0.0471410167153764M7[t] +  0.0400868743274814M8[t] -0.0691759095235761M9[t] -0.0311358304896136M10[t] -0.00207945143914559M11[t] -0.00491688463380581t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57462&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.64027424928453 +  0.0377069120685262X[t] +  1.36847147956655Y1[t] -0.520279112579848Y2[t] -0.356940166912918Y3[t] +  0.433839342938828Y4[t] +  0.00539445361760528M1[t] -0.097791454205246M2[t] +  0.0385041622066780M3[t] -0.0180838134340601M4[t] -0.100888043206709M5[t] +  0.00891596322495888M6[t] -0.0471410167153764M7[t] +  0.0400868743274814M8[t] -0.0691759095235761M9[t] -0.0311358304896136M10[t] -0.00207945143914559M11[t] -0.00491688463380581t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57462&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.64027424928453 + 0.0377069120685262X[t] + 1.36847147956655Y1[t] -0.520279112579848Y2[t] -0.356940166912918Y3[t] + 0.433839342938828Y4[t] + 0.00539445361760528M1[t] -0.097791454205246M2[t] + 0.0385041622066780M3[t] -0.0180838134340601M4[t] -0.100888043206709M5[t] + 0.00891596322495888M6[t] -0.0471410167153764M7[t] + 0.0400868743274814M8[t] -0.0691759095235761M9[t] -0.0311358304896136M10[t] -0.00207945143914559M11[t] -0.00491688463380581t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.640274249284530.6805190.94090.3527180.176359
X0.03770691206852620.0218741.72380.0928670.046434
Y11.368471479566550.1318610.378200
Y2-0.5202791125798480.242107-2.1490.038070.019035
Y3-0.3569401669129180.241719-1.47670.1480030.074001
Y40.4338393429388280.1400823.0970.0036650.001832
M10.005394453617605280.0903080.05970.9526810.47634
M2-0.0977914542052460.090125-1.08510.284730.142365
M30.03850416220667800.0906170.42490.6732980.336649
M4-0.01808381343406010.091132-0.19840.8437620.421881
M5-0.1008880432067090.090185-1.11870.2702970.135149
M60.008915963224958880.0906490.09840.9221650.461083
M7-0.04714101671537640.090196-0.52260.6042520.302126
M80.04008687432748140.0897410.44670.6576320.328816
M9-0.06917590952357610.094395-0.73280.4681540.234077
M10-0.03113583048961360.094576-0.32920.7438020.371901
M11-0.002079451439145590.094437-0.0220.9825480.491274
t-0.004916884633805810.002338-2.10310.0421310.021065

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 0.64027424928453 & 0.680519 & 0.9409 & 0.352718 & 0.176359 \tabularnewline
X & 0.0377069120685262 & 0.021874 & 1.7238 & 0.092867 & 0.046434 \tabularnewline
Y1 & 1.36847147956655 & 0.13186 & 10.3782 & 0 & 0 \tabularnewline
Y2 & -0.520279112579848 & 0.242107 & -2.149 & 0.03807 & 0.019035 \tabularnewline
Y3 & -0.356940166912918 & 0.241719 & -1.4767 & 0.148003 & 0.074001 \tabularnewline
Y4 & 0.433839342938828 & 0.140082 & 3.097 & 0.003665 & 0.001832 \tabularnewline
M1 & 0.00539445361760528 & 0.090308 & 0.0597 & 0.952681 & 0.47634 \tabularnewline
M2 & -0.097791454205246 & 0.090125 & -1.0851 & 0.28473 & 0.142365 \tabularnewline
M3 & 0.0385041622066780 & 0.090617 & 0.4249 & 0.673298 & 0.336649 \tabularnewline
M4 & -0.0180838134340601 & 0.091132 & -0.1984 & 0.843762 & 0.421881 \tabularnewline
M5 & -0.100888043206709 & 0.090185 & -1.1187 & 0.270297 & 0.135149 \tabularnewline
M6 & 0.00891596322495888 & 0.090649 & 0.0984 & 0.922165 & 0.461083 \tabularnewline
M7 & -0.0471410167153764 & 0.090196 & -0.5226 & 0.604252 & 0.302126 \tabularnewline
M8 & 0.0400868743274814 & 0.089741 & 0.4467 & 0.657632 & 0.328816 \tabularnewline
M9 & -0.0691759095235761 & 0.094395 & -0.7328 & 0.468154 & 0.234077 \tabularnewline
M10 & -0.0311358304896136 & 0.094576 & -0.3292 & 0.743802 & 0.371901 \tabularnewline
M11 & -0.00207945143914559 & 0.094437 & -0.022 & 0.982548 & 0.491274 \tabularnewline
t & -0.00491688463380581 & 0.002338 & -2.1031 & 0.042131 & 0.021065 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57462&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]0.64027424928453[/C][C]0.680519[/C][C]0.9409[/C][C]0.352718[/C][C]0.176359[/C][/ROW]
[ROW][C]X[/C][C]0.0377069120685262[/C][C]0.021874[/C][C]1.7238[/C][C]0.092867[/C][C]0.046434[/C][/ROW]
[ROW][C]Y1[/C][C]1.36847147956655[/C][C]0.13186[/C][C]10.3782[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.520279112579848[/C][C]0.242107[/C][C]-2.149[/C][C]0.03807[/C][C]0.019035[/C][/ROW]
[ROW][C]Y3[/C][C]-0.356940166912918[/C][C]0.241719[/C][C]-1.4767[/C][C]0.148003[/C][C]0.074001[/C][/ROW]
[ROW][C]Y4[/C][C]0.433839342938828[/C][C]0.140082[/C][C]3.097[/C][C]0.003665[/C][C]0.001832[/C][/ROW]
[ROW][C]M1[/C][C]0.00539445361760528[/C][C]0.090308[/C][C]0.0597[/C][C]0.952681[/C][C]0.47634[/C][/ROW]
[ROW][C]M2[/C][C]-0.097791454205246[/C][C]0.090125[/C][C]-1.0851[/C][C]0.28473[/C][C]0.142365[/C][/ROW]
[ROW][C]M3[/C][C]0.0385041622066780[/C][C]0.090617[/C][C]0.4249[/C][C]0.673298[/C][C]0.336649[/C][/ROW]
[ROW][C]M4[/C][C]-0.0180838134340601[/C][C]0.091132[/C][C]-0.1984[/C][C]0.843762[/C][C]0.421881[/C][/ROW]
[ROW][C]M5[/C][C]-0.100888043206709[/C][C]0.090185[/C][C]-1.1187[/C][C]0.270297[/C][C]0.135149[/C][/ROW]
[ROW][C]M6[/C][C]0.00891596322495888[/C][C]0.090649[/C][C]0.0984[/C][C]0.922165[/C][C]0.461083[/C][/ROW]
[ROW][C]M7[/C][C]-0.0471410167153764[/C][C]0.090196[/C][C]-0.5226[/C][C]0.604252[/C][C]0.302126[/C][/ROW]
[ROW][C]M8[/C][C]0.0400868743274814[/C][C]0.089741[/C][C]0.4467[/C][C]0.657632[/C][C]0.328816[/C][/ROW]
[ROW][C]M9[/C][C]-0.0691759095235761[/C][C]0.094395[/C][C]-0.7328[/C][C]0.468154[/C][C]0.234077[/C][/ROW]
[ROW][C]M10[/C][C]-0.0311358304896136[/C][C]0.094576[/C][C]-0.3292[/C][C]0.743802[/C][C]0.371901[/C][/ROW]
[ROW][C]M11[/C][C]-0.00207945143914559[/C][C]0.094437[/C][C]-0.022[/C][C]0.982548[/C][C]0.491274[/C][/ROW]
[ROW][C]t[/C][C]-0.00491688463380581[/C][C]0.002338[/C][C]-2.1031[/C][C]0.042131[/C][C]0.021065[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57462&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.640274249284530.6805190.94090.3527180.176359
X0.03770691206852620.0218741.72380.0928670.046434
Y11.368471479566550.1318610.378200
Y2-0.5202791125798480.242107-2.1490.038070.019035
Y3-0.3569401669129180.241719-1.47670.1480030.074001
Y40.4338393429388280.1400823.0970.0036650.001832
M10.005394453617605280.0903080.05970.9526810.47634
M2-0.0977914542052460.090125-1.08510.284730.142365
M30.03850416220667800.0906170.42490.6732980.336649
M4-0.01808381343406010.091132-0.19840.8437620.421881
M5-0.1008880432067090.090185-1.11870.2702970.135149
M60.008915963224958880.0906490.09840.9221650.461083
M7-0.04714101671537640.090196-0.52260.6042520.302126
M80.04008687432748140.0897410.44670.6576320.328816
M9-0.06917590952357610.094395-0.73280.4681540.234077
M10-0.03113583048961360.094576-0.32920.7438020.371901
M11-0.002079451439145590.094437-0.0220.9825480.491274
t-0.004916884633805810.002338-2.10310.0421310.021065







Multiple Linear Regression - Regression Statistics
Multiple R0.986148532657664
R-squared0.972488928462864
Adjusted R-squared0.96018134382783
F-TEST (value)79.0154166963502
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.133055583251779
Sum Squared Residuals0.672743952909903

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.986148532657664 \tabularnewline
R-squared & 0.972488928462864 \tabularnewline
Adjusted R-squared & 0.96018134382783 \tabularnewline
F-TEST (value) & 79.0154166963502 \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 & 0.133055583251779 \tabularnewline
Sum Squared Residuals & 0.672743952909903 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57462&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.986148532657664[/C][/ROW]
[ROW][C]R-squared[/C][C]0.972488928462864[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.96018134382783[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]79.0154166963502[/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]0.133055583251779[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.672743952909903[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57462&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57462&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.986148532657664
R-squared0.972488928462864
Adjusted R-squared0.96018134382783
F-TEST (value)79.0154166963502
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.133055583251779
Sum Squared Residuals0.672743952909903







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.87.791954695487620.0080453045123828
287.95879813918560.0412018608143949
38.68.4612294185560.138770581443997
48.98.894175915225730.00582408477427472
58.98.824768153982980.0752318460170184
68.68.67747204746378-0.0774720474637813
78.38.34748915196785-0.0474891519678527
88.38.294936315783360.00506368421664129
98.38.44354536202564-0.143545362025639
108.48.46528794635927-0.065287946359266
118.58.5149762418852-0.0149762418851976
128.48.58526890264796-0.185268902647964
138.68.35175066770870.248249332291298
148.58.5906344883706-0.0906344883705972
158.58.57036906691977-0.0703690669197686
168.58.444988942864690.0550110571353125
178.58.481615059340720.0183849406592841
188.58.51710047751741-0.0171004775174126
198.58.459897304150120.0401026958498757
208.58.5542745224211-0.0542745224211044
218.58.430291056798420.0697089432015756
228.58.453987523181450.0460124768185504
238.58.452109248270830.0478907517291711
248.58.459452681334670.0405473186653293
258.68.468602840094230.131397159905769
268.48.4852809837323-0.0852809837322994
278.18.28075664208062-0.180756642080624
2887.878203351122850.121796648877152
2987.909030956262060.0909690437379361
3088.08588310168334-0.085883101683336
3187.941009386298020.0589906137019749
327.97.98559249522347-0.0855924952234731
337.87.735319817023330.0646801829766733
347.87.687771535052350.112228464947649
357.97.801518303021720.0984816969782847
368.17.926329823698380.173670176301621
3788.08623638700936-0.0862363870093555
387.67.70191367650947-0.101913676509469
397.37.31294418159573-0.0129441815957346
4077.16204467974509-0.162044679745092
416.86.93396368342064-0.133963683420637
4276.882312601787510.117687398212487
437.17.20241394128285-0.102413941282846
447.27.2644085404438-0.0644085404437963
457.17.090843764152610.00915623584739075
466.96.99295299540693-0.0929529954069337
476.76.83139620682226-0.131396206822258
486.76.72894859231899-0.0289485923189865
496.66.90145540970009-0.301455409700094
506.96.663372712202030.236627287797970
517.37.174700690847870.125299309152130
527.57.52058711104165-0.0205871110416475
537.37.3506221469936-0.0506221469936013
547.17.037231771547960.0627682284520427
556.96.849190216301150.0508097836988479
567.16.900788126128270.199211873871733

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.8 & 7.79195469548762 & 0.0080453045123828 \tabularnewline
2 & 8 & 7.9587981391856 & 0.0412018608143949 \tabularnewline
3 & 8.6 & 8.461229418556 & 0.138770581443997 \tabularnewline
4 & 8.9 & 8.89417591522573 & 0.00582408477427472 \tabularnewline
5 & 8.9 & 8.82476815398298 & 0.0752318460170184 \tabularnewline
6 & 8.6 & 8.67747204746378 & -0.0774720474637813 \tabularnewline
7 & 8.3 & 8.34748915196785 & -0.0474891519678527 \tabularnewline
8 & 8.3 & 8.29493631578336 & 0.00506368421664129 \tabularnewline
9 & 8.3 & 8.44354536202564 & -0.143545362025639 \tabularnewline
10 & 8.4 & 8.46528794635927 & -0.065287946359266 \tabularnewline
11 & 8.5 & 8.5149762418852 & -0.0149762418851976 \tabularnewline
12 & 8.4 & 8.58526890264796 & -0.185268902647964 \tabularnewline
13 & 8.6 & 8.3517506677087 & 0.248249332291298 \tabularnewline
14 & 8.5 & 8.5906344883706 & -0.0906344883705972 \tabularnewline
15 & 8.5 & 8.57036906691977 & -0.0703690669197686 \tabularnewline
16 & 8.5 & 8.44498894286469 & 0.0550110571353125 \tabularnewline
17 & 8.5 & 8.48161505934072 & 0.0183849406592841 \tabularnewline
18 & 8.5 & 8.51710047751741 & -0.0171004775174126 \tabularnewline
19 & 8.5 & 8.45989730415012 & 0.0401026958498757 \tabularnewline
20 & 8.5 & 8.5542745224211 & -0.0542745224211044 \tabularnewline
21 & 8.5 & 8.43029105679842 & 0.0697089432015756 \tabularnewline
22 & 8.5 & 8.45398752318145 & 0.0460124768185504 \tabularnewline
23 & 8.5 & 8.45210924827083 & 0.0478907517291711 \tabularnewline
24 & 8.5 & 8.45945268133467 & 0.0405473186653293 \tabularnewline
25 & 8.6 & 8.46860284009423 & 0.131397159905769 \tabularnewline
26 & 8.4 & 8.4852809837323 & -0.0852809837322994 \tabularnewline
27 & 8.1 & 8.28075664208062 & -0.180756642080624 \tabularnewline
28 & 8 & 7.87820335112285 & 0.121796648877152 \tabularnewline
29 & 8 & 7.90903095626206 & 0.0909690437379361 \tabularnewline
30 & 8 & 8.08588310168334 & -0.085883101683336 \tabularnewline
31 & 8 & 7.94100938629802 & 0.0589906137019749 \tabularnewline
32 & 7.9 & 7.98559249522347 & -0.0855924952234731 \tabularnewline
33 & 7.8 & 7.73531981702333 & 0.0646801829766733 \tabularnewline
34 & 7.8 & 7.68777153505235 & 0.112228464947649 \tabularnewline
35 & 7.9 & 7.80151830302172 & 0.0984816969782847 \tabularnewline
36 & 8.1 & 7.92632982369838 & 0.173670176301621 \tabularnewline
37 & 8 & 8.08623638700936 & -0.0862363870093555 \tabularnewline
38 & 7.6 & 7.70191367650947 & -0.101913676509469 \tabularnewline
39 & 7.3 & 7.31294418159573 & -0.0129441815957346 \tabularnewline
40 & 7 & 7.16204467974509 & -0.162044679745092 \tabularnewline
41 & 6.8 & 6.93396368342064 & -0.133963683420637 \tabularnewline
42 & 7 & 6.88231260178751 & 0.117687398212487 \tabularnewline
43 & 7.1 & 7.20241394128285 & -0.102413941282846 \tabularnewline
44 & 7.2 & 7.2644085404438 & -0.0644085404437963 \tabularnewline
45 & 7.1 & 7.09084376415261 & 0.00915623584739075 \tabularnewline
46 & 6.9 & 6.99295299540693 & -0.0929529954069337 \tabularnewline
47 & 6.7 & 6.83139620682226 & -0.131396206822258 \tabularnewline
48 & 6.7 & 6.72894859231899 & -0.0289485923189865 \tabularnewline
49 & 6.6 & 6.90145540970009 & -0.301455409700094 \tabularnewline
50 & 6.9 & 6.66337271220203 & 0.236627287797970 \tabularnewline
51 & 7.3 & 7.17470069084787 & 0.125299309152130 \tabularnewline
52 & 7.5 & 7.52058711104165 & -0.0205871110416475 \tabularnewline
53 & 7.3 & 7.3506221469936 & -0.0506221469936013 \tabularnewline
54 & 7.1 & 7.03723177154796 & 0.0627682284520427 \tabularnewline
55 & 6.9 & 6.84919021630115 & 0.0508097836988479 \tabularnewline
56 & 7.1 & 6.90078812612827 & 0.199211873871733 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57462&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.8[/C][C]7.79195469548762[/C][C]0.0080453045123828[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]7.9587981391856[/C][C]0.0412018608143949[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.461229418556[/C][C]0.138770581443997[/C][/ROW]
[ROW][C]4[/C][C]8.9[/C][C]8.89417591522573[/C][C]0.00582408477427472[/C][/ROW]
[ROW][C]5[/C][C]8.9[/C][C]8.82476815398298[/C][C]0.0752318460170184[/C][/ROW]
[ROW][C]6[/C][C]8.6[/C][C]8.67747204746378[/C][C]-0.0774720474637813[/C][/ROW]
[ROW][C]7[/C][C]8.3[/C][C]8.34748915196785[/C][C]-0.0474891519678527[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.29493631578336[/C][C]0.00506368421664129[/C][/ROW]
[ROW][C]9[/C][C]8.3[/C][C]8.44354536202564[/C][C]-0.143545362025639[/C][/ROW]
[ROW][C]10[/C][C]8.4[/C][C]8.46528794635927[/C][C]-0.065287946359266[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.5149762418852[/C][C]-0.0149762418851976[/C][/ROW]
[ROW][C]12[/C][C]8.4[/C][C]8.58526890264796[/C][C]-0.185268902647964[/C][/ROW]
[ROW][C]13[/C][C]8.6[/C][C]8.3517506677087[/C][C]0.248249332291298[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.5906344883706[/C][C]-0.0906344883705972[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.57036906691977[/C][C]-0.0703690669197686[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.44498894286469[/C][C]0.0550110571353125[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.48161505934072[/C][C]0.0183849406592841[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.51710047751741[/C][C]-0.0171004775174126[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.45989730415012[/C][C]0.0401026958498757[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.5542745224211[/C][C]-0.0542745224211044[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.43029105679842[/C][C]0.0697089432015756[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.45398752318145[/C][C]0.0460124768185504[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]8.45210924827083[/C][C]0.0478907517291711[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.45945268133467[/C][C]0.0405473186653293[/C][/ROW]
[ROW][C]25[/C][C]8.6[/C][C]8.46860284009423[/C][C]0.131397159905769[/C][/ROW]
[ROW][C]26[/C][C]8.4[/C][C]8.4852809837323[/C][C]-0.0852809837322994[/C][/ROW]
[ROW][C]27[/C][C]8.1[/C][C]8.28075664208062[/C][C]-0.180756642080624[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.87820335112285[/C][C]0.121796648877152[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.90903095626206[/C][C]0.0909690437379361[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.08588310168334[/C][C]-0.085883101683336[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.94100938629802[/C][C]0.0589906137019749[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.98559249522347[/C][C]-0.0855924952234731[/C][/ROW]
[ROW][C]33[/C][C]7.8[/C][C]7.73531981702333[/C][C]0.0646801829766733[/C][/ROW]
[ROW][C]34[/C][C]7.8[/C][C]7.68777153505235[/C][C]0.112228464947649[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.80151830302172[/C][C]0.0984816969782847[/C][/ROW]
[ROW][C]36[/C][C]8.1[/C][C]7.92632982369838[/C][C]0.173670176301621[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]8.08623638700936[/C][C]-0.0862363870093555[/C][/ROW]
[ROW][C]38[/C][C]7.6[/C][C]7.70191367650947[/C][C]-0.101913676509469[/C][/ROW]
[ROW][C]39[/C][C]7.3[/C][C]7.31294418159573[/C][C]-0.0129441815957346[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.16204467974509[/C][C]-0.162044679745092[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.93396368342064[/C][C]-0.133963683420637[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.88231260178751[/C][C]0.117687398212487[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.20241394128285[/C][C]-0.102413941282846[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.2644085404438[/C][C]-0.0644085404437963[/C][/ROW]
[ROW][C]45[/C][C]7.1[/C][C]7.09084376415261[/C][C]0.00915623584739075[/C][/ROW]
[ROW][C]46[/C][C]6.9[/C][C]6.99295299540693[/C][C]-0.0929529954069337[/C][/ROW]
[ROW][C]47[/C][C]6.7[/C][C]6.83139620682226[/C][C]-0.131396206822258[/C][/ROW]
[ROW][C]48[/C][C]6.7[/C][C]6.72894859231899[/C][C]-0.0289485923189865[/C][/ROW]
[ROW][C]49[/C][C]6.6[/C][C]6.90145540970009[/C][C]-0.301455409700094[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.66337271220203[/C][C]0.236627287797970[/C][/ROW]
[ROW][C]51[/C][C]7.3[/C][C]7.17470069084787[/C][C]0.125299309152130[/C][/ROW]
[ROW][C]52[/C][C]7.5[/C][C]7.52058711104165[/C][C]-0.0205871110416475[/C][/ROW]
[ROW][C]53[/C][C]7.3[/C][C]7.3506221469936[/C][C]-0.0506221469936013[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.03723177154796[/C][C]0.0627682284520427[/C][/ROW]
[ROW][C]55[/C][C]6.9[/C][C]6.84919021630115[/C][C]0.0508097836988479[/C][/ROW]
[ROW][C]56[/C][C]7.1[/C][C]6.90078812612827[/C][C]0.199211873871733[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57462&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57462&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.87.791954695487620.0080453045123828
287.95879813918560.0412018608143949
38.68.4612294185560.138770581443997
48.98.894175915225730.00582408477427472
58.98.824768153982980.0752318460170184
68.68.67747204746378-0.0774720474637813
78.38.34748915196785-0.0474891519678527
88.38.294936315783360.00506368421664129
98.38.44354536202564-0.143545362025639
108.48.46528794635927-0.065287946359266
118.58.5149762418852-0.0149762418851976
128.48.58526890264796-0.185268902647964
138.68.35175066770870.248249332291298
148.58.5906344883706-0.0906344883705972
158.58.57036906691977-0.0703690669197686
168.58.444988942864690.0550110571353125
178.58.481615059340720.0183849406592841
188.58.51710047751741-0.0171004775174126
198.58.459897304150120.0401026958498757
208.58.5542745224211-0.0542745224211044
218.58.430291056798420.0697089432015756
228.58.453987523181450.0460124768185504
238.58.452109248270830.0478907517291711
248.58.459452681334670.0405473186653293
258.68.468602840094230.131397159905769
268.48.4852809837323-0.0852809837322994
278.18.28075664208062-0.180756642080624
2887.878203351122850.121796648877152
2987.909030956262060.0909690437379361
3088.08588310168334-0.085883101683336
3187.941009386298020.0589906137019749
327.97.98559249522347-0.0855924952234731
337.87.735319817023330.0646801829766733
347.87.687771535052350.112228464947649
357.97.801518303021720.0984816969782847
368.17.926329823698380.173670176301621
3788.08623638700936-0.0862363870093555
387.67.70191367650947-0.101913676509469
397.37.31294418159573-0.0129441815957346
4077.16204467974509-0.162044679745092
416.86.93396368342064-0.133963683420637
4276.882312601787510.117687398212487
437.17.20241394128285-0.102413941282846
447.27.2644085404438-0.0644085404437963
457.17.090843764152610.00915623584739075
466.96.99295299540693-0.0929529954069337
476.76.83139620682226-0.131396206822258
486.76.72894859231899-0.0289485923189865
496.66.90145540970009-0.301455409700094
506.96.663372712202030.236627287797970
517.37.174700690847870.125299309152130
527.57.52058711104165-0.0205871110416475
537.37.3506221469936-0.0506221469936013
547.17.037231771547960.0627682284520427
556.96.849190216301150.0508097836988479
567.16.900788126128270.199211873871733







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.02803158300936830.05606316601873670.971968416990632
220.1587281405229850.3174562810459690.841271859477015
230.09305429840848690.1861085968169740.906945701591513
240.05008953615398470.1001790723079690.949910463846015
250.05233325962855940.1046665192571190.94766674037144
260.04183113583262260.08366227166524520.958168864167377
270.2590692295245620.5181384590491230.740930770475438
280.2525539462775880.5051078925551760.747446053722412
290.2247271548559350.4494543097118690.775272845144065
300.3998138928210270.7996277856420540.600186107178973
310.3345931361068530.6691862722137060.665406863893147
320.2713321561217070.5426643122434140.728667843878293
330.2158173870982280.4316347741964570.784182612901771
340.1216491531213780.2432983062427550.878350846878622
350.05802989365507450.1160597873101490.941970106344926

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0280315830093683 & 0.0560631660187367 & 0.971968416990632 \tabularnewline
22 & 0.158728140522985 & 0.317456281045969 & 0.841271859477015 \tabularnewline
23 & 0.0930542984084869 & 0.186108596816974 & 0.906945701591513 \tabularnewline
24 & 0.0500895361539847 & 0.100179072307969 & 0.949910463846015 \tabularnewline
25 & 0.0523332596285594 & 0.104666519257119 & 0.94766674037144 \tabularnewline
26 & 0.0418311358326226 & 0.0836622716652452 & 0.958168864167377 \tabularnewline
27 & 0.259069229524562 & 0.518138459049123 & 0.740930770475438 \tabularnewline
28 & 0.252553946277588 & 0.505107892555176 & 0.747446053722412 \tabularnewline
29 & 0.224727154855935 & 0.449454309711869 & 0.775272845144065 \tabularnewline
30 & 0.399813892821027 & 0.799627785642054 & 0.600186107178973 \tabularnewline
31 & 0.334593136106853 & 0.669186272213706 & 0.665406863893147 \tabularnewline
32 & 0.271332156121707 & 0.542664312243414 & 0.728667843878293 \tabularnewline
33 & 0.215817387098228 & 0.431634774196457 & 0.784182612901771 \tabularnewline
34 & 0.121649153121378 & 0.243298306242755 & 0.878350846878622 \tabularnewline
35 & 0.0580298936550745 & 0.116059787310149 & 0.941970106344926 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57462&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.0280315830093683[/C][C]0.0560631660187367[/C][C]0.971968416990632[/C][/ROW]
[ROW][C]22[/C][C]0.158728140522985[/C][C]0.317456281045969[/C][C]0.841271859477015[/C][/ROW]
[ROW][C]23[/C][C]0.0930542984084869[/C][C]0.186108596816974[/C][C]0.906945701591513[/C][/ROW]
[ROW][C]24[/C][C]0.0500895361539847[/C][C]0.100179072307969[/C][C]0.949910463846015[/C][/ROW]
[ROW][C]25[/C][C]0.0523332596285594[/C][C]0.104666519257119[/C][C]0.94766674037144[/C][/ROW]
[ROW][C]26[/C][C]0.0418311358326226[/C][C]0.0836622716652452[/C][C]0.958168864167377[/C][/ROW]
[ROW][C]27[/C][C]0.259069229524562[/C][C]0.518138459049123[/C][C]0.740930770475438[/C][/ROW]
[ROW][C]28[/C][C]0.252553946277588[/C][C]0.505107892555176[/C][C]0.747446053722412[/C][/ROW]
[ROW][C]29[/C][C]0.224727154855935[/C][C]0.449454309711869[/C][C]0.775272845144065[/C][/ROW]
[ROW][C]30[/C][C]0.399813892821027[/C][C]0.799627785642054[/C][C]0.600186107178973[/C][/ROW]
[ROW][C]31[/C][C]0.334593136106853[/C][C]0.669186272213706[/C][C]0.665406863893147[/C][/ROW]
[ROW][C]32[/C][C]0.271332156121707[/C][C]0.542664312243414[/C][C]0.728667843878293[/C][/ROW]
[ROW][C]33[/C][C]0.215817387098228[/C][C]0.431634774196457[/C][C]0.784182612901771[/C][/ROW]
[ROW][C]34[/C][C]0.121649153121378[/C][C]0.243298306242755[/C][C]0.878350846878622[/C][/ROW]
[ROW][C]35[/C][C]0.0580298936550745[/C][C]0.116059787310149[/C][C]0.941970106344926[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57462&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57462&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.02803158300936830.05606316601873670.971968416990632
220.1587281405229850.3174562810459690.841271859477015
230.09305429840848690.1861085968169740.906945701591513
240.05008953615398470.1001790723079690.949910463846015
250.05233325962855940.1046665192571190.94766674037144
260.04183113583262260.08366227166524520.958168864167377
270.2590692295245620.5181384590491230.740930770475438
280.2525539462775880.5051078925551760.747446053722412
290.2247271548559350.4494543097118690.775272845144065
300.3998138928210270.7996277856420540.600186107178973
310.3345931361068530.6691862722137060.665406863893147
320.2713321561217070.5426643122434140.728667843878293
330.2158173870982280.4316347741964570.784182612901771
340.1216491531213780.2432983062427550.878350846878622
350.05802989365507450.1160597873101490.941970106344926







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 level20.133333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57462&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 level20.133333333333333NOK



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