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 computationMon, 13 Dec 2010 10:51:12 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/13/t12922375227kz891yfqa11dws.htm/, Retrieved Mon, 06 May 2024 21:11:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=108825, Retrieved Mon, 06 May 2024 21:11:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact126
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [MULTIPLE REGRESSI...] [2010-12-13 10:51:12] [4f70e6cd0867f10d298e58e8e27859b5] [Current]
-   PD    [Multiple Regression] [Multiple Regressi...] [2010-12-13 22:27:10] [1251ac2db27b84d4a3ba43449388906b]
-   PD    [Multiple Regression] [Multiple Regressi...] [2010-12-13 22:49:21] [1251ac2db27b84d4a3ba43449388906b]
Feedback Forum

Post a new message
Dataseries X:
38.6	3	5	3
4.5	3	1	3
14.0	1	1	1
69.0	3	5	4
27.0	4	4	4
19.0	1	1	1
30.4	4	5	4
28.0	1	2	1
50.0	1	1	1
7.0	5	4	4
30.0	5	5	5
40.0	5	5	5
3.5	1	1	1
50.0	2	2	2
6.0	2	2	2
10.4	2	2	2
34.0	1	2	1
7.0	1	1	1
28.0	5	5	5
20.0	5	5	5
3.9	3	1	2
39.3	1	4	1
41.0	1	3	1
16.2	1	1	1
9.0	5	1	3
7.6	5	3	4
46.0	5	5	5
22.4	1	1	1
16.3	3	5	4
2.6	5	2	4
24.0	1	1	1
100.0	1	1	1
3.2	4	1	3
2.0	4	1	3
5.0	2	1	1
6.5	2	1	1
23.6	5	5	5
12.0	2	2	2
20.2	4	4	4
13.0	2	1	2
27.0	4	4	4
18.0	5	5	5
13.7	2	2	2
4.7	3	1	3
9.8	1	1	1
29.0	2	3	2
7.0	2	2	2
6.0	3	2	3
17.0	5	5	5
20.0	5	5	5
12.7	2	2	2
3.5	3	1	2
4.5	2	1	2
7.5	3	1	3
2.3	3	2	2
24.0	4	3	4
3.0	2	1	1
13.0	3	1	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time13 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 & 13 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108825&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]13 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=108825&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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 time13 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
life[t] = + 19.5803665973447 -8.06766786814694P[t] + 7.46042791343927S[t] + 1.79548729423336D[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
life[t] =  +  19.5803665973447 -8.06766786814694P[t] +  7.46042791343927S[t] +  1.79548729423336D[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108825&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]life[t] =  +  19.5803665973447 -8.06766786814694P[t] +  7.46042791343927S[t] +  1.79548729423336D[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108825&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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
life[t] = + 19.5803665973447 -8.06766786814694P[t] + 7.46042791343927S[t] + 1.79548729423336D[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)19.58036659734474.5646034.28967.5e-053.7e-05
P-8.067667868146944.124543-1.9560.0556450.027822
S7.460427913439272.3347643.19540.0023330.001167
D1.795487294233365.3300180.33690.7375260.368763

\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) & 19.5803665973447 & 4.564603 & 4.2896 & 7.5e-05 & 3.7e-05 \tabularnewline
P & -8.06766786814694 & 4.124543 & -1.956 & 0.055645 & 0.027822 \tabularnewline
S & 7.46042791343927 & 2.334764 & 3.1954 & 0.002333 & 0.001167 \tabularnewline
D & 1.79548729423336 & 5.330018 & 0.3369 & 0.737526 & 0.368763 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108825&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]19.5803665973447[/C][C]4.564603[/C][C]4.2896[/C][C]7.5e-05[/C][C]3.7e-05[/C][/ROW]
[ROW][C]P[/C][C]-8.06766786814694[/C][C]4.124543[/C][C]-1.956[/C][C]0.055645[/C][C]0.027822[/C][/ROW]
[ROW][C]S[/C][C]7.46042791343927[/C][C]2.334764[/C][C]3.1954[/C][C]0.002333[/C][C]0.001167[/C][/ROW]
[ROW][C]D[/C][C]1.79548729423336[/C][C]5.330018[/C][C]0.3369[/C][C]0.737526[/C][C]0.368763[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108825&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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)19.58036659734474.5646034.28967.5e-053.7e-05
P-8.067667868146944.124543-1.9560.0556450.027822
S7.460427913439272.3347643.19540.0023330.001167
D1.795487294233365.3300180.33690.7375260.368763







