Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 22 Nov 2011 16:08:14 -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/2011/Nov/22/t13219961286p1gubkoeu43yik.htm/, Retrieved Thu, 25 Apr 2024 15:18:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=146420, Retrieved Thu, 25 Apr 2024 15:18:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [workshop 7 Meervo...] [2011-11-19 14:54:35] [aa7c7608f809e956d7797134ec926e04]
-   PD    [Multiple Regression] [workshop 7 Tutorial] [2011-11-22 21:08:14] [b00485a169f02477e40dc6f9919569a5] [Current]
Feedback Forum

Post a new message
Dataseries X:
5	12
6	17
5	10
6	14
7	14
8	14
5	18
5	17
10	16
5	11
5	13
5	14
5	16
5	9
5	15
5	13
5	15
5	16
6	12
5	13
5	14
5	11
5	12
6	12
5	8
7	13
5	10
6	12
5	15
5	14
6	15
6	13
5	15
7	13
6	15
5	16
4	16
5	15
5	17
7	15
6	12
6	11
5	9
7	15
6	10
6	14
8	16
6	17
5	13
5	9
4	15
5	15
5	11
7	14
5	13
5	16
5	15
5	11
5	12
7	9
10	16




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146420&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]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146420&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Happiness[t] = + 11.7355599214145 + 0.309626719056974Leeftijd[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Happiness[t] =  +  11.7355599214145 +  0.309626719056974Leeftijd[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146420&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Happiness[t] =  +  11.7355599214145 +  0.309626719056974Leeftijd[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146420&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146420&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
Happiness[t] = + 11.7355599214145 + 0.309626719056974Leeftijd[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)11.73555992141451.5157997.742200
Leeftijd0.3096267190569740.261731.1830.2415540.120777

\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) & 11.7355599214145 & 1.515799 & 7.7422 & 0 & 0 \tabularnewline
Leeftijd & 0.309626719056974 & 0.26173 & 1.183 & 0.241554 & 0.120777 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146420&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]11.7355599214145[/C][C]1.515799[/C][C]7.7422[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Leeftijd[/C][C]0.309626719056974[/C][C]0.26173[/C][C]1.183[/C][C]0.241554[/C][C]0.120777[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146420&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146420&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)11.73555992141451.5157997.742200
Leeftijd0.3096267190569740.261731.1830.2415540.120777







Multiple Linear Regression - Regression Statistics
Multiple R0.152218745551693
R-squared0.0231705464973311
Adjusted R-squared0.00661411508203169
F-TEST (value)1.39948917228139
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.241554263220562
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.39082414491427
Sum Squared Residuals337.246365422397

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.152218745551693 \tabularnewline
R-squared & 0.0231705464973311 \tabularnewline
Adjusted R-squared & 0.00661411508203169 \tabularnewline
F-TEST (value) & 1.39948917228139 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.241554263220562 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.39082414491427 \tabularnewline
Sum Squared Residuals & 337.246365422397 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146420&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.152218745551693[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0231705464973311[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.00661411508203169[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.39948917228139[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]0.241554263220562[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2.39082414491427[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]337.246365422397[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146420&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146420&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.152218745551693
R-squared0.0231705464973311
Adjusted R-squared0.00661411508203169
F-TEST (value)1.39948917228139
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.241554263220562
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.39082414491427
Sum Squared Residuals337.246365422397







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11213.2836935166994-1.28369351669941
21713.59332023575643.40667976424361
31013.2836935166994-3.28369351669941
41413.59332023575640.406679764243615
51413.90294695481340.0970530451866404
61414.2125736738703-0.212573673870334
71813.28369351669944.71630648330059
81713.28369351669943.71630648330059
91614.83182711198431.16817288801572
101113.2836935166994-2.28369351669941
111313.2836935166994-0.283693516699411
121413.28369351669940.716306483300589
131613.28369351669942.71630648330059
14913.2836935166994-4.28369351669941
151513.28369351669941.71630648330059
161313.2836935166994-0.283693516699411
171513.28369351669941.71630648330059
181613.28369351669942.71630648330059
191213.5933202357564-1.59332023575638
201313.2836935166994-0.283693516699411
211413.28369351669940.716306483300589
221113.2836935166994-2.28369351669941
231213.2836935166994-1.28369351669941
241213.5933202357564-1.59332023575638
25813.2836935166994-5.28369351669941
261313.9029469548134-0.90294695481336
271013.2836935166994-3.28369351669941
281213.5933202357564-1.59332023575638
291513.28369351669941.71630648330059
301413.28369351669940.716306483300589
311513.59332023575641.40667976424362
321313.5933202357564-0.593320235756385
331513.28369351669941.71630648330059
341313.9029469548134-0.90294695481336
351513.59332023575641.40667976424362
361613.28369351669942.71630648330059
371612.97406679764243.02593320235756
381513.28369351669941.71630648330059
391713.28369351669943.71630648330059
401513.90294695481341.09705304518664
411213.5933202357564-1.59332023575638
421113.5933202357564-2.59332023575638
43913.2836935166994-4.28369351669941
441513.90294695481341.09705304518664
451013.5933202357564-3.59332023575638
461413.59332023575640.406679764243615
471614.21257367387031.78742632612967
481713.59332023575643.40667976424362
491313.2836935166994-0.283693516699411
50913.2836935166994-4.28369351669941
511512.97406679764242.02593320235756
521513.28369351669941.71630648330059
531113.2836935166994-2.28369351669941
541413.90294695481340.0970530451866404
551313.2836935166994-0.283693516699411
561613.28369351669942.71630648330059
571513.28369351669941.71630648330059
581113.2836935166994-2.28369351669941
591213.2836935166994-1.28369351669941
60913.9029469548134-4.90294695481336
611614.83182711198431.16817288801572

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 12 & 13.2836935166994 & -1.28369351669941 \tabularnewline
2 & 17 & 13.5933202357564 & 3.40667976424361 \tabularnewline
3 & 10 & 13.2836935166994 & -3.28369351669941 \tabularnewline
4 & 14 & 13.5933202357564 & 0.406679764243615 \tabularnewline
5 & 14 & 13.9029469548134 & 0.0970530451866404 \tabularnewline
6 & 14 & 14.2125736738703 & -0.212573673870334 \tabularnewline
7 & 18 & 13.2836935166994 & 4.71630648330059 \tabularnewline
8 & 17 & 13.2836935166994 & 3.71630648330059 \tabularnewline
9 & 16 & 14.8318271119843 & 1.16817288801572 \tabularnewline
10 & 11 & 13.2836935166994 & -2.28369351669941 \tabularnewline
11 & 13 & 13.2836935166994 & -0.283693516699411 \tabularnewline
12 & 14 & 13.2836935166994 & 0.716306483300589 \tabularnewline
13 & 16 & 13.2836935166994 & 2.71630648330059 \tabularnewline
14 & 9 & 13.2836935166994 & -4.28369351669941 \tabularnewline
15 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
16 & 13 & 13.2836935166994 & -0.283693516699411 \tabularnewline
17 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
18 & 16 & 13.2836935166994 & 2.71630648330059 \tabularnewline
19 & 12 & 13.5933202357564 & -1.59332023575638 \tabularnewline
20 & 13 & 13.2836935166994 & -0.283693516699411 \tabularnewline
21 & 14 & 13.2836935166994 & 0.716306483300589 \tabularnewline
22 & 11 & 13.2836935166994 & -2.28369351669941 \tabularnewline
23 & 12 & 13.2836935166994 & -1.28369351669941 \tabularnewline
24 & 12 & 13.5933202357564 & -1.59332023575638 \tabularnewline
25 & 8 & 13.2836935166994 & -5.28369351669941 \tabularnewline
26 & 13 & 13.9029469548134 & -0.90294695481336 \tabularnewline
27 & 10 & 13.2836935166994 & -3.28369351669941 \tabularnewline
28 & 12 & 13.5933202357564 & -1.59332023575638 \tabularnewline
29 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
30 & 14 & 13.2836935166994 & 0.716306483300589 \tabularnewline
31 & 15 & 13.5933202357564 & 1.40667976424362 \tabularnewline
32 & 13 & 13.5933202357564 & -0.593320235756385 \tabularnewline
33 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
34 & 13 & 13.9029469548134 & -0.90294695481336 \tabularnewline
35 & 15 & 13.5933202357564 & 1.40667976424362 \tabularnewline
36 & 16 & 13.2836935166994 & 2.71630648330059 \tabularnewline
37 & 16 & 12.9740667976424 & 3.02593320235756 \tabularnewline
38 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
39 & 17 & 13.2836935166994 & 3.71630648330059 \tabularnewline
40 & 15 & 13.9029469548134 & 1.09705304518664 \tabularnewline
41 & 12 & 13.5933202357564 & -1.59332023575638 \tabularnewline
42 & 11 & 13.5933202357564 & -2.59332023575638 \tabularnewline
43 & 9 & 13.2836935166994 & -4.28369351669941 \tabularnewline
44 & 15 & 13.9029469548134 & 1.09705304518664 \tabularnewline
45 & 10 & 13.5933202357564 & -3.59332023575638 \tabularnewline
46 & 14 & 13.5933202357564 & 0.406679764243615 \tabularnewline
47 & 16 & 14.2125736738703 & 1.78742632612967 \tabularnewline
48 & 17 & 13.5933202357564 & 3.40667976424362 \tabularnewline
49 & 13 & 13.2836935166994 & -0.283693516699411 \tabularnewline
50 & 9 & 13.2836935166994 & -4.28369351669941 \tabularnewline
51 & 15 & 12.9740667976424 & 2.02593320235756 \tabularnewline
52 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
53 & 11 & 13.2836935166994 & -2.28369351669941 \tabularnewline
54 & 14 & 13.9029469548134 & 0.0970530451866404 \tabularnewline
55 & 13 & 13.2836935166994 & -0.283693516699411 \tabularnewline
56 & 16 & 13.2836935166994 & 2.71630648330059 \tabularnewline
57 & 15 & 13.2836935166994 & 1.71630648330059 \tabularnewline
58 & 11 & 13.2836935166994 & -2.28369351669941 \tabularnewline
59 & 12 & 13.2836935166994 & -1.28369351669941 \tabularnewline
60 & 9 & 13.9029469548134 & -4.90294695481336 \tabularnewline
61 & 16 & 14.8318271119843 & 1.16817288801572 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146420&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]12[/C][C]13.2836935166994[/C][C]-1.28369351669941[/C][/ROW]
[ROW][C]2[/C][C]17[/C][C]13.5933202357564[/C][C]3.40667976424361[/C][/ROW]
[ROW][C]3[/C][C]10[/C][C]13.2836935166994[/C][C]-3.28369351669941[/C][/ROW]
[ROW][C]4[/C][C]14[/C][C]13.5933202357564[/C][C]0.406679764243615[/C][/ROW]
[ROW][C]5[/C][C]14[/C][C]13.9029469548134[/C][C]0.0970530451866404[/C][/ROW]
[ROW][C]6[/C][C]14[/C][C]14.2125736738703[/C][C]-0.212573673870334[/C][/ROW]
[ROW][C]7[/C][C]18[/C][C]13.2836935166994[/C][C]4.71630648330059[/C][/ROW]
[ROW][C]8[/C][C]17[/C][C]13.2836935166994[/C][C]3.71630648330059[/C][/ROW]
[ROW][C]9[/C][C]16[/C][C]14.8318271119843[/C][C]1.16817288801572[/C][/ROW]
[ROW][C]10[/C][C]11[/C][C]13.2836935166994[/C][C]-2.28369351669941[/C][/ROW]
[ROW][C]11[/C][C]13[/C][C]13.2836935166994[/C][C]-0.283693516699411[/C][/ROW]
[ROW][C]12[/C][C]14[/C][C]13.2836935166994[/C][C]0.716306483300589[/C][/ROW]
[ROW][C]13[/C][C]16[/C][C]13.2836935166994[/C][C]2.71630648330059[/C][/ROW]
[ROW][C]14[/C][C]9[/C][C]13.2836935166994[/C][C]-4.28369351669941[/C][/ROW]
[ROW][C]15[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]16[/C][C]13[/C][C]13.2836935166994[/C][C]-0.283693516699411[/C][/ROW]
[ROW][C]17[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]18[/C][C]16[/C][C]13.2836935166994[/C][C]2.71630648330059[/C][/ROW]
[ROW][C]19[/C][C]12[/C][C]13.5933202357564[/C][C]-1.59332023575638[/C][/ROW]
[ROW][C]20[/C][C]13[/C][C]13.2836935166994[/C][C]-0.283693516699411[/C][/ROW]
[ROW][C]21[/C][C]14[/C][C]13.2836935166994[/C][C]0.716306483300589[/C][/ROW]
[ROW][C]22[/C][C]11[/C][C]13.2836935166994[/C][C]-2.28369351669941[/C][/ROW]
[ROW][C]23[/C][C]12[/C][C]13.2836935166994[/C][C]-1.28369351669941[/C][/ROW]
[ROW][C]24[/C][C]12[/C][C]13.5933202357564[/C][C]-1.59332023575638[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]13.2836935166994[/C][C]-5.28369351669941[/C][/ROW]
[ROW][C]26[/C][C]13[/C][C]13.9029469548134[/C][C]-0.90294695481336[/C][/ROW]
[ROW][C]27[/C][C]10[/C][C]13.2836935166994[/C][C]-3.28369351669941[/C][/ROW]
[ROW][C]28[/C][C]12[/C][C]13.5933202357564[/C][C]-1.59332023575638[/C][/ROW]
[ROW][C]29[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]30[/C][C]14[/C][C]13.2836935166994[/C][C]0.716306483300589[/C][/ROW]
[ROW][C]31[/C][C]15[/C][C]13.5933202357564[/C][C]1.40667976424362[/C][/ROW]
[ROW][C]32[/C][C]13[/C][C]13.5933202357564[/C][C]-0.593320235756385[/C][/ROW]
[ROW][C]33[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]34[/C][C]13[/C][C]13.9029469548134[/C][C]-0.90294695481336[/C][/ROW]
[ROW][C]35[/C][C]15[/C][C]13.5933202357564[/C][C]1.40667976424362[/C][/ROW]
[ROW][C]36[/C][C]16[/C][C]13.2836935166994[/C][C]2.71630648330059[/C][/ROW]
[ROW][C]37[/C][C]16[/C][C]12.9740667976424[/C][C]3.02593320235756[/C][/ROW]
[ROW][C]38[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]39[/C][C]17[/C][C]13.2836935166994[/C][C]3.71630648330059[/C][/ROW]
[ROW][C]40[/C][C]15[/C][C]13.9029469548134[/C][C]1.09705304518664[/C][/ROW]
[ROW][C]41[/C][C]12[/C][C]13.5933202357564[/C][C]-1.59332023575638[/C][/ROW]
[ROW][C]42[/C][C]11[/C][C]13.5933202357564[/C][C]-2.59332023575638[/C][/ROW]
[ROW][C]43[/C][C]9[/C][C]13.2836935166994[/C][C]-4.28369351669941[/C][/ROW]
[ROW][C]44[/C][C]15[/C][C]13.9029469548134[/C][C]1.09705304518664[/C][/ROW]
[ROW][C]45[/C][C]10[/C][C]13.5933202357564[/C][C]-3.59332023575638[/C][/ROW]
[ROW][C]46[/C][C]14[/C][C]13.5933202357564[/C][C]0.406679764243615[/C][/ROW]
[ROW][C]47[/C][C]16[/C][C]14.2125736738703[/C][C]1.78742632612967[/C][/ROW]
[ROW][C]48[/C][C]17[/C][C]13.5933202357564[/C][C]3.40667976424362[/C][/ROW]
[ROW][C]49[/C][C]13[/C][C]13.2836935166994[/C][C]-0.283693516699411[/C][/ROW]
[ROW][C]50[/C][C]9[/C][C]13.2836935166994[/C][C]-4.28369351669941[/C][/ROW]
[ROW][C]51[/C][C]15[/C][C]12.9740667976424[/C][C]2.02593320235756[/C][/ROW]
[ROW][C]52[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]53[/C][C]11[/C][C]13.2836935166994[/C][C]-2.28369351669941[/C][/ROW]
[ROW][C]54[/C][C]14[/C][C]13.9029469548134[/C][C]0.0970530451866404[/C][/ROW]
[ROW][C]55[/C][C]13[/C][C]13.2836935166994[/C][C]-0.283693516699411[/C][/ROW]
[ROW][C]56[/C][C]16[/C][C]13.2836935166994[/C][C]2.71630648330059[/C][/ROW]
[ROW][C]57[/C][C]15[/C][C]13.2836935166994[/C][C]1.71630648330059[/C][/ROW]
[ROW][C]58[/C][C]11[/C][C]13.2836935166994[/C][C]-2.28369351669941[/C][/ROW]
[ROW][C]59[/C][C]12[/C][C]13.2836935166994[/C][C]-1.28369351669941[/C][/ROW]
[ROW][C]60[/C][C]9[/C][C]13.9029469548134[/C][C]-4.90294695481336[/C][/ROW]
[ROW][C]61[/C][C]16[/C][C]14.8318271119843[/C][C]1.16817288801572[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146420&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146420&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
11213.2836935166994-1.28369351669941
21713.59332023575643.40667976424361
31013.2836935166994-3.28369351669941
41413.59332023575640.406679764243615
51413.90294695481340.0970530451866404
61414.2125736738703-0.212573673870334
71813.28369351669944.71630648330059
81713.28369351669943.71630648330059
91614.83182711198431.16817288801572
101113.2836935166994-2.28369351669941
111313.2836935166994-0.283693516699411
121413.28369351669940.716306483300589
131613.28369351669942.71630648330059
14913.2836935166994-4.28369351669941
151513.28369351669941.71630648330059
161313.2836935166994-0.283693516699411
171513.28369351669941.71630648330059
181613.28369351669942.71630648330059
191213.5933202357564-1.59332023575638
201313.2836935166994-0.283693516699411
211413.28369351669940.716306483300589
221113.2836935166994-2.28369351669941
231213.2836935166994-1.28369351669941
241213.5933202357564-1.59332023575638
25813.2836935166994-5.28369351669941
261313.9029469548134-0.90294695481336
271013.2836935166994-3.28369351669941
281213.5933202357564-1.59332023575638
291513.28369351669941.71630648330059
301413.28369351669940.716306483300589
311513.59332023575641.40667976424362
321313.5933202357564-0.593320235756385
331513.28369351669941.71630648330059
341313.9029469548134-0.90294695481336
351513.59332023575641.40667976424362
361613.28369351669942.71630648330059
371612.97406679764243.02593320235756
381513.28369351669941.71630648330059
391713.28369351669943.71630648330059
401513.90294695481341.09705304518664
411213.5933202357564-1.59332023575638
421113.5933202357564-2.59332023575638
43913.2836935166994-4.28369351669941
441513.90294695481341.09705304518664
451013.5933202357564-3.59332023575638
461413.59332023575640.406679764243615
471614.21257367387031.78742632612967
481713.59332023575643.40667976424362
491313.2836935166994-0.283693516699411
50913.2836935166994-4.28369351669941
511512.97406679764242.02593320235756
521513.28369351669941.71630648330059
531113.2836935166994-2.28369351669941
541413.90294695481340.0970530451866404
551313.2836935166994-0.283693516699411
561613.28369351669942.71630648330059
571513.28369351669941.71630648330059
581113.2836935166994-2.28369351669941
591213.2836935166994-1.28369351669941
60913.9029469548134-4.90294695481336
611614.83182711198431.16817288801572







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.5844520379082410.8310959241835170.415547962091759
60.5310968112117220.9378063775765550.468903188788277
70.8202033801786260.3595932396427480.179796619821374
80.8341372184928470.3317255630143060.165862781507153
90.7662578829787040.4674842340425910.233742117021296
100.7906354573238510.4187290853522980.209364542676149
110.7144114492965230.5711771014069540.285588550703477
120.6249368396069590.7501263207860820.375063160393041
130.6091320501780080.7817358996439840.390867949821992
140.797427732732280.4051445345354410.20257226726772
150.7539919168611970.4920161662776060.246008083138803
160.6831095500853230.6337808998293540.316890449914677
170.6322716507765350.735456698446930.367728349223465
180.6302548870421010.7394902259157990.3697451129579
190.6006265058592960.7987469882814090.399373494140704
200.5246041666298020.9507916667403950.475395833370198
210.4479780318612160.8959560637224320.552021968138784
220.4515405066482780.9030810132965560.548459493351722
230.3999095579446470.7998191158892940.600090442055353
240.3630850089372740.7261700178745480.636914991062726
250.6415034899633970.7169930200732060.358496510036603
260.5791044660204230.8417910679591540.420895533979577
270.6348489957133650.730302008573270.365151004286635
280.5925709091156490.8148581817687020.407429090884351
290.55624535692260.88750928615480.4437546430774
300.4876750013157130.9753500026314270.512324998684287
310.4366086543800920.8732173087601830.563391345619908
320.3677120782745820.7354241565491630.632287921725418
330.3314308651695490.6628617303390980.668569134830451
340.2742432557998760.5484865115997520.725756744200124
350.2326672287588910.4653344575177820.767332771241109
360.2449310718587140.4898621437174280.755068928141286
370.2799724784663540.5599449569327080.720027521533646
380.2519836002740610.5039672005481230.748016399725939
390.3610953294973360.7221906589946730.638904670502664
400.3068128835473220.6136257670946430.693187116452678
410.2610156701232480.5220313402464960.738984329876752
420.2569186726276270.5138373452552550.743081327372373
430.3792958733242230.7585917466484470.620704126675777
440.3175846313140040.6351692626280080.682415368685996
450.3962840649175690.7925681298351390.603715935082431
460.3159082813717360.6318165627434730.684091718628264
470.2774666287756990.5549332575513980.722533371224301
480.3696994317560150.7393988635120310.630300568243985
490.2827094172370440.5654188344740890.717290582762956
500.437241247453230.874482494906460.56275875254677
510.4059864297230380.8119728594460770.594013570276962
520.3754705261541070.7509410523082150.624529473845893
530.3221402137047040.6442804274094080.677859786295296
540.2200366724782440.4400733449564880.779963327521756
550.1322506018877410.2645012037754830.867749398112259
560.1813797683281180.3627595366562350.818620231671882

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.584452037908241 & 0.831095924183517 & 0.415547962091759 \tabularnewline
6 & 0.531096811211722 & 0.937806377576555 & 0.468903188788277 \tabularnewline
7 & 0.820203380178626 & 0.359593239642748 & 0.179796619821374 \tabularnewline
8 & 0.834137218492847 & 0.331725563014306 & 0.165862781507153 \tabularnewline
9 & 0.766257882978704 & 0.467484234042591 & 0.233742117021296 \tabularnewline
10 & 0.790635457323851 & 0.418729085352298 & 0.209364542676149 \tabularnewline
11 & 0.714411449296523 & 0.571177101406954 & 0.285588550703477 \tabularnewline
12 & 0.624936839606959 & 0.750126320786082 & 0.375063160393041 \tabularnewline
13 & 0.609132050178008 & 0.781735899643984 & 0.390867949821992 \tabularnewline
14 & 0.79742773273228 & 0.405144534535441 & 0.20257226726772 \tabularnewline
15 & 0.753991916861197 & 0.492016166277606 & 0.246008083138803 \tabularnewline
16 & 0.683109550085323 & 0.633780899829354 & 0.316890449914677 \tabularnewline
17 & 0.632271650776535 & 0.73545669844693 & 0.367728349223465 \tabularnewline
18 & 0.630254887042101 & 0.739490225915799 & 0.3697451129579 \tabularnewline
19 & 0.600626505859296 & 0.798746988281409 & 0.399373494140704 \tabularnewline
20 & 0.524604166629802 & 0.950791666740395 & 0.475395833370198 \tabularnewline
21 & 0.447978031861216 & 0.895956063722432 & 0.552021968138784 \tabularnewline
22 & 0.451540506648278 & 0.903081013296556 & 0.548459493351722 \tabularnewline
23 & 0.399909557944647 & 0.799819115889294 & 0.600090442055353 \tabularnewline
24 & 0.363085008937274 & 0.726170017874548 & 0.636914991062726 \tabularnewline
25 & 0.641503489963397 & 0.716993020073206 & 0.358496510036603 \tabularnewline
26 & 0.579104466020423 & 0.841791067959154 & 0.420895533979577 \tabularnewline
27 & 0.634848995713365 & 0.73030200857327 & 0.365151004286635 \tabularnewline
28 & 0.592570909115649 & 0.814858181768702 & 0.407429090884351 \tabularnewline
29 & 0.5562453569226 & 0.8875092861548 & 0.4437546430774 \tabularnewline
30 & 0.487675001315713 & 0.975350002631427 & 0.512324998684287 \tabularnewline
31 & 0.436608654380092 & 0.873217308760183 & 0.563391345619908 \tabularnewline
32 & 0.367712078274582 & 0.735424156549163 & 0.632287921725418 \tabularnewline
33 & 0.331430865169549 & 0.662861730339098 & 0.668569134830451 \tabularnewline
34 & 0.274243255799876 & 0.548486511599752 & 0.725756744200124 \tabularnewline
35 & 0.232667228758891 & 0.465334457517782 & 0.767332771241109 \tabularnewline
36 & 0.244931071858714 & 0.489862143717428 & 0.755068928141286 \tabularnewline
37 & 0.279972478466354 & 0.559944956932708 & 0.720027521533646 \tabularnewline
38 & 0.251983600274061 & 0.503967200548123 & 0.748016399725939 \tabularnewline
39 & 0.361095329497336 & 0.722190658994673 & 0.638904670502664 \tabularnewline
40 & 0.306812883547322 & 0.613625767094643 & 0.693187116452678 \tabularnewline
41 & 0.261015670123248 & 0.522031340246496 & 0.738984329876752 \tabularnewline
42 & 0.256918672627627 & 0.513837345255255 & 0.743081327372373 \tabularnewline
43 & 0.379295873324223 & 0.758591746648447 & 0.620704126675777 \tabularnewline
44 & 0.317584631314004 & 0.635169262628008 & 0.682415368685996 \tabularnewline
45 & 0.396284064917569 & 0.792568129835139 & 0.603715935082431 \tabularnewline
46 & 0.315908281371736 & 0.631816562743473 & 0.684091718628264 \tabularnewline
47 & 0.277466628775699 & 0.554933257551398 & 0.722533371224301 \tabularnewline
48 & 0.369699431756015 & 0.739398863512031 & 0.630300568243985 \tabularnewline
49 & 0.282709417237044 & 0.565418834474089 & 0.717290582762956 \tabularnewline
50 & 0.43724124745323 & 0.87448249490646 & 0.56275875254677 \tabularnewline
51 & 0.405986429723038 & 0.811972859446077 & 0.594013570276962 \tabularnewline
52 & 0.375470526154107 & 0.750941052308215 & 0.624529473845893 \tabularnewline
53 & 0.322140213704704 & 0.644280427409408 & 0.677859786295296 \tabularnewline
54 & 0.220036672478244 & 0.440073344956488 & 0.779963327521756 \tabularnewline
55 & 0.132250601887741 & 0.264501203775483 & 0.867749398112259 \tabularnewline
56 & 0.181379768328118 & 0.362759536656235 & 0.818620231671882 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=146420&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]5[/C][C]0.584452037908241[/C][C]0.831095924183517[/C][C]0.415547962091759[/C][/ROW]
[ROW][C]6[/C][C]0.531096811211722[/C][C]0.937806377576555[/C][C]0.468903188788277[/C][/ROW]
[ROW][C]7[/C][C]0.820203380178626[/C][C]0.359593239642748[/C][C]0.179796619821374[/C][/ROW]
[ROW][C]8[/C][C]0.834137218492847[/C][C]0.331725563014306[/C][C]0.165862781507153[/C][/ROW]
[ROW][C]9[/C][C]0.766257882978704[/C][C]0.467484234042591[/C][C]0.233742117021296[/C][/ROW]
[ROW][C]10[/C][C]0.790635457323851[/C][C]0.418729085352298[/C][C]0.209364542676149[/C][/ROW]
[ROW][C]11[/C][C]0.714411449296523[/C][C]0.571177101406954[/C][C]0.285588550703477[/C][/ROW]
[ROW][C]12[/C][C]0.624936839606959[/C][C]0.750126320786082[/C][C]0.375063160393041[/C][/ROW]
[ROW][C]13[/C][C]0.609132050178008[/C][C]0.781735899643984[/C][C]0.390867949821992[/C][/ROW]
[ROW][C]14[/C][C]0.79742773273228[/C][C]0.405144534535441[/C][C]0.20257226726772[/C][/ROW]
[ROW][C]15[/C][C]0.753991916861197[/C][C]0.492016166277606[/C][C]0.246008083138803[/C][/ROW]
[ROW][C]16[/C][C]0.683109550085323[/C][C]0.633780899829354[/C][C]0.316890449914677[/C][/ROW]
[ROW][C]17[/C][C]0.632271650776535[/C][C]0.73545669844693[/C][C]0.367728349223465[/C][/ROW]
[ROW][C]18[/C][C]0.630254887042101[/C][C]0.739490225915799[/C][C]0.3697451129579[/C][/ROW]
[ROW][C]19[/C][C]0.600626505859296[/C][C]0.798746988281409[/C][C]0.399373494140704[/C][/ROW]
[ROW][C]20[/C][C]0.524604166629802[/C][C]0.950791666740395[/C][C]0.475395833370198[/C][/ROW]
[ROW][C]21[/C][C]0.447978031861216[/C][C]0.895956063722432[/C][C]0.552021968138784[/C][/ROW]
[ROW][C]22[/C][C]0.451540506648278[/C][C]0.903081013296556[/C][C]0.548459493351722[/C][/ROW]
[ROW][C]23[/C][C]0.399909557944647[/C][C]0.799819115889294[/C][C]0.600090442055353[/C][/ROW]
[ROW][C]24[/C][C]0.363085008937274[/C][C]0.726170017874548[/C][C]0.636914991062726[/C][/ROW]
[ROW][C]25[/C][C]0.641503489963397[/C][C]0.716993020073206[/C][C]0.358496510036603[/C][/ROW]
[ROW][C]26[/C][C]0.579104466020423[/C][C]0.841791067959154[/C][C]0.420895533979577[/C][/ROW]
[ROW][C]27[/C][C]0.634848995713365[/C][C]0.73030200857327[/C][C]0.365151004286635[/C][/ROW]
[ROW][C]28[/C][C]0.592570909115649[/C][C]0.814858181768702[/C][C]0.407429090884351[/C][/ROW]
[ROW][C]29[/C][C]0.5562453569226[/C][C]0.8875092861548[/C][C]0.4437546430774[/C][/ROW]
[ROW][C]30[/C][C]0.487675001315713[/C][C]0.975350002631427[/C][C]0.512324998684287[/C][/ROW]
[ROW][C]31[/C][C]0.436608654380092[/C][C]0.873217308760183[/C][C]0.563391345619908[/C][/ROW]
[ROW][C]32[/C][C]0.367712078274582[/C][C]0.735424156549163[/C][C]0.632287921725418[/C][/ROW]
[ROW][C]33[/C][C]0.331430865169549[/C][C]0.662861730339098[/C][C]0.668569134830451[/C][/ROW]
[ROW][C]34[/C][C]0.274243255799876[/C][C]0.548486511599752[/C][C]0.725756744200124[/C][/ROW]
[ROW][C]35[/C][C]0.232667228758891[/C][C]0.465334457517782[/C][C]0.767332771241109[/C][/ROW]
[ROW][C]36[/C][C]0.244931071858714[/C][C]0.489862143717428[/C][C]0.755068928141286[/C][/ROW]
[ROW][C]37[/C][C]0.279972478466354[/C][C]0.559944956932708[/C][C]0.720027521533646[/C][/ROW]
[ROW][C]38[/C][C]0.251983600274061[/C][C]0.503967200548123[/C][C]0.748016399725939[/C][/ROW]
[ROW][C]39[/C][C]0.361095329497336[/C][C]0.722190658994673[/C][C]0.638904670502664[/C][/ROW]
[ROW][C]40[/C][C]0.306812883547322[/C][C]0.613625767094643[/C][C]0.693187116452678[/C][/ROW]
[ROW][C]41[/C][C]0.261015670123248[/C][C]0.522031340246496[/C][C]0.738984329876752[/C][/ROW]
[ROW][C]42[/C][C]0.256918672627627[/C][C]0.513837345255255[/C][C]0.743081327372373[/C][/ROW]
[ROW][C]43[/C][C]0.379295873324223[/C][C]0.758591746648447[/C][C]0.620704126675777[/C][/ROW]
[ROW][C]44[/C][C]0.317584631314004[/C][C]0.635169262628008[/C][C]0.682415368685996[/C][/ROW]
[ROW][C]45[/C][C]0.396284064917569[/C][C]0.792568129835139[/C][C]0.603715935082431[/C][/ROW]
[ROW][C]46[/C][C]0.315908281371736[/C][C]0.631816562743473[/C][C]0.684091718628264[/C][/ROW]
[ROW][C]47[/C][C]0.277466628775699[/C][C]0.554933257551398[/C][C]0.722533371224301[/C][/ROW]
[ROW][C]48[/C][C]0.369699431756015[/C][C]0.739398863512031[/C][C]0.630300568243985[/C][/ROW]
[ROW][C]49[/C][C]0.282709417237044[/C][C]0.565418834474089[/C][C]0.717290582762956[/C][/ROW]
[ROW][C]50[/C][C]0.43724124745323[/C][C]0.87448249490646[/C][C]0.56275875254677[/C][/ROW]
[ROW][C]51[/C][C]0.405986429723038[/C][C]0.811972859446077[/C][C]0.594013570276962[/C][/ROW]
[ROW][C]52[/C][C]0.375470526154107[/C][C]0.750941052308215[/C][C]0.624529473845893[/C][/ROW]
[ROW][C]53[/C][C]0.322140213704704[/C][C]0.644280427409408[/C][C]0.677859786295296[/C][/ROW]
[ROW][C]54[/C][C]0.220036672478244[/C][C]0.440073344956488[/C][C]0.779963327521756[/C][/ROW]
[ROW][C]55[/C][C]0.132250601887741[/C][C]0.264501203775483[/C][C]0.867749398112259[/C][/ROW]
[ROW][C]56[/C][C]0.181379768328118[/C][C]0.362759536656235[/C][C]0.818620231671882[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=146420&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=146420&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
50.5844520379082410.8310959241835170.415547962091759
60.5310968112117220.9378063775765550.468903188788277
70.8202033801786260.3595932396427480.179796619821374
80.8341372184928470.3317255630143060.165862781507153
90.7662578829787040.4674842340425910.233742117021296
100.7906354573238510.4187290853522980.209364542676149
110.7144114492965230.5711771014069540.285588550703477
120.6249368396069590.7501263207860820.375063160393041
130.6091320501780080.7817358996439840.390867949821992
140.797427732732280.4051445345354410.20257226726772
150.7539919168611970.4920161662776060.246008083138803
160.6831095500853230.6337808998293540.316890449914677
170.6322716507765350.735456698446930.367728349223465
180.6302548870421010.7394902259157990.3697451129579
190.6006265058592960.7987469882814090.399373494140704
200.5246041666298020.9507916667403950.475395833370198
210.4479780318612160.8959560637224320.552021968138784
220.4515405066482780.9030810132965560.548459493351722
230.3999095579446470.7998191158892940.600090442055353
240.3630850089372740.7261700178745480.636914991062726
250.6415034899633970.7169930200732060.358496510036603
260.5791044660204230.8417910679591540.420895533979577
270.6348489957133650.730302008573270.365151004286635
280.5925709091156490.8148581817687020.407429090884351
290.55624535692260.88750928615480.4437546430774
300.4876750013157130.9753500026314270.512324998684287
310.4366086543800920.8732173087601830.563391345619908
320.3677120782745820.7354241565491630.632287921725418
330.3314308651695490.6628617303390980.668569134830451
340.2742432557998760.5484865115997520.725756744200124
350.2326672287588910.4653344575177820.767332771241109
360.2449310718587140.4898621437174280.755068928141286
370.2799724784663540.5599449569327080.720027521533646
380.2519836002740610.5039672005481230.748016399725939
390.3610953294973360.7221906589946730.638904670502664
400.3068128835473220.6136257670946430.693187116452678
410.2610156701232480.5220313402464960.738984329876752
420.2569186726276270.5138373452552550.743081327372373
430.3792958733242230.7585917466484470.620704126675777
440.3175846313140040.6351692626280080.682415368685996
450.3962840649175690.7925681298351390.603715935082431
460.3159082813717360.6318165627434730.684091718628264
470.2774666287756990.5549332575513980.722533371224301
480.3696994317560150.7393988635120310.630300568243985
490.2827094172370440.5654188344740890.717290582762956
500.437241247453230.874482494906460.56275875254677
510.4059864297230380.8119728594460770.594013570276962
520.3754705261541070.7509410523082150.624529473845893
530.3221402137047040.6442804274094080.677859786295296
540.2200366724782440.4400733449564880.779963327521756
550.1322506018877410.2645012037754830.867749398112259
560.1813797683281180.3627595366562350.818620231671882







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 2 ; par2 = Do not include Seasonal 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')
}