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 computationFri, 18 Dec 2009 05:20:07 -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/18/t1261138871z71a1e52j7p966i.htm/, Retrieved Sat, 27 Apr 2024 05:44:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69274, Retrieved Sat, 27 Apr 2024 05:44:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact108
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [SHW WS7] [2009-11-20 11:20:18] [253127ae8da904b75450fbd69fe4eb21]
-    D        [Multiple Regression] [SHW Paper] [2009-12-18 12:20:07] [b7e46d23597387652ca7420fdeb9acca] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,9	0
8,8	0
8,3	0
7,5	0
7,2	0
7,4	0
8,8	0
9,3	0
9,3	0
8,7	0
8,2	0
8,3	0
8,5	0
8,6	0
8,5	0
8,2	0
8,1	0
7,9	0
8,6	0
8,7	0
8,7	0
8,5	0
8,4	0
8,5	0
8,7	0
8,7	0
8,6	0
8,5	0
8,3	0
8	0
8,2	0
8,1	0
8,1	0
8	0
7,9	0
7,9	0
8	0
8	0
7,9	0
8	0
7,7	0
7,2	0
7,5	0
7,3	0
7	0
7	0
7	0
7,2	0
7,3	1
7,1	1
6,8	1
6,4	1
6,1	1
6,5	1
7,7	1
7,9	1
7,5	1
6,9	1
6,6	1
6,9	1




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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 7.99291666666666 -1.16458333333333X[t] + 0.519999999999995M1[t] + 0.48M2[t] + 0.26M3[t] -0.0400000000000002M4[t] -0.280000000000000M5[t] -0.36M6[t] + 0.4M7[t] + 0.5M8[t] + 0.36M9[t] + 0.0599999999999997M10[t] -0.140000000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  7.99291666666666 -1.16458333333333X[t] +  0.519999999999995M1[t] +  0.48M2[t] +  0.26M3[t] -0.0400000000000002M4[t] -0.280000000000000M5[t] -0.36M6[t] +  0.4M7[t] +  0.5M8[t] +  0.36M9[t] +  0.0599999999999997M10[t] -0.140000000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69274&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  7.99291666666666 -1.16458333333333X[t] +  0.519999999999995M1[t] +  0.48M2[t] +  0.26M3[t] -0.0400000000000002M4[t] -0.280000000000000M5[t] -0.36M6[t] +  0.4M7[t] +  0.5M8[t] +  0.36M9[t] +  0.0599999999999997M10[t] -0.140000000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69274&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 7.99291666666666 -1.16458333333333X[t] + 0.519999999999995M1[t] + 0.48M2[t] + 0.26M3[t] -0.0400000000000002M4[t] -0.280000000000000M5[t] -0.36M6[t] + 0.4M7[t] + 0.5M8[t] + 0.36M9[t] + 0.0599999999999997M10[t] -0.140000000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7.992916666666660.24804832.223300
X-1.164583333333330.177177-6.57300
M10.5199999999999950.3471951.49770.1408930.070447
M20.480.3471951.38250.173350.086675
M30.260.3471950.74890.4576740.228837
M4-0.04000000000000020.347195-0.11520.908770.454385
M5-0.2800000000000000.347195-0.80650.4240380.212019
M6-0.360.347195-1.03690.3050970.152548
M70.40.3471951.15210.255110.127555
M80.50.3471951.44010.1564640.078232
M90.360.3471951.03690.3050970.152548
M100.05999999999999970.3471950.17280.863540.43177
M11-0.1400000000000000.347195-0.40320.6886060.344303

