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 computationTue, 21 Dec 2010 11:39:48 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/21/t1292931471nvnq6rau0vu92xu.htm/, Retrieved Thu, 09 May 2024 02:02:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=113302, Retrieved Thu, 09 May 2024 02:02:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact157
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Data Series] [Bivariate dataset] [2008-01-05 23:51:08] [74be16979710d4c4e7c6647856088456]
F RMPD  [Univariate Explorative Data Analysis] [Colombia Coffee] [2008-01-07 14:21:11] [74be16979710d4c4e7c6647856088456]
- RMPD    [Univariate Explorative Data Analysis] [Workshop 6, Tutor...] [2010-11-07 12:24:29] [8ffb4cfa64b4677df0d2c448735a40bb]
- R P       [Univariate Explorative Data Analysis] [WS6 2. Technique 2] [2010-11-11 18:06:41] [afe9379cca749d06b3d6872e02cc47ed]
- RMPD        [Multiple Regression] [Apple Inc - Multi...] [2010-12-11 10:33:09] [afe9379cca749d06b3d6872e02cc47ed]
-    D          [Multiple Regression] [WS10 Multiple Reg...] [2010-12-13 13:48:19] [afe9379cca749d06b3d6872e02cc47ed]
-    D            [Multiple Regression] [Paper - Multiple ...] [2010-12-21 11:10:31] [18fa53e8b37a5effc0c5f8a5122cdd2d]
-   PD              [Multiple Regression] [Paper - Multiple ...] [2010-12-21 11:34:09] [18fa53e8b37a5effc0c5f8a5122cdd2d]
-   P                   [Multiple Regression] [Paper - Multiple ...] [2010-12-21 11:39:48] [89d441ae0711e9b79b5d358f420c1317] [Current]
Feedback Forum

Post a new message
Dataseries X:
105.31	1576.23	29.29
105.63	1546.37	28.99
106.02	1545.05	28.91
105.85	1552.34	29.29
106.57	1594.3	30.96
106.48	1605.78	30.57
106.60	1673.21	30.59
106.75	1612.94	31.39
106.69	1566.34	31.28
106.69	1530.17	31.1
106.93	1582.54	31.7
107.21	1702.16	32.57
107.88	1701.93	32.49
108.84	1811.15	32.46
108.96	1924.2	32.3
109.52	2034.25	32.97
108.45	2011.13	32.9
108.67	2013.04	32.93
108.96	2151.67	33.72
108.76	1902.09	33.33
107.85	1944.01	33.44
108.78	1916.67	33.89
107.51	1967.31	34.34
108.83	2119.88	33.56
111.54	2216.38	32.67
111.74	2522.83	32.57
112.04	2647.64	33.23
111.74	2631.23	32.85
111.81	2693.41	32.61
111.86	3021.76	32.57
114.23	2953.67	32.98
114.80	2796.8	31.33
115.17	2672.05	29.8
115.11	2251.23	28.06
114.43	2046.08	25.47
114.66	2420.04	24.65
115.11	2608.89	23.94
117.74	2660.47	23.89
118.18	2493.98	23.54
118.56	2541.7	24.28
117.63	2554.6	25.51
117.71	2699.61	27.03
117.46	2805.48	27.09
117.37	2956.66	27.3
117.34	3149.51	27.11
117.09	3372.5	26.39
116.65	3379.33	27.54
116.71	3517.54	26.85
116.82	3527.34	26.82
117.33	3281.06	25.9
117.95	3089.65	24.96
123.53	3222.76	25.4
124.91	3165.76	24.38
125.99	3232.43	24.73
126.29	3229.54	25.43
125.68	3071.74	26.04
125.52	2850.17	25.59




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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
PC&S[t] = + 113.738843991343 -0.00207277898359385PCacao[t] -0.273357797722096PSuiker[t] + 1.01210858462569M1[t] + 1.56513385120318M2[t] + 1.46759879453859M3[t] + 2.52188611260808M4[t] + 2.28336555273651M5[t] + 2.48749590591574M6[t] + 2.88797250466192M7[t] + 2.25912430046324M8[t] + 1.54326470862961M9[t] + 0.578952930550244M10[t] -0.408248904330402M11[t] + 0.373660308371163t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
PC&S[t] =  +  113.738843991343 -0.00207277898359385PCacao[t] -0.273357797722096PSuiker[t] +  1.01210858462569M1[t] +  1.56513385120318M2[t] +  1.46759879453859M3[t] +  2.52188611260808M4[t] +  2.28336555273651M5[t] +  2.48749590591574M6[t] +  2.88797250466192M7[t] +  2.25912430046324M8[t] +  1.54326470862961M9[t] +  0.578952930550244M10[t] -0.408248904330402M11[t] +  0.373660308371163t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113302&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]PC&S[t] =  +  113.738843991343 -0.00207277898359385PCacao[t] -0.273357797722096PSuiker[t] +  1.01210858462569M1[t] +  1.56513385120318M2[t] +  1.46759879453859M3[t] +  2.52188611260808M4[t] +  2.28336555273651M5[t] +  2.48749590591574M6[t] +  2.88797250466192M7[t] +  2.25912430046324M8[t] +  1.54326470862961M9[t] +  0.578952930550244M10[t] -0.408248904330402M11[t] +  0.373660308371163t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113302&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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
PC&S[t] = + 113.738843991343 -0.00207277898359385PCacao[t] -0.273357797722096PSuiker[t] + 1.01210858462569M1[t] + 1.56513385120318M2[t] + 1.46759879453859M3[t] + 2.52188611260808M4[t] + 2.28336555273651M5[t] + 2.48749590591574M6[t] + 2.88797250466192M7[t] + 2.25912430046324M8[t] + 1.54326470862961M9[t] + 0.578952930550244M10[t] -0.408248904330402M11[t] + 0.373660308371163t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)113.7388439913433.04869337.307400
PCacao-0.002072778983593850.000988-2.09820.0419420.020971
PSuiker-0.2733577977220960.09366-2.91860.0056280.002814
M11.012108584625691.0414550.97180.3367030.168352
M21.565133851203181.0426831.50110.140820.07041
M31.467598794538591.0379751.41390.1647590.08238
M42.521886112608081.0339862.4390.0190350.009517
M52.283365552736511.0307172.21530.0322150.016107
M62.487495905915741.0326442.40890.0204670.010233
M72.887972504661921.0339892.7930.007830.003915
M82.259124300463241.035042.18260.0347040.017352
M91.543264708629611.0393351.48490.1450490.072524
M100.5789529305502441.0916190.53040.5986540.299327
M11-0.4082489043304021.098948-0.37150.712140.35607
t0.3736603083711630.0437928.532500

