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 computationThu, 17 Dec 2009 06:53:54 -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/17/t12610581154i4mqkwlmk3dmtr.htm/, Retrieved Tue, 30 Apr 2024 01:55:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68896, Retrieved Tue, 30 Apr 2024 01:55:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-18 16:22:43] [90f6d58d515a4caed6fb4b8be4e11eaa]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:41:03] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:53:54] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.3	96.8
9.3	114.1
8.7	110.3
8.2	103.9
8.3	101.6
8.5	94.6
8.6	95.9
8.5	104.7
8.2	102.8
8.1	98.1
7.9	113.9
8.6	80.9
8.7	95.7
8.7	113.2
8.5	105.9
8.4	108.8
8.5	102.3
8.7	99
8.7	100.7
8.6	115.5
8.5	100.7
8.3	109.9
8	114.6
8.2	85.4
8.1	100.5
8.1	114.8
8	116.5
7.9	112.9
7.9	102
8	106
8	105.3
7.9	118.8
8	106.1
7.7	109.3
7.2	117.2
7.5	92.5
7.3	104.2
7	112.5
7	122.4
7	113.3
7.2	100
7.3	110.7
7.1	112.8
6.8	109.8
6.4	117.3
6.1	109.1
6.5	115.9
7.7	96
7.9	99.8
7.5	116.8
6.9	115.7
6.6	99.4
6.9	94.3
7.7	91
8	93.2
8	103.1
7.7	94.1
7.3	91.8
7.4	102.7
8.1	82.6




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=68896&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=68896&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68896&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
werklh[t] = + 11.1601866545664 -0.0358960522927116ecogr[t] + 0.667880943329111M1[t] + 1.06201420144467M2[t] + 0.757706675169545M3[t] + 0.32438233526692M4[t] + 0.190854416796458M5[t] + 0.478751548300854M6[t] + 0.566134337327233M7[t] + 0.762019597503095M8[t] + 0.340181994334138M9[t] + 0.0600802050502195M10[t] + 0.291041807189020M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werklh[t] =  +  11.1601866545664 -0.0358960522927116ecogr[t] +  0.667880943329111M1[t] +  1.06201420144467M2[t] +  0.757706675169545M3[t] +  0.32438233526692M4[t] +  0.190854416796458M5[t] +  0.478751548300854M6[t] +  0.566134337327233M7[t] +  0.762019597503095M8[t] +  0.340181994334138M9[t] +  0.0600802050502195M10[t] +  0.291041807189020M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68896&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werklh[t] =  +  11.1601866545664 -0.0358960522927116ecogr[t] +  0.667880943329111M1[t] +  1.06201420144467M2[t] +  0.757706675169545M3[t] +  0.32438233526692M4[t] +  0.190854416796458M5[t] +  0.478751548300854M6[t] +  0.566134337327233M7[t] +  0.762019597503095M8[t] +  0.340181994334138M9[t] +  0.0600802050502195M10[t] +  0.291041807189020M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68896&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68896&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
werklh[t] = + 11.1601866545664 -0.0358960522927116ecogr[t] + 0.667880943329111M1[t] + 1.06201420144467M2[t] + 0.757706675169545M3[t] + 0.32438233526692M4[t] + 0.190854416796458M5[t] + 0.478751548300854M6[t] + 0.566134337327233M7[t] + 0.762019597503095M8[t] + 0.340181994334138M9[t] + 0.0600802050502195M10[t] + 0.291041807189020M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)11.16018665456641.4256097.828400
ecogr-0.03589605229271160.015895-2.25830.0286080.014304
M10.6678809433291110.4833961.38160.1736140.086807
M21.062014201444670.6158221.72450.0911810.045591
M30.7577066751695450.6145051.2330.2236940.111847
M40.324382335266920.5483260.59160.5569620.278481
M50.1908544167964580.4874730.39150.6971840.348592
M60.4787515483008540.4889160.97920.3324890.166245
M70.5661343373272330.4979991.13680.2613770.130689
M80.7620195975030950.5746881.3260.1912570.095629
M90.3401819943341380.5180770.65660.5146250.257312
M100.06008020505021950.5135680.1170.907370.453685
M110.2910418071890200.6004310.48470.6301250.315063

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 11.1601866545664 & 1.425609 & 7.8284 & 0 & 0 \tabularnewline
ecogr & -0.0358960522927116 & 0.015895 & -2.2583 & 0.028608 & 0.014304 \tabularnewline
M1 & 0.667880943329111 & 0.483396 & 1.3816 & 0.173614 & 0.086807 \tabularnewline
M2 & 1.06201420144467 & 0.615822 & 1.7245 & 0.091181 & 0.045591 \tabularnewline
M3 & 0.757706675169545 & 0.614505 & 1.233 & 0.223694 & 0.111847 \tabularnewline
M4 & 0.32438233526692 & 0.548326 & 0.5916 & 0.556962 & 0.278481 \tabularnewline
M5 & 0.190854416796458 & 0.487473 & 0.3915 & 0.697184 & 0.348592 \tabularnewline
M6 & 0.478751548300854 & 0.488916 & 0.9792 & 0.332489 & 0.166245 \tabularnewline
M7 & 0.566134337327233 & 0.497999 & 1.1368 & 0.261377 & 0.130689 \tabularnewline
M8 & 0.762019597503095 & 0.574688 & 1.326 & 0.191257 & 0.095629 \tabularnewline
M9 & 0.340181994334138 & 0.518077 & 0.6566 & 0.514625 & 0.257312 \tabularnewline
M10 & 0.0600802050502195 & 0.513568 & 0.117 & 0.90737 & 0.453685 \tabularnewline
M11 & 0.291041807189020 & 0.600431 & 0.4847 & 0.630125 & 0.315063 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68896&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]11.1601866545664[/C][C]1.425609[/C][C]7.8284[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]ecogr[/C][C]-0.0358960522927116[/C][C]0.015895[/C][C]-2.2583[/C][C]0.028608[/C][C]0.014304[/C][/ROW]
[ROW][C]M1[/C][C]0.667880943329111[/C][C]0.483396[/C][C]1.3816[/C][C]0.173614[/C][C]0.086807[/C][/ROW]
[ROW][C]M2[/C][C]1.06201420144467[/C][C]0.615822[/C][C]1.7245[/C][C]0.091181[/C][C]0.045591[/C][/ROW]
[ROW][C]M3[/C][C]0.757706675169545[/C][C]0.614505[/C][C]1.233[/C][C]0.223694[/C][C]0.111847[/C][/ROW]
[ROW][C]M4[/C][C]0.32438233526692[/C][C]0.548326[/C][C]0.5916[/C][C]0.556962[/C][C]0.278481[/C][/ROW]
[ROW][C]M5[/C][C]0.190854416796458[/C][C]0.487473[/C][C]0.3915[/C][C]0.697184[/C][C]0.348592[/C][/ROW]
[ROW][C]M6[/C][C]0.478751548300854[/C][C]0.488916[/C][C]0.9792[/C][C]0.332489[/C][C]0.166245[/C][/ROW]
[ROW][C]M7[/C][C]0.566134337327233[/C][C]0.497999[/C][C]1.1368[/C][C]0.261377[/C][C]0.130689[/C][/ROW]
[ROW][C]M8[/C][C]0.762019597503095[/C][C]0.574688[/C][C]1.326[/C][C]0.191257[/C][C]0.095629[/C][/ROW]
[ROW][C]M9[/C][C]0.340181994334138[/C][C]0.518077[/C][C]0.6566[/C][C]0.514625[/C][C]0.257312[/C][/ROW]
[ROW][C]M10[/C][C]0.0600802050502195[/C][C]0.513568[/C][C]0.117[/C][C]0.90737[/C][C]0.453685[/C][/ROW]
[ROW][C]M11[/C][C]0.291041807189020[/C][C]0.600431[/C][C]0.4847[/C][C]0.630125[/C][C]0.315063[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68896&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)11.16018665456641.4256097.828400
ecogr-0.03589605229271160.015895-2.25830.0286080.014304
M10.6678809433291110.4833961.38160.1736140.086807
M21.062014201444670.6158221.72450.0911810.045591
M30.7577066751695450.6145051.2330.2236940.111847
M40.324382335266920.5483260.59160.5569620.278481
M50.1908544167964580.4874730.39150.6971840.348592
M60.4787515483008540.4889160.97920.3324890.166245
M70.5661343373272330.4979991.13680.2613770.130689
M80.7620195975030950.5746881.3260.1912570.095629
M90.3401819943341380.5180770.65660.5146250.257312
M100.06008020505021950.5135680.1170.907370.453685
M110.2910418071890200.6004310.48470.6301250.315063







