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 computationSat, 05 Dec 2009 17:58:02 -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/06/t12600611223joh8467d43csx8.htm/, Retrieved Mon, 06 May 2024 07:08:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64324, Retrieved Mon, 06 May 2024 07:08:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact141
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:06:21] [b98453cac15ba1066b407e146608df68]
- R  D    [Multiple Regression] [PAPER] [2009-12-02 20:23:58] [37daf76adc256428993ec4063536c760]
-    D        [Multiple Regression] [PAPER] [2009-12-06 00:58:02] [2d9a0b3c2f25bb8f387fafb994d0d852] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.00	0
100.83	0
101.51	0
102.16	0
102.39	0
102.54	0
102.85	0
103.47	0
103.57	0
103.69	0
103.50	0
103.47	0
103.45	0
103.48	0
103.93	0
103.89	0
104.40	0
104.79	0
104.77	0
105.13	0
105.26	0
104.96	0
104.75	0
105.01	0
105.15	0
105.20	0
105.77	0
105.78	0
106.26	0
106.13	0
106.12	0
106.57	0
106.44	0
106.54	0
107.10	0
108.10	0
108.40	0
108.84	0
109.62	0
110.42	0
110.67	0
111.66	0
112.28	0
112.87	1
112.18	1
112.36	1
112.16	1
111.49	1
111.25	1
111.36	1
111.74	1
111.10	1
111.33	1
111.25	1
111.04	1
110.97	1
111.31	1
111.02	1
111.07	1
111.36	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 100.798537205082 + 0.405499092558974X[t] -0.0388475499092781M1[t] + 0.0607840290381172M2[t] + 0.440415607985486M3[t] + 0.404047186932851M4[t] + 0.551678765880222M5[t] + 0.62331034482759M6[t] + 0.568941923774957M7[t] + 0.685473684210528M8[t] + 0.443105263157899M9[t] + 0.212736842105264M10[t] + 0.0223684210526305M11[t] + 0.192368421052632t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  100.798537205082 +  0.405499092558974X[t] -0.0388475499092781M1[t] +  0.0607840290381172M2[t] +  0.440415607985486M3[t] +  0.404047186932851M4[t] +  0.551678765880222M5[t] +  0.62331034482759M6[t] +  0.568941923774957M7[t] +  0.685473684210528M8[t] +  0.443105263157899M9[t] +  0.212736842105264M10[t] +  0.0223684210526305M11[t] +  0.192368421052632t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  100.798537205082 +  0.405499092558974X[t] -0.0388475499092781M1[t] +  0.0607840290381172M2[t] +  0.440415607985486M3[t] +  0.404047186932851M4[t] +  0.551678765880222M5[t] +  0.62331034482759M6[t] +  0.568941923774957M7[t] +  0.685473684210528M8[t] +  0.443105263157899M9[t] +  0.212736842105264M10[t] +  0.0223684210526305M11[t] +  0.192368421052632t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 100.798537205082 + 0.405499092558974X[t] -0.0388475499092781M1[t] + 0.0607840290381172M2[t] + 0.440415607985486M3[t] + 0.404047186932851M4[t] + 0.551678765880222M5[t] + 0.62331034482759M6[t] + 0.568941923774957M7[t] + 0.685473684210528M8[t] + 0.443105263157899M9[t] + 0.212736842105264M10[t] + 0.0223684210526305M11[t] + 0.192368421052632t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)100.7985372050820.643474156.647400
X0.4054990925589740.5500920.73710.4647760.232388
M1-0.03884754990927810.752095-0.05170.9590290.479515
M20.06078402903811720.7508780.0810.9358320.467916
M30.4404156079854860.7499310.58730.5598910.279945
M40.4040471869328510.7492540.53930.5923040.296152
M50.5516787658802220.7488470.73670.4650430.232521
M60.623310344827590.7487110.83250.4094220.204711
M70.5689419237749570.7488470.75980.4512760.225638
M80.6854736842105280.7476810.91680.364030.182015
M90.4431052631578990.746730.59340.5558240.277912
M100.2127368421052640.7460490.28520.7768080.388404
M110.02236842105263050.7456410.030.9761980.488099
t0.1923684210526320.01425313.497100

