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, 20 Dec 2008 06:50:59 -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/2008/Dec/20/t12297811818o7h3g1ca08qdy4.htm/, Retrieved Sat, 18 May 2024 10:48:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=35366, Retrieved Sat, 18 May 2024 10:48:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact210
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [WS 6 Q3 G6 eigen ...] [2007-11-15 11:12:24] [22f18fc6a98517db16300404be421f9a]
- R  D    [Multiple Regression] [Paper -multiple L...] [2008-12-20 13:50:59] [73ec5abea95a9c3c8c3a1ac44cab1f72] [Current]
Feedback Forum

Post a new message
Dataseries X:
2490	0
3266	0
3475	0
3127	0
2955	0
3870	0
2852	0
3142	0
3029	0
3180	0
2560	0
2733	0
2452	0
2553	0
2777	0
2520	0
2318	0
2873	0
2311	0
2395	0
2099	0
2268	0
2316	0
2181	0
2175	0
2627	0
2578	0
3090	0
2634	0
3225	0
2938	0
3174	0
3350	0
2588	0
2061	0
2691	0
2061	0
2918	0
2223	0
2651	0
2379	0
3146	0
2883	0
2768	0
3258	0
2839	0
2470	0
5072	1
1463	1
1600	1
2203	1
2013	1
2169	1
2640	1
2411	1
2528	1
2292	1
1988	1
1774	1
2279	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35366&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35366&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35366&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'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2733.38297872340 -392.459901800327X[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2733.38297872340 -392.459901800327X[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35366&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2733.38297872340 -392.459901800327X[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35366&T=1

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







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2733.3829787234079.8735834.221400
X-392.459901800327171.595975-2.28710.0258560.012928