Multiple Linear Regression - Regression Statistics
Multiple R0.463074144446394
R-squared0.21443766325476
Adjusted R-squared0.0138685560006561
F-TEST (value)1.06914602248833
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.406474500246614
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.703159648930356
Sum Squared Residuals23.2383741185415

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.463074144446394 \tabularnewline
R-squared & 0.21443766325476 \tabularnewline
Adjusted R-squared & 0.0138685560006561 \tabularnewline
F-TEST (value) & 1.06914602248833 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.406474500246614 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.703159648930356 \tabularnewline
Sum Squared Residuals & 23.2383741185415 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68896&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.463074144446394[/C][/ROW]
[ROW][C]R-squared[/C][C]0.21443766325476[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0138685560006561[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.06914602248833[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.406474500246614[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.703159648930356[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]23.2383741185415[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68896&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68896&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.463074144446394
R-squared0.21443766325476
Adjusted R-squared0.0138685560006561
F-TEST (value)1.06914602248833
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.406474500246614
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.703159648930356
Sum Squared Residuals23.2383741185415







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.38.35332973596110.946670264038907
29.38.126461289412691.17353871058731
38.77.958558761849870.741441238150132
48.27.75496915662060.445030843379403
58.37.704002158423370.59599784157663
68.58.243171655976750.256828344023252
78.68.28388957702260.316110422977398
88.58.16388957702260.336110422977398
98.27.81025447320980.389745526790203
108.17.698864129701620.401135870298378
117.97.362668105615580.53733189438442
128.68.256196024086040.343803975913958
138.78.392815393483020.307184606516977
148.78.158767736476130.541232263523871
158.58.11650139193780.383498608062202
168.47.579078500386310.820921499613692
178.57.678874921818470.821125078181528
188.78.085229025888820.614770974111183
198.78.111588526017590.588411473982413
208.67.776212212261320.823787787738683
218.57.885636183024490.61436381697551
228.37.275290712647631.02470928735238
2387.337540869010680.662459130989318
248.28.094663788768840.105336211231159
258.18.22051434247801-0.120514342478007
268.18.10133405280779-0.00133405280779036
2787.736003237635050.263996762364945
287.97.431904685986190.468095314013809
297.97.689643737506290.210356262493715
3087.833956659839830.166043340160165
3187.946466685471110.0535333145288874
327.97.657755239695370.242244760304632
3387.691797500643850.308202499356152
347.77.296828344023250.403171655976748
357.27.24421113304963-0.0442111330496315
367.57.83980181749059-0.339801817490588
377.38.08769894899497-0.787698948994973
3878.18389497308103-1.18389497308103
3977.52421652910806-0.524216529108056
4077.4175462650691-0.417546265069107
417.27.76143584209171-0.561435842091708
427.37.66524521406409-0.365245214064091
437.17.67724629327578-0.577246293275776
446.87.98081971032977-1.18081971032977
456.47.28976171496548-0.889761714965477
466.17.3040075544818-1.20400755448180
476.57.29087600103016-0.790876001030157
487.77.7141656344661-0.0141656344660969
497.98.2456415790829-0.345641579082904
507.58.02954194822237-0.529541948222367
516.97.76472007946922-0.864720079469223
526.67.9165013919378-1.31650139193780
536.97.96604334016016-1.06604334016016
547.78.37239744423051-0.672397444230509
5588.38080891821292-0.380808918212923
5688.22132326069094-0.221323260690941
577.78.12255012815639-0.422550128156387
587.37.9250092591457-0.625009259145706
597.47.76470389129395-0.36470389129395
608.18.19517273518843-0.0951727351884332

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.3 & 8.3533297359611 & 0.946670264038907 \tabularnewline
2 & 9.3 & 8.12646128941269 & 1.17353871058731 \tabularnewline
3 & 8.7 & 7.95855876184987 & 0.741441238150132 \tabularnewline
4 & 8.2 & 7.7549691566206 & 0.445030843379403 \tabularnewline
5 & 8.3 & 7.70400215842337 & 0.59599784157663 \tabularnewline
6 & 8.5 & 8.24317165597675 & 0.256828344023252 \tabularnewline
7 & 8.6 & 8.2838895770226 & 0.316110422977398 \tabularnewline
8 & 8.5 & 8.1638895770226 & 0.336110422977398 \tabularnewline
9 & 8.2 & 7.8102544732098 & 0.389745526790203 \tabularnewline
10 & 8.1 & 7.69886412970162 & 0.401135870298378 \tabularnewline
11 & 7.9 & 7.36266810561558 & 0.53733189438442 \tabularnewline
12 & 8.6 & 8.25619602408604 & 0.343803975913958 \tabularnewline
13 & 8.7 & 8.39281539348302 & 0.307184606516977 \tabularnewline
14 & 8.7 & 8.15876773647613 & 0.541232263523871 \tabularnewline
15 & 8.5 & 8.1165013919378 & 0.383498608062202 \tabularnewline
16 & 8.4 & 7.57907850038631 & 0.820921499613692 \tabularnewline
17 & 8.5 & 7.67887492181847 & 0.821125078181528 \tabularnewline
18 & 8.7 & 8.08522902588882 & 0.614770974111183 \tabularnewline
19 & 8.7 & 8.11158852601759 & 0.588411473982413 \tabularnewline
20 & 8.6 & 7.77621221226132 & 0.823787787738683 \tabularnewline
21 & 8.5 & 7.88563618302449 & 0.61436381697551 \tabularnewline
22 & 8.3 & 7.27529071264763 & 1.02470928735238 \tabularnewline
23 & 8 & 7.33754086901068 & 0.662459130989318 \tabularnewline
24 & 8.2 & 8.09466378876884 & 0.105336211231159 \tabularnewline
25 & 8.1 & 8.22051434247801 & -0.120514342478007 \tabularnewline
26 & 8.1 & 8.10133405280779 & -0.00133405280779036 \tabularnewline
27 & 8 & 7.73600323763505 & 0.263996762364945 \tabularnewline
28 & 7.9 & 7.43190468598619 & 0.468095314013809 \tabularnewline
29 & 7.9 & 7.68964373750629 & 0.210356262493715 \tabularnewline
30 & 8 & 7.83395665983983 & 0.166043340160165 \tabularnewline
31 & 8 & 7.94646668547111 & 0.0535333145288874 \tabularnewline
32 & 7.9 & 7.65775523969537 & 0.242244760304632 \tabularnewline
33 & 8 & 7.69179750064385 & 0.308202499356152 \tabularnewline
34 & 7.7 & 7.29682834402325 & 0.403171655976748 \tabularnewline
35 & 7.2 & 7.24421113304963 & -0.0442111330496315 \tabularnewline
36 & 7.5 & 7.83980181749059 & -0.339801817490588 \tabularnewline
37 & 7.3 & 8.08769894899497 & -0.787698948994973 \tabularnewline
38 & 7 & 8.18389497308103 & -1.18389497308103 \tabularnewline
39 & 7 & 7.52421652910806 & -0.524216529108056 \tabularnewline
40 & 7 & 7.4175462650691 & -0.417546265069107 \tabularnewline
41 & 7.2 & 7.76143584209171 & -0.561435842091708 \tabularnewline
42 & 7.3 & 7.66524521406409 & -0.365245214064091 \tabularnewline
43 & 7.1 & 7.67724629327578 & -0.577246293275776 \tabularnewline
44 & 6.8 & 7.98081971032977 & -1.18081971032977 \tabularnewline
45 & 6.4 & 7.28976171496548 & -0.889761714965477 \tabularnewline
46 & 6.1 & 7.3040075544818 & -1.20400755448180 \tabularnewline
47 & 6.5 & 7.29087600103016 & -0.790876001030157 \tabularnewline
48 & 7.7 & 7.7141656344661 & -0.0141656344660969 \tabularnewline
49 & 7.9 & 8.2456415790829 & -0.345641579082904 \tabularnewline
50 & 7.5 & 8.02954194822237 & -0.529541948222367 \tabularnewline
51 & 6.9 & 7.76472007946922 & -0.864720079469223 \tabularnewline
52 & 6.6 & 7.9165013919378 & -1.31650139193780 \tabularnewline
53 & 6.9 & 7.96604334016016 & -1.06604334016016 \tabularnewline
54 & 7.7 & 8.37239744423051 & -0.672397444230509 \tabularnewline
55 & 8 & 8.38080891821292 & -0.380808918212923 \tabularnewline
56 & 8 & 8.22132326069094 & -0.221323260690941 \tabularnewline
57 & 7.7 & 8.12255012815639 & -0.422550128156387 \tabularnewline
58 & 7.3 & 7.9250092591457 & -0.625009259145706 \tabularnewline
59 & 7.4 & 7.76470389129395 & -0.36470389129395 \tabularnewline
60 & 8.1 & 8.19517273518843 & -0.0951727351884332 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68896&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]9.3[/C][C]8.3533297359611[/C][C]0.946670264038907[/C][/ROW]
[ROW][C]2[/C][C]9.3[/C][C]8.12646128941269[/C][C]1.17353871058731[/C][/ROW]
[ROW][C]3[/C][C]8.7[/C][C]7.95855876184987[/C][C]0.741441238150132[/C][/ROW]
[ROW][C]4[/C][C]8.2[/C][C]7.7549691566206[/C][C]0.445030843379403[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]7.70400215842337[/C][C]0.59599784157663[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.24317165597675[/C][C]0.256828344023252[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.2838895770226[/C][C]0.316110422977398[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.1638895770226[/C][C]0.336110422977398[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]7.8102544732098[/C][C]0.389745526790203[/C][/ROW]
[ROW][C]10[/C][C]8.1[/C][C]7.69886412970162[/C][C]0.401135870298378[/C][/ROW]
[ROW][C]11[/C][C]7.9[/C][C]7.36266810561558[/C][C]0.53733189438442[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]8.25619602408604[/C][C]0.343803975913958[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.39281539348302[/C][C]0.307184606516977[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.15876773647613[/C][C]0.541232263523871[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.1165013919378[/C][C]0.383498608062202[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]7.57907850038631[/C][C]0.820921499613692[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]7.67887492181847[/C][C]0.821125078181528[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]8.08522902588882[/C][C]0.614770974111183[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.11158852601759[/C][C]0.588411473982413[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]7.77621221226132[/C][C]0.823787787738683[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]7.88563618302449[/C][C]0.61436381697551[/C][/ROW]
[ROW][C]22[/C][C]8.3[/C][C]7.27529071264763[/C][C]1.02470928735238[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.33754086901068[/C][C]0.662459130989318[/C][/ROW]
[ROW][C]24[/C][C]8.2[/C][C]8.09466378876884[/C][C]0.105336211231159[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]8.22051434247801[/C][C]-0.120514342478007[/C][/ROW]
[ROW][C]26[/C][C]8.1[/C][C]8.10133405280779[/C][C]-0.00133405280779036[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.73600323763505[/C][C]0.263996762364945[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.43190468598619[/C][C]0.468095314013809[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.68964373750629[/C][C]0.210356262493715[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.83395665983983[/C][C]0.166043340160165[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.94646668547111[/C][C]0.0535333145288874[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.65775523969537[/C][C]0.242244760304632[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.69179750064385[/C][C]0.308202499356152[/C][/ROW]
[ROW][C]34[/C][C]7.7[/C][C]7.29682834402325[/C][C]0.403171655976748[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.24421113304963[/C][C]-0.0442111330496315[/C][/ROW]
[ROW][C]36[/C][C]7.5[/C][C]7.83980181749059[/C][C]-0.339801817490588[/C][/ROW]
[ROW][C]37[/C][C]7.3[/C][C]8.08769894899497[/C][C]-0.787698948994973[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]8.18389497308103[/C][C]-1.18389497308103[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.52421652910806[/C][C]-0.524216529108056[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.4175462650691[/C][C]-0.417546265069107[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.76143584209171[/C][C]-0.561435842091708[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.66524521406409[/C][C]-0.365245214064091[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.67724629327578[/C][C]-0.577246293275776[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.98081971032977[/C][C]-1.18081971032977[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]7.28976171496548[/C][C]-0.889761714965477[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]7.3040075544818[/C][C]-1.20400755448180[/C][/ROW]
[ROW][C]47[/C][C]6.5[/C][C]7.29087600103016[/C][C]-0.790876001030157[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.7141656344661[/C][C]-0.0141656344660969[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]8.2456415790829[/C][C]-0.345641579082904[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]8.02954194822237[/C][C]-0.529541948222367[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.76472007946922[/C][C]-0.864720079469223[/C][/ROW]
[ROW][C]52[/C][C]6.6[/C][C]7.9165013919378[/C][C]-1.31650139193780[/C][/ROW]
[ROW][C]53[/C][C]6.9[/C][C]7.96604334016016[/C][C]-1.06604334016016[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]8.37239744423051[/C][C]-0.672397444230509[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]8.38080891821292[/C][C]-0.380808918212923[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]8.22132326069094[/C][C]-0.221323260690941[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]8.12255012815639[/C][C]-0.422550128156387[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.9250092591457[/C][C]-0.625009259145706[/C][/ROW]
[ROW][C]59[/C][C]7.4[/C][C]7.76470389129395[/C][C]-0.36470389129395[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]8.19517273518843[/C][C]-0.0951727351884332[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68896&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68896&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
19.38.35332973596110.946670264038907
29.38.126461289412691.17353871058731
38.77.958558761849870.741441238150132
48.27.75496915662060.445030843379403
58.37.704002158423370.59599784157663
68.58.243171655976750.256828344023252
78.68.28388957702260.316110422977398
88.58.16388957702260.336110422977398
98.27.81025447320980.389745526790203
108.17.698864129701620.401135870298378
117.97.362668105615580.53733189438442
128.68.256196024086040.343803975913958
138.78.392815393483020.307184606516977
148.78.158767736476130.541232263523871
158.58.11650139193780.383498608062202
168.47.579078500386310.820921499613692
178.57.678874921818470.821125078181528
188.78.085229025888820.614770974111183
198.78.111588526017590.588411473982413
208.67.776212212261320.823787787738683
218.57.885636183024490.61436381697551
228.37.275290712647631.02470928735238
2387.337540869010680.662459130989318
248.28.094663788768840.105336211231159
258.18.22051434247801-0.120514342478007
268.18.10133405280779-0.00133405280779036
2787.736003237635050.263996762364945
287.97.431904685986190.468095314013809
297.97.689643737506290.210356262493715
3087.833956659839830.166043340160165
3187.946466685471110.0535333145288874
327.97.657755239695370.242244760304632
3387.691797500643850.308202499356152
347.77.296828344023250.403171655976748
357.27.24421113304963-0.0442111330496315
367.57.83980181749059-0.339801817490588
377.38.08769894899497-0.787698948994973
3878.18389497308103-1.18389497308103
3977.52421652910806-0.524216529108056
4077.4175462650691-0.417546265069107
417.27.76143584209171-0.561435842091708
427.37.66524521406409-0.365245214064091
437.17.67724629327578-0.577246293275776
446.87.98081971032977-1.18081971032977
456.47.28976171496548-0.889761714965477
466.17.3040075544818-1.20400755448180
476.57.29087600103016-0.790876001030157
487.77.7141656344661-0.0141656344660969
497.98.2456415790829-0.345641579082904
507.58.02954194822237-0.529541948222367
516.97.76472007946922-0.864720079469223
526.67.9165013919378-1.31650139193780
536.97.96604334016016-1.06604334016016
547.78.37239744423051-0.672397444230509
5588.38080891821292-0.380808918212923
5688.22132326069094-0.221323260690941
577.78.12255012815639-0.422550128156387
587.37.9250092591457-0.625009259145706
597.47.76470389129395-0.36470389129395
608.18.19517273518843-0.0951727351884332







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1150941991624330.2301883983248650.884905800837567
170.05122778672850240.1024555734570050.948772213271498
180.02037976287834420.04075952575668830.979620237121656
190.00861048998163730.01722097996327460.991389510018363
200.005149651729944230.01029930345988850.994850348270056
210.003720604362941240.007441208725882480.99627939563706
220.002280609803787000.004561219607574010.997719390196213
230.001189329981375890.002378659962751790.998810670018624
240.001219029538975200.002438059077950400.998780970461025
250.01272840125510270.02545680251020540.987271598744897
260.04020103660769970.08040207321539940.9597989633923
270.04933130876495990.09866261752991980.95066869123504
280.06219168919839420.1243833783967880.937808310801606
290.08120927810804080.1624185562160820.918790721891959
300.07358444773337460.1471688954667490.926415552266625
310.06541230533201550.1308246106640310.934587694667985
320.07333387808103510.1466677561620700.926666121918965
330.09258541526494330.1851708305298870.907414584735057
340.2659246111888810.5318492223777620.734075388811119
350.3222838407119040.6445676814238080.677716159288096
360.2831542014481100.5663084028962210.71684579855189
370.3954560623106830.7909121246213670.604543937689317
380.729001398413820.5419972031723590.270998601586180
390.686513603314550.6269727933708990.313486396685450
400.8453304238453550.309339152309290.154669576154645
410.873683133083490.2526337338330190.126316866916509
420.8904929577661660.2190140844676670.109507042233834
430.8162075975375390.3675848049249230.183792402462461
440.9603620501538790.07927589969224270.0396379498461213

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.115094199162433 & 0.230188398324865 & 0.884905800837567 \tabularnewline
17 & 0.0512277867285024 & 0.102455573457005 & 0.948772213271498 \tabularnewline
18 & 0.0203797628783442 & 0.0407595257566883 & 0.979620237121656 \tabularnewline
19 & 0.0086104899816373 & 0.0172209799632746 & 0.991389510018363 \tabularnewline
20 & 0.00514965172994423 & 0.0102993034598885 & 0.994850348270056 \tabularnewline
21 & 0.00372060436294124 & 0.00744120872588248 & 0.99627939563706 \tabularnewline
22 & 0.00228060980378700 & 0.00456121960757401 & 0.997719390196213 \tabularnewline
23 & 0.00118932998137589 & 0.00237865996275179 & 0.998810670018624 \tabularnewline
24 & 0.00121902953897520 & 0.00243805907795040 & 0.998780970461025 \tabularnewline
25 & 0.0127284012551027 & 0.0254568025102054 & 0.987271598744897 \tabularnewline
26 & 0.0402010366076997 & 0.0804020732153994 & 0.9597989633923 \tabularnewline
27 & 0.0493313087649599 & 0.0986626175299198 & 0.95066869123504 \tabularnewline
28 & 0.0621916891983942 & 0.124383378396788 & 0.937808310801606 \tabularnewline
29 & 0.0812092781080408 & 0.162418556216082 & 0.918790721891959 \tabularnewline
30 & 0.0735844477333746 & 0.147168895466749 & 0.926415552266625 \tabularnewline
31 & 0.0654123053320155 & 0.130824610664031 & 0.934587694667985 \tabularnewline
32 & 0.0733338780810351 & 0.146667756162070 & 0.926666121918965 \tabularnewline
33 & 0.0925854152649433 & 0.185170830529887 & 0.907414584735057 \tabularnewline
34 & 0.265924611188881 & 0.531849222377762 & 0.734075388811119 \tabularnewline
35 & 0.322283840711904 & 0.644567681423808 & 0.677716159288096 \tabularnewline
36 & 0.283154201448110 & 0.566308402896221 & 0.71684579855189 \tabularnewline
37 & 0.395456062310683 & 0.790912124621367 & 0.604543937689317 \tabularnewline
38 & 0.72900139841382 & 0.541997203172359 & 0.270998601586180 \tabularnewline
39 & 0.68651360331455 & 0.626972793370899 & 0.313486396685450 \tabularnewline
40 & 0.845330423845355 & 0.30933915230929 & 0.154669576154645 \tabularnewline
41 & 0.87368313308349 & 0.252633733833019 & 0.126316866916509 \tabularnewline
42 & 0.890492957766166 & 0.219014084467667 & 0.109507042233834 \tabularnewline
43 & 0.816207597537539 & 0.367584804924923 & 0.183792402462461 \tabularnewline
44 & 0.960362050153879 & 0.0792758996922427 & 0.0396379498461213 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68896&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.115094199162433[/C][C]0.230188398324865[/C][C]0.884905800837567[/C][/ROW]
[ROW][C]17[/C][C]0.0512277867285024[/C][C]0.102455573457005[/C][C]0.948772213271498[/C][/ROW]
[ROW][C]18[/C][C]0.0203797628783442[/C][C]0.0407595257566883[/C][C]0.979620237121656[/C][/ROW]
[ROW][C]19[/C][C]0.0086104899816373[/C][C]0.0172209799632746[/C][C]0.991389510018363[/C][/ROW]
[ROW][C]20[/C][C]0.00514965172994423[/C][C]0.0102993034598885[/C][C]0.994850348270056[/C][/ROW]
[ROW][C]21[/C][C]0.00372060436294124[/C][C]0.00744120872588248[/C][C]0.99627939563706[/C][/ROW]
[ROW][C]22[/C][C]0.00228060980378700[/C][C]0.00456121960757401[/C][C]0.997719390196213[/C][/ROW]
[ROW][C]23[/C][C]0.00118932998137589[/C][C]0.00237865996275179[/C][C]0.998810670018624[/C][/ROW]
[ROW][C]24[/C][C]0.00121902953897520[/C][C]0.00243805907795040[/C][C]0.998780970461025[/C][/ROW]
[ROW][C]25[/C][C]0.0127284012551027[/C][C]0.0254568025102054[/C][C]0.987271598744897[/C][/ROW]
[ROW][C]26[/C][C]0.0402010366076997[/C][C]0.0804020732153994[/C][C]0.9597989633923[/C][/ROW]
[ROW][C]27[/C][C]0.0493313087649599[/C][C]0.0986626175299198[/C][C]0.95066869123504[/C][/ROW]
[ROW][C]28[/C][C]0.0621916891983942[/C][C]0.124383378396788[/C][C]0.937808310801606[/C][/ROW]
[ROW][C]29[/C][C]0.0812092781080408[/C][C]0.162418556216082[/C][C]0.918790721891959[/C][/ROW]
[ROW][C]30[/C][C]0.0735844477333746[/C][C]0.147168895466749[/C][C]0.926415552266625[/C][/ROW]
[ROW][C]31[/C][C]0.0654123053320155[/C][C]0.130824610664031[/C][C]0.934587694667985[/C][/ROW]
[ROW][C]32[/C][C]0.0733338780810351[/C][C]0.146667756162070[/C][C]0.926666121918965[/C][/ROW]
[ROW][C]33[/C][C]0.0925854152649433[/C][C]0.185170830529887[/C][C]0.907414584735057[/C][/ROW]
[ROW][C]34[/C][C]0.265924611188881[/C][C]0.531849222377762[/C][C]0.734075388811119[/C][/ROW]
[ROW][C]35[/C][C]0.322283840711904[/C][C]0.644567681423808[/C][C]0.677716159288096[/C][/ROW]
[ROW][C]36[/C][C]0.283154201448110[/C][C]0.566308402896221[/C][C]0.71684579855189[/C][/ROW]
[ROW][C]37[/C][C]0.395456062310683[/C][C]0.790912124621367[/C][C]0.604543937689317[/C][/ROW]
[ROW][C]38[/C][C]0.72900139841382[/C][C]0.541997203172359[/C][C]0.270998601586180[/C][/ROW]
[ROW][C]39[/C][C]0.68651360331455[/C][C]0.626972793370899[/C][C]0.313486396685450[/C][/ROW]
[ROW][C]40[/C][C]0.845330423845355[/C][C]0.30933915230929[/C][C]0.154669576154645[/C][/ROW]
[ROW][C]41[/C][C]0.87368313308349[/C][C]0.252633733833019[/C][C]0.126316866916509[/C][/ROW]
[ROW][C]42[/C][C]0.890492957766166[/C][C]0.219014084467667[/C][C]0.109507042233834[/C][/ROW]
[ROW][C]43[/C][C]0.816207597537539[/C][C]0.367584804924923[/C][C]0.183792402462461[/C][/ROW]
[ROW][C]44[/C][C]0.960362050153879[/C][C]0.0792758996922427[/C][C]0.0396379498461213[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68896&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1150941991624330.2301883983248650.884905800837567
170.05122778672850240.1024555734570050.948772213271498
180.02037976287834420.04075952575668830.979620237121656
190.00861048998163730.01722097996327460.991389510018363
200.005149651729944230.01029930345988850.994850348270056
210.003720604362941240.007441208725882480.99627939563706
220.002280609803787000.004561219607574010.997719390196213
230.001189329981375890.002378659962751790.998810670018624
240.001219029538975200.002438059077950400.998780970461025
250.01272840125510270.02545680251020540.987271598744897
260.04020103660769970.08040207321539940.9597989633923
270.04933130876495990.09866261752991980.95066869123504
280.06219168919839420.1243833783967880.937808310801606
290.08120927810804080.1624185562160820.918790721891959
300.07358444773337460.1471688954667490.926415552266625
310.06541230533201550.1308246106640310.934587694667985
320.07333387808103510.1466677561620700.926666121918965
330.09258541526494330.1851708305298870.907414584735057
340.2659246111888810.5318492223777620.734075388811119
350.3222838407119040.6445676814238080.677716159288096
360.2831542014481100.5663084028962210.71684579855189
370.3954560623106830.7909121246213670.604543937689317
380.729001398413820.5419972031723590.270998601586180
390.686513603314550.6269727933708990.313486396685450
400.8453304238453550.309339152309290.154669576154645
410.873683133083490.2526337338330190.126316866916509
420.8904929577661660.2190140844676670.109507042233834
430.8162075975375390.3675848049249230.183792402462461
440.9603620501538790.07927589969224270.0396379498461213







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.137931034482759NOK
5% type I error level80.275862068965517NOK
10% type I error level110.379310344827586NOK

\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 & 4 & 0.137931034482759 & NOK \tabularnewline
5% type I error level & 8 & 0.275862068965517 & NOK \tabularnewline
10% type I error level & 11 & 0.379310344827586 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68896&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]4[/C][C]0.137931034482759[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]8[/C][C]0.275862068965517[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]11[/C][C]0.379310344827586[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68896&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68896&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 level40.137931034482759NOK
5% type I error level80.275862068965517NOK
10% type I error level110.379310344827586NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}