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 08:54:01 -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/t1261670100u7916lgzkgg3hbn.htm/, Retrieved Mon, 06 May 2024 02:13:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70670, Retrieved Mon, 06 May 2024 02:13:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
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:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [dummy variabele m...] [2009-12-24 15:54:01] [454b2df2fae01897bad5ff38ed3cc924] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,6	0	8,5	8,3
8,5	0	8,6	8,5
8,2	0	8,5	8,6
8,1	0	8,2	8,5
7,9	0	8,1	8,2
8,6	0	7,9	8,1
8,7	0	8,6	7,9
8,7	0	8,7	8,6
8,5	0	8,7	8,7
8,4	0	8,5	8,7
8,5	0	8,4	8,5
8,7	0	8,5	8,4
8,7	0	8,7	8,5
8,6	0	8,7	8,7
8,5	0	8,6	8,7
8,3	0	8,5	8,6
8	0	8,3	8,5
8,2	0	8	8,3
8,1	0	8,2	8
8,1	0	8,1	8,2
8	0	8,1	8,1
7,9	0	8	8,1
7,9	0	7,9	8
8	0	7,9	7,9
8	0	8	7,9
7,9	0	8	8
8	0	7,9	8
7,7	0	8	7,9
7,2	0	7,7	8
7,5	0	7,2	7,7
7,3	0	7,5	7,2
7	0	7,3	7,5
7	0	7	7,3
7	0	7	7
7,2	0	7	7
7,3	0	7,2	7
7,1	0	7,3	7,2
6,8	0	7,1	7,3
6,4	0	6,8	7,1
6,1	0	6,4	6,8
6,5	0	6,1	6,4
7,7	0	6,5	6,1
7,9	0	7,7	6,5
7,5	1	7,9	7,7
6,9	1	7,5	7,9
6,6	1	6,9	7,5
6,9	1	6,6	6,9
7,7	1	6,9	6,6
8	1	7,7	6,9
8	1	8	7,7
7,7	1	8	8
7,3	1	7,7	8
7,4	1	7,3	7,7
8,1	1	7,4	7,3
8,3	1	8,1	7,4
8,2	1	8,3	8,1




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=70670&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=70670&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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] = + 2.31498095419434 + 0.213396160967166X[t] + 1.40972702884716Y1[t] -0.654418798366198Y2[t] -0.282977229990250M1[t] -0.266105111881319M2[t] -0.260737180764732M3[t] -0.307298095078962M4[t] -0.161628891531660M5[t] + 0.439218859498125M6[t] -0.450229842503455M7[t] -0.293534565143451M8[t] -0.293447343788018M9[t] -0.205758116291212M10[t] -0.0167625315974305M11[t] -0.0100239357202803t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.31498095419434 +  0.213396160967166X[t] +  1.40972702884716Y1[t] -0.654418798366198Y2[t] -0.282977229990250M1[t] -0.266105111881319M2[t] -0.260737180764732M3[t] -0.307298095078962M4[t] -0.161628891531660M5[t] +  0.439218859498125M6[t] -0.450229842503455M7[t] -0.293534565143451M8[t] -0.293447343788018M9[t] -0.205758116291212M10[t] -0.0167625315974305M11[t] -0.0100239357202803t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70670&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.31498095419434 +  0.213396160967166X[t] +  1.40972702884716Y1[t] -0.654418798366198Y2[t] -0.282977229990250M1[t] -0.266105111881319M2[t] -0.260737180764732M3[t] -0.307298095078962M4[t] -0.161628891531660M5[t] +  0.439218859498125M6[t] -0.450229842503455M7[t] -0.293534565143451M8[t] -0.293447343788018M9[t] -0.205758116291212M10[t] -0.0167625315974305M11[t] -0.0100239357202803t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70670&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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] = + 2.31498095419434 + 0.213396160967166X[t] + 1.40972702884716Y1[t] -0.654418798366198Y2[t] -0.282977229990250M1[t] -0.266105111881319M2[t] -0.260737180764732M3[t] -0.307298095078962M4[t] -0.161628891531660M5[t] + 0.439218859498125M6[t] -0.450229842503455M7[t] -0.293534565143451M8[t] -0.293447343788018M9[t] -0.205758116291212M10[t] -0.0167625315974305M11[t] -0.0100239357202803t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.314980954194340.6684483.46320.0012860.000643
X0.2133961609671660.1124911.8970.0650640.032532
Y11.409727028847160.12549811.233100
Y2-0.6544187983661980.131587-4.97331.3e-056e-06
M1-0.2829772299902500.12875-2.19790.0338080.016904
M2-0.2661051118813190.131076-2.03020.0490270.024514
M3-0.2607371807647320.134806-1.93420.0601890.030094
M4-0.3072980950789620.135857-2.26190.0292070.014603
M5-0.1616288915316600.136675-1.18260.2439570.121979
M60.4392188594981250.1304783.36620.0016930.000847
M7-0.4502298425034550.140175-3.21190.0026040.001302
M8-0.2935345651434510.132759-2.2110.0328130.016406
M9-0.2934473437880180.141087-2.07990.0439870.021993
M10-0.2057581162912120.141655-1.45250.1541530.077076
M11-0.01676253159743050.137847-0.12160.9038230.451911
t-0.01002393572028030.004123-2.43150.019610.009805

