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 02:34:31 -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/t12586234673sdw9pj0iw6za36.htm/, Retrieved Thu, 18 Apr 2024 08:50:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57671, Retrieved Thu, 18 Apr 2024 08:50:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact183
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] [Multivariate regr...] [2009-11-19 09:34:31] [bef26de542bed2eafc60fe4615b06e47] [Current]
-    D        [Multiple Regression] [] [2010-12-07 12:59:34] [f47feae0308dca73181bb669fbad1c56]
- R  D          [Multiple Regression] [] [2011-11-26 18:29:52] [74be16979710d4c4e7c6647856088456]
- R P             [Multiple Regression] [] [2011-11-27 16:56:17] [3931071255a6f7f4a767409781cc5f7d]
Feedback Forum

Post a new message
Dataseries X:
121.6	0	97.2	111.5	114.0	118.8
118.8	0	102.5	97.2	111.5	114.0
114.0	1	113.4	102.5	97.2	111.5
111.5	1	109.8	113.4	102.5	97.2
97.2	1	104.9	109.8	113.4	102.5
102.5	1	126.1	104.9	109.8	113.4
113.4	1	80.0	126.1	104.9	109.8
109.8	1	96.8	80.0	126.1	104.9
104.9	1	117.2	96.8	80.0	126.1
126.1	1	112.3	117.2	96.8	80.0
80.0	1	117.3	112.3	117.2	96.8
96.8	1	111.1	117.3	112.3	117.2
117.2	1	102.2	111.1	117.3	112.3
112.3	1	104.3	102.2	111.1	117.3
117.3	1	122.9	104.3	102.2	111.1
111.1	0	107.6	122.9	104.3	102.2
102.2	0	121.3	107.6	122.9	104.3
104.3	0	131.5	121.3	107.6	122.9
122.9	0	89.0	131.5	121.3	107.6
107.6	0	104.4	89.0	131.5	121.3
121.3	0	128.9	104.4	89.0	131.5
131.5	0	135.9	128.9	104.4	89.0
89.0	0	133.3	135.9	128.9	104.4
104.4	0	121.3	133.3	135.9	128.9
128.9	0	120.5	121.3	133.3	135.9
135.9	0	120.4	120.5	121.3	133.3
133.3	0	137.9	120.4	120.5	121.3
121.3	0	126.1	137.9	120.4	120.5
120.5	0	133.2	126.1	137.9	120.4
120.4	0	151.1	133.2	126.1	137.9
137.9	0	105.0	151.1	133.2	126.1
126.1	0	119.0	105.0	151.1	133.2
133.2	0	140.4	119.0	105.0	151.1
151.1	0	156.6	140.4	119.0	105.0
105.0	0	137.1	156.6	140.4	119.0
119.0	0	122.7	137.1	156.6	140.4
140.4	0	125.8	122.7	137.1	156.6
156.6	0	139.3	125.8	122.7	137.1
137.1	0	134.9	139.3	125.8	122.7
122.7	0	149.2	134.9	139.3	125.8
125.8	0	132.3	149.2	134.9	139.3
139.3	0	149.0	132.3	149.2	134.9
134.9	0	117.2	149.0	132.3	149.2
149.2	1	119.6	117.2	149.0	132.3
132.3	0	152.0	119.6	117.2	149.0
149.0	1	149.4	152.0	119.6	117.2
117.2	1	127.3	149.4	152.0	119.6
119.6	1	114.1	127.3	149.4	152.0
152.0	1	102.1	114.1	127.3	149.4
149.4	1	107.7	102.1	114.1	127.3
127.3	1	104.4	107.7	102.1	114.1
114.1	1	102.1	104.4	107.7	102.1
102.1	1	96.0	102.1	104.4	107.7
107.7	1	109.3	96.0	102.1	104.4
104.4	1	90.0	109.3	96.0	102.1
102.1	1	83.9	90.0	109.3	96.0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57671&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
X[t] = -14.5866928548540 + 3.81450091388516Y[t] -0.0614895038985489`y(t)`[t] + 0.298353875860903`y(t-1)`[t] + 0.443207090249879`y(t-2)`[t] + 0.182742933153958`y(t-3)`[t] + 32.2967210061925M1[t] + 42.8733727282386M2[t] + 36.7193713043985M3[t] + 23.9288546766903M4[t] + 13.7481929951856M5[t] + 20.4676144284120M6[t] + 22.442884965267M7[t] + 22.5990064410627M8[t] + 38.328605594057M9[t] + 48.7954535622456M10[t] -7.94034379372219M11[t] + 0.180699665271588t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  -14.5866928548540 +  3.81450091388516Y[t] -0.0614895038985489`y(t)`[t] +  0.298353875860903`y(t-1)`[t] +  0.443207090249879`y(t-2)`[t] +  0.182742933153958`y(t-3)`[t] +  32.2967210061925M1[t] +  42.8733727282386M2[t] +  36.7193713043985M3[t] +  23.9288546766903M4[t] +  13.7481929951856M5[t] +  20.4676144284120M6[t] +  22.442884965267M7[t] +  22.5990064410627M8[t] +  38.328605594057M9[t] +  48.7954535622456M10[t] -7.94034379372219M11[t] +  0.180699665271588t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57671&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  -14.5866928548540 +  3.81450091388516Y[t] -0.0614895038985489`y(t)`[t] +  0.298353875860903`y(t-1)`[t] +  0.443207090249879`y(t-2)`[t] +  0.182742933153958`y(t-3)`[t] +  32.2967210061925M1[t] +  42.8733727282386M2[t] +  36.7193713043985M3[t] +  23.9288546766903M4[t] +  13.7481929951856M5[t] +  20.4676144284120M6[t] +  22.442884965267M7[t] +  22.5990064410627M8[t] +  38.328605594057M9[t] +  48.7954535622456M10[t] -7.94034379372219M11[t] +  0.180699665271588t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57671&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57671&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
X[t] = -14.5866928548540 + 3.81450091388516Y[t] -0.0614895038985489`y(t)`[t] + 0.298353875860903`y(t-1)`[t] + 0.443207090249879`y(t-2)`[t] + 0.182742933153958`y(t-3)`[t] + 32.2967210061925M1[t] + 42.8733727282386M2[t] + 36.7193713043985M3[t] + 23.9288546766903M4[t] + 13.7481929951856M5[t] + 20.4676144284120M6[t] + 22.442884965267M7[t] + 22.5990064410627M8[t] + 38.328605594057M9[t] + 48.7954535622456M10[t] -7.94034379372219M11[t] + 0.180699665271588t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-14.586692854854014.154942-1.03050.3092890.154645
Y3.814500913885162.5977431.46840.1502280.075114
`y(t)`-0.06148950389854890.141793-0.43370.666990.333495
`y(t-1)`0.2983538758609030.1369862.1780.0356820.017841
`y(t-2)`0.4432070902498790.1428213.10320.0036040.001802
`y(t-3)`0.1827429331539580.1504111.2150.2318760.115938
M132.29672100619254.9068056.58200
M242.87337272823865.3002588.088900
M336.71937130439856.0634676.055800
M423.92885467669035.8531914.08820.0002170.000109
M513.74819299518565.1376562.6760.0109340.005467
M620.46761442841206.1862553.30860.0020590.001029
M722.4428849652675.6281033.98760.0002930.000146
M822.59900644106275.6412694.0060.0002770.000139
M938.3286055940578.7675074.37179.2e-054.6e-05
M1048.79545356224569.1773215.3175e-062e-06
M11-7.940343793722196.759368-1.17470.2474170.123708
t0.1806996652715880.0658542.74390.0092150.004607

