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 computationMon, 14 Dec 2009 03:00:52 -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/14/t1260784949eym10q5nx4d0fnu.htm/, Retrieved Sun, 05 May 2024 11:40:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67490, Retrieved Sun, 05 May 2024 11:40:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-14 10:00:52] [d39d4e1021a28f94dc953cf77db656ab] [Current]
Feedback Forum

Post a new message
Dataseries X:
112,7	129,9	97,0	95,1
102,9	128,0	112,7	97,0
97,4	123,5	102,9	112,7
111,4	124,0	97,4	102,9
87,4	127,4	111,4	97,4
96,8	127,6	87,4	111,4
114,1	128,4	96,8	87,4
110,3	131,4	114,1	96,8
103,9	135,1	110,3	114,1
101,6	134,0	103,9	110,3
94,6	144,5	101,6	103,9
95,9	147,3	94,6	101,6
104,7	150,9	95,9	94,6
102,8	148,7	104,7	95,9
98,1	141,4	102,8	104,7
113,9	138,9	98,1	102,8
80,9	139,8	113,9	98,1
95,7	145,6	80,9	113,9
113,2	147,9	95,7	80,9
105,9	148,5	113,2	95,7
108,8	151,1	105,9	113,2
102,3	157,5	108,8	105,9
99,0	167,5	102,3	108,8
100,7	172,3	99,0	102,3
115,5	173,5	100,7	99,0
100,7	187,5	115,5	100,7
109,9	205,5	100,7	115,5
114,6	195,1	109,9	100,7
85,4	204,5	114,6	109,9
100,5	204,5	85,4	114,6
114,8	201,7	100,5	85,4
116,5	207,0	114,8	100,5
112,9	206,6	116,5	114,8
102,0	210,6	112,9	116,5
106,0	211,1	102,0	112,9
105,3	215,0	106,0	102,0
118,8	223,9	105,3	106,0
106,1	238,2	118,8	105,3
109,3	238,9	106,1	118,8
117,2	229,6	109,3	106,1
92,5	232,2	117,2	109,3
104,2	222,1	92,5	117,2
112,5	221,6	104,2	92,5
122,4	227,3	112,5	104,2
113,3	221,0	122,4	112,5
100,0	213,6	113,3	122,4
110,7	243,4	100,0	113,3
112,8	253,8	110,7	100,0
109,8	265,3	112,8	110,7
117,3	268,2	109,8	112,8
109,1	268,5	117,3	109,8
115,9	266,9	109,1	117,3
96,0	268,4	115,9	109,1
99,8	250,8	96,0	115,9
116,8	231,2	99,8	96,0
115,7	192,0	116,8	99,8
99,4	171,4	115,7	116,8
94,3	160,0	99,4	115,7




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

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







Multiple Linear Regression - Estimated Regression Equation
TIP[t] = + 144.143675985304 + 0.182263188182482Grondstofprijzen[t] -0.415679192052341Y1[t] -0.280948161450398Y2[t] + 9.07314455214042M1[t] + 6.41427892739759M2[t] + 5.2894989657864M3[t] + 13.8736604675959M4[t] -9.00720960734173M5[t] -5.19098370710964M6[t] + 7.79185997838169M7[t] + 18.0079345104121M8[t] + 16.5789084590517M9[t] + 6.74442140782157M10[t] + 1.58362475706984M11[t] -0.174841418937455t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TIP[t] =  +  144.143675985304 +  0.182263188182482Grondstofprijzen[t] -0.415679192052341Y1[t] -0.280948161450398Y2[t] +  9.07314455214042M1[t] +  6.41427892739759M2[t] +  5.2894989657864M3[t] +  13.8736604675959M4[t] -9.00720960734173M5[t] -5.19098370710964M6[t] +  7.79185997838169M7[t] +  18.0079345104121M8[t] +  16.5789084590517M9[t] +  6.74442140782157M10[t] +  1.58362475706984M11[t] -0.174841418937455t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67490&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TIP[t] =  +  144.143675985304 +  0.182263188182482Grondstofprijzen[t] -0.415679192052341Y1[t] -0.280948161450398Y2[t] +  9.07314455214042M1[t] +  6.41427892739759M2[t] +  5.2894989657864M3[t] +  13.8736604675959M4[t] -9.00720960734173M5[t] -5.19098370710964M6[t] +  7.79185997838169M7[t] +  18.0079345104121M8[t] +  16.5789084590517M9[t] +  6.74442140782157M10[t] +  1.58362475706984M11[t] -0.174841418937455t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67490&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67490&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
TIP[t] = + 144.143675985304 + 0.182263188182482Grondstofprijzen[t] -0.415679192052341Y1[t] -0.280948161450398Y2[t] + 9.07314455214042M1[t] + 6.41427892739759M2[t] + 5.2894989657864M3[t] + 13.8736604675959M4[t] -9.00720960734173M5[t] -5.19098370710964M6[t] + 7.79185997838169M7[t] + 18.0079345104121M8[t] + 16.5789084590517M9[t] + 6.74442140782157M10[t] + 1.58362475706984M11[t] -0.174841418937455t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)144.14367598530421.3360766.755900
Grondstofprijzen0.1822631881824820.0292716.226700
Y1-0.4156791920523410.14164-2.93480.0053910.002696
Y2-0.2809481614503980.151389-1.85580.0705080.035254
M19.073144552140422.3195183.91170.0003290.000165
M26.414278927397592.7425952.33880.0241810.012091
M35.28949896578642.9954051.76590.0846860.042343
M413.87366046759592.5002925.54882e-061e-06
M5-9.007209607341733.043799-2.95920.0050510.002525
M6-5.190983707109643.233861-1.60520.1159440.057972
M77.791859978381693.0798812.52990.0152470.007624
M818.00793451041212.9827836.037300
M916.57890845905174.0837014.05980.0002090.000105
M106.744421407821573.5819011.88290.066650.033325
M111.583624757069842.7521120.57540.5680760.284038
t-0.1748414189374550.063692-2.74510.0088640.004432