Multiple Linear Regression - Regression Statistics
Multiple R0.562763516761305
R-squared0.316702775797552
Adjusted R-squared0.278741818897416
F-TEST (value)8.34285544041219
F-TEST (DF numerator)3
F-TEST (DF denominator)54
p-value0.000118783409815082
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.4620120043801
Sum Squared Residuals12909.9860220742

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.562763516761305 \tabularnewline
R-squared & 0.316702775797552 \tabularnewline
Adjusted R-squared & 0.278741818897416 \tabularnewline
F-TEST (value) & 8.34285544041219 \tabularnewline
F-TEST (DF numerator) & 3 \tabularnewline
F-TEST (DF denominator) & 54 \tabularnewline
p-value & 0.000118783409815082 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 15.4620120043801 \tabularnewline
Sum Squared Residuals & 12909.9860220742 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108825&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.562763516761305[/C][/ROW]
[ROW][C]R-squared[/C][C]0.316702775797552[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.278741818897416[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.34285544041219[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]3[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]54[/C][/ROW]
[ROW][C]p-value[/C][C]0.000118783409815082[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]15.4620120043801[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12909.9860220742[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108825&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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.562763516761305
R-squared0.316702775797552
Adjusted R-squared0.278741818897416
F-TEST (value)8.34285544041219
F-TEST (DF numerator)3
F-TEST (DF denominator)54
p-value0.000118783409815082
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.4620120043801
Sum Squared Residuals12909.9860220742







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
138.638.06596444280050.534035557199484
24.58.22425278904318-3.72425278904318
31420.7686139368704-6.76861393687038
46939.861451737033729.1385482629663
52724.33335595544752.66664404455252
61920.7686139368704-1.76861393687041
730.431.7937838688868-1.39378386888676
82828.2290418503097-0.229041850309684
95020.768613936870429.2313860631296
10716.2656880873005-9.26568808730053
113025.52160329497324.47839670502682
124025.521603294973214.4783967050268
133.520.7686139368704-17.2686139368704
145021.956861276396128.0431387236039
15621.9568612763961-15.9568612763961
1610.421.9568612763961-11.5568612763961
173428.22904185030975.77095814969032
18720.7686139368704-13.7686139368704
192825.52160329497322.47839670502682
202025.5216032949732-5.52160329497318
213.96.42876549480988-2.52876549480988
2239.343.1498976771882-3.84989767718823
234135.68946976374905.31053023625104
2416.220.7686139368704-4.56861393687041
259-7.9110829472506516.9110829472507
267.68.80526017386126-1.20526017386126
274625.521603294973220.4783967050268
2822.420.76861393687041.63138606312959
2916.339.8614517370337-23.5614517370337
302.61.344832260421991.25516773957801
312420.76861393687043.23138606312959
3210020.768613936870479.2313860631296
333.20.1565849208962983.0434150791037
3420.1565849208962961.84341507910370
35512.7009460687235-7.70094606872346
366.512.7009460687235-6.20094606872346
3723.625.5216032949732-1.92160329497317
381221.9568612763961-9.9568612763961
3920.224.3333559554475-4.13335595544748
401314.4964333629568-1.49643336295683
412724.33335595544752.66664404455252
421825.5216032949732-7.52160329497318
4313.721.9568612763961-8.2568612763961
444.78.22425278904325-3.52425278904325
459.820.7686139368704-10.9686139368704
462929.4172891898354-0.417289189835375
47721.9568612763961-14.9568612763961
48615.6846807024825-9.68468070248252
491725.5216032949732-8.52160329497317
502025.5216032949732-5.52160329497318
5112.721.9568612763961-9.2568612763961
523.56.42876549480988-2.92876549480988
534.514.4964333629568-9.99643336295683
547.58.22425278904325-0.724252789043248
552.313.8891934082491-11.5891934082491
562416.87292804200827.12707195799179
57312.7009460687235-9.70094606872346
58134.633278200576518.36672179942349

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 38.6 & 38.0659644428005 & 0.534035557199484 \tabularnewline
2 & 4.5 & 8.22425278904318 & -3.72425278904318 \tabularnewline
3 & 14 & 20.7686139368704 & -6.76861393687038 \tabularnewline
4 & 69 & 39.8614517370337 & 29.1385482629663 \tabularnewline
5 & 27 & 24.3333559554475 & 2.66664404455252 \tabularnewline
6 & 19 & 20.7686139368704 & -1.76861393687041 \tabularnewline
7 & 30.4 & 31.7937838688868 & -1.39378386888676 \tabularnewline
8 & 28 & 28.2290418503097 & -0.229041850309684 \tabularnewline
9 & 50 & 20.7686139368704 & 29.2313860631296 \tabularnewline
10 & 7 & 16.2656880873005 & -9.26568808730053 \tabularnewline
11 & 30 & 25.5216032949732 & 4.47839670502682 \tabularnewline
12 & 40 & 25.5216032949732 & 14.4783967050268 \tabularnewline
13 & 3.5 & 20.7686139368704 & -17.2686139368704 \tabularnewline
14 & 50 & 21.9568612763961 & 28.0431387236039 \tabularnewline
15 & 6 & 21.9568612763961 & -15.9568612763961 \tabularnewline
16 & 10.4 & 21.9568612763961 & -11.5568612763961 \tabularnewline
17 & 34 & 28.2290418503097 & 5.77095814969032 \tabularnewline
18 & 7 & 20.7686139368704 & -13.7686139368704 \tabularnewline
19 & 28 & 25.5216032949732 & 2.47839670502682 \tabularnewline
20 & 20 & 25.5216032949732 & -5.52160329497318 \tabularnewline
21 & 3.9 & 6.42876549480988 & -2.52876549480988 \tabularnewline
22 & 39.3 & 43.1498976771882 & -3.84989767718823 \tabularnewline
23 & 41 & 35.6894697637490 & 5.31053023625104 \tabularnewline
24 & 16.2 & 20.7686139368704 & -4.56861393687041 \tabularnewline
25 & 9 & -7.91108294725065 & 16.9110829472507 \tabularnewline
26 & 7.6 & 8.80526017386126 & -1.20526017386126 \tabularnewline
27 & 46 & 25.5216032949732 & 20.4783967050268 \tabularnewline
28 & 22.4 & 20.7686139368704 & 1.63138606312959 \tabularnewline
29 & 16.3 & 39.8614517370337 & -23.5614517370337 \tabularnewline
30 & 2.6 & 1.34483226042199 & 1.25516773957801 \tabularnewline
31 & 24 & 20.7686139368704 & 3.23138606312959 \tabularnewline
32 & 100 & 20.7686139368704 & 79.2313860631296 \tabularnewline
33 & 3.2 & 0.156584920896298 & 3.0434150791037 \tabularnewline
34 & 2 & 0.156584920896296 & 1.84341507910370 \tabularnewline
35 & 5 & 12.7009460687235 & -7.70094606872346 \tabularnewline
36 & 6.5 & 12.7009460687235 & -6.20094606872346 \tabularnewline
37 & 23.6 & 25.5216032949732 & -1.92160329497317 \tabularnewline
38 & 12 & 21.9568612763961 & -9.9568612763961 \tabularnewline
39 & 20.2 & 24.3333559554475 & -4.13335595544748 \tabularnewline
40 & 13 & 14.4964333629568 & -1.49643336295683 \tabularnewline
41 & 27 & 24.3333559554475 & 2.66664404455252 \tabularnewline
42 & 18 & 25.5216032949732 & -7.52160329497318 \tabularnewline
43 & 13.7 & 21.9568612763961 & -8.2568612763961 \tabularnewline
44 & 4.7 & 8.22425278904325 & -3.52425278904325 \tabularnewline
45 & 9.8 & 20.7686139368704 & -10.9686139368704 \tabularnewline
46 & 29 & 29.4172891898354 & -0.417289189835375 \tabularnewline
47 & 7 & 21.9568612763961 & -14.9568612763961 \tabularnewline
48 & 6 & 15.6846807024825 & -9.68468070248252 \tabularnewline
49 & 17 & 25.5216032949732 & -8.52160329497317 \tabularnewline
50 & 20 & 25.5216032949732 & -5.52160329497318 \tabularnewline
51 & 12.7 & 21.9568612763961 & -9.2568612763961 \tabularnewline
52 & 3.5 & 6.42876549480988 & -2.92876549480988 \tabularnewline
53 & 4.5 & 14.4964333629568 & -9.99643336295683 \tabularnewline
54 & 7.5 & 8.22425278904325 & -0.724252789043248 \tabularnewline
55 & 2.3 & 13.8891934082491 & -11.5891934082491 \tabularnewline
56 & 24 & 16.8729280420082 & 7.12707195799179 \tabularnewline
57 & 3 & 12.7009460687235 & -9.70094606872346 \tabularnewline
58 & 13 & 4.63327820057651 & 8.36672179942349 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108825&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]38.6[/C][C]38.0659644428005[/C][C]0.534035557199484[/C][/ROW]
[ROW][C]2[/C][C]4.5[/C][C]8.22425278904318[/C][C]-3.72425278904318[/C][/ROW]
[ROW][C]3[/C][C]14[/C][C]20.7686139368704[/C][C]-6.76861393687038[/C][/ROW]
[ROW][C]4[/C][C]69[/C][C]39.8614517370337[/C][C]29.1385482629663[/C][/ROW]
[ROW][C]5[/C][C]27[/C][C]24.3333559554475[/C][C]2.66664404455252[/C][/ROW]
[ROW][C]6[/C][C]19[/C][C]20.7686139368704[/C][C]-1.76861393687041[/C][/ROW]
[ROW][C]7[/C][C]30.4[/C][C]31.7937838688868[/C][C]-1.39378386888676[/C][/ROW]
[ROW][C]8[/C][C]28[/C][C]28.2290418503097[/C][C]-0.229041850309684[/C][/ROW]
[ROW][C]9[/C][C]50[/C][C]20.7686139368704[/C][C]29.2313860631296[/C][/ROW]
[ROW][C]10[/C][C]7[/C][C]16.2656880873005[/C][C]-9.26568808730053[/C][/ROW]
[ROW][C]11[/C][C]30[/C][C]25.5216032949732[/C][C]4.47839670502682[/C][/ROW]
[ROW][C]12[/C][C]40[/C][C]25.5216032949732[/C][C]14.4783967050268[/C][/ROW]
[ROW][C]13[/C][C]3.5[/C][C]20.7686139368704[/C][C]-17.2686139368704[/C][/ROW]
[ROW][C]14[/C][C]50[/C][C]21.9568612763961[/C][C]28.0431387236039[/C][/ROW]
[ROW][C]15[/C][C]6[/C][C]21.9568612763961[/C][C]-15.9568612763961[/C][/ROW]
[ROW][C]16[/C][C]10.4[/C][C]21.9568612763961[/C][C]-11.5568612763961[/C][/ROW]
[ROW][C]17[/C][C]34[/C][C]28.2290418503097[/C][C]5.77095814969032[/C][/ROW]
[ROW][C]18[/C][C]7[/C][C]20.7686139368704[/C][C]-13.7686139368704[/C][/ROW]
[ROW][C]19[/C][C]28[/C][C]25.5216032949732[/C][C]2.47839670502682[/C][/ROW]
[ROW][C]20[/C][C]20[/C][C]25.5216032949732[/C][C]-5.52160329497318[/C][/ROW]
[ROW][C]21[/C][C]3.9[/C][C]6.42876549480988[/C][C]-2.52876549480988[/C][/ROW]
[ROW][C]22[/C][C]39.3[/C][C]43.1498976771882[/C][C]-3.84989767718823[/C][/ROW]
[ROW][C]23[/C][C]41[/C][C]35.6894697637490[/C][C]5.31053023625104[/C][/ROW]
[ROW][C]24[/C][C]16.2[/C][C]20.7686139368704[/C][C]-4.56861393687041[/C][/ROW]
[ROW][C]25[/C][C]9[/C][C]-7.91108294725065[/C][C]16.9110829472507[/C][/ROW]
[ROW][C]26[/C][C]7.6[/C][C]8.80526017386126[/C][C]-1.20526017386126[/C][/ROW]
[ROW][C]27[/C][C]46[/C][C]25.5216032949732[/C][C]20.4783967050268[/C][/ROW]
[ROW][C]28[/C][C]22.4[/C][C]20.7686139368704[/C][C]1.63138606312959[/C][/ROW]
[ROW][C]29[/C][C]16.3[/C][C]39.8614517370337[/C][C]-23.5614517370337[/C][/ROW]
[ROW][C]30[/C][C]2.6[/C][C]1.34483226042199[/C][C]1.25516773957801[/C][/ROW]
[ROW][C]31[/C][C]24[/C][C]20.7686139368704[/C][C]3.23138606312959[/C][/ROW]
[ROW][C]32[/C][C]100[/C][C]20.7686139368704[/C][C]79.2313860631296[/C][/ROW]
[ROW][C]33[/C][C]3.2[/C][C]0.156584920896298[/C][C]3.0434150791037[/C][/ROW]
[ROW][C]34[/C][C]2[/C][C]0.156584920896296[/C][C]1.84341507910370[/C][/ROW]
[ROW][C]35[/C][C]5[/C][C]12.7009460687235[/C][C]-7.70094606872346[/C][/ROW]
[ROW][C]36[/C][C]6.5[/C][C]12.7009460687235[/C][C]-6.20094606872346[/C][/ROW]
[ROW][C]37[/C][C]23.6[/C][C]25.5216032949732[/C][C]-1.92160329497317[/C][/ROW]
[ROW][C]38[/C][C]12[/C][C]21.9568612763961[/C][C]-9.9568612763961[/C][/ROW]
[ROW][C]39[/C][C]20.2[/C][C]24.3333559554475[/C][C]-4.13335595544748[/C][/ROW]
[ROW][C]40[/C][C]13[/C][C]14.4964333629568[/C][C]-1.49643336295683[/C][/ROW]
[ROW][C]41[/C][C]27[/C][C]24.3333559554475[/C][C]2.66664404455252[/C][/ROW]
[ROW][C]42[/C][C]18[/C][C]25.5216032949732[/C][C]-7.52160329497318[/C][/ROW]
[ROW][C]43[/C][C]13.7[/C][C]21.9568612763961[/C][C]-8.2568612763961[/C][/ROW]
[ROW][C]44[/C][C]4.7[/C][C]8.22425278904325[/C][C]-3.52425278904325[/C][/ROW]
[ROW][C]45[/C][C]9.8[/C][C]20.7686139368704[/C][C]-10.9686139368704[/C][/ROW]
[ROW][C]46[/C][C]29[/C][C]29.4172891898354[/C][C]-0.417289189835375[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]21.9568612763961[/C][C]-14.9568612763961[/C][/ROW]
[ROW][C]48[/C][C]6[/C][C]15.6846807024825[/C][C]-9.68468070248252[/C][/ROW]
[ROW][C]49[/C][C]17[/C][C]25.5216032949732[/C][C]-8.52160329497317[/C][/ROW]
[ROW][C]50[/C][C]20[/C][C]25.5216032949732[/C][C]-5.52160329497318[/C][/ROW]
[ROW][C]51[/C][C]12.7[/C][C]21.9568612763961[/C][C]-9.2568612763961[/C][/ROW]
[ROW][C]52[/C][C]3.5[/C][C]6.42876549480988[/C][C]-2.92876549480988[/C][/ROW]
[ROW][C]53[/C][C]4.5[/C][C]14.4964333629568[/C][C]-9.99643336295683[/C][/ROW]
[ROW][C]54[/C][C]7.5[/C][C]8.22425278904325[/C][C]-0.724252789043248[/C][/ROW]
[ROW][C]55[/C][C]2.3[/C][C]13.8891934082491[/C][C]-11.5891934082491[/C][/ROW]
[ROW][C]56[/C][C]24[/C][C]16.8729280420082[/C][C]7.12707195799179[/C][/ROW]
[ROW][C]57[/C][C]3[/C][C]12.7009460687235[/C][C]-9.70094606872346[/C][/ROW]
[ROW][C]58[/C][C]13[/C][C]4.63327820057651[/C][C]8.36672179942349[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108825&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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
138.638.06596444280050.534035557199484
24.58.22425278904318-3.72425278904318
31420.7686139368704-6.76861393687038
46939.861451737033729.1385482629663
52724.33335595544752.66664404455252
61920.7686139368704-1.76861393687041
730.431.7937838688868-1.39378386888676
82828.2290418503097-0.229041850309684
95020.768613936870429.2313860631296
10716.2656880873005-9.26568808730053
113025.52160329497324.47839670502682
124025.521603294973214.4783967050268
133.520.7686139368704-17.2686139368704
145021.956861276396128.0431387236039
15621.9568612763961-15.9568612763961
1610.421.9568612763961-11.5568612763961
173428.22904185030975.77095814969032
18720.7686139368704-13.7686139368704
192825.52160329497322.47839670502682
202025.5216032949732-5.52160329497318
213.96.42876549480988-2.52876549480988
2239.343.1498976771882-3.84989767718823
234135.68946976374905.31053023625104
2416.220.7686139368704-4.56861393687041
259-7.9110829472506516.9110829472507
267.68.80526017386126-1.20526017386126
274625.521603294973220.4783967050268
2822.420.76861393687041.63138606312959
2916.339.8614517370337-23.5614517370337
302.61.344832260421991.25516773957801
312420.76861393687043.23138606312959
3210020.768613936870479.2313860631296
333.20.1565849208962983.0434150791037
3420.1565849208962961.84341507910370
35512.7009460687235-7.70094606872346
366.512.7009460687235-6.20094606872346
3723.625.5216032949732-1.92160329497317
381221.9568612763961-9.9568612763961
3920.224.3333559554475-4.13335595544748
401314.4964333629568-1.49643336295683
412724.33335595544752.66664404455252
421825.5216032949732-7.52160329497318
4313.721.9568612763961-8.2568612763961
444.78.22425278904325-3.52425278904325
459.820.7686139368704-10.9686139368704
462929.4172891898354-0.417289189835375
47721.9568612763961-14.9568612763961
48615.6846807024825-9.68468070248252
491725.5216032949732-8.52160329497317
502025.5216032949732-5.52160329497318
5112.721.9568612763961-9.2568612763961
523.56.42876549480988-2.92876549480988
534.514.4964333629568-9.99643336295683
547.58.22425278904325-0.724252789043248
552.313.8891934082491-11.5891934082491
562416.87292804200827.12707195799179
57312.7009460687235-9.70094606872346
58134.633278200576518.36672179942349







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.008153231707080750.01630646341416150.99184676829292
80.001911838543511870.003823677087023730.998088161456488
90.3621397614920730.7242795229841460.637860238507927
100.3154800221232230.6309600442464460.684519977876777
110.2105134705863820.4210269411727640.789486529413618
120.1740715041262310.3481430082524620.82592849587377
130.2327079793335730.4654159586671460.767292020666427
140.4389033074598280.8778066149196560.561096692540172
150.4797568870378110.9595137740756220.520243112962189
160.447026492000790.894052984001580.55297350799921
170.3680765034566840.7361530069133690.631923496543316
180.3432190017873830.6864380035747650.656780998212617
190.2710349478501640.5420698957003280.728965052149836
200.2275581147842790.4551162295685580.772441885215721
210.204982830680160.409965661360320.79501716931984
220.1522967951555820.3045935903111640.847703204844418
230.1141567898860440.2283135797720880.885843210113956
240.08031355029682840.1606271005936570.919686449703172
250.1461317163417850.2922634326835700.853868283658215
260.1046168315149720.2092336630299450.895383168485028
270.1301461593529800.2602923187059590.86985384064702
280.09200213072419570.1840042614483910.907997869275804
290.1574539916127630.3149079832255260.842546008387237
300.1164902930061870.2329805860123740.883509706993813
310.08262867995901330.1652573599180270.917371320040987
320.9999999904864451.90271103782769e-089.51355518913844e-09
330.9999999635862287.28275449191597e-083.64137724595799e-08
340.9999998648720382.70255924754785e-071.35127962377392e-07
350.999999590510078.18979859314991e-074.09489929657496e-07
360.9999986611513742.67769725229317e-061.33884862614658e-06
370.999995679504158.64099170030567e-064.32049585015283e-06
380.9999879340023662.41319952681617e-051.20659976340808e-05
390.9999637266018767.25467962487549e-053.62733981243774e-05
400.9999218094810050.000156381037990867.819051899543e-05
410.9998927312515860.0002145374968272780.000107268748413639
420.9997223362086760.000555327582647590.000277663791323795
430.9992456955008360.001508608998328050.000754304499164027
440.9979723160738260.004055367852347970.00202768392617399
450.9949997972739920.01000040545201550.00500020272600774
460.998435072593230.003129854813539820.00156492740676991
470.9954684139077230.009063172184554150.00453158609227708
480.989267439536960.02146512092608180.0107325604630409
490.975928706711660.04814258657668070.0240712932883404
500.9574883222301230.08502335553975480.0425116777698774
510.9091434655840480.1817130688319040.090856534415952

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
7 & 0.00815323170708075 & 0.0163064634141615 & 0.99184676829292 \tabularnewline
8 & 0.00191183854351187 & 0.00382367708702373 & 0.998088161456488 \tabularnewline
9 & 0.362139761492073 & 0.724279522984146 & 0.637860238507927 \tabularnewline
10 & 0.315480022123223 & 0.630960044246446 & 0.684519977876777 \tabularnewline
11 & 0.210513470586382 & 0.421026941172764 & 0.789486529413618 \tabularnewline
12 & 0.174071504126231 & 0.348143008252462 & 0.82592849587377 \tabularnewline
13 & 0.232707979333573 & 0.465415958667146 & 0.767292020666427 \tabularnewline
14 & 0.438903307459828 & 0.877806614919656 & 0.561096692540172 \tabularnewline
15 & 0.479756887037811 & 0.959513774075622 & 0.520243112962189 \tabularnewline
16 & 0.44702649200079 & 0.89405298400158 & 0.55297350799921 \tabularnewline
17 & 0.368076503456684 & 0.736153006913369 & 0.631923496543316 \tabularnewline
18 & 0.343219001787383 & 0.686438003574765 & 0.656780998212617 \tabularnewline
19 & 0.271034947850164 & 0.542069895700328 & 0.728965052149836 \tabularnewline
20 & 0.227558114784279 & 0.455116229568558 & 0.772441885215721 \tabularnewline
21 & 0.20498283068016 & 0.40996566136032 & 0.79501716931984 \tabularnewline
22 & 0.152296795155582 & 0.304593590311164 & 0.847703204844418 \tabularnewline
23 & 0.114156789886044 & 0.228313579772088 & 0.885843210113956 \tabularnewline
24 & 0.0803135502968284 & 0.160627100593657 & 0.919686449703172 \tabularnewline
25 & 0.146131716341785 & 0.292263432683570 & 0.853868283658215 \tabularnewline
26 & 0.104616831514972 & 0.209233663029945 & 0.895383168485028 \tabularnewline
27 & 0.130146159352980 & 0.260292318705959 & 0.86985384064702 \tabularnewline
28 & 0.0920021307241957 & 0.184004261448391 & 0.907997869275804 \tabularnewline
29 & 0.157453991612763 & 0.314907983225526 & 0.842546008387237 \tabularnewline
30 & 0.116490293006187 & 0.232980586012374 & 0.883509706993813 \tabularnewline
31 & 0.0826286799590133 & 0.165257359918027 & 0.917371320040987 \tabularnewline
32 & 0.999999990486445 & 1.90271103782769e-08 & 9.51355518913844e-09 \tabularnewline
33 & 0.999999963586228 & 7.28275449191597e-08 & 3.64137724595799e-08 \tabularnewline
34 & 0.999999864872038 & 2.70255924754785e-07 & 1.35127962377392e-07 \tabularnewline
35 & 0.99999959051007 & 8.18979859314991e-07 & 4.09489929657496e-07 \tabularnewline
36 & 0.999998661151374 & 2.67769725229317e-06 & 1.33884862614658e-06 \tabularnewline
37 & 0.99999567950415 & 8.64099170030567e-06 & 4.32049585015283e-06 \tabularnewline
38 & 0.999987934002366 & 2.41319952681617e-05 & 1.20659976340808e-05 \tabularnewline
39 & 0.999963726601876 & 7.25467962487549e-05 & 3.62733981243774e-05 \tabularnewline
40 & 0.999921809481005 & 0.00015638103799086 & 7.819051899543e-05 \tabularnewline
41 & 0.999892731251586 & 0.000214537496827278 & 0.000107268748413639 \tabularnewline
42 & 0.999722336208676 & 0.00055532758264759 & 0.000277663791323795 \tabularnewline
43 & 0.999245695500836 & 0.00150860899832805 & 0.000754304499164027 \tabularnewline
44 & 0.997972316073826 & 0.00405536785234797 & 0.00202768392617399 \tabularnewline
45 & 0.994999797273992 & 0.0100004054520155 & 0.00500020272600774 \tabularnewline
46 & 0.99843507259323 & 0.00312985481353982 & 0.00156492740676991 \tabularnewline
47 & 0.995468413907723 & 0.00906317218455415 & 0.00453158609227708 \tabularnewline
48 & 0.98926743953696 & 0.0214651209260818 & 0.0107325604630409 \tabularnewline
49 & 0.97592870671166 & 0.0481425865766807 & 0.0240712932883404 \tabularnewline
50 & 0.957488322230123 & 0.0850233555397548 & 0.0425116777698774 \tabularnewline
51 & 0.909143465584048 & 0.181713068831904 & 0.090856534415952 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108825&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]7[/C][C]0.00815323170708075[/C][C]0.0163064634141615[/C][C]0.99184676829292[/C][/ROW]
[ROW][C]8[/C][C]0.00191183854351187[/C][C]0.00382367708702373[/C][C]0.998088161456488[/C][/ROW]
[ROW][C]9[/C][C]0.362139761492073[/C][C]0.724279522984146[/C][C]0.637860238507927[/C][/ROW]
[ROW][C]10[/C][C]0.315480022123223[/C][C]0.630960044246446[/C][C]0.684519977876777[/C][/ROW]
[ROW][C]11[/C][C]0.210513470586382[/C][C]0.421026941172764[/C][C]0.789486529413618[/C][/ROW]
[ROW][C]12[/C][C]0.174071504126231[/C][C]0.348143008252462[/C][C]0.82592849587377[/C][/ROW]
[ROW][C]13[/C][C]0.232707979333573[/C][C]0.465415958667146[/C][C]0.767292020666427[/C][/ROW]
[ROW][C]14[/C][C]0.438903307459828[/C][C]0.877806614919656[/C][C]0.561096692540172[/C][/ROW]
[ROW][C]15[/C][C]0.479756887037811[/C][C]0.959513774075622[/C][C]0.520243112962189[/C][/ROW]
[ROW][C]16[/C][C]0.44702649200079[/C][C]0.89405298400158[/C][C]0.55297350799921[/C][/ROW]
[ROW][C]17[/C][C]0.368076503456684[/C][C]0.736153006913369[/C][C]0.631923496543316[/C][/ROW]
[ROW][C]18[/C][C]0.343219001787383[/C][C]0.686438003574765[/C][C]0.656780998212617[/C][/ROW]
[ROW][C]19[/C][C]0.271034947850164[/C][C]0.542069895700328[/C][C]0.728965052149836[/C][/ROW]
[ROW][C]20[/C][C]0.227558114784279[/C][C]0.455116229568558[/C][C]0.772441885215721[/C][/ROW]
[ROW][C]21[/C][C]0.20498283068016[/C][C]0.40996566136032[/C][C]0.79501716931984[/C][/ROW]
[ROW][C]22[/C][C]0.152296795155582[/C][C]0.304593590311164[/C][C]0.847703204844418[/C][/ROW]
[ROW][C]23[/C][C]0.114156789886044[/C][C]0.228313579772088[/C][C]0.885843210113956[/C][/ROW]
[ROW][C]24[/C][C]0.0803135502968284[/C][C]0.160627100593657[/C][C]0.919686449703172[/C][/ROW]
[ROW][C]25[/C][C]0.146131716341785[/C][C]0.292263432683570[/C][C]0.853868283658215[/C][/ROW]
[ROW][C]26[/C][C]0.104616831514972[/C][C]0.209233663029945[/C][C]0.895383168485028[/C][/ROW]
[ROW][C]27[/C][C]0.130146159352980[/C][C]0.260292318705959[/C][C]0.86985384064702[/C][/ROW]
[ROW][C]28[/C][C]0.0920021307241957[/C][C]0.184004261448391[/C][C]0.907997869275804[/C][/ROW]
[ROW][C]29[/C][C]0.157453991612763[/C][C]0.314907983225526[/C][C]0.842546008387237[/C][/ROW]
[ROW][C]30[/C][C]0.116490293006187[/C][C]0.232980586012374[/C][C]0.883509706993813[/C][/ROW]
[ROW][C]31[/C][C]0.0826286799590133[/C][C]0.165257359918027[/C][C]0.917371320040987[/C][/ROW]
[ROW][C]32[/C][C]0.999999990486445[/C][C]1.90271103782769e-08[/C][C]9.51355518913844e-09[/C][/ROW]
[ROW][C]33[/C][C]0.999999963586228[/C][C]7.28275449191597e-08[/C][C]3.64137724595799e-08[/C][/ROW]
[ROW][C]34[/C][C]0.999999864872038[/C][C]2.70255924754785e-07[/C][C]1.35127962377392e-07[/C][/ROW]
[ROW][C]35[/C][C]0.99999959051007[/C][C]8.18979859314991e-07[/C][C]4.09489929657496e-07[/C][/ROW]
[ROW][C]36[/C][C]0.999998661151374[/C][C]2.67769725229317e-06[/C][C]1.33884862614658e-06[/C][/ROW]
[ROW][C]37[/C][C]0.99999567950415[/C][C]8.64099170030567e-06[/C][C]4.32049585015283e-06[/C][/ROW]
[ROW][C]38[/C][C]0.999987934002366[/C][C]2.41319952681617e-05[/C][C]1.20659976340808e-05[/C][/ROW]
[ROW][C]39[/C][C]0.999963726601876[/C][C]7.25467962487549e-05[/C][C]3.62733981243774e-05[/C][/ROW]
[ROW][C]40[/C][C]0.999921809481005[/C][C]0.00015638103799086[/C][C]7.819051899543e-05[/C][/ROW]
[ROW][C]41[/C][C]0.999892731251586[/C][C]0.000214537496827278[/C][C]0.000107268748413639[/C][/ROW]
[ROW][C]42[/C][C]0.999722336208676[/C][C]0.00055532758264759[/C][C]0.000277663791323795[/C][/ROW]
[ROW][C]43[/C][C]0.999245695500836[/C][C]0.00150860899832805[/C][C]0.000754304499164027[/C][/ROW]
[ROW][C]44[/C][C]0.997972316073826[/C][C]0.00405536785234797[/C][C]0.00202768392617399[/C][/ROW]
[ROW][C]45[/C][C]0.994999797273992[/C][C]0.0100004054520155[/C][C]0.00500020272600774[/C][/ROW]
[ROW][C]46[/C][C]0.99843507259323[/C][C]0.00312985481353982[/C][C]0.00156492740676991[/C][/ROW]
[ROW][C]47[/C][C]0.995468413907723[/C][C]0.00906317218455415[/C][C]0.00453158609227708[/C][/ROW]
[ROW][C]48[/C][C]0.98926743953696[/C][C]0.0214651209260818[/C][C]0.0107325604630409[/C][/ROW]
[ROW][C]49[/C][C]0.97592870671166[/C][C]0.0481425865766807[/C][C]0.0240712932883404[/C][/ROW]
[ROW][C]50[/C][C]0.957488322230123[/C][C]0.0850233555397548[/C][C]0.0425116777698774[/C][/ROW]
[ROW][C]51[/C][C]0.909143465584048[/C][C]0.181713068831904[/C][C]0.090856534415952[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108825&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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
70.008153231707080750.01630646341416150.99184676829292
80.001911838543511870.003823677087023730.998088161456488
90.3621397614920730.7242795229841460.637860238507927
100.3154800221232230.6309600442464460.684519977876777
110.2105134705863820.4210269411727640.789486529413618
120.1740715041262310.3481430082524620.82592849587377
130.2327079793335730.4654159586671460.767292020666427
140.4389033074598280.8778066149196560.561096692540172
150.4797568870378110.9595137740756220.520243112962189
160.447026492000790.894052984001580.55297350799921
170.3680765034566840.7361530069133690.631923496543316
180.3432190017873830.6864380035747650.656780998212617
190.2710349478501640.5420698957003280.728965052149836
200.2275581147842790.4551162295685580.772441885215721
210.204982830680160.409965661360320.79501716931984
220.1522967951555820.3045935903111640.847703204844418
230.1141567898860440.2283135797720880.885843210113956
240.08031355029682840.1606271005936570.919686449703172
250.1461317163417850.2922634326835700.853868283658215
260.1046168315149720.2092336630299450.895383168485028
270.1301461593529800.2602923187059590.86985384064702
280.09200213072419570.1840042614483910.907997869275804
290.1574539916127630.3149079832255260.842546008387237
300.1164902930061870.2329805860123740.883509706993813
310.08262867995901330.1652573599180270.917371320040987
320.9999999904864451.90271103782769e-089.51355518913844e-09
330.9999999635862287.28275449191597e-083.64137724595799e-08
340.9999998648720382.70255924754785e-071.35127962377392e-07
350.999999590510078.18979859314991e-074.09489929657496e-07
360.9999986611513742.67769725229317e-061.33884862614658e-06
370.999995679504158.64099170030567e-064.32049585015283e-06
380.9999879340023662.41319952681617e-051.20659976340808e-05
390.9999637266018767.25467962487549e-053.62733981243774e-05
400.9999218094810050.000156381037990867.819051899543e-05
410.9998927312515860.0002145374968272780.000107268748413639
420.9997223362086760.000555327582647590.000277663791323795
430.9992456955008360.001508608998328050.000754304499164027
440.9979723160738260.004055367852347970.00202768392617399
450.9949997972739920.01000040545201550.00500020272600774
460.998435072593230.003129854813539820.00156492740676991
470.9954684139077230.009063172184554150.00453158609227708
480.989267439536960.02146512092608180.0107325604630409
490.975928706711660.04814258657668070.0240712932883404
500.9574883222301230.08502335553975480.0425116777698774
510.9091434655840480.1817130688319040.090856534415952







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.355555555555556NOK
5% type I error level200.444444444444444NOK
10% type I error level210.466666666666667NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108825&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 level160.355555555555556NOK
5% type I error level200.444444444444444NOK
10% type I error level210.466666666666667NOK



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