\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) & -14.5866928548540 & 14.154942 & -1.0305 & 0.309289 & 0.154645 \tabularnewline
Y & 3.81450091388516 & 2.597743 & 1.4684 & 0.150228 & 0.075114 \tabularnewline
`y(t)` & -0.0614895038985489 & 0.141793 & -0.4337 & 0.66699 & 0.333495 \tabularnewline
`y(t-1)` & 0.298353875860903 & 0.136986 & 2.178 & 0.035682 & 0.017841 \tabularnewline
`y(t-2)` & 0.443207090249879 & 0.142821 & 3.1032 & 0.003604 & 0.001802 \tabularnewline
`y(t-3)` & 0.182742933153958 & 0.150411 & 1.215 & 0.231876 & 0.115938 \tabularnewline
M1 & 32.2967210061925 & 4.906805 & 6.582 & 0 & 0 \tabularnewline
M2 & 42.8733727282386 & 5.300258 & 8.0889 & 0 & 0 \tabularnewline
M3 & 36.7193713043985 & 6.063467 & 6.0558 & 0 & 0 \tabularnewline
M4 & 23.9288546766903 & 5.853191 & 4.0882 & 0.000217 & 0.000109 \tabularnewline
M5 & 13.7481929951856 & 5.137656 & 2.676 & 0.010934 & 0.005467 \tabularnewline
M6 & 20.4676144284120 & 6.186255 & 3.3086 & 0.002059 & 0.001029 \tabularnewline
M7 & 22.442884965267 & 5.628103 & 3.9876 & 0.000293 & 0.000146 \tabularnewline
M8 & 22.5990064410627 & 5.641269 & 4.006 & 0.000277 & 0.000139 \tabularnewline
M9 & 38.328605594057 & 8.767507 & 4.3717 & 9.2e-05 & 4.6e-05 \tabularnewline
M10 & 48.7954535622456 & 9.177321 & 5.317 & 5e-06 & 2e-06 \tabularnewline
M11 & -7.94034379372219 & 6.759368 & -1.1747 & 0.247417 & 0.123708 \tabularnewline
t & 0.180699665271588 & 0.065854 & 2.7439 & 0.009215 & 0.004607 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57671&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]-14.5866928548540[/C][C]14.154942[/C][C]-1.0305[/C][C]0.309289[/C][C]0.154645[/C][/ROW]
[ROW][C]Y[/C][C]3.81450091388516[/C][C]2.597743[/C][C]1.4684[/C][C]0.150228[/C][C]0.075114[/C][/ROW]
[ROW][C]`y(t)`[/C][C]-0.0614895038985489[/C][C]0.141793[/C][C]-0.4337[/C][C]0.66699[/C][C]0.333495[/C][/ROW]
[ROW][C]`y(t-1)`[/C][C]0.298353875860903[/C][C]0.136986[/C][C]2.178[/C][C]0.035682[/C][C]0.017841[/C][/ROW]
[ROW][C]`y(t-2)`[/C][C]0.443207090249879[/C][C]0.142821[/C][C]3.1032[/C][C]0.003604[/C][C]0.001802[/C][/ROW]
[ROW][C]`y(t-3)`[/C][C]0.182742933153958[/C][C]0.150411[/C][C]1.215[/C][C]0.231876[/C][C]0.115938[/C][/ROW]
[ROW][C]M1[/C][C]32.2967210061925[/C][C]4.906805[/C][C]6.582[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]42.8733727282386[/C][C]5.300258[/C][C]8.0889[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]36.7193713043985[/C][C]6.063467[/C][C]6.0558[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]23.9288546766903[/C][C]5.853191[/C][C]4.0882[/C][C]0.000217[/C][C]0.000109[/C][/ROW]
[ROW][C]M5[/C][C]13.7481929951856[/C][C]5.137656[/C][C]2.676[/C][C]0.010934[/C][C]0.005467[/C][/ROW]
[ROW][C]M6[/C][C]20.4676144284120[/C][C]6.186255[/C][C]3.3086[/C][C]0.002059[/C][C]0.001029[/C][/ROW]
[ROW][C]M7[/C][C]22.442884965267[/C][C]5.628103[/C][C]3.9876[/C][C]0.000293[/C][C]0.000146[/C][/ROW]
[ROW][C]M8[/C][C]22.5990064410627[/C][C]5.641269[/C][C]4.006[/C][C]0.000277[/C][C]0.000139[/C][/ROW]
[ROW][C]M9[/C][C]38.328605594057[/C][C]8.767507[/C][C]4.3717[/C][C]9.2e-05[/C][C]4.6e-05[/C][/ROW]
[ROW][C]M10[/C][C]48.7954535622456[/C][C]9.177321[/C][C]5.317[/C][C]5e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M11[/C][C]-7.94034379372219[/C][C]6.759368[/C][C]-1.1747[/C][C]0.247417[/C][C]0.123708[/C][/ROW]
[ROW][C]t[/C][C]0.180699665271588[/C][C]0.065854[/C][C]2.7439[/C][C]0.009215[/C][C]0.004607[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57671&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57671&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)-14.586692854854014.154942-1.03050.3092890.154645
Y3.814500913885162.5977431.46840.1502280.075114
`y(t)`-0.06148950389854890.141793-0.43370.666990.333495
`y(t-1)`0.2983538758609030.1369862.1780.0356820.017841
`y(t-2)`0.4432070902498790.1428213.10320.0036040.001802
`y(t-3)`0.1827429331539580.1504111.2150.2318760.115938
M132.29672100619254.9068056.58200
M242.87337272823865.3002588.088900
M336.71937130439856.0634676.055800
M423.92885467669035.8531914.08820.0002170.000109
M513.74819299518565.1376562.6760.0109340.005467
M620.46761442841206.1862553.30860.0020590.001029
M722.4428849652675.6281033.98760.0002930.000146
M822.59900644106275.6412694.0060.0002770.000139
M938.3286055940578.7675074.37179.2e-054.6e-05
M1048.79545356224569.1773215.3175e-062e-06
M11-7.940343793722196.759368-1.17470.2474170.123708
t0.1806996652715880.0658542.74390.0092150.004607