\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) & 113.738843991343 & 3.048693 & 37.3074 & 0 & 0 \tabularnewline
PCacao & -0.00207277898359385 & 0.000988 & -2.0982 & 0.041942 & 0.020971 \tabularnewline
PSuiker & -0.273357797722096 & 0.09366 & -2.9186 & 0.005628 & 0.002814 \tabularnewline
M1 & 1.01210858462569 & 1.041455 & 0.9718 & 0.336703 & 0.168352 \tabularnewline
M2 & 1.56513385120318 & 1.042683 & 1.5011 & 0.14082 & 0.07041 \tabularnewline
M3 & 1.46759879453859 & 1.037975 & 1.4139 & 0.164759 & 0.08238 \tabularnewline
M4 & 2.52188611260808 & 1.033986 & 2.439 & 0.019035 & 0.009517 \tabularnewline
M5 & 2.28336555273651 & 1.030717 & 2.2153 & 0.032215 & 0.016107 \tabularnewline
M6 & 2.48749590591574 & 1.032644 & 2.4089 & 0.020467 & 0.010233 \tabularnewline
M7 & 2.88797250466192 & 1.033989 & 2.793 & 0.00783 & 0.003915 \tabularnewline
M8 & 2.25912430046324 & 1.03504 & 2.1826 & 0.034704 & 0.017352 \tabularnewline
M9 & 1.54326470862961 & 1.039335 & 1.4849 & 0.145049 & 0.072524 \tabularnewline
M10 & 0.578952930550244 & 1.091619 & 0.5304 & 0.598654 & 0.299327 \tabularnewline
M11 & -0.408248904330402 & 1.098948 & -0.3715 & 0.71214 & 0.35607 \tabularnewline
t & 0.373660308371163 & 0.043792 & 8.5325 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113302&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]113.738843991343[/C][C]3.048693[/C][C]37.3074[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]PCacao[/C][C]-0.00207277898359385[/C][C]0.000988[/C][C]-2.0982[/C][C]0.041942[/C][C]0.020971[/C][/ROW]
[ROW][C]PSuiker[/C][C]-0.273357797722096[/C][C]0.09366[/C][C]-2.9186[/C][C]0.005628[/C][C]0.002814[/C][/ROW]
[ROW][C]M1[/C][C]1.01210858462569[/C][C]1.041455[/C][C]0.9718[/C][C]0.336703[/C][C]0.168352[/C][/ROW]
[ROW][C]M2[/C][C]1.56513385120318[/C][C]1.042683[/C][C]1.5011[/C][C]0.14082[/C][C]0.07041[/C][/ROW]
[ROW][C]M3[/C][C]1.46759879453859[/C][C]1.037975[/C][C]1.4139[/C][C]0.164759[/C][C]0.08238[/C][/ROW]
[ROW][C]M4[/C][C]2.52188611260808[/C][C]1.033986[/C][C]2.439[/C][C]0.019035[/C][C]0.009517[/C][/ROW]
[ROW][C]M5[/C][C]2.28336555273651[/C][C]1.030717[/C][C]2.2153[/C][C]0.032215[/C][C]0.016107[/C][/ROW]
[ROW][C]M6[/C][C]2.48749590591574[/C][C]1.032644[/C][C]2.4089[/C][C]0.020467[/C][C]0.010233[/C][/ROW]
[ROW][C]M7[/C][C]2.88797250466192[/C][C]1.033989[/C][C]2.793[/C][C]0.00783[/C][C]0.003915[/C][/ROW]
[ROW][C]M8[/C][C]2.25912430046324[/C][C]1.03504[/C][C]2.1826[/C][C]0.034704[/C][C]0.017352[/C][/ROW]
[ROW][C]M9[/C][C]1.54326470862961[/C][C]1.039335[/C][C]1.4849[/C][C]0.145049[/C][C]0.072524[/C][/ROW]
[ROW][C]M10[/C][C]0.578952930550244[/C][C]1.091619[/C][C]0.5304[/C][C]0.598654[/C][C]0.299327[/C][/ROW]
[ROW][C]M11[/C][C]-0.408248904330402[/C][C]1.098948[/C][C]-0.3715[/C][C]0.71214[/C][C]0.35607[/C][/ROW]
[ROW][C]t[/C][C]0.373660308371163[/C][C]0.043792[/C][C]8.5325[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113302&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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)113.7388439913433.04869337.307400
PCacao-0.002072778983593850.000988-2.09820.0419420.020971
PSuiker-0.2733577977220960.09366-2.91860.0056280.002814
M11.012108584625691.0414550.97180.3367030.168352
M21.565133851203181.0426831.50110.140820.07041
M31.467598794538591.0379751.41390.1647590.08238
M42.521886112608081.0339862.4390.0190350.009517
M52.283365552736511.0307172.21530.0322150.016107
M62.487495905915741.0326442.40890.0204670.010233
M72.887972504661921.0339892.7930.007830.003915
M82.259124300463241.035042.18260.0347040.017352
M91.543264708629611.0393351.48490.1450490.072524
M100.5789529305502441.0916190.53040.5986540.299327
M11-0.4082489043304021.098948-0.37150.712140.35607
t0.3736603083711630.0437928.532500







