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 computationThu, 24 Dec 2009 09:15:17 -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/Dec/24/t1261671418g2p5fk6caj0ecim.htm/, Retrieved Tue, 07 May 2024 02:21:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70677, Retrieved Tue, 07 May 2024 02:21:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact94
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] [dummy variabele m...] [2009-12-24 15:51:10] [b5ba85a7ae9f50cb97d92cbc56161b32]
-    D        [Multiple Regression] [dummy variabele m...] [2009-12-24 16:15:17] [454b2df2fae01897bad5ff38ed3cc924] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.6	0	8.5	8.3	8.7
8.5	0	8.6	8.5	8.2
8.2	0	8.5	8.6	8.3
8.1	0	8.2	8.5	8.5
7.9	0	8.1	8.2	8.6
8.6	0	7.9	8.1	8.5
8.7	0	8.6	7.9	8.2
8.7	0	8.7	8.6	8.1
8.5	0	8.7	8.7	7.9
8.4	0	8.5	8.7	8.6
8.5	0	8.4	8.5	8.7
8.7	0	8.5	8.4	8.7
8.7	0	8.7	8.5	8.5
8.6	0	8.7	8.7	8.4
8.5	0	8.6	8.7	8.5
8.3	0	8.5	8.6	8.7
8	0	8.3	8.5	8.7
8.2	0	8	8.3	8.6
8.1	0	8.2	8	8.5
8.1	0	8.1	8.2	8.3
8	0	8.1	8.1	8
7.9	0	8	8.1	8.2
7.9	0	7.9	8	8.1
8	0	7.9	7.9	8.1
8	0	8	7.9	8
7.9	0	8	8	7.9
8	0	7.9	8	7.9
7.7	0	8	7.9	8
7.2	0	7.7	8	8
7.5	0	7.2	7.7	7.9
7.3	0	7.5	7.2	8
7	0	7.3	7.5	7.7
7	0	7	7.3	7.2
7	0	7	7	7.5
7.2	0	7	7	7.3
7.3	0	7.2	7	7
7.1	0	7.3	7.2	7
6.8	0	7.1	7.3	7
6.4	0	6.8	7.1	7.2
6.1	0	6.4	6.8	7.3
6.5	0	6.1	6.4	7.1
7.7	0	6.5	6.1	6.8
7.9	0	7.7	6.5	6.4
7.5	1	7.9	7.7	6.1
6.9	1	7.5	7.9	6.5
6.6	1	6.9	7.5	7.7
6.9	1	6.6	6.9	7.9
7.7	1	6.9	6.6	7.5
8	1	7.7	6.9	6.9
8	1	8	7.7	6.6
7.7	1	8	8	6.9
7.3	1	7.7	8	7.7
7.4	1	7.3	7.7	8
8.1	1	7.4	7.3	8
8.3	1	8.1	7.4	7.7
8.2	1	8.3	8.1	7.3




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.933206362031773 + 0.203416557420044X[t] + 1.55831064545628Y1[t] -0.96569014876742Y2[t] + 0.310028322021338Y4[t] -0.229525744446432M1[t] -0.0745053665131565M2[t] -0.0873305504983145M3[t] -0.233405271732744M4[t] -0.128829768856069M5[t] + 0.438079153344970M6[t] -0.517682899618016M7[t] -0.0964094832665481M8[t] -0.0127744572064306M9[t] -0.13721343353349M10[t] -0.00475098863174447M11[t] -0.00495389769238005t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.933206362031773 +  0.203416557420044X[t] +  1.55831064545628Y1[t] -0.96569014876742Y2[t] +  0.310028322021338Y4[t] -0.229525744446432M1[t] -0.0745053665131565M2[t] -0.0873305504983145M3[t] -0.233405271732744M4[t] -0.128829768856069M5[t] +  0.438079153344970M6[t] -0.517682899618016M7[t] -0.0964094832665481M8[t] -0.0127744572064306M9[t] -0.13721343353349M10[t] -0.00475098863174447M11[t] -0.00495389769238005t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70677&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.933206362031773 +  0.203416557420044X[t] +  1.55831064545628Y1[t] -0.96569014876742Y2[t] +  0.310028322021338Y4[t] -0.229525744446432M1[t] -0.0745053665131565M2[t] -0.0873305504983145M3[t] -0.233405271732744M4[t] -0.128829768856069M5[t] +  0.438079153344970M6[t] -0.517682899618016M7[t] -0.0964094832665481M8[t] -0.0127744572064306M9[t] -0.13721343353349M10[t] -0.00475098863174447M11[t] -0.00495389769238005t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70677&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70677&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.933206362031773 + 0.203416557420044X[t] + 1.55831064545628Y1[t] -0.96569014876742Y2[t] + 0.310028322021338Y4[t] -0.229525744446432M1[t] -0.0745053665131565M2[t] -0.0873305504983145M3[t] -0.233405271732744M4[t] -0.128829768856069M5[t] + 0.438079153344970M6[t] -0.517682899618016M7[t] -0.0964094832665481M8[t] -0.0127744572064306M9[t] -0.13721343353349M10[t] -0.00475098863174447M11[t] -0.00495389769238005t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.9332063620317730.640581.45680.1531720.076586
X0.2034165574200440.0935762.17380.0358520.017926
Y11.558310645456280.10983514.187800
Y2-0.965690148767420.130832-7.381100
Y40.3100283220213380.0714264.34069.8e-054.9e-05
M1-0.2295257444464320.107774-2.12970.0395640.019782
M2-0.07450536651315650.117601-0.63350.5300780.265039
M3-0.08733055049831450.11901-0.73380.4674540.233727
M4-0.2334052717327440.114254-2.04290.0478650.023933
M5-0.1288297688560690.113909-1.1310.2649690.132484
M60.4380791533449700.1085064.03740.0002450.000122
M7-0.5176828996180160.117601-4.4028.1e-054e-05
M8-0.09640948326654810.119378-0.80760.4242190.21211
M9-0.01277445720643060.133967-0.09540.9245210.46226
M10-0.137213433533490.118853-1.15450.2553310.127665
M11-0.004750988631744470.114667-0.04140.9671620.483581
t-0.004953897692380050.003622-1.36780.1792110.089605