Multiple Linear Regression - Regression Statistics
Multiple R0.945747076096644
R-squared0.894437531945352
Adjusted R-squared0.847212217289326
F-TEST (value)18.9397897813945
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value1.54765089632747e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.55580806681484
Sum Squared Residuals1633.18753753875

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.945747076096644 \tabularnewline
R-squared & 0.894437531945352 \tabularnewline
Adjusted R-squared & 0.847212217289326 \tabularnewline
F-TEST (value) & 18.9397897813945 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 1.54765089632747e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.55580806681484 \tabularnewline
Sum Squared Residuals & 1633.18753753875 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57671&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.945747076096644[/C][/ROW]
[ROW][C]R-squared[/C][C]0.894437531945352[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.847212217289326[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]18.9397897813945[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]1.54765089632747e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.55580806681484[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1633.18753753875[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57671&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57671&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.945747076096644
R-squared0.894437531945352
Adjusted R-squared0.847212217289326
F-TEST (value)18.9397897813945
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value1.54765089632747e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.55580806681484
Sum Squared Residuals1633.18753753875







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1121.6117.4158739433384.18412605666175
2118.8121.595686730419-2.79568673041905
3114113.5532071118460.446792888153958
4111.5104.1525832445517.34741675544911
597.299.179340673761-1.97934067376104
6102.5103.710302744370-1.21030274436988
7113.4112.1964519428921.20354805710789
8109.8106.2466856821193.55331431788076
9104.9109.357247057662-4.45724705766225
10126.1125.4139422255880.686057774411688
118079.2009689417650.799031058234997
1296.890.75125779835066.04874220164938
13117.2123.246736102969-6.04673610296916
14112.3129.385440743158-17.0854407431585
15117.3117.817428062606-0.517428062606313
16111.1107.1876044714003.9123955286003
17102.2100.4078339893561.79216601064425
18104.3107.386160323223-3.0861603232233
19122.9118.4746142339874.42538576601275
20107.6112.208747795687-4.60874779568654
21121.3114.2348800392467.06511996075367
22131.5130.8204856348140.679514365186276
238990.1865526669731-1.18655266697309
24104.4105.849401589532-1.44940158953221
25128.9134.922629451212-6.02262945121231
26135.9139.653829979032-3.75382997903233
27133.3130.0271456446063.27285435539431
28121.3123.173582600190-1.87358260018965
29120.5116.9543191571763.54568084282432
30120.4122.840248319748-2.44024831974766
31137.9134.1618227590653.73817724093501
32126.1129.114558909231-3.01455890923095
33133.2130.7251882490572.47481175094310
34151.1144.5418289078856.55817109211522
35105106.062142127660-1.06214212765973
36119120.341387495048-1.34138749504774
37140.4142.649792149251-2.24979214925078
38156.6143.55626295300613.0437370469935
39137.1140.623736078071-3.52373607807136
40122.7132.371660967248-9.67166096724821
41125.8128.194250392190-2.39425039219045
42139.3134.5591087582294.74089124177082
43134.9138.775979030085-3.87597903008539
44149.2137.60527586017611.5947241398243
45132.3137.382684654035-5.08268465403452
46149156.923743231713-7.92374323171319
47117.2115.7503362636021.44966373639782
48119.6122.857953117069-3.25795311706941
49152141.86496835323010.1350316467705
50149.4138.80877959438410.5912204056163
51127.3126.9784831028710.321516897129407
52114.1113.8145687166120.285431283388453
53102.1103.064255787517-0.964255787517077
54107.7105.704179854431.99582014557002
55104.4109.891132033970-5.49113203397025
56102.1109.624731752788-7.52473175278754

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 121.6 & 117.415873943338 & 4.18412605666175 \tabularnewline
2 & 118.8 & 121.595686730419 & -2.79568673041905 \tabularnewline
3 & 114 & 113.553207111846 & 0.446792888153958 \tabularnewline
4 & 111.5 & 104.152583244551 & 7.34741675544911 \tabularnewline
5 & 97.2 & 99.179340673761 & -1.97934067376104 \tabularnewline
6 & 102.5 & 103.710302744370 & -1.21030274436988 \tabularnewline
7 & 113.4 & 112.196451942892 & 1.20354805710789 \tabularnewline
8 & 109.8 & 106.246685682119 & 3.55331431788076 \tabularnewline
9 & 104.9 & 109.357247057662 & -4.45724705766225 \tabularnewline
10 & 126.1 & 125.413942225588 & 0.686057774411688 \tabularnewline
11 & 80 & 79.200968941765 & 0.799031058234997 \tabularnewline
12 & 96.8 & 90.7512577983506 & 6.04874220164938 \tabularnewline
13 & 117.2 & 123.246736102969 & -6.04673610296916 \tabularnewline
14 & 112.3 & 129.385440743158 & -17.0854407431585 \tabularnewline
15 & 117.3 & 117.817428062606 & -0.517428062606313 \tabularnewline
16 & 111.1 & 107.187604471400 & 3.9123955286003 \tabularnewline
17 & 102.2 & 100.407833989356 & 1.79216601064425 \tabularnewline
18 & 104.3 & 107.386160323223 & -3.0861603232233 \tabularnewline
19 & 122.9 & 118.474614233987 & 4.42538576601275 \tabularnewline
20 & 107.6 & 112.208747795687 & -4.60874779568654 \tabularnewline
21 & 121.3 & 114.234880039246 & 7.06511996075367 \tabularnewline
22 & 131.5 & 130.820485634814 & 0.679514365186276 \tabularnewline
23 & 89 & 90.1865526669731 & -1.18655266697309 \tabularnewline
24 & 104.4 & 105.849401589532 & -1.44940158953221 \tabularnewline
25 & 128.9 & 134.922629451212 & -6.02262945121231 \tabularnewline
26 & 135.9 & 139.653829979032 & -3.75382997903233 \tabularnewline
27 & 133.3 & 130.027145644606 & 3.27285435539431 \tabularnewline
28 & 121.3 & 123.173582600190 & -1.87358260018965 \tabularnewline
29 & 120.5 & 116.954319157176 & 3.54568084282432 \tabularnewline
30 & 120.4 & 122.840248319748 & -2.44024831974766 \tabularnewline
31 & 137.9 & 134.161822759065 & 3.73817724093501 \tabularnewline
32 & 126.1 & 129.114558909231 & -3.01455890923095 \tabularnewline
33 & 133.2 & 130.725188249057 & 2.47481175094310 \tabularnewline
34 & 151.1 & 144.541828907885 & 6.55817109211522 \tabularnewline
35 & 105 & 106.062142127660 & -1.06214212765973 \tabularnewline
36 & 119 & 120.341387495048 & -1.34138749504774 \tabularnewline
37 & 140.4 & 142.649792149251 & -2.24979214925078 \tabularnewline
38 & 156.6 & 143.556262953006 & 13.0437370469935 \tabularnewline
39 & 137.1 & 140.623736078071 & -3.52373607807136 \tabularnewline
40 & 122.7 & 132.371660967248 & -9.67166096724821 \tabularnewline
41 & 125.8 & 128.194250392190 & -2.39425039219045 \tabularnewline
42 & 139.3 & 134.559108758229 & 4.74089124177082 \tabularnewline
43 & 134.9 & 138.775979030085 & -3.87597903008539 \tabularnewline
44 & 149.2 & 137.605275860176 & 11.5947241398243 \tabularnewline
45 & 132.3 & 137.382684654035 & -5.08268465403452 \tabularnewline
46 & 149 & 156.923743231713 & -7.92374323171319 \tabularnewline
47 & 117.2 & 115.750336263602 & 1.44966373639782 \tabularnewline
48 & 119.6 & 122.857953117069 & -3.25795311706941 \tabularnewline
49 & 152 & 141.864968353230 & 10.1350316467705 \tabularnewline
50 & 149.4 & 138.808779594384 & 10.5912204056163 \tabularnewline
51 & 127.3 & 126.978483102871 & 0.321516897129407 \tabularnewline
52 & 114.1 & 113.814568716612 & 0.285431283388453 \tabularnewline
53 & 102.1 & 103.064255787517 & -0.964255787517077 \tabularnewline
54 & 107.7 & 105.70417985443 & 1.99582014557002 \tabularnewline
55 & 104.4 & 109.891132033970 & -5.49113203397025 \tabularnewline
56 & 102.1 & 109.624731752788 & -7.52473175278754 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57671&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]121.6[/C][C]117.415873943338[/C][C]4.18412605666175[/C][/ROW]
[ROW][C]2[/C][C]118.8[/C][C]121.595686730419[/C][C]-2.79568673041905[/C][/ROW]
[ROW][C]3[/C][C]114[/C][C]113.553207111846[/C][C]0.446792888153958[/C][/ROW]
[ROW][C]4[/C][C]111.5[/C][C]104.152583244551[/C][C]7.34741675544911[/C][/ROW]
[ROW][C]5[/C][C]97.2[/C][C]99.179340673761[/C][C]-1.97934067376104[/C][/ROW]
[ROW][C]6[/C][C]102.5[/C][C]103.710302744370[/C][C]-1.21030274436988[/C][/ROW]
[ROW][C]7[/C][C]113.4[/C][C]112.196451942892[/C][C]1.20354805710789[/C][/ROW]
[ROW][C]8[/C][C]109.8[/C][C]106.246685682119[/C][C]3.55331431788076[/C][/ROW]
[ROW][C]9[/C][C]104.9[/C][C]109.357247057662[/C][C]-4.45724705766225[/C][/ROW]
[ROW][C]10[/C][C]126.1[/C][C]125.413942225588[/C][C]0.686057774411688[/C][/ROW]
[ROW][C]11[/C][C]80[/C][C]79.200968941765[/C][C]0.799031058234997[/C][/ROW]
[ROW][C]12[/C][C]96.8[/C][C]90.7512577983506[/C][C]6.04874220164938[/C][/ROW]
[ROW][C]13[/C][C]117.2[/C][C]123.246736102969[/C][C]-6.04673610296916[/C][/ROW]
[ROW][C]14[/C][C]112.3[/C][C]129.385440743158[/C][C]-17.0854407431585[/C][/ROW]
[ROW][C]15[/C][C]117.3[/C][C]117.817428062606[/C][C]-0.517428062606313[/C][/ROW]
[ROW][C]16[/C][C]111.1[/C][C]107.187604471400[/C][C]3.9123955286003[/C][/ROW]
[ROW][C]17[/C][C]102.2[/C][C]100.407833989356[/C][C]1.79216601064425[/C][/ROW]
[ROW][C]18[/C][C]104.3[/C][C]107.386160323223[/C][C]-3.0861603232233[/C][/ROW]
[ROW][C]19[/C][C]122.9[/C][C]118.474614233987[/C][C]4.42538576601275[/C][/ROW]
[ROW][C]20[/C][C]107.6[/C][C]112.208747795687[/C][C]-4.60874779568654[/C][/ROW]
[ROW][C]21[/C][C]121.3[/C][C]114.234880039246[/C][C]7.06511996075367[/C][/ROW]
[ROW][C]22[/C][C]131.5[/C][C]130.820485634814[/C][C]0.679514365186276[/C][/ROW]
[ROW][C]23[/C][C]89[/C][C]90.1865526669731[/C][C]-1.18655266697309[/C][/ROW]
[ROW][C]24[/C][C]104.4[/C][C]105.849401589532[/C][C]-1.44940158953221[/C][/ROW]
[ROW][C]25[/C][C]128.9[/C][C]134.922629451212[/C][C]-6.02262945121231[/C][/ROW]
[ROW][C]26[/C][C]135.9[/C][C]139.653829979032[/C][C]-3.75382997903233[/C][/ROW]
[ROW][C]27[/C][C]133.3[/C][C]130.027145644606[/C][C]3.27285435539431[/C][/ROW]
[ROW][C]28[/C][C]121.3[/C][C]123.173582600190[/C][C]-1.87358260018965[/C][/ROW]
[ROW][C]29[/C][C]120.5[/C][C]116.954319157176[/C][C]3.54568084282432[/C][/ROW]
[ROW][C]30[/C][C]120.4[/C][C]122.840248319748[/C][C]-2.44024831974766[/C][/ROW]
[ROW][C]31[/C][C]137.9[/C][C]134.161822759065[/C][C]3.73817724093501[/C][/ROW]
[ROW][C]32[/C][C]126.1[/C][C]129.114558909231[/C][C]-3.01455890923095[/C][/ROW]
[ROW][C]33[/C][C]133.2[/C][C]130.725188249057[/C][C]2.47481175094310[/C][/ROW]
[ROW][C]34[/C][C]151.1[/C][C]144.541828907885[/C][C]6.55817109211522[/C][/ROW]
[ROW][C]35[/C][C]105[/C][C]106.062142127660[/C][C]-1.06214212765973[/C][/ROW]
[ROW][C]36[/C][C]119[/C][C]120.341387495048[/C][C]-1.34138749504774[/C][/ROW]
[ROW][C]37[/C][C]140.4[/C][C]142.649792149251[/C][C]-2.24979214925078[/C][/ROW]
[ROW][C]38[/C][C]156.6[/C][C]143.556262953006[/C][C]13.0437370469935[/C][/ROW]
[ROW][C]39[/C][C]137.1[/C][C]140.623736078071[/C][C]-3.52373607807136[/C][/ROW]
[ROW][C]40[/C][C]122.7[/C][C]132.371660967248[/C][C]-9.67166096724821[/C][/ROW]
[ROW][C]41[/C][C]125.8[/C][C]128.194250392190[/C][C]-2.39425039219045[/C][/ROW]
[ROW][C]42[/C][C]139.3[/C][C]134.559108758229[/C][C]4.74089124177082[/C][/ROW]
[ROW][C]43[/C][C]134.9[/C][C]138.775979030085[/C][C]-3.87597903008539[/C][/ROW]
[ROW][C]44[/C][C]149.2[/C][C]137.605275860176[/C][C]11.5947241398243[/C][/ROW]
[ROW][C]45[/C][C]132.3[/C][C]137.382684654035[/C][C]-5.08268465403452[/C][/ROW]
[ROW][C]46[/C][C]149[/C][C]156.923743231713[/C][C]-7.92374323171319[/C][/ROW]
[ROW][C]47[/C][C]117.2[/C][C]115.750336263602[/C][C]1.44966373639782[/C][/ROW]
[ROW][C]48[/C][C]119.6[/C][C]122.857953117069[/C][C]-3.25795311706941[/C][/ROW]
[ROW][C]49[/C][C]152[/C][C]141.864968353230[/C][C]10.1350316467705[/C][/ROW]
[ROW][C]50[/C][C]149.4[/C][C]138.808779594384[/C][C]10.5912204056163[/C][/ROW]
[ROW][C]51[/C][C]127.3[/C][C]126.978483102871[/C][C]0.321516897129407[/C][/ROW]
[ROW][C]52[/C][C]114.1[/C][C]113.814568716612[/C][C]0.285431283388453[/C][/ROW]
[ROW][C]53[/C][C]102.1[/C][C]103.064255787517[/C][C]-0.964255787517077[/C][/ROW]
[ROW][C]54[/C][C]107.7[/C][C]105.70417985443[/C][C]1.99582014557002[/C][/ROW]
[ROW][C]55[/C][C]104.4[/C][C]109.891132033970[/C][C]-5.49113203397025[/C][/ROW]
[ROW][C]56[/C][C]102.1[/C][C]109.624731752788[/C][C]-7.52473175278754[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57671&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57671&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
1121.6117.4158739433384.18412605666175
2118.8121.595686730419-2.79568673041905
3114113.5532071118460.446792888153958
4111.5104.1525832445517.34741675544911
597.299.179340673761-1.97934067376104
6102.5103.710302744370-1.21030274436988
7113.4112.1964519428921.20354805710789
8109.8106.2466856821193.55331431788076
9104.9109.357247057662-4.45724705766225
10126.1125.4139422255880.686057774411688
118079.2009689417650.799031058234997
1296.890.75125779835066.04874220164938
13117.2123.246736102969-6.04673610296916
14112.3129.385440743158-17.0854407431585
15117.3117.817428062606-0.517428062606313
16111.1107.1876044714003.9123955286003
17102.2100.4078339893561.79216601064425
18104.3107.386160323223-3.0861603232233
19122.9118.4746142339874.42538576601275
20107.6112.208747795687-4.60874779568654
21121.3114.2348800392467.06511996075367
22131.5130.8204856348140.679514365186276
238990.1865526669731-1.18655266697309
24104.4105.849401589532-1.44940158953221
25128.9134.922629451212-6.02262945121231
26135.9139.653829979032-3.75382997903233
27133.3130.0271456446063.27285435539431
28121.3123.173582600190-1.87358260018965
29120.5116.9543191571763.54568084282432
30120.4122.840248319748-2.44024831974766
31137.9134.1618227590653.73817724093501
32126.1129.114558909231-3.01455890923095
33133.2130.7251882490572.47481175094310
34151.1144.5418289078856.55817109211522
35105106.062142127660-1.06214212765973
36119120.341387495048-1.34138749504774
37140.4142.649792149251-2.24979214925078
38156.6143.55626295300613.0437370469935
39137.1140.623736078071-3.52373607807136
40122.7132.371660967248-9.67166096724821
41125.8128.194250392190-2.39425039219045
42139.3134.5591087582294.74089124177082
43134.9138.775979030085-3.87597903008539
44149.2137.60527586017611.5947241398243
45132.3137.382684654035-5.08268465403452
46149156.923743231713-7.92374323171319
47117.2115.7503362636021.44966373639782
48119.6122.857953117069-3.25795311706941
49152141.86496835323010.1350316467705
50149.4138.80877959438410.5912204056163
51127.3126.9784831028710.321516897129407
52114.1113.8145687166120.285431283388453
53102.1103.064255787517-0.964255787517077
54107.7105.704179854431.99582014557002
55104.4109.891132033970-5.49113203397025
56102.1109.624731752788-7.52473175278754







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2026204875386440.4052409750772880.797379512461356
220.159800780984050.31960156196810.84019921901595
230.07832361207412280.1566472241482460.921676387925877
240.03459186550517370.06918373101034750.965408134494826
250.03648994662481480.07297989324962960.963510053375185
260.3663203290339420.7326406580678850.633679670966058
270.2697722510753670.5395445021507340.730227748924633
280.1763295362065670.3526590724131340.823670463793433
290.1520756962278990.3041513924557980.8479243037721
300.1214458566158290.2428917132316580.87855414338417
310.08215134981588660.1643026996317730.917848650184113
320.1223473273744680.2446946547489360.877652672625532
330.1564055372386380.3128110744772770.843594462761362
340.419173179440190.838346358880380.58082682055981
350.2700298987772810.5400597975545610.729970101222719

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.202620487538644 & 0.405240975077288 & 0.797379512461356 \tabularnewline
22 & 0.15980078098405 & 0.3196015619681 & 0.84019921901595 \tabularnewline
23 & 0.0783236120741228 & 0.156647224148246 & 0.921676387925877 \tabularnewline
24 & 0.0345918655051737 & 0.0691837310103475 & 0.965408134494826 \tabularnewline
25 & 0.0364899466248148 & 0.0729798932496296 & 0.963510053375185 \tabularnewline
26 & 0.366320329033942 & 0.732640658067885 & 0.633679670966058 \tabularnewline
27 & 0.269772251075367 & 0.539544502150734 & 0.730227748924633 \tabularnewline
28 & 0.176329536206567 & 0.352659072413134 & 0.823670463793433 \tabularnewline
29 & 0.152075696227899 & 0.304151392455798 & 0.8479243037721 \tabularnewline
30 & 0.121445856615829 & 0.242891713231658 & 0.87855414338417 \tabularnewline
31 & 0.0821513498158866 & 0.164302699631773 & 0.917848650184113 \tabularnewline
32 & 0.122347327374468 & 0.244694654748936 & 0.877652672625532 \tabularnewline
33 & 0.156405537238638 & 0.312811074477277 & 0.843594462761362 \tabularnewline
34 & 0.41917317944019 & 0.83834635888038 & 0.58082682055981 \tabularnewline
35 & 0.270029898777281 & 0.540059797554561 & 0.729970101222719 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57671&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]21[/C][C]0.202620487538644[/C][C]0.405240975077288[/C][C]0.797379512461356[/C][/ROW]
[ROW][C]22[/C][C]0.15980078098405[/C][C]0.3196015619681[/C][C]0.84019921901595[/C][/ROW]
[ROW][C]23[/C][C]0.0783236120741228[/C][C]0.156647224148246[/C][C]0.921676387925877[/C][/ROW]
[ROW][C]24[/C][C]0.0345918655051737[/C][C]0.0691837310103475[/C][C]0.965408134494826[/C][/ROW]
[ROW][C]25[/C][C]0.0364899466248148[/C][C]0.0729798932496296[/C][C]0.963510053375185[/C][/ROW]
[ROW][C]26[/C][C]0.366320329033942[/C][C]0.732640658067885[/C][C]0.633679670966058[/C][/ROW]
[ROW][C]27[/C][C]0.269772251075367[/C][C]0.539544502150734[/C][C]0.730227748924633[/C][/ROW]
[ROW][C]28[/C][C]0.176329536206567[/C][C]0.352659072413134[/C][C]0.823670463793433[/C][/ROW]
[ROW][C]29[/C][C]0.152075696227899[/C][C]0.304151392455798[/C][C]0.8479243037721[/C][/ROW]
[ROW][C]30[/C][C]0.121445856615829[/C][C]0.242891713231658[/C][C]0.87855414338417[/C][/ROW]
[ROW][C]31[/C][C]0.0821513498158866[/C][C]0.164302699631773[/C][C]0.917848650184113[/C][/ROW]
[ROW][C]32[/C][C]0.122347327374468[/C][C]0.244694654748936[/C][C]0.877652672625532[/C][/ROW]
[ROW][C]33[/C][C]0.156405537238638[/C][C]0.312811074477277[/C][C]0.843594462761362[/C][/ROW]
[ROW][C]34[/C][C]0.41917317944019[/C][C]0.83834635888038[/C][C]0.58082682055981[/C][/ROW]
[ROW][C]35[/C][C]0.270029898777281[/C][C]0.540059797554561[/C][C]0.729970101222719[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57671&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2026204875386440.4052409750772880.797379512461356
220.159800780984050.31960156196810.84019921901595
230.07832361207412280.1566472241482460.921676387925877
240.03459186550517370.06918373101034750.965408134494826
250.03648994662481480.07297989324962960.963510053375185
260.3663203290339420.7326406580678850.633679670966058
270.2697722510753670.5395445021507340.730227748924633
280.1763295362065670.3526590724131340.823670463793433
290.1520756962278990.3041513924557980.8479243037721
300.1214458566158290.2428917132316580.87855414338417
310.08215134981588660.1643026996317730.917848650184113
320.1223473273744680.2446946547489360.877652672625532
330.1564055372386380.3128110744772770.843594462761362
340.419173179440190.838346358880380.58082682055981
350.2700298987772810.5400597975545610.729970101222719







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}