Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 19 Dec 2009 17:49:28 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/20/t12612702516no3jw5khocrol5.htm/, Retrieved Sat, 27 Apr 2024 07:33:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69765, Retrieved Sat, 27 Apr 2024 07:33:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact165
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-20 14:32:05] [898d317f4f946fbfcc4d07699283d43b]
-    D  [Multiple Regression] [Model 1] [2009-12-19 11:59:10] [a542c511726eba04a1fc2f4bd37a90f8]
-    D      [Multiple Regression] [Model 1] [2009-12-20 00:49:28] [865cd78857e928bd6e7d79509c6cdcc5] [Current]
Feedback Forum

Post a new message
Dataseries X:
3016	0
2155	0
2172	0
2150	0
2533	0
2058	0
2160	0
2260	0
2498	0
2695	0
2799	0
2946	0
2930	0
2318	0
2540	0
2570	0
2669	0
2450	0
2842	0
3440	0
2678	0
2981	0
2260	0
2844	0
2546	0
2456	0
2295	0
2379	0
2479	0
2057	0
2280	0
2351	0
2276	0
2548	1
2311	1
2201	1
2725	1
2408	1
2139	1
1898	1
2537	1
2068	1
2063	1
2520	1
2434	1
2190	1
2794	1
2070	1
2615	1
2265	1
2139	1
2428	1
2137	1
1823	1
2063	1
1806	1
1758	1
2243	1
1993	1
1932	1
2465	1




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 2517.66666666667 -282.916666666667x[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  2517.66666666667 -282.916666666667x[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69765&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  2517.66666666667 -282.916666666667x[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69765&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69765&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] = + 2517.66666666667 -282.916666666667x[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2517.6666666666753.14423347.374200
x-282.91666666666778.440805-3.60680.0006390.00032

\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) & 2517.66666666667 & 53.144233 & 47.3742 & 0 & 0 \tabularnewline
x & -282.916666666667 & 78.440805 & -3.6068 & 0.000639 & 0.00032 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69765&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]2517.66666666667[/C][C]53.144233[/C][C]47.3742[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-282.916666666667[/C][C]78.440805[/C][C]-3.6068[/C][C]0.000639[/C][C]0.00032[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69765&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69765&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)2517.6666666666753.14423347.374200
x-282.91666666666778.440805-3.60680.0006390.00032







Multiple Linear Regression - Regression Statistics
Multiple R0.425034404876779
R-squared0.180654245328958
Adjusted R-squared0.166767029148093
F-TEST (value)13.0086723628510
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.000639218028440691
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation305.290375342617
Sum Squared Residuals5498930.58333334

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.425034404876779 \tabularnewline
R-squared & 0.180654245328958 \tabularnewline
Adjusted R-squared & 0.166767029148093 \tabularnewline
F-TEST (value) & 13.0086723628510 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.000639218028440691 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 305.290375342617 \tabularnewline
Sum Squared Residuals & 5498930.58333334 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69765&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.425034404876779[/C][/ROW]
[ROW][C]R-squared[/C][C]0.180654245328958[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.166767029148093[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.0086723628510[/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.000639218028440691[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]305.290375342617[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]5498930.58333334[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69765&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69765&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.425034404876779
R-squared0.180654245328958
Adjusted R-squared0.166767029148093
F-TEST (value)13.0086723628510
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.000639218028440691
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation305.290375342617
Sum Squared Residuals5498930.58333334







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
130162517.66666666666498.333333333337
221552517.66666666667-362.666666666667
321722517.66666666667-345.666666666667
421502517.66666666667-367.666666666667
525332517.6666666666715.3333333333333
620582517.66666666667-459.666666666667
721602517.66666666667-357.666666666667
822602517.66666666667-257.666666666667
924982517.66666666667-19.6666666666667
1026952517.66666666667177.333333333333
1127992517.66666666667281.333333333333
1229462517.66666666667428.333333333333
1329302517.66666666667412.333333333333
1423182517.66666666667-199.666666666667
1525402517.6666666666722.3333333333333
1625702517.6666666666752.3333333333333
1726692517.66666666667151.333333333333
1824502517.66666666667-67.6666666666667
1928422517.66666666667324.333333333333
2034402517.66666666667922.333333333333
2126782517.66666666667160.333333333333
2229812517.66666666667463.333333333333
2322602517.66666666667-257.666666666667
2428442517.66666666667326.333333333333
2525462517.6666666666728.3333333333333
2624562517.66666666667-61.6666666666667
2722952517.66666666667-222.666666666667
2823792517.66666666667-138.666666666667
2924792517.66666666667-38.6666666666667
3020572517.66666666667-460.666666666667
3122802517.66666666667-237.666666666667
3223512517.66666666667-166.666666666667
3322762517.66666666667-241.666666666667
3425482234.75313.25
3523112234.7576.25
3622012234.75-33.75
3727252234.75490.25
3824082234.75173.25
3921392234.75-95.75
4018982234.75-336.75
4125372234.75302.25
4220682234.75-166.75
4320632234.75-171.75
4425202234.75285.25
4524342234.75199.25
4621902234.75-44.75
4727942234.75559.25
4820702234.75-164.75
4926152234.75380.25
5022652234.7530.25
5121392234.75-95.75
5224282234.75193.25
5321372234.75-97.75
5418232234.75-411.75
5520632234.75-171.75
5618062234.75-428.75
5717582234.75-476.75
5822432234.758.25
5919932234.75-241.75
6019322234.75-302.75
6124652234.75230.25

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3016 & 2517.66666666666 & 498.333333333337 \tabularnewline
2 & 2155 & 2517.66666666667 & -362.666666666667 \tabularnewline
3 & 2172 & 2517.66666666667 & -345.666666666667 \tabularnewline
4 & 2150 & 2517.66666666667 & -367.666666666667 \tabularnewline
5 & 2533 & 2517.66666666667 & 15.3333333333333 \tabularnewline
6 & 2058 & 2517.66666666667 & -459.666666666667 \tabularnewline
7 & 2160 & 2517.66666666667 & -357.666666666667 \tabularnewline
8 & 2260 & 2517.66666666667 & -257.666666666667 \tabularnewline
9 & 2498 & 2517.66666666667 & -19.6666666666667 \tabularnewline
10 & 2695 & 2517.66666666667 & 177.333333333333 \tabularnewline
11 & 2799 & 2517.66666666667 & 281.333333333333 \tabularnewline
12 & 2946 & 2517.66666666667 & 428.333333333333 \tabularnewline
13 & 2930 & 2517.66666666667 & 412.333333333333 \tabularnewline
14 & 2318 & 2517.66666666667 & -199.666666666667 \tabularnewline
15 & 2540 & 2517.66666666667 & 22.3333333333333 \tabularnewline
16 & 2570 & 2517.66666666667 & 52.3333333333333 \tabularnewline
17 & 2669 & 2517.66666666667 & 151.333333333333 \tabularnewline
18 & 2450 & 2517.66666666667 & -67.6666666666667 \tabularnewline
19 & 2842 & 2517.66666666667 & 324.333333333333 \tabularnewline
20 & 3440 & 2517.66666666667 & 922.333333333333 \tabularnewline
21 & 2678 & 2517.66666666667 & 160.333333333333 \tabularnewline
22 & 2981 & 2517.66666666667 & 463.333333333333 \tabularnewline
23 & 2260 & 2517.66666666667 & -257.666666666667 \tabularnewline
24 & 2844 & 2517.66666666667 & 326.333333333333 \tabularnewline
25 & 2546 & 2517.66666666667 & 28.3333333333333 \tabularnewline
26 & 2456 & 2517.66666666667 & -61.6666666666667 \tabularnewline
27 & 2295 & 2517.66666666667 & -222.666666666667 \tabularnewline
28 & 2379 & 2517.66666666667 & -138.666666666667 \tabularnewline
29 & 2479 & 2517.66666666667 & -38.6666666666667 \tabularnewline
30 & 2057 & 2517.66666666667 & -460.666666666667 \tabularnewline
31 & 2280 & 2517.66666666667 & -237.666666666667 \tabularnewline
32 & 2351 & 2517.66666666667 & -166.666666666667 \tabularnewline
33 & 2276 & 2517.66666666667 & -241.666666666667 \tabularnewline
34 & 2548 & 2234.75 & 313.25 \tabularnewline
35 & 2311 & 2234.75 & 76.25 \tabularnewline
36 & 2201 & 2234.75 & -33.75 \tabularnewline
37 & 2725 & 2234.75 & 490.25 \tabularnewline
38 & 2408 & 2234.75 & 173.25 \tabularnewline
39 & 2139 & 2234.75 & -95.75 \tabularnewline
40 & 1898 & 2234.75 & -336.75 \tabularnewline
41 & 2537 & 2234.75 & 302.25 \tabularnewline
42 & 2068 & 2234.75 & -166.75 \tabularnewline
43 & 2063 & 2234.75 & -171.75 \tabularnewline
44 & 2520 & 2234.75 & 285.25 \tabularnewline
45 & 2434 & 2234.75 & 199.25 \tabularnewline
46 & 2190 & 2234.75 & -44.75 \tabularnewline
47 & 2794 & 2234.75 & 559.25 \tabularnewline
48 & 2070 & 2234.75 & -164.75 \tabularnewline
49 & 2615 & 2234.75 & 380.25 \tabularnewline
50 & 2265 & 2234.75 & 30.25 \tabularnewline
51 & 2139 & 2234.75 & -95.75 \tabularnewline
52 & 2428 & 2234.75 & 193.25 \tabularnewline
53 & 2137 & 2234.75 & -97.75 \tabularnewline
54 & 1823 & 2234.75 & -411.75 \tabularnewline
55 & 2063 & 2234.75 & -171.75 \tabularnewline
56 & 1806 & 2234.75 & -428.75 \tabularnewline
57 & 1758 & 2234.75 & -476.75 \tabularnewline
58 & 2243 & 2234.75 & 8.25 \tabularnewline
59 & 1993 & 2234.75 & -241.75 \tabularnewline
60 & 1932 & 2234.75 & -302.75 \tabularnewline
61 & 2465 & 2234.75 & 230.25 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69765&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]3016[/C][C]2517.66666666666[/C][C]498.333333333337[/C][/ROW]
[ROW][C]2[/C][C]2155[/C][C]2517.66666666667[/C][C]-362.666666666667[/C][/ROW]
[ROW][C]3[/C][C]2172[/C][C]2517.66666666667[/C][C]-345.666666666667[/C][/ROW]
[ROW][C]4[/C][C]2150[/C][C]2517.66666666667[/C][C]-367.666666666667[/C][/ROW]
[ROW][C]5[/C][C]2533[/C][C]2517.66666666667[/C][C]15.3333333333333[/C][/ROW]
[ROW][C]6[/C][C]2058[/C][C]2517.66666666667[/C][C]-459.666666666667[/C][/ROW]
[ROW][C]7[/C][C]2160[/C][C]2517.66666666667[/C][C]-357.666666666667[/C][/ROW]
[ROW][C]8[/C][C]2260[/C][C]2517.66666666667[/C][C]-257.666666666667[/C][/ROW]
[ROW][C]9[/C][C]2498[/C][C]2517.66666666667[/C][C]-19.6666666666667[/C][/ROW]
[ROW][C]10[/C][C]2695[/C][C]2517.66666666667[/C][C]177.333333333333[/C][/ROW]
[ROW][C]11[/C][C]2799[/C][C]2517.66666666667[/C][C]281.333333333333[/C][/ROW]
[ROW][C]12[/C][C]2946[/C][C]2517.66666666667[/C][C]428.333333333333[/C][/ROW]
[ROW][C]13[/C][C]2930[/C][C]2517.66666666667[/C][C]412.333333333333[/C][/ROW]
[ROW][C]14[/C][C]2318[/C][C]2517.66666666667[/C][C]-199.666666666667[/C][/ROW]
[ROW][C]15[/C][C]2540[/C][C]2517.66666666667[/C][C]22.3333333333333[/C][/ROW]
[ROW][C]16[/C][C]2570[/C][C]2517.66666666667[/C][C]52.3333333333333[/C][/ROW]
[ROW][C]17[/C][C]2669[/C][C]2517.66666666667[/C][C]151.333333333333[/C][/ROW]
[ROW][C]18[/C][C]2450[/C][C]2517.66666666667[/C][C]-67.6666666666667[/C][/ROW]
[ROW][C]19[/C][C]2842[/C][C]2517.66666666667[/C][C]324.333333333333[/C][/ROW]
[ROW][C]20[/C][C]3440[/C][C]2517.66666666667[/C][C]922.333333333333[/C][/ROW]
[ROW][C]21[/C][C]2678[/C][C]2517.66666666667[/C][C]160.333333333333[/C][/ROW]
[ROW][C]22[/C][C]2981[/C][C]2517.66666666667[/C][C]463.333333333333[/C][/ROW]
[ROW][C]23[/C][C]2260[/C][C]2517.66666666667[/C][C]-257.666666666667[/C][/ROW]
[ROW][C]24[/C][C]2844[/C][C]2517.66666666667[/C][C]326.333333333333[/C][/ROW]
[ROW][C]25[/C][C]2546[/C][C]2517.66666666667[/C][C]28.3333333333333[/C][/ROW]
[ROW][C]26[/C][C]2456[/C][C]2517.66666666667[/C][C]-61.6666666666667[/C][/ROW]
[ROW][C]27[/C][C]2295[/C][C]2517.66666666667[/C][C]-222.666666666667[/C][/ROW]
[ROW][C]28[/C][C]2379[/C][C]2517.66666666667[/C][C]-138.666666666667[/C][/ROW]
[ROW][C]29[/C][C]2479[/C][C]2517.66666666667[/C][C]-38.6666666666667[/C][/ROW]
[ROW][C]30[/C][C]2057[/C][C]2517.66666666667[/C][C]-460.666666666667[/C][/ROW]
[ROW][C]31[/C][C]2280[/C][C]2517.66666666667[/C][C]-237.666666666667[/C][/ROW]
[ROW][C]32[/C][C]2351[/C][C]2517.66666666667[/C][C]-166.666666666667[/C][/ROW]
[ROW][C]33[/C][C]2276[/C][C]2517.66666666667[/C][C]-241.666666666667[/C][/ROW]
[ROW][C]34[/C][C]2548[/C][C]2234.75[/C][C]313.25[/C][/ROW]
[ROW][C]35[/C][C]2311[/C][C]2234.75[/C][C]76.25[/C][/ROW]
[ROW][C]36[/C][C]2201[/C][C]2234.75[/C][C]-33.75[/C][/ROW]
[ROW][C]37[/C][C]2725[/C][C]2234.75[/C][C]490.25[/C][/ROW]
[ROW][C]38[/C][C]2408[/C][C]2234.75[/C][C]173.25[/C][/ROW]
[ROW][C]39[/C][C]2139[/C][C]2234.75[/C][C]-95.75[/C][/ROW]
[ROW][C]40[/C][C]1898[/C][C]2234.75[/C][C]-336.75[/C][/ROW]
[ROW][C]41[/C][C]2537[/C][C]2234.75[/C][C]302.25[/C][/ROW]
[ROW][C]42[/C][C]2068[/C][C]2234.75[/C][C]-166.75[/C][/ROW]
[ROW][C]43[/C][C]2063[/C][C]2234.75[/C][C]-171.75[/C][/ROW]
[ROW][C]44[/C][C]2520[/C][C]2234.75[/C][C]285.25[/C][/ROW]
[ROW][C]45[/C][C]2434[/C][C]2234.75[/C][C]199.25[/C][/ROW]
[ROW][C]46[/C][C]2190[/C][C]2234.75[/C][C]-44.75[/C][/ROW]
[ROW][C]47[/C][C]2794[/C][C]2234.75[/C][C]559.25[/C][/ROW]
[ROW][C]48[/C][C]2070[/C][C]2234.75[/C][C]-164.75[/C][/ROW]
[ROW][C]49[/C][C]2615[/C][C]2234.75[/C][C]380.25[/C][/ROW]
[ROW][C]50[/C][C]2265[/C][C]2234.75[/C][C]30.25[/C][/ROW]
[ROW][C]51[/C][C]2139[/C][C]2234.75[/C][C]-95.75[/C][/ROW]
[ROW][C]52[/C][C]2428[/C][C]2234.75[/C][C]193.25[/C][/ROW]
[ROW][C]53[/C][C]2137[/C][C]2234.75[/C][C]-97.75[/C][/ROW]
[ROW][C]54[/C][C]1823[/C][C]2234.75[/C][C]-411.75[/C][/ROW]
[ROW][C]55[/C][C]2063[/C][C]2234.75[/C][C]-171.75[/C][/ROW]
[ROW][C]56[/C][C]1806[/C][C]2234.75[/C][C]-428.75[/C][/ROW]
[ROW][C]57[/C][C]1758[/C][C]2234.75[/C][C]-476.75[/C][/ROW]
[ROW][C]58[/C][C]2243[/C][C]2234.75[/C][C]8.25[/C][/ROW]
[ROW][C]59[/C][C]1993[/C][C]2234.75[/C][C]-241.75[/C][/ROW]
[ROW][C]60[/C][C]1932[/C][C]2234.75[/C][C]-302.75[/C][/ROW]
[ROW][C]61[/C][C]2465[/C][C]2234.75[/C][C]230.25[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69765&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69765&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
130162517.66666666666498.333333333337
221552517.66666666667-362.666666666667
321722517.66666666667-345.666666666667
421502517.66666666667-367.666666666667
525332517.6666666666715.3333333333333
620582517.66666666667-459.666666666667
721602517.66666666667-357.666666666667
822602517.66666666667-257.666666666667
924982517.66666666667-19.6666666666667
1026952517.66666666667177.333333333333
1127992517.66666666667281.333333333333
1229462517.66666666667428.333333333333
1329302517.66666666667412.333333333333
1423182517.66666666667-199.666666666667
1525402517.6666666666722.3333333333333
1625702517.6666666666752.3333333333333
1726692517.66666666667151.333333333333
1824502517.66666666667-67.6666666666667
1928422517.66666666667324.333333333333
2034402517.66666666667922.333333333333
2126782517.66666666667160.333333333333
2229812517.66666666667463.333333333333
2322602517.66666666667-257.666666666667
2428442517.66666666667326.333333333333
2525462517.6666666666728.3333333333333
2624562517.66666666667-61.6666666666667
2722952517.66666666667-222.666666666667
2823792517.66666666667-138.666666666667
2924792517.66666666667-38.6666666666667
3020572517.66666666667-460.666666666667
3122802517.66666666667-237.666666666667
3223512517.66666666667-166.666666666667
3322762517.66666666667-241.666666666667
3425482234.75313.25
3523112234.7576.25
3622012234.75-33.75
3727252234.75490.25
3824082234.75173.25
3921392234.75-95.75
4018982234.75-336.75
4125372234.75302.25
4220682234.75-166.75
4320632234.75-171.75
4425202234.75285.25
4524342234.75199.25
4621902234.75-44.75
4727942234.75559.25
4820702234.75-164.75
4926152234.75380.25
5022652234.7530.25
5121392234.75-95.75
5224282234.75193.25
5321372234.75-97.75
5418232234.75-411.75
5520632234.75-171.75
5618062234.75-428.75
5717582234.75-476.75
5822432234.758.25
5919932234.75-241.75
6019322234.75-302.75
6124652234.75230.25







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.8915952467914720.2168095064170570.108404753208528
60.8809718688775630.2380562622448740.119028131122437
70.8341073599071650.3317852801856690.165892640092835
80.7584855729548110.4830288540903780.241514427045189
90.6850135517210070.6299728965579850.314986448278993
100.6850415400246990.6299169199506020.314958459975301
110.7232065001223750.553586999755250.276793499877625
120.8156211444717360.3687577110565280.184378855528264
130.8592267035918930.2815465928162130.140773296408107
140.820442427293530.359115145412940.17955757270647
150.7572196418653920.4855607162692160.242780358134608
160.6871551091703780.6256897816592430.312844890829622
170.6283490470978250.7433019058043490.371650952902175
180.5486449787003330.9027100425993350.451355021299667
190.5557217891770990.8885564216458010.444278210822901
200.947249144472940.1055017110541210.0527508555270605
210.9311475169205780.1377049661588450.0688524830794224
220.9619038184157580.07619236316848410.0380961815842421
230.9548881733789790.09022365324204230.0451118266210212
240.9651106572555770.0697786854888460.034889342744423
250.9530047066522840.0939905866954320.046995293347716
260.9359467652177290.1281064695645430.0640532347822714
270.9192298991801410.1615402016397180.0807701008198588
280.8938657530342970.2122684939314060.106134246965703
290.8679558255093790.2640883489812420.132044174490621
300.8820965119597240.2358069760805510.117903488040276
310.8526838443547480.2946323112905050.147316155645252
320.811953290001530.3760934199969390.188046709998469
330.7704610394732860.4590779210534280.229538960526714
340.7502454835452290.4995090329095430.249754516454771
350.6962259925223120.6075480149553770.303774007477688
360.6353000116722010.7293999766555980.364699988327799
370.7206130943240970.5587738113518070.279386905675903
380.674810298345710.6503794033085810.325189701654291
390.6214941454994510.7570117090010980.378505854500549
400.6477587758759680.7044824482480650.352241224124032
410.6474772819083120.7050454361833760.352522718091688
420.5936877866553440.8126244266893120.406312213344656
430.5357210359206640.9285579281586730.464278964079336
440.5305289591573990.9389420816852030.469471040842601
450.4909786196957230.9819572393914450.509021380304277
460.4059858917134140.8119717834268280.594014108286586
470.6848022593079370.6303954813841260.315197740692063
480.608943017727320.782113964545360.39105698227268
490.7657314278369840.4685371443260320.234268572163016
500.712187821907860.5756243561842810.287812178092141
510.6209020904909840.7581958190180320.379097909509016
520.6911822793312870.6176354413374270.308817720668714
530.5960015016619790.8079969966760430.403998498338021
540.5487677799156920.9024644401686160.451232220084308
550.4072237685905160.8144475371810320.592776231409484
560.3574213692221710.7148427384443420.642578630777829

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.891595246791472 & 0.216809506417057 & 0.108404753208528 \tabularnewline
6 & 0.880971868877563 & 0.238056262244874 & 0.119028131122437 \tabularnewline
7 & 0.834107359907165 & 0.331785280185669 & 0.165892640092835 \tabularnewline
8 & 0.758485572954811 & 0.483028854090378 & 0.241514427045189 \tabularnewline
9 & 0.685013551721007 & 0.629972896557985 & 0.314986448278993 \tabularnewline
10 & 0.685041540024699 & 0.629916919950602 & 0.314958459975301 \tabularnewline
11 & 0.723206500122375 & 0.55358699975525 & 0.276793499877625 \tabularnewline
12 & 0.815621144471736 & 0.368757711056528 & 0.184378855528264 \tabularnewline
13 & 0.859226703591893 & 0.281546592816213 & 0.140773296408107 \tabularnewline
14 & 0.82044242729353 & 0.35911514541294 & 0.17955757270647 \tabularnewline
15 & 0.757219641865392 & 0.485560716269216 & 0.242780358134608 \tabularnewline
16 & 0.687155109170378 & 0.625689781659243 & 0.312844890829622 \tabularnewline
17 & 0.628349047097825 & 0.743301905804349 & 0.371650952902175 \tabularnewline
18 & 0.548644978700333 & 0.902710042599335 & 0.451355021299667 \tabularnewline
19 & 0.555721789177099 & 0.888556421645801 & 0.444278210822901 \tabularnewline
20 & 0.94724914447294 & 0.105501711054121 & 0.0527508555270605 \tabularnewline
21 & 0.931147516920578 & 0.137704966158845 & 0.0688524830794224 \tabularnewline
22 & 0.961903818415758 & 0.0761923631684841 & 0.0380961815842421 \tabularnewline
23 & 0.954888173378979 & 0.0902236532420423 & 0.0451118266210212 \tabularnewline
24 & 0.965110657255577 & 0.069778685488846 & 0.034889342744423 \tabularnewline
25 & 0.953004706652284 & 0.093990586695432 & 0.046995293347716 \tabularnewline
26 & 0.935946765217729 & 0.128106469564543 & 0.0640532347822714 \tabularnewline
27 & 0.919229899180141 & 0.161540201639718 & 0.0807701008198588 \tabularnewline
28 & 0.893865753034297 & 0.212268493931406 & 0.106134246965703 \tabularnewline
29 & 0.867955825509379 & 0.264088348981242 & 0.132044174490621 \tabularnewline
30 & 0.882096511959724 & 0.235806976080551 & 0.117903488040276 \tabularnewline
31 & 0.852683844354748 & 0.294632311290505 & 0.147316155645252 \tabularnewline
32 & 0.81195329000153 & 0.376093419996939 & 0.188046709998469 \tabularnewline
33 & 0.770461039473286 & 0.459077921053428 & 0.229538960526714 \tabularnewline
34 & 0.750245483545229 & 0.499509032909543 & 0.249754516454771 \tabularnewline
35 & 0.696225992522312 & 0.607548014955377 & 0.303774007477688 \tabularnewline
36 & 0.635300011672201 & 0.729399976655598 & 0.364699988327799 \tabularnewline
37 & 0.720613094324097 & 0.558773811351807 & 0.279386905675903 \tabularnewline
38 & 0.67481029834571 & 0.650379403308581 & 0.325189701654291 \tabularnewline
39 & 0.621494145499451 & 0.757011709001098 & 0.378505854500549 \tabularnewline
40 & 0.647758775875968 & 0.704482448248065 & 0.352241224124032 \tabularnewline
41 & 0.647477281908312 & 0.705045436183376 & 0.352522718091688 \tabularnewline
42 & 0.593687786655344 & 0.812624426689312 & 0.406312213344656 \tabularnewline
43 & 0.535721035920664 & 0.928557928158673 & 0.464278964079336 \tabularnewline
44 & 0.530528959157399 & 0.938942081685203 & 0.469471040842601 \tabularnewline
45 & 0.490978619695723 & 0.981957239391445 & 0.509021380304277 \tabularnewline
46 & 0.405985891713414 & 0.811971783426828 & 0.594014108286586 \tabularnewline
47 & 0.684802259307937 & 0.630395481384126 & 0.315197740692063 \tabularnewline
48 & 0.60894301772732 & 0.78211396454536 & 0.39105698227268 \tabularnewline
49 & 0.765731427836984 & 0.468537144326032 & 0.234268572163016 \tabularnewline
50 & 0.71218782190786 & 0.575624356184281 & 0.287812178092141 \tabularnewline
51 & 0.620902090490984 & 0.758195819018032 & 0.379097909509016 \tabularnewline
52 & 0.691182279331287 & 0.617635441337427 & 0.308817720668714 \tabularnewline
53 & 0.596001501661979 & 0.807996996676043 & 0.403998498338021 \tabularnewline
54 & 0.548767779915692 & 0.902464440168616 & 0.451232220084308 \tabularnewline
55 & 0.407223768590516 & 0.814447537181032 & 0.592776231409484 \tabularnewline
56 & 0.357421369222171 & 0.714842738444342 & 0.642578630777829 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69765&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.891595246791472[/C][C]0.216809506417057[/C][C]0.108404753208528[/C][/ROW]
[ROW][C]6[/C][C]0.880971868877563[/C][C]0.238056262244874[/C][C]0.119028131122437[/C][/ROW]
[ROW][C]7[/C][C]0.834107359907165[/C][C]0.331785280185669[/C][C]0.165892640092835[/C][/ROW]
[ROW][C]8[/C][C]0.758485572954811[/C][C]0.483028854090378[/C][C]0.241514427045189[/C][/ROW]
[ROW][C]9[/C][C]0.685013551721007[/C][C]0.629972896557985[/C][C]0.314986448278993[/C][/ROW]
[ROW][C]10[/C][C]0.685041540024699[/C][C]0.629916919950602[/C][C]0.314958459975301[/C][/ROW]
[ROW][C]11[/C][C]0.723206500122375[/C][C]0.55358699975525[/C][C]0.276793499877625[/C][/ROW]
[ROW][C]12[/C][C]0.815621144471736[/C][C]0.368757711056528[/C][C]0.184378855528264[/C][/ROW]
[ROW][C]13[/C][C]0.859226703591893[/C][C]0.281546592816213[/C][C]0.140773296408107[/C][/ROW]
[ROW][C]14[/C][C]0.82044242729353[/C][C]0.35911514541294[/C][C]0.17955757270647[/C][/ROW]
[ROW][C]15[/C][C]0.757219641865392[/C][C]0.485560716269216[/C][C]0.242780358134608[/C][/ROW]
[ROW][C]16[/C][C]0.687155109170378[/C][C]0.625689781659243[/C][C]0.312844890829622[/C][/ROW]
[ROW][C]17[/C][C]0.628349047097825[/C][C]0.743301905804349[/C][C]0.371650952902175[/C][/ROW]
[ROW][C]18[/C][C]0.548644978700333[/C][C]0.902710042599335[/C][C]0.451355021299667[/C][/ROW]
[ROW][C]19[/C][C]0.555721789177099[/C][C]0.888556421645801[/C][C]0.444278210822901[/C][/ROW]
[ROW][C]20[/C][C]0.94724914447294[/C][C]0.105501711054121[/C][C]0.0527508555270605[/C][/ROW]
[ROW][C]21[/C][C]0.931147516920578[/C][C]0.137704966158845[/C][C]0.0688524830794224[/C][/ROW]
[ROW][C]22[/C][C]0.961903818415758[/C][C]0.0761923631684841[/C][C]0.0380961815842421[/C][/ROW]
[ROW][C]23[/C][C]0.954888173378979[/C][C]0.0902236532420423[/C][C]0.0451118266210212[/C][/ROW]
[ROW][C]24[/C][C]0.965110657255577[/C][C]0.069778685488846[/C][C]0.034889342744423[/C][/ROW]
[ROW][C]25[/C][C]0.953004706652284[/C][C]0.093990586695432[/C][C]0.046995293347716[/C][/ROW]
[ROW][C]26[/C][C]0.935946765217729[/C][C]0.128106469564543[/C][C]0.0640532347822714[/C][/ROW]
[ROW][C]27[/C][C]0.919229899180141[/C][C]0.161540201639718[/C][C]0.0807701008198588[/C][/ROW]
[ROW][C]28[/C][C]0.893865753034297[/C][C]0.212268493931406[/C][C]0.106134246965703[/C][/ROW]
[ROW][C]29[/C][C]0.867955825509379[/C][C]0.264088348981242[/C][C]0.132044174490621[/C][/ROW]
[ROW][C]30[/C][C]0.882096511959724[/C][C]0.235806976080551[/C][C]0.117903488040276[/C][/ROW]
[ROW][C]31[/C][C]0.852683844354748[/C][C]0.294632311290505[/C][C]0.147316155645252[/C][/ROW]
[ROW][C]32[/C][C]0.81195329000153[/C][C]0.376093419996939[/C][C]0.188046709998469[/C][/ROW]
[ROW][C]33[/C][C]0.770461039473286[/C][C]0.459077921053428[/C][C]0.229538960526714[/C][/ROW]
[ROW][C]34[/C][C]0.750245483545229[/C][C]0.499509032909543[/C][C]0.249754516454771[/C][/ROW]
[ROW][C]35[/C][C]0.696225992522312[/C][C]0.607548014955377[/C][C]0.303774007477688[/C][/ROW]
[ROW][C]36[/C][C]0.635300011672201[/C][C]0.729399976655598[/C][C]0.364699988327799[/C][/ROW]
[ROW][C]37[/C][C]0.720613094324097[/C][C]0.558773811351807[/C][C]0.279386905675903[/C][/ROW]
[ROW][C]38[/C][C]0.67481029834571[/C][C]0.650379403308581[/C][C]0.325189701654291[/C][/ROW]
[ROW][C]39[/C][C]0.621494145499451[/C][C]0.757011709001098[/C][C]0.378505854500549[/C][/ROW]
[ROW][C]40[/C][C]0.647758775875968[/C][C]0.704482448248065[/C][C]0.352241224124032[/C][/ROW]
[ROW][C]41[/C][C]0.647477281908312[/C][C]0.705045436183376[/C][C]0.352522718091688[/C][/ROW]
[ROW][C]42[/C][C]0.593687786655344[/C][C]0.812624426689312[/C][C]0.406312213344656[/C][/ROW]
[ROW][C]43[/C][C]0.535721035920664[/C][C]0.928557928158673[/C][C]0.464278964079336[/C][/ROW]
[ROW][C]44[/C][C]0.530528959157399[/C][C]0.938942081685203[/C][C]0.469471040842601[/C][/ROW]
[ROW][C]45[/C][C]0.490978619695723[/C][C]0.981957239391445[/C][C]0.509021380304277[/C][/ROW]
[ROW][C]46[/C][C]0.405985891713414[/C][C]0.811971783426828[/C][C]0.594014108286586[/C][/ROW]
[ROW][C]47[/C][C]0.684802259307937[/C][C]0.630395481384126[/C][C]0.315197740692063[/C][/ROW]
[ROW][C]48[/C][C]0.60894301772732[/C][C]0.78211396454536[/C][C]0.39105698227268[/C][/ROW]
[ROW][C]49[/C][C]0.765731427836984[/C][C]0.468537144326032[/C][C]0.234268572163016[/C][/ROW]
[ROW][C]50[/C][C]0.71218782190786[/C][C]0.575624356184281[/C][C]0.287812178092141[/C][/ROW]
[ROW][C]51[/C][C]0.620902090490984[/C][C]0.758195819018032[/C][C]0.379097909509016[/C][/ROW]
[ROW][C]52[/C][C]0.691182279331287[/C][C]0.617635441337427[/C][C]0.308817720668714[/C][/ROW]
[ROW][C]53[/C][C]0.596001501661979[/C][C]0.807996996676043[/C][C]0.403998498338021[/C][/ROW]
[ROW][C]54[/C][C]0.548767779915692[/C][C]0.902464440168616[/C][C]0.451232220084308[/C][/ROW]
[ROW][C]55[/C][C]0.407223768590516[/C][C]0.814447537181032[/C][C]0.592776231409484[/C][/ROW]
[ROW][C]56[/C][C]0.357421369222171[/C][C]0.714842738444342[/C][C]0.642578630777829[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69765&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69765&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.8915952467914720.2168095064170570.108404753208528
60.8809718688775630.2380562622448740.119028131122437
70.8341073599071650.3317852801856690.165892640092835
80.7584855729548110.4830288540903780.241514427045189
90.6850135517210070.6299728965579850.314986448278993
100.6850415400246990.6299169199506020.314958459975301
110.7232065001223750.553586999755250.276793499877625
120.8156211444717360.3687577110565280.184378855528264
130.8592267035918930.2815465928162130.140773296408107
140.820442427293530.359115145412940.17955757270647
150.7572196418653920.4855607162692160.242780358134608
160.6871551091703780.6256897816592430.312844890829622
170.6283490470978250.7433019058043490.371650952902175
180.5486449787003330.9027100425993350.451355021299667
190.5557217891770990.8885564216458010.444278210822901
200.947249144472940.1055017110541210.0527508555270605
210.9311475169205780.1377049661588450.0688524830794224
220.9619038184157580.07619236316848410.0380961815842421
230.9548881733789790.09022365324204230.0451118266210212
240.9651106572555770.0697786854888460.034889342744423
250.9530047066522840.0939905866954320.046995293347716
260.9359467652177290.1281064695645430.0640532347822714
270.9192298991801410.1615402016397180.0807701008198588
280.8938657530342970.2122684939314060.106134246965703
290.8679558255093790.2640883489812420.132044174490621
300.8820965119597240.2358069760805510.117903488040276
310.8526838443547480.2946323112905050.147316155645252
320.811953290001530.3760934199969390.188046709998469
330.7704610394732860.4590779210534280.229538960526714
340.7502454835452290.4995090329095430.249754516454771
350.6962259925223120.6075480149553770.303774007477688
360.6353000116722010.7293999766555980.364699988327799
370.7206130943240970.5587738113518070.279386905675903
380.674810298345710.6503794033085810.325189701654291
390.6214941454994510.7570117090010980.378505854500549
400.6477587758759680.7044824482480650.352241224124032
410.6474772819083120.7050454361833760.352522718091688
420.5936877866553440.8126244266893120.406312213344656
430.5357210359206640.9285579281586730.464278964079336
440.5305289591573990.9389420816852030.469471040842601
450.4909786196957230.9819572393914450.509021380304277
460.4059858917134140.8119717834268280.594014108286586
470.6848022593079370.6303954813841260.315197740692063
480.608943017727320.782113964545360.39105698227268
490.7657314278369840.4685371443260320.234268572163016
500.712187821907860.5756243561842810.287812178092141
510.6209020904909840.7581958190180320.379097909509016
520.6911822793312870.6176354413374270.308817720668714
530.5960015016619790.8079969966760430.403998498338021
540.5487677799156920.9024644401686160.451232220084308
550.4072237685905160.8144475371810320.592776231409484
560.3574213692221710.7148427384443420.642578630777829







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 level40.0769230769230769OK

\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 & 4 & 0.0769230769230769 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69765&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]4[/C][C]0.0769230769230769[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69765&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69765&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 level40.0769230769230769OK



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