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, 19 Nov 2009 08:57:39 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/19/t12586463451g737s4y8huzjz8.htm/, Retrieved Fri, 19 Apr 2024 15:13:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57791, Retrieved Fri, 19 Apr 2024 15:13:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
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] [Multiple Regression] [2009-11-19 15:57:39] [d45d8d97b86162be82506c3c0ea6e4a6] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.4	1.9	1.5	-0.7	-0.7	-2.9	-0.8	1
1	1.6	3	1.5	-0.7	-0.7	-2.9	-0.8
-0.8	0	3.2	3	1.5	-0.7	-0.7	-2.9
-2.9	-1.3	3.1	3.2	3	1.5	-0.7	-0.7
-0.7	-0.4	3.9	3.1	3.2	3	1.5	-0.7
-0.7	-0.3	1	3.9	3.1	3.2	3	1.5
1.5	1.4	1.3	1	3.9	3.1	3.2	3
3	2.6	0.8	1.3	1	3.9	3.1	3.2
3.2	2.8	1.2	0.8	1.3	1	3.9	3.1
3.1	2.6	2.9	1.2	0.8	1.3	1	3.9
3.9	3.4	3.9	2.9	1.2	0.8	1.3	1
1	1.7	4.5	3.9	2.9	1.2	0.8	1.3
1.3	1.2	4.5	4.5	3.9	2.9	1.2	0.8
0.8	0	3.3	4.5	4.5	3.9	2.9	1.2
1.2	0	2	3.3	4.5	4.5	3.9	2.9
2.9	1.6	1.5	2	3.3	4.5	4.5	3.9
3.9	2.5	1	1.5	2	3.3	4.5	4.5
4.5	3.2	2.1	1	1.5	2	3.3	4.5
4.5	3.4	3	2.1	1	1.5	2	3.3
3.3	2.3	4	3	2.1	1	1.5	2
2	1.9	5.1	4	3	2.1	1	1.5
1.5	1.7	4.5	5.1	4	3	2.1	1
1	1.9	4.2	4.5	5.1	4	3	2.1
2.1	3.3	3.3	4.2	4.5	5.1	4	3
3	3.8	2.7	3.3	4.2	4.5	5.1	4
4	4.4	1.8	2.7	3.3	4.2	4.5	5.1
5.1	4.5	1.4	1.8	2.7	3.3	4.2	4.5
4.5	3.5	0.5	1.4	1.8	2.7	3.3	4.2
4.2	3	-0.4	0.5	1.4	1.8	2.7	3.3
3.3	2.8	0.8	-0.4	0.5	1.4	1.8	2.7
2.7	2.9	0.7	0.8	-0.4	0.5	1.4	1.8
1.8	2.6	1.9	0.7	0.8	-0.4	0.5	1.4
1.4	2.1	2	1.9	0.7	0.8	-0.4	0.5
0.5	1.5	1.1	2	1.9	0.7	0.8	-0.4
-0.4	1.1	0.9	1.1	2	1.9	0.7	0.8
0.8	1.5	0.4	0.9	1.1	2	1.9	0.7
0.7	1.7	0.7	0.4	0.9	1.1	2	1.9
1.9	2.3	2.1	0.7	0.4	0.9	1.1	2
2	2.3	2.8	2.1	0.7	0.4	0.9	1.1
1.1	1.9	3.9	2.8	2.1	0.7	0.4	0.9
0.9	2	3.5	3.9	2.8	2.1	0.7	0.4
0.4	1.6	2	3.5	3.9	2.8	2.1	0.7
0.7	1.2	2	2	3.5	3.9	2.8	2.1
2.1	1.9	1.5	2	2	3.5	3.9	2.8
2.8	2.1	2.5	1.5	2	2	3.5	3.9
3.9	2.4	3.1	2.5	1.5	2	2	3.5
3.5	2.9	2.7	3.1	2.5	1.5	2	2
2	2.5	2.8	2.7	3.1	2.5	1.5	2
2	2.3	2.5	2.8	2.7	3.1	2.5	1.5
1.5	2.5	3	2.5	2.8	2.7	3.1	2.5
2.5	2.6	3.2	3	2.5	2.8	2.7	3.1
3.1	2.4	2.8	3.2	3	2.5	2.8	2.7
2.7	2.5	2.4	2.8	3.2	3	2.5	2.8
2.8	2.1	2	2.4	2.8	3.2	3	2.5
2.5	2.2	1.8	2	2.4	2.8	3.2	3
3	2.7	1.1	1.8	2	2.4	2.8	3.2
3.2	3	-1.5	1.1	1.8	2	2.4	2.8
2.8	3.2	-3.7	-1.5	1.1	1.8	2	2.4




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57791&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]6 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=57791&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57791&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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
bbp[t] = -0.760450316872803 + 0.774258904965288dnst[t] + 0.0362963516334644y1[t] + 0.219062946263493y2[t] -0.323223334732678y3[t] -0.0953145983971215y4[t] + 0.157222725472913y5[t] + 0.427847039627963y6[t] + 0.0931224218556833M1[t] + 0.164204507217995M2[t] + 0.621519667509817M3[t] + 0.538780505278127M4[t] + 0.811416463269424M5[t] + 0.545048444379198M6[t] + 0.510790444622955M7[t] + 0.465193494862052M8[t] + 0.481376617769967M9[t] + 0.660971252550343M10[t] + 0.500162621073792M11[t] -0.00411827080944167t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
bbp[t] =  -0.760450316872803 +  0.774258904965288dnst[t] +  0.0362963516334644y1[t] +  0.219062946263493y2[t] -0.323223334732678y3[t] -0.0953145983971215y4[t] +  0.157222725472913y5[t] +  0.427847039627963y6[t] +  0.0931224218556833M1[t] +  0.164204507217995M2[t] +  0.621519667509817M3[t] +  0.538780505278127M4[t] +  0.811416463269424M5[t] +  0.545048444379198M6[t] +  0.510790444622955M7[t] +  0.465193494862052M8[t] +  0.481376617769967M9[t] +  0.660971252550343M10[t] +  0.500162621073792M11[t] -0.00411827080944167t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57791&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]bbp[t] =  -0.760450316872803 +  0.774258904965288dnst[t] +  0.0362963516334644y1[t] +  0.219062946263493y2[t] -0.323223334732678y3[t] -0.0953145983971215y4[t] +  0.157222725472913y5[t] +  0.427847039627963y6[t] +  0.0931224218556833M1[t] +  0.164204507217995M2[t] +  0.621519667509817M3[t] +  0.538780505278127M4[t] +  0.811416463269424M5[t] +  0.545048444379198M6[t] +  0.510790444622955M7[t] +  0.465193494862052M8[t] +  0.481376617769967M9[t] +  0.660971252550343M10[t] +  0.500162621073792M11[t] -0.00411827080944167t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57791&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57791&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
bbp[t] = -0.760450316872803 + 0.774258904965288dnst[t] + 0.0362963516334644y1[t] + 0.219062946263493y2[t] -0.323223334732678y3[t] -0.0953145983971215y4[t] + 0.157222725472913y5[t] + 0.427847039627963y6[t] + 0.0931224218556833M1[t] + 0.164204507217995M2[t] + 0.621519667509817M3[t] + 0.538780505278127M4[t] + 0.811416463269424M5[t] + 0.545048444379198M6[t] + 0.510790444622955M7[t] + 0.465193494862052M8[t] + 0.481376617769967M9[t] + 0.660971252550343M10[t] + 0.500162621073792M11[t] -0.00411827080944167t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-0.7604503168728030.474901-1.60130.1175960.058798
dnst0.7742589049652880.1322885.85281e-060
y10.03629635163346440.1184060.30650.7608660.380433
y20.2190629462634930.178541.2270.2273820.113691
y3-0.3232233347326780.164078-1.96990.0561660.028083
y4-0.09531459839712150.15149-0.62920.5329960.266498
y50.1572227254729130.1529971.02760.3106260.155313
y60.4278470396279630.1435272.98090.0049910.002496
M10.09312242185568330.4370420.21310.8324080.416204
M20.1642045072179950.4329910.37920.7066250.353313
M30.6215196675098170.4402061.41190.1661210.08306
M40.5387805052781270.4455651.20920.2340530.117026
M50.8114164632694240.4328631.87450.0685590.03428
M60.5450484443791980.44631.22130.229510.114755
M70.5107904446229550.4432341.15240.2563480.128174
M80.4651934948620520.4478871.03860.3055360.152768
M90.4813766177699670.4486551.07290.2900680.145034
M100.6609712525503430.4422651.49450.14330.07165
M110.5001626210737920.4506041.110.2739810.136991
t-0.004118270809441670.005713-0.72090.4754110.237706