\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) & 144.143675985304 & 21.336076 & 6.7559 & 0 & 0 \tabularnewline
Grondstofprijzen & 0.182263188182482 & 0.029271 & 6.2267 & 0 & 0 \tabularnewline
Y1 & -0.415679192052341 & 0.14164 & -2.9348 & 0.005391 & 0.002696 \tabularnewline
Y2 & -0.280948161450398 & 0.151389 & -1.8558 & 0.070508 & 0.035254 \tabularnewline
M1 & 9.07314455214042 & 2.319518 & 3.9117 & 0.000329 & 0.000165 \tabularnewline
M2 & 6.41427892739759 & 2.742595 & 2.3388 & 0.024181 & 0.012091 \tabularnewline
M3 & 5.2894989657864 & 2.995405 & 1.7659 & 0.084686 & 0.042343 \tabularnewline
M4 & 13.8736604675959 & 2.500292 & 5.5488 & 2e-06 & 1e-06 \tabularnewline
M5 & -9.00720960734173 & 3.043799 & -2.9592 & 0.005051 & 0.002525 \tabularnewline
M6 & -5.19098370710964 & 3.233861 & -1.6052 & 0.115944 & 0.057972 \tabularnewline
M7 & 7.79185997838169 & 3.079881 & 2.5299 & 0.015247 & 0.007624 \tabularnewline
M8 & 18.0079345104121 & 2.982783 & 6.0373 & 0 & 0 \tabularnewline
M9 & 16.5789084590517 & 4.083701 & 4.0598 & 0.000209 & 0.000105 \tabularnewline
M10 & 6.74442140782157 & 3.581901 & 1.8829 & 0.06665 & 0.033325 \tabularnewline
M11 & 1.58362475706984 & 2.752112 & 0.5754 & 0.568076 & 0.284038 \tabularnewline
t & -0.174841418937455 & 0.063692 & -2.7451 & 0.008864 & 0.004432 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67490&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]144.143675985304[/C][C]21.336076[/C][C]6.7559[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Grondstofprijzen[/C][C]0.182263188182482[/C][C]0.029271[/C][C]6.2267[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y1[/C][C]-0.415679192052341[/C][C]0.14164[/C][C]-2.9348[/C][C]0.005391[/C][C]0.002696[/C][/ROW]
[ROW][C]Y2[/C][C]-0.280948161450398[/C][C]0.151389[/C][C]-1.8558[/C][C]0.070508[/C][C]0.035254[/C][/ROW]
[ROW][C]M1[/C][C]9.07314455214042[/C][C]2.319518[/C][C]3.9117[/C][C]0.000329[/C][C]0.000165[/C][/ROW]
[ROW][C]M2[/C][C]6.41427892739759[/C][C]2.742595[/C][C]2.3388[/C][C]0.024181[/C][C]0.012091[/C][/ROW]
[ROW][C]M3[/C][C]5.2894989657864[/C][C]2.995405[/C][C]1.7659[/C][C]0.084686[/C][C]0.042343[/C][/ROW]
[ROW][C]M4[/C][C]13.8736604675959[/C][C]2.500292[/C][C]5.5488[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M5[/C][C]-9.00720960734173[/C][C]3.043799[/C][C]-2.9592[/C][C]0.005051[/C][C]0.002525[/C][/ROW]
[ROW][C]M6[/C][C]-5.19098370710964[/C][C]3.233861[/C][C]-1.6052[/C][C]0.115944[/C][C]0.057972[/C][/ROW]
[ROW][C]M7[/C][C]7.79185997838169[/C][C]3.079881[/C][C]2.5299[/C][C]0.015247[/C][C]0.007624[/C][/ROW]
[ROW][C]M8[/C][C]18.0079345104121[/C][C]2.982783[/C][C]6.0373[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]16.5789084590517[/C][C]4.083701[/C][C]4.0598[/C][C]0.000209[/C][C]0.000105[/C][/ROW]
[ROW][C]M10[/C][C]6.74442140782157[/C][C]3.581901[/C][C]1.8829[/C][C]0.06665[/C][C]0.033325[/C][/ROW]
[ROW][C]M11[/C][C]1.58362475706984[/C][C]2.752112[/C][C]0.5754[/C][C]0.568076[/C][C]0.284038[/C][/ROW]
[ROW][C]t[/C][C]-0.174841418937455[/C][C]0.063692[/C][C]-2.7451[/C][C]0.008864[/C][C]0.004432[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67490&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67490&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)144.14367598530421.3360766.755900
Grondstofprijzen0.1822631881824820.0292716.226700
Y1-0.4156791920523410.14164-2.93480.0053910.002696
Y2-0.2809481614503980.151389-1.85580.0705080.035254
M19.073144552140422.3195183.91170.0003290.000165
M26.414278927397592.7425952.33880.0241810.012091
M35.28949896578642.9954051.76590.0846860.042343
M413.87366046759592.5002925.54882e-061e-06
M5-9.007209607341733.043799-2.95920.0050510.002525
M6-5.190983707109643.233861-1.60520.1159440.057972
M77.791859978381693.0798812.52990.0152470.007624
M818.00793451041212.9827836.037300
M916.57890845905174.0837014.05980.0002090.000105
M106.744421407821573.5819011.88290.066650.033325
M111.583624757069842.7521120.57540.5680760.284038
t-0.1748414189374550.063692-2.74510.0088640.004432







Multiple Linear Regression - Regression Statistics
Multiple R0.944133064721672
R-squared0.891387243900737
Adjusted R-squared0.852596973865287
F-TEST (value)22.9796607006367
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value1.66533453693773e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.44724217155702
Sum Squared Residuals499.106100753168

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.944133064721672 \tabularnewline
R-squared & 0.891387243900737 \tabularnewline
Adjusted R-squared & 0.852596973865287 \tabularnewline
F-TEST (value) & 22.9796607006367 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 1.66533453693773e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.44724217155702 \tabularnewline
Sum Squared Residuals & 499.106100753168 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67490&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.944133064721672[/C][/ROW]
[ROW][C]R-squared[/C][C]0.891387243900737[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.852596973865287[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]22.9796607006367[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]1.66533453693773e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.44724217155702[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]499.106100753168[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67490&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67490&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.944133064721672
R-squared0.891387243900737
Adjusted R-squared0.852596973865287
F-TEST (value)22.9796607006367
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value1.66533453693773e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.44724217155702
Sum Squared Residuals499.106100753168







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1112.7109.6789154804023.02108451959831
2102.999.43894355719743.46105644280258
397.496.98190777716930.418092222830749
4111.4110.5218869926340.878113007365686
587.483.81157653782413.58842346217589
696.893.53244000570593.26755999429414
7114.1109.3216242923234.77837570767673
8110.3110.0774842298240.222515770175515
9103.9105.867168292509-1.96716829250874
10101.699.3853001579872.21469984201304
1194.698.7175559392168-4.11755593921677
1295.9101.025361805823-5.12536180582271
13104.7112.006066596967-7.30606659696734
14102.8104.748171039339-1.94817103933948
1598.1100.435475029195-2.33547502919468
16113.9110.8766308510123.02336914898774
1780.982.7376813508913-1.83768135089129
1895.796.7146247104553-1.01462471045529
19113.2113.0610695953170.138930404682638
20105.9111.779241970938-5.879241970938
21108.8108.7671240665150.0328759334853511
22102.3100.7697319223511.53026807764890
239999.1438908146208-0.143890814620793
24100.7101.458192325090-0.758192325089718
25115.5110.7956855904094.70431440959101
26100.7103.883999264443-3.18399926444313
27109.9107.8591345240882.04086547591209
28114.6114.706701672446-0.106701672446493
2985.488.8258488594971-3.42584885949707
30100.5103.284609389903-2.78460938990320
31114.8117.509205243907-2.7092052439074
32116.5118.329903570118-1.82990357011808
33112.9111.9289174893170.971082510682531
34102103.667474988803-1.66747498880260
35106103.9652850877972.03471491220339
36105.3104.3172635373010.98273646269903
37118.8114.0048918339634.79510816603694
38106.1108.362543001601-2.26254300160095
39109.3108.6768314122640.623168587735602
40117.2117.628972080892-0.42897208089191
4192.590.86424514243651.63575485756349
42104.2100.7125569913233.48744300867723
43112.5115.505400704598-3.00540070459785
44122.4119.8483032073272.55169679267309
45113.3110.6490839101232.65091608987714
46100100.292301696722-0.292301696722308
47110.7108.4732681583662.22673184163417
48112.8107.8991823317874.9008176682134
49109.8115.014440498259-5.21444049825893
50117.3113.3663431374193.93365686258098
51109.1109.846651257284-0.746651257283766
52115.9119.265808403015-3.36580840301503
539695.9606481093510.0393518906489888
5499.8102.755768902613-2.95576890261287
55116.8116.0027001638540.79729983614588
56115.7110.7650670217934.93493297820747
5799.4101.087706241536-1.68770624153628
5894.396.085191234137-1.78519123413703

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 112.7 & 109.678915480402 & 3.02108451959831 \tabularnewline
2 & 102.9 & 99.4389435571974 & 3.46105644280258 \tabularnewline
3 & 97.4 & 96.9819077771693 & 0.418092222830749 \tabularnewline
4 & 111.4 & 110.521886992634 & 0.878113007365686 \tabularnewline
5 & 87.4 & 83.8115765378241 & 3.58842346217589 \tabularnewline
6 & 96.8 & 93.5324400057059 & 3.26755999429414 \tabularnewline
7 & 114.1 & 109.321624292323 & 4.77837570767673 \tabularnewline
8 & 110.3 & 110.077484229824 & 0.222515770175515 \tabularnewline
9 & 103.9 & 105.867168292509 & -1.96716829250874 \tabularnewline
10 & 101.6 & 99.385300157987 & 2.21469984201304 \tabularnewline
11 & 94.6 & 98.7175559392168 & -4.11755593921677 \tabularnewline
12 & 95.9 & 101.025361805823 & -5.12536180582271 \tabularnewline
13 & 104.7 & 112.006066596967 & -7.30606659696734 \tabularnewline
14 & 102.8 & 104.748171039339 & -1.94817103933948 \tabularnewline
15 & 98.1 & 100.435475029195 & -2.33547502919468 \tabularnewline
16 & 113.9 & 110.876630851012 & 3.02336914898774 \tabularnewline
17 & 80.9 & 82.7376813508913 & -1.83768135089129 \tabularnewline
18 & 95.7 & 96.7146247104553 & -1.01462471045529 \tabularnewline
19 & 113.2 & 113.061069595317 & 0.138930404682638 \tabularnewline
20 & 105.9 & 111.779241970938 & -5.879241970938 \tabularnewline
21 & 108.8 & 108.767124066515 & 0.0328759334853511 \tabularnewline
22 & 102.3 & 100.769731922351 & 1.53026807764890 \tabularnewline
23 & 99 & 99.1438908146208 & -0.143890814620793 \tabularnewline
24 & 100.7 & 101.458192325090 & -0.758192325089718 \tabularnewline
25 & 115.5 & 110.795685590409 & 4.70431440959101 \tabularnewline
26 & 100.7 & 103.883999264443 & -3.18399926444313 \tabularnewline
27 & 109.9 & 107.859134524088 & 2.04086547591209 \tabularnewline
28 & 114.6 & 114.706701672446 & -0.106701672446493 \tabularnewline
29 & 85.4 & 88.8258488594971 & -3.42584885949707 \tabularnewline
30 & 100.5 & 103.284609389903 & -2.78460938990320 \tabularnewline
31 & 114.8 & 117.509205243907 & -2.7092052439074 \tabularnewline
32 & 116.5 & 118.329903570118 & -1.82990357011808 \tabularnewline
33 & 112.9 & 111.928917489317 & 0.971082510682531 \tabularnewline
34 & 102 & 103.667474988803 & -1.66747498880260 \tabularnewline
35 & 106 & 103.965285087797 & 2.03471491220339 \tabularnewline
36 & 105.3 & 104.317263537301 & 0.98273646269903 \tabularnewline
37 & 118.8 & 114.004891833963 & 4.79510816603694 \tabularnewline
38 & 106.1 & 108.362543001601 & -2.26254300160095 \tabularnewline
39 & 109.3 & 108.676831412264 & 0.623168587735602 \tabularnewline
40 & 117.2 & 117.628972080892 & -0.42897208089191 \tabularnewline
41 & 92.5 & 90.8642451424365 & 1.63575485756349 \tabularnewline
42 & 104.2 & 100.712556991323 & 3.48744300867723 \tabularnewline
43 & 112.5 & 115.505400704598 & -3.00540070459785 \tabularnewline
44 & 122.4 & 119.848303207327 & 2.55169679267309 \tabularnewline
45 & 113.3 & 110.649083910123 & 2.65091608987714 \tabularnewline
46 & 100 & 100.292301696722 & -0.292301696722308 \tabularnewline
47 & 110.7 & 108.473268158366 & 2.22673184163417 \tabularnewline
48 & 112.8 & 107.899182331787 & 4.9008176682134 \tabularnewline
49 & 109.8 & 115.014440498259 & -5.21444049825893 \tabularnewline
50 & 117.3 & 113.366343137419 & 3.93365686258098 \tabularnewline
51 & 109.1 & 109.846651257284 & -0.746651257283766 \tabularnewline
52 & 115.9 & 119.265808403015 & -3.36580840301503 \tabularnewline
53 & 96 & 95.960648109351 & 0.0393518906489888 \tabularnewline
54 & 99.8 & 102.755768902613 & -2.95576890261287 \tabularnewline
55 & 116.8 & 116.002700163854 & 0.79729983614588 \tabularnewline
56 & 115.7 & 110.765067021793 & 4.93493297820747 \tabularnewline
57 & 99.4 & 101.087706241536 & -1.68770624153628 \tabularnewline
58 & 94.3 & 96.085191234137 & -1.78519123413703 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67490&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]112.7[/C][C]109.678915480402[/C][C]3.02108451959831[/C][/ROW]
[ROW][C]2[/C][C]102.9[/C][C]99.4389435571974[/C][C]3.46105644280258[/C][/ROW]
[ROW][C]3[/C][C]97.4[/C][C]96.9819077771693[/C][C]0.418092222830749[/C][/ROW]
[ROW][C]4[/C][C]111.4[/C][C]110.521886992634[/C][C]0.878113007365686[/C][/ROW]
[ROW][C]5[/C][C]87.4[/C][C]83.8115765378241[/C][C]3.58842346217589[/C][/ROW]
[ROW][C]6[/C][C]96.8[/C][C]93.5324400057059[/C][C]3.26755999429414[/C][/ROW]
[ROW][C]7[/C][C]114.1[/C][C]109.321624292323[/C][C]4.77837570767673[/C][/ROW]
[ROW][C]8[/C][C]110.3[/C][C]110.077484229824[/C][C]0.222515770175515[/C][/ROW]
[ROW][C]9[/C][C]103.9[/C][C]105.867168292509[/C][C]-1.96716829250874[/C][/ROW]
[ROW][C]10[/C][C]101.6[/C][C]99.385300157987[/C][C]2.21469984201304[/C][/ROW]
[ROW][C]11[/C][C]94.6[/C][C]98.7175559392168[/C][C]-4.11755593921677[/C][/ROW]
[ROW][C]12[/C][C]95.9[/C][C]101.025361805823[/C][C]-5.12536180582271[/C][/ROW]
[ROW][C]13[/C][C]104.7[/C][C]112.006066596967[/C][C]-7.30606659696734[/C][/ROW]
[ROW][C]14[/C][C]102.8[/C][C]104.748171039339[/C][C]-1.94817103933948[/C][/ROW]
[ROW][C]15[/C][C]98.1[/C][C]100.435475029195[/C][C]-2.33547502919468[/C][/ROW]
[ROW][C]16[/C][C]113.9[/C][C]110.876630851012[/C][C]3.02336914898774[/C][/ROW]
[ROW][C]17[/C][C]80.9[/C][C]82.7376813508913[/C][C]-1.83768135089129[/C][/ROW]
[ROW][C]18[/C][C]95.7[/C][C]96.7146247104553[/C][C]-1.01462471045529[/C][/ROW]
[ROW][C]19[/C][C]113.2[/C][C]113.061069595317[/C][C]0.138930404682638[/C][/ROW]
[ROW][C]20[/C][C]105.9[/C][C]111.779241970938[/C][C]-5.879241970938[/C][/ROW]
[ROW][C]21[/C][C]108.8[/C][C]108.767124066515[/C][C]0.0328759334853511[/C][/ROW]
[ROW][C]22[/C][C]102.3[/C][C]100.769731922351[/C][C]1.53026807764890[/C][/ROW]
[ROW][C]23[/C][C]99[/C][C]99.1438908146208[/C][C]-0.143890814620793[/C][/ROW]
[ROW][C]24[/C][C]100.7[/C][C]101.458192325090[/C][C]-0.758192325089718[/C][/ROW]
[ROW][C]25[/C][C]115.5[/C][C]110.795685590409[/C][C]4.70431440959101[/C][/ROW]
[ROW][C]26[/C][C]100.7[/C][C]103.883999264443[/C][C]-3.18399926444313[/C][/ROW]
[ROW][C]27[/C][C]109.9[/C][C]107.859134524088[/C][C]2.04086547591209[/C][/ROW]
[ROW][C]28[/C][C]114.6[/C][C]114.706701672446[/C][C]-0.106701672446493[/C][/ROW]
[ROW][C]29[/C][C]85.4[/C][C]88.8258488594971[/C][C]-3.42584885949707[/C][/ROW]
[ROW][C]30[/C][C]100.5[/C][C]103.284609389903[/C][C]-2.78460938990320[/C][/ROW]
[ROW][C]31[/C][C]114.8[/C][C]117.509205243907[/C][C]-2.7092052439074[/C][/ROW]
[ROW][C]32[/C][C]116.5[/C][C]118.329903570118[/C][C]-1.82990357011808[/C][/ROW]
[ROW][C]33[/C][C]112.9[/C][C]111.928917489317[/C][C]0.971082510682531[/C][/ROW]
[ROW][C]34[/C][C]102[/C][C]103.667474988803[/C][C]-1.66747498880260[/C][/ROW]
[ROW][C]35[/C][C]106[/C][C]103.965285087797[/C][C]2.03471491220339[/C][/ROW]
[ROW][C]36[/C][C]105.3[/C][C]104.317263537301[/C][C]0.98273646269903[/C][/ROW]
[ROW][C]37[/C][C]118.8[/C][C]114.004891833963[/C][C]4.79510816603694[/C][/ROW]
[ROW][C]38[/C][C]106.1[/C][C]108.362543001601[/C][C]-2.26254300160095[/C][/ROW]
[ROW][C]39[/C][C]109.3[/C][C]108.676831412264[/C][C]0.623168587735602[/C][/ROW]
[ROW][C]40[/C][C]117.2[/C][C]117.628972080892[/C][C]-0.42897208089191[/C][/ROW]
[ROW][C]41[/C][C]92.5[/C][C]90.8642451424365[/C][C]1.63575485756349[/C][/ROW]
[ROW][C]42[/C][C]104.2[/C][C]100.712556991323[/C][C]3.48744300867723[/C][/ROW]
[ROW][C]43[/C][C]112.5[/C][C]115.505400704598[/C][C]-3.00540070459785[/C][/ROW]
[ROW][C]44[/C][C]122.4[/C][C]119.848303207327[/C][C]2.55169679267309[/C][/ROW]
[ROW][C]45[/C][C]113.3[/C][C]110.649083910123[/C][C]2.65091608987714[/C][/ROW]
[ROW][C]46[/C][C]100[/C][C]100.292301696722[/C][C]-0.292301696722308[/C][/ROW]
[ROW][C]47[/C][C]110.7[/C][C]108.473268158366[/C][C]2.22673184163417[/C][/ROW]
[ROW][C]48[/C][C]112.8[/C][C]107.899182331787[/C][C]4.9008176682134[/C][/ROW]
[ROW][C]49[/C][C]109.8[/C][C]115.014440498259[/C][C]-5.21444049825893[/C][/ROW]
[ROW][C]50[/C][C]117.3[/C][C]113.366343137419[/C][C]3.93365686258098[/C][/ROW]
[ROW][C]51[/C][C]109.1[/C][C]109.846651257284[/C][C]-0.746651257283766[/C][/ROW]
[ROW][C]52[/C][C]115.9[/C][C]119.265808403015[/C][C]-3.36580840301503[/C][/ROW]
[ROW][C]53[/C][C]96[/C][C]95.960648109351[/C][C]0.0393518906489888[/C][/ROW]
[ROW][C]54[/C][C]99.8[/C][C]102.755768902613[/C][C]-2.95576890261287[/C][/ROW]
[ROW][C]55[/C][C]116.8[/C][C]116.002700163854[/C][C]0.79729983614588[/C][/ROW]
[ROW][C]56[/C][C]115.7[/C][C]110.765067021793[/C][C]4.93493297820747[/C][/ROW]
[ROW][C]57[/C][C]99.4[/C][C]101.087706241536[/C][C]-1.68770624153628[/C][/ROW]
[ROW][C]58[/C][C]94.3[/C][C]96.085191234137[/C][C]-1.78519123413703[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67490&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67490&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
1112.7109.6789154804023.02108451959831
2102.999.43894355719743.46105644280258
397.496.98190777716930.418092222830749
4111.4110.5218869926340.878113007365686
587.483.81157653782413.58842346217589
696.893.53244000570593.26755999429414
7114.1109.3216242923234.77837570767673
8110.3110.0774842298240.222515770175515
9103.9105.867168292509-1.96716829250874
10101.699.3853001579872.21469984201304
1194.698.7175559392168-4.11755593921677
1295.9101.025361805823-5.12536180582271
13104.7112.006066596967-7.30606659696734
14102.8104.748171039339-1.94817103933948
1598.1100.435475029195-2.33547502919468
16113.9110.8766308510123.02336914898774
1780.982.7376813508913-1.83768135089129
1895.796.7146247104553-1.01462471045529
19113.2113.0610695953170.138930404682638
20105.9111.779241970938-5.879241970938
21108.8108.7671240665150.0328759334853511
22102.3100.7697319223511.53026807764890
239999.1438908146208-0.143890814620793
24100.7101.458192325090-0.758192325089718
25115.5110.7956855904094.70431440959101
26100.7103.883999264443-3.18399926444313
27109.9107.8591345240882.04086547591209
28114.6114.706701672446-0.106701672446493
2985.488.8258488594971-3.42584885949707
30100.5103.284609389903-2.78460938990320
31114.8117.509205243907-2.7092052439074
32116.5118.329903570118-1.82990357011808
33112.9111.9289174893170.971082510682531
34102103.667474988803-1.66747498880260
35106103.9652850877972.03471491220339
36105.3104.3172635373010.98273646269903
37118.8114.0048918339634.79510816603694
38106.1108.362543001601-2.26254300160095
39109.3108.6768314122640.623168587735602
40117.2117.628972080892-0.42897208089191
4192.590.86424514243651.63575485756349
42104.2100.7125569913233.48744300867723
43112.5115.505400704598-3.00540070459785
44122.4119.8483032073272.55169679267309
45113.3110.6490839101232.65091608987714
46100100.292301696722-0.292301696722308
47110.7108.4732681583662.22673184163417
48112.8107.8991823317874.9008176682134
49109.8115.014440498259-5.21444049825893
50117.3113.3663431374193.93365686258098
51109.1109.846651257284-0.746651257283766
52115.9119.265808403015-3.36580840301503
539695.9606481093510.0393518906489888
5499.8102.755768902613-2.95576890261287
55116.8116.0027001638540.79729983614588
56115.7110.7650670217934.93493297820747
5799.4101.087706241536-1.68770624153628
5894.396.085191234137-1.78519123413703







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.4917411050691320.9834822101382650.508258894930868
200.3921377312643410.7842754625286820.607862268735659
210.3111092155584080.6222184311168160.688890784441592
220.5969178882970910.8061642234058180.403082111702909
230.661205308795610.6775893824087810.338794691204390
240.6117699182900680.7764601634198650.388230081709933
250.5924999066715370.8150001866569260.407500093328463
260.6820802005162440.6358395989675130.317919799483756
270.6549180639821620.6901638720356770.345081936017838
280.5744287494280250.851142501143950.425571250571975
290.609434733156360.7811305336872790.390565266843639
300.5511256584594040.8977486830811930.448874341540596
310.4759615935005570.9519231870011140.524038406499443
320.5532100852646060.8935798294707870.446789914735394
330.4762295503658180.9524591007316370.523770449634182
340.4073898532125670.8147797064251330.592610146787433
350.3409171635102320.6818343270204640.659082836489768
360.3502864223011740.7005728446023470.649713577698826
370.4226973017178640.8453946034357290.577302698282136
380.5148560940993130.9702878118013740.485143905900687
390.3443083510090280.6886167020180560.655691648990972

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.491741105069132 & 0.983482210138265 & 0.508258894930868 \tabularnewline
20 & 0.392137731264341 & 0.784275462528682 & 0.607862268735659 \tabularnewline
21 & 0.311109215558408 & 0.622218431116816 & 0.688890784441592 \tabularnewline
22 & 0.596917888297091 & 0.806164223405818 & 0.403082111702909 \tabularnewline
23 & 0.66120530879561 & 0.677589382408781 & 0.338794691204390 \tabularnewline
24 & 0.611769918290068 & 0.776460163419865 & 0.388230081709933 \tabularnewline
25 & 0.592499906671537 & 0.815000186656926 & 0.407500093328463 \tabularnewline
26 & 0.682080200516244 & 0.635839598967513 & 0.317919799483756 \tabularnewline
27 & 0.654918063982162 & 0.690163872035677 & 0.345081936017838 \tabularnewline
28 & 0.574428749428025 & 0.85114250114395 & 0.425571250571975 \tabularnewline
29 & 0.60943473315636 & 0.781130533687279 & 0.390565266843639 \tabularnewline
30 & 0.551125658459404 & 0.897748683081193 & 0.448874341540596 \tabularnewline
31 & 0.475961593500557 & 0.951923187001114 & 0.524038406499443 \tabularnewline
32 & 0.553210085264606 & 0.893579829470787 & 0.446789914735394 \tabularnewline
33 & 0.476229550365818 & 0.952459100731637 & 0.523770449634182 \tabularnewline
34 & 0.407389853212567 & 0.814779706425133 & 0.592610146787433 \tabularnewline
35 & 0.340917163510232 & 0.681834327020464 & 0.659082836489768 \tabularnewline
36 & 0.350286422301174 & 0.700572844602347 & 0.649713577698826 \tabularnewline
37 & 0.422697301717864 & 0.845394603435729 & 0.577302698282136 \tabularnewline
38 & 0.514856094099313 & 0.970287811801374 & 0.485143905900687 \tabularnewline
39 & 0.344308351009028 & 0.688616702018056 & 0.655691648990972 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67490&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.491741105069132[/C][C]0.983482210138265[/C][C]0.508258894930868[/C][/ROW]
[ROW][C]20[/C][C]0.392137731264341[/C][C]0.784275462528682[/C][C]0.607862268735659[/C][/ROW]
[ROW][C]21[/C][C]0.311109215558408[/C][C]0.622218431116816[/C][C]0.688890784441592[/C][/ROW]
[ROW][C]22[/C][C]0.596917888297091[/C][C]0.806164223405818[/C][C]0.403082111702909[/C][/ROW]
[ROW][C]23[/C][C]0.66120530879561[/C][C]0.677589382408781[/C][C]0.338794691204390[/C][/ROW]
[ROW][C]24[/C][C]0.611769918290068[/C][C]0.776460163419865[/C][C]0.388230081709933[/C][/ROW]
[ROW][C]25[/C][C]0.592499906671537[/C][C]0.815000186656926[/C][C]0.407500093328463[/C][/ROW]
[ROW][C]26[/C][C]0.682080200516244[/C][C]0.635839598967513[/C][C]0.317919799483756[/C][/ROW]
[ROW][C]27[/C][C]0.654918063982162[/C][C]0.690163872035677[/C][C]0.345081936017838[/C][/ROW]
[ROW][C]28[/C][C]0.574428749428025[/C][C]0.85114250114395[/C][C]0.425571250571975[/C][/ROW]
[ROW][C]29[/C][C]0.60943473315636[/C][C]0.781130533687279[/C][C]0.390565266843639[/C][/ROW]
[ROW][C]30[/C][C]0.551125658459404[/C][C]0.897748683081193[/C][C]0.448874341540596[/C][/ROW]
[ROW][C]31[/C][C]0.475961593500557[/C][C]0.951923187001114[/C][C]0.524038406499443[/C][/ROW]
[ROW][C]32[/C][C]0.553210085264606[/C][C]0.893579829470787[/C][C]0.446789914735394[/C][/ROW]
[ROW][C]33[/C][C]0.476229550365818[/C][C]0.952459100731637[/C][C]0.523770449634182[/C][/ROW]
[ROW][C]34[/C][C]0.407389853212567[/C][C]0.814779706425133[/C][C]0.592610146787433[/C][/ROW]
[ROW][C]35[/C][C]0.340917163510232[/C][C]0.681834327020464[/C][C]0.659082836489768[/C][/ROW]
[ROW][C]36[/C][C]0.350286422301174[/C][C]0.700572844602347[/C][C]0.649713577698826[/C][/ROW]
[ROW][C]37[/C][C]0.422697301717864[/C][C]0.845394603435729[/C][C]0.577302698282136[/C][/ROW]
[ROW][C]38[/C][C]0.514856094099313[/C][C]0.970287811801374[/C][C]0.485143905900687[/C][/ROW]
[ROW][C]39[/C][C]0.344308351009028[/C][C]0.688616702018056[/C][C]0.655691648990972[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67490&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.4917411050691320.9834822101382650.508258894930868
200.3921377312643410.7842754625286820.607862268735659
210.3111092155584080.6222184311168160.688890784441592
220.5969178882970910.8061642234058180.403082111702909
230.661205308795610.6775893824087810.338794691204390
240.6117699182900680.7764601634198650.388230081709933
250.5924999066715370.8150001866569260.407500093328463
260.6820802005162440.6358395989675130.317919799483756
270.6549180639821620.6901638720356770.345081936017838
280.5744287494280250.851142501143950.425571250571975
290.609434733156360.7811305336872790.390565266843639
300.5511256584594040.8977486830811930.448874341540596
310.4759615935005570.9519231870011140.524038406499443
320.5532100852646060.8935798294707870.446789914735394
330.4762295503658180.9524591007316370.523770449634182
340.4073898532125670.8147797064251330.592610146787433
350.3409171635102320.6818343270204640.659082836489768
360.3502864223011740.7005728446023470.649713577698826
370.4226973017178640.8453946034357290.577302698282136
380.5148560940993130.9702878118013740.485143905900687
390.3443083510090280.6886167020180560.655691648990972







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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