\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) & 100.798537205082 & 0.643474 & 156.6474 & 0 & 0 \tabularnewline
X & 0.405499092558974 & 0.550092 & 0.7371 & 0.464776 & 0.232388 \tabularnewline
M1 & -0.0388475499092781 & 0.752095 & -0.0517 & 0.959029 & 0.479515 \tabularnewline
M2 & 0.0607840290381172 & 0.750878 & 0.081 & 0.935832 & 0.467916 \tabularnewline
M3 & 0.440415607985486 & 0.749931 & 0.5873 & 0.559891 & 0.279945 \tabularnewline
M4 & 0.404047186932851 & 0.749254 & 0.5393 & 0.592304 & 0.296152 \tabularnewline
M5 & 0.551678765880222 & 0.748847 & 0.7367 & 0.465043 & 0.232521 \tabularnewline
M6 & 0.62331034482759 & 0.748711 & 0.8325 & 0.409422 & 0.204711 \tabularnewline
M7 & 0.568941923774957 & 0.748847 & 0.7598 & 0.451276 & 0.225638 \tabularnewline
M8 & 0.685473684210528 & 0.747681 & 0.9168 & 0.36403 & 0.182015 \tabularnewline
M9 & 0.443105263157899 & 0.74673 & 0.5934 & 0.555824 & 0.277912 \tabularnewline
M10 & 0.212736842105264 & 0.746049 & 0.2852 & 0.776808 & 0.388404 \tabularnewline
M11 & 0.0223684210526305 & 0.745641 & 0.03 & 0.976198 & 0.488099 \tabularnewline
t & 0.192368421052632 & 0.014253 & 13.4971 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&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]100.798537205082[/C][C]0.643474[/C][C]156.6474[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.405499092558974[/C][C]0.550092[/C][C]0.7371[/C][C]0.464776[/C][C]0.232388[/C][/ROW]
[ROW][C]M1[/C][C]-0.0388475499092781[/C][C]0.752095[/C][C]-0.0517[/C][C]0.959029[/C][C]0.479515[/C][/ROW]
[ROW][C]M2[/C][C]0.0607840290381172[/C][C]0.750878[/C][C]0.081[/C][C]0.935832[/C][C]0.467916[/C][/ROW]
[ROW][C]M3[/C][C]0.440415607985486[/C][C]0.749931[/C][C]0.5873[/C][C]0.559891[/C][C]0.279945[/C][/ROW]
[ROW][C]M4[/C][C]0.404047186932851[/C][C]0.749254[/C][C]0.5393[/C][C]0.592304[/C][C]0.296152[/C][/ROW]
[ROW][C]M5[/C][C]0.551678765880222[/C][C]0.748847[/C][C]0.7367[/C][C]0.465043[/C][C]0.232521[/C][/ROW]
[ROW][C]M6[/C][C]0.62331034482759[/C][C]0.748711[/C][C]0.8325[/C][C]0.409422[/C][C]0.204711[/C][/ROW]
[ROW][C]M7[/C][C]0.568941923774957[/C][C]0.748847[/C][C]0.7598[/C][C]0.451276[/C][C]0.225638[/C][/ROW]
[ROW][C]M8[/C][C]0.685473684210528[/C][C]0.747681[/C][C]0.9168[/C][C]0.36403[/C][C]0.182015[/C][/ROW]
[ROW][C]M9[/C][C]0.443105263157899[/C][C]0.74673[/C][C]0.5934[/C][C]0.555824[/C][C]0.277912[/C][/ROW]
[ROW][C]M10[/C][C]0.212736842105264[/C][C]0.746049[/C][C]0.2852[/C][C]0.776808[/C][C]0.388404[/C][/ROW]
[ROW][C]M11[/C][C]0.0223684210526305[/C][C]0.745641[/C][C]0.03[/C][C]0.976198[/C][C]0.488099[/C][/ROW]
[ROW][C]t[/C][C]0.192368421052632[/C][C]0.014253[/C][C]13.4971[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64324&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)100.7985372050820.643474156.647400
X0.4054990925589740.5500920.73710.4647760.232388
M1-0.03884754990927810.752095-0.05170.9590290.479515
M20.06078402903811720.7508780.0810.9358320.467916
M30.4404156079854860.7499310.58730.5598910.279945
M40.4040471869328510.7492540.53930.5923040.296152
M50.5516787658802220.7488470.73670.4650430.232521
M60.623310344827590.7487110.83250.4094220.204711
M70.5689419237749570.7488470.75980.4512760.225638
M80.6854736842105280.7476810.91680.364030.182015
M90.4431052631578990.746730.59340.5558240.277912
M100.2127368421052640.7460490.28520.7768080.388404
M110.02236842105263050.7456410.030.9761980.488099
t0.1923684210526320.01425313.497100







Multiple Linear Regression - Regression Statistics
Multiple R0.958777964425264
R-squared0.919255185067454
Adjusted R-squared0.89643599823869
F-TEST (value)40.2843095139899
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.17874632783709
Sum Squared Residuals63.9143736479132

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.958777964425264 \tabularnewline
R-squared & 0.919255185067454 \tabularnewline
Adjusted R-squared & 0.89643599823869 \tabularnewline
F-TEST (value) & 40.2843095139899 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.17874632783709 \tabularnewline
Sum Squared Residuals & 63.9143736479132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.958777964425264[/C][/ROW]
[ROW][C]R-squared[/C][C]0.919255185067454[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.89643599823869[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]40.2843095139899[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/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.17874632783709[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]63.9143736479132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64324&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.958777964425264
R-squared0.919255185067454
Adjusted R-squared0.89643599823869
F-TEST (value)40.2843095139899
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.17874632783709
Sum Squared Residuals63.9143736479132







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1100100.952058076225-0.952058076225158
2100.83101.244058076225-0.414058076225041
3101.51101.816058076225-0.306058076225035
4102.16101.9720580762250.187941923774961
5102.39102.3120580762250.0779419237749595
6102.54102.576058076225-0.0360580762250324
7102.85102.7140580762250.135941923774957
8103.47103.0229582577130.447041742286757
9103.57102.9729582577130.597041742286748
10103.69102.9349582577130.755041742286756
11103.5102.9369582577130.56304174228676
12103.47103.1069582577130.363041742286757
13103.45103.2604791288570.189520871143408
14103.48103.552479128857-0.0724791288566186
15103.93104.124479128857-0.194479128856616
16103.89104.280479128857-0.390479128856619
17104.4104.620479128857-0.220479128856618
18104.79104.884479128857-0.094479128856616
19104.77105.022479128857-0.252479128856626
20105.13105.331379310345-0.201379310344829
21105.26105.281379310345-0.0213793103448229
22104.96105.243379310345-0.283379310344831
23104.75105.245379310345-0.495379310344823
24105.01105.415379310345-0.40537931034482
25105.15105.568900181488-0.418900181488173
26105.2105.860900181488-0.660900181488204
27105.77106.432900181488-0.66290018148821
28105.78106.588900181488-0.808900181488202
29106.26106.928900181488-0.668900181488202
30106.13107.192900181488-1.06290018148821
31106.12107.330900181488-1.2109001814882
32106.57107.639800362976-1.06980036297642
33106.44107.589800362976-1.14980036297641
34106.54107.551800362976-1.01180036297640
35107.1107.553800362976-0.453800362976413
36108.1107.7238003629760.376199637023586
37108.4107.8773212341200.522678765880243
38108.84108.1693212341200.670678765880211
39109.62108.7413212341200.878678765880214
40110.42108.8973212341201.52267876588021
41110.67109.2373212341201.43267876588021
42111.66109.5013212341202.15867876588021
43112.28109.6393212341202.64067876588021
44112.87110.3537205081672.51627949183304
45112.18110.3037205081671.87627949183304
46112.36110.2657205081672.09427949183303
47112.16110.2677205081671.89227949183303
48111.49110.4377205081671.05227949183303
49111.25110.5912413793100.65875862068968
50111.36110.8832413793100.476758620689652
51111.74111.4552413793100.284758620689648
52111.1111.611241379310-0.511241379310351
53111.33111.951241379310-0.62124137931035
54111.25112.215241379310-0.965241379310347
55111.04112.353241379310-1.31324137931034
56110.97112.662141560799-1.69214156079855
57111.31112.612141560799-1.30214156079855
58111.02112.574141560799-1.55414156079855
59111.07112.576141560799-1.50614156079856
60111.36112.746141560799-1.38614156079855

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100 & 100.952058076225 & -0.952058076225158 \tabularnewline
2 & 100.83 & 101.244058076225 & -0.414058076225041 \tabularnewline
3 & 101.51 & 101.816058076225 & -0.306058076225035 \tabularnewline
4 & 102.16 & 101.972058076225 & 0.187941923774961 \tabularnewline
5 & 102.39 & 102.312058076225 & 0.0779419237749595 \tabularnewline
6 & 102.54 & 102.576058076225 & -0.0360580762250324 \tabularnewline
7 & 102.85 & 102.714058076225 & 0.135941923774957 \tabularnewline
8 & 103.47 & 103.022958257713 & 0.447041742286757 \tabularnewline
9 & 103.57 & 102.972958257713 & 0.597041742286748 \tabularnewline
10 & 103.69 & 102.934958257713 & 0.755041742286756 \tabularnewline
11 & 103.5 & 102.936958257713 & 0.56304174228676 \tabularnewline
12 & 103.47 & 103.106958257713 & 0.363041742286757 \tabularnewline
13 & 103.45 & 103.260479128857 & 0.189520871143408 \tabularnewline
14 & 103.48 & 103.552479128857 & -0.0724791288566186 \tabularnewline
15 & 103.93 & 104.124479128857 & -0.194479128856616 \tabularnewline
16 & 103.89 & 104.280479128857 & -0.390479128856619 \tabularnewline
17 & 104.4 & 104.620479128857 & -0.220479128856618 \tabularnewline
18 & 104.79 & 104.884479128857 & -0.094479128856616 \tabularnewline
19 & 104.77 & 105.022479128857 & -0.252479128856626 \tabularnewline
20 & 105.13 & 105.331379310345 & -0.201379310344829 \tabularnewline
21 & 105.26 & 105.281379310345 & -0.0213793103448229 \tabularnewline
22 & 104.96 & 105.243379310345 & -0.283379310344831 \tabularnewline
23 & 104.75 & 105.245379310345 & -0.495379310344823 \tabularnewline
24 & 105.01 & 105.415379310345 & -0.40537931034482 \tabularnewline
25 & 105.15 & 105.568900181488 & -0.418900181488173 \tabularnewline
26 & 105.2 & 105.860900181488 & -0.660900181488204 \tabularnewline
27 & 105.77 & 106.432900181488 & -0.66290018148821 \tabularnewline
28 & 105.78 & 106.588900181488 & -0.808900181488202 \tabularnewline
29 & 106.26 & 106.928900181488 & -0.668900181488202 \tabularnewline
30 & 106.13 & 107.192900181488 & -1.06290018148821 \tabularnewline
31 & 106.12 & 107.330900181488 & -1.2109001814882 \tabularnewline
32 & 106.57 & 107.639800362976 & -1.06980036297642 \tabularnewline
33 & 106.44 & 107.589800362976 & -1.14980036297641 \tabularnewline
34 & 106.54 & 107.551800362976 & -1.01180036297640 \tabularnewline
35 & 107.1 & 107.553800362976 & -0.453800362976413 \tabularnewline
36 & 108.1 & 107.723800362976 & 0.376199637023586 \tabularnewline
37 & 108.4 & 107.877321234120 & 0.522678765880243 \tabularnewline
38 & 108.84 & 108.169321234120 & 0.670678765880211 \tabularnewline
39 & 109.62 & 108.741321234120 & 0.878678765880214 \tabularnewline
40 & 110.42 & 108.897321234120 & 1.52267876588021 \tabularnewline
41 & 110.67 & 109.237321234120 & 1.43267876588021 \tabularnewline
42 & 111.66 & 109.501321234120 & 2.15867876588021 \tabularnewline
43 & 112.28 & 109.639321234120 & 2.64067876588021 \tabularnewline
44 & 112.87 & 110.353720508167 & 2.51627949183304 \tabularnewline
45 & 112.18 & 110.303720508167 & 1.87627949183304 \tabularnewline
46 & 112.36 & 110.265720508167 & 2.09427949183303 \tabularnewline
47 & 112.16 & 110.267720508167 & 1.89227949183303 \tabularnewline
48 & 111.49 & 110.437720508167 & 1.05227949183303 \tabularnewline
49 & 111.25 & 110.591241379310 & 0.65875862068968 \tabularnewline
50 & 111.36 & 110.883241379310 & 0.476758620689652 \tabularnewline
51 & 111.74 & 111.455241379310 & 0.284758620689648 \tabularnewline
52 & 111.1 & 111.611241379310 & -0.511241379310351 \tabularnewline
53 & 111.33 & 111.951241379310 & -0.62124137931035 \tabularnewline
54 & 111.25 & 112.215241379310 & -0.965241379310347 \tabularnewline
55 & 111.04 & 112.353241379310 & -1.31324137931034 \tabularnewline
56 & 110.97 & 112.662141560799 & -1.69214156079855 \tabularnewline
57 & 111.31 & 112.612141560799 & -1.30214156079855 \tabularnewline
58 & 111.02 & 112.574141560799 & -1.55414156079855 \tabularnewline
59 & 111.07 & 112.576141560799 & -1.50614156079856 \tabularnewline
60 & 111.36 & 112.746141560799 & -1.38614156079855 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&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]100[/C][C]100.952058076225[/C][C]-0.952058076225158[/C][/ROW]
[ROW][C]2[/C][C]100.83[/C][C]101.244058076225[/C][C]-0.414058076225041[/C][/ROW]
[ROW][C]3[/C][C]101.51[/C][C]101.816058076225[/C][C]-0.306058076225035[/C][/ROW]
[ROW][C]4[/C][C]102.16[/C][C]101.972058076225[/C][C]0.187941923774961[/C][/ROW]
[ROW][C]5[/C][C]102.39[/C][C]102.312058076225[/C][C]0.0779419237749595[/C][/ROW]
[ROW][C]6[/C][C]102.54[/C][C]102.576058076225[/C][C]-0.0360580762250324[/C][/ROW]
[ROW][C]7[/C][C]102.85[/C][C]102.714058076225[/C][C]0.135941923774957[/C][/ROW]
[ROW][C]8[/C][C]103.47[/C][C]103.022958257713[/C][C]0.447041742286757[/C][/ROW]
[ROW][C]9[/C][C]103.57[/C][C]102.972958257713[/C][C]0.597041742286748[/C][/ROW]
[ROW][C]10[/C][C]103.69[/C][C]102.934958257713[/C][C]0.755041742286756[/C][/ROW]
[ROW][C]11[/C][C]103.5[/C][C]102.936958257713[/C][C]0.56304174228676[/C][/ROW]
[ROW][C]12[/C][C]103.47[/C][C]103.106958257713[/C][C]0.363041742286757[/C][/ROW]
[ROW][C]13[/C][C]103.45[/C][C]103.260479128857[/C][C]0.189520871143408[/C][/ROW]
[ROW][C]14[/C][C]103.48[/C][C]103.552479128857[/C][C]-0.0724791288566186[/C][/ROW]
[ROW][C]15[/C][C]103.93[/C][C]104.124479128857[/C][C]-0.194479128856616[/C][/ROW]
[ROW][C]16[/C][C]103.89[/C][C]104.280479128857[/C][C]-0.390479128856619[/C][/ROW]
[ROW][C]17[/C][C]104.4[/C][C]104.620479128857[/C][C]-0.220479128856618[/C][/ROW]
[ROW][C]18[/C][C]104.79[/C][C]104.884479128857[/C][C]-0.094479128856616[/C][/ROW]
[ROW][C]19[/C][C]104.77[/C][C]105.022479128857[/C][C]-0.252479128856626[/C][/ROW]
[ROW][C]20[/C][C]105.13[/C][C]105.331379310345[/C][C]-0.201379310344829[/C][/ROW]
[ROW][C]21[/C][C]105.26[/C][C]105.281379310345[/C][C]-0.0213793103448229[/C][/ROW]
[ROW][C]22[/C][C]104.96[/C][C]105.243379310345[/C][C]-0.283379310344831[/C][/ROW]
[ROW][C]23[/C][C]104.75[/C][C]105.245379310345[/C][C]-0.495379310344823[/C][/ROW]
[ROW][C]24[/C][C]105.01[/C][C]105.415379310345[/C][C]-0.40537931034482[/C][/ROW]
[ROW][C]25[/C][C]105.15[/C][C]105.568900181488[/C][C]-0.418900181488173[/C][/ROW]
[ROW][C]26[/C][C]105.2[/C][C]105.860900181488[/C][C]-0.660900181488204[/C][/ROW]
[ROW][C]27[/C][C]105.77[/C][C]106.432900181488[/C][C]-0.66290018148821[/C][/ROW]
[ROW][C]28[/C][C]105.78[/C][C]106.588900181488[/C][C]-0.808900181488202[/C][/ROW]
[ROW][C]29[/C][C]106.26[/C][C]106.928900181488[/C][C]-0.668900181488202[/C][/ROW]
[ROW][C]30[/C][C]106.13[/C][C]107.192900181488[/C][C]-1.06290018148821[/C][/ROW]
[ROW][C]31[/C][C]106.12[/C][C]107.330900181488[/C][C]-1.2109001814882[/C][/ROW]
[ROW][C]32[/C][C]106.57[/C][C]107.639800362976[/C][C]-1.06980036297642[/C][/ROW]
[ROW][C]33[/C][C]106.44[/C][C]107.589800362976[/C][C]-1.14980036297641[/C][/ROW]
[ROW][C]34[/C][C]106.54[/C][C]107.551800362976[/C][C]-1.01180036297640[/C][/ROW]
[ROW][C]35[/C][C]107.1[/C][C]107.553800362976[/C][C]-0.453800362976413[/C][/ROW]
[ROW][C]36[/C][C]108.1[/C][C]107.723800362976[/C][C]0.376199637023586[/C][/ROW]
[ROW][C]37[/C][C]108.4[/C][C]107.877321234120[/C][C]0.522678765880243[/C][/ROW]
[ROW][C]38[/C][C]108.84[/C][C]108.169321234120[/C][C]0.670678765880211[/C][/ROW]
[ROW][C]39[/C][C]109.62[/C][C]108.741321234120[/C][C]0.878678765880214[/C][/ROW]
[ROW][C]40[/C][C]110.42[/C][C]108.897321234120[/C][C]1.52267876588021[/C][/ROW]
[ROW][C]41[/C][C]110.67[/C][C]109.237321234120[/C][C]1.43267876588021[/C][/ROW]
[ROW][C]42[/C][C]111.66[/C][C]109.501321234120[/C][C]2.15867876588021[/C][/ROW]
[ROW][C]43[/C][C]112.28[/C][C]109.639321234120[/C][C]2.64067876588021[/C][/ROW]
[ROW][C]44[/C][C]112.87[/C][C]110.353720508167[/C][C]2.51627949183304[/C][/ROW]
[ROW][C]45[/C][C]112.18[/C][C]110.303720508167[/C][C]1.87627949183304[/C][/ROW]
[ROW][C]46[/C][C]112.36[/C][C]110.265720508167[/C][C]2.09427949183303[/C][/ROW]
[ROW][C]47[/C][C]112.16[/C][C]110.267720508167[/C][C]1.89227949183303[/C][/ROW]
[ROW][C]48[/C][C]111.49[/C][C]110.437720508167[/C][C]1.05227949183303[/C][/ROW]
[ROW][C]49[/C][C]111.25[/C][C]110.591241379310[/C][C]0.65875862068968[/C][/ROW]
[ROW][C]50[/C][C]111.36[/C][C]110.883241379310[/C][C]0.476758620689652[/C][/ROW]
[ROW][C]51[/C][C]111.74[/C][C]111.455241379310[/C][C]0.284758620689648[/C][/ROW]
[ROW][C]52[/C][C]111.1[/C][C]111.611241379310[/C][C]-0.511241379310351[/C][/ROW]
[ROW][C]53[/C][C]111.33[/C][C]111.951241379310[/C][C]-0.62124137931035[/C][/ROW]
[ROW][C]54[/C][C]111.25[/C][C]112.215241379310[/C][C]-0.965241379310347[/C][/ROW]
[ROW][C]55[/C][C]111.04[/C][C]112.353241379310[/C][C]-1.31324137931034[/C][/ROW]
[ROW][C]56[/C][C]110.97[/C][C]112.662141560799[/C][C]-1.69214156079855[/C][/ROW]
[ROW][C]57[/C][C]111.31[/C][C]112.612141560799[/C][C]-1.30214156079855[/C][/ROW]
[ROW][C]58[/C][C]111.02[/C][C]112.574141560799[/C][C]-1.55414156079855[/C][/ROW]
[ROW][C]59[/C][C]111.07[/C][C]112.576141560799[/C][C]-1.50614156079856[/C][/ROW]
[ROW][C]60[/C][C]111.36[/C][C]112.746141560799[/C][C]-1.38614156079855[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64324&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
1100100.952058076225-0.952058076225158
2100.83101.244058076225-0.414058076225041
3101.51101.816058076225-0.306058076225035
4102.16101.9720580762250.187941923774961
5102.39102.3120580762250.0779419237749595
6102.54102.576058076225-0.0360580762250324
7102.85102.7140580762250.135941923774957
8103.47103.0229582577130.447041742286757
9103.57102.9729582577130.597041742286748
10103.69102.9349582577130.755041742286756
11103.5102.9369582577130.56304174228676
12103.47103.1069582577130.363041742286757
13103.45103.2604791288570.189520871143408
14103.48103.552479128857-0.0724791288566186
15103.93104.124479128857-0.194479128856616
16103.89104.280479128857-0.390479128856619
17104.4104.620479128857-0.220479128856618
18104.79104.884479128857-0.094479128856616
19104.77105.022479128857-0.252479128856626
20105.13105.331379310345-0.201379310344829
21105.26105.281379310345-0.0213793103448229
22104.96105.243379310345-0.283379310344831
23104.75105.245379310345-0.495379310344823
24105.01105.415379310345-0.40537931034482
25105.15105.568900181488-0.418900181488173
26105.2105.860900181488-0.660900181488204
27105.77106.432900181488-0.66290018148821
28105.78106.588900181488-0.808900181488202
29106.26106.928900181488-0.668900181488202
30106.13107.192900181488-1.06290018148821
31106.12107.330900181488-1.2109001814882
32106.57107.639800362976-1.06980036297642
33106.44107.589800362976-1.14980036297641
34106.54107.551800362976-1.01180036297640
35107.1107.553800362976-0.453800362976413
36108.1107.7238003629760.376199637023586
37108.4107.8773212341200.522678765880243
38108.84108.1693212341200.670678765880211
39109.62108.7413212341200.878678765880214
40110.42108.8973212341201.52267876588021
41110.67109.2373212341201.43267876588021
42111.66109.5013212341202.15867876588021
43112.28109.6393212341202.64067876588021
44112.87110.3537205081672.51627949183304
45112.18110.3037205081671.87627949183304
46112.36110.2657205081672.09427949183303
47112.16110.2677205081671.89227949183303
48111.49110.4377205081671.05227949183303
49111.25110.5912413793100.65875862068968
50111.36110.8832413793100.476758620689652
51111.74111.4552413793100.284758620689648
52111.1111.611241379310-0.511241379310351
53111.33111.951241379310-0.62124137931035
54111.25112.215241379310-0.965241379310347
55111.04112.353241379310-1.31324137931034
56110.97112.662141560799-1.69214156079855
57111.31112.612141560799-1.30214156079855
58111.02112.574141560799-1.55414156079855
59111.07112.576141560799-1.50614156079856
60111.36112.746141560799-1.38614156079855







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.06553610784159110.1310722156831820.93446389215841
180.01991623225653960.03983246451307910.98008376774346
190.006853303664186440.01370660732837290.993146696335814
200.002927156516761280.005854313033522560.997072843483239
210.001075401582644700.002150803165289410.998924598417355
220.0006737222621886970.001347444524377390.999326277737811
230.0003629101496620340.0007258202993240680.999637089850338
240.0001226973508203480.0002453947016406960.99987730264918
254.24735365985779e-058.49470731971557e-050.999957526463401
261.19812274245535e-052.39624548491069e-050.999988018772575
273.38997248688998e-066.77994497377996e-060.999996610027513
281.18071988136748e-062.36143976273496e-060.999998819280119
293.72306159309784e-077.44612318619569e-070.99999962769384
303.05555619232664e-076.11111238465327e-070.999999694444381
317.07883400666634e-071.41576680133327e-060.9999992921166
329.30244008912707e-071.86048801782541e-060.999999069755991
333.22144775638634e-066.44289551277268e-060.999996778552244
341.69609052481110e-053.39218104962219e-050.999983039094752
350.0001505454506540690.0003010909013081380.999849454549346
360.003459495639505150.006918991279010310.996540504360495
370.04697151969070150.0939430393814030.953028480309299
380.2319520291397280.4639040582794560.768047970860272
390.6558415655060430.6883168689879140.344158434493957
400.7673864038664930.4652271922670140.232613596133507
410.8853302942211730.2293394115576530.114669705778827
420.8858212769971560.2283574460056880.114178723002844
430.8211341812063570.3577316375872860.178865818793643

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0655361078415911 & 0.131072215683182 & 0.93446389215841 \tabularnewline
18 & 0.0199162322565396 & 0.0398324645130791 & 0.98008376774346 \tabularnewline
19 & 0.00685330366418644 & 0.0137066073283729 & 0.993146696335814 \tabularnewline
20 & 0.00292715651676128 & 0.00585431303352256 & 0.997072843483239 \tabularnewline
21 & 0.00107540158264470 & 0.00215080316528941 & 0.998924598417355 \tabularnewline
22 & 0.000673722262188697 & 0.00134744452437739 & 0.999326277737811 \tabularnewline
23 & 0.000362910149662034 & 0.000725820299324068 & 0.999637089850338 \tabularnewline
24 & 0.000122697350820348 & 0.000245394701640696 & 0.99987730264918 \tabularnewline
25 & 4.24735365985779e-05 & 8.49470731971557e-05 & 0.999957526463401 \tabularnewline
26 & 1.19812274245535e-05 & 2.39624548491069e-05 & 0.999988018772575 \tabularnewline
27 & 3.38997248688998e-06 & 6.77994497377996e-06 & 0.999996610027513 \tabularnewline
28 & 1.18071988136748e-06 & 2.36143976273496e-06 & 0.999998819280119 \tabularnewline
29 & 3.72306159309784e-07 & 7.44612318619569e-07 & 0.99999962769384 \tabularnewline
30 & 3.05555619232664e-07 & 6.11111238465327e-07 & 0.999999694444381 \tabularnewline
31 & 7.07883400666634e-07 & 1.41576680133327e-06 & 0.9999992921166 \tabularnewline
32 & 9.30244008912707e-07 & 1.86048801782541e-06 & 0.999999069755991 \tabularnewline
33 & 3.22144775638634e-06 & 6.44289551277268e-06 & 0.999996778552244 \tabularnewline
34 & 1.69609052481110e-05 & 3.39218104962219e-05 & 0.999983039094752 \tabularnewline
35 & 0.000150545450654069 & 0.000301090901308138 & 0.999849454549346 \tabularnewline
36 & 0.00345949563950515 & 0.00691899127901031 & 0.996540504360495 \tabularnewline
37 & 0.0469715196907015 & 0.093943039381403 & 0.953028480309299 \tabularnewline
38 & 0.231952029139728 & 0.463904058279456 & 0.768047970860272 \tabularnewline
39 & 0.655841565506043 & 0.688316868987914 & 0.344158434493957 \tabularnewline
40 & 0.767386403866493 & 0.465227192267014 & 0.232613596133507 \tabularnewline
41 & 0.885330294221173 & 0.229339411557653 & 0.114669705778827 \tabularnewline
42 & 0.885821276997156 & 0.228357446005688 & 0.114178723002844 \tabularnewline
43 & 0.821134181206357 & 0.357731637587286 & 0.178865818793643 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&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]17[/C][C]0.0655361078415911[/C][C]0.131072215683182[/C][C]0.93446389215841[/C][/ROW]
[ROW][C]18[/C][C]0.0199162322565396[/C][C]0.0398324645130791[/C][C]0.98008376774346[/C][/ROW]
[ROW][C]19[/C][C]0.00685330366418644[/C][C]0.0137066073283729[/C][C]0.993146696335814[/C][/ROW]
[ROW][C]20[/C][C]0.00292715651676128[/C][C]0.00585431303352256[/C][C]0.997072843483239[/C][/ROW]
[ROW][C]21[/C][C]0.00107540158264470[/C][C]0.00215080316528941[/C][C]0.998924598417355[/C][/ROW]
[ROW][C]22[/C][C]0.000673722262188697[/C][C]0.00134744452437739[/C][C]0.999326277737811[/C][/ROW]
[ROW][C]23[/C][C]0.000362910149662034[/C][C]0.000725820299324068[/C][C]0.999637089850338[/C][/ROW]
[ROW][C]24[/C][C]0.000122697350820348[/C][C]0.000245394701640696[/C][C]0.99987730264918[/C][/ROW]
[ROW][C]25[/C][C]4.24735365985779e-05[/C][C]8.49470731971557e-05[/C][C]0.999957526463401[/C][/ROW]
[ROW][C]26[/C][C]1.19812274245535e-05[/C][C]2.39624548491069e-05[/C][C]0.999988018772575[/C][/ROW]
[ROW][C]27[/C][C]3.38997248688998e-06[/C][C]6.77994497377996e-06[/C][C]0.999996610027513[/C][/ROW]
[ROW][C]28[/C][C]1.18071988136748e-06[/C][C]2.36143976273496e-06[/C][C]0.999998819280119[/C][/ROW]
[ROW][C]29[/C][C]3.72306159309784e-07[/C][C]7.44612318619569e-07[/C][C]0.99999962769384[/C][/ROW]
[ROW][C]30[/C][C]3.05555619232664e-07[/C][C]6.11111238465327e-07[/C][C]0.999999694444381[/C][/ROW]
[ROW][C]31[/C][C]7.07883400666634e-07[/C][C]1.41576680133327e-06[/C][C]0.9999992921166[/C][/ROW]
[ROW][C]32[/C][C]9.30244008912707e-07[/C][C]1.86048801782541e-06[/C][C]0.999999069755991[/C][/ROW]
[ROW][C]33[/C][C]3.22144775638634e-06[/C][C]6.44289551277268e-06[/C][C]0.999996778552244[/C][/ROW]
[ROW][C]34[/C][C]1.69609052481110e-05[/C][C]3.39218104962219e-05[/C][C]0.999983039094752[/C][/ROW]
[ROW][C]35[/C][C]0.000150545450654069[/C][C]0.000301090901308138[/C][C]0.999849454549346[/C][/ROW]
[ROW][C]36[/C][C]0.00345949563950515[/C][C]0.00691899127901031[/C][C]0.996540504360495[/C][/ROW]
[ROW][C]37[/C][C]0.0469715196907015[/C][C]0.093943039381403[/C][C]0.953028480309299[/C][/ROW]
[ROW][C]38[/C][C]0.231952029139728[/C][C]0.463904058279456[/C][C]0.768047970860272[/C][/ROW]
[ROW][C]39[/C][C]0.655841565506043[/C][C]0.688316868987914[/C][C]0.344158434493957[/C][/ROW]
[ROW][C]40[/C][C]0.767386403866493[/C][C]0.465227192267014[/C][C]0.232613596133507[/C][/ROW]
[ROW][C]41[/C][C]0.885330294221173[/C][C]0.229339411557653[/C][C]0.114669705778827[/C][/ROW]
[ROW][C]42[/C][C]0.885821276997156[/C][C]0.228357446005688[/C][C]0.114178723002844[/C][/ROW]
[ROW][C]43[/C][C]0.821134181206357[/C][C]0.357731637587286[/C][C]0.178865818793643[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64324&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
170.06553610784159110.1310722156831820.93446389215841
180.01991623225653960.03983246451307910.98008376774346
190.006853303664186440.01370660732837290.993146696335814
200.002927156516761280.005854313033522560.997072843483239
210.001075401582644700.002150803165289410.998924598417355
220.0006737222621886970.001347444524377390.999326277737811
230.0003629101496620340.0007258202993240680.999637089850338
240.0001226973508203480.0002453947016406960.99987730264918
254.24735365985779e-058.49470731971557e-050.999957526463401
261.19812274245535e-052.39624548491069e-050.999988018772575
273.38997248688998e-066.77994497377996e-060.999996610027513
281.18071988136748e-062.36143976273496e-060.999998819280119
293.72306159309784e-077.44612318619569e-070.99999962769384
303.05555619232664e-076.11111238465327e-070.999999694444381
317.07883400666634e-071.41576680133327e-060.9999992921166
329.30244008912707e-071.86048801782541e-060.999999069755991
333.22144775638634e-066.44289551277268e-060.999996778552244
341.69609052481110e-053.39218104962219e-050.999983039094752
350.0001505454506540690.0003010909013081380.999849454549346
360.003459495639505150.006918991279010310.996540504360495
370.04697151969070150.0939430393814030.953028480309299
380.2319520291397280.4639040582794560.768047970860272
390.6558415655060430.6883168689879140.344158434493957
400.7673864038664930.4652271922670140.232613596133507
410.8853302942211730.2293394115576530.114669705778827
420.8858212769971560.2283574460056880.114178723002844
430.8211341812063570.3577316375872860.178865818793643







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.62962962962963NOK
5% type I error level190.703703703703704NOK
10% type I error level200.740740740740741NOK

\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 & 17 & 0.62962962962963 & NOK \tabularnewline
5% type I error level & 19 & 0.703703703703704 & NOK \tabularnewline
10% type I error level & 20 & 0.740740740740741 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64324&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]17[/C][C]0.62962962962963[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]19[/C][C]0.703703703703704[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]20[/C][C]0.740740740740741[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64324&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64324&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 level170.62962962962963NOK
5% type I error level190.703703703703704NOK
10% type I error level200.740740740740741NOK



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