Multiple Linear Regression - Regression Statistics
Multiple R0.974842575525699
R-squared0.950318047057578
Adjusted R-squared0.933757396076771
F-TEST (value)57.3840997047121
F-TEST (DF numerator)14
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.53589691409404
Sum Squared Residuals99.0771318903916

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.974842575525699 \tabularnewline
R-squared & 0.950318047057578 \tabularnewline
Adjusted R-squared & 0.933757396076771 \tabularnewline
F-TEST (value) & 57.3840997047121 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.53589691409404 \tabularnewline
Sum Squared Residuals & 99.0771318903916 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113302&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.974842575525699[/C][/ROW]
[ROW][C]R-squared[/C][C]0.950318047057578[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.933757396076771[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]57.3840997047121[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.53589691409404[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]99.0771318903916[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113302&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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.974842575525699
R-squared0.950318047057578
Adjusted R-squared0.933757396076771
F-TEST (value)57.3840997047121
F-TEST (DF numerator)14
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.53589691409404
Sum Squared Residuals99.0771318903916







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1105.31103.8507865717491.45921342825070
2105.63104.9213726664650.708627333534891
3106.02105.2221026102480.797897389752195
4105.85106.531063714764-0.681063714763661
5106.57106.1227221349160.447277865084235
6106.48106.783326834846-0.30332683484611
7106.6107.412229099145-0.812229099145282
8106.75107.063281354481-0.313281354481288
9106.69106.847742929404-0.157742929403725
10106.69106.3812682791220.308731720877913
11106.93105.4951606386091.43483936139147
12107.21105.7913027452741.41869725472561
13107.88107.1994170012550.680582998744768
14108.84107.9079143895470.932085610452576
15108.96107.9934492247940.966550775205752
16109.52109.0101377996170.509862200383406
17108.45109.212335244057-0.762335244057418
18108.67109.777966163817-1.10796616381749
19108.96110.048801060239-1.08880106023876
20108.76110.417546884248-1.65754688424821
21107.85109.958387348044-2.10838734804407
22108.78109.301394646772-0.521394646772368
23107.51108.459876583559-0.949876583558746
24108.83109.138760988957-0.308760988956638
25111.54110.5677951500090.972204849990654
26111.74110.8866133852080.853386614792113
27112.04110.7236189454761.31638105452449
28111.74112.289456838171-0.549456838171347
29111.81112.361317060924-0.551317060924372
30111.86112.269445055121-0.409445055120619
31114.23113.0726407861651.15735921383520
32114.8113.5936500957351.20634990426489
33115.17113.9282674209911.24173257900922
34115.11114.6855253711950.424474628805016
35114.43115.20521114927-0.775211149269998
36114.66115.436137327399-0.776137327398937
37115.11116.624545945727-1.51454594572678
38117.74117.4579854705880.282014529412228
39118.18118.1748829244760.00511707552440113
40118.56119.301632767505-0.741632767504808
41117.63119.073803575918-1.44380357591787
42117.71118.935516704520-1.22551670451974
43117.46119.473807032781-2.01380703278067
44117.37118.847851272692-1.47785127269179
45117.34118.157854543810-0.817854543810452
46117.09117.301811702911-0.211811702910562
47116.65116.3597516285630.290248371437276
48116.71117.04379893837-0.333798938370038
49116.82118.417455331259-1.59745533125934
50117.33120.106114088192-2.77611408819181
51117.95121.035946295007-3.08594629500683
52123.53122.0677088799441.46229112005641
53124.91122.5998219841852.31017801581542
54125.99122.9437452416963.04625475830396
55126.29123.5325220216702.75747797832951
56125.68123.4376703928442.2423296071564
57125.52123.6777477577511.84225224224902

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 105.31 & 103.850786571749 & 1.45921342825070 \tabularnewline
2 & 105.63 & 104.921372666465 & 0.708627333534891 \tabularnewline
3 & 106.02 & 105.222102610248 & 0.797897389752195 \tabularnewline
4 & 105.85 & 106.531063714764 & -0.681063714763661 \tabularnewline
5 & 106.57 & 106.122722134916 & 0.447277865084235 \tabularnewline
6 & 106.48 & 106.783326834846 & -0.30332683484611 \tabularnewline
7 & 106.6 & 107.412229099145 & -0.812229099145282 \tabularnewline
8 & 106.75 & 107.063281354481 & -0.313281354481288 \tabularnewline
9 & 106.69 & 106.847742929404 & -0.157742929403725 \tabularnewline
10 & 106.69 & 106.381268279122 & 0.308731720877913 \tabularnewline
11 & 106.93 & 105.495160638609 & 1.43483936139147 \tabularnewline
12 & 107.21 & 105.791302745274 & 1.41869725472561 \tabularnewline
13 & 107.88 & 107.199417001255 & 0.680582998744768 \tabularnewline
14 & 108.84 & 107.907914389547 & 0.932085610452576 \tabularnewline
15 & 108.96 & 107.993449224794 & 0.966550775205752 \tabularnewline
16 & 109.52 & 109.010137799617 & 0.509862200383406 \tabularnewline
17 & 108.45 & 109.212335244057 & -0.762335244057418 \tabularnewline
18 & 108.67 & 109.777966163817 & -1.10796616381749 \tabularnewline
19 & 108.96 & 110.048801060239 & -1.08880106023876 \tabularnewline
20 & 108.76 & 110.417546884248 & -1.65754688424821 \tabularnewline
21 & 107.85 & 109.958387348044 & -2.10838734804407 \tabularnewline
22 & 108.78 & 109.301394646772 & -0.521394646772368 \tabularnewline
23 & 107.51 & 108.459876583559 & -0.949876583558746 \tabularnewline
24 & 108.83 & 109.138760988957 & -0.308760988956638 \tabularnewline
25 & 111.54 & 110.567795150009 & 0.972204849990654 \tabularnewline
26 & 111.74 & 110.886613385208 & 0.853386614792113 \tabularnewline
27 & 112.04 & 110.723618945476 & 1.31638105452449 \tabularnewline
28 & 111.74 & 112.289456838171 & -0.549456838171347 \tabularnewline
29 & 111.81 & 112.361317060924 & -0.551317060924372 \tabularnewline
30 & 111.86 & 112.269445055121 & -0.409445055120619 \tabularnewline
31 & 114.23 & 113.072640786165 & 1.15735921383520 \tabularnewline
32 & 114.8 & 113.593650095735 & 1.20634990426489 \tabularnewline
33 & 115.17 & 113.928267420991 & 1.24173257900922 \tabularnewline
34 & 115.11 & 114.685525371195 & 0.424474628805016 \tabularnewline
35 & 114.43 & 115.20521114927 & -0.775211149269998 \tabularnewline
36 & 114.66 & 115.436137327399 & -0.776137327398937 \tabularnewline
37 & 115.11 & 116.624545945727 & -1.51454594572678 \tabularnewline
38 & 117.74 & 117.457985470588 & 0.282014529412228 \tabularnewline
39 & 118.18 & 118.174882924476 & 0.00511707552440113 \tabularnewline
40 & 118.56 & 119.301632767505 & -0.741632767504808 \tabularnewline
41 & 117.63 & 119.073803575918 & -1.44380357591787 \tabularnewline
42 & 117.71 & 118.935516704520 & -1.22551670451974 \tabularnewline
43 & 117.46 & 119.473807032781 & -2.01380703278067 \tabularnewline
44 & 117.37 & 118.847851272692 & -1.47785127269179 \tabularnewline
45 & 117.34 & 118.157854543810 & -0.817854543810452 \tabularnewline
46 & 117.09 & 117.301811702911 & -0.211811702910562 \tabularnewline
47 & 116.65 & 116.359751628563 & 0.290248371437276 \tabularnewline
48 & 116.71 & 117.04379893837 & -0.333798938370038 \tabularnewline
49 & 116.82 & 118.417455331259 & -1.59745533125934 \tabularnewline
50 & 117.33 & 120.106114088192 & -2.77611408819181 \tabularnewline
51 & 117.95 & 121.035946295007 & -3.08594629500683 \tabularnewline
52 & 123.53 & 122.067708879944 & 1.46229112005641 \tabularnewline
53 & 124.91 & 122.599821984185 & 2.31017801581542 \tabularnewline
54 & 125.99 & 122.943745241696 & 3.04625475830396 \tabularnewline
55 & 126.29 & 123.532522021670 & 2.75747797832951 \tabularnewline
56 & 125.68 & 123.437670392844 & 2.2423296071564 \tabularnewline
57 & 125.52 & 123.677747757751 & 1.84225224224902 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113302&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]105.31[/C][C]103.850786571749[/C][C]1.45921342825070[/C][/ROW]
[ROW][C]2[/C][C]105.63[/C][C]104.921372666465[/C][C]0.708627333534891[/C][/ROW]
[ROW][C]3[/C][C]106.02[/C][C]105.222102610248[/C][C]0.797897389752195[/C][/ROW]
[ROW][C]4[/C][C]105.85[/C][C]106.531063714764[/C][C]-0.681063714763661[/C][/ROW]
[ROW][C]5[/C][C]106.57[/C][C]106.122722134916[/C][C]0.447277865084235[/C][/ROW]
[ROW][C]6[/C][C]106.48[/C][C]106.783326834846[/C][C]-0.30332683484611[/C][/ROW]
[ROW][C]7[/C][C]106.6[/C][C]107.412229099145[/C][C]-0.812229099145282[/C][/ROW]
[ROW][C]8[/C][C]106.75[/C][C]107.063281354481[/C][C]-0.313281354481288[/C][/ROW]
[ROW][C]9[/C][C]106.69[/C][C]106.847742929404[/C][C]-0.157742929403725[/C][/ROW]
[ROW][C]10[/C][C]106.69[/C][C]106.381268279122[/C][C]0.308731720877913[/C][/ROW]
[ROW][C]11[/C][C]106.93[/C][C]105.495160638609[/C][C]1.43483936139147[/C][/ROW]
[ROW][C]12[/C][C]107.21[/C][C]105.791302745274[/C][C]1.41869725472561[/C][/ROW]
[ROW][C]13[/C][C]107.88[/C][C]107.199417001255[/C][C]0.680582998744768[/C][/ROW]
[ROW][C]14[/C][C]108.84[/C][C]107.907914389547[/C][C]0.932085610452576[/C][/ROW]
[ROW][C]15[/C][C]108.96[/C][C]107.993449224794[/C][C]0.966550775205752[/C][/ROW]
[ROW][C]16[/C][C]109.52[/C][C]109.010137799617[/C][C]0.509862200383406[/C][/ROW]
[ROW][C]17[/C][C]108.45[/C][C]109.212335244057[/C][C]-0.762335244057418[/C][/ROW]
[ROW][C]18[/C][C]108.67[/C][C]109.777966163817[/C][C]-1.10796616381749[/C][/ROW]
[ROW][C]19[/C][C]108.96[/C][C]110.048801060239[/C][C]-1.08880106023876[/C][/ROW]
[ROW][C]20[/C][C]108.76[/C][C]110.417546884248[/C][C]-1.65754688424821[/C][/ROW]
[ROW][C]21[/C][C]107.85[/C][C]109.958387348044[/C][C]-2.10838734804407[/C][/ROW]
[ROW][C]22[/C][C]108.78[/C][C]109.301394646772[/C][C]-0.521394646772368[/C][/ROW]
[ROW][C]23[/C][C]107.51[/C][C]108.459876583559[/C][C]-0.949876583558746[/C][/ROW]
[ROW][C]24[/C][C]108.83[/C][C]109.138760988957[/C][C]-0.308760988956638[/C][/ROW]
[ROW][C]25[/C][C]111.54[/C][C]110.567795150009[/C][C]0.972204849990654[/C][/ROW]
[ROW][C]26[/C][C]111.74[/C][C]110.886613385208[/C][C]0.853386614792113[/C][/ROW]
[ROW][C]27[/C][C]112.04[/C][C]110.723618945476[/C][C]1.31638105452449[/C][/ROW]
[ROW][C]28[/C][C]111.74[/C][C]112.289456838171[/C][C]-0.549456838171347[/C][/ROW]
[ROW][C]29[/C][C]111.81[/C][C]112.361317060924[/C][C]-0.551317060924372[/C][/ROW]
[ROW][C]30[/C][C]111.86[/C][C]112.269445055121[/C][C]-0.409445055120619[/C][/ROW]
[ROW][C]31[/C][C]114.23[/C][C]113.072640786165[/C][C]1.15735921383520[/C][/ROW]
[ROW][C]32[/C][C]114.8[/C][C]113.593650095735[/C][C]1.20634990426489[/C][/ROW]
[ROW][C]33[/C][C]115.17[/C][C]113.928267420991[/C][C]1.24173257900922[/C][/ROW]
[ROW][C]34[/C][C]115.11[/C][C]114.685525371195[/C][C]0.424474628805016[/C][/ROW]
[ROW][C]35[/C][C]114.43[/C][C]115.20521114927[/C][C]-0.775211149269998[/C][/ROW]
[ROW][C]36[/C][C]114.66[/C][C]115.436137327399[/C][C]-0.776137327398937[/C][/ROW]
[ROW][C]37[/C][C]115.11[/C][C]116.624545945727[/C][C]-1.51454594572678[/C][/ROW]
[ROW][C]38[/C][C]117.74[/C][C]117.457985470588[/C][C]0.282014529412228[/C][/ROW]
[ROW][C]39[/C][C]118.18[/C][C]118.174882924476[/C][C]0.00511707552440113[/C][/ROW]
[ROW][C]40[/C][C]118.56[/C][C]119.301632767505[/C][C]-0.741632767504808[/C][/ROW]
[ROW][C]41[/C][C]117.63[/C][C]119.073803575918[/C][C]-1.44380357591787[/C][/ROW]
[ROW][C]42[/C][C]117.71[/C][C]118.935516704520[/C][C]-1.22551670451974[/C][/ROW]
[ROW][C]43[/C][C]117.46[/C][C]119.473807032781[/C][C]-2.01380703278067[/C][/ROW]
[ROW][C]44[/C][C]117.37[/C][C]118.847851272692[/C][C]-1.47785127269179[/C][/ROW]
[ROW][C]45[/C][C]117.34[/C][C]118.157854543810[/C][C]-0.817854543810452[/C][/ROW]
[ROW][C]46[/C][C]117.09[/C][C]117.301811702911[/C][C]-0.211811702910562[/C][/ROW]
[ROW][C]47[/C][C]116.65[/C][C]116.359751628563[/C][C]0.290248371437276[/C][/ROW]
[ROW][C]48[/C][C]116.71[/C][C]117.04379893837[/C][C]-0.333798938370038[/C][/ROW]
[ROW][C]49[/C][C]116.82[/C][C]118.417455331259[/C][C]-1.59745533125934[/C][/ROW]
[ROW][C]50[/C][C]117.33[/C][C]120.106114088192[/C][C]-2.77611408819181[/C][/ROW]
[ROW][C]51[/C][C]117.95[/C][C]121.035946295007[/C][C]-3.08594629500683[/C][/ROW]
[ROW][C]52[/C][C]123.53[/C][C]122.067708879944[/C][C]1.46229112005641[/C][/ROW]
[ROW][C]53[/C][C]124.91[/C][C]122.599821984185[/C][C]2.31017801581542[/C][/ROW]
[ROW][C]54[/C][C]125.99[/C][C]122.943745241696[/C][C]3.04625475830396[/C][/ROW]
[ROW][C]55[/C][C]126.29[/C][C]123.532522021670[/C][C]2.75747797832951[/C][/ROW]
[ROW][C]56[/C][C]125.68[/C][C]123.437670392844[/C][C]2.2423296071564[/C][/ROW]
[ROW][C]57[/C][C]125.52[/C][C]123.677747757751[/C][C]1.84225224224902[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113302&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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
1105.31103.8507865717491.45921342825070
2105.63104.9213726664650.708627333534891
3106.02105.2221026102480.797897389752195
4105.85106.531063714764-0.681063714763661
5106.57106.1227221349160.447277865084235
6106.48106.783326834846-0.30332683484611
7106.6107.412229099145-0.812229099145282
8106.75107.063281354481-0.313281354481288
9106.69106.847742929404-0.157742929403725
10106.69106.3812682791220.308731720877913
11106.93105.4951606386091.43483936139147
12107.21105.7913027452741.41869725472561
13107.88107.1994170012550.680582998744768
14108.84107.9079143895470.932085610452576
15108.96107.9934492247940.966550775205752
16109.52109.0101377996170.509862200383406
17108.45109.212335244057-0.762335244057418
18108.67109.777966163817-1.10796616381749
19108.96110.048801060239-1.08880106023876
20108.76110.417546884248-1.65754688424821
21107.85109.958387348044-2.10838734804407
22108.78109.301394646772-0.521394646772368
23107.51108.459876583559-0.949876583558746
24108.83109.138760988957-0.308760988956638
25111.54110.5677951500090.972204849990654
26111.74110.8866133852080.853386614792113
27112.04110.7236189454761.31638105452449
28111.74112.289456838171-0.549456838171347
29111.81112.361317060924-0.551317060924372
30111.86112.269445055121-0.409445055120619
31114.23113.0726407861651.15735921383520
32114.8113.5936500957351.20634990426489
33115.17113.9282674209911.24173257900922
34115.11114.6855253711950.424474628805016
35114.43115.20521114927-0.775211149269998
36114.66115.436137327399-0.776137327398937
37115.11116.624545945727-1.51454594572678
38117.74117.4579854705880.282014529412228
39118.18118.1748829244760.00511707552440113
40118.56119.301632767505-0.741632767504808
41117.63119.073803575918-1.44380357591787
42117.71118.935516704520-1.22551670451974
43117.46119.473807032781-2.01380703278067
44117.37118.847851272692-1.47785127269179
45117.34118.157854543810-0.817854543810452
46117.09117.301811702911-0.211811702910562
47116.65116.3597516285630.290248371437276
48116.71117.04379893837-0.333798938370038
49116.82118.417455331259-1.59745533125934
50117.33120.106114088192-2.77611408819181
51117.95121.035946295007-3.08594629500683
52123.53122.0677088799441.46229112005641
53124.91122.5998219841852.31017801581542
54125.99122.9437452416963.04625475830396
55126.29123.5325220216702.75747797832951
56125.68123.4376703928442.2423296071564
57125.52123.6777477577511.84225224224902







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.0004276365918510690.0008552731837021390.999572363408149
190.0006418143860181170.001283628772036230.999358185613982
200.0001064231303617230.0002128462607234470.999893576869638
210.0001402185004045090.0002804370008090170.999859781499596
222.98093109354873e-055.96186218709745e-050.999970190689065
230.0003608241396414720.0007216482792829430.999639175860359
240.0001885700310613340.0003771400621226680.99981142996894
250.002518788749717270.005037577499434530.997481211250283
260.001370011512707890.002740023025415790.998629988487292
270.0009930195920259530.001986039184051910.999006980407974
280.0003401117350601570.0006802234701203150.99965988826494
290.0001084337756609680.0002168675513219360.99989156622434
303.55216148736772e-057.10432297473544e-050.999964478385126
310.0001410119788447380.0002820239576894760.999858988021155
320.0005417602347331910.001083520469466380.999458239765267
330.006704309869348160.01340861973869630.993295690130652
340.07692261086898020.1538452217379600.92307738913102
350.05260627136570060.1052125427314010.9473937286343
360.04526825547967380.09053651095934750.954731744520326
370.1376257005511000.2752514011022010.8623742994489
380.0960333254567930.1920666509135860.903966674543207
390.8792139924916070.2415720150167850.120786007508393

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.000427636591851069 & 0.000855273183702139 & 0.999572363408149 \tabularnewline
19 & 0.000641814386018117 & 0.00128362877203623 & 0.999358185613982 \tabularnewline
20 & 0.000106423130361723 & 0.000212846260723447 & 0.999893576869638 \tabularnewline
21 & 0.000140218500404509 & 0.000280437000809017 & 0.999859781499596 \tabularnewline
22 & 2.98093109354873e-05 & 5.96186218709745e-05 & 0.999970190689065 \tabularnewline
23 & 0.000360824139641472 & 0.000721648279282943 & 0.999639175860359 \tabularnewline
24 & 0.000188570031061334 & 0.000377140062122668 & 0.99981142996894 \tabularnewline
25 & 0.00251878874971727 & 0.00503757749943453 & 0.997481211250283 \tabularnewline
26 & 0.00137001151270789 & 0.00274002302541579 & 0.998629988487292 \tabularnewline
27 & 0.000993019592025953 & 0.00198603918405191 & 0.999006980407974 \tabularnewline
28 & 0.000340111735060157 & 0.000680223470120315 & 0.99965988826494 \tabularnewline
29 & 0.000108433775660968 & 0.000216867551321936 & 0.99989156622434 \tabularnewline
30 & 3.55216148736772e-05 & 7.10432297473544e-05 & 0.999964478385126 \tabularnewline
31 & 0.000141011978844738 & 0.000282023957689476 & 0.999858988021155 \tabularnewline
32 & 0.000541760234733191 & 0.00108352046946638 & 0.999458239765267 \tabularnewline
33 & 0.00670430986934816 & 0.0134086197386963 & 0.993295690130652 \tabularnewline
34 & 0.0769226108689802 & 0.153845221737960 & 0.92307738913102 \tabularnewline
35 & 0.0526062713657006 & 0.105212542731401 & 0.9473937286343 \tabularnewline
36 & 0.0452682554796738 & 0.0905365109593475 & 0.954731744520326 \tabularnewline
37 & 0.137625700551100 & 0.275251401102201 & 0.8623742994489 \tabularnewline
38 & 0.096033325456793 & 0.192066650913586 & 0.903966674543207 \tabularnewline
39 & 0.879213992491607 & 0.241572015016785 & 0.120786007508393 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113302&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]18[/C][C]0.000427636591851069[/C][C]0.000855273183702139[/C][C]0.999572363408149[/C][/ROW]
[ROW][C]19[/C][C]0.000641814386018117[/C][C]0.00128362877203623[/C][C]0.999358185613982[/C][/ROW]
[ROW][C]20[/C][C]0.000106423130361723[/C][C]0.000212846260723447[/C][C]0.999893576869638[/C][/ROW]
[ROW][C]21[/C][C]0.000140218500404509[/C][C]0.000280437000809017[/C][C]0.999859781499596[/C][/ROW]
[ROW][C]22[/C][C]2.98093109354873e-05[/C][C]5.96186218709745e-05[/C][C]0.999970190689065[/C][/ROW]
[ROW][C]23[/C][C]0.000360824139641472[/C][C]0.000721648279282943[/C][C]0.999639175860359[/C][/ROW]
[ROW][C]24[/C][C]0.000188570031061334[/C][C]0.000377140062122668[/C][C]0.99981142996894[/C][/ROW]
[ROW][C]25[/C][C]0.00251878874971727[/C][C]0.00503757749943453[/C][C]0.997481211250283[/C][/ROW]
[ROW][C]26[/C][C]0.00137001151270789[/C][C]0.00274002302541579[/C][C]0.998629988487292[/C][/ROW]
[ROW][C]27[/C][C]0.000993019592025953[/C][C]0.00198603918405191[/C][C]0.999006980407974[/C][/ROW]
[ROW][C]28[/C][C]0.000340111735060157[/C][C]0.000680223470120315[/C][C]0.99965988826494[/C][/ROW]
[ROW][C]29[/C][C]0.000108433775660968[/C][C]0.000216867551321936[/C][C]0.99989156622434[/C][/ROW]
[ROW][C]30[/C][C]3.55216148736772e-05[/C][C]7.10432297473544e-05[/C][C]0.999964478385126[/C][/ROW]
[ROW][C]31[/C][C]0.000141011978844738[/C][C]0.000282023957689476[/C][C]0.999858988021155[/C][/ROW]
[ROW][C]32[/C][C]0.000541760234733191[/C][C]0.00108352046946638[/C][C]0.999458239765267[/C][/ROW]
[ROW][C]33[/C][C]0.00670430986934816[/C][C]0.0134086197386963[/C][C]0.993295690130652[/C][/ROW]
[ROW][C]34[/C][C]0.0769226108689802[/C][C]0.153845221737960[/C][C]0.92307738913102[/C][/ROW]
[ROW][C]35[/C][C]0.0526062713657006[/C][C]0.105212542731401[/C][C]0.9473937286343[/C][/ROW]
[ROW][C]36[/C][C]0.0452682554796738[/C][C]0.0905365109593475[/C][C]0.954731744520326[/C][/ROW]
[ROW][C]37[/C][C]0.137625700551100[/C][C]0.275251401102201[/C][C]0.8623742994489[/C][/ROW]
[ROW][C]38[/C][C]0.096033325456793[/C][C]0.192066650913586[/C][C]0.903966674543207[/C][/ROW]
[ROW][C]39[/C][C]0.879213992491607[/C][C]0.241572015016785[/C][C]0.120786007508393[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113302&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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
180.0004276365918510690.0008552731837021390.999572363408149
190.0006418143860181170.001283628772036230.999358185613982
200.0001064231303617230.0002128462607234470.999893576869638
210.0001402185004045090.0002804370008090170.999859781499596
222.98093109354873e-055.96186218709745e-050.999970190689065
230.0003608241396414720.0007216482792829430.999639175860359
240.0001885700310613340.0003771400621226680.99981142996894
250.002518788749717270.005037577499434530.997481211250283
260.001370011512707890.002740023025415790.998629988487292
270.0009930195920259530.001986039184051910.999006980407974
280.0003401117350601570.0006802234701203150.99965988826494
290.0001084337756609680.0002168675513219360.99989156622434
303.55216148736772e-057.10432297473544e-050.999964478385126
310.0001410119788447380.0002820239576894760.999858988021155
320.0005417602347331910.001083520469466380.999458239765267
330.006704309869348160.01340861973869630.993295690130652
340.07692261086898020.1538452217379600.92307738913102
350.05260627136570060.1052125427314010.9473937286343
360.04526825547967380.09053651095934750.954731744520326
370.1376257005511000.2752514011022010.8623742994489
380.0960333254567930.1920666509135860.903966674543207
390.8792139924916070.2415720150167850.120786007508393







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level150.681818181818182NOK
5% type I error level160.727272727272727NOK
10% type I error level170.772727272727273NOK

\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 & 15 & 0.681818181818182 & NOK \tabularnewline
5% type I error level & 16 & 0.727272727272727 & NOK \tabularnewline
10% type I error level & 17 & 0.772727272727273 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113302&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]15[/C][C]0.681818181818182[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]16[/C][C]0.727272727272727[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]17[/C][C]0.772727272727273[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113302&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113302&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 level150.681818181818182NOK
5% type I error level160.727272727272727NOK
10% type I error level170.772727272727273NOK



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