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, 17 Dec 2009 07:38:11 -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/17/t1261060775ozb3vgqqevd36og.htm/, Retrieved Tue, 30 Apr 2024 01:16:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68913, Retrieved Tue, 30 Apr 2024 01:16:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact124
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-18 16:22:43] [90f6d58d515a4caed6fb4b8be4e11eaa]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:47:34] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 14:38:11] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68913&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.921945386517049 -0.00849630040054335X[t] + 1.65965833303647Y1[t] -1.19540649750345Y2[t] + 0.421573973478152Y3[t] + 0.047571584198437M1[t] + 0.222330619531373M2[t] + 0.159118603106716M3[t] -0.0108053600755996M4[t] + 0.0800811012666492M5[t] + 0.0112746842390065M6[t] -0.0750162781195247M7[t] + 0.0706013534843924M8[t] + 0.631485697774444M9[t] -0.421261926523657M10[t] + 0.186816955697884M11[t] -0.00259888769774793t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.921945386517049 -0.00849630040054335X[t] +  1.65965833303647Y1[t] -1.19540649750345Y2[t] +  0.421573973478152Y3[t] +  0.047571584198437M1[t] +  0.222330619531373M2[t] +  0.159118603106716M3[t] -0.0108053600755996M4[t] +  0.0800811012666492M5[t] +  0.0112746842390065M6[t] -0.0750162781195247M7[t] +  0.0706013534843924M8[t] +  0.631485697774444M9[t] -0.421261926523657M10[t] +  0.186816955697884M11[t] -0.00259888769774793t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68913&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.921945386517049 -0.00849630040054335X[t] +  1.65965833303647Y1[t] -1.19540649750345Y2[t] +  0.421573973478152Y3[t] +  0.047571584198437M1[t] +  0.222330619531373M2[t] +  0.159118603106716M3[t] -0.0108053600755996M4[t] +  0.0800811012666492M5[t] +  0.0112746842390065M6[t] -0.0750162781195247M7[t] +  0.0706013534843924M8[t] +  0.631485697774444M9[t] -0.421261926523657M10[t] +  0.186816955697884M11[t] -0.00259888769774793t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68913&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68913&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.921945386517049 -0.00849630040054335X[t] + 1.65965833303647Y1[t] -1.19540649750345Y2[t] + 0.421573973478152Y3[t] + 0.047571584198437M1[t] + 0.222330619531373M2[t] + 0.159118603106716M3[t] -0.0108053600755996M4[t] + 0.0800811012666492M5[t] + 0.0112746842390065M6[t] -0.0750162781195247M7[t] + 0.0706013534843924M8[t] + 0.631485697774444M9[t] -0.421261926523657M10[t] + 0.186816955697884M11[t] -0.00259888769774793t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.9219453865170490.9672810.95310.3462480.173124
X-0.008496300400543350.023874-0.35590.7237990.361899
Y11.659658333036470.14596611.370200
Y2-1.195406497503450.228585-5.22966e-063e-06
Y30.4215739734781520.1646262.56080.0143220.007161
M10.0475715841984370.1172640.40570.687140.34357
M20.2223306195313730.1213881.83160.0744690.037235
M30.1591186031067160.1288131.23530.2239360.111968
M4-0.01080536007559960.127814-0.08450.9330490.466525
M50.08008110126664920.1224340.65410.5168060.258403
M60.01127468423900650.1164080.09690.9233250.461663
M7-0.07501627811952470.116986-0.64120.5250240.262512
M80.07060135348439240.1186460.59510.5551550.277578
M90.6314856977744440.1232475.12388e-064e-06
M10-0.4212619265236570.162371-2.59440.0131790.006589
M110.1868169556978840.1483071.25970.2150910.107546
t-0.002598887697747930.003492-0.74420.4611310.230566