\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) & 7.99291666666666 & 0.248048 & 32.2233 & 0 & 0 \tabularnewline
X & -1.16458333333333 & 0.177177 & -6.573 & 0 & 0 \tabularnewline
M1 & 0.519999999999995 & 0.347195 & 1.4977 & 0.140893 & 0.070447 \tabularnewline
M2 & 0.48 & 0.347195 & 1.3825 & 0.17335 & 0.086675 \tabularnewline
M3 & 0.26 & 0.347195 & 0.7489 & 0.457674 & 0.228837 \tabularnewline
M4 & -0.0400000000000002 & 0.347195 & -0.1152 & 0.90877 & 0.454385 \tabularnewline
M5 & -0.280000000000000 & 0.347195 & -0.8065 & 0.424038 & 0.212019 \tabularnewline
M6 & -0.36 & 0.347195 & -1.0369 & 0.305097 & 0.152548 \tabularnewline
M7 & 0.4 & 0.347195 & 1.1521 & 0.25511 & 0.127555 \tabularnewline
M8 & 0.5 & 0.347195 & 1.4401 & 0.156464 & 0.078232 \tabularnewline
M9 & 0.36 & 0.347195 & 1.0369 & 0.305097 & 0.152548 \tabularnewline
M10 & 0.0599999999999997 & 0.347195 & 0.1728 & 0.86354 & 0.43177 \tabularnewline
M11 & -0.140000000000000 & 0.347195 & -0.4032 & 0.688606 & 0.344303 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69274&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]7.99291666666666[/C][C]0.248048[/C][C]32.2233[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1.16458333333333[/C][C]0.177177[/C][C]-6.573[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.519999999999995[/C][C]0.347195[/C][C]1.4977[/C][C]0.140893[/C][C]0.070447[/C][/ROW]
[ROW][C]M2[/C][C]0.48[/C][C]0.347195[/C][C]1.3825[/C][C]0.17335[/C][C]0.086675[/C][/ROW]
[ROW][C]M3[/C][C]0.26[/C][C]0.347195[/C][C]0.7489[/C][C]0.457674[/C][C]0.228837[/C][/ROW]
[ROW][C]M4[/C][C]-0.0400000000000002[/C][C]0.347195[/C][C]-0.1152[/C][C]0.90877[/C][C]0.454385[/C][/ROW]
[ROW][C]M5[/C][C]-0.280000000000000[/C][C]0.347195[/C][C]-0.8065[/C][C]0.424038[/C][C]0.212019[/C][/ROW]
[ROW][C]M6[/C][C]-0.36[/C][C]0.347195[/C][C]-1.0369[/C][C]0.305097[/C][C]0.152548[/C][/ROW]
[ROW][C]M7[/C][C]0.4[/C][C]0.347195[/C][C]1.1521[/C][C]0.25511[/C][C]0.127555[/C][/ROW]
[ROW][C]M8[/C][C]0.5[/C][C]0.347195[/C][C]1.4401[/C][C]0.156464[/C][C]0.078232[/C][/ROW]
[ROW][C]M9[/C][C]0.36[/C][C]0.347195[/C][C]1.0369[/C][C]0.305097[/C][C]0.152548[/C][/ROW]
[ROW][C]M10[/C][C]0.0599999999999997[/C][C]0.347195[/C][C]0.1728[/C][C]0.86354[/C][C]0.43177[/C][/ROW]
[ROW][C]M11[/C][C]-0.140000000000000[/C][C]0.347195[/C][C]-0.4032[/C][C]0.688606[/C][C]0.344303[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69274&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69274&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)7.992916666666660.24804832.223300
X-1.164583333333330.177177-6.57300
M10.5199999999999950.3471951.49770.1408930.070447
M20.480.3471951.38250.173350.086675
M30.260.3471950.74890.4576740.228837
M4-0.04000000000000020.347195-0.11520.908770.454385
M5-0.2800000000000000.347195-0.80650.4240380.212019
M6-0.360.347195-1.03690.3050970.152548
M70.40.3471951.15210.255110.127555
M80.50.3471951.44010.1564640.078232
M90.360.3471951.03690.3050970.152548
M100.05999999999999970.3471950.17280.863540.43177
M11-0.1400000000000000.347195-0.40320.6886060.344303







Multiple Linear Regression - Regression Statistics
Multiple R0.751988834719333
R-squared0.56548720754254
Adjusted R-squared0.454547771170422
F-TEST (value)5.09726050568492
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value2.29121731929460e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.54896340096844
Sum Squared Residuals14.1639583333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.751988834719333 \tabularnewline
R-squared & 0.56548720754254 \tabularnewline
Adjusted R-squared & 0.454547771170422 \tabularnewline
F-TEST (value) & 5.09726050568492 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 2.29121731929460e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.54896340096844 \tabularnewline
Sum Squared Residuals & 14.1639583333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69274&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.751988834719333[/C][/ROW]
[ROW][C]R-squared[/C][C]0.56548720754254[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.454547771170422[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.09726050568492[/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]2.29121731929460e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.54896340096844[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]14.1639583333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69274&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69274&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.751988834719333
R-squared0.56548720754254
Adjusted R-squared0.454547771170422
F-TEST (value)5.09726050568492
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value2.29121731929460e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.54896340096844
Sum Squared Residuals14.1639583333333







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.98.512916666666690.387083333333313
28.88.472916666666660.327083333333336
38.38.252916666666670.0470833333333337
47.57.95291666666667-0.452916666666666
57.27.71291666666667-0.512916666666667
67.47.63291666666667-0.232916666666666
78.88.392916666666670.407083333333334
89.38.492916666666670.807083333333335
99.38.352916666666670.947083333333334
108.78.052916666666670.647083333333333
118.27.852916666666670.347083333333333
128.37.992916666666670.307083333333334
138.58.51291666666666-0.0129166666666613
148.68.472916666666670.127083333333333
158.58.252916666666670.247083333333333
168.27.952916666666670.247083333333333
178.17.712916666666670.387083333333333
187.97.632916666666670.267083333333334
198.68.392916666666670.207083333333333
208.78.492916666666670.207083333333333
218.78.352916666666670.347083333333333
228.58.052916666666670.447083333333333
238.47.852916666666670.547083333333334
248.57.992916666666670.507083333333333
258.78.512916666666660.187083333333338
268.78.472916666666670.227083333333333
278.68.252916666666670.347083333333333
288.57.952916666666670.547083333333334
298.37.712916666666670.587083333333334
3087.632916666666670.367083333333333
318.28.39291666666667-0.192916666666667
328.18.49291666666667-0.392916666666667
338.18.35291666666667-0.252916666666667
3488.05291666666667-0.0529166666666665
357.97.852916666666670.0470833333333337
367.97.99291666666667-0.0929166666666665
3788.51291666666666-0.512916666666661
3888.47291666666667-0.472916666666667
397.98.25291666666667-0.352916666666667
4087.952916666666670.0470833333333335
417.77.71291666666667-0.0129166666666668
427.27.63291666666667-0.432916666666667
437.58.39291666666667-0.892916666666666
447.38.49291666666667-1.19291666666667
4578.35291666666667-1.35291666666667
4678.05291666666667-1.05291666666667
4777.85291666666667-0.852916666666666
487.27.99291666666667-0.792916666666666
497.37.34833333333333-0.0483333333333285
507.17.30833333333333-0.208333333333334
516.87.08833333333333-0.288333333333334
526.46.78833333333333-0.388333333333333
536.16.54833333333333-0.448333333333335
546.56.468333333333330.0316666666666660
557.77.228333333333330.471666666666667
567.97.328333333333330.571666666666667
577.57.188333333333330.311666666666666
586.96.888333333333330.0116666666666667
596.66.68833333333333-0.0883333333333341
606.96.828333333333330.0716666666666664

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 8.51291666666669 & 0.387083333333313 \tabularnewline
2 & 8.8 & 8.47291666666666 & 0.327083333333336 \tabularnewline
3 & 8.3 & 8.25291666666667 & 0.0470833333333337 \tabularnewline
4 & 7.5 & 7.95291666666667 & -0.452916666666666 \tabularnewline
5 & 7.2 & 7.71291666666667 & -0.512916666666667 \tabularnewline
6 & 7.4 & 7.63291666666667 & -0.232916666666666 \tabularnewline
7 & 8.8 & 8.39291666666667 & 0.407083333333334 \tabularnewline
8 & 9.3 & 8.49291666666667 & 0.807083333333335 \tabularnewline
9 & 9.3 & 8.35291666666667 & 0.947083333333334 \tabularnewline
10 & 8.7 & 8.05291666666667 & 0.647083333333333 \tabularnewline
11 & 8.2 & 7.85291666666667 & 0.347083333333333 \tabularnewline
12 & 8.3 & 7.99291666666667 & 0.307083333333334 \tabularnewline
13 & 8.5 & 8.51291666666666 & -0.0129166666666613 \tabularnewline
14 & 8.6 & 8.47291666666667 & 0.127083333333333 \tabularnewline
15 & 8.5 & 8.25291666666667 & 0.247083333333333 \tabularnewline
16 & 8.2 & 7.95291666666667 & 0.247083333333333 \tabularnewline
17 & 8.1 & 7.71291666666667 & 0.387083333333333 \tabularnewline
18 & 7.9 & 7.63291666666667 & 0.267083333333334 \tabularnewline
19 & 8.6 & 8.39291666666667 & 0.207083333333333 \tabularnewline
20 & 8.7 & 8.49291666666667 & 0.207083333333333 \tabularnewline
21 & 8.7 & 8.35291666666667 & 0.347083333333333 \tabularnewline
22 & 8.5 & 8.05291666666667 & 0.447083333333333 \tabularnewline
23 & 8.4 & 7.85291666666667 & 0.547083333333334 \tabularnewline
24 & 8.5 & 7.99291666666667 & 0.507083333333333 \tabularnewline
25 & 8.7 & 8.51291666666666 & 0.187083333333338 \tabularnewline
26 & 8.7 & 8.47291666666667 & 0.227083333333333 \tabularnewline
27 & 8.6 & 8.25291666666667 & 0.347083333333333 \tabularnewline
28 & 8.5 & 7.95291666666667 & 0.547083333333334 \tabularnewline
29 & 8.3 & 7.71291666666667 & 0.587083333333334 \tabularnewline
30 & 8 & 7.63291666666667 & 0.367083333333333 \tabularnewline
31 & 8.2 & 8.39291666666667 & -0.192916666666667 \tabularnewline
32 & 8.1 & 8.49291666666667 & -0.392916666666667 \tabularnewline
33 & 8.1 & 8.35291666666667 & -0.252916666666667 \tabularnewline
34 & 8 & 8.05291666666667 & -0.0529166666666665 \tabularnewline
35 & 7.9 & 7.85291666666667 & 0.0470833333333337 \tabularnewline
36 & 7.9 & 7.99291666666667 & -0.0929166666666665 \tabularnewline
37 & 8 & 8.51291666666666 & -0.512916666666661 \tabularnewline
38 & 8 & 8.47291666666667 & -0.472916666666667 \tabularnewline
39 & 7.9 & 8.25291666666667 & -0.352916666666667 \tabularnewline
40 & 8 & 7.95291666666667 & 0.0470833333333335 \tabularnewline
41 & 7.7 & 7.71291666666667 & -0.0129166666666668 \tabularnewline
42 & 7.2 & 7.63291666666667 & -0.432916666666667 \tabularnewline
43 & 7.5 & 8.39291666666667 & -0.892916666666666 \tabularnewline
44 & 7.3 & 8.49291666666667 & -1.19291666666667 \tabularnewline
45 & 7 & 8.35291666666667 & -1.35291666666667 \tabularnewline
46 & 7 & 8.05291666666667 & -1.05291666666667 \tabularnewline
47 & 7 & 7.85291666666667 & -0.852916666666666 \tabularnewline
48 & 7.2 & 7.99291666666667 & -0.792916666666666 \tabularnewline
49 & 7.3 & 7.34833333333333 & -0.0483333333333285 \tabularnewline
50 & 7.1 & 7.30833333333333 & -0.208333333333334 \tabularnewline
51 & 6.8 & 7.08833333333333 & -0.288333333333334 \tabularnewline
52 & 6.4 & 6.78833333333333 & -0.388333333333333 \tabularnewline
53 & 6.1 & 6.54833333333333 & -0.448333333333335 \tabularnewline
54 & 6.5 & 6.46833333333333 & 0.0316666666666660 \tabularnewline
55 & 7.7 & 7.22833333333333 & 0.471666666666667 \tabularnewline
56 & 7.9 & 7.32833333333333 & 0.571666666666667 \tabularnewline
57 & 7.5 & 7.18833333333333 & 0.311666666666666 \tabularnewline
58 & 6.9 & 6.88833333333333 & 0.0116666666666667 \tabularnewline
59 & 6.6 & 6.68833333333333 & -0.0883333333333341 \tabularnewline
60 & 6.9 & 6.82833333333333 & 0.0716666666666664 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69274&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]8.9[/C][C]8.51291666666669[/C][C]0.387083333333313[/C][/ROW]
[ROW][C]2[/C][C]8.8[/C][C]8.47291666666666[/C][C]0.327083333333336[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.25291666666667[/C][C]0.0470833333333337[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]7.95291666666667[/C][C]-0.452916666666666[/C][/ROW]
[ROW][C]5[/C][C]7.2[/C][C]7.71291666666667[/C][C]-0.512916666666667[/C][/ROW]
[ROW][C]6[/C][C]7.4[/C][C]7.63291666666667[/C][C]-0.232916666666666[/C][/ROW]
[ROW][C]7[/C][C]8.8[/C][C]8.39291666666667[/C][C]0.407083333333334[/C][/ROW]
[ROW][C]8[/C][C]9.3[/C][C]8.49291666666667[/C][C]0.807083333333335[/C][/ROW]
[ROW][C]9[/C][C]9.3[/C][C]8.35291666666667[/C][C]0.947083333333334[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]8.05291666666667[/C][C]0.647083333333333[/C][/ROW]
[ROW][C]11[/C][C]8.2[/C][C]7.85291666666667[/C][C]0.347083333333333[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]7.99291666666667[/C][C]0.307083333333334[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.51291666666666[/C][C]-0.0129166666666613[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.47291666666667[/C][C]0.127083333333333[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.25291666666667[/C][C]0.247083333333333[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]7.95291666666667[/C][C]0.247083333333333[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.71291666666667[/C][C]0.387083333333333[/C][/ROW]
[ROW][C]18[/C][C]7.9[/C][C]7.63291666666667[/C][C]0.267083333333334[/C][/ROW]
[ROW][C]19[/C][C]8.6[/C][C]8.39291666666667[/C][C]0.207083333333333[/C][/ROW]
[ROW][C]20[/C][C]8.7[/C][C]8.49291666666667[/C][C]0.207083333333333[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.35291666666667[/C][C]0.347083333333333[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.05291666666667[/C][C]0.447083333333333[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]7.85291666666667[/C][C]0.547083333333334[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]7.99291666666667[/C][C]0.507083333333333[/C][/ROW]
[ROW][C]25[/C][C]8.7[/C][C]8.51291666666666[/C][C]0.187083333333338[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.47291666666667[/C][C]0.227083333333333[/C][/ROW]
[ROW][C]27[/C][C]8.6[/C][C]8.25291666666667[/C][C]0.347083333333333[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]7.95291666666667[/C][C]0.547083333333334[/C][/ROW]
[ROW][C]29[/C][C]8.3[/C][C]7.71291666666667[/C][C]0.587083333333334[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.63291666666667[/C][C]0.367083333333333[/C][/ROW]
[ROW][C]31[/C][C]8.2[/C][C]8.39291666666667[/C][C]-0.192916666666667[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]8.49291666666667[/C][C]-0.392916666666667[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.35291666666667[/C][C]-0.252916666666667[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.05291666666667[/C][C]-0.0529166666666665[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.85291666666667[/C][C]0.0470833333333337[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.99291666666667[/C][C]-0.0929166666666665[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]8.51291666666666[/C][C]-0.512916666666661[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]8.47291666666667[/C][C]-0.472916666666667[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.25291666666667[/C][C]-0.352916666666667[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.95291666666667[/C][C]0.0470833333333335[/C][/ROW]
[ROW][C]41[/C][C]7.7[/C][C]7.71291666666667[/C][C]-0.0129166666666668[/C][/ROW]
[ROW][C]42[/C][C]7.2[/C][C]7.63291666666667[/C][C]-0.432916666666667[/C][/ROW]
[ROW][C]43[/C][C]7.5[/C][C]8.39291666666667[/C][C]-0.892916666666666[/C][/ROW]
[ROW][C]44[/C][C]7.3[/C][C]8.49291666666667[/C][C]-1.19291666666667[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]8.35291666666667[/C][C]-1.35291666666667[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]8.05291666666667[/C][C]-1.05291666666667[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]7.85291666666667[/C][C]-0.852916666666666[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.99291666666667[/C][C]-0.792916666666666[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.34833333333333[/C][C]-0.0483333333333285[/C][/ROW]
[ROW][C]50[/C][C]7.1[/C][C]7.30833333333333[/C][C]-0.208333333333334[/C][/ROW]
[ROW][C]51[/C][C]6.8[/C][C]7.08833333333333[/C][C]-0.288333333333334[/C][/ROW]
[ROW][C]52[/C][C]6.4[/C][C]6.78833333333333[/C][C]-0.388333333333333[/C][/ROW]
[ROW][C]53[/C][C]6.1[/C][C]6.54833333333333[/C][C]-0.448333333333335[/C][/ROW]
[ROW][C]54[/C][C]6.5[/C][C]6.46833333333333[/C][C]0.0316666666666660[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.22833333333333[/C][C]0.471666666666667[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.32833333333333[/C][C]0.571666666666667[/C][/ROW]
[ROW][C]57[/C][C]7.5[/C][C]7.18833333333333[/C][C]0.311666666666666[/C][/ROW]
[ROW][C]58[/C][C]6.9[/C][C]6.88833333333333[/C][C]0.0116666666666667[/C][/ROW]
[ROW][C]59[/C][C]6.6[/C][C]6.68833333333333[/C][C]-0.0883333333333341[/C][/ROW]
[ROW][C]60[/C][C]6.9[/C][C]6.82833333333333[/C][C]0.0716666666666664[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69274&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69274&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
18.98.512916666666690.387083333333313
28.88.472916666666660.327083333333336
38.38.252916666666670.0470833333333337
47.57.95291666666667-0.452916666666666
57.27.71291666666667-0.512916666666667
67.47.63291666666667-0.232916666666666
78.88.392916666666670.407083333333334
89.38.492916666666670.807083333333335
99.38.352916666666670.947083333333334
108.78.052916666666670.647083333333333
118.27.852916666666670.347083333333333
128.37.992916666666670.307083333333334
138.58.51291666666666-0.0129166666666613
148.68.472916666666670.127083333333333
158.58.252916666666670.247083333333333
168.27.952916666666670.247083333333333
178.17.712916666666670.387083333333333
187.97.632916666666670.267083333333334
198.68.392916666666670.207083333333333
208.78.492916666666670.207083333333333
218.78.352916666666670.347083333333333
228.58.052916666666670.447083333333333
238.47.852916666666670.547083333333334
248.57.992916666666670.507083333333333
258.78.512916666666660.187083333333338
268.78.472916666666670.227083333333333
278.68.252916666666670.347083333333333
288.57.952916666666670.547083333333334
298.37.712916666666670.587083333333334
3087.632916666666670.367083333333333
318.28.39291666666667-0.192916666666667
328.18.49291666666667-0.392916666666667
338.18.35291666666667-0.252916666666667
3488.05291666666667-0.0529166666666665
357.97.852916666666670.0470833333333337
367.97.99291666666667-0.0929166666666665
3788.51291666666666-0.512916666666661
3888.47291666666667-0.472916666666667
397.98.25291666666667-0.352916666666667
4087.952916666666670.0470833333333335
417.77.71291666666667-0.0129166666666668
427.27.63291666666667-0.432916666666667
437.58.39291666666667-0.892916666666666
447.38.49291666666667-1.19291666666667
4578.35291666666667-1.35291666666667
4678.05291666666667-1.05291666666667
4777.85291666666667-0.852916666666666
487.27.99291666666667-0.792916666666666
497.37.34833333333333-0.0483333333333285
507.17.30833333333333-0.208333333333334
516.87.08833333333333-0.288333333333334
526.46.78833333333333-0.388333333333333
536.16.54833333333333-0.448333333333335
546.56.468333333333330.0316666666666660
557.77.228333333333330.471666666666667
567.97.328333333333330.571666666666667
577.57.188333333333330.311666666666666
586.96.888333333333330.0116666666666667
596.66.68833333333333-0.0883333333333341
606.96.828333333333330.0716666666666664







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2309887240456840.4619774480913670.769011275954316
170.3250252008949540.6500504017899090.674974799105046
180.2492256448618560.4984512897237110.750774355138145
190.1571717581081600.3143435162163210.84282824189184
200.1399265999703150.2798531999406300.860073400029685
210.1339321576319750.2678643152639500.866067842368025
220.09790363916487050.1958072783297410.902096360835130
230.07449635808123620.1489927161624720.925503641918764
240.05660350625282140.1132070125056430.943396493747179
250.03546711470632440.07093422941264880.964532885293676
260.02321241723999190.04642483447998380.976787582760008
270.01811003950827650.0362200790165530.981889960491724
280.03272500227802790.06545000455605580.967274997721972
290.0626467152970930.1252934305941860.937353284702907
300.0646222742521620.1292445485043240.935377725747838
310.05612956748399270.1122591349679850.943870432516007
320.08312515632309060.1662503126461810.91687484367691
330.1201404305059430.2402808610118860.879859569494057
340.1392507613439170.2785015226878330.860749238656083
350.1555064504349330.3110129008698660.844493549565067
360.1512141943422250.302428388684450.848785805657775
370.1363022784703960.2726045569407920.863697721529604
380.1272893715587630.2545787431175270.872710628441237
390.1240848191120040.2481696382240080.875915180887996
400.2289468390156920.4578936780313840.771053160984308
410.6650675845031590.6698648309936830.334932415496841
420.771550280312090.4568994393758210.228449719687910
430.7003919206595830.5992161586808340.299608079340417
440.7922066642339660.4155866715320680.207793335766034

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.230988724045684 & 0.461977448091367 & 0.769011275954316 \tabularnewline
17 & 0.325025200894954 & 0.650050401789909 & 0.674974799105046 \tabularnewline
18 & 0.249225644861856 & 0.498451289723711 & 0.750774355138145 \tabularnewline
19 & 0.157171758108160 & 0.314343516216321 & 0.84282824189184 \tabularnewline
20 & 0.139926599970315 & 0.279853199940630 & 0.860073400029685 \tabularnewline
21 & 0.133932157631975 & 0.267864315263950 & 0.866067842368025 \tabularnewline
22 & 0.0979036391648705 & 0.195807278329741 & 0.902096360835130 \tabularnewline
23 & 0.0744963580812362 & 0.148992716162472 & 0.925503641918764 \tabularnewline
24 & 0.0566035062528214 & 0.113207012505643 & 0.943396493747179 \tabularnewline
25 & 0.0354671147063244 & 0.0709342294126488 & 0.964532885293676 \tabularnewline
26 & 0.0232124172399919 & 0.0464248344799838 & 0.976787582760008 \tabularnewline
27 & 0.0181100395082765 & 0.036220079016553 & 0.981889960491724 \tabularnewline
28 & 0.0327250022780279 & 0.0654500045560558 & 0.967274997721972 \tabularnewline
29 & 0.062646715297093 & 0.125293430594186 & 0.937353284702907 \tabularnewline
30 & 0.064622274252162 & 0.129244548504324 & 0.935377725747838 \tabularnewline
31 & 0.0561295674839927 & 0.112259134967985 & 0.943870432516007 \tabularnewline
32 & 0.0831251563230906 & 0.166250312646181 & 0.91687484367691 \tabularnewline
33 & 0.120140430505943 & 0.240280861011886 & 0.879859569494057 \tabularnewline
34 & 0.139250761343917 & 0.278501522687833 & 0.860749238656083 \tabularnewline
35 & 0.155506450434933 & 0.311012900869866 & 0.844493549565067 \tabularnewline
36 & 0.151214194342225 & 0.30242838868445 & 0.848785805657775 \tabularnewline
37 & 0.136302278470396 & 0.272604556940792 & 0.863697721529604 \tabularnewline
38 & 0.127289371558763 & 0.254578743117527 & 0.872710628441237 \tabularnewline
39 & 0.124084819112004 & 0.248169638224008 & 0.875915180887996 \tabularnewline
40 & 0.228946839015692 & 0.457893678031384 & 0.771053160984308 \tabularnewline
41 & 0.665067584503159 & 0.669864830993683 & 0.334932415496841 \tabularnewline
42 & 0.77155028031209 & 0.456899439375821 & 0.228449719687910 \tabularnewline
43 & 0.700391920659583 & 0.599216158680834 & 0.299608079340417 \tabularnewline
44 & 0.792206664233966 & 0.415586671532068 & 0.207793335766034 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69274&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.230988724045684[/C][C]0.461977448091367[/C][C]0.769011275954316[/C][/ROW]
[ROW][C]17[/C][C]0.325025200894954[/C][C]0.650050401789909[/C][C]0.674974799105046[/C][/ROW]
[ROW][C]18[/C][C]0.249225644861856[/C][C]0.498451289723711[/C][C]0.750774355138145[/C][/ROW]
[ROW][C]19[/C][C]0.157171758108160[/C][C]0.314343516216321[/C][C]0.84282824189184[/C][/ROW]
[ROW][C]20[/C][C]0.139926599970315[/C][C]0.279853199940630[/C][C]0.860073400029685[/C][/ROW]
[ROW][C]21[/C][C]0.133932157631975[/C][C]0.267864315263950[/C][C]0.866067842368025[/C][/ROW]
[ROW][C]22[/C][C]0.0979036391648705[/C][C]0.195807278329741[/C][C]0.902096360835130[/C][/ROW]
[ROW][C]23[/C][C]0.0744963580812362[/C][C]0.148992716162472[/C][C]0.925503641918764[/C][/ROW]
[ROW][C]24[/C][C]0.0566035062528214[/C][C]0.113207012505643[/C][C]0.943396493747179[/C][/ROW]
[ROW][C]25[/C][C]0.0354671147063244[/C][C]0.0709342294126488[/C][C]0.964532885293676[/C][/ROW]
[ROW][C]26[/C][C]0.0232124172399919[/C][C]0.0464248344799838[/C][C]0.976787582760008[/C][/ROW]
[ROW][C]27[/C][C]0.0181100395082765[/C][C]0.036220079016553[/C][C]0.981889960491724[/C][/ROW]
[ROW][C]28[/C][C]0.0327250022780279[/C][C]0.0654500045560558[/C][C]0.967274997721972[/C][/ROW]
[ROW][C]29[/C][C]0.062646715297093[/C][C]0.125293430594186[/C][C]0.937353284702907[/C][/ROW]
[ROW][C]30[/C][C]0.064622274252162[/C][C]0.129244548504324[/C][C]0.935377725747838[/C][/ROW]
[ROW][C]31[/C][C]0.0561295674839927[/C][C]0.112259134967985[/C][C]0.943870432516007[/C][/ROW]
[ROW][C]32[/C][C]0.0831251563230906[/C][C]0.166250312646181[/C][C]0.91687484367691[/C][/ROW]
[ROW][C]33[/C][C]0.120140430505943[/C][C]0.240280861011886[/C][C]0.879859569494057[/C][/ROW]
[ROW][C]34[/C][C]0.139250761343917[/C][C]0.278501522687833[/C][C]0.860749238656083[/C][/ROW]
[ROW][C]35[/C][C]0.155506450434933[/C][C]0.311012900869866[/C][C]0.844493549565067[/C][/ROW]
[ROW][C]36[/C][C]0.151214194342225[/C][C]0.30242838868445[/C][C]0.848785805657775[/C][/ROW]
[ROW][C]37[/C][C]0.136302278470396[/C][C]0.272604556940792[/C][C]0.863697721529604[/C][/ROW]
[ROW][C]38[/C][C]0.127289371558763[/C][C]0.254578743117527[/C][C]0.872710628441237[/C][/ROW]
[ROW][C]39[/C][C]0.124084819112004[/C][C]0.248169638224008[/C][C]0.875915180887996[/C][/ROW]
[ROW][C]40[/C][C]0.228946839015692[/C][C]0.457893678031384[/C][C]0.771053160984308[/C][/ROW]
[ROW][C]41[/C][C]0.665067584503159[/C][C]0.669864830993683[/C][C]0.334932415496841[/C][/ROW]
[ROW][C]42[/C][C]0.77155028031209[/C][C]0.456899439375821[/C][C]0.228449719687910[/C][/ROW]
[ROW][C]43[/C][C]0.700391920659583[/C][C]0.599216158680834[/C][C]0.299608079340417[/C][/ROW]
[ROW][C]44[/C][C]0.792206664233966[/C][C]0.415586671532068[/C][C]0.207793335766034[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69274&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69274&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.2309887240456840.4619774480913670.769011275954316
170.3250252008949540.6500504017899090.674974799105046
180.2492256448618560.4984512897237110.750774355138145
190.1571717581081600.3143435162163210.84282824189184
200.1399265999703150.2798531999406300.860073400029685
210.1339321576319750.2678643152639500.866067842368025
220.09790363916487050.1958072783297410.902096360835130
230.07449635808123620.1489927161624720.925503641918764
240.05660350625282140.1132070125056430.943396493747179
250.03546711470632440.07093422941264880.964532885293676
260.02321241723999190.04642483447998380.976787582760008
270.01811003950827650.0362200790165530.981889960491724
280.03272500227802790.06545000455605580.967274997721972
290.0626467152970930.1252934305941860.937353284702907
300.0646222742521620.1292445485043240.935377725747838
310.05612956748399270.1122591349679850.943870432516007
320.08312515632309060.1662503126461810.91687484367691
330.1201404305059430.2402808610118860.879859569494057
340.1392507613439170.2785015226878330.860749238656083
350.1555064504349330.3110129008698660.844493549565067
360.1512141943422250.302428388684450.848785805657775
370.1363022784703960.2726045569407920.863697721529604
380.1272893715587630.2545787431175270.872710628441237
390.1240848191120040.2481696382240080.875915180887996
400.2289468390156920.4578936780313840.771053160984308
410.6650675845031590.6698648309936830.334932415496841
420.771550280312090.4568994393758210.228449719687910
430.7003919206595830.5992161586808340.299608079340417
440.7922066642339660.4155866715320680.207793335766034







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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