\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.760450316872803 & 0.474901 & -1.6013 & 0.117596 & 0.058798 \tabularnewline
dnst & 0.774258904965288 & 0.132288 & 5.8528 & 1e-06 & 0 \tabularnewline
y1 & 0.0362963516334644 & 0.118406 & 0.3065 & 0.760866 & 0.380433 \tabularnewline
y2 & 0.219062946263493 & 0.17854 & 1.227 & 0.227382 & 0.113691 \tabularnewline
y3 & -0.323223334732678 & 0.164078 & -1.9699 & 0.056166 & 0.028083 \tabularnewline
y4 & -0.0953145983971215 & 0.15149 & -0.6292 & 0.532996 & 0.266498 \tabularnewline
y5 & 0.157222725472913 & 0.152997 & 1.0276 & 0.310626 & 0.155313 \tabularnewline
y6 & 0.427847039627963 & 0.143527 & 2.9809 & 0.004991 & 0.002496 \tabularnewline
M1 & 0.0931224218556833 & 0.437042 & 0.2131 & 0.832408 & 0.416204 \tabularnewline
M2 & 0.164204507217995 & 0.432991 & 0.3792 & 0.706625 & 0.353313 \tabularnewline
M3 & 0.621519667509817 & 0.440206 & 1.4119 & 0.166121 & 0.08306 \tabularnewline
M4 & 0.538780505278127 & 0.445565 & 1.2092 & 0.234053 & 0.117026 \tabularnewline
M5 & 0.811416463269424 & 0.432863 & 1.8745 & 0.068559 & 0.03428 \tabularnewline
M6 & 0.545048444379198 & 0.4463 & 1.2213 & 0.22951 & 0.114755 \tabularnewline
M7 & 0.510790444622955 & 0.443234 & 1.1524 & 0.256348 & 0.128174 \tabularnewline
M8 & 0.465193494862052 & 0.447887 & 1.0386 & 0.305536 & 0.152768 \tabularnewline
M9 & 0.481376617769967 & 0.448655 & 1.0729 & 0.290068 & 0.145034 \tabularnewline
M10 & 0.660971252550343 & 0.442265 & 1.4945 & 0.1433 & 0.07165 \tabularnewline
M11 & 0.500162621073792 & 0.450604 & 1.11 & 0.273981 & 0.136991 \tabularnewline
t & -0.00411827080944167 & 0.005713 & -0.7209 & 0.475411 & 0.237706 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57791&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.760450316872803[/C][C]0.474901[/C][C]-1.6013[/C][C]0.117596[/C][C]0.058798[/C][/ROW]
[ROW][C]dnst[/C][C]0.774258904965288[/C][C]0.132288[/C][C]5.8528[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]y1[/C][C]0.0362963516334644[/C][C]0.118406[/C][C]0.3065[/C][C]0.760866[/C][C]0.380433[/C][/ROW]
[ROW][C]y2[/C][C]0.219062946263493[/C][C]0.17854[/C][C]1.227[/C][C]0.227382[/C][C]0.113691[/C][/ROW]
[ROW][C]y3[/C][C]-0.323223334732678[/C][C]0.164078[/C][C]-1.9699[/C][C]0.056166[/C][C]0.028083[/C][/ROW]
[ROW][C]y4[/C][C]-0.0953145983971215[/C][C]0.15149[/C][C]-0.6292[/C][C]0.532996[/C][C]0.266498[/C][/ROW]
[ROW][C]y5[/C][C]0.157222725472913[/C][C]0.152997[/C][C]1.0276[/C][C]0.310626[/C][C]0.155313[/C][/ROW]
[ROW][C]y6[/C][C]0.427847039627963[/C][C]0.143527[/C][C]2.9809[/C][C]0.004991[/C][C]0.002496[/C][/ROW]
[ROW][C]M1[/C][C]0.0931224218556833[/C][C]0.437042[/C][C]0.2131[/C][C]0.832408[/C][C]0.416204[/C][/ROW]
[ROW][C]M2[/C][C]0.164204507217995[/C][C]0.432991[/C][C]0.3792[/C][C]0.706625[/C][C]0.353313[/C][/ROW]
[ROW][C]M3[/C][C]0.621519667509817[/C][C]0.440206[/C][C]1.4119[/C][C]0.166121[/C][C]0.08306[/C][/ROW]
[ROW][C]M4[/C][C]0.538780505278127[/C][C]0.445565[/C][C]1.2092[/C][C]0.234053[/C][C]0.117026[/C][/ROW]
[ROW][C]M5[/C][C]0.811416463269424[/C][C]0.432863[/C][C]1.8745[/C][C]0.068559[/C][C]0.03428[/C][/ROW]
[ROW][C]M6[/C][C]0.545048444379198[/C][C]0.4463[/C][C]1.2213[/C][C]0.22951[/C][C]0.114755[/C][/ROW]
[ROW][C]M7[/C][C]0.510790444622955[/C][C]0.443234[/C][C]1.1524[/C][C]0.256348[/C][C]0.128174[/C][/ROW]
[ROW][C]M8[/C][C]0.465193494862052[/C][C]0.447887[/C][C]1.0386[/C][C]0.305536[/C][C]0.152768[/C][/ROW]
[ROW][C]M9[/C][C]0.481376617769967[/C][C]0.448655[/C][C]1.0729[/C][C]0.290068[/C][C]0.145034[/C][/ROW]
[ROW][C]M10[/C][C]0.660971252550343[/C][C]0.442265[/C][C]1.4945[/C][C]0.1433[/C][C]0.07165[/C][/ROW]
[ROW][C]M11[/C][C]0.500162621073792[/C][C]0.450604[/C][C]1.11[/C][C]0.273981[/C][C]0.136991[/C][/ROW]
[ROW][C]t[/C][C]-0.00411827080944167[/C][C]0.005713[/C][C]-0.7209[/C][C]0.475411[/C][C]0.237706[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57791&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57791&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.7604503168728030.474901-1.60130.1175960.058798
dnst0.7742589049652880.1322885.85281e-060
y10.03629635163346440.1184060.30650.7608660.380433
y20.2190629462634930.178541.2270.2273820.113691
y3-0.3232233347326780.164078-1.96990.0561660.028083
y4-0.09531459839712150.15149-0.62920.5329960.266498
y50.1572227254729130.1529971.02760.3106260.155313
y60.4278470396279630.1435272.98090.0049910.002496
M10.09312242185568330.4370420.21310.8324080.416204
M20.1642045072179950.4329910.37920.7066250.353313
M30.6215196675098170.4402061.41190.1661210.08306
M40.5387805052781270.4455651.20920.2340530.117026
M50.8114164632694240.4328631.87450.0685590.03428
M60.5450484443791980.44631.22130.229510.114755
M70.5107904446229550.4432341.15240.2563480.128174
M80.4651934948620520.4478871.03860.3055360.152768
M90.4813766177699670.4486551.07290.2900680.145034
M100.6609712525503430.4422651.49450.14330.07165
M110.5001626210737920.4506041.110.2739810.136991
t-0.004118270809441670.005713-0.72090.4754110.237706







Multiple Linear Regression - Regression Statistics
Multiple R0.942883982470664
R-squared0.889030204399739
Adjusted R-squared0.833545306599608
F-TEST (value)16.0229222662035
F-TEST (DF numerator)19
F-TEST (DF denominator)38
p-value1.10933484620546e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.631796656250199
Sum Squared Residuals15.1683465642594

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.942883982470664 \tabularnewline
R-squared & 0.889030204399739 \tabularnewline
Adjusted R-squared & 0.833545306599608 \tabularnewline
F-TEST (value) & 16.0229222662035 \tabularnewline
F-TEST (DF numerator) & 19 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 1.10933484620546e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.631796656250199 \tabularnewline
Sum Squared Residuals & 15.1683465642594 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57791&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.942883982470664[/C][/ROW]
[ROW][C]R-squared[/C][C]0.889030204399739[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.833545306599608[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]16.0229222662035[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]19[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]1.10933484620546e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.631796656250199[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15.1683465642594[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57791&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57791&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.942883982470664
R-squared0.889030204399739
Adjusted R-squared0.833545306599608
F-TEST (value)16.0229222662035
F-TEST (DF numerator)19
F-TEST (DF denominator)38
p-value1.10933484620546e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.631796656250199
Sum Squared Residuals15.1683465642594







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11.41.50548374758740-0.105483747587396
210.5665683885834490.433431611416551
3-0.8-1.146875403746910.346875403746912
4-2.9-1.95335009054473-0.94664990945527
5-0.7-0.8425951707155030.142595170715503
6-0.70.224692356539836-0.924692356539836
71.51.302330482331150.197669517668852
833.16023978316684-0.160239783166836
93.23.49458229512739-0.294582295127388
103.13.68388487006568-0.583884870065677
113.93.271846820059590.628153179940412
1211.15430378772647-0.154303787726467
131.30.3513236724155600.94867632758444
140.8-0.4052099710316641.20520997103166
151.20.5653000596131970.634699940386803
162.92.324375545148180.575624454851822
173.93.95332267485612-0.0533226748561192
184.54.252065507012320.247934492987681
194.54.133639950696210.366360049303791
203.32.522992054674460.777007945325538
2121.796060335800440.203939664199558
221.51.58589135360422-0.0858913536042175
2311.59476148897646-0.594761488976461
242.12.70743046743632-0.607430467436317
2533.71957740545422-0.719577405454224
2644.78278556784361-0.782785567843612
275.15.077575253510360.0224247464896440
284.54.174402216012090.325597783987906
294.23.561643584105610.63835641589439
303.32.913522647651760.38647735234824
312.73.14055088189794-0.440550881897936
321.82.26548318527320-0.465483185273203
331.41.54830578237450-0.148305782374504
340.50.673734774585324-0.173734774585324
35-0.40.345682711805831-0.74568271180583
360.80.5163967248636780.283603275136322
370.71.34117661486606-0.641176614866062
381.92.07118838664694-0.17118838664694
3922.39066426506064-0.390664265060643
401.11.54208550040772-0.442085500407717
410.91.58802630408160-0.688026304081604
420.40.791966786906765-0.391966786906765
430.70.848777573926151-0.148777573926151
442.12.31829417823242-0.218294178232419
452.82.96269024082294-0.162690240822945
463.93.365923796832820.53407620316718
473.52.787708979158120.71229102084188
4821.521869019973540.478130980026464
4921.482438559676760.51756144032324
501.52.18466762795766-0.684667627957663
512.53.11333582556272-0.613335825562715
523.12.612486828976740.487513171023258
532.72.73960260767217-0.0396026076721690
542.82.117752701889320.682247298110681
552.52.474701111148560.0252988888514431
5632.932990798653080.0670092013469196
573.22.798361345874720.401638654125278
582.82.490565204911960.309434795088039

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1.4 & 1.50548374758740 & -0.105483747587396 \tabularnewline
2 & 1 & 0.566568388583449 & 0.433431611416551 \tabularnewline
3 & -0.8 & -1.14687540374691 & 0.346875403746912 \tabularnewline
4 & -2.9 & -1.95335009054473 & -0.94664990945527 \tabularnewline
5 & -0.7 & -0.842595170715503 & 0.142595170715503 \tabularnewline
6 & -0.7 & 0.224692356539836 & -0.924692356539836 \tabularnewline
7 & 1.5 & 1.30233048233115 & 0.197669517668852 \tabularnewline
8 & 3 & 3.16023978316684 & -0.160239783166836 \tabularnewline
9 & 3.2 & 3.49458229512739 & -0.294582295127388 \tabularnewline
10 & 3.1 & 3.68388487006568 & -0.583884870065677 \tabularnewline
11 & 3.9 & 3.27184682005959 & 0.628153179940412 \tabularnewline
12 & 1 & 1.15430378772647 & -0.154303787726467 \tabularnewline
13 & 1.3 & 0.351323672415560 & 0.94867632758444 \tabularnewline
14 & 0.8 & -0.405209971031664 & 1.20520997103166 \tabularnewline
15 & 1.2 & 0.565300059613197 & 0.634699940386803 \tabularnewline
16 & 2.9 & 2.32437554514818 & 0.575624454851822 \tabularnewline
17 & 3.9 & 3.95332267485612 & -0.0533226748561192 \tabularnewline
18 & 4.5 & 4.25206550701232 & 0.247934492987681 \tabularnewline
19 & 4.5 & 4.13363995069621 & 0.366360049303791 \tabularnewline
20 & 3.3 & 2.52299205467446 & 0.777007945325538 \tabularnewline
21 & 2 & 1.79606033580044 & 0.203939664199558 \tabularnewline
22 & 1.5 & 1.58589135360422 & -0.0858913536042175 \tabularnewline
23 & 1 & 1.59476148897646 & -0.594761488976461 \tabularnewline
24 & 2.1 & 2.70743046743632 & -0.607430467436317 \tabularnewline
25 & 3 & 3.71957740545422 & -0.719577405454224 \tabularnewline
26 & 4 & 4.78278556784361 & -0.782785567843612 \tabularnewline
27 & 5.1 & 5.07757525351036 & 0.0224247464896440 \tabularnewline
28 & 4.5 & 4.17440221601209 & 0.325597783987906 \tabularnewline
29 & 4.2 & 3.56164358410561 & 0.63835641589439 \tabularnewline
30 & 3.3 & 2.91352264765176 & 0.38647735234824 \tabularnewline
31 & 2.7 & 3.14055088189794 & -0.440550881897936 \tabularnewline
32 & 1.8 & 2.26548318527320 & -0.465483185273203 \tabularnewline
33 & 1.4 & 1.54830578237450 & -0.148305782374504 \tabularnewline
34 & 0.5 & 0.673734774585324 & -0.173734774585324 \tabularnewline
35 & -0.4 & 0.345682711805831 & -0.74568271180583 \tabularnewline
36 & 0.8 & 0.516396724863678 & 0.283603275136322 \tabularnewline
37 & 0.7 & 1.34117661486606 & -0.641176614866062 \tabularnewline
38 & 1.9 & 2.07118838664694 & -0.17118838664694 \tabularnewline
39 & 2 & 2.39066426506064 & -0.390664265060643 \tabularnewline
40 & 1.1 & 1.54208550040772 & -0.442085500407717 \tabularnewline
41 & 0.9 & 1.58802630408160 & -0.688026304081604 \tabularnewline
42 & 0.4 & 0.791966786906765 & -0.391966786906765 \tabularnewline
43 & 0.7 & 0.848777573926151 & -0.148777573926151 \tabularnewline
44 & 2.1 & 2.31829417823242 & -0.218294178232419 \tabularnewline
45 & 2.8 & 2.96269024082294 & -0.162690240822945 \tabularnewline
46 & 3.9 & 3.36592379683282 & 0.53407620316718 \tabularnewline
47 & 3.5 & 2.78770897915812 & 0.71229102084188 \tabularnewline
48 & 2 & 1.52186901997354 & 0.478130980026464 \tabularnewline
49 & 2 & 1.48243855967676 & 0.51756144032324 \tabularnewline
50 & 1.5 & 2.18466762795766 & -0.684667627957663 \tabularnewline
51 & 2.5 & 3.11333582556272 & -0.613335825562715 \tabularnewline
52 & 3.1 & 2.61248682897674 & 0.487513171023258 \tabularnewline
53 & 2.7 & 2.73960260767217 & -0.0396026076721690 \tabularnewline
54 & 2.8 & 2.11775270188932 & 0.682247298110681 \tabularnewline
55 & 2.5 & 2.47470111114856 & 0.0252988888514431 \tabularnewline
56 & 3 & 2.93299079865308 & 0.0670092013469196 \tabularnewline
57 & 3.2 & 2.79836134587472 & 0.401638654125278 \tabularnewline
58 & 2.8 & 2.49056520491196 & 0.309434795088039 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57791&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]1.4[/C][C]1.50548374758740[/C][C]-0.105483747587396[/C][/ROW]
[ROW][C]2[/C][C]1[/C][C]0.566568388583449[/C][C]0.433431611416551[/C][/ROW]
[ROW][C]3[/C][C]-0.8[/C][C]-1.14687540374691[/C][C]0.346875403746912[/C][/ROW]
[ROW][C]4[/C][C]-2.9[/C][C]-1.95335009054473[/C][C]-0.94664990945527[/C][/ROW]
[ROW][C]5[/C][C]-0.7[/C][C]-0.842595170715503[/C][C]0.142595170715503[/C][/ROW]
[ROW][C]6[/C][C]-0.7[/C][C]0.224692356539836[/C][C]-0.924692356539836[/C][/ROW]
[ROW][C]7[/C][C]1.5[/C][C]1.30233048233115[/C][C]0.197669517668852[/C][/ROW]
[ROW][C]8[/C][C]3[/C][C]3.16023978316684[/C][C]-0.160239783166836[/C][/ROW]
[ROW][C]9[/C][C]3.2[/C][C]3.49458229512739[/C][C]-0.294582295127388[/C][/ROW]
[ROW][C]10[/C][C]3.1[/C][C]3.68388487006568[/C][C]-0.583884870065677[/C][/ROW]
[ROW][C]11[/C][C]3.9[/C][C]3.27184682005959[/C][C]0.628153179940412[/C][/ROW]
[ROW][C]12[/C][C]1[/C][C]1.15430378772647[/C][C]-0.154303787726467[/C][/ROW]
[ROW][C]13[/C][C]1.3[/C][C]0.351323672415560[/C][C]0.94867632758444[/C][/ROW]
[ROW][C]14[/C][C]0.8[/C][C]-0.405209971031664[/C][C]1.20520997103166[/C][/ROW]
[ROW][C]15[/C][C]1.2[/C][C]0.565300059613197[/C][C]0.634699940386803[/C][/ROW]
[ROW][C]16[/C][C]2.9[/C][C]2.32437554514818[/C][C]0.575624454851822[/C][/ROW]
[ROW][C]17[/C][C]3.9[/C][C]3.95332267485612[/C][C]-0.0533226748561192[/C][/ROW]
[ROW][C]18[/C][C]4.5[/C][C]4.25206550701232[/C][C]0.247934492987681[/C][/ROW]
[ROW][C]19[/C][C]4.5[/C][C]4.13363995069621[/C][C]0.366360049303791[/C][/ROW]
[ROW][C]20[/C][C]3.3[/C][C]2.52299205467446[/C][C]0.777007945325538[/C][/ROW]
[ROW][C]21[/C][C]2[/C][C]1.79606033580044[/C][C]0.203939664199558[/C][/ROW]
[ROW][C]22[/C][C]1.5[/C][C]1.58589135360422[/C][C]-0.0858913536042175[/C][/ROW]
[ROW][C]23[/C][C]1[/C][C]1.59476148897646[/C][C]-0.594761488976461[/C][/ROW]
[ROW][C]24[/C][C]2.1[/C][C]2.70743046743632[/C][C]-0.607430467436317[/C][/ROW]
[ROW][C]25[/C][C]3[/C][C]3.71957740545422[/C][C]-0.719577405454224[/C][/ROW]
[ROW][C]26[/C][C]4[/C][C]4.78278556784361[/C][C]-0.782785567843612[/C][/ROW]
[ROW][C]27[/C][C]5.1[/C][C]5.07757525351036[/C][C]0.0224247464896440[/C][/ROW]
[ROW][C]28[/C][C]4.5[/C][C]4.17440221601209[/C][C]0.325597783987906[/C][/ROW]
[ROW][C]29[/C][C]4.2[/C][C]3.56164358410561[/C][C]0.63835641589439[/C][/ROW]
[ROW][C]30[/C][C]3.3[/C][C]2.91352264765176[/C][C]0.38647735234824[/C][/ROW]
[ROW][C]31[/C][C]2.7[/C][C]3.14055088189794[/C][C]-0.440550881897936[/C][/ROW]
[ROW][C]32[/C][C]1.8[/C][C]2.26548318527320[/C][C]-0.465483185273203[/C][/ROW]
[ROW][C]33[/C][C]1.4[/C][C]1.54830578237450[/C][C]-0.148305782374504[/C][/ROW]
[ROW][C]34[/C][C]0.5[/C][C]0.673734774585324[/C][C]-0.173734774585324[/C][/ROW]
[ROW][C]35[/C][C]-0.4[/C][C]0.345682711805831[/C][C]-0.74568271180583[/C][/ROW]
[ROW][C]36[/C][C]0.8[/C][C]0.516396724863678[/C][C]0.283603275136322[/C][/ROW]
[ROW][C]37[/C][C]0.7[/C][C]1.34117661486606[/C][C]-0.641176614866062[/C][/ROW]
[ROW][C]38[/C][C]1.9[/C][C]2.07118838664694[/C][C]-0.17118838664694[/C][/ROW]
[ROW][C]39[/C][C]2[/C][C]2.39066426506064[/C][C]-0.390664265060643[/C][/ROW]
[ROW][C]40[/C][C]1.1[/C][C]1.54208550040772[/C][C]-0.442085500407717[/C][/ROW]
[ROW][C]41[/C][C]0.9[/C][C]1.58802630408160[/C][C]-0.688026304081604[/C][/ROW]
[ROW][C]42[/C][C]0.4[/C][C]0.791966786906765[/C][C]-0.391966786906765[/C][/ROW]
[ROW][C]43[/C][C]0.7[/C][C]0.848777573926151[/C][C]-0.148777573926151[/C][/ROW]
[ROW][C]44[/C][C]2.1[/C][C]2.31829417823242[/C][C]-0.218294178232419[/C][/ROW]
[ROW][C]45[/C][C]2.8[/C][C]2.96269024082294[/C][C]-0.162690240822945[/C][/ROW]
[ROW][C]46[/C][C]3.9[/C][C]3.36592379683282[/C][C]0.53407620316718[/C][/ROW]
[ROW][C]47[/C][C]3.5[/C][C]2.78770897915812[/C][C]0.71229102084188[/C][/ROW]
[ROW][C]48[/C][C]2[/C][C]1.52186901997354[/C][C]0.478130980026464[/C][/ROW]
[ROW][C]49[/C][C]2[/C][C]1.48243855967676[/C][C]0.51756144032324[/C][/ROW]
[ROW][C]50[/C][C]1.5[/C][C]2.18466762795766[/C][C]-0.684667627957663[/C][/ROW]
[ROW][C]51[/C][C]2.5[/C][C]3.11333582556272[/C][C]-0.613335825562715[/C][/ROW]
[ROW][C]52[/C][C]3.1[/C][C]2.61248682897674[/C][C]0.487513171023258[/C][/ROW]
[ROW][C]53[/C][C]2.7[/C][C]2.73960260767217[/C][C]-0.0396026076721690[/C][/ROW]
[ROW][C]54[/C][C]2.8[/C][C]2.11775270188932[/C][C]0.682247298110681[/C][/ROW]
[ROW][C]55[/C][C]2.5[/C][C]2.47470111114856[/C][C]0.0252988888514431[/C][/ROW]
[ROW][C]56[/C][C]3[/C][C]2.93299079865308[/C][C]0.0670092013469196[/C][/ROW]
[ROW][C]57[/C][C]3.2[/C][C]2.79836134587472[/C][C]0.401638654125278[/C][/ROW]
[ROW][C]58[/C][C]2.8[/C][C]2.49056520491196[/C][C]0.309434795088039[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57791&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57791&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
11.41.50548374758740-0.105483747587396
210.5665683885834490.433431611416551
3-0.8-1.146875403746910.346875403746912
4-2.9-1.95335009054473-0.94664990945527
5-0.7-0.8425951707155030.142595170715503
6-0.70.224692356539836-0.924692356539836
71.51.302330482331150.197669517668852
833.16023978316684-0.160239783166836
93.23.49458229512739-0.294582295127388
103.13.68388487006568-0.583884870065677
113.93.271846820059590.628153179940412
1211.15430378772647-0.154303787726467
131.30.3513236724155600.94867632758444
140.8-0.4052099710316641.20520997103166
151.20.5653000596131970.634699940386803
162.92.324375545148180.575624454851822
173.93.95332267485612-0.0533226748561192
184.54.252065507012320.247934492987681
194.54.133639950696210.366360049303791
203.32.522992054674460.777007945325538
2121.796060335800440.203939664199558
221.51.58589135360422-0.0858913536042175
2311.59476148897646-0.594761488976461
242.12.70743046743632-0.607430467436317
2533.71957740545422-0.719577405454224
2644.78278556784361-0.782785567843612
275.15.077575253510360.0224247464896440
284.54.174402216012090.325597783987906
294.23.561643584105610.63835641589439
303.32.913522647651760.38647735234824
312.73.14055088189794-0.440550881897936
321.82.26548318527320-0.465483185273203
331.41.54830578237450-0.148305782374504
340.50.673734774585324-0.173734774585324
35-0.40.345682711805831-0.74568271180583
360.80.5163967248636780.283603275136322
370.71.34117661486606-0.641176614866062
381.92.07118838664694-0.17118838664694
3922.39066426506064-0.390664265060643
401.11.54208550040772-0.442085500407717
410.91.58802630408160-0.688026304081604
420.40.791966786906765-0.391966786906765
430.70.848777573926151-0.148777573926151
442.12.31829417823242-0.218294178232419
452.82.96269024082294-0.162690240822945
463.93.365923796832820.53407620316718
473.52.787708979158120.71229102084188
4821.521869019973540.478130980026464
4921.482438559676760.51756144032324
501.52.18466762795766-0.684667627957663
512.53.11333582556272-0.613335825562715
523.12.612486828976740.487513171023258
532.72.73960260767217-0.0396026076721690
542.82.117752701889320.682247298110681
552.52.474701111148560.0252988888514431
5632.932990798653080.0670092013469196
573.22.798361345874720.401638654125278
582.82.490565204911960.309434795088039







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
230.4951011781509410.9902023563018830.504898821849059
240.392443550830160.784887101660320.60755644916984
250.9186739408843080.1626521182313850.0813260591156923
260.9386009989322040.1227980021355920.0613990010677959
270.906718618534160.1865627629316790.0932813814658394
280.9249679456753590.1500641086492820.0750320543246409
290.9600263064651540.0799473870696930.0399736935348465
300.9383289676478730.1233420647042540.0616710323521272
310.9626040373180860.07479192536382860.0373959626819143
320.9333234369230230.1333531261539530.0666765630769767
330.8758777913486840.2482444173026320.124122208651316
340.8775435231753740.2449129536492530.122456476824626
350.7566317685579780.4867364628840430.243368231442022

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
23 & 0.495101178150941 & 0.990202356301883 & 0.504898821849059 \tabularnewline
24 & 0.39244355083016 & 0.78488710166032 & 0.60755644916984 \tabularnewline
25 & 0.918673940884308 & 0.162652118231385 & 0.0813260591156923 \tabularnewline
26 & 0.938600998932204 & 0.122798002135592 & 0.0613990010677959 \tabularnewline
27 & 0.90671861853416 & 0.186562762931679 & 0.0932813814658394 \tabularnewline
28 & 0.924967945675359 & 0.150064108649282 & 0.0750320543246409 \tabularnewline
29 & 0.960026306465154 & 0.079947387069693 & 0.0399736935348465 \tabularnewline
30 & 0.938328967647873 & 0.123342064704254 & 0.0616710323521272 \tabularnewline
31 & 0.962604037318086 & 0.0747919253638286 & 0.0373959626819143 \tabularnewline
32 & 0.933323436923023 & 0.133353126153953 & 0.0666765630769767 \tabularnewline
33 & 0.875877791348684 & 0.248244417302632 & 0.124122208651316 \tabularnewline
34 & 0.877543523175374 & 0.244912953649253 & 0.122456476824626 \tabularnewline
35 & 0.756631768557978 & 0.486736462884043 & 0.243368231442022 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57791&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]23[/C][C]0.495101178150941[/C][C]0.990202356301883[/C][C]0.504898821849059[/C][/ROW]
[ROW][C]24[/C][C]0.39244355083016[/C][C]0.78488710166032[/C][C]0.60755644916984[/C][/ROW]
[ROW][C]25[/C][C]0.918673940884308[/C][C]0.162652118231385[/C][C]0.0813260591156923[/C][/ROW]
[ROW][C]26[/C][C]0.938600998932204[/C][C]0.122798002135592[/C][C]0.0613990010677959[/C][/ROW]
[ROW][C]27[/C][C]0.90671861853416[/C][C]0.186562762931679[/C][C]0.0932813814658394[/C][/ROW]
[ROW][C]28[/C][C]0.924967945675359[/C][C]0.150064108649282[/C][C]0.0750320543246409[/C][/ROW]
[ROW][C]29[/C][C]0.960026306465154[/C][C]0.079947387069693[/C][C]0.0399736935348465[/C][/ROW]
[ROW][C]30[/C][C]0.938328967647873[/C][C]0.123342064704254[/C][C]0.0616710323521272[/C][/ROW]
[ROW][C]31[/C][C]0.962604037318086[/C][C]0.0747919253638286[/C][C]0.0373959626819143[/C][/ROW]
[ROW][C]32[/C][C]0.933323436923023[/C][C]0.133353126153953[/C][C]0.0666765630769767[/C][/ROW]
[ROW][C]33[/C][C]0.875877791348684[/C][C]0.248244417302632[/C][C]0.124122208651316[/C][/ROW]
[ROW][C]34[/C][C]0.877543523175374[/C][C]0.244912953649253[/C][C]0.122456476824626[/C][/ROW]
[ROW][C]35[/C][C]0.756631768557978[/C][C]0.486736462884043[/C][C]0.243368231442022[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57791&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57791&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
230.4951011781509410.9902023563018830.504898821849059
240.392443550830160.784887101660320.60755644916984
250.9186739408843080.1626521182313850.0813260591156923
260.9386009989322040.1227980021355920.0613990010677959
270.906718618534160.1865627629316790.0932813814658394
280.9249679456753590.1500641086492820.0750320543246409
290.9600263064651540.0799473870696930.0399736935348465
300.9383289676478730.1233420647042540.0616710323521272
310.9626040373180860.07479192536382860.0373959626819143
320.9333234369230230.1333531261539530.0666765630769767
330.8758777913486840.2482444173026320.124122208651316
340.8775435231753740.2449129536492530.122456476824626
350.7566317685579780.4867364628840430.243368231442022







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

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

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



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