\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) & 2.31498095419434 & 0.668448 & 3.4632 & 0.001286 & 0.000643 \tabularnewline
X & 0.213396160967166 & 0.112491 & 1.897 & 0.065064 & 0.032532 \tabularnewline
Y1 & 1.40972702884716 & 0.125498 & 11.2331 & 0 & 0 \tabularnewline
Y2 & -0.654418798366198 & 0.131587 & -4.9733 & 1.3e-05 & 6e-06 \tabularnewline
M1 & -0.282977229990250 & 0.12875 & -2.1979 & 0.033808 & 0.016904 \tabularnewline
M2 & -0.266105111881319 & 0.131076 & -2.0302 & 0.049027 & 0.024514 \tabularnewline
M3 & -0.260737180764732 & 0.134806 & -1.9342 & 0.060189 & 0.030094 \tabularnewline
M4 & -0.307298095078962 & 0.135857 & -2.2619 & 0.029207 & 0.014603 \tabularnewline
M5 & -0.161628891531660 & 0.136675 & -1.1826 & 0.243957 & 0.121979 \tabularnewline
M6 & 0.439218859498125 & 0.130478 & 3.3662 & 0.001693 & 0.000847 \tabularnewline
M7 & -0.450229842503455 & 0.140175 & -3.2119 & 0.002604 & 0.001302 \tabularnewline
M8 & -0.293534565143451 & 0.132759 & -2.211 & 0.032813 & 0.016406 \tabularnewline
M9 & -0.293447343788018 & 0.141087 & -2.0799 & 0.043987 & 0.021993 \tabularnewline
M10 & -0.205758116291212 & 0.141655 & -1.4525 & 0.154153 & 0.077076 \tabularnewline
M11 & -0.0167625315974305 & 0.137847 & -0.1216 & 0.903823 & 0.451911 \tabularnewline
t & -0.0100239357202803 & 0.004123 & -2.4315 & 0.01961 & 0.009805 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70670&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]2.31498095419434[/C][C]0.668448[/C][C]3.4632[/C][C]0.001286[/C][C]0.000643[/C][/ROW]
[ROW][C]X[/C][C]0.213396160967166[/C][C]0.112491[/C][C]1.897[/C][C]0.065064[/C][C]0.032532[/C][/ROW]
[ROW][C]Y1[/C][C]1.40972702884716[/C][C]0.125498[/C][C]11.2331[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.654418798366198[/C][C]0.131587[/C][C]-4.9733[/C][C]1.3e-05[/C][C]6e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.282977229990250[/C][C]0.12875[/C][C]-2.1979[/C][C]0.033808[/C][C]0.016904[/C][/ROW]
[ROW][C]M2[/C][C]-0.266105111881319[/C][C]0.131076[/C][C]-2.0302[/C][C]0.049027[/C][C]0.024514[/C][/ROW]
[ROW][C]M3[/C][C]-0.260737180764732[/C][C]0.134806[/C][C]-1.9342[/C][C]0.060189[/C][C]0.030094[/C][/ROW]
[ROW][C]M4[/C][C]-0.307298095078962[/C][C]0.135857[/C][C]-2.2619[/C][C]0.029207[/C][C]0.014603[/C][/ROW]
[ROW][C]M5[/C][C]-0.161628891531660[/C][C]0.136675[/C][C]-1.1826[/C][C]0.243957[/C][C]0.121979[/C][/ROW]
[ROW][C]M6[/C][C]0.439218859498125[/C][C]0.130478[/C][C]3.3662[/C][C]0.001693[/C][C]0.000847[/C][/ROW]
[ROW][C]M7[/C][C]-0.450229842503455[/C][C]0.140175[/C][C]-3.2119[/C][C]0.002604[/C][C]0.001302[/C][/ROW]
[ROW][C]M8[/C][C]-0.293534565143451[/C][C]0.132759[/C][C]-2.211[/C][C]0.032813[/C][C]0.016406[/C][/ROW]
[ROW][C]M9[/C][C]-0.293447343788018[/C][C]0.141087[/C][C]-2.0799[/C][C]0.043987[/C][C]0.021993[/C][/ROW]
[ROW][C]M10[/C][C]-0.205758116291212[/C][C]0.141655[/C][C]-1.4525[/C][C]0.154153[/C][C]0.077076[/C][/ROW]
[ROW][C]M11[/C][C]-0.0167625315974305[/C][C]0.137847[/C][C]-0.1216[/C][C]0.903823[/C][C]0.451911[/C][/ROW]
[ROW][C]t[/C][C]-0.0100239357202803[/C][C]0.004123[/C][C]-2.4315[/C][C]0.01961[/C][C]0.009805[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70670&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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)2.314980954194340.6684483.46320.0012860.000643
X0.2133961609671660.1124911.8970.0650640.032532
Y11.409727028847160.12549811.233100
Y2-0.6544187983661980.131587-4.97331.3e-056e-06
M1-0.2829772299902500.12875-2.19790.0338080.016904
M2-0.2661051118813190.131076-2.03020.0490270.024514
M3-0.2607371807647320.134806-1.93420.0601890.030094
M4-0.3072980950789620.135857-2.26190.0292070.014603
M5-0.1616288915316600.136675-1.18260.2439570.121979
M60.4392188594981250.1304783.36620.0016930.000847
M7-0.4502298425034550.140175-3.21190.0026040.001302
M8-0.2935345651434510.132759-2.2110.0328130.016406
M9-0.2934473437880180.141087-2.07990.0439870.021993
M10-0.2057581162912120.141655-1.45250.1541530.077076
M11-0.01676253159743050.137847-0.12160.9038230.451911
t-0.01002393572028030.004123-2.43150.019610.009805







Multiple Linear Regression - Regression Statistics
Multiple R0.96975621217004
R-squared0.940427111042382
Adjusted R-squared0.918087277683275
F-TEST (value)42.096424620778
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.189042547101552
Sum Squared Residuals1.42948338458570

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.96975621217004 \tabularnewline
R-squared & 0.940427111042382 \tabularnewline
Adjusted R-squared & 0.918087277683275 \tabularnewline
F-TEST (value) & 42.096424620778 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.189042547101552 \tabularnewline
Sum Squared Residuals & 1.42948338458570 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70670&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.96975621217004[/C][/ROW]
[ROW][C]R-squared[/C][C]0.940427111042382[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.918087277683275[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]42.096424620778[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/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.189042547101552[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.42948338458570[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70670&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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.96975621217004
R-squared0.940427111042382
Adjusted R-squared0.918087277683275
F-TEST (value)42.096424620778
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.189042547101552
Sum Squared Residuals1.42948338458570







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.572983507245250.0270164927547522
28.58.58992063284537-0.089920632845368
38.28.37885004552034-0.17885004552034
48.17.96478896666830.135211033331702
57.98.15578717112047-0.255787171120464
68.68.530107460497160.0698925395028428
78.78.74832750264155-0.0483275026415501
88.78.577878388309650.122121611690351
98.58.50249979410818-0.00249979410818188
108.48.298219680115280.101780319884724
118.58.46710238587730.0328976141226986
128.78.680255564475790.0197444355242121
138.78.603757924698070.0962420753019308
148.68.479722347413480.120277652586520
158.58.334093639925070.165906360074929
168.38.201977966842460.0980220331575366
1788.12111970873667-0.121119708736675
188.28.41990917506527-0.219909175065269
198.17.99870758262270.101292417377299
208.17.873522461704470.226477538295532
2187.929027627176240.0709723728237596
227.97.865720216068050.0342797839319496
237.97.96916104199346-0.0691610419934553
2488.04134151770723-0.0413415177072254
2587.889313054881410.110686945118589
267.97.830719357433440.0692806425665585
2787.685090649945030.314909350054967
287.77.83492038263186-0.134920382631857
297.27.48220566196811-0.282205661968112
307.57.56449160236389-0.0644916023638944
317.37.41514647247928-0.115146472479282
3277.08354676883971-0.0835467688397126
3376.781575705493960.218424294506043
3477.05556663678034-0.0555666367803428
357.27.23453828575384-0.0345382857538436
367.37.52322228740043-0.223222287400427
377.17.24031006490137-0.140310064901373
386.86.89977096168397-0.0997709616839707
396.46.60308060809937-0.203080608099369
406.16.17893058603585-0.0789305860358536
416.56.15342526455520.346574735444795
427.77.504465530913430.195534469086566
437.98.03489780846169-0.13489780846169
447.57.89160815879857-0.391608158798573
456.97.18689687322162-0.286896873221621
466.66.68049346703633-0.0804934670363303
476.96.82919828637540.0708017136246003
487.77.455180630416560.24481936958344
4988.0936354482739-0.0936354482738995
5087.999866700623740.000133299376260403
517.77.79888505651019-0.0988850565101869
527.37.31938209782153-0.0193820978215279
537.47.087462193619540.312537806380456
548.18.081026231160240.0189737688397549
558.38.102920633794780.197079366205223
568.28.07344422234760.126555777652404

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.57298350724525 & 0.0270164927547522 \tabularnewline
2 & 8.5 & 8.58992063284537 & -0.089920632845368 \tabularnewline
3 & 8.2 & 8.37885004552034 & -0.17885004552034 \tabularnewline
4 & 8.1 & 7.9647889666683 & 0.135211033331702 \tabularnewline
5 & 7.9 & 8.15578717112047 & -0.255787171120464 \tabularnewline
6 & 8.6 & 8.53010746049716 & 0.0698925395028428 \tabularnewline
7 & 8.7 & 8.74832750264155 & -0.0483275026415501 \tabularnewline
8 & 8.7 & 8.57787838830965 & 0.122121611690351 \tabularnewline
9 & 8.5 & 8.50249979410818 & -0.00249979410818188 \tabularnewline
10 & 8.4 & 8.29821968011528 & 0.101780319884724 \tabularnewline
11 & 8.5 & 8.4671023858773 & 0.0328976141226986 \tabularnewline
12 & 8.7 & 8.68025556447579 & 0.0197444355242121 \tabularnewline
13 & 8.7 & 8.60375792469807 & 0.0962420753019308 \tabularnewline
14 & 8.6 & 8.47972234741348 & 0.120277652586520 \tabularnewline
15 & 8.5 & 8.33409363992507 & 0.165906360074929 \tabularnewline
16 & 8.3 & 8.20197796684246 & 0.0980220331575366 \tabularnewline
17 & 8 & 8.12111970873667 & -0.121119708736675 \tabularnewline
18 & 8.2 & 8.41990917506527 & -0.219909175065269 \tabularnewline
19 & 8.1 & 7.9987075826227 & 0.101292417377299 \tabularnewline
20 & 8.1 & 7.87352246170447 & 0.226477538295532 \tabularnewline
21 & 8 & 7.92902762717624 & 0.0709723728237596 \tabularnewline
22 & 7.9 & 7.86572021606805 & 0.0342797839319496 \tabularnewline
23 & 7.9 & 7.96916104199346 & -0.0691610419934553 \tabularnewline
24 & 8 & 8.04134151770723 & -0.0413415177072254 \tabularnewline
25 & 8 & 7.88931305488141 & 0.110686945118589 \tabularnewline
26 & 7.9 & 7.83071935743344 & 0.0692806425665585 \tabularnewline
27 & 8 & 7.68509064994503 & 0.314909350054967 \tabularnewline
28 & 7.7 & 7.83492038263186 & -0.134920382631857 \tabularnewline
29 & 7.2 & 7.48220566196811 & -0.282205661968112 \tabularnewline
30 & 7.5 & 7.56449160236389 & -0.0644916023638944 \tabularnewline
31 & 7.3 & 7.41514647247928 & -0.115146472479282 \tabularnewline
32 & 7 & 7.08354676883971 & -0.0835467688397126 \tabularnewline
33 & 7 & 6.78157570549396 & 0.218424294506043 \tabularnewline
34 & 7 & 7.05556663678034 & -0.0555666367803428 \tabularnewline
35 & 7.2 & 7.23453828575384 & -0.0345382857538436 \tabularnewline
36 & 7.3 & 7.52322228740043 & -0.223222287400427 \tabularnewline
37 & 7.1 & 7.24031006490137 & -0.140310064901373 \tabularnewline
38 & 6.8 & 6.89977096168397 & -0.0997709616839707 \tabularnewline
39 & 6.4 & 6.60308060809937 & -0.203080608099369 \tabularnewline
40 & 6.1 & 6.17893058603585 & -0.0789305860358536 \tabularnewline
41 & 6.5 & 6.1534252645552 & 0.346574735444795 \tabularnewline
42 & 7.7 & 7.50446553091343 & 0.195534469086566 \tabularnewline
43 & 7.9 & 8.03489780846169 & -0.13489780846169 \tabularnewline
44 & 7.5 & 7.89160815879857 & -0.391608158798573 \tabularnewline
45 & 6.9 & 7.18689687322162 & -0.286896873221621 \tabularnewline
46 & 6.6 & 6.68049346703633 & -0.0804934670363303 \tabularnewline
47 & 6.9 & 6.8291982863754 & 0.0708017136246003 \tabularnewline
48 & 7.7 & 7.45518063041656 & 0.24481936958344 \tabularnewline
49 & 8 & 8.0936354482739 & -0.0936354482738995 \tabularnewline
50 & 8 & 7.99986670062374 & 0.000133299376260403 \tabularnewline
51 & 7.7 & 7.79888505651019 & -0.0988850565101869 \tabularnewline
52 & 7.3 & 7.31938209782153 & -0.0193820978215279 \tabularnewline
53 & 7.4 & 7.08746219361954 & 0.312537806380456 \tabularnewline
54 & 8.1 & 8.08102623116024 & 0.0189737688397549 \tabularnewline
55 & 8.3 & 8.10292063379478 & 0.197079366205223 \tabularnewline
56 & 8.2 & 8.0734442223476 & 0.126555777652404 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70670&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.57298350724525[/C][C]0.0270164927547522[/C][/ROW]
[ROW][C]2[/C][C]8.5[/C][C]8.58992063284537[/C][C]-0.089920632845368[/C][/ROW]
[ROW][C]3[/C][C]8.2[/C][C]8.37885004552034[/C][C]-0.17885004552034[/C][/ROW]
[ROW][C]4[/C][C]8.1[/C][C]7.9647889666683[/C][C]0.135211033331702[/C][/ROW]
[ROW][C]5[/C][C]7.9[/C][C]8.15578717112047[/C][C]-0.255787171120464[/C][/ROW]
[ROW][C]6[/C][C]8.6[/C][C]8.53010746049716[/C][C]0.0698925395028428[/C][/ROW]
[ROW][C]7[/C][C]8.7[/C][C]8.74832750264155[/C][C]-0.0483275026415501[/C][/ROW]
[ROW][C]8[/C][C]8.7[/C][C]8.57787838830965[/C][C]0.122121611690351[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.50249979410818[/C][C]-0.00249979410818188[/C][/ROW]
[ROW][C]10[/C][C]8.4[/C][C]8.29821968011528[/C][C]0.101780319884724[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.4671023858773[/C][C]0.0328976141226986[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]8.68025556447579[/C][C]0.0197444355242121[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.60375792469807[/C][C]0.0962420753019308[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.47972234741348[/C][C]0.120277652586520[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.33409363992507[/C][C]0.165906360074929[/C][/ROW]
[ROW][C]16[/C][C]8.3[/C][C]8.20197796684246[/C][C]0.0980220331575366[/C][/ROW]
[ROW][C]17[/C][C]8[/C][C]8.12111970873667[/C][C]-0.121119708736675[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]8.41990917506527[/C][C]-0.219909175065269[/C][/ROW]
[ROW][C]19[/C][C]8.1[/C][C]7.9987075826227[/C][C]0.101292417377299[/C][/ROW]
[ROW][C]20[/C][C]8.1[/C][C]7.87352246170447[/C][C]0.226477538295532[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]7.92902762717624[/C][C]0.0709723728237596[/C][/ROW]
[ROW][C]22[/C][C]7.9[/C][C]7.86572021606805[/C][C]0.0342797839319496[/C][/ROW]
[ROW][C]23[/C][C]7.9[/C][C]7.96916104199346[/C][C]-0.0691610419934553[/C][/ROW]
[ROW][C]24[/C][C]8[/C][C]8.04134151770723[/C][C]-0.0413415177072254[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.88931305488141[/C][C]0.110686945118589[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.83071935743344[/C][C]0.0692806425665585[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.68509064994503[/C][C]0.314909350054967[/C][/ROW]
[ROW][C]28[/C][C]7.7[/C][C]7.83492038263186[/C][C]-0.134920382631857[/C][/ROW]
[ROW][C]29[/C][C]7.2[/C][C]7.48220566196811[/C][C]-0.282205661968112[/C][/ROW]
[ROW][C]30[/C][C]7.5[/C][C]7.56449160236389[/C][C]-0.0644916023638944[/C][/ROW]
[ROW][C]31[/C][C]7.3[/C][C]7.41514647247928[/C][C]-0.115146472479282[/C][/ROW]
[ROW][C]32[/C][C]7[/C][C]7.08354676883971[/C][C]-0.0835467688397126[/C][/ROW]
[ROW][C]33[/C][C]7[/C][C]6.78157570549396[/C][C]0.218424294506043[/C][/ROW]
[ROW][C]34[/C][C]7[/C][C]7.05556663678034[/C][C]-0.0555666367803428[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.23453828575384[/C][C]-0.0345382857538436[/C][/ROW]
[ROW][C]36[/C][C]7.3[/C][C]7.52322228740043[/C][C]-0.223222287400427[/C][/ROW]
[ROW][C]37[/C][C]7.1[/C][C]7.24031006490137[/C][C]-0.140310064901373[/C][/ROW]
[ROW][C]38[/C][C]6.8[/C][C]6.89977096168397[/C][C]-0.0997709616839707[/C][/ROW]
[ROW][C]39[/C][C]6.4[/C][C]6.60308060809937[/C][C]-0.203080608099369[/C][/ROW]
[ROW][C]40[/C][C]6.1[/C][C]6.17893058603585[/C][C]-0.0789305860358536[/C][/ROW]
[ROW][C]41[/C][C]6.5[/C][C]6.1534252645552[/C][C]0.346574735444795[/C][/ROW]
[ROW][C]42[/C][C]7.7[/C][C]7.50446553091343[/C][C]0.195534469086566[/C][/ROW]
[ROW][C]43[/C][C]7.9[/C][C]8.03489780846169[/C][C]-0.13489780846169[/C][/ROW]
[ROW][C]44[/C][C]7.5[/C][C]7.89160815879857[/C][C]-0.391608158798573[/C][/ROW]
[ROW][C]45[/C][C]6.9[/C][C]7.18689687322162[/C][C]-0.286896873221621[/C][/ROW]
[ROW][C]46[/C][C]6.6[/C][C]6.68049346703633[/C][C]-0.0804934670363303[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]6.8291982863754[/C][C]0.0708017136246003[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.45518063041656[/C][C]0.24481936958344[/C][/ROW]
[ROW][C]49[/C][C]8[/C][C]8.0936354482739[/C][C]-0.0936354482738995[/C][/ROW]
[ROW][C]50[/C][C]8[/C][C]7.99986670062374[/C][C]0.000133299376260403[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.79888505651019[/C][C]-0.0988850565101869[/C][/ROW]
[ROW][C]52[/C][C]7.3[/C][C]7.31938209782153[/C][C]-0.0193820978215279[/C][/ROW]
[ROW][C]53[/C][C]7.4[/C][C]7.08746219361954[/C][C]0.312537806380456[/C][/ROW]
[ROW][C]54[/C][C]8.1[/C][C]8.08102623116024[/C][C]0.0189737688397549[/C][/ROW]
[ROW][C]55[/C][C]8.3[/C][C]8.10292063379478[/C][C]0.197079366205223[/C][/ROW]
[ROW][C]56[/C][C]8.2[/C][C]8.0734442223476[/C][C]0.126555777652404[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70670&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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.572983507245250.0270164927547522
28.58.58992063284537-0.089920632845368
38.28.37885004552034-0.17885004552034
48.17.96478896666830.135211033331702
57.98.15578717112047-0.255787171120464
68.68.530107460497160.0698925395028428
78.78.74832750264155-0.0483275026415501
88.78.577878388309650.122121611690351
98.58.50249979410818-0.00249979410818188
108.48.298219680115280.101780319884724
118.58.46710238587730.0328976141226986
128.78.680255564475790.0197444355242121
138.78.603757924698070.0962420753019308
148.68.479722347413480.120277652586520
158.58.334093639925070.165906360074929
168.38.201977966842460.0980220331575366
1788.12111970873667-0.121119708736675
188.28.41990917506527-0.219909175065269
198.17.99870758262270.101292417377299
208.17.873522461704470.226477538295532
2187.929027627176240.0709723728237596
227.97.865720216068050.0342797839319496
237.97.96916104199346-0.0691610419934553
2488.04134151770723-0.0413415177072254
2587.889313054881410.110686945118589
267.97.830719357433440.0692806425665585
2787.685090649945030.314909350054967
287.77.83492038263186-0.134920382631857
297.27.48220566196811-0.282205661968112
307.57.56449160236389-0.0644916023638944
317.37.41514647247928-0.115146472479282
3277.08354676883971-0.0835467688397126
3376.781575705493960.218424294506043
3477.05556663678034-0.0555666367803428
357.27.23453828575384-0.0345382857538436
367.37.52322228740043-0.223222287400427
377.17.24031006490137-0.140310064901373
386.86.89977096168397-0.0997709616839707
396.46.60308060809937-0.203080608099369
406.16.17893058603585-0.0789305860358536
416.56.15342526455520.346574735444795
427.77.504465530913430.195534469086566
437.98.03489780846169-0.13489780846169
447.57.89160815879857-0.391608158798573
456.97.18689687322162-0.286896873221621
466.66.68049346703633-0.0804934670363303
476.96.82919828637540.0708017136246003
487.77.455180630416560.24481936958344
4988.0936354482739-0.0936354482738995
5087.999866700623740.000133299376260403
517.77.79888505651019-0.0988850565101869
527.37.31938209782153-0.0193820978215279
537.47.087462193619540.312537806380456
548.18.081026231160240.0189737688397549
558.38.102920633794780.197079366205223
568.28.07344422234760.126555777652404







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.488404385355380.976808770710760.51159561464462
200.3584167185748360.7168334371496720.641583281425164
210.2217903426867210.4435806853734420.778209657313279
220.1407910080537260.2815820161074520.859208991946274
230.08472146450955390.1694429290191080.915278535490446
240.04486595105871910.08973190211743810.95513404894128
250.02787067606746120.05574135213492230.97212932393254
260.01535777528519030.03071555057038060.98464222471481
270.1104139055894050.2208278111788100.889586094410595
280.1588866310567870.3177732621135740.841113368943213
290.1484166054782910.2968332109565820.851583394521709
300.101766421805430.203532843610860.89823357819457
310.08815431895143360.1763086379028670.911845681048566
320.1362380827649140.2724761655298290.863761917235086
330.5718641800002880.8562716399994240.428135819999712
340.5425118897865030.9149762204269950.457488110213497
350.6002595560021040.7994808879957920.399740443997896
360.5083708448638310.9832583102723390.491629155136169
370.4865140853550740.9730281707101490.513485914644926

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.48840438535538 & 0.97680877071076 & 0.51159561464462 \tabularnewline
20 & 0.358416718574836 & 0.716833437149672 & 0.641583281425164 \tabularnewline
21 & 0.221790342686721 & 0.443580685373442 & 0.778209657313279 \tabularnewline
22 & 0.140791008053726 & 0.281582016107452 & 0.859208991946274 \tabularnewline
23 & 0.0847214645095539 & 0.169442929019108 & 0.915278535490446 \tabularnewline
24 & 0.0448659510587191 & 0.0897319021174381 & 0.95513404894128 \tabularnewline
25 & 0.0278706760674612 & 0.0557413521349223 & 0.97212932393254 \tabularnewline
26 & 0.0153577752851903 & 0.0307155505703806 & 0.98464222471481 \tabularnewline
27 & 0.110413905589405 & 0.220827811178810 & 0.889586094410595 \tabularnewline
28 & 0.158886631056787 & 0.317773262113574 & 0.841113368943213 \tabularnewline
29 & 0.148416605478291 & 0.296833210956582 & 0.851583394521709 \tabularnewline
30 & 0.10176642180543 & 0.20353284361086 & 0.89823357819457 \tabularnewline
31 & 0.0881543189514336 & 0.176308637902867 & 0.911845681048566 \tabularnewline
32 & 0.136238082764914 & 0.272476165529829 & 0.863761917235086 \tabularnewline
33 & 0.571864180000288 & 0.856271639999424 & 0.428135819999712 \tabularnewline
34 & 0.542511889786503 & 0.914976220426995 & 0.457488110213497 \tabularnewline
35 & 0.600259556002104 & 0.799480887995792 & 0.399740443997896 \tabularnewline
36 & 0.508370844863831 & 0.983258310272339 & 0.491629155136169 \tabularnewline
37 & 0.486514085355074 & 0.973028170710149 & 0.513485914644926 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70670&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]19[/C][C]0.48840438535538[/C][C]0.97680877071076[/C][C]0.51159561464462[/C][/ROW]
[ROW][C]20[/C][C]0.358416718574836[/C][C]0.716833437149672[/C][C]0.641583281425164[/C][/ROW]
[ROW][C]21[/C][C]0.221790342686721[/C][C]0.443580685373442[/C][C]0.778209657313279[/C][/ROW]
[ROW][C]22[/C][C]0.140791008053726[/C][C]0.281582016107452[/C][C]0.859208991946274[/C][/ROW]
[ROW][C]23[/C][C]0.0847214645095539[/C][C]0.169442929019108[/C][C]0.915278535490446[/C][/ROW]
[ROW][C]24[/C][C]0.0448659510587191[/C][C]0.0897319021174381[/C][C]0.95513404894128[/C][/ROW]
[ROW][C]25[/C][C]0.0278706760674612[/C][C]0.0557413521349223[/C][C]0.97212932393254[/C][/ROW]
[ROW][C]26[/C][C]0.0153577752851903[/C][C]0.0307155505703806[/C][C]0.98464222471481[/C][/ROW]
[ROW][C]27[/C][C]0.110413905589405[/C][C]0.220827811178810[/C][C]0.889586094410595[/C][/ROW]
[ROW][C]28[/C][C]0.158886631056787[/C][C]0.317773262113574[/C][C]0.841113368943213[/C][/ROW]
[ROW][C]29[/C][C]0.148416605478291[/C][C]0.296833210956582[/C][C]0.851583394521709[/C][/ROW]
[ROW][C]30[/C][C]0.10176642180543[/C][C]0.20353284361086[/C][C]0.89823357819457[/C][/ROW]
[ROW][C]31[/C][C]0.0881543189514336[/C][C]0.176308637902867[/C][C]0.911845681048566[/C][/ROW]
[ROW][C]32[/C][C]0.136238082764914[/C][C]0.272476165529829[/C][C]0.863761917235086[/C][/ROW]
[ROW][C]33[/C][C]0.571864180000288[/C][C]0.856271639999424[/C][C]0.428135819999712[/C][/ROW]
[ROW][C]34[/C][C]0.542511889786503[/C][C]0.914976220426995[/C][C]0.457488110213497[/C][/ROW]
[ROW][C]35[/C][C]0.600259556002104[/C][C]0.799480887995792[/C][C]0.399740443997896[/C][/ROW]
[ROW][C]36[/C][C]0.508370844863831[/C][C]0.983258310272339[/C][C]0.491629155136169[/C][/ROW]
[ROW][C]37[/C][C]0.486514085355074[/C][C]0.973028170710149[/C][C]0.513485914644926[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70670&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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
190.488404385355380.976808770710760.51159561464462
200.3584167185748360.7168334371496720.641583281425164
210.2217903426867210.4435806853734420.778209657313279
220.1407910080537260.2815820161074520.859208991946274
230.08472146450955390.1694429290191080.915278535490446
240.04486595105871910.08973190211743810.95513404894128
250.02787067606746120.05574135213492230.97212932393254
260.01535777528519030.03071555057038060.98464222471481
270.1104139055894050.2208278111788100.889586094410595
280.1588866310567870.3177732621135740.841113368943213
290.1484166054782910.2968332109565820.851583394521709
300.101766421805430.203532843610860.89823357819457
310.08815431895143360.1763086379028670.911845681048566
320.1362380827649140.2724761655298290.863761917235086
330.5718641800002880.8562716399994240.428135819999712
340.5425118897865030.9149762204269950.457488110213497
350.6002595560021040.7994808879957920.399740443997896
360.5083708448638310.9832583102723390.491629155136169
370.4865140853550740.9730281707101490.513485914644926







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

\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 & 1 & 0.0526315789473684 & NOK \tabularnewline
10% type I error level & 3 & 0.157894736842105 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70670&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]1[/C][C]0.0526315789473684[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]3[/C][C]0.157894736842105[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70670&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70670&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 level10.0526315789473684NOK
10% type I error level30.157894736842105NOK



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