\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.921945386517049 & 0.967281 & 0.9531 & 0.346248 & 0.173124 \tabularnewline
X & -0.00849630040054335 & 0.023874 & -0.3559 & 0.723799 & 0.361899 \tabularnewline
Y1 & 1.65965833303647 & 0.145966 & 11.3702 & 0 & 0 \tabularnewline
Y2 & -1.19540649750345 & 0.228585 & -5.2296 & 6e-06 & 3e-06 \tabularnewline
Y3 & 0.421573973478152 & 0.164626 & 2.5608 & 0.014322 & 0.007161 \tabularnewline
M1 & 0.047571584198437 & 0.117264 & 0.4057 & 0.68714 & 0.34357 \tabularnewline
M2 & 0.222330619531373 & 0.121388 & 1.8316 & 0.074469 & 0.037235 \tabularnewline
M3 & 0.159118603106716 & 0.128813 & 1.2353 & 0.223936 & 0.111968 \tabularnewline
M4 & -0.0108053600755996 & 0.127814 & -0.0845 & 0.933049 & 0.466525 \tabularnewline
M5 & 0.0800811012666492 & 0.122434 & 0.6541 & 0.516806 & 0.258403 \tabularnewline
M6 & 0.0112746842390065 & 0.116408 & 0.0969 & 0.923325 & 0.461663 \tabularnewline
M7 & -0.0750162781195247 & 0.116986 & -0.6412 & 0.525024 & 0.262512 \tabularnewline
M8 & 0.0706013534843924 & 0.118646 & 0.5951 & 0.555155 & 0.277578 \tabularnewline
M9 & 0.631485697774444 & 0.123247 & 5.1238 & 8e-06 & 4e-06 \tabularnewline
M10 & -0.421261926523657 & 0.162371 & -2.5944 & 0.013179 & 0.006589 \tabularnewline
M11 & 0.186816955697884 & 0.148307 & 1.2597 & 0.215091 & 0.107546 \tabularnewline
t & -0.00259888769774793 & 0.003492 & -0.7442 & 0.461131 & 0.230566 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68913&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.921945386517049[/C][C]0.967281[/C][C]0.9531[/C][C]0.346248[/C][C]0.173124[/C][/ROW]
[ROW][C]X[/C][C]-0.00849630040054335[/C][C]0.023874[/C][C]-0.3559[/C][C]0.723799[/C][C]0.361899[/C][/ROW]
[ROW][C]Y1[/C][C]1.65965833303647[/C][C]0.145966[/C][C]11.3702[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-1.19540649750345[/C][C]0.228585[/C][C]-5.2296[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]Y3[/C][C]0.421573973478152[/C][C]0.164626[/C][C]2.5608[/C][C]0.014322[/C][C]0.007161[/C][/ROW]
[ROW][C]M1[/C][C]0.047571584198437[/C][C]0.117264[/C][C]0.4057[/C][C]0.68714[/C][C]0.34357[/C][/ROW]
[ROW][C]M2[/C][C]0.222330619531373[/C][C]0.121388[/C][C]1.8316[/C][C]0.074469[/C][C]0.037235[/C][/ROW]
[ROW][C]M3[/C][C]0.159118603106716[/C][C]0.128813[/C][C]1.2353[/C][C]0.223936[/C][C]0.111968[/C][/ROW]
[ROW][C]M4[/C][C]-0.0108053600755996[/C][C]0.127814[/C][C]-0.0845[/C][C]0.933049[/C][C]0.466525[/C][/ROW]
[ROW][C]M5[/C][C]0.0800811012666492[/C][C]0.122434[/C][C]0.6541[/C][C]0.516806[/C][C]0.258403[/C][/ROW]
[ROW][C]M6[/C][C]0.0112746842390065[/C][C]0.116408[/C][C]0.0969[/C][C]0.923325[/C][C]0.461663[/C][/ROW]
[ROW][C]M7[/C][C]-0.0750162781195247[/C][C]0.116986[/C][C]-0.6412[/C][C]0.525024[/C][C]0.262512[/C][/ROW]
[ROW][C]M8[/C][C]0.0706013534843924[/C][C]0.118646[/C][C]0.5951[/C][C]0.555155[/C][C]0.277578[/C][/ROW]
[ROW][C]M9[/C][C]0.631485697774444[/C][C]0.123247[/C][C]5.1238[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M10[/C][C]-0.421261926523657[/C][C]0.162371[/C][C]-2.5944[/C][C]0.013179[/C][C]0.006589[/C][/ROW]
[ROW][C]M11[/C][C]0.186816955697884[/C][C]0.148307[/C][C]1.2597[/C][C]0.215091[/C][C]0.107546[/C][/ROW]
[ROW][C]t[/C][C]-0.00259888769774793[/C][C]0.003492[/C][C]-0.7442[/C][C]0.461131[/C][C]0.230566[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68913&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68913&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.9219453865170490.9672810.95310.3462480.173124
X-0.008496300400543350.023874-0.35590.7237990.361899
Y11.659658333036470.14596611.370200
Y2-1.195406497503450.228585-5.22966e-063e-06
Y30.4215739734781520.1646262.56080.0143220.007161
M10.0475715841984370.1172640.40570.687140.34357
M20.2223306195313730.1213881.83160.0744690.037235
M30.1591186031067160.1288131.23530.2239360.111968
M4-0.01080536007559960.127814-0.08450.9330490.466525
M50.08008110126664920.1224340.65410.5168060.258403
M60.01127468423900650.1164080.09690.9233250.461663
M7-0.07501627811952470.116986-0.64120.5250240.262512
M80.07060135348439240.1186460.59510.5551550.277578
M90.6314856977744440.1232475.12388e-064e-06
M10-0.4212619265236570.162371-2.59440.0131790.006589
M110.1868169556978840.1483071.25970.2150910.107546
t-0.002598887697747930.003492-0.74420.4611310.230566







Multiple Linear Regression - Regression Statistics
Multiple R0.975285399896968
R-squared0.951181611252188
Adjusted R-squared0.931654255753063
F-TEST (value)48.710211236479
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.172917340498500
Sum Squared Residuals1.19601626580297

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.975285399896968 \tabularnewline
R-squared & 0.951181611252188 \tabularnewline
Adjusted R-squared & 0.931654255753063 \tabularnewline
F-TEST (value) & 48.710211236479 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.172917340498500 \tabularnewline
Sum Squared Residuals & 1.19601626580297 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68913&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.975285399896968[/C][/ROW]
[ROW][C]R-squared[/C][C]0.951181611252188[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.931654255753063[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]48.710211236479[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/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.172917340498500[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.19601626580297[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68913&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68913&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.975285399896968
R-squared0.951181611252188
Adjusted R-squared0.931654255753063
F-TEST (value)48.710211236479
F-TEST (DF numerator)16
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.172917340498500
Sum Squared Residuals1.19601626580297







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.28.172769015277370.0272309847226265
28.38.235742415056620.0642575849433793
38.58.67980657886264-0.179806578862642
48.68.506338867980290.0936611320197127
58.58.55942022257529-0.059420222575288
68.28.29022174965175-0.090221749651755
78.17.865982076822750.234017923177252
87.98.15610101916827-0.256101019168274
98.68.375523266860180.224476733139815
108.78.677162230062630.0228377699373725
118.78.526659084901970.173340915098033
128.58.51960141351113-0.0196014135111315
138.48.273950210712290.126049789287711
148.58.51497767434425-0.0149776743442479
158.78.65035845858020.0496415414197947
168.78.648069227209270.0519307727907265
178.68.544530678941220.0554693210587738
188.58.38807581544760.111924184552398
198.38.251061521757910.0489384782420882
2088.14208074157948-0.142080741579482
218.28.40024223045377-0.200242230453774
228.17.951984169660680.148015830339323
238.18.029343359496910.0706566405030937
2488.04548222062736-0.045482220627358
257.97.879782796356420.0202172036435775
267.98.00466813039825-0.104668130398255
2788.0196389988386-0.0196389988385978
2887.970074953874310.0299250461256896
297.97.93882187776847-0.0388218777684663
3087.743608137087240.256391862912755
317.77.94447292028523-0.244472920285228
327.27.4278961171823-0.227896117182298
337.57.55713175385522-0.0571317538552187
347.37.47176342851864-0.171763428518644
3577.17420356036492-0.174203560364923
3676.845646668282050.154353331717946
3777.15897910905777-0.158979109057766
387.27.2029678045694-0.00296780456940004
397.37.46569004689407-0.165690046894072
407.17.21920209977691-0.119202099776910
416.86.93353511143897-0.133535111438968
426.46.6480198937713-0.248019893771306
436.16.1610775646553-0.0610775646553028
446.56.151941805328080.348058194671915
457.77.56323332495470.136766675045305
467.97.899090171758050.00090982824194913
477.57.5697939952362-0.0697939952362032
486.96.98926969757946-0.0892696975794575
496.66.61451886859615-0.0145188685961489
506.96.841643975631480.0583560243685238
517.77.384505916824480.315494083175516
5288.05631485115922-0.0563148511592188
5387.823692109276050.176307890723949
547.77.73007440404209-0.0300744040420928
557.37.277405916478810.0225940835211909
567.47.121980316741860.278019683258139
578.18.20386942387613-0.103869423876128

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 8.17276901527737 & 0.0272309847226265 \tabularnewline
2 & 8.3 & 8.23574241505662 & 0.0642575849433793 \tabularnewline
3 & 8.5 & 8.67980657886264 & -0.179806578862642 \tabularnewline
4 & 8.6 & 8.50633886798029 & 0.0936611320197127 \tabularnewline
5 & 8.5 & 8.55942022257529 & -0.059420222575288 \tabularnewline
6 & 8.2 & 8.29022174965175 & -0.090221749651755 \tabularnewline
7 & 8.1 & 7.86598207682275 & 0.234017923177252 \tabularnewline
8 & 7.9 & 8.15610101916827 & -0.256101019168274 \tabularnewline
9 & 8.6 & 8.37552326686018 & 0.224476733139815 \tabularnewline
10 & 8.7 & 8.67716223006263 & 0.0228377699373725 \tabularnewline
11 & 8.7 & 8.52665908490197 & 0.173340915098033 \tabularnewline
12 & 8.5 & 8.51960141351113 & -0.0196014135111315 \tabularnewline
13 & 8.4 & 8.27395021071229 & 0.126049789287711 \tabularnewline
14 & 8.5 & 8.51497767434425 & -0.0149776743442479 \tabularnewline
15 & 8.7 & 8.6503584585802 & 0.0496415414197947 \tabularnewline
16 & 8.7 & 8.64806922720927 & 0.0519307727907265 \tabularnewline
17 & 8.6 & 8.54453067894122 & 0.0554693210587738 \tabularnewline
18 & 8.5 & 8.3880758154476 & 0.111924184552398 \tabularnewline
19 & 8.3 & 8.25106152175791 & 0.0489384782420882 \tabularnewline
20 & 8 & 8.14208074157948 & -0.142080741579482 \tabularnewline
21 & 8.2 & 8.40024223045377 & -0.200242230453774 \tabularnewline
22 & 8.1 & 7.95198416966068 & 0.148015830339323 \tabularnewline
23 & 8.1 & 8.02934335949691 & 0.0706566405030937 \tabularnewline
24 & 8 & 8.04548222062736 & -0.045482220627358 \tabularnewline
25 & 7.9 & 7.87978279635642 & 0.0202172036435775 \tabularnewline
26 & 7.9 & 8.00466813039825 & -0.104668130398255 \tabularnewline
27 & 8 & 8.0196389988386 & -0.0196389988385978 \tabularnewline
28 & 8 & 7.97007495387431 & 0.0299250461256896 \tabularnewline
29 & 7.9 & 7.93882187776847 & -0.0388218777684663 \tabularnewline
30 & 8 & 7.74360813708724 & 0.256391862912755 \tabularnewline
31 & 7.7 & 7.94447292028523 & -0.244472920285228 \tabularnewline
32 & 7.2 & 7.4278961171823 & -0.227896117182298 \tabularnewline
33 & 7.5 & 7.55713175385522 & -0.0571317538552187 \tabularnewline
34 & 7.3 & 7.47176342851864 & -0.171763428518644 \tabularnewline
35 & 7 & 7.17420356036492 & -0.174203560364923 \tabularnewline
36 & 7 & 6.84564666828205 & 0.154353331717946 \tabularnewline
37 & 7 & 7.15897910905777 & -0.158979109057766 \tabularnewline
38 & 7.2 & 7.2029678045694 & -0.00296780456940004 \tabularnewline
39 & 7.3 & 7.46569004689407 & -0.165690046894072 \tabularnewline
40 & 7.1 & 7.21920209977691 & -0.119202099776910 \tabularnewline
41 & 6.8 & 6.93353511143897 & -0.133535111438968 \tabularnewline
42 & 6.4 & 6.6480198937713 & -0.248019893771306 \tabularnewline
43 & 6.1 & 6.1610775646553 & -0.0610775646553028 \tabularnewline
44 & 6.5 & 6.15194180532808 & 0.348058194671915 \tabularnewline
45 & 7.7 & 7.5632333249547 & 0.136766675045305 \tabularnewline
46 & 7.9 & 7.89909017175805 & 0.00090982824194913 \tabularnewline
47 & 7.5 & 7.5697939952362 & -0.0697939952362032 \tabularnewline
48 & 6.9 & 6.98926969757946 & -0.0892696975794575 \tabularnewline
49 & 6.6 & 6.61451886859615 & -0.0145188685961489 \tabularnewline
50 & 6.9 & 6.84164397563148 & 0.0583560243685238 \tabularnewline
51 & 7.7 & 7.38450591682448 & 0.315494083175516 \tabularnewline
52 & 8 & 8.05631485115922 & -0.0563148511592188 \tabularnewline
53 & 8 & 7.82369210927605 & 0.176307890723949 \tabularnewline
54 & 7.7 & 7.73007440404209 & -0.0300744040420928 \tabularnewline
55 & 7.3 & 7.27740591647881 & 0.0225940835211909 \tabularnewline
56 & 7.4 & 7.12198031674186 & 0.278019683258139 \tabularnewline
57 & 8.1 & 8.20386942387613 & -0.103869423876128 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68913&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.2[/C][C]8.17276901527737[/C][C]0.0272309847226265[/C][/ROW]
[ROW][C]2[/C][C]8.3[/C][C]8.23574241505662[/C][C]0.0642575849433793[/C][/ROW]
[ROW][C]3[/C][C]8.5[/C][C]8.67980657886264[/C][C]-0.179806578862642[/C][/ROW]
[ROW][C]4[/C][C]8.6[/C][C]8.50633886798029[/C][C]0.0936611320197127[/C][/ROW]
[ROW][C]5[/C][C]8.5[/C][C]8.55942022257529[/C][C]-0.059420222575288[/C][/ROW]
[ROW][C]6[/C][C]8.2[/C][C]8.29022174965175[/C][C]-0.090221749651755[/C][/ROW]
[ROW][C]7[/C][C]8.1[/C][C]7.86598207682275[/C][C]0.234017923177252[/C][/ROW]
[ROW][C]8[/C][C]7.9[/C][C]8.15610101916827[/C][C]-0.256101019168274[/C][/ROW]
[ROW][C]9[/C][C]8.6[/C][C]8.37552326686018[/C][C]0.224476733139815[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]8.67716223006263[/C][C]0.0228377699373725[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.52665908490197[/C][C]0.173340915098033[/C][/ROW]
[ROW][C]12[/C][C]8.5[/C][C]8.51960141351113[/C][C]-0.0196014135111315[/C][/ROW]
[ROW][C]13[/C][C]8.4[/C][C]8.27395021071229[/C][C]0.126049789287711[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.51497767434425[/C][C]-0.0149776743442479[/C][/ROW]
[ROW][C]15[/C][C]8.7[/C][C]8.6503584585802[/C][C]0.0496415414197947[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.64806922720927[/C][C]0.0519307727907265[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]8.54453067894122[/C][C]0.0554693210587738[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.3880758154476[/C][C]0.111924184552398[/C][/ROW]
[ROW][C]19[/C][C]8.3[/C][C]8.25106152175791[/C][C]0.0489384782420882[/C][/ROW]
[ROW][C]20[/C][C]8[/C][C]8.14208074157948[/C][C]-0.142080741579482[/C][/ROW]
[ROW][C]21[/C][C]8.2[/C][C]8.40024223045377[/C][C]-0.200242230453774[/C][/ROW]
[ROW][C]22[/C][C]8.1[/C][C]7.95198416966068[/C][C]0.148015830339323[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]8.02934335949691[/C][C]0.0706566405030937[/C][/ROW]
[ROW][C]24[/C][C]8[/C][C]8.04548222062736[/C][C]-0.045482220627358[/C][/ROW]
[ROW][C]25[/C][C]7.9[/C][C]7.87978279635642[/C][C]0.0202172036435775[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]8.00466813039825[/C][C]-0.104668130398255[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]8.0196389988386[/C][C]-0.0196389988385978[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.97007495387431[/C][C]0.0299250461256896[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.93882187776847[/C][C]-0.0388218777684663[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.74360813708724[/C][C]0.256391862912755[/C][/ROW]
[ROW][C]31[/C][C]7.7[/C][C]7.94447292028523[/C][C]-0.244472920285228[/C][/ROW]
[ROW][C]32[/C][C]7.2[/C][C]7.4278961171823[/C][C]-0.227896117182298[/C][/ROW]
[ROW][C]33[/C][C]7.5[/C][C]7.55713175385522[/C][C]-0.0571317538552187[/C][/ROW]
[ROW][C]34[/C][C]7.3[/C][C]7.47176342851864[/C][C]-0.171763428518644[/C][/ROW]
[ROW][C]35[/C][C]7[/C][C]7.17420356036492[/C][C]-0.174203560364923[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]6.84564666828205[/C][C]0.154353331717946[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.15897910905777[/C][C]-0.158979109057766[/C][/ROW]
[ROW][C]38[/C][C]7.2[/C][C]7.2029678045694[/C][C]-0.00296780456940004[/C][/ROW]
[ROW][C]39[/C][C]7.3[/C][C]7.46569004689407[/C][C]-0.165690046894072[/C][/ROW]
[ROW][C]40[/C][C]7.1[/C][C]7.21920209977691[/C][C]-0.119202099776910[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.93353511143897[/C][C]-0.133535111438968[/C][/ROW]
[ROW][C]42[/C][C]6.4[/C][C]6.6480198937713[/C][C]-0.248019893771306[/C][/ROW]
[ROW][C]43[/C][C]6.1[/C][C]6.1610775646553[/C][C]-0.0610775646553028[/C][/ROW]
[ROW][C]44[/C][C]6.5[/C][C]6.15194180532808[/C][C]0.348058194671915[/C][/ROW]
[ROW][C]45[/C][C]7.7[/C][C]7.5632333249547[/C][C]0.136766675045305[/C][/ROW]
[ROW][C]46[/C][C]7.9[/C][C]7.89909017175805[/C][C]0.00090982824194913[/C][/ROW]
[ROW][C]47[/C][C]7.5[/C][C]7.5697939952362[/C][C]-0.0697939952362032[/C][/ROW]
[ROW][C]48[/C][C]6.9[/C][C]6.98926969757946[/C][C]-0.0892696975794575[/C][/ROW]
[ROW][C]49[/C][C]6.6[/C][C]6.61451886859615[/C][C]-0.0145188685961489[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.84164397563148[/C][C]0.0583560243685238[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.38450591682448[/C][C]0.315494083175516[/C][/ROW]
[ROW][C]52[/C][C]8[/C][C]8.05631485115922[/C][C]-0.0563148511592188[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]7.82369210927605[/C][C]0.176307890723949[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.73007440404209[/C][C]-0.0300744040420928[/C][/ROW]
[ROW][C]55[/C][C]7.3[/C][C]7.27740591647881[/C][C]0.0225940835211909[/C][/ROW]
[ROW][C]56[/C][C]7.4[/C][C]7.12198031674186[/C][C]0.278019683258139[/C][/ROW]
[ROW][C]57[/C][C]8.1[/C][C]8.20386942387613[/C][C]-0.103869423876128[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68913&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68913&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.28.172769015277370.0272309847226265
28.38.235742415056620.0642575849433793
38.58.67980657886264-0.179806578862642
48.68.506338867980290.0936611320197127
58.58.55942022257529-0.059420222575288
68.28.29022174965175-0.090221749651755
78.17.865982076822750.234017923177252
87.98.15610101916827-0.256101019168274
98.68.375523266860180.224476733139815
108.78.677162230062630.0228377699373725
118.78.526659084901970.173340915098033
128.58.51960141351113-0.0196014135111315
138.48.273950210712290.126049789287711
148.58.51497767434425-0.0149776743442479
158.78.65035845858020.0496415414197947
168.78.648069227209270.0519307727907265
178.68.544530678941220.0554693210587738
188.58.38807581544760.111924184552398
198.38.251061521757910.0489384782420882
2088.14208074157948-0.142080741579482
218.28.40024223045377-0.200242230453774
228.17.951984169660680.148015830339323
238.18.029343359496910.0706566405030937
2488.04548222062736-0.045482220627358
257.97.879782796356420.0202172036435775
267.98.00466813039825-0.104668130398255
2788.0196389988386-0.0196389988385978
2887.970074953874310.0299250461256896
297.97.93882187776847-0.0388218777684663
3087.743608137087240.256391862912755
317.77.94447292028523-0.244472920285228
327.27.4278961171823-0.227896117182298
337.57.55713175385522-0.0571317538552187
347.37.47176342851864-0.171763428518644
3577.17420356036492-0.174203560364923
3676.845646668282050.154353331717946
3777.15897910905777-0.158979109057766
387.27.2029678045694-0.00296780456940004
397.37.46569004689407-0.165690046894072
407.17.21920209977691-0.119202099776910
416.86.93353511143897-0.133535111438968
426.46.6480198937713-0.248019893771306
436.16.1610775646553-0.0610775646553028
446.56.151941805328080.348058194671915
457.77.56323332495470.136766675045305
467.97.899090171758050.00090982824194913
477.57.5697939952362-0.0697939952362032
486.96.98926969757946-0.0892696975794575
496.66.61451886859615-0.0145188685961489
506.96.841643975631480.0583560243685238
517.77.384505916824480.315494083175516
5288.05631485115922-0.0563148511592188
5387.823692109276050.176307890723949
547.77.73007440404209-0.0300744040420928
557.37.277405916478810.0225940835211909
567.47.121980316741860.278019683258139
578.18.20386942387613-0.103869423876128







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.04390296264381760.08780592528763520.956097037356182
210.4909247970839790.9818495941679580.509075202916021
220.4479494169055840.8958988338111690.552050583094416
230.3398072934940110.6796145869880210.66019270650599
240.2318670325923040.4637340651846080.768132967407696
250.1720280072419880.3440560144839760.827971992758012
260.1415935073730160.2831870147460320.858406492626984
270.08250147241933530.1650029448386710.917498527580665
280.06102855548502330.1220571109700470.938971444514977
290.03294524905232010.06589049810464010.96705475094768
300.3025475909706910.6050951819413820.697452409029309
310.3625718381109190.7251436762218380.637428161889081
320.2879467437656460.5758934875312910.712053256234354
330.2909810151718170.5819620303436340.709018984828183
340.3021441423503570.6042882847007140.697855857649643
350.2926608074308240.5853216148616480.707339192569176
360.4219696666035360.8439393332070720.578030333396464
370.3928999663298950.785799932659790.607100033670105

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.0439029626438176 & 0.0878059252876352 & 0.956097037356182 \tabularnewline
21 & 0.490924797083979 & 0.981849594167958 & 0.509075202916021 \tabularnewline
22 & 0.447949416905584 & 0.895898833811169 & 0.552050583094416 \tabularnewline
23 & 0.339807293494011 & 0.679614586988021 & 0.66019270650599 \tabularnewline
24 & 0.231867032592304 & 0.463734065184608 & 0.768132967407696 \tabularnewline
25 & 0.172028007241988 & 0.344056014483976 & 0.827971992758012 \tabularnewline
26 & 0.141593507373016 & 0.283187014746032 & 0.858406492626984 \tabularnewline
27 & 0.0825014724193353 & 0.165002944838671 & 0.917498527580665 \tabularnewline
28 & 0.0610285554850233 & 0.122057110970047 & 0.938971444514977 \tabularnewline
29 & 0.0329452490523201 & 0.0658904981046401 & 0.96705475094768 \tabularnewline
30 & 0.302547590970691 & 0.605095181941382 & 0.697452409029309 \tabularnewline
31 & 0.362571838110919 & 0.725143676221838 & 0.637428161889081 \tabularnewline
32 & 0.287946743765646 & 0.575893487531291 & 0.712053256234354 \tabularnewline
33 & 0.290981015171817 & 0.581962030343634 & 0.709018984828183 \tabularnewline
34 & 0.302144142350357 & 0.604288284700714 & 0.697855857649643 \tabularnewline
35 & 0.292660807430824 & 0.585321614861648 & 0.707339192569176 \tabularnewline
36 & 0.421969666603536 & 0.843939333207072 & 0.578030333396464 \tabularnewline
37 & 0.392899966329895 & 0.78579993265979 & 0.607100033670105 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68913&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.0439029626438176[/C][C]0.0878059252876352[/C][C]0.956097037356182[/C][/ROW]
[ROW][C]21[/C][C]0.490924797083979[/C][C]0.981849594167958[/C][C]0.509075202916021[/C][/ROW]
[ROW][C]22[/C][C]0.447949416905584[/C][C]0.895898833811169[/C][C]0.552050583094416[/C][/ROW]
[ROW][C]23[/C][C]0.339807293494011[/C][C]0.679614586988021[/C][C]0.66019270650599[/C][/ROW]
[ROW][C]24[/C][C]0.231867032592304[/C][C]0.463734065184608[/C][C]0.768132967407696[/C][/ROW]
[ROW][C]25[/C][C]0.172028007241988[/C][C]0.344056014483976[/C][C]0.827971992758012[/C][/ROW]
[ROW][C]26[/C][C]0.141593507373016[/C][C]0.283187014746032[/C][C]0.858406492626984[/C][/ROW]
[ROW][C]27[/C][C]0.0825014724193353[/C][C]0.165002944838671[/C][C]0.917498527580665[/C][/ROW]
[ROW][C]28[/C][C]0.0610285554850233[/C][C]0.122057110970047[/C][C]0.938971444514977[/C][/ROW]
[ROW][C]29[/C][C]0.0329452490523201[/C][C]0.0658904981046401[/C][C]0.96705475094768[/C][/ROW]
[ROW][C]30[/C][C]0.302547590970691[/C][C]0.605095181941382[/C][C]0.697452409029309[/C][/ROW]
[ROW][C]31[/C][C]0.362571838110919[/C][C]0.725143676221838[/C][C]0.637428161889081[/C][/ROW]
[ROW][C]32[/C][C]0.287946743765646[/C][C]0.575893487531291[/C][C]0.712053256234354[/C][/ROW]
[ROW][C]33[/C][C]0.290981015171817[/C][C]0.581962030343634[/C][C]0.709018984828183[/C][/ROW]
[ROW][C]34[/C][C]0.302144142350357[/C][C]0.604288284700714[/C][C]0.697855857649643[/C][/ROW]
[ROW][C]35[/C][C]0.292660807430824[/C][C]0.585321614861648[/C][C]0.707339192569176[/C][/ROW]
[ROW][C]36[/C][C]0.421969666603536[/C][C]0.843939333207072[/C][C]0.578030333396464[/C][/ROW]
[ROW][C]37[/C][C]0.392899966329895[/C][C]0.78579993265979[/C][C]0.607100033670105[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68913&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68913&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.04390296264381760.08780592528763520.956097037356182
210.4909247970839790.9818495941679580.509075202916021
220.4479494169055840.8958988338111690.552050583094416
230.3398072934940110.6796145869880210.66019270650599
240.2318670325923040.4637340651846080.768132967407696
250.1720280072419880.3440560144839760.827971992758012
260.1415935073730160.2831870147460320.858406492626984
270.08250147241933530.1650029448386710.917498527580665
280.06102855548502330.1220571109700470.938971444514977
290.03294524905232010.06589049810464010.96705475094768
300.3025475909706910.6050951819413820.697452409029309
310.3625718381109190.7251436762218380.637428161889081
320.2879467437656460.5758934875312910.712053256234354
330.2909810151718170.5819620303436340.709018984828183
340.3021441423503570.6042882847007140.697855857649643
350.2926608074308240.5853216148616480.707339192569176
360.4219696666035360.8439393332070720.578030333396464
370.3928999663298950.785799932659790.607100033670105







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.111111111111111NOK

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

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



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