Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 21 Nov 2009 03:11:45 -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/Nov/21/t1258798399y1ya9dmn1duxl99.htm/, Retrieved Sat, 27 Apr 2024 17:19:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58522, Retrieved Sat, 27 Apr 2024 17:19:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact178
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [multiple regression] [2009-11-21 10:11:45] [21abcd6b6f55e53f03dbc7aec5059429] [Current]
Feedback Forum

Post a new message
Dataseries X:
10,9 0 
10 0
9,2 0
9,2 0
9,5 0
9,6  0
9,5 0
9,1 0
8,9 0
9 0
10,1 0
10,3 0
10,2 0
9,6 0
9,2 0
9,3 0
9,4 0
9,4 0
9,2 0
9 0
9 0
9 0
9,8 0
10 0
9,8 0
9,3 0
9 0
9 0
9,1 0
9,1 0
9,1 0
9,2 0
8,8 0
8,3 0
8,4 0
8,1 0
7,7 1
7,9 1
7,9 1
8 1
7,9 1
7,6 1
7,1 1
6,8 1
6,5 1
6,9 1
8,2 1
8,7 1
8,3 1
7,9 1
7,5 1
7,8 1
8,3 1
8,4 1
8,2 1 
7,7 1
7,2 1 
7,3 1
8,1 1
8,5 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=58522&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=58522&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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] = + 10.1488888888889 -1.04722222222222X[t] + 0.0736111111111097M1[t] -0.349444444444445M2[t] -0.712500000000001M3[t] -0.595555555555556M4[t] -0.398611111111111M5[t] -0.401666666666667M6[t] -0.584722222222223M7[t] -0.827777777777779M8[t] -1.09083333333333M9[t] -1.05388888888889M10[t] -0.216944444444445M11[t] -0.0169444444444444t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  10.1488888888889 -1.04722222222222X[t] +  0.0736111111111097M1[t] -0.349444444444445M2[t] -0.712500000000001M3[t] -0.595555555555556M4[t] -0.398611111111111M5[t] -0.401666666666667M6[t] -0.584722222222223M7[t] -0.827777777777779M8[t] -1.09083333333333M9[t] -1.05388888888889M10[t] -0.216944444444445M11[t] -0.0169444444444444t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58522&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  10.1488888888889 -1.04722222222222X[t] +  0.0736111111111097M1[t] -0.349444444444445M2[t] -0.712500000000001M3[t] -0.595555555555556M4[t] -0.398611111111111M5[t] -0.401666666666667M6[t] -0.584722222222223M7[t] -0.827777777777779M8[t] -1.09083333333333M9[t] -1.05388888888889M10[t] -0.216944444444445M11[t] -0.0169444444444444t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58522&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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] = + 10.1488888888889 -1.04722222222222X[t] + 0.0736111111111097M1[t] -0.349444444444445M2[t] -0.712500000000001M3[t] -0.595555555555556M4[t] -0.398611111111111M5[t] -0.401666666666667M6[t] -0.584722222222223M7[t] -0.827777777777779M8[t] -1.09083333333333M9[t] -1.05388888888889M10[t] -0.216944444444445M11[t] -0.0169444444444444t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)10.14888888888890.25906739.174700
X-1.047222222222220.232649-4.50134.6e-052.3e-05
M10.07361111111110970.2887880.25490.7999390.39997
M2-0.3494444444444450.287144-1.2170.2298240.114912
M3-0.7125000000000010.285648-2.49430.0162740.008137
M4-0.5955555555555560.284302-2.09480.0417250.020862
M5-0.3986111111111110.28311-1.4080.1658620.082931
M6-0.4016666666666670.282072-1.4240.1611990.0806
M7-0.5847222222222230.281192-2.07940.0431780.021589
M8-0.8277777777777790.280469-2.95140.0049640.002482
M9-1.090833333333330.279905-3.89720.0003140.000157
M10-1.053888888888890.279502-3.77060.0004630.000232
M11-0.2169444444444450.27926-0.77690.4412210.220611
t-0.01694444444444440.006716-2.5230.0151570.007578

