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 computationSun, 18 Nov 2012 11:33:26 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Nov/18/t1353256426fhi55lxou479hri.htm/, Retrieved Mon, 29 Apr 2024 18:14:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=190251, Retrieved Mon, 29 Apr 2024 18:14:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact132
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Ws7.2 Monthly dum...] [2009-11-20 16:13:19] [e0fc65a5811681d807296d590d5b45de]
-    D      [Multiple Regression] [WS 7 SEIZOENSEFFE...] [2010-11-23 08:31:49] [814f53995537cd15c528d8efbf1cf544]
-    D          [Multiple Regression] [workshop 7 task 2] [2012-11-18 16:33:26] [2382f403a285d81cd69bebfa1420b1d7] [Current]
Feedback Forum

Post a new message
Dataseries X:
6,8	9,2
6,3	11,7
6,4	15,8
6,2	8,6
6,9	23,2
6,4	27,4
6,3	9,3
6,8	16
6,9	4,7
6,7	12,5
6,9	20,1
6,9	9,1
6,3	8,1
6,1	8,6
6,2	20,3
6,8	25
6,5	19,2
7,6	3,3
6,3	11,2
7,1	10,5
6,8	10,1
7,3	7,2
6,4	13,6
6,8	9
7,2	24,6
6,4	12,6
6,6	5,6
6,8	8,7
6,1	7,7
6,5	24,1
6,4	11,7
6	7,7
6	9,6
7,3	7,2
6,1	12,3
6,7	8,9
6,4	13,6
5,8	11,2
6,9	2,8
7	3,2
7,3	9,4
5,9	11,9
6,2	15,4
6,8	7,4
7	18,9
5,9	7,9
6,1	12,2
5,7	11
7,1	2,8
5,8	11,8
7,4	17,1
6,8	11,6
6,8	5,8
7	8,3
6,2	15,4
6,8	7,4
7	18,9
5,9	7,9
6,4	13,6
6	7,7




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\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 & 8 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=190251&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]8 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=190251&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=190251&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 time8 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 6.44877539516265 -0.0031482926873799X[t] + 0.3479336975722M1[t] -0.333577482917745M2[t] + 0.290011570745868M3[t] + 0.307178107327226M4[t] + 0.312341307334529M5[t] + 0.278448995148046M6[t] -0.129106907301665M7[t] + 0.282077873173671M8[t] + 0.330389365868354M9[t] + 0.198111024387572M10[t] -0.0235659121718769M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  6.44877539516265 -0.0031482926873799X[t] +  0.3479336975722M1[t] -0.333577482917745M2[t] +  0.290011570745868M3[t] +  0.307178107327226M4[t] +  0.312341307334529M5[t] +  0.278448995148046M6[t] -0.129106907301665M7[t] +  0.282077873173671M8[t] +  0.330389365868354M9[t] +  0.198111024387572M10[t] -0.0235659121718769M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=190251&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  6.44877539516265 -0.0031482926873799X[t] +  0.3479336975722M1[t] -0.333577482917745M2[t] +  0.290011570745868M3[t] +  0.307178107327226M4[t] +  0.312341307334529M5[t] +  0.278448995148046M6[t] -0.129106907301665M7[t] +  0.282077873173671M8[t] +  0.330389365868354M9[t] +  0.198111024387572M10[t] -0.0235659121718769M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=190251&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=190251&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] = + 6.44877539516265 -0.0031482926873799X[t] + 0.3479336975722M1[t] -0.333577482917745M2[t] + 0.290011570745868M3[t] + 0.307178107327226M4[t] + 0.312341307334529M5[t] + 0.278448995148046M6[t] -0.129106907301665M7[t] + 0.282077873173671M8[t] + 0.330389365868354M9[t] + 0.198111024387572M10[t] -0.0235659121718769M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)6.448775395162650.22527328.626500
X-0.00314829268737990.010812-0.29120.7722010.3861
M10.34793369757220.2875851.20980.2323880.116194
M2-0.3335774829177450.28714-1.16170.2512130.125607
M30.2900115707458680.2883491.00580.3196780.159839
M40.3071781073272260.2873511.0690.2905290.145265
M50.3123413073345290.2894121.07920.2859940.142997
M60.2784489951480460.2932190.94960.3471590.17358
M7-0.1291069073016650.288725-0.44720.6568120.328406
M80.2820778731736710.286380.9850.3296790.16484
M90.3303893658683540.2885061.14520.2579360.128968
M100.1981110243875720.2863650.69180.4924580.246229
M11-0.02356591217187690.291802-0.08080.9359760.467988