\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.933206362031773 & 0.64058 & 1.4568 & 0.153172 & 0.076586 \tabularnewline
X & 0.203416557420044 & 0.093576 & 2.1738 & 0.035852 & 0.017926 \tabularnewline
Y1 & 1.55831064545628 & 0.109835 & 14.1878 & 0 & 0 \tabularnewline
Y2 & -0.96569014876742 & 0.130832 & -7.3811 & 0 & 0 \tabularnewline
Y4 & 0.310028322021338 & 0.071426 & 4.3406 & 9.8e-05 & 4.9e-05 \tabularnewline
M1 & -0.229525744446432 & 0.107774 & -2.1297 & 0.039564 & 0.019782 \tabularnewline
M2 & -0.0745053665131565 & 0.117601 & -0.6335 & 0.530078 & 0.265039 \tabularnewline
M3 & -0.0873305504983145 & 0.11901 & -0.7338 & 0.467454 & 0.233727 \tabularnewline
M4 & -0.233405271732744 & 0.114254 & -2.0429 & 0.047865 & 0.023933 \tabularnewline
M5 & -0.128829768856069 & 0.113909 & -1.131 & 0.264969 & 0.132484 \tabularnewline
M6 & 0.438079153344970 & 0.108506 & 4.0374 & 0.000245 & 0.000122 \tabularnewline
M7 & -0.517682899618016 & 0.117601 & -4.402 & 8.1e-05 & 4e-05 \tabularnewline
M8 & -0.0964094832665481 & 0.119378 & -0.8076 & 0.424219 & 0.21211 \tabularnewline
M9 & -0.0127744572064306 & 0.133967 & -0.0954 & 0.924521 & 0.46226 \tabularnewline
M10 & -0.13721343353349 & 0.118853 & -1.1545 & 0.255331 & 0.127665 \tabularnewline
M11 & -0.00475098863174447 & 0.114667 & -0.0414 & 0.967162 & 0.483581 \tabularnewline
t & -0.00495389769238005 & 0.003622 & -1.3678 & 0.179211 & 0.089605 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70677&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.933206362031773[/C][C]0.64058[/C][C]1.4568[/C][C]0.153172[/C][C]0.076586[/C][/ROW]
[ROW][C]X[/C][C]0.203416557420044[/C][C]0.093576[/C][C]2.1738[/C][C]0.035852[/C][C]0.017926[/C][/ROW]
[ROW][C]Y1[/C][C]1.55831064545628[/C][C]0.109835[/C][C]14.1878[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.96569014876742[/C][C]0.130832[/C][C]-7.3811[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y4[/C][C]0.310028322021338[/C][C]0.071426[/C][C]4.3406[/C][C]9.8e-05[/C][C]4.9e-05[/C][/ROW]
[ROW][C]M1[/C][C]-0.229525744446432[/C][C]0.107774[/C][C]-2.1297[/C][C]0.039564[/C][C]0.019782[/C][/ROW]
[ROW][C]M2[/C][C]-0.0745053665131565[/C][C]0.117601[/C][C]-0.6335[/C][C]0.530078[/C][C]0.265039[/C][/ROW]
[ROW][C]M3[/C][C]-0.0873305504983145[/C][C]0.11901[/C][C]-0.7338[/C][C]0.467454[/C][C]0.233727[/C][/ROW]
[ROW][C]M4[/C][C]-0.233405271732744[/C][C]0.114254[/C][C]-2.0429[/C][C]0.047865[/C][C]0.023933[/C][/ROW]
[ROW][C]M5[/C][C]-0.128829768856069[/C][C]0.113909[/C][C]-1.131[/C][C]0.264969[/C][C]0.132484[/C][/ROW]
[ROW][C]M6[/C][C]0.438079153344970[/C][C]0.108506[/C][C]4.0374[/C][C]0.000245[/C][C]0.000122[/C][/ROW]
[ROW][C]M7[/C][C]-0.517682899618016[/C][C]0.117601[/C][C]-4.402[/C][C]8.1e-05[/C][C]4e-05[/C][/ROW]
[ROW][C]M8[/C][C]-0.0964094832665481[/C][C]0.119378[/C][C]-0.8076[/C][C]0.424219[/C][C]0.21211[/C][/ROW]
[ROW][C]M9[/C][C]-0.0127744572064306[/C][C]0.133967[/C][C]-0.0954[/C][C]0.924521[/C][C]0.46226[/C][/ROW]
[ROW][C]M10[/C][C]-0.13721343353349[/C][C]0.118853[/C][C]-1.1545[/C][C]0.255331[/C][C]0.127665[/C][/ROW]
[ROW][C]M11[/C][C]-0.00475098863174447[/C][C]0.114667[/C][C]-0.0414[/C][C]0.967162[/C][C]0.483581[/C][/ROW]
[ROW][C]t[/C][C]-0.00495389769238005[/C][C]0.003622[/C][C]-1.3678[/C][C]0.179211[/C][C]0.089605[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70677&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70677&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.9332063620317730.640581.45680.1531720.076586
X0.2034165574200440.0935762.17380.0358520.017926
Y11.558310645456280.10983514.187800
Y2-0.965690148767420.130832-7.381100
Y40.3100283220213380.0714264.34069.8e-054.9e-05
M1-0.2295257444464320.107774-2.12970.0395640.019782
M2-0.07450536651315650.117601-0.63350.5300780.265039
M3-0.08733055049831450.11901-0.73380.4674540.233727
M4-0.2334052717327440.114254-2.04290.0478650.023933
M5-0.1288297688560690.113909-1.1310.2649690.132484
M60.4380791533449700.1085064.03740.0002450.000122
M7-0.5176828996180160.117601-4.4028.1e-054e-05
M8-0.09640948326654810.119378-0.80760.4242190.21211
M9-0.01277445720643060.133967-0.09540.9245210.46226
M10-0.137213433533490.118853-1.15450.2553310.127665
M11-0.004750988631744470.114667-0.04140.9671620.483581
t-0.004953897692380050.003622-1.36780.1792110.089605







Multiple Linear Regression - Regression Statistics
Multiple R0.979710122102373
R-squared0.959831923349847
Adjusted R-squared0.943352712416451
F-TEST (value)58.2450171448862
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.157207564722478
Sum Squared Residuals0.963854517832907

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.979710122102373 \tabularnewline
R-squared & 0.959831923349847 \tabularnewline
Adjusted R-squared & 0.943352712416451 \tabularnewline
F-TEST (value) & 58.2450171448862 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.157207564722478 \tabularnewline
Sum Squared Residuals & 0.963854517832907 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70677&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.979710122102373[/C][/ROW]
[ROW][C]R-squared[/C][C]0.959831923349847[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.943352712416451[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]58.2450171448862[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/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.157207564722478[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.963854517832907[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70677&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70677&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.979710122102373
R-squared0.959831923349847
Adjusted R-squared0.943352712416451
F-TEST (value)58.2450171448862
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.157207564722478
Sum Squared Residuals0.963854517832907







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.62638537308738-0.0263853730873752
28.58.58413072710974-0.0841307271097387
38.28.34495439821197-0.144954398211967
48.17.885007264929280.214992735070718
57.98.1495076824003-0.249507682400309
68.68.465366760492320.134633239507679
78.78.695597794803430.00440220519656844
88.78.560762441668820.139237558331181
98.58.480868890755550.0191311092444536
108.48.256833713059790.143166286940211
118.58.452652057679150.0473479423208551
128.78.70484922804088-0.00484922804087848
138.78.623457035712310.0765429642876882
148.68.549382653997590.0506173460024102
158.58.406775339976560.0932246600234418
168.38.258490335785130.0415096642148698
1788.14301882675491-0.143018826754913
188.28.39961585517804-0.199615855178037
198.18.009266246042020.0907337539579807
208.18.014611005997730.085388994002271
2188.0968526526358-0.0968526526358063
227.97.8736343784750.0263656215249933
237.97.91087804381335-0.0108780438133530
2488.00724414962946-0.00724414962945946
2587.897592739834140.102407260165859
267.97.92008737299616-0.0200873729961606
2787.7464772267730.253522773227004
287.77.87885151947069-0.178851519470689
297.27.41441091614136-0.214410916141359
307.57.455914830349970.0440851696500283
317.37.47653997991733-0.176539979917333
3277.19848182824854-0.198481828248537
3376.847793631722210.152206368277793
3477.1011162989394-0.101116298939395
357.27.166619181744490.0333808182555072
367.37.38506990516871-0.0850699051687119
377.17.11328329782204-0.0132832978220429
386.86.85511863409494-0.0551186340949409
396.46.62499005293827-0.224990052938272
406.16.17134705266131-0.0713470526613127
416.56.127745859311420.372254140688577
427.77.509723690026420.190276309973583
437.97.90869312560308-0.0086931256030812
447.57.58825465564616-0.0882546556461627
456.96.97448482488644-0.0744848248864398
466.66.66841560952581-0.0684156095258094
476.96.96985071676301-0.0698507167630093
487.77.602836717160950.0971632828390504
4988.13928155354413-0.139281553544129
5087.891280611801570.10871938819843
517.77.67680298210020.0231970178997923
527.37.30630382715359-0.00630382715358653
537.47.1653167153920.234683284608004
548.18.26937886395325-0.169378863953252
558.38.209902853634140.090097146365865
568.28.137890068438750.0621099315612478

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.62638537308738 & -0.0263853730873752 \tabularnewline
2 & 8.5 & 8.58413072710974 & -0.0841307271097387 \tabularnewline
3 & 8.2 & 8.34495439821197 & -0.144954398211967 \tabularnewline
4 & 8.1 & 7.88500726492928 & 0.214992735070718 \tabularnewline
5 & 7.9 & 8.1495076824003 & -0.249507682400309 \tabularnewline
6 & 8.6 & 8.46536676049232 & 0.134633239507679 \tabularnewline
7 & 8.7 & 8.69559779480343 & 0.00440220519656844 \tabularnewline
8 & 8.7 & 8.56076244166882 & 0.139237558331181 \tabularnewline
9 & 8.5 & 8.48086889075555 & 0.0191311092444536 \tabularnewline
10 & 8.4 & 8.25683371305979 & 0.143166286940211 \tabularnewline
11 & 8.5 & 8.45265205767915 & 0.0473479423208551 \tabularnewline
12 & 8.7 & 8.70484922804088 & -0.00484922804087848 \tabularnewline
13 & 8.7 & 8.62345703571231 & 0.0765429642876882 \tabularnewline
14 & 8.6 & 8.54938265399759 & 0.0506173460024102 \tabularnewline
15 & 8.5 & 8.40677533997656 & 0.0932246600234418 \tabularnewline
16 & 8.3 & 8.25849033578513 & 0.0415096642148698 \tabularnewline
17 & 8 & 8.14301882675491 & -0.143018826754913 \tabularnewline
18 & 8.2 & 8.39961585517804 & -0.199615855178037 \tabularnewline
19 & 8.1 & 8.00926624604202 & 0.0907337539579807 \tabularnewline
20 & 8.1 & 8.01461100599773 & 0.085388994002271 \tabularnewline
21 & 8 & 8.0968526526358 & -0.0968526526358063 \tabularnewline
22 & 7.9 & 7.873634378475 & 0.0263656215249933 \tabularnewline
23 & 7.9 & 7.91087804381335 & -0.0108780438133530 \tabularnewline
24 & 8 & 8.00724414962946 & -0.00724414962945946 \tabularnewline
25 & 8 & 7.89759273983414 & 0.102407260165859 \tabularnewline
26 & 7.9 & 7.92008737299616 & -0.0200873729961606 \tabularnewline
27 & 8 & 7.746477226773 & 0.253522773227004 \tabularnewline
28 & 7.7 & 7.87885151947069 & -0.178851519470689 \tabularnewline
29 & 7.2 & 7.41441091614136 & -0.214410916141359 \tabularnewline
30 & 7.5 & 7.45591483034997 & 0.0440851696500283 \tabularnewline
31 & 7.3 & 7.47653997991733 & -0.176539979917333 \tabularnewline
32 & 7 & 7.19848182824854 & -0.198481828248537 \tabularnewline
33 & 7 & 6.84779363172221 & 0.152206368277793 \tabularnewline
34 & 7 & 7.1011162989394 & -0.101116298939395 \tabularnewline
35 & 7.2 & 7.16661918174449 & 0.0333808182555072 \tabularnewline
36 & 7.3 & 7.38506990516871 & -0.0850699051687119 \tabularnewline
37 & 7.1 & 7.11328329782204 & -0.0132832978220429 \tabularnewline
38 & 6.8 & 6.85511863409494 & -0.0551186340949409 \tabularnewline
39 & 6.4 & 6.62499005293827 & -0.224990052938272 \tabularnewline
40 & 6.1 & 6.17134705266131 & -0.0713470526613127 \tabularnewline
41 & 6.5 & 6.12774585931142 & 0.372254140688577 \tabularnewline
42 & 7.7 & 7.50972369002642 & 0.190276309973583 \tabularnewline
43 & 7.9 & 7.90869312560308 & -0.0086931256030812 \tabularnewline
44 & 7.5 & 7.58825465564616 & -0.0882546556461627 \tabularnewline
45 & 6.9 & 6.97448482488644 & -0.0744848248864398 \tabularnewline
46 & 6.6 & 6.66841560952581 & -0.0684156095258094 \tabularnewline
47 & 6.9 & 6.96985071676301 & -0.0698507167630093 \tabularnewline
48 & 7.7 & 7.60283671716095 & 0.0971632828390504 \tabularnewline
49 & 8 & 8.13928155354413 & -0.139281553544129 \tabularnewline
50 & 8 & 7.89128061180157 & 0.10871938819843 \tabularnewline
51 & 7.7 & 7.6768029821002 & 0.0231970178997923 \tabularnewline
52 & 7.3 & 7.30630382715359 & -0.00630382715358653 \tabularnewline
53 & 7.4 & 7.165316715392 & 0.234683284608004 \tabularnewline
54 & 8.1 & 8.26937886395325 & -0.169378863953252 \tabularnewline
55 & 8.3 & 8.20990285363414 & 0.090097146365865 \tabularnewline
56 & 8.2 & 8.13789006843875 & 0.0621099315612478 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70677&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]8.6[/C][C]8.62638537308738[/C][C]-0.0263853730873752[/C][/ROW]
[ROW][C]2[/C][C]8.5[/C][C]8.58413072710974[/C][C]-0.0841307271097387[/C][/ROW]
[ROW][C]3[/C][C]8.2[/C][C]8.34495439821197[/C][C]-0.144954398211967[/C][/ROW]
[ROW][C]4[/C][C]8.1[/C][C]7.88500726492928[/C][C]0.214992735070718[/C][/ROW]
[ROW][C]5[/C][C]7.9[/C][C]8.1495076824003[/C][C]-0.249507682400309[/C][/ROW]
[ROW][C]6[/C][C]8.6[/C][C]8.46536676049232[/C][C]0.134633239507679[/C][/ROW]
[ROW][C]7[/C][C]8.7[/C][C]8.69559779480343[/C][C]0.00440220519656844[/C][/ROW]
[ROW][C]8[/C][C]8.7[/C][C]8.56076244166882[/C][C]0.139237558331181[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.48086889075555[/C][C]0.0191311092444536[/C][/ROW]
[ROW][C]10[/C][C]8.4[/C][C]8.25683371305979[/C][C]0.143166286940211[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.45265205767915[/C][C]0.0473479423208551[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]8.70484922804088[/C][C]-0.00484922804087848[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.62345703571231[/C][C]0.0765429642876882[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.54938265399759[/C][C]0.0506173460024102[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.40677533997656[/C][C]0.0932246600234418[/C][/ROW]
[ROW][C]16[/C][C]8.3[/C][C]8.25849033578513[/C][C]0.0415096642148698[/C][/ROW]
[ROW][C]17[/C][C]8[/C][C]8.14301882675491[/C][C]-0.143018826754913[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]8.39961585517804[/C][C]-0.199615855178037[/C][/ROW]
[ROW][C]19[/C][C]8.1[/C][C]8.00926624604202[/C][C]0.0907337539579807[/C][/ROW]
[ROW][C]20[/C][C]8.1[/C][C]8.01461100599773[/C][C]0.085388994002271[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]8.0968526526358[/C][C]-0.0968526526358063[/C][/ROW]
[ROW][C]22[/C][C]7.9[/C][C]7.873634378475[/C][C]0.0263656215249933[/C][/ROW]
[ROW][C]23[/C][C]7.9[/C][C]7.91087804381335[/C][C]-0.0108780438133530[/C][/ROW]
[ROW][C]24[/C][C]8[/C][C]8.00724414962946[/C][C]-0.00724414962945946[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.89759273983414[/C][C]0.102407260165859[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.92008737299616[/C][C]-0.0200873729961606[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.746477226773[/C][C]0.253522773227004[/C][/ROW]
[ROW][C]28[/C][C]7.7[/C][C]7.87885151947069[/C][C]-0.178851519470689[/C][/ROW]
[ROW][C]29[/C][C]7.2[/C][C]7.41441091614136[/C][C]-0.214410916141359[/C][/ROW]
[ROW][C]30[/C][C]7.5[/C][C]7.45591483034997[/C][C]0.0440851696500283[/C][/ROW]
[ROW][C]31[/C][C]7.3[/C][C]7.47653997991733[/C][C]-0.176539979917333[/C][/ROW]
[ROW][C]32[/C][C]7[/C][C]7.19848182824854[/C][C]-0.198481828248537[/C][/ROW]
[ROW][C]33[/C][C]7[/C][C]6.84779363172221[/C][C]0.152206368277793[/C][/ROW]
[ROW][C]34[/C][C]7[/C][C]7.1011162989394[/C][C]-0.101116298939395[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.16661918174449[/C][C]0.0333808182555072[/C][/ROW]
[ROW][C]36[/C][C]7.3[/C][C]7.38506990516871[/C][C]-0.0850699051687119[/C][/ROW]
[ROW][C]37[/C][C]7.1[/C][C]7.11328329782204[/C][C]-0.0132832978220429[/C][/ROW]
[ROW][C]38[/C][C]6.8[/C][C]6.85511863409494[/C][C]-0.0551186340949409[/C][/ROW]
[ROW][C]39[/C][C]6.4[/C][C]6.62499005293827[/C][C]-0.224990052938272[/C][/ROW]
[ROW][C]40[/C][C]6.1[/C][C]6.17134705266131[/C][C]-0.0713470526613127[/C][/ROW]
[ROW][C]41[/C][C]6.5[/C][C]6.12774585931142[/C][C]0.372254140688577[/C][/ROW]
[ROW][C]42[/C][C]7.7[/C][C]7.50972369002642[/C][C]0.190276309973583[/C][/ROW]
[ROW][C]43[/C][C]7.9[/C][C]7.90869312560308[/C][C]-0.0086931256030812[/C][/ROW]
[ROW][C]44[/C][C]7.5[/C][C]7.58825465564616[/C][C]-0.0882546556461627[/C][/ROW]
[ROW][C]45[/C][C]6.9[/C][C]6.97448482488644[/C][C]-0.0744848248864398[/C][/ROW]
[ROW][C]46[/C][C]6.6[/C][C]6.66841560952581[/C][C]-0.0684156095258094[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]6.96985071676301[/C][C]-0.0698507167630093[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.60283671716095[/C][C]0.0971632828390504[/C][/ROW]
[ROW][C]49[/C][C]8[/C][C]8.13928155354413[/C][C]-0.139281553544129[/C][/ROW]
[ROW][C]50[/C][C]8[/C][C]7.89128061180157[/C][C]0.10871938819843[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.6768029821002[/C][C]0.0231970178997923[/C][/ROW]
[ROW][C]52[/C][C]7.3[/C][C]7.30630382715359[/C][C]-0.00630382715358653[/C][/ROW]
[ROW][C]53[/C][C]7.4[/C][C]7.165316715392[/C][C]0.234683284608004[/C][/ROW]
[ROW][C]54[/C][C]8.1[/C][C]8.26937886395325[/C][C]-0.169378863953252[/C][/ROW]
[ROW][C]55[/C][C]8.3[/C][C]8.20990285363414[/C][C]0.090097146365865[/C][/ROW]
[ROW][C]56[/C][C]8.2[/C][C]8.13789006843875[/C][C]0.0621099315612478[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70677&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70677&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
18.68.62638537308738-0.0263853730873752
28.58.58413072710974-0.0841307271097387
38.28.34495439821197-0.144954398211967
48.17.885007264929280.214992735070718
57.98.1495076824003-0.249507682400309
68.68.465366760492320.134633239507679
78.78.695597794803430.00440220519656844
88.78.560762441668820.139237558331181
98.58.480868890755550.0191311092444536
108.48.256833713059790.143166286940211
118.58.452652057679150.0473479423208551
128.78.70484922804088-0.00484922804087848
138.78.623457035712310.0765429642876882
148.68.549382653997590.0506173460024102
158.58.406775339976560.0932246600234418
168.38.258490335785130.0415096642148698
1788.14301882675491-0.143018826754913
188.28.39961585517804-0.199615855178037
198.18.009266246042020.0907337539579807
208.18.014611005997730.085388994002271
2188.0968526526358-0.0968526526358063
227.97.8736343784750.0263656215249933
237.97.91087804381335-0.0108780438133530
2488.00724414962946-0.00724414962945946
2587.897592739834140.102407260165859
267.97.92008737299616-0.0200873729961606
2787.7464772267730.253522773227004
287.77.87885151947069-0.178851519470689
297.27.41441091614136-0.214410916141359
307.57.455914830349970.0440851696500283
317.37.47653997991733-0.176539979917333
3277.19848182824854-0.198481828248537
3376.847793631722210.152206368277793
3477.1011162989394-0.101116298939395
357.27.166619181744490.0333808182555072
367.37.38506990516871-0.0850699051687119
377.17.11328329782204-0.0132832978220429
386.86.85511863409494-0.0551186340949409
396.46.62499005293827-0.224990052938272
406.16.17134705266131-0.0713470526613127
416.56.127745859311420.372254140688577
427.77.509723690026420.190276309973583
437.97.90869312560308-0.0086931256030812
447.57.58825465564616-0.0882546556461627
456.96.97448482488644-0.0744848248864398
466.66.66841560952581-0.0684156095258094
476.96.96985071676301-0.0698507167630093
487.77.602836717160950.0971632828390504
4988.13928155354413-0.139281553544129
5087.891280611801570.10871938819843
517.77.67680298210020.0231970178997923
527.37.30630382715359-0.00630382715358653
537.47.1653167153920.234683284608004
548.18.26937886395325-0.169378863953252
558.38.209902853634140.090097146365865
568.28.137890068438750.0621099315612478







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.7118372821073740.5763254357852510.288162717892626
210.555823367660440.8883532646791210.444176632339561
220.4070123298024660.8140246596049330.592987670197534
230.2709460797164020.5418921594328050.729053920283598
240.1679485612812380.3358971225624770.832051438718762
250.1345163102498660.2690326204997310.865483689750134
260.07680950573563910.1536190114712780.923190494264361
270.3396725900945110.6793451801890210.66032740990549
280.3580376514777360.7160753029554720.641962348522264
290.4252216859843390.8504433719686770.574778314015661
300.4079449498978660.8158898997957320.592055050102134
310.3664910558805290.7329821117610580.633508944119471
320.3305169129716770.6610338259433540.669483087028323
330.5135339189033370.9729321621933260.486466081096663
340.45338586569080.90677173138160.5466141343092
350.7931665205650680.4136669588698650.206833479434933
360.6431597504429990.7136804991140020.356840249557001

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.711837282107374 & 0.576325435785251 & 0.288162717892626 \tabularnewline
21 & 0.55582336766044 & 0.888353264679121 & 0.444176632339561 \tabularnewline
22 & 0.407012329802466 & 0.814024659604933 & 0.592987670197534 \tabularnewline
23 & 0.270946079716402 & 0.541892159432805 & 0.729053920283598 \tabularnewline
24 & 0.167948561281238 & 0.335897122562477 & 0.832051438718762 \tabularnewline
25 & 0.134516310249866 & 0.269032620499731 & 0.865483689750134 \tabularnewline
26 & 0.0768095057356391 & 0.153619011471278 & 0.923190494264361 \tabularnewline
27 & 0.339672590094511 & 0.679345180189021 & 0.66032740990549 \tabularnewline
28 & 0.358037651477736 & 0.716075302955472 & 0.641962348522264 \tabularnewline
29 & 0.425221685984339 & 0.850443371968677 & 0.574778314015661 \tabularnewline
30 & 0.407944949897866 & 0.815889899795732 & 0.592055050102134 \tabularnewline
31 & 0.366491055880529 & 0.732982111761058 & 0.633508944119471 \tabularnewline
32 & 0.330516912971677 & 0.661033825943354 & 0.669483087028323 \tabularnewline
33 & 0.513533918903337 & 0.972932162193326 & 0.486466081096663 \tabularnewline
34 & 0.4533858656908 & 0.9067717313816 & 0.5466141343092 \tabularnewline
35 & 0.793166520565068 & 0.413666958869865 & 0.206833479434933 \tabularnewline
36 & 0.643159750442999 & 0.713680499114002 & 0.356840249557001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70677&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]20[/C][C]0.711837282107374[/C][C]0.576325435785251[/C][C]0.288162717892626[/C][/ROW]
[ROW][C]21[/C][C]0.55582336766044[/C][C]0.888353264679121[/C][C]0.444176632339561[/C][/ROW]
[ROW][C]22[/C][C]0.407012329802466[/C][C]0.814024659604933[/C][C]0.592987670197534[/C][/ROW]
[ROW][C]23[/C][C]0.270946079716402[/C][C]0.541892159432805[/C][C]0.729053920283598[/C][/ROW]
[ROW][C]24[/C][C]0.167948561281238[/C][C]0.335897122562477[/C][C]0.832051438718762[/C][/ROW]
[ROW][C]25[/C][C]0.134516310249866[/C][C]0.269032620499731[/C][C]0.865483689750134[/C][/ROW]
[ROW][C]26[/C][C]0.0768095057356391[/C][C]0.153619011471278[/C][C]0.923190494264361[/C][/ROW]
[ROW][C]27[/C][C]0.339672590094511[/C][C]0.679345180189021[/C][C]0.66032740990549[/C][/ROW]
[ROW][C]28[/C][C]0.358037651477736[/C][C]0.716075302955472[/C][C]0.641962348522264[/C][/ROW]
[ROW][C]29[/C][C]0.425221685984339[/C][C]0.850443371968677[/C][C]0.574778314015661[/C][/ROW]
[ROW][C]30[/C][C]0.407944949897866[/C][C]0.815889899795732[/C][C]0.592055050102134[/C][/ROW]
[ROW][C]31[/C][C]0.366491055880529[/C][C]0.732982111761058[/C][C]0.633508944119471[/C][/ROW]
[ROW][C]32[/C][C]0.330516912971677[/C][C]0.661033825943354[/C][C]0.669483087028323[/C][/ROW]
[ROW][C]33[/C][C]0.513533918903337[/C][C]0.972932162193326[/C][C]0.486466081096663[/C][/ROW]
[ROW][C]34[/C][C]0.4533858656908[/C][C]0.9067717313816[/C][C]0.5466141343092[/C][/ROW]
[ROW][C]35[/C][C]0.793166520565068[/C][C]0.413666958869865[/C][C]0.206833479434933[/C][/ROW]
[ROW][C]36[/C][C]0.643159750442999[/C][C]0.713680499114002[/C][C]0.356840249557001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70677&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70677&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
200.7118372821073740.5763254357852510.288162717892626
210.555823367660440.8883532646791210.444176632339561
220.4070123298024660.8140246596049330.592987670197534
230.2709460797164020.5418921594328050.729053920283598
240.1679485612812380.3358971225624770.832051438718762
250.1345163102498660.2690326204997310.865483689750134
260.07680950573563910.1536190114712780.923190494264361
270.3396725900945110.6793451801890210.66032740990549
280.3580376514777360.7160753029554720.641962348522264
290.4252216859843390.8504433719686770.574778314015661
300.4079449498978660.8158898997957320.592055050102134
310.3664910558805290.7329821117610580.633508944119471
320.3305169129716770.6610338259433540.669483087028323
330.5135339189033370.9729321621933260.486466081096663
340.45338586569080.90677173138160.5466141343092
350.7931665205650680.4136669588698650.206833479434933
360.6431597504429990.7136804991140020.356840249557001







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = 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')
}