\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) & 10.1488888888889 & 0.259067 & 39.1747 & 0 & 0 \tabularnewline
X & -1.04722222222222 & 0.232649 & -4.5013 & 4.6e-05 & 2.3e-05 \tabularnewline
M1 & 0.0736111111111097 & 0.288788 & 0.2549 & 0.799939 & 0.39997 \tabularnewline
M2 & -0.349444444444445 & 0.287144 & -1.217 & 0.229824 & 0.114912 \tabularnewline
M3 & -0.712500000000001 & 0.285648 & -2.4943 & 0.016274 & 0.008137 \tabularnewline
M4 & -0.595555555555556 & 0.284302 & -2.0948 & 0.041725 & 0.020862 \tabularnewline
M5 & -0.398611111111111 & 0.28311 & -1.408 & 0.165862 & 0.082931 \tabularnewline
M6 & -0.401666666666667 & 0.282072 & -1.424 & 0.161199 & 0.0806 \tabularnewline
M7 & -0.584722222222223 & 0.281192 & -2.0794 & 0.043178 & 0.021589 \tabularnewline
M8 & -0.827777777777779 & 0.280469 & -2.9514 & 0.004964 & 0.002482 \tabularnewline
M9 & -1.09083333333333 & 0.279905 & -3.8972 & 0.000314 & 0.000157 \tabularnewline
M10 & -1.05388888888889 & 0.279502 & -3.7706 & 0.000463 & 0.000232 \tabularnewline
M11 & -0.216944444444445 & 0.27926 & -0.7769 & 0.441221 & 0.220611 \tabularnewline
t & -0.0169444444444444 & 0.006716 & -2.523 & 0.015157 & 0.007578 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58522&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]10.1488888888889[/C][C]0.259067[/C][C]39.1747[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1.04722222222222[/C][C]0.232649[/C][C]-4.5013[/C][C]4.6e-05[/C][C]2.3e-05[/C][/ROW]
[ROW][C]M1[/C][C]0.0736111111111097[/C][C]0.288788[/C][C]0.2549[/C][C]0.799939[/C][C]0.39997[/C][/ROW]
[ROW][C]M2[/C][C]-0.349444444444445[/C][C]0.287144[/C][C]-1.217[/C][C]0.229824[/C][C]0.114912[/C][/ROW]
[ROW][C]M3[/C][C]-0.712500000000001[/C][C]0.285648[/C][C]-2.4943[/C][C]0.016274[/C][C]0.008137[/C][/ROW]
[ROW][C]M4[/C][C]-0.595555555555556[/C][C]0.284302[/C][C]-2.0948[/C][C]0.041725[/C][C]0.020862[/C][/ROW]
[ROW][C]M5[/C][C]-0.398611111111111[/C][C]0.28311[/C][C]-1.408[/C][C]0.165862[/C][C]0.082931[/C][/ROW]
[ROW][C]M6[/C][C]-0.401666666666667[/C][C]0.282072[/C][C]-1.424[/C][C]0.161199[/C][C]0.0806[/C][/ROW]
[ROW][C]M7[/C][C]-0.584722222222223[/C][C]0.281192[/C][C]-2.0794[/C][C]0.043178[/C][C]0.021589[/C][/ROW]
[ROW][C]M8[/C][C]-0.827777777777779[/C][C]0.280469[/C][C]-2.9514[/C][C]0.004964[/C][C]0.002482[/C][/ROW]
[ROW][C]M9[/C][C]-1.09083333333333[/C][C]0.279905[/C][C]-3.8972[/C][C]0.000314[/C][C]0.000157[/C][/ROW]
[ROW][C]M10[/C][C]-1.05388888888889[/C][C]0.279502[/C][C]-3.7706[/C][C]0.000463[/C][C]0.000232[/C][/ROW]
[ROW][C]M11[/C][C]-0.216944444444445[/C][C]0.27926[/C][C]-0.7769[/C][C]0.441221[/C][C]0.220611[/C][/ROW]
[ROW][C]t[/C][C]-0.0169444444444444[/C][C]0.006716[/C][C]-2.523[/C][C]0.015157[/C][C]0.007578[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58522&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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)10.14888888888890.25906739.174700
X-1.047222222222220.232649-4.50134.6e-052.3e-05
M10.07361111111110970.2887880.25490.7999390.39997
M2-0.3494444444444450.287144-1.2170.2298240.114912
M3-0.7125000000000010.285648-2.49430.0162740.008137
M4-0.5955555555555560.284302-2.09480.0417250.020862
M5-0.3986111111111110.28311-1.4080.1658620.082931
M6-0.4016666666666670.282072-1.4240.1611990.0806
M7-0.5847222222222230.281192-2.07940.0431780.021589
M8-0.8277777777777790.280469-2.95140.0049640.002482
M9-1.090833333333330.279905-3.89720.0003140.000157
M10-1.053888888888890.279502-3.77060.0004630.000232
M11-0.2169444444444450.27926-0.77690.4412210.220611
t-0.01694444444444440.006716-2.5230.0151570.007578







Multiple Linear Regression - Regression Statistics
Multiple R0.912187758983396
R-squared0.83208650763915
Adjusted R-squared0.784632694580648
F-TEST (value)17.5346606312405
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.25899290992493e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.441421178699925
Sum Squared Residuals8.96322222222221

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.912187758983396 \tabularnewline
R-squared & 0.83208650763915 \tabularnewline
Adjusted R-squared & 0.784632694580648 \tabularnewline
F-TEST (value) & 17.5346606312405 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.25899290992493e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.441421178699925 \tabularnewline
Sum Squared Residuals & 8.96322222222221 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58522&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.912187758983396[/C][/ROW]
[ROW][C]R-squared[/C][C]0.83208650763915[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.784632694580648[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]17.5346606312405[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.25899290992493e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.441421178699925[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8.96322222222221[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58522&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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.912187758983396
R-squared0.83208650763915
Adjusted R-squared0.784632694580648
F-TEST (value)17.5346606312405
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.25899290992493e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.441421178699925
Sum Squared Residuals8.96322222222221







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110.910.20555555555560.694444444444441
2109.765555555555550.234444444444445
39.29.38555555555556-0.185555555555555
49.29.48555555555556-0.285555555555555
59.59.66555555555555-0.165555555555555
69.69.64555555555556-0.045555555555555
79.59.445555555555560.0544444444444445
89.19.18555555555556-0.0855555555555562
98.98.90555555555556-0.00555555555555533
1098.925555555555550.0744444444444446
1110.19.745555555555550.354444444444445
1210.39.945555555555560.354444444444445
1310.210.00222222222220.197777777777778
149.69.562222222222220.0377777777777769
159.29.182222222222220.0177777777777773
169.39.282222222222220.0177777777777785
179.49.46222222222222-0.062222222222222
189.49.44222222222222-0.0422222222222218
199.29.24222222222222-0.0422222222222224
2098.982222222222220.0177777777777783
2198.702222222222220.297777777777777
2298.722222222222220.277777777777778
239.89.542222222222220.257777777777779
24109.742222222222220.257777777777777
259.89.798888888888890.00111111111111274
269.39.35888888888889-0.058888888888888
2798.978888888888890.0211111111111114
2899.07888888888889-0.078888888888889
299.19.25888888888889-0.158888888888889
309.19.23888888888889-0.138888888888889
319.19.038888888888890.0611111111111115
329.28.778888888888890.421111111111111
338.88.498888888888890.301111111111111
348.38.51888888888889-0.218888888888888
358.49.33888888888889-0.938888888888888
368.19.53888888888889-1.43888888888889
377.78.54833333333333-0.848333333333332
387.98.10833333333333-0.208333333333333
397.97.728333333333330.171666666666667
4087.828333333333330.171666666666667
417.98.00833333333333-0.108333333333333
427.67.98833333333333-0.388333333333334
437.17.78833333333333-0.688333333333333
446.87.52833333333333-0.728333333333333
456.57.24833333333333-0.748333333333333
466.97.26833333333333-0.368333333333333
478.28.088333333333330.111666666666666
488.78.288333333333330.411666666666666
498.38.345-0.0449999999999986
507.97.905-0.00499999999999963
517.57.525-0.0249999999999998
527.87.6250.175000000000000
538.37.8050.495
548.47.7850.615
558.27.5850.615
567.77.3250.375000000000000
577.27.0450.155
587.37.0650.235000000000000
598.17.8850.215000000000000
608.58.0850.414999999999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 10.9 & 10.2055555555556 & 0.694444444444441 \tabularnewline
2 & 10 & 9.76555555555555 & 0.234444444444445 \tabularnewline
3 & 9.2 & 9.38555555555556 & -0.185555555555555 \tabularnewline
4 & 9.2 & 9.48555555555556 & -0.285555555555555 \tabularnewline
5 & 9.5 & 9.66555555555555 & -0.165555555555555 \tabularnewline
6 & 9.6 & 9.64555555555556 & -0.045555555555555 \tabularnewline
7 & 9.5 & 9.44555555555556 & 0.0544444444444445 \tabularnewline
8 & 9.1 & 9.18555555555556 & -0.0855555555555562 \tabularnewline
9 & 8.9 & 8.90555555555556 & -0.00555555555555533 \tabularnewline
10 & 9 & 8.92555555555555 & 0.0744444444444446 \tabularnewline
11 & 10.1 & 9.74555555555555 & 0.354444444444445 \tabularnewline
12 & 10.3 & 9.94555555555556 & 0.354444444444445 \tabularnewline
13 & 10.2 & 10.0022222222222 & 0.197777777777778 \tabularnewline
14 & 9.6 & 9.56222222222222 & 0.0377777777777769 \tabularnewline
15 & 9.2 & 9.18222222222222 & 0.0177777777777773 \tabularnewline
16 & 9.3 & 9.28222222222222 & 0.0177777777777785 \tabularnewline
17 & 9.4 & 9.46222222222222 & -0.062222222222222 \tabularnewline
18 & 9.4 & 9.44222222222222 & -0.0422222222222218 \tabularnewline
19 & 9.2 & 9.24222222222222 & -0.0422222222222224 \tabularnewline
20 & 9 & 8.98222222222222 & 0.0177777777777783 \tabularnewline
21 & 9 & 8.70222222222222 & 0.297777777777777 \tabularnewline
22 & 9 & 8.72222222222222 & 0.277777777777778 \tabularnewline
23 & 9.8 & 9.54222222222222 & 0.257777777777779 \tabularnewline
24 & 10 & 9.74222222222222 & 0.257777777777777 \tabularnewline
25 & 9.8 & 9.79888888888889 & 0.00111111111111274 \tabularnewline
26 & 9.3 & 9.35888888888889 & -0.058888888888888 \tabularnewline
27 & 9 & 8.97888888888889 & 0.0211111111111114 \tabularnewline
28 & 9 & 9.07888888888889 & -0.078888888888889 \tabularnewline
29 & 9.1 & 9.25888888888889 & -0.158888888888889 \tabularnewline
30 & 9.1 & 9.23888888888889 & -0.138888888888889 \tabularnewline
31 & 9.1 & 9.03888888888889 & 0.0611111111111115 \tabularnewline
32 & 9.2 & 8.77888888888889 & 0.421111111111111 \tabularnewline
33 & 8.8 & 8.49888888888889 & 0.301111111111111 \tabularnewline
34 & 8.3 & 8.51888888888889 & -0.218888888888888 \tabularnewline
35 & 8.4 & 9.33888888888889 & -0.938888888888888 \tabularnewline
36 & 8.1 & 9.53888888888889 & -1.43888888888889 \tabularnewline
37 & 7.7 & 8.54833333333333 & -0.848333333333332 \tabularnewline
38 & 7.9 & 8.10833333333333 & -0.208333333333333 \tabularnewline
39 & 7.9 & 7.72833333333333 & 0.171666666666667 \tabularnewline
40 & 8 & 7.82833333333333 & 0.171666666666667 \tabularnewline
41 & 7.9 & 8.00833333333333 & -0.108333333333333 \tabularnewline
42 & 7.6 & 7.98833333333333 & -0.388333333333334 \tabularnewline
43 & 7.1 & 7.78833333333333 & -0.688333333333333 \tabularnewline
44 & 6.8 & 7.52833333333333 & -0.728333333333333 \tabularnewline
45 & 6.5 & 7.24833333333333 & -0.748333333333333 \tabularnewline
46 & 6.9 & 7.26833333333333 & -0.368333333333333 \tabularnewline
47 & 8.2 & 8.08833333333333 & 0.111666666666666 \tabularnewline
48 & 8.7 & 8.28833333333333 & 0.411666666666666 \tabularnewline
49 & 8.3 & 8.345 & -0.0449999999999986 \tabularnewline
50 & 7.9 & 7.905 & -0.00499999999999963 \tabularnewline
51 & 7.5 & 7.525 & -0.0249999999999998 \tabularnewline
52 & 7.8 & 7.625 & 0.175000000000000 \tabularnewline
53 & 8.3 & 7.805 & 0.495 \tabularnewline
54 & 8.4 & 7.785 & 0.615 \tabularnewline
55 & 8.2 & 7.585 & 0.615 \tabularnewline
56 & 7.7 & 7.325 & 0.375000000000000 \tabularnewline
57 & 7.2 & 7.045 & 0.155 \tabularnewline
58 & 7.3 & 7.065 & 0.235000000000000 \tabularnewline
59 & 8.1 & 7.885 & 0.215000000000000 \tabularnewline
60 & 8.5 & 8.085 & 0.414999999999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58522&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]10.9[/C][C]10.2055555555556[/C][C]0.694444444444441[/C][/ROW]
[ROW][C]2[/C][C]10[/C][C]9.76555555555555[/C][C]0.234444444444445[/C][/ROW]
[ROW][C]3[/C][C]9.2[/C][C]9.38555555555556[/C][C]-0.185555555555555[/C][/ROW]
[ROW][C]4[/C][C]9.2[/C][C]9.48555555555556[/C][C]-0.285555555555555[/C][/ROW]
[ROW][C]5[/C][C]9.5[/C][C]9.66555555555555[/C][C]-0.165555555555555[/C][/ROW]
[ROW][C]6[/C][C]9.6[/C][C]9.64555555555556[/C][C]-0.045555555555555[/C][/ROW]
[ROW][C]7[/C][C]9.5[/C][C]9.44555555555556[/C][C]0.0544444444444445[/C][/ROW]
[ROW][C]8[/C][C]9.1[/C][C]9.18555555555556[/C][C]-0.0855555555555562[/C][/ROW]
[ROW][C]9[/C][C]8.9[/C][C]8.90555555555556[/C][C]-0.00555555555555533[/C][/ROW]
[ROW][C]10[/C][C]9[/C][C]8.92555555555555[/C][C]0.0744444444444446[/C][/ROW]
[ROW][C]11[/C][C]10.1[/C][C]9.74555555555555[/C][C]0.354444444444445[/C][/ROW]
[ROW][C]12[/C][C]10.3[/C][C]9.94555555555556[/C][C]0.354444444444445[/C][/ROW]
[ROW][C]13[/C][C]10.2[/C][C]10.0022222222222[/C][C]0.197777777777778[/C][/ROW]
[ROW][C]14[/C][C]9.6[/C][C]9.56222222222222[/C][C]0.0377777777777769[/C][/ROW]
[ROW][C]15[/C][C]9.2[/C][C]9.18222222222222[/C][C]0.0177777777777773[/C][/ROW]
[ROW][C]16[/C][C]9.3[/C][C]9.28222222222222[/C][C]0.0177777777777785[/C][/ROW]
[ROW][C]17[/C][C]9.4[/C][C]9.46222222222222[/C][C]-0.062222222222222[/C][/ROW]
[ROW][C]18[/C][C]9.4[/C][C]9.44222222222222[/C][C]-0.0422222222222218[/C][/ROW]
[ROW][C]19[/C][C]9.2[/C][C]9.24222222222222[/C][C]-0.0422222222222224[/C][/ROW]
[ROW][C]20[/C][C]9[/C][C]8.98222222222222[/C][C]0.0177777777777783[/C][/ROW]
[ROW][C]21[/C][C]9[/C][C]8.70222222222222[/C][C]0.297777777777777[/C][/ROW]
[ROW][C]22[/C][C]9[/C][C]8.72222222222222[/C][C]0.277777777777778[/C][/ROW]
[ROW][C]23[/C][C]9.8[/C][C]9.54222222222222[/C][C]0.257777777777779[/C][/ROW]
[ROW][C]24[/C][C]10[/C][C]9.74222222222222[/C][C]0.257777777777777[/C][/ROW]
[ROW][C]25[/C][C]9.8[/C][C]9.79888888888889[/C][C]0.00111111111111274[/C][/ROW]
[ROW][C]26[/C][C]9.3[/C][C]9.35888888888889[/C][C]-0.058888888888888[/C][/ROW]
[ROW][C]27[/C][C]9[/C][C]8.97888888888889[/C][C]0.0211111111111114[/C][/ROW]
[ROW][C]28[/C][C]9[/C][C]9.07888888888889[/C][C]-0.078888888888889[/C][/ROW]
[ROW][C]29[/C][C]9.1[/C][C]9.25888888888889[/C][C]-0.158888888888889[/C][/ROW]
[ROW][C]30[/C][C]9.1[/C][C]9.23888888888889[/C][C]-0.138888888888889[/C][/ROW]
[ROW][C]31[/C][C]9.1[/C][C]9.03888888888889[/C][C]0.0611111111111115[/C][/ROW]
[ROW][C]32[/C][C]9.2[/C][C]8.77888888888889[/C][C]0.421111111111111[/C][/ROW]
[ROW][C]33[/C][C]8.8[/C][C]8.49888888888889[/C][C]0.301111111111111[/C][/ROW]
[ROW][C]34[/C][C]8.3[/C][C]8.51888888888889[/C][C]-0.218888888888888[/C][/ROW]
[ROW][C]35[/C][C]8.4[/C][C]9.33888888888889[/C][C]-0.938888888888888[/C][/ROW]
[ROW][C]36[/C][C]8.1[/C][C]9.53888888888889[/C][C]-1.43888888888889[/C][/ROW]
[ROW][C]37[/C][C]7.7[/C][C]8.54833333333333[/C][C]-0.848333333333332[/C][/ROW]
[ROW][C]38[/C][C]7.9[/C][C]8.10833333333333[/C][C]-0.208333333333333[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]7.72833333333333[/C][C]0.171666666666667[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.82833333333333[/C][C]0.171666666666667[/C][/ROW]
[ROW][C]41[/C][C]7.9[/C][C]8.00833333333333[/C][C]-0.108333333333333[/C][/ROW]
[ROW][C]42[/C][C]7.6[/C][C]7.98833333333333[/C][C]-0.388333333333334[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.78833333333333[/C][C]-0.688333333333333[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.52833333333333[/C][C]-0.728333333333333[/C][/ROW]
[ROW][C]45[/C][C]6.5[/C][C]7.24833333333333[/C][C]-0.748333333333333[/C][/ROW]
[ROW][C]46[/C][C]6.9[/C][C]7.26833333333333[/C][C]-0.368333333333333[/C][/ROW]
[ROW][C]47[/C][C]8.2[/C][C]8.08833333333333[/C][C]0.111666666666666[/C][/ROW]
[ROW][C]48[/C][C]8.7[/C][C]8.28833333333333[/C][C]0.411666666666666[/C][/ROW]
[ROW][C]49[/C][C]8.3[/C][C]8.345[/C][C]-0.0449999999999986[/C][/ROW]
[ROW][C]50[/C][C]7.9[/C][C]7.905[/C][C]-0.00499999999999963[/C][/ROW]
[ROW][C]51[/C][C]7.5[/C][C]7.525[/C][C]-0.0249999999999998[/C][/ROW]
[ROW][C]52[/C][C]7.8[/C][C]7.625[/C][C]0.175000000000000[/C][/ROW]
[ROW][C]53[/C][C]8.3[/C][C]7.805[/C][C]0.495[/C][/ROW]
[ROW][C]54[/C][C]8.4[/C][C]7.785[/C][C]0.615[/C][/ROW]
[ROW][C]55[/C][C]8.2[/C][C]7.585[/C][C]0.615[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]7.325[/C][C]0.375000000000000[/C][/ROW]
[ROW][C]57[/C][C]7.2[/C][C]7.045[/C][C]0.155[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.065[/C][C]0.235000000000000[/C][/ROW]
[ROW][C]59[/C][C]8.1[/C][C]7.885[/C][C]0.215000000000000[/C][/ROW]
[ROW][C]60[/C][C]8.5[/C][C]8.085[/C][C]0.414999999999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58522&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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
110.910.20555555555560.694444444444441
2109.765555555555550.234444444444445
39.29.38555555555556-0.185555555555555
49.29.48555555555556-0.285555555555555
59.59.66555555555555-0.165555555555555
69.69.64555555555556-0.045555555555555
79.59.445555555555560.0544444444444445
89.19.18555555555556-0.0855555555555562
98.98.90555555555556-0.00555555555555533
1098.925555555555550.0744444444444446
1110.19.745555555555550.354444444444445
1210.39.945555555555560.354444444444445
1310.210.00222222222220.197777777777778
149.69.562222222222220.0377777777777769
159.29.182222222222220.0177777777777773
169.39.282222222222220.0177777777777785
179.49.46222222222222-0.062222222222222
189.49.44222222222222-0.0422222222222218
199.29.24222222222222-0.0422222222222224
2098.982222222222220.0177777777777783
2198.702222222222220.297777777777777
2298.722222222222220.277777777777778
239.89.542222222222220.257777777777779
24109.742222222222220.257777777777777
259.89.798888888888890.00111111111111274
269.39.35888888888889-0.058888888888888
2798.978888888888890.0211111111111114
2899.07888888888889-0.078888888888889
299.19.25888888888889-0.158888888888889
309.19.23888888888889-0.138888888888889
319.19.038888888888890.0611111111111115
329.28.778888888888890.421111111111111
338.88.498888888888890.301111111111111
348.38.51888888888889-0.218888888888888
358.49.33888888888889-0.938888888888888
368.19.53888888888889-1.43888888888889
377.78.54833333333333-0.848333333333332
387.98.10833333333333-0.208333333333333
397.97.728333333333330.171666666666667
4087.828333333333330.171666666666667
417.98.00833333333333-0.108333333333333
427.67.98833333333333-0.388333333333334
437.17.78833333333333-0.688333333333333
446.87.52833333333333-0.728333333333333
456.57.24833333333333-0.748333333333333
466.97.26833333333333-0.368333333333333
478.28.088333333333330.111666666666666
488.78.288333333333330.411666666666666
498.38.345-0.0449999999999986
507.97.905-0.00499999999999963
517.57.525-0.0249999999999998
527.87.6250.175000000000000
538.37.8050.495
548.47.7850.615
558.27.5850.615
567.77.3250.375000000000000
577.27.0450.155
587.37.0650.235000000000000
598.17.8850.215000000000000
608.58.0850.414999999999999







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1659193878157060.3318387756314110.834080612184294
180.06850617519159040.1370123503831810.93149382480841
190.02622905327721500.05245810655442990.973770946722785
200.009791986530324620.01958397306064920.990208013469675
210.006142450533373440.01228490106674690.993857549466627
220.00295283679404190.00590567358808380.997047163205958
230.001567804237976090.003135608475952190.998432195762024
240.001056479466260480.002112958932520960.99894352053374
250.002122839290470710.004245678580941420.99787716070953
260.0009243863872549710.001848772774509940.999075613612745
270.0004349445523062470.0008698891046124940.999565055447694
280.0001623813893027930.0003247627786055870.999837618610697
295.22380539453475e-050.0001044761078906950.999947761946055
301.61578184231980e-053.23156368463960e-050.999983842181577
316.24553203688844e-061.24910640737769e-050.999993754467963
325.59775451129938e-050.0001119550902259880.999944022454887
330.0004963098923764540.000992619784752910.999503690107624
340.006055141008839940.01211028201767990.99394485899116
350.1805529887472980.3611059774945950.819447011252702
360.5508083133211410.8983833733577180.449191686678859
370.458194561867910.916389123735820.54180543813209
380.4256132483138190.8512264966276380.574386751686181
390.5539418147901090.8921163704197820.446058185209891
400.6098377688765020.7803244622469960.390162231123498
410.4781659921073350.956331984214670.521834007892665
420.3649510887904730.7299021775809460.635048911209527
430.4128865369509940.8257730739019880.587113463049006

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.165919387815706 & 0.331838775631411 & 0.834080612184294 \tabularnewline
18 & 0.0685061751915904 & 0.137012350383181 & 0.93149382480841 \tabularnewline
19 & 0.0262290532772150 & 0.0524581065544299 & 0.973770946722785 \tabularnewline
20 & 0.00979198653032462 & 0.0195839730606492 & 0.990208013469675 \tabularnewline
21 & 0.00614245053337344 & 0.0122849010667469 & 0.993857549466627 \tabularnewline
22 & 0.0029528367940419 & 0.0059056735880838 & 0.997047163205958 \tabularnewline
23 & 0.00156780423797609 & 0.00313560847595219 & 0.998432195762024 \tabularnewline
24 & 0.00105647946626048 & 0.00211295893252096 & 0.99894352053374 \tabularnewline
25 & 0.00212283929047071 & 0.00424567858094142 & 0.99787716070953 \tabularnewline
26 & 0.000924386387254971 & 0.00184877277450994 & 0.999075613612745 \tabularnewline
27 & 0.000434944552306247 & 0.000869889104612494 & 0.999565055447694 \tabularnewline
28 & 0.000162381389302793 & 0.000324762778605587 & 0.999837618610697 \tabularnewline
29 & 5.22380539453475e-05 & 0.000104476107890695 & 0.999947761946055 \tabularnewline
30 & 1.61578184231980e-05 & 3.23156368463960e-05 & 0.999983842181577 \tabularnewline
31 & 6.24553203688844e-06 & 1.24910640737769e-05 & 0.999993754467963 \tabularnewline
32 & 5.59775451129938e-05 & 0.000111955090225988 & 0.999944022454887 \tabularnewline
33 & 0.000496309892376454 & 0.00099261978475291 & 0.999503690107624 \tabularnewline
34 & 0.00605514100883994 & 0.0121102820176799 & 0.99394485899116 \tabularnewline
35 & 0.180552988747298 & 0.361105977494595 & 0.819447011252702 \tabularnewline
36 & 0.550808313321141 & 0.898383373357718 & 0.449191686678859 \tabularnewline
37 & 0.45819456186791 & 0.91638912373582 & 0.54180543813209 \tabularnewline
38 & 0.425613248313819 & 0.851226496627638 & 0.574386751686181 \tabularnewline
39 & 0.553941814790109 & 0.892116370419782 & 0.446058185209891 \tabularnewline
40 & 0.609837768876502 & 0.780324462246996 & 0.390162231123498 \tabularnewline
41 & 0.478165992107335 & 0.95633198421467 & 0.521834007892665 \tabularnewline
42 & 0.364951088790473 & 0.729902177580946 & 0.635048911209527 \tabularnewline
43 & 0.412886536950994 & 0.825773073901988 & 0.587113463049006 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58522&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]17[/C][C]0.165919387815706[/C][C]0.331838775631411[/C][C]0.834080612184294[/C][/ROW]
[ROW][C]18[/C][C]0.0685061751915904[/C][C]0.137012350383181[/C][C]0.93149382480841[/C][/ROW]
[ROW][C]19[/C][C]0.0262290532772150[/C][C]0.0524581065544299[/C][C]0.973770946722785[/C][/ROW]
[ROW][C]20[/C][C]0.00979198653032462[/C][C]0.0195839730606492[/C][C]0.990208013469675[/C][/ROW]
[ROW][C]21[/C][C]0.00614245053337344[/C][C]0.0122849010667469[/C][C]0.993857549466627[/C][/ROW]
[ROW][C]22[/C][C]0.0029528367940419[/C][C]0.0059056735880838[/C][C]0.997047163205958[/C][/ROW]
[ROW][C]23[/C][C]0.00156780423797609[/C][C]0.00313560847595219[/C][C]0.998432195762024[/C][/ROW]
[ROW][C]24[/C][C]0.00105647946626048[/C][C]0.00211295893252096[/C][C]0.99894352053374[/C][/ROW]
[ROW][C]25[/C][C]0.00212283929047071[/C][C]0.00424567858094142[/C][C]0.99787716070953[/C][/ROW]
[ROW][C]26[/C][C]0.000924386387254971[/C][C]0.00184877277450994[/C][C]0.999075613612745[/C][/ROW]
[ROW][C]27[/C][C]0.000434944552306247[/C][C]0.000869889104612494[/C][C]0.999565055447694[/C][/ROW]
[ROW][C]28[/C][C]0.000162381389302793[/C][C]0.000324762778605587[/C][C]0.999837618610697[/C][/ROW]
[ROW][C]29[/C][C]5.22380539453475e-05[/C][C]0.000104476107890695[/C][C]0.999947761946055[/C][/ROW]
[ROW][C]30[/C][C]1.61578184231980e-05[/C][C]3.23156368463960e-05[/C][C]0.999983842181577[/C][/ROW]
[ROW][C]31[/C][C]6.24553203688844e-06[/C][C]1.24910640737769e-05[/C][C]0.999993754467963[/C][/ROW]
[ROW][C]32[/C][C]5.59775451129938e-05[/C][C]0.000111955090225988[/C][C]0.999944022454887[/C][/ROW]
[ROW][C]33[/C][C]0.000496309892376454[/C][C]0.00099261978475291[/C][C]0.999503690107624[/C][/ROW]
[ROW][C]34[/C][C]0.00605514100883994[/C][C]0.0121102820176799[/C][C]0.99394485899116[/C][/ROW]
[ROW][C]35[/C][C]0.180552988747298[/C][C]0.361105977494595[/C][C]0.819447011252702[/C][/ROW]
[ROW][C]36[/C][C]0.550808313321141[/C][C]0.898383373357718[/C][C]0.449191686678859[/C][/ROW]
[ROW][C]37[/C][C]0.45819456186791[/C][C]0.91638912373582[/C][C]0.54180543813209[/C][/ROW]
[ROW][C]38[/C][C]0.425613248313819[/C][C]0.851226496627638[/C][C]0.574386751686181[/C][/ROW]
[ROW][C]39[/C][C]0.553941814790109[/C][C]0.892116370419782[/C][C]0.446058185209891[/C][/ROW]
[ROW][C]40[/C][C]0.609837768876502[/C][C]0.780324462246996[/C][C]0.390162231123498[/C][/ROW]
[ROW][C]41[/C][C]0.478165992107335[/C][C]0.95633198421467[/C][C]0.521834007892665[/C][/ROW]
[ROW][C]42[/C][C]0.364951088790473[/C][C]0.729902177580946[/C][C]0.635048911209527[/C][/ROW]
[ROW][C]43[/C][C]0.412886536950994[/C][C]0.825773073901988[/C][C]0.587113463049006[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58522&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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
170.1659193878157060.3318387756314110.834080612184294
180.06850617519159040.1370123503831810.93149382480841
190.02622905327721500.05245810655442990.973770946722785
200.009791986530324620.01958397306064920.990208013469675
210.006142450533373440.01228490106674690.993857549466627
220.00295283679404190.00590567358808380.997047163205958
230.001567804237976090.003135608475952190.998432195762024
240.001056479466260480.002112958932520960.99894352053374
250.002122839290470710.004245678580941420.99787716070953
260.0009243863872549710.001848772774509940.999075613612745
270.0004349445523062470.0008698891046124940.999565055447694
280.0001623813893027930.0003247627786055870.999837618610697
295.22380539453475e-050.0001044761078906950.999947761946055
301.61578184231980e-053.23156368463960e-050.999983842181577
316.24553203688844e-061.24910640737769e-050.999993754467963
325.59775451129938e-050.0001119550902259880.999944022454887
330.0004963098923764540.000992619784752910.999503690107624
340.006055141008839940.01211028201767990.99394485899116
350.1805529887472980.3611059774945950.819447011252702
360.5508083133211410.8983833733577180.449191686678859
370.458194561867910.916389123735820.54180543813209
380.4256132483138190.8512264966276380.574386751686181
390.5539418147901090.8921163704197820.446058185209891
400.6098377688765020.7803244622469960.390162231123498
410.4781659921073350.956331984214670.521834007892665
420.3649510887904730.7299021775809460.635048911209527
430.4128865369509940.8257730739019880.587113463049006







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level120.444444444444444NOK
5% type I error level150.555555555555556NOK
10% type I error level160.592592592592593NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58522&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 level120.444444444444444NOK
5% type I error level150.555555555555556NOK
10% type I error level160.592592592592593NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = 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')
}