\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) & 6.44877539516265 & 0.225273 & 28.6265 & 0 & 0 \tabularnewline
X & -0.0031482926873799 & 0.010812 & -0.2912 & 0.772201 & 0.3861 \tabularnewline
M1 & 0.3479336975722 & 0.287585 & 1.2098 & 0.232388 & 0.116194 \tabularnewline
M2 & -0.333577482917745 & 0.28714 & -1.1617 & 0.251213 & 0.125607 \tabularnewline
M3 & 0.290011570745868 & 0.288349 & 1.0058 & 0.319678 & 0.159839 \tabularnewline
M4 & 0.307178107327226 & 0.287351 & 1.069 & 0.290529 & 0.145265 \tabularnewline
M5 & 0.312341307334529 & 0.289412 & 1.0792 & 0.285994 & 0.142997 \tabularnewline
M6 & 0.278448995148046 & 0.293219 & 0.9496 & 0.347159 & 0.17358 \tabularnewline
M7 & -0.129106907301665 & 0.288725 & -0.4472 & 0.656812 & 0.328406 \tabularnewline
M8 & 0.282077873173671 & 0.28638 & 0.985 & 0.329679 & 0.16484 \tabularnewline
M9 & 0.330389365868354 & 0.288506 & 1.1452 & 0.257936 & 0.128968 \tabularnewline
M10 & 0.198111024387572 & 0.286365 & 0.6918 & 0.492458 & 0.246229 \tabularnewline
M11 & -0.0235659121718769 & 0.291802 & -0.0808 & 0.935976 & 0.467988 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=190251&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]6.44877539516265[/C][C]0.225273[/C][C]28.6265[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.0031482926873799[/C][C]0.010812[/C][C]-0.2912[/C][C]0.772201[/C][C]0.3861[/C][/ROW]
[ROW][C]M1[/C][C]0.3479336975722[/C][C]0.287585[/C][C]1.2098[/C][C]0.232388[/C][C]0.116194[/C][/ROW]
[ROW][C]M2[/C][C]-0.333577482917745[/C][C]0.28714[/C][C]-1.1617[/C][C]0.251213[/C][C]0.125607[/C][/ROW]
[ROW][C]M3[/C][C]0.290011570745868[/C][C]0.288349[/C][C]1.0058[/C][C]0.319678[/C][C]0.159839[/C][/ROW]
[ROW][C]M4[/C][C]0.307178107327226[/C][C]0.287351[/C][C]1.069[/C][C]0.290529[/C][C]0.145265[/C][/ROW]
[ROW][C]M5[/C][C]0.312341307334529[/C][C]0.289412[/C][C]1.0792[/C][C]0.285994[/C][C]0.142997[/C][/ROW]
[ROW][C]M6[/C][C]0.278448995148046[/C][C]0.293219[/C][C]0.9496[/C][C]0.347159[/C][C]0.17358[/C][/ROW]
[ROW][C]M7[/C][C]-0.129106907301665[/C][C]0.288725[/C][C]-0.4472[/C][C]0.656812[/C][C]0.328406[/C][/ROW]
[ROW][C]M8[/C][C]0.282077873173671[/C][C]0.28638[/C][C]0.985[/C][C]0.329679[/C][C]0.16484[/C][/ROW]
[ROW][C]M9[/C][C]0.330389365868354[/C][C]0.288506[/C][C]1.1452[/C][C]0.257936[/C][C]0.128968[/C][/ROW]
[ROW][C]M10[/C][C]0.198111024387572[/C][C]0.286365[/C][C]0.6918[/C][C]0.492458[/C][C]0.246229[/C][/ROW]
[ROW][C]M11[/C][C]-0.0235659121718769[/C][C]0.291802[/C][C]-0.0808[/C][C]0.935976[/C][C]0.467988[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=190251&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=190251&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)6.448775395162650.22527328.626500
X-0.00314829268737990.010812-0.29120.7722010.3861
M10.34793369757220.2875851.20980.2323880.116194
M2-0.3335774829177450.28714-1.16170.2512130.125607
M30.2900115707458680.2883491.00580.3196780.159839
M40.3071781073272260.2873511.0690.2905290.145265
M50.3123413073345290.2894121.07920.2859940.142997
M60.2784489951480460.2932190.94960.3471590.17358
M7-0.1291069073016650.288725-0.44720.6568120.328406
M80.2820778731736710.286380.9850.3296790.16484
M90.3303893658683540.2885061.14520.2579360.128968
M100.1981110243875720.2863650.69180.4924580.246229
M11-0.02356591217187690.291802-0.08080.9359760.467988







Multiple Linear Regression - Regression Statistics
Multiple R0.469470451732412
R-squared0.220402505049835
Adjusted R-squared0.0213563361263889
F-TEST (value)1.10729337942999
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.376864473588708
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.452666513877703
Sum Squared Residuals9.63062772095104

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.469470451732412 \tabularnewline
R-squared & 0.220402505049835 \tabularnewline
Adjusted R-squared & 0.0213563361263889 \tabularnewline
F-TEST (value) & 1.10729337942999 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.376864473588708 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.452666513877703 \tabularnewline
Sum Squared Residuals & 9.63062772095104 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=190251&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.469470451732412[/C][/ROW]
[ROW][C]R-squared[/C][C]0.220402505049835[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0213563361263889[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.10729337942999[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.376864473588708[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.452666513877703[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9.63062772095104[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=190251&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=190251&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.469470451732412
R-squared0.220402505049835
Adjusted R-squared0.0213563361263889
F-TEST (value)1.10729337942999
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.376864473588708
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.452666513877703
Sum Squared Residuals9.63062772095104







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
16.86.767744800010940.0322551999890557
26.36.078362887802560.221637112197438
36.46.68904394144792-0.289043941447918
46.26.72887818537841-0.528878185378411
56.96.688076312149970.211923687850032
66.46.64096117067649-0.240961170676489
76.36.290389365868350.0096106341316461
86.86.680480585338240.119519414661755
96.96.764367785400320.13563221459968
106.76.607532760957980.0924672390420243
116.96.361928799974440.538071200025561
126.96.42012593170750.479874068292505
136.36.77120792196707-0.471207921967075
146.16.088122595133440.0118774048665596
156.26.67487662435471-0.474876624354708
166.86.677246185305380.122753814694619
176.56.70066948289949-0.200669482899487
187.66.716835024442350.883164975557654
196.36.284407609762330.015592390237668
207.16.697796195118830.402203804881166
216.86.747367004888470.0526329951115309
227.36.624218712201090.675781287798911
236.46.382392702442410.0176072975575915
246.86.420440760976230.379559239023766
257.26.719261092625310.480738907374694
266.46.075529424383920.32447057561608
276.66.72115652685919-0.121156526859194
286.86.728563356109670.0714366438903265
296.16.73687484880436-0.636874848804357
306.56.65135053654484-0.151350536544843
316.46.282833463418640.117166536581358
3266.7066114146435-0.706611414643498
3366.74894115123216-0.748941151232159
347.36.624218712201090.675781287798911
356.16.386485482936-0.286485482936003
366.76.420755590244970.279244409755029
376.46.75389231218649-0.353892312186485
385.86.07993703414625-0.279937034146253
396.96.729971746383860.170028253616144
4076.745878965890260.254121034109737
417.36.731522751235810.568477248764189
425.96.68975970733088-0.789759707330877
436.26.27118478047534-0.0711847804753361
446.86.707555902449710.0924440975502882
4576.719662029239530.280337970760474
465.96.62201490731992-0.722014907319923
476.16.38680031220474-0.286800312204741
485.76.41414417560147-0.714144175601473
497.16.787893873210190.312106126789811
505.86.07804805853382-0.278048058533824
517.46.684951160954320.715048839045676
526.86.719433307316270.0805666926837283
536.86.742856604910380.0571433950896217
5476.701093561005440.298906438994555
556.26.27118478047534-0.0711847804753361
566.86.707555902449710.0924440975502882
5776.719662029239530.280337970760474
585.96.62201490731992-0.722014907319923
596.46.382392702442410.0176072975575915
6066.42453354146983-0.424533541469827

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 6.8 & 6.76774480001094 & 0.0322551999890557 \tabularnewline
2 & 6.3 & 6.07836288780256 & 0.221637112197438 \tabularnewline
3 & 6.4 & 6.68904394144792 & -0.289043941447918 \tabularnewline
4 & 6.2 & 6.72887818537841 & -0.528878185378411 \tabularnewline
5 & 6.9 & 6.68807631214997 & 0.211923687850032 \tabularnewline
6 & 6.4 & 6.64096117067649 & -0.240961170676489 \tabularnewline
7 & 6.3 & 6.29038936586835 & 0.0096106341316461 \tabularnewline
8 & 6.8 & 6.68048058533824 & 0.119519414661755 \tabularnewline
9 & 6.9 & 6.76436778540032 & 0.13563221459968 \tabularnewline
10 & 6.7 & 6.60753276095798 & 0.0924672390420243 \tabularnewline
11 & 6.9 & 6.36192879997444 & 0.538071200025561 \tabularnewline
12 & 6.9 & 6.4201259317075 & 0.479874068292505 \tabularnewline
13 & 6.3 & 6.77120792196707 & -0.471207921967075 \tabularnewline
14 & 6.1 & 6.08812259513344 & 0.0118774048665596 \tabularnewline
15 & 6.2 & 6.67487662435471 & -0.474876624354708 \tabularnewline
16 & 6.8 & 6.67724618530538 & 0.122753814694619 \tabularnewline
17 & 6.5 & 6.70066948289949 & -0.200669482899487 \tabularnewline
18 & 7.6 & 6.71683502444235 & 0.883164975557654 \tabularnewline
19 & 6.3 & 6.28440760976233 & 0.015592390237668 \tabularnewline
20 & 7.1 & 6.69779619511883 & 0.402203804881166 \tabularnewline
21 & 6.8 & 6.74736700488847 & 0.0526329951115309 \tabularnewline
22 & 7.3 & 6.62421871220109 & 0.675781287798911 \tabularnewline
23 & 6.4 & 6.38239270244241 & 0.0176072975575915 \tabularnewline
24 & 6.8 & 6.42044076097623 & 0.379559239023766 \tabularnewline
25 & 7.2 & 6.71926109262531 & 0.480738907374694 \tabularnewline
26 & 6.4 & 6.07552942438392 & 0.32447057561608 \tabularnewline
27 & 6.6 & 6.72115652685919 & -0.121156526859194 \tabularnewline
28 & 6.8 & 6.72856335610967 & 0.0714366438903265 \tabularnewline
29 & 6.1 & 6.73687484880436 & -0.636874848804357 \tabularnewline
30 & 6.5 & 6.65135053654484 & -0.151350536544843 \tabularnewline
31 & 6.4 & 6.28283346341864 & 0.117166536581358 \tabularnewline
32 & 6 & 6.7066114146435 & -0.706611414643498 \tabularnewline
33 & 6 & 6.74894115123216 & -0.748941151232159 \tabularnewline
34 & 7.3 & 6.62421871220109 & 0.675781287798911 \tabularnewline
35 & 6.1 & 6.386485482936 & -0.286485482936003 \tabularnewline
36 & 6.7 & 6.42075559024497 & 0.279244409755029 \tabularnewline
37 & 6.4 & 6.75389231218649 & -0.353892312186485 \tabularnewline
38 & 5.8 & 6.07993703414625 & -0.279937034146253 \tabularnewline
39 & 6.9 & 6.72997174638386 & 0.170028253616144 \tabularnewline
40 & 7 & 6.74587896589026 & 0.254121034109737 \tabularnewline
41 & 7.3 & 6.73152275123581 & 0.568477248764189 \tabularnewline
42 & 5.9 & 6.68975970733088 & -0.789759707330877 \tabularnewline
43 & 6.2 & 6.27118478047534 & -0.0711847804753361 \tabularnewline
44 & 6.8 & 6.70755590244971 & 0.0924440975502882 \tabularnewline
45 & 7 & 6.71966202923953 & 0.280337970760474 \tabularnewline
46 & 5.9 & 6.62201490731992 & -0.722014907319923 \tabularnewline
47 & 6.1 & 6.38680031220474 & -0.286800312204741 \tabularnewline
48 & 5.7 & 6.41414417560147 & -0.714144175601473 \tabularnewline
49 & 7.1 & 6.78789387321019 & 0.312106126789811 \tabularnewline
50 & 5.8 & 6.07804805853382 & -0.278048058533824 \tabularnewline
51 & 7.4 & 6.68495116095432 & 0.715048839045676 \tabularnewline
52 & 6.8 & 6.71943330731627 & 0.0805666926837283 \tabularnewline
53 & 6.8 & 6.74285660491038 & 0.0571433950896217 \tabularnewline
54 & 7 & 6.70109356100544 & 0.298906438994555 \tabularnewline
55 & 6.2 & 6.27118478047534 & -0.0711847804753361 \tabularnewline
56 & 6.8 & 6.70755590244971 & 0.0924440975502882 \tabularnewline
57 & 7 & 6.71966202923953 & 0.280337970760474 \tabularnewline
58 & 5.9 & 6.62201490731992 & -0.722014907319923 \tabularnewline
59 & 6.4 & 6.38239270244241 & 0.0176072975575915 \tabularnewline
60 & 6 & 6.42453354146983 & -0.424533541469827 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=190251&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]6.8[/C][C]6.76774480001094[/C][C]0.0322551999890557[/C][/ROW]
[ROW][C]2[/C][C]6.3[/C][C]6.07836288780256[/C][C]0.221637112197438[/C][/ROW]
[ROW][C]3[/C][C]6.4[/C][C]6.68904394144792[/C][C]-0.289043941447918[/C][/ROW]
[ROW][C]4[/C][C]6.2[/C][C]6.72887818537841[/C][C]-0.528878185378411[/C][/ROW]
[ROW][C]5[/C][C]6.9[/C][C]6.68807631214997[/C][C]0.211923687850032[/C][/ROW]
[ROW][C]6[/C][C]6.4[/C][C]6.64096117067649[/C][C]-0.240961170676489[/C][/ROW]
[ROW][C]7[/C][C]6.3[/C][C]6.29038936586835[/C][C]0.0096106341316461[/C][/ROW]
[ROW][C]8[/C][C]6.8[/C][C]6.68048058533824[/C][C]0.119519414661755[/C][/ROW]
[ROW][C]9[/C][C]6.9[/C][C]6.76436778540032[/C][C]0.13563221459968[/C][/ROW]
[ROW][C]10[/C][C]6.7[/C][C]6.60753276095798[/C][C]0.0924672390420243[/C][/ROW]
[ROW][C]11[/C][C]6.9[/C][C]6.36192879997444[/C][C]0.538071200025561[/C][/ROW]
[ROW][C]12[/C][C]6.9[/C][C]6.4201259317075[/C][C]0.479874068292505[/C][/ROW]
[ROW][C]13[/C][C]6.3[/C][C]6.77120792196707[/C][C]-0.471207921967075[/C][/ROW]
[ROW][C]14[/C][C]6.1[/C][C]6.08812259513344[/C][C]0.0118774048665596[/C][/ROW]
[ROW][C]15[/C][C]6.2[/C][C]6.67487662435471[/C][C]-0.474876624354708[/C][/ROW]
[ROW][C]16[/C][C]6.8[/C][C]6.67724618530538[/C][C]0.122753814694619[/C][/ROW]
[ROW][C]17[/C][C]6.5[/C][C]6.70066948289949[/C][C]-0.200669482899487[/C][/ROW]
[ROW][C]18[/C][C]7.6[/C][C]6.71683502444235[/C][C]0.883164975557654[/C][/ROW]
[ROW][C]19[/C][C]6.3[/C][C]6.28440760976233[/C][C]0.015592390237668[/C][/ROW]
[ROW][C]20[/C][C]7.1[/C][C]6.69779619511883[/C][C]0.402203804881166[/C][/ROW]
[ROW][C]21[/C][C]6.8[/C][C]6.74736700488847[/C][C]0.0526329951115309[/C][/ROW]
[ROW][C]22[/C][C]7.3[/C][C]6.62421871220109[/C][C]0.675781287798911[/C][/ROW]
[ROW][C]23[/C][C]6.4[/C][C]6.38239270244241[/C][C]0.0176072975575915[/C][/ROW]
[ROW][C]24[/C][C]6.8[/C][C]6.42044076097623[/C][C]0.379559239023766[/C][/ROW]
[ROW][C]25[/C][C]7.2[/C][C]6.71926109262531[/C][C]0.480738907374694[/C][/ROW]
[ROW][C]26[/C][C]6.4[/C][C]6.07552942438392[/C][C]0.32447057561608[/C][/ROW]
[ROW][C]27[/C][C]6.6[/C][C]6.72115652685919[/C][C]-0.121156526859194[/C][/ROW]
[ROW][C]28[/C][C]6.8[/C][C]6.72856335610967[/C][C]0.0714366438903265[/C][/ROW]
[ROW][C]29[/C][C]6.1[/C][C]6.73687484880436[/C][C]-0.636874848804357[/C][/ROW]
[ROW][C]30[/C][C]6.5[/C][C]6.65135053654484[/C][C]-0.151350536544843[/C][/ROW]
[ROW][C]31[/C][C]6.4[/C][C]6.28283346341864[/C][C]0.117166536581358[/C][/ROW]
[ROW][C]32[/C][C]6[/C][C]6.7066114146435[/C][C]-0.706611414643498[/C][/ROW]
[ROW][C]33[/C][C]6[/C][C]6.74894115123216[/C][C]-0.748941151232159[/C][/ROW]
[ROW][C]34[/C][C]7.3[/C][C]6.62421871220109[/C][C]0.675781287798911[/C][/ROW]
[ROW][C]35[/C][C]6.1[/C][C]6.386485482936[/C][C]-0.286485482936003[/C][/ROW]
[ROW][C]36[/C][C]6.7[/C][C]6.42075559024497[/C][C]0.279244409755029[/C][/ROW]
[ROW][C]37[/C][C]6.4[/C][C]6.75389231218649[/C][C]-0.353892312186485[/C][/ROW]
[ROW][C]38[/C][C]5.8[/C][C]6.07993703414625[/C][C]-0.279937034146253[/C][/ROW]
[ROW][C]39[/C][C]6.9[/C][C]6.72997174638386[/C][C]0.170028253616144[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]6.74587896589026[/C][C]0.254121034109737[/C][/ROW]
[ROW][C]41[/C][C]7.3[/C][C]6.73152275123581[/C][C]0.568477248764189[/C][/ROW]
[ROW][C]42[/C][C]5.9[/C][C]6.68975970733088[/C][C]-0.789759707330877[/C][/ROW]
[ROW][C]43[/C][C]6.2[/C][C]6.27118478047534[/C][C]-0.0711847804753361[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]6.70755590244971[/C][C]0.0924440975502882[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]6.71966202923953[/C][C]0.280337970760474[/C][/ROW]
[ROW][C]46[/C][C]5.9[/C][C]6.62201490731992[/C][C]-0.722014907319923[/C][/ROW]
[ROW][C]47[/C][C]6.1[/C][C]6.38680031220474[/C][C]-0.286800312204741[/C][/ROW]
[ROW][C]48[/C][C]5.7[/C][C]6.41414417560147[/C][C]-0.714144175601473[/C][/ROW]
[ROW][C]49[/C][C]7.1[/C][C]6.78789387321019[/C][C]0.312106126789811[/C][/ROW]
[ROW][C]50[/C][C]5.8[/C][C]6.07804805853382[/C][C]-0.278048058533824[/C][/ROW]
[ROW][C]51[/C][C]7.4[/C][C]6.68495116095432[/C][C]0.715048839045676[/C][/ROW]
[ROW][C]52[/C][C]6.8[/C][C]6.71943330731627[/C][C]0.0805666926837283[/C][/ROW]
[ROW][C]53[/C][C]6.8[/C][C]6.74285660491038[/C][C]0.0571433950896217[/C][/ROW]
[ROW][C]54[/C][C]7[/C][C]6.70109356100544[/C][C]0.298906438994555[/C][/ROW]
[ROW][C]55[/C][C]6.2[/C][C]6.27118478047534[/C][C]-0.0711847804753361[/C][/ROW]
[ROW][C]56[/C][C]6.8[/C][C]6.70755590244971[/C][C]0.0924440975502882[/C][/ROW]
[ROW][C]57[/C][C]7[/C][C]6.71966202923953[/C][C]0.280337970760474[/C][/ROW]
[ROW][C]58[/C][C]5.9[/C][C]6.62201490731992[/C][C]-0.722014907319923[/C][/ROW]
[ROW][C]59[/C][C]6.4[/C][C]6.38239270244241[/C][C]0.0176072975575915[/C][/ROW]
[ROW][C]60[/C][C]6[/C][C]6.42453354146983[/C][C]-0.424533541469827[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=190251&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=190251&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
16.86.767744800010940.0322551999890557
26.36.078362887802560.221637112197438
36.46.68904394144792-0.289043941447918
46.26.72887818537841-0.528878185378411
56.96.688076312149970.211923687850032
66.46.64096117067649-0.240961170676489
76.36.290389365868350.0096106341316461
86.86.680480585338240.119519414661755
96.96.764367785400320.13563221459968
106.76.607532760957980.0924672390420243
116.96.361928799974440.538071200025561
126.96.42012593170750.479874068292505
136.36.77120792196707-0.471207921967075
146.16.088122595133440.0118774048665596
156.26.67487662435471-0.474876624354708
166.86.677246185305380.122753814694619
176.56.70066948289949-0.200669482899487
187.66.716835024442350.883164975557654
196.36.284407609762330.015592390237668
207.16.697796195118830.402203804881166
216.86.747367004888470.0526329951115309
227.36.624218712201090.675781287798911
236.46.382392702442410.0176072975575915
246.86.420440760976230.379559239023766
257.26.719261092625310.480738907374694
266.46.075529424383920.32447057561608
276.66.72115652685919-0.121156526859194
286.86.728563356109670.0714366438903265
296.16.73687484880436-0.636874848804357
306.56.65135053654484-0.151350536544843
316.46.282833463418640.117166536581358
3266.7066114146435-0.706611414643498
3366.74894115123216-0.748941151232159
347.36.624218712201090.675781287798911
356.16.386485482936-0.286485482936003
366.76.420755590244970.279244409755029
376.46.75389231218649-0.353892312186485
385.86.07993703414625-0.279937034146253
396.96.729971746383860.170028253616144
4076.745878965890260.254121034109737
417.36.731522751235810.568477248764189
425.96.68975970733088-0.789759707330877
436.26.27118478047534-0.0711847804753361
446.86.707555902449710.0924440975502882
4576.719662029239530.280337970760474
465.96.62201490731992-0.722014907319923
476.16.38680031220474-0.286800312204741
485.76.41414417560147-0.714144175601473
497.16.787893873210190.312106126789811
505.86.07804805853382-0.278048058533824
517.46.684951160954320.715048839045676
526.86.719433307316270.0805666926837283
536.86.742856604910380.0571433950896217
5476.701093561005440.298906438994555
556.26.27118478047534-0.0711847804753361
566.86.707555902449710.0924440975502882
5776.719662029239530.280337970760474
585.96.62201490731992-0.722014907319923
596.46.382392702442410.0176072975575915
6066.42453354146983-0.424533541469827







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1306468505308680.2612937010617350.869353149469132
170.06722114321919790.1344422864383960.932778856780802
180.4947503152006750.989500630401350.505249684799325
190.3564312410495230.7128624820990450.643568758950477
200.2640066061509490.5280132123018990.735993393849051
210.1725144321677750.3450288643355490.827485567832225
220.1844469663370070.3688939326740140.815553033662993
230.1818412736355050.363682547271010.818158726364495
240.1409909719362230.2819819438724450.859009028063777
250.2084440165685730.4168880331371460.791555983431427
260.1681482017378560.3362964034757110.831851798262144
270.1326687082744450.265337416548890.867331291725555
280.09212050470551980.184241009411040.90787949529448
290.1498346900486410.2996693800972820.850165309951359
300.1244182551684370.2488365103368750.875581744831562
310.08395272564954440.1679054512990890.916047274350456
320.1761194718931240.3522389437862490.823880528106876
330.3247878760571260.6495757521142520.675212123942874
340.6752553260663980.6494893478672030.324744673933601
350.6263311847493290.7473376305013420.373668815250671
360.7538476973111960.4923046053776090.246152302688804
370.7976292052803040.4047415894393920.202370794719696
380.7305332939814910.5389334120370170.269466706018509
390.7772473786390940.4455052427218130.222752621360906
400.7028659491694660.5942681016610690.297134050830534
410.9320232522057560.1359534955884890.0679767477942443
420.994271577526270.01145684494745950.00572842247372977
430.9788125152628670.04237496947426610.0211874847371331
440.9299438317925950.1401123364148110.0700561682074053

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.130646850530868 & 0.261293701061735 & 0.869353149469132 \tabularnewline
17 & 0.0672211432191979 & 0.134442286438396 & 0.932778856780802 \tabularnewline
18 & 0.494750315200675 & 0.98950063040135 & 0.505249684799325 \tabularnewline
19 & 0.356431241049523 & 0.712862482099045 & 0.643568758950477 \tabularnewline
20 & 0.264006606150949 & 0.528013212301899 & 0.735993393849051 \tabularnewline
21 & 0.172514432167775 & 0.345028864335549 & 0.827485567832225 \tabularnewline
22 & 0.184446966337007 & 0.368893932674014 & 0.815553033662993 \tabularnewline
23 & 0.181841273635505 & 0.36368254727101 & 0.818158726364495 \tabularnewline
24 & 0.140990971936223 & 0.281981943872445 & 0.859009028063777 \tabularnewline
25 & 0.208444016568573 & 0.416888033137146 & 0.791555983431427 \tabularnewline
26 & 0.168148201737856 & 0.336296403475711 & 0.831851798262144 \tabularnewline
27 & 0.132668708274445 & 0.26533741654889 & 0.867331291725555 \tabularnewline
28 & 0.0921205047055198 & 0.18424100941104 & 0.90787949529448 \tabularnewline
29 & 0.149834690048641 & 0.299669380097282 & 0.850165309951359 \tabularnewline
30 & 0.124418255168437 & 0.248836510336875 & 0.875581744831562 \tabularnewline
31 & 0.0839527256495444 & 0.167905451299089 & 0.916047274350456 \tabularnewline
32 & 0.176119471893124 & 0.352238943786249 & 0.823880528106876 \tabularnewline
33 & 0.324787876057126 & 0.649575752114252 & 0.675212123942874 \tabularnewline
34 & 0.675255326066398 & 0.649489347867203 & 0.324744673933601 \tabularnewline
35 & 0.626331184749329 & 0.747337630501342 & 0.373668815250671 \tabularnewline
36 & 0.753847697311196 & 0.492304605377609 & 0.246152302688804 \tabularnewline
37 & 0.797629205280304 & 0.404741589439392 & 0.202370794719696 \tabularnewline
38 & 0.730533293981491 & 0.538933412037017 & 0.269466706018509 \tabularnewline
39 & 0.777247378639094 & 0.445505242721813 & 0.222752621360906 \tabularnewline
40 & 0.702865949169466 & 0.594268101661069 & 0.297134050830534 \tabularnewline
41 & 0.932023252205756 & 0.135953495588489 & 0.0679767477942443 \tabularnewline
42 & 0.99427157752627 & 0.0114568449474595 & 0.00572842247372977 \tabularnewline
43 & 0.978812515262867 & 0.0423749694742661 & 0.0211874847371331 \tabularnewline
44 & 0.929943831792595 & 0.140112336414811 & 0.0700561682074053 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=190251&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]16[/C][C]0.130646850530868[/C][C]0.261293701061735[/C][C]0.869353149469132[/C][/ROW]
[ROW][C]17[/C][C]0.0672211432191979[/C][C]0.134442286438396[/C][C]0.932778856780802[/C][/ROW]
[ROW][C]18[/C][C]0.494750315200675[/C][C]0.98950063040135[/C][C]0.505249684799325[/C][/ROW]
[ROW][C]19[/C][C]0.356431241049523[/C][C]0.712862482099045[/C][C]0.643568758950477[/C][/ROW]
[ROW][C]20[/C][C]0.264006606150949[/C][C]0.528013212301899[/C][C]0.735993393849051[/C][/ROW]
[ROW][C]21[/C][C]0.172514432167775[/C][C]0.345028864335549[/C][C]0.827485567832225[/C][/ROW]
[ROW][C]22[/C][C]0.184446966337007[/C][C]0.368893932674014[/C][C]0.815553033662993[/C][/ROW]
[ROW][C]23[/C][C]0.181841273635505[/C][C]0.36368254727101[/C][C]0.818158726364495[/C][/ROW]
[ROW][C]24[/C][C]0.140990971936223[/C][C]0.281981943872445[/C][C]0.859009028063777[/C][/ROW]
[ROW][C]25[/C][C]0.208444016568573[/C][C]0.416888033137146[/C][C]0.791555983431427[/C][/ROW]
[ROW][C]26[/C][C]0.168148201737856[/C][C]0.336296403475711[/C][C]0.831851798262144[/C][/ROW]
[ROW][C]27[/C][C]0.132668708274445[/C][C]0.26533741654889[/C][C]0.867331291725555[/C][/ROW]
[ROW][C]28[/C][C]0.0921205047055198[/C][C]0.18424100941104[/C][C]0.90787949529448[/C][/ROW]
[ROW][C]29[/C][C]0.149834690048641[/C][C]0.299669380097282[/C][C]0.850165309951359[/C][/ROW]
[ROW][C]30[/C][C]0.124418255168437[/C][C]0.248836510336875[/C][C]0.875581744831562[/C][/ROW]
[ROW][C]31[/C][C]0.0839527256495444[/C][C]0.167905451299089[/C][C]0.916047274350456[/C][/ROW]
[ROW][C]32[/C][C]0.176119471893124[/C][C]0.352238943786249[/C][C]0.823880528106876[/C][/ROW]
[ROW][C]33[/C][C]0.324787876057126[/C][C]0.649575752114252[/C][C]0.675212123942874[/C][/ROW]
[ROW][C]34[/C][C]0.675255326066398[/C][C]0.649489347867203[/C][C]0.324744673933601[/C][/ROW]
[ROW][C]35[/C][C]0.626331184749329[/C][C]0.747337630501342[/C][C]0.373668815250671[/C][/ROW]
[ROW][C]36[/C][C]0.753847697311196[/C][C]0.492304605377609[/C][C]0.246152302688804[/C][/ROW]
[ROW][C]37[/C][C]0.797629205280304[/C][C]0.404741589439392[/C][C]0.202370794719696[/C][/ROW]
[ROW][C]38[/C][C]0.730533293981491[/C][C]0.538933412037017[/C][C]0.269466706018509[/C][/ROW]
[ROW][C]39[/C][C]0.777247378639094[/C][C]0.445505242721813[/C][C]0.222752621360906[/C][/ROW]
[ROW][C]40[/C][C]0.702865949169466[/C][C]0.594268101661069[/C][C]0.297134050830534[/C][/ROW]
[ROW][C]41[/C][C]0.932023252205756[/C][C]0.135953495588489[/C][C]0.0679767477942443[/C][/ROW]
[ROW][C]42[/C][C]0.99427157752627[/C][C]0.0114568449474595[/C][C]0.00572842247372977[/C][/ROW]
[ROW][C]43[/C][C]0.978812515262867[/C][C]0.0423749694742661[/C][C]0.0211874847371331[/C][/ROW]
[ROW][C]44[/C][C]0.929943831792595[/C][C]0.140112336414811[/C][C]0.0700561682074053[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=190251&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=190251&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
160.1306468505308680.2612937010617350.869353149469132
170.06722114321919790.1344422864383960.932778856780802
180.4947503152006750.989500630401350.505249684799325
190.3564312410495230.7128624820990450.643568758950477
200.2640066061509490.5280132123018990.735993393849051
210.1725144321677750.3450288643355490.827485567832225
220.1844469663370070.3688939326740140.815553033662993
230.1818412736355050.363682547271010.818158726364495
240.1409909719362230.2819819438724450.859009028063777
250.2084440165685730.4168880331371460.791555983431427
260.1681482017378560.3362964034757110.831851798262144
270.1326687082744450.265337416548890.867331291725555
280.09212050470551980.184241009411040.90787949529448
290.1498346900486410.2996693800972820.850165309951359
300.1244182551684370.2488365103368750.875581744831562
310.08395272564954440.1679054512990890.916047274350456
320.1761194718931240.3522389437862490.823880528106876
330.3247878760571260.6495757521142520.675212123942874
340.6752553260663980.6494893478672030.324744673933601
350.6263311847493290.7473376305013420.373668815250671
360.7538476973111960.4923046053776090.246152302688804
370.7976292052803040.4047415894393920.202370794719696
380.7305332939814910.5389334120370170.269466706018509
390.7772473786390940.4455052427218130.222752621360906
400.7028659491694660.5942681016610690.297134050830534
410.9320232522057560.1359534955884890.0679767477942443
420.994271577526270.01145684494745950.00572842247372977
430.9788125152628670.04237496947426610.0211874847371331
440.9299438317925950.1401123364148110.0700561682074053







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}