\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) & 2733.38297872340 & 79.87358 & 34.2214 & 0 & 0 \tabularnewline
X & -392.459901800327 & 171.595975 & -2.2871 & 0.025856 & 0.012928 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35366&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]2733.38297872340[/C][C]79.87358[/C][C]34.2214[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-392.459901800327[/C][C]171.595975[/C][C]-2.2871[/C][C]0.025856[/C][C]0.012928[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35366&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35366&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)2733.3829787234079.8735834.221400
X-392.459901800327171.595975-2.28710.0258560.012928







Multiple Linear Regression - Regression Statistics
Multiple R0.287622934838799
R-squared0.0827269526452843
Adjusted R-squared0.0669119001046858
F-TEST (value)5.23089964025838
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0258559181901252
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation547.585673181327
Sum Squared Residuals17391304.0294599

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.287622934838799 \tabularnewline
R-squared & 0.0827269526452843 \tabularnewline
Adjusted R-squared & 0.0669119001046858 \tabularnewline
F-TEST (value) & 5.23089964025838 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.0258559181901252 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 547.585673181327 \tabularnewline
Sum Squared Residuals & 17391304.0294599 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35366&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.287622934838799[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0827269526452843[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0669119001046858[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.23089964025838[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.0258559181901252[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]547.585673181327[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]17391304.0294599[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35366&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35366&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.287622934838799
R-squared0.0827269526452843
Adjusted R-squared0.0669119001046858
F-TEST (value)5.23089964025838
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0258559181901252
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation547.585673181327
Sum Squared Residuals17391304.0294599







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
124902733.38297872341-243.382978723406
232662733.38297872340532.617021276595
334752733.38297872340741.617021276596
431272733.38297872340393.617021276596
529552733.38297872340221.617021276596
638702733.382978723401136.61702127660
728522733.38297872340118.617021276596
831422733.38297872340408.617021276596
930292733.38297872340295.617021276596
1031802733.38297872340446.617021276596
1125602733.38297872340-173.382978723404
1227332733.38297872340-0.382978723404207
1324522733.38297872340-281.382978723404
1425532733.38297872340-180.382978723404
1527772733.3829787234043.6170212765958
1625202733.38297872340-213.382978723404
1723182733.38297872340-415.382978723404
1828732733.38297872340139.617021276596
1923112733.38297872340-422.382978723404
2023952733.38297872340-338.382978723404
2120992733.38297872340-634.382978723404
2222682733.38297872340-465.382978723404
2323162733.38297872340-417.382978723404
2421812733.38297872340-552.382978723404
2521752733.38297872340-558.382978723404
2626272733.38297872340-106.382978723404
2725782733.38297872340-155.382978723404
2830902733.38297872340356.617021276596
2926342733.38297872340-99.3829787234042
3032252733.38297872340491.617021276596
3129382733.38297872340204.617021276596
3231742733.38297872340440.617021276596
3333502733.38297872340616.617021276596
3425882733.38297872340-145.382978723404
3520612733.38297872340-672.382978723404
3626912733.38297872340-42.3829787234042
3720612733.38297872340-672.382978723404
3829182733.38297872340184.617021276596
3922232733.38297872340-510.382978723404
4026512733.38297872340-82.3829787234042
4123792733.38297872340-354.382978723404
4231462733.38297872340412.617021276596
4328832733.38297872340149.617021276596
4427682733.3829787234034.6170212765958
4532582733.38297872340524.617021276596
4628392733.38297872340105.617021276596
4724702733.38297872340-263.382978723404
4850722340.923076923082731.07692307692
4914632340.92307692308-877.923076923077
5016002340.92307692308-740.923076923077
5122032340.92307692308-137.923076923077
5220132340.92307692308-327.923076923077
5321692340.92307692308-171.923076923077
5426402340.92307692308299.076923076923
5524112340.9230769230870.0769230769231
5625282340.92307692308187.076923076923
5722922340.92307692308-48.9230769230769
5819882340.92307692308-352.923076923077
5917742340.92307692308-566.923076923077
6022792340.92307692308-61.9230769230769

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2490 & 2733.38297872341 & -243.382978723406 \tabularnewline
2 & 3266 & 2733.38297872340 & 532.617021276595 \tabularnewline
3 & 3475 & 2733.38297872340 & 741.617021276596 \tabularnewline
4 & 3127 & 2733.38297872340 & 393.617021276596 \tabularnewline
5 & 2955 & 2733.38297872340 & 221.617021276596 \tabularnewline
6 & 3870 & 2733.38297872340 & 1136.61702127660 \tabularnewline
7 & 2852 & 2733.38297872340 & 118.617021276596 \tabularnewline
8 & 3142 & 2733.38297872340 & 408.617021276596 \tabularnewline
9 & 3029 & 2733.38297872340 & 295.617021276596 \tabularnewline
10 & 3180 & 2733.38297872340 & 446.617021276596 \tabularnewline
11 & 2560 & 2733.38297872340 & -173.382978723404 \tabularnewline
12 & 2733 & 2733.38297872340 & -0.382978723404207 \tabularnewline
13 & 2452 & 2733.38297872340 & -281.382978723404 \tabularnewline
14 & 2553 & 2733.38297872340 & -180.382978723404 \tabularnewline
15 & 2777 & 2733.38297872340 & 43.6170212765958 \tabularnewline
16 & 2520 & 2733.38297872340 & -213.382978723404 \tabularnewline
17 & 2318 & 2733.38297872340 & -415.382978723404 \tabularnewline
18 & 2873 & 2733.38297872340 & 139.617021276596 \tabularnewline
19 & 2311 & 2733.38297872340 & -422.382978723404 \tabularnewline
20 & 2395 & 2733.38297872340 & -338.382978723404 \tabularnewline
21 & 2099 & 2733.38297872340 & -634.382978723404 \tabularnewline
22 & 2268 & 2733.38297872340 & -465.382978723404 \tabularnewline
23 & 2316 & 2733.38297872340 & -417.382978723404 \tabularnewline
24 & 2181 & 2733.38297872340 & -552.382978723404 \tabularnewline
25 & 2175 & 2733.38297872340 & -558.382978723404 \tabularnewline
26 & 2627 & 2733.38297872340 & -106.382978723404 \tabularnewline
27 & 2578 & 2733.38297872340 & -155.382978723404 \tabularnewline
28 & 3090 & 2733.38297872340 & 356.617021276596 \tabularnewline
29 & 2634 & 2733.38297872340 & -99.3829787234042 \tabularnewline
30 & 3225 & 2733.38297872340 & 491.617021276596 \tabularnewline
31 & 2938 & 2733.38297872340 & 204.617021276596 \tabularnewline
32 & 3174 & 2733.38297872340 & 440.617021276596 \tabularnewline
33 & 3350 & 2733.38297872340 & 616.617021276596 \tabularnewline
34 & 2588 & 2733.38297872340 & -145.382978723404 \tabularnewline
35 & 2061 & 2733.38297872340 & -672.382978723404 \tabularnewline
36 & 2691 & 2733.38297872340 & -42.3829787234042 \tabularnewline
37 & 2061 & 2733.38297872340 & -672.382978723404 \tabularnewline
38 & 2918 & 2733.38297872340 & 184.617021276596 \tabularnewline
39 & 2223 & 2733.38297872340 & -510.382978723404 \tabularnewline
40 & 2651 & 2733.38297872340 & -82.3829787234042 \tabularnewline
41 & 2379 & 2733.38297872340 & -354.382978723404 \tabularnewline
42 & 3146 & 2733.38297872340 & 412.617021276596 \tabularnewline
43 & 2883 & 2733.38297872340 & 149.617021276596 \tabularnewline
44 & 2768 & 2733.38297872340 & 34.6170212765958 \tabularnewline
45 & 3258 & 2733.38297872340 & 524.617021276596 \tabularnewline
46 & 2839 & 2733.38297872340 & 105.617021276596 \tabularnewline
47 & 2470 & 2733.38297872340 & -263.382978723404 \tabularnewline
48 & 5072 & 2340.92307692308 & 2731.07692307692 \tabularnewline
49 & 1463 & 2340.92307692308 & -877.923076923077 \tabularnewline
50 & 1600 & 2340.92307692308 & -740.923076923077 \tabularnewline
51 & 2203 & 2340.92307692308 & -137.923076923077 \tabularnewline
52 & 2013 & 2340.92307692308 & -327.923076923077 \tabularnewline
53 & 2169 & 2340.92307692308 & -171.923076923077 \tabularnewline
54 & 2640 & 2340.92307692308 & 299.076923076923 \tabularnewline
55 & 2411 & 2340.92307692308 & 70.0769230769231 \tabularnewline
56 & 2528 & 2340.92307692308 & 187.076923076923 \tabularnewline
57 & 2292 & 2340.92307692308 & -48.9230769230769 \tabularnewline
58 & 1988 & 2340.92307692308 & -352.923076923077 \tabularnewline
59 & 1774 & 2340.92307692308 & -566.923076923077 \tabularnewline
60 & 2279 & 2340.92307692308 & -61.9230769230769 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35366&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]2490[/C][C]2733.38297872341[/C][C]-243.382978723406[/C][/ROW]
[ROW][C]2[/C][C]3266[/C][C]2733.38297872340[/C][C]532.617021276595[/C][/ROW]
[ROW][C]3[/C][C]3475[/C][C]2733.38297872340[/C][C]741.617021276596[/C][/ROW]
[ROW][C]4[/C][C]3127[/C][C]2733.38297872340[/C][C]393.617021276596[/C][/ROW]
[ROW][C]5[/C][C]2955[/C][C]2733.38297872340[/C][C]221.617021276596[/C][/ROW]
[ROW][C]6[/C][C]3870[/C][C]2733.38297872340[/C][C]1136.61702127660[/C][/ROW]
[ROW][C]7[/C][C]2852[/C][C]2733.38297872340[/C][C]118.617021276596[/C][/ROW]
[ROW][C]8[/C][C]3142[/C][C]2733.38297872340[/C][C]408.617021276596[/C][/ROW]
[ROW][C]9[/C][C]3029[/C][C]2733.38297872340[/C][C]295.617021276596[/C][/ROW]
[ROW][C]10[/C][C]3180[/C][C]2733.38297872340[/C][C]446.617021276596[/C][/ROW]
[ROW][C]11[/C][C]2560[/C][C]2733.38297872340[/C][C]-173.382978723404[/C][/ROW]
[ROW][C]12[/C][C]2733[/C][C]2733.38297872340[/C][C]-0.382978723404207[/C][/ROW]
[ROW][C]13[/C][C]2452[/C][C]2733.38297872340[/C][C]-281.382978723404[/C][/ROW]
[ROW][C]14[/C][C]2553[/C][C]2733.38297872340[/C][C]-180.382978723404[/C][/ROW]
[ROW][C]15[/C][C]2777[/C][C]2733.38297872340[/C][C]43.6170212765958[/C][/ROW]
[ROW][C]16[/C][C]2520[/C][C]2733.38297872340[/C][C]-213.382978723404[/C][/ROW]
[ROW][C]17[/C][C]2318[/C][C]2733.38297872340[/C][C]-415.382978723404[/C][/ROW]
[ROW][C]18[/C][C]2873[/C][C]2733.38297872340[/C][C]139.617021276596[/C][/ROW]
[ROW][C]19[/C][C]2311[/C][C]2733.38297872340[/C][C]-422.382978723404[/C][/ROW]
[ROW][C]20[/C][C]2395[/C][C]2733.38297872340[/C][C]-338.382978723404[/C][/ROW]
[ROW][C]21[/C][C]2099[/C][C]2733.38297872340[/C][C]-634.382978723404[/C][/ROW]
[ROW][C]22[/C][C]2268[/C][C]2733.38297872340[/C][C]-465.382978723404[/C][/ROW]
[ROW][C]23[/C][C]2316[/C][C]2733.38297872340[/C][C]-417.382978723404[/C][/ROW]
[ROW][C]24[/C][C]2181[/C][C]2733.38297872340[/C][C]-552.382978723404[/C][/ROW]
[ROW][C]25[/C][C]2175[/C][C]2733.38297872340[/C][C]-558.382978723404[/C][/ROW]
[ROW][C]26[/C][C]2627[/C][C]2733.38297872340[/C][C]-106.382978723404[/C][/ROW]
[ROW][C]27[/C][C]2578[/C][C]2733.38297872340[/C][C]-155.382978723404[/C][/ROW]
[ROW][C]28[/C][C]3090[/C][C]2733.38297872340[/C][C]356.617021276596[/C][/ROW]
[ROW][C]29[/C][C]2634[/C][C]2733.38297872340[/C][C]-99.3829787234042[/C][/ROW]
[ROW][C]30[/C][C]3225[/C][C]2733.38297872340[/C][C]491.617021276596[/C][/ROW]
[ROW][C]31[/C][C]2938[/C][C]2733.38297872340[/C][C]204.617021276596[/C][/ROW]
[ROW][C]32[/C][C]3174[/C][C]2733.38297872340[/C][C]440.617021276596[/C][/ROW]
[ROW][C]33[/C][C]3350[/C][C]2733.38297872340[/C][C]616.617021276596[/C][/ROW]
[ROW][C]34[/C][C]2588[/C][C]2733.38297872340[/C][C]-145.382978723404[/C][/ROW]
[ROW][C]35[/C][C]2061[/C][C]2733.38297872340[/C][C]-672.382978723404[/C][/ROW]
[ROW][C]36[/C][C]2691[/C][C]2733.38297872340[/C][C]-42.3829787234042[/C][/ROW]
[ROW][C]37[/C][C]2061[/C][C]2733.38297872340[/C][C]-672.382978723404[/C][/ROW]
[ROW][C]38[/C][C]2918[/C][C]2733.38297872340[/C][C]184.617021276596[/C][/ROW]
[ROW][C]39[/C][C]2223[/C][C]2733.38297872340[/C][C]-510.382978723404[/C][/ROW]
[ROW][C]40[/C][C]2651[/C][C]2733.38297872340[/C][C]-82.3829787234042[/C][/ROW]
[ROW][C]41[/C][C]2379[/C][C]2733.38297872340[/C][C]-354.382978723404[/C][/ROW]
[ROW][C]42[/C][C]3146[/C][C]2733.38297872340[/C][C]412.617021276596[/C][/ROW]
[ROW][C]43[/C][C]2883[/C][C]2733.38297872340[/C][C]149.617021276596[/C][/ROW]
[ROW][C]44[/C][C]2768[/C][C]2733.38297872340[/C][C]34.6170212765958[/C][/ROW]
[ROW][C]45[/C][C]3258[/C][C]2733.38297872340[/C][C]524.617021276596[/C][/ROW]
[ROW][C]46[/C][C]2839[/C][C]2733.38297872340[/C][C]105.617021276596[/C][/ROW]
[ROW][C]47[/C][C]2470[/C][C]2733.38297872340[/C][C]-263.382978723404[/C][/ROW]
[ROW][C]48[/C][C]5072[/C][C]2340.92307692308[/C][C]2731.07692307692[/C][/ROW]
[ROW][C]49[/C][C]1463[/C][C]2340.92307692308[/C][C]-877.923076923077[/C][/ROW]
[ROW][C]50[/C][C]1600[/C][C]2340.92307692308[/C][C]-740.923076923077[/C][/ROW]
[ROW][C]51[/C][C]2203[/C][C]2340.92307692308[/C][C]-137.923076923077[/C][/ROW]
[ROW][C]52[/C][C]2013[/C][C]2340.92307692308[/C][C]-327.923076923077[/C][/ROW]
[ROW][C]53[/C][C]2169[/C][C]2340.92307692308[/C][C]-171.923076923077[/C][/ROW]
[ROW][C]54[/C][C]2640[/C][C]2340.92307692308[/C][C]299.076923076923[/C][/ROW]
[ROW][C]55[/C][C]2411[/C][C]2340.92307692308[/C][C]70.0769230769231[/C][/ROW]
[ROW][C]56[/C][C]2528[/C][C]2340.92307692308[/C][C]187.076923076923[/C][/ROW]
[ROW][C]57[/C][C]2292[/C][C]2340.92307692308[/C][C]-48.9230769230769[/C][/ROW]
[ROW][C]58[/C][C]1988[/C][C]2340.92307692308[/C][C]-352.923076923077[/C][/ROW]
[ROW][C]59[/C][C]1774[/C][C]2340.92307692308[/C][C]-566.923076923077[/C][/ROW]
[ROW][C]60[/C][C]2279[/C][C]2340.92307692308[/C][C]-61.9230769230769[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35366&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35366&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
124902733.38297872341-243.382978723406
232662733.38297872340532.617021276595
334752733.38297872340741.617021276596
431272733.38297872340393.617021276596
529552733.38297872340221.617021276596
638702733.382978723401136.61702127660
728522733.38297872340118.617021276596
831422733.38297872340408.617021276596
930292733.38297872340295.617021276596
1031802733.38297872340446.617021276596
1125602733.38297872340-173.382978723404
1227332733.38297872340-0.382978723404207
1324522733.38297872340-281.382978723404
1425532733.38297872340-180.382978723404
1527772733.3829787234043.6170212765958
1625202733.38297872340-213.382978723404
1723182733.38297872340-415.382978723404
1828732733.38297872340139.617021276596
1923112733.38297872340-422.382978723404
2023952733.38297872340-338.382978723404
2120992733.38297872340-634.382978723404
2222682733.38297872340-465.382978723404
2323162733.38297872340-417.382978723404
2421812733.38297872340-552.382978723404
2521752733.38297872340-558.382978723404
2626272733.38297872340-106.382978723404
2725782733.38297872340-155.382978723404
2830902733.38297872340356.617021276596
2926342733.38297872340-99.3829787234042
3032252733.38297872340491.617021276596
3129382733.38297872340204.617021276596
3231742733.38297872340440.617021276596
3333502733.38297872340616.617021276596
3425882733.38297872340-145.382978723404
3520612733.38297872340-672.382978723404
3626912733.38297872340-42.3829787234042
3720612733.38297872340-672.382978723404
3829182733.38297872340184.617021276596
3922232733.38297872340-510.382978723404
4026512733.38297872340-82.3829787234042
4123792733.38297872340-354.382978723404
4231462733.38297872340412.617021276596
4328832733.38297872340149.617021276596
4427682733.3829787234034.6170212765958
4532582733.38297872340524.617021276596
4628392733.38297872340105.617021276596
4724702733.38297872340-263.382978723404
4850722340.923076923082731.07692307692
4914632340.92307692308-877.923076923077
5016002340.92307692308-740.923076923077
5122032340.92307692308-137.923076923077
5220132340.92307692308-327.923076923077
5321692340.92307692308-171.923076923077
5426402340.92307692308299.076923076923
5524112340.9230769230870.0769230769231
5625282340.92307692308187.076923076923
5722922340.92307692308-48.9230769230769
5819882340.92307692308-352.923076923077
5917742340.92307692308-566.923076923077
6022792340.92307692308-61.9230769230769







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3848189550477190.7696379100954390.61518104495228
60.5647577072805730.8704845854388540.435242292719427
70.4646243868049040.9292487736098070.535375613195096
80.3398182764111490.6796365528222980.660181723588851
90.2391188687819420.4782377375638850.760881131218058
100.1624536038308590.3249072076617190.83754639616914
110.1800554755904050.3601109511808100.819944524409595
120.1428575561788560.2857151123577120.857142443821144
130.1605192182883300.3210384365766610.83948078171167
140.1424495637812150.284899127562430.857550436218785
150.1002863741302110.2005727482604230.899713625869789
160.086990711055710.173981422111420.91300928894429
170.09828784125086340.1965756825017270.901712158749137
180.06555059116835630.1311011823367130.934449408831644
190.06998919856469930.1399783971293990.9300108014353
200.06209758348149040.1241951669629810.93790241651851
210.08666392480812380.1733278496162480.913336075191876
220.08418435162754370.1683687032550870.915815648372456
230.0749404470867250.149880894173450.925059552913275
240.0784152960428040.1568305920856080.921584703957196
250.08085399746070850.1617079949214170.919146002539291
260.05578291529390640.1115658305878130.944217084706094
270.03807954487460720.07615908974921440.961920455125393
280.03014445662151350.06028891324302690.969855543378487
290.0193276266346560.0386552532693120.980672373365344
300.01804831975004020.03609663950008040.98195168024996
310.01186101680922810.02372203361845630.988138983190772
320.01006649568987010.02013299137974020.98993350431013
330.01192408718955060.02384817437910110.98807591281045
340.00739716495570810.01479432991141620.992602835044292
350.009576007137547030.01915201427509410.990423992862453
360.005630143502495890.01126028700499180.994369856497504
370.007256771943743480.01451354388748700.992743228056256
380.004421428925130.008842857850260.99557857107487
390.004077732448105860.008155464896211720.995922267551894
400.002297816557123630.004595633114247260.997702183442876
410.001678882740692320.003357765481384640.998321117259308
420.001153794782261920.002307589564523840.998846205217738
430.000598286874442230.001196573748884460.999401713125558
440.0002894887667423230.0005789775334846450.999710511233258
450.0002416381864740690.0004832763729481370.999758361813526
460.000117662505603310.000235325011206620.999882337494397
475.49831371375108e-050.0001099662742750220.999945016862863
480.59457397998480.8108520400304010.405426020015201
490.9510173073856170.0979653852287660.048982692614383
500.984195629040350.03160874191929940.0158043709596497
510.9659437197836770.06811256043264510.0340562802163226
520.944266905563060.1114661888738780.0557330944369391
530.8899782439232930.2200435121534140.110021756076707
540.8744072979703060.2511854040593880.125592702029694
550.7804593143498370.4390813713003250.219540685650163

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.384818955047719 & 0.769637910095439 & 0.61518104495228 \tabularnewline
6 & 0.564757707280573 & 0.870484585438854 & 0.435242292719427 \tabularnewline
7 & 0.464624386804904 & 0.929248773609807 & 0.535375613195096 \tabularnewline
8 & 0.339818276411149 & 0.679636552822298 & 0.660181723588851 \tabularnewline
9 & 0.239118868781942 & 0.478237737563885 & 0.760881131218058 \tabularnewline
10 & 0.162453603830859 & 0.324907207661719 & 0.83754639616914 \tabularnewline
11 & 0.180055475590405 & 0.360110951180810 & 0.819944524409595 \tabularnewline
12 & 0.142857556178856 & 0.285715112357712 & 0.857142443821144 \tabularnewline
13 & 0.160519218288330 & 0.321038436576661 & 0.83948078171167 \tabularnewline
14 & 0.142449563781215 & 0.28489912756243 & 0.857550436218785 \tabularnewline
15 & 0.100286374130211 & 0.200572748260423 & 0.899713625869789 \tabularnewline
16 & 0.08699071105571 & 0.17398142211142 & 0.91300928894429 \tabularnewline
17 & 0.0982878412508634 & 0.196575682501727 & 0.901712158749137 \tabularnewline
18 & 0.0655505911683563 & 0.131101182336713 & 0.934449408831644 \tabularnewline
19 & 0.0699891985646993 & 0.139978397129399 & 0.9300108014353 \tabularnewline
20 & 0.0620975834814904 & 0.124195166962981 & 0.93790241651851 \tabularnewline
21 & 0.0866639248081238 & 0.173327849616248 & 0.913336075191876 \tabularnewline
22 & 0.0841843516275437 & 0.168368703255087 & 0.915815648372456 \tabularnewline
23 & 0.074940447086725 & 0.14988089417345 & 0.925059552913275 \tabularnewline
24 & 0.078415296042804 & 0.156830592085608 & 0.921584703957196 \tabularnewline
25 & 0.0808539974607085 & 0.161707994921417 & 0.919146002539291 \tabularnewline
26 & 0.0557829152939064 & 0.111565830587813 & 0.944217084706094 \tabularnewline
27 & 0.0380795448746072 & 0.0761590897492144 & 0.961920455125393 \tabularnewline
28 & 0.0301444566215135 & 0.0602889132430269 & 0.969855543378487 \tabularnewline
29 & 0.019327626634656 & 0.038655253269312 & 0.980672373365344 \tabularnewline
30 & 0.0180483197500402 & 0.0360966395000804 & 0.98195168024996 \tabularnewline
31 & 0.0118610168092281 & 0.0237220336184563 & 0.988138983190772 \tabularnewline
32 & 0.0100664956898701 & 0.0201329913797402 & 0.98993350431013 \tabularnewline
33 & 0.0119240871895506 & 0.0238481743791011 & 0.98807591281045 \tabularnewline
34 & 0.0073971649557081 & 0.0147943299114162 & 0.992602835044292 \tabularnewline
35 & 0.00957600713754703 & 0.0191520142750941 & 0.990423992862453 \tabularnewline
36 & 0.00563014350249589 & 0.0112602870049918 & 0.994369856497504 \tabularnewline
37 & 0.00725677194374348 & 0.0145135438874870 & 0.992743228056256 \tabularnewline
38 & 0.00442142892513 & 0.00884285785026 & 0.99557857107487 \tabularnewline
39 & 0.00407773244810586 & 0.00815546489621172 & 0.995922267551894 \tabularnewline
40 & 0.00229781655712363 & 0.00459563311424726 & 0.997702183442876 \tabularnewline
41 & 0.00167888274069232 & 0.00335776548138464 & 0.998321117259308 \tabularnewline
42 & 0.00115379478226192 & 0.00230758956452384 & 0.998846205217738 \tabularnewline
43 & 0.00059828687444223 & 0.00119657374888446 & 0.999401713125558 \tabularnewline
44 & 0.000289488766742323 & 0.000578977533484645 & 0.999710511233258 \tabularnewline
45 & 0.000241638186474069 & 0.000483276372948137 & 0.999758361813526 \tabularnewline
46 & 0.00011766250560331 & 0.00023532501120662 & 0.999882337494397 \tabularnewline
47 & 5.49831371375108e-05 & 0.000109966274275022 & 0.999945016862863 \tabularnewline
48 & 0.5945739799848 & 0.810852040030401 & 0.405426020015201 \tabularnewline
49 & 0.951017307385617 & 0.097965385228766 & 0.048982692614383 \tabularnewline
50 & 0.98419562904035 & 0.0316087419192994 & 0.0158043709596497 \tabularnewline
51 & 0.965943719783677 & 0.0681125604326451 & 0.0340562802163226 \tabularnewline
52 & 0.94426690556306 & 0.111466188873878 & 0.0557330944369391 \tabularnewline
53 & 0.889978243923293 & 0.220043512153414 & 0.110021756076707 \tabularnewline
54 & 0.874407297970306 & 0.251185404059388 & 0.125592702029694 \tabularnewline
55 & 0.780459314349837 & 0.439081371300325 & 0.219540685650163 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35366&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.384818955047719[/C][C]0.769637910095439[/C][C]0.61518104495228[/C][/ROW]
[ROW][C]6[/C][C]0.564757707280573[/C][C]0.870484585438854[/C][C]0.435242292719427[/C][/ROW]
[ROW][C]7[/C][C]0.464624386804904[/C][C]0.929248773609807[/C][C]0.535375613195096[/C][/ROW]
[ROW][C]8[/C][C]0.339818276411149[/C][C]0.679636552822298[/C][C]0.660181723588851[/C][/ROW]
[ROW][C]9[/C][C]0.239118868781942[/C][C]0.478237737563885[/C][C]0.760881131218058[/C][/ROW]
[ROW][C]10[/C][C]0.162453603830859[/C][C]0.324907207661719[/C][C]0.83754639616914[/C][/ROW]
[ROW][C]11[/C][C]0.180055475590405[/C][C]0.360110951180810[/C][C]0.819944524409595[/C][/ROW]
[ROW][C]12[/C][C]0.142857556178856[/C][C]0.285715112357712[/C][C]0.857142443821144[/C][/ROW]
[ROW][C]13[/C][C]0.160519218288330[/C][C]0.321038436576661[/C][C]0.83948078171167[/C][/ROW]
[ROW][C]14[/C][C]0.142449563781215[/C][C]0.28489912756243[/C][C]0.857550436218785[/C][/ROW]
[ROW][C]15[/C][C]0.100286374130211[/C][C]0.200572748260423[/C][C]0.899713625869789[/C][/ROW]
[ROW][C]16[/C][C]0.08699071105571[/C][C]0.17398142211142[/C][C]0.91300928894429[/C][/ROW]
[ROW][C]17[/C][C]0.0982878412508634[/C][C]0.196575682501727[/C][C]0.901712158749137[/C][/ROW]
[ROW][C]18[/C][C]0.0655505911683563[/C][C]0.131101182336713[/C][C]0.934449408831644[/C][/ROW]
[ROW][C]19[/C][C]0.0699891985646993[/C][C]0.139978397129399[/C][C]0.9300108014353[/C][/ROW]
[ROW][C]20[/C][C]0.0620975834814904[/C][C]0.124195166962981[/C][C]0.93790241651851[/C][/ROW]
[ROW][C]21[/C][C]0.0866639248081238[/C][C]0.173327849616248[/C][C]0.913336075191876[/C][/ROW]
[ROW][C]22[/C][C]0.0841843516275437[/C][C]0.168368703255087[/C][C]0.915815648372456[/C][/ROW]
[ROW][C]23[/C][C]0.074940447086725[/C][C]0.14988089417345[/C][C]0.925059552913275[/C][/ROW]
[ROW][C]24[/C][C]0.078415296042804[/C][C]0.156830592085608[/C][C]0.921584703957196[/C][/ROW]
[ROW][C]25[/C][C]0.0808539974607085[/C][C]0.161707994921417[/C][C]0.919146002539291[/C][/ROW]
[ROW][C]26[/C][C]0.0557829152939064[/C][C]0.111565830587813[/C][C]0.944217084706094[/C][/ROW]
[ROW][C]27[/C][C]0.0380795448746072[/C][C]0.0761590897492144[/C][C]0.961920455125393[/C][/ROW]
[ROW][C]28[/C][C]0.0301444566215135[/C][C]0.0602889132430269[/C][C]0.969855543378487[/C][/ROW]
[ROW][C]29[/C][C]0.019327626634656[/C][C]0.038655253269312[/C][C]0.980672373365344[/C][/ROW]
[ROW][C]30[/C][C]0.0180483197500402[/C][C]0.0360966395000804[/C][C]0.98195168024996[/C][/ROW]
[ROW][C]31[/C][C]0.0118610168092281[/C][C]0.0237220336184563[/C][C]0.988138983190772[/C][/ROW]
[ROW][C]32[/C][C]0.0100664956898701[/C][C]0.0201329913797402[/C][C]0.98993350431013[/C][/ROW]
[ROW][C]33[/C][C]0.0119240871895506[/C][C]0.0238481743791011[/C][C]0.98807591281045[/C][/ROW]
[ROW][C]34[/C][C]0.0073971649557081[/C][C]0.0147943299114162[/C][C]0.992602835044292[/C][/ROW]
[ROW][C]35[/C][C]0.00957600713754703[/C][C]0.0191520142750941[/C][C]0.990423992862453[/C][/ROW]
[ROW][C]36[/C][C]0.00563014350249589[/C][C]0.0112602870049918[/C][C]0.994369856497504[/C][/ROW]
[ROW][C]37[/C][C]0.00725677194374348[/C][C]0.0145135438874870[/C][C]0.992743228056256[/C][/ROW]
[ROW][C]38[/C][C]0.00442142892513[/C][C]0.00884285785026[/C][C]0.99557857107487[/C][/ROW]
[ROW][C]39[/C][C]0.00407773244810586[/C][C]0.00815546489621172[/C][C]0.995922267551894[/C][/ROW]
[ROW][C]40[/C][C]0.00229781655712363[/C][C]0.00459563311424726[/C][C]0.997702183442876[/C][/ROW]
[ROW][C]41[/C][C]0.00167888274069232[/C][C]0.00335776548138464[/C][C]0.998321117259308[/C][/ROW]
[ROW][C]42[/C][C]0.00115379478226192[/C][C]0.00230758956452384[/C][C]0.998846205217738[/C][/ROW]
[ROW][C]43[/C][C]0.00059828687444223[/C][C]0.00119657374888446[/C][C]0.999401713125558[/C][/ROW]
[ROW][C]44[/C][C]0.000289488766742323[/C][C]0.000578977533484645[/C][C]0.999710511233258[/C][/ROW]
[ROW][C]45[/C][C]0.000241638186474069[/C][C]0.000483276372948137[/C][C]0.999758361813526[/C][/ROW]
[ROW][C]46[/C][C]0.00011766250560331[/C][C]0.00023532501120662[/C][C]0.999882337494397[/C][/ROW]
[ROW][C]47[/C][C]5.49831371375108e-05[/C][C]0.000109966274275022[/C][C]0.999945016862863[/C][/ROW]
[ROW][C]48[/C][C]0.5945739799848[/C][C]0.810852040030401[/C][C]0.405426020015201[/C][/ROW]
[ROW][C]49[/C][C]0.951017307385617[/C][C]0.097965385228766[/C][C]0.048982692614383[/C][/ROW]
[ROW][C]50[/C][C]0.98419562904035[/C][C]0.0316087419192994[/C][C]0.0158043709596497[/C][/ROW]
[ROW][C]51[/C][C]0.965943719783677[/C][C]0.0681125604326451[/C][C]0.0340562802163226[/C][/ROW]
[ROW][C]52[/C][C]0.94426690556306[/C][C]0.111466188873878[/C][C]0.0557330944369391[/C][/ROW]
[ROW][C]53[/C][C]0.889978243923293[/C][C]0.220043512153414[/C][C]0.110021756076707[/C][/ROW]
[ROW][C]54[/C][C]0.874407297970306[/C][C]0.251185404059388[/C][C]0.125592702029694[/C][/ROW]
[ROW][C]55[/C][C]0.780459314349837[/C][C]0.439081371300325[/C][C]0.219540685650163[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35366&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35366&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.3848189550477190.7696379100954390.61518104495228
60.5647577072805730.8704845854388540.435242292719427
70.4646243868049040.9292487736098070.535375613195096
80.3398182764111490.6796365528222980.660181723588851
90.2391188687819420.4782377375638850.760881131218058
100.1624536038308590.3249072076617190.83754639616914
110.1800554755904050.3601109511808100.819944524409595
120.1428575561788560.2857151123577120.857142443821144
130.1605192182883300.3210384365766610.83948078171167
140.1424495637812150.284899127562430.857550436218785
150.1002863741302110.2005727482604230.899713625869789
160.086990711055710.173981422111420.91300928894429
170.09828784125086340.1965756825017270.901712158749137
180.06555059116835630.1311011823367130.934449408831644
190.06998919856469930.1399783971293990.9300108014353
200.06209758348149040.1241951669629810.93790241651851
210.08666392480812380.1733278496162480.913336075191876
220.08418435162754370.1683687032550870.915815648372456
230.0749404470867250.149880894173450.925059552913275
240.0784152960428040.1568305920856080.921584703957196
250.08085399746070850.1617079949214170.919146002539291
260.05578291529390640.1115658305878130.944217084706094
270.03807954487460720.07615908974921440.961920455125393
280.03014445662151350.06028891324302690.969855543378487
290.0193276266346560.0386552532693120.980672373365344
300.01804831975004020.03609663950008040.98195168024996
310.01186101680922810.02372203361845630.988138983190772
320.01006649568987010.02013299137974020.98993350431013
330.01192408718955060.02384817437910110.98807591281045
340.00739716495570810.01479432991141620.992602835044292
350.009576007137547030.01915201427509410.990423992862453
360.005630143502495890.01126028700499180.994369856497504
370.007256771943743480.01451354388748700.992743228056256
380.004421428925130.008842857850260.99557857107487
390.004077732448105860.008155464896211720.995922267551894
400.002297816557123630.004595633114247260.997702183442876
410.001678882740692320.003357765481384640.998321117259308
420.001153794782261920.002307589564523840.998846205217738
430.000598286874442230.001196573748884460.999401713125558
440.0002894887667423230.0005789775334846450.999710511233258
450.0002416381864740690.0004832763729481370.999758361813526
460.000117662505603310.000235325011206620.999882337494397
475.49831371375108e-050.0001099662742750220.999945016862863
480.59457397998480.8108520400304010.405426020015201
490.9510173073856170.0979653852287660.048982692614383
500.984195629040350.03160874191929940.0158043709596497
510.9659437197836770.06811256043264510.0340562802163226
520.944266905563060.1114661888738780.0557330944369391
530.8899782439232930.2200435121534140.110021756076707
540.8744072979703060.2511854040593880.125592702029694
550.7804593143498370.4390813713003250.219540685650163







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.196078431372549NOK
5% type I error level200.392156862745098NOK
10% type I error level240.470588235294118NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35366&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 level100.196078431372549NOK
5% type I error level200.392156862745098NOK
10% type I error level240.470588235294118NOK



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