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, 20 Nov 2009 04:20:18 -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/20/t1258716079w93fq2xga4vo18o.htm/, Retrieved Fri, 26 Apr 2024 09:40:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58039, Retrieved Fri, 26 Apr 2024 09:40:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
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] [b7e46d23597387652ca7420fdeb9acca] [Current]
- R  D        [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 14:33:05] [37daf76adc256428993ec4063536c760]
-    D        [Multiple Regression] [SHW Paper] [2009-12-18 12:20:07] [253127ae8da904b75450fbd69fe4eb21]
Feedback Forum

Post a new message
Dataseries X:
8.6	0
8.5	0
8.3	0
7.8	0
7.8	0
8	0
8.6	0
8.9	0
8.9	0
8.6	0
8.3	0
8.3	0
8.3	0
8.4	0
8.5	0
8.4	0
8.6	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.5	0
8.6	0
8.4	0
8.1	0
8	0
8	0
8	0
8	0
7.9	0
7.8	0
7.8	0
7.9	0
8.1	0
8	0
7.6	0
7.3	0
7	0
6.8	0
7	0
7.1	0
7.2	0
7.1	1
6.9	1
6.7	1
6.7	1
6.6	1
6.9	1
7.3	1
7.5	1
7.3	1
7.1	1
6.9	1
7.1	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=58039&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=58039&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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] = + 8.02708333333333 -1.13541666666667X[t] + 0.259999999999997M1[t] + 0.220000000000001M2[t] + 0.18M3[t] + 0.0999999999999998M4[t] + 0.12M5[t] + 0.0799999999999999M6[t] + 0.16M7[t] + 0.18M8[t] + 0.1M9[t] + 0.0399999999999998M10[t] -0.0399999999999999M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.02708333333333 -1.13541666666667X[t] +  0.259999999999997M1[t] +  0.220000000000001M2[t] +  0.18M3[t] +  0.0999999999999998M4[t] +  0.12M5[t] +  0.0799999999999999M6[t] +  0.16M7[t] +  0.18M8[t] +  0.1M9[t] +  0.0399999999999998M10[t] -0.0399999999999999M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58039&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.02708333333333 -1.13541666666667X[t] +  0.259999999999997M1[t] +  0.220000000000001M2[t] +  0.18M3[t] +  0.0999999999999998M4[t] +  0.12M5[t] +  0.0799999999999999M6[t] +  0.16M7[t] +  0.18M8[t] +  0.1M9[t] +  0.0399999999999998M10[t] -0.0399999999999999M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58039&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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] = + 8.02708333333333 -1.13541666666667X[t] + 0.259999999999997M1[t] + 0.220000000000001M2[t] + 0.18M3[t] + 0.0999999999999998M4[t] + 0.12M5[t] + 0.0799999999999999M6[t] + 0.16M7[t] + 0.18M8[t] + 0.1M9[t] + 0.0399999999999998M10[t] -0.0399999999999999M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.027083333333330.23443534.240100
X-1.135416666666670.167454-6.780500
M10.2599999999999970.3281410.79230.4321420.216071
M20.2200000000000010.3281410.67040.5058560.252928
M30.180.3281410.54850.5859140.292957
M40.09999999999999980.3281410.30470.7619040.380952
M50.120.3281410.36570.7162320.358116
M60.07999999999999990.3281410.24380.8084480.404224
M70.160.3281410.48760.6281030.314051
M80.180.3281410.54850.5859140.292957
M90.10.3281410.30470.7619040.380952
M100.03999999999999980.3281410.12190.9034990.451749
M11-0.03999999999999990.328141-0.12190.9034990.451749

\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) & 8.02708333333333 & 0.234435 & 34.2401 & 0 & 0 \tabularnewline
X & -1.13541666666667 & 0.167454 & -6.7805 & 0 & 0 \tabularnewline
M1 & 0.259999999999997 & 0.328141 & 0.7923 & 0.432142 & 0.216071 \tabularnewline
M2 & 0.220000000000001 & 0.328141 & 0.6704 & 0.505856 & 0.252928 \tabularnewline
M3 & 0.18 & 0.328141 & 0.5485 & 0.585914 & 0.292957 \tabularnewline
M4 & 0.0999999999999998 & 0.328141 & 0.3047 & 0.761904 & 0.380952 \tabularnewline
M5 & 0.12 & 0.328141 & 0.3657 & 0.716232 & 0.358116 \tabularnewline
M6 & 0.0799999999999999 & 0.328141 & 0.2438 & 0.808448 & 0.404224 \tabularnewline
M7 & 0.16 & 0.328141 & 0.4876 & 0.628103 & 0.314051 \tabularnewline
M8 & 0.18 & 0.328141 & 0.5485 & 0.585914 & 0.292957 \tabularnewline
M9 & 0.1 & 0.328141 & 0.3047 & 0.761904 & 0.380952 \tabularnewline
M10 & 0.0399999999999998 & 0.328141 & 0.1219 & 0.903499 & 0.451749 \tabularnewline
M11 & -0.0399999999999999 & 0.328141 & -0.1219 & 0.903499 & 0.451749 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58039&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]8.02708333333333[/C][C]0.234435[/C][C]34.2401[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1.13541666666667[/C][C]0.167454[/C][C]-6.7805[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.259999999999997[/C][C]0.328141[/C][C]0.7923[/C][C]0.432142[/C][C]0.216071[/C][/ROW]
[ROW][C]M2[/C][C]0.220000000000001[/C][C]0.328141[/C][C]0.6704[/C][C]0.505856[/C][C]0.252928[/C][/ROW]
[ROW][C]M3[/C][C]0.18[/C][C]0.328141[/C][C]0.5485[/C][C]0.585914[/C][C]0.292957[/C][/ROW]
[ROW][C]M4[/C][C]0.0999999999999998[/C][C]0.328141[/C][C]0.3047[/C][C]0.761904[/C][C]0.380952[/C][/ROW]
[ROW][C]M5[/C][C]0.12[/C][C]0.328141[/C][C]0.3657[/C][C]0.716232[/C][C]0.358116[/C][/ROW]
[ROW][C]M6[/C][C]0.0799999999999999[/C][C]0.328141[/C][C]0.2438[/C][C]0.808448[/C][C]0.404224[/C][/ROW]
[ROW][C]M7[/C][C]0.16[/C][C]0.328141[/C][C]0.4876[/C][C]0.628103[/C][C]0.314051[/C][/ROW]
[ROW][C]M8[/C][C]0.18[/C][C]0.328141[/C][C]0.5485[/C][C]0.585914[/C][C]0.292957[/C][/ROW]
[ROW][C]M9[/C][C]0.1[/C][C]0.328141[/C][C]0.3047[/C][C]0.761904[/C][C]0.380952[/C][/ROW]
[ROW][C]M10[/C][C]0.0399999999999998[/C][C]0.328141[/C][C]0.1219[/C][C]0.903499[/C][C]0.451749[/C][/ROW]
[ROW][C]M11[/C][C]-0.0399999999999999[/C][C]0.328141[/C][C]-0.1219[/C][C]0.903499[/C][C]0.451749[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58039&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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)8.027083333333330.23443534.240100
X-1.135416666666670.167454-6.780500
M10.2599999999999970.3281410.79230.4321420.216071
M20.2200000000000010.3281410.67040.5058560.252928
M30.180.3281410.54850.5859140.292957
M40.09999999999999980.3281410.30470.7619040.380952
M50.120.3281410.36570.7162320.358116
M60.07999999999999990.3281410.24380.8084480.404224
M70.160.3281410.48760.6281030.314051
M80.180.3281410.54850.5859140.292957
M90.10.3281410.30470.7619040.380952
M100.03999999999999980.3281410.12190.9034990.451749
M11-0.03999999999999990.328141-0.12190.9034990.451749







Multiple Linear Regression - Regression Statistics
Multiple R0.709316796716717
R-squared0.503130318104464
Adjusted R-squared0.37626997379071
F-TEST (value)3.96601728322691
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000313507766686705
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.518835814913426
Sum Squared Residuals12.6519583333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.709316796716717 \tabularnewline
R-squared & 0.503130318104464 \tabularnewline
Adjusted R-squared & 0.37626997379071 \tabularnewline
F-TEST (value) & 3.96601728322691 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.000313507766686705 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.518835814913426 \tabularnewline
Sum Squared Residuals & 12.6519583333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58039&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.709316796716717[/C][/ROW]
[ROW][C]R-squared[/C][C]0.503130318104464[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.37626997379071[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.96601728322691[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.000313507766686705[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.518835814913426[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12.6519583333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58039&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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.709316796716717
R-squared0.503130318104464
Adjusted R-squared0.37626997379071
F-TEST (value)3.96601728322691
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000313507766686705
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.518835814913426
Sum Squared Residuals12.6519583333333







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.287083333333350.312916666666653
28.58.247083333333330.252916666666669
38.38.207083333333330.0929166666666671
47.88.12708333333333-0.327083333333333
57.88.14708333333333-0.347083333333333
688.10708333333333-0.107083333333333
78.68.187083333333330.412916666666667
88.98.207083333333330.692916666666668
98.98.127083333333330.772916666666667
108.68.067083333333330.532916666666666
118.37.987083333333330.312916666666667
128.38.027083333333330.272916666666667
138.38.287083333333330.0129166666666705
148.48.247083333333330.152916666666666
158.58.207083333333330.292916666666666
168.48.127083333333330.272916666666667
178.68.147083333333330.452916666666666
188.58.107083333333330.392916666666667
198.58.187083333333330.312916666666667
208.58.207083333333330.292916666666667
218.58.127083333333330.372916666666667
228.58.067083333333330.432916666666667
238.57.987083333333330.512916666666667
248.58.027083333333330.472916666666667
258.58.287083333333330.21291666666667
268.58.247083333333330.252916666666666
278.58.207083333333330.292916666666666
288.58.127083333333330.372916666666667
298.68.147083333333330.452916666666666
308.48.107083333333330.292916666666667
318.18.18708333333333-0.0870833333333334
3288.20708333333333-0.207083333333333
3388.12708333333333-0.127083333333333
3488.06708333333333-0.0670833333333332
3587.987083333333330.0129166666666665
367.98.02708333333333-0.127083333333333
377.88.28708333333333-0.48708333333333
387.88.24708333333333-0.447083333333334
397.98.20708333333333-0.307083333333333
408.18.12708333333333-0.0270833333333337
4188.14708333333333-0.147083333333333
427.68.10708333333333-0.507083333333334
437.38.18708333333333-0.887083333333333
4478.20708333333333-1.20708333333333
456.88.12708333333333-1.32708333333333
4678.06708333333333-1.06708333333333
477.17.98708333333333-0.887083333333334
487.28.02708333333333-0.827083333333333
497.17.15166666666666-0.051666666666664
506.97.11166666666667-0.211666666666667
516.77.07166666666667-0.371666666666667
526.76.99166666666667-0.291666666666667
536.67.01166666666667-0.411666666666667
546.96.97166666666667-0.0716666666666665
557.37.051666666666670.248333333333333
567.57.071666666666670.428333333333333
577.36.991666666666670.308333333333333
587.16.931666666666670.168333333333333
596.96.851666666666670.0483333333333333
607.16.891666666666670.208333333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.28708333333335 & 0.312916666666653 \tabularnewline
2 & 8.5 & 8.24708333333333 & 0.252916666666669 \tabularnewline
3 & 8.3 & 8.20708333333333 & 0.0929166666666671 \tabularnewline
4 & 7.8 & 8.12708333333333 & -0.327083333333333 \tabularnewline
5 & 7.8 & 8.14708333333333 & -0.347083333333333 \tabularnewline
6 & 8 & 8.10708333333333 & -0.107083333333333 \tabularnewline
7 & 8.6 & 8.18708333333333 & 0.412916666666667 \tabularnewline
8 & 8.9 & 8.20708333333333 & 0.692916666666668 \tabularnewline
9 & 8.9 & 8.12708333333333 & 0.772916666666667 \tabularnewline
10 & 8.6 & 8.06708333333333 & 0.532916666666666 \tabularnewline
11 & 8.3 & 7.98708333333333 & 0.312916666666667 \tabularnewline
12 & 8.3 & 8.02708333333333 & 0.272916666666667 \tabularnewline
13 & 8.3 & 8.28708333333333 & 0.0129166666666705 \tabularnewline
14 & 8.4 & 8.24708333333333 & 0.152916666666666 \tabularnewline
15 & 8.5 & 8.20708333333333 & 0.292916666666666 \tabularnewline
16 & 8.4 & 8.12708333333333 & 0.272916666666667 \tabularnewline
17 & 8.6 & 8.14708333333333 & 0.452916666666666 \tabularnewline
18 & 8.5 & 8.10708333333333 & 0.392916666666667 \tabularnewline
19 & 8.5 & 8.18708333333333 & 0.312916666666667 \tabularnewline
20 & 8.5 & 8.20708333333333 & 0.292916666666667 \tabularnewline
21 & 8.5 & 8.12708333333333 & 0.372916666666667 \tabularnewline
22 & 8.5 & 8.06708333333333 & 0.432916666666667 \tabularnewline
23 & 8.5 & 7.98708333333333 & 0.512916666666667 \tabularnewline
24 & 8.5 & 8.02708333333333 & 0.472916666666667 \tabularnewline
25 & 8.5 & 8.28708333333333 & 0.21291666666667 \tabularnewline
26 & 8.5 & 8.24708333333333 & 0.252916666666666 \tabularnewline
27 & 8.5 & 8.20708333333333 & 0.292916666666666 \tabularnewline
28 & 8.5 & 8.12708333333333 & 0.372916666666667 \tabularnewline
29 & 8.6 & 8.14708333333333 & 0.452916666666666 \tabularnewline
30 & 8.4 & 8.10708333333333 & 0.292916666666667 \tabularnewline
31 & 8.1 & 8.18708333333333 & -0.0870833333333334 \tabularnewline
32 & 8 & 8.20708333333333 & -0.207083333333333 \tabularnewline
33 & 8 & 8.12708333333333 & -0.127083333333333 \tabularnewline
34 & 8 & 8.06708333333333 & -0.0670833333333332 \tabularnewline
35 & 8 & 7.98708333333333 & 0.0129166666666665 \tabularnewline
36 & 7.9 & 8.02708333333333 & -0.127083333333333 \tabularnewline
37 & 7.8 & 8.28708333333333 & -0.48708333333333 \tabularnewline
38 & 7.8 & 8.24708333333333 & -0.447083333333334 \tabularnewline
39 & 7.9 & 8.20708333333333 & -0.307083333333333 \tabularnewline
40 & 8.1 & 8.12708333333333 & -0.0270833333333337 \tabularnewline
41 & 8 & 8.14708333333333 & -0.147083333333333 \tabularnewline
42 & 7.6 & 8.10708333333333 & -0.507083333333334 \tabularnewline
43 & 7.3 & 8.18708333333333 & -0.887083333333333 \tabularnewline
44 & 7 & 8.20708333333333 & -1.20708333333333 \tabularnewline
45 & 6.8 & 8.12708333333333 & -1.32708333333333 \tabularnewline
46 & 7 & 8.06708333333333 & -1.06708333333333 \tabularnewline
47 & 7.1 & 7.98708333333333 & -0.887083333333334 \tabularnewline
48 & 7.2 & 8.02708333333333 & -0.827083333333333 \tabularnewline
49 & 7.1 & 7.15166666666666 & -0.051666666666664 \tabularnewline
50 & 6.9 & 7.11166666666667 & -0.211666666666667 \tabularnewline
51 & 6.7 & 7.07166666666667 & -0.371666666666667 \tabularnewline
52 & 6.7 & 6.99166666666667 & -0.291666666666667 \tabularnewline
53 & 6.6 & 7.01166666666667 & -0.411666666666667 \tabularnewline
54 & 6.9 & 6.97166666666667 & -0.0716666666666665 \tabularnewline
55 & 7.3 & 7.05166666666667 & 0.248333333333333 \tabularnewline
56 & 7.5 & 7.07166666666667 & 0.428333333333333 \tabularnewline
57 & 7.3 & 6.99166666666667 & 0.308333333333333 \tabularnewline
58 & 7.1 & 6.93166666666667 & 0.168333333333333 \tabularnewline
59 & 6.9 & 6.85166666666667 & 0.0483333333333333 \tabularnewline
60 & 7.1 & 6.89166666666667 & 0.208333333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58039&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.6[/C][C]8.28708333333335[/C][C]0.312916666666653[/C][/ROW]
[ROW][C]2[/C][C]8.5[/C][C]8.24708333333333[/C][C]0.252916666666669[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.20708333333333[/C][C]0.0929166666666671[/C][/ROW]
[ROW][C]4[/C][C]7.8[/C][C]8.12708333333333[/C][C]-0.327083333333333[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]8.14708333333333[/C][C]-0.347083333333333[/C][/ROW]
[ROW][C]6[/C][C]8[/C][C]8.10708333333333[/C][C]-0.107083333333333[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.18708333333333[/C][C]0.412916666666667[/C][/ROW]
[ROW][C]8[/C][C]8.9[/C][C]8.20708333333333[/C][C]0.692916666666668[/C][/ROW]
[ROW][C]9[/C][C]8.9[/C][C]8.12708333333333[/C][C]0.772916666666667[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.06708333333333[/C][C]0.532916666666666[/C][/ROW]
[ROW][C]11[/C][C]8.3[/C][C]7.98708333333333[/C][C]0.312916666666667[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]8.02708333333333[/C][C]0.272916666666667[/C][/ROW]
[ROW][C]13[/C][C]8.3[/C][C]8.28708333333333[/C][C]0.0129166666666705[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]8.24708333333333[/C][C]0.152916666666666[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.20708333333333[/C][C]0.292916666666666[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]8.12708333333333[/C][C]0.272916666666667[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]8.14708333333333[/C][C]0.452916666666666[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.10708333333333[/C][C]0.392916666666667[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.18708333333333[/C][C]0.312916666666667[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.20708333333333[/C][C]0.292916666666667[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.12708333333333[/C][C]0.372916666666667[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.06708333333333[/C][C]0.432916666666667[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]7.98708333333333[/C][C]0.512916666666667[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.02708333333333[/C][C]0.472916666666667[/C][/ROW]
[ROW][C]25[/C][C]8.5[/C][C]8.28708333333333[/C][C]0.21291666666667[/C][/ROW]
[ROW][C]26[/C][C]8.5[/C][C]8.24708333333333[/C][C]0.252916666666666[/C][/ROW]
[ROW][C]27[/C][C]8.5[/C][C]8.20708333333333[/C][C]0.292916666666666[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]8.12708333333333[/C][C]0.372916666666667[/C][/ROW]
[ROW][C]29[/C][C]8.6[/C][C]8.14708333333333[/C][C]0.452916666666666[/C][/ROW]
[ROW][C]30[/C][C]8.4[/C][C]8.10708333333333[/C][C]0.292916666666667[/C][/ROW]
[ROW][C]31[/C][C]8.1[/C][C]8.18708333333333[/C][C]-0.0870833333333334[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]8.20708333333333[/C][C]-0.207083333333333[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]8.12708333333333[/C][C]-0.127083333333333[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.06708333333333[/C][C]-0.0670833333333332[/C][/ROW]
[ROW][C]35[/C][C]8[/C][C]7.98708333333333[/C][C]0.0129166666666665[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]8.02708333333333[/C][C]-0.127083333333333[/C][/ROW]
[ROW][C]37[/C][C]7.8[/C][C]8.28708333333333[/C][C]-0.48708333333333[/C][/ROW]
[ROW][C]38[/C][C]7.8[/C][C]8.24708333333333[/C][C]-0.447083333333334[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.20708333333333[/C][C]-0.307083333333333[/C][/ROW]
[ROW][C]40[/C][C]8.1[/C][C]8.12708333333333[/C][C]-0.0270833333333337[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]8.14708333333333[/C][C]-0.147083333333333[/C][/ROW]
[ROW][C]42[/C][C]7.6[/C][C]8.10708333333333[/C][C]-0.507083333333334[/C][/ROW]
[ROW][C]43[/C][C]7.3[/C][C]8.18708333333333[/C][C]-0.887083333333333[/C][/ROW]
[ROW][C]44[/C][C]7[/C][C]8.20708333333333[/C][C]-1.20708333333333[/C][/ROW]
[ROW][C]45[/C][C]6.8[/C][C]8.12708333333333[/C][C]-1.32708333333333[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]8.06708333333333[/C][C]-1.06708333333333[/C][/ROW]
[ROW][C]47[/C][C]7.1[/C][C]7.98708333333333[/C][C]-0.887083333333334[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]8.02708333333333[/C][C]-0.827083333333333[/C][/ROW]
[ROW][C]49[/C][C]7.1[/C][C]7.15166666666666[/C][C]-0.051666666666664[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]7.11166666666667[/C][C]-0.211666666666667[/C][/ROW]
[ROW][C]51[/C][C]6.7[/C][C]7.07166666666667[/C][C]-0.371666666666667[/C][/ROW]
[ROW][C]52[/C][C]6.7[/C][C]6.99166666666667[/C][C]-0.291666666666667[/C][/ROW]
[ROW][C]53[/C][C]6.6[/C][C]7.01166666666667[/C][C]-0.411666666666667[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]6.97166666666667[/C][C]-0.0716666666666665[/C][/ROW]
[ROW][C]55[/C][C]7.3[/C][C]7.05166666666667[/C][C]0.248333333333333[/C][/ROW]
[ROW][C]56[/C][C]7.5[/C][C]7.07166666666667[/C][C]0.428333333333333[/C][/ROW]
[ROW][C]57[/C][C]7.3[/C][C]6.99166666666667[/C][C]0.308333333333333[/C][/ROW]
[ROW][C]58[/C][C]7.1[/C][C]6.93166666666667[/C][C]0.168333333333333[/C][/ROW]
[ROW][C]59[/C][C]6.9[/C][C]6.85166666666667[/C][C]0.0483333333333333[/C][/ROW]
[ROW][C]60[/C][C]7.1[/C][C]6.89166666666667[/C][C]0.208333333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58039&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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.68.287083333333350.312916666666653
28.58.247083333333330.252916666666669
38.38.207083333333330.0929166666666671
47.88.12708333333333-0.327083333333333
57.88.14708333333333-0.347083333333333
688.10708333333333-0.107083333333333
78.68.187083333333330.412916666666667
88.98.207083333333330.692916666666668
98.98.127083333333330.772916666666667
108.68.067083333333330.532916666666666
118.37.987083333333330.312916666666667
128.38.027083333333330.272916666666667
138.38.287083333333330.0129166666666705
148.48.247083333333330.152916666666666
158.58.207083333333330.292916666666666
168.48.127083333333330.272916666666667
178.68.147083333333330.452916666666666
188.58.107083333333330.392916666666667
198.58.187083333333330.312916666666667
208.58.207083333333330.292916666666667
218.58.127083333333330.372916666666667
228.58.067083333333330.432916666666667
238.57.987083333333330.512916666666667
248.58.027083333333330.472916666666667
258.58.287083333333330.21291666666667
268.58.247083333333330.252916666666666
278.58.207083333333330.292916666666666
288.58.127083333333330.372916666666667
298.68.147083333333330.452916666666666
308.48.107083333333330.292916666666667
318.18.18708333333333-0.0870833333333334
3288.20708333333333-0.207083333333333
3388.12708333333333-0.127083333333333
3488.06708333333333-0.0670833333333332
3587.987083333333330.0129166666666665
367.98.02708333333333-0.127083333333333
377.88.28708333333333-0.48708333333333
387.88.24708333333333-0.447083333333334
397.98.20708333333333-0.307083333333333
408.18.12708333333333-0.0270833333333337
4188.14708333333333-0.147083333333333
427.68.10708333333333-0.507083333333334
437.38.18708333333333-0.887083333333333
4478.20708333333333-1.20708333333333
456.88.12708333333333-1.32708333333333
4678.06708333333333-1.06708333333333
477.17.98708333333333-0.887083333333334
487.28.02708333333333-0.827083333333333
497.17.15166666666666-0.051666666666664
506.97.11166666666667-0.211666666666667
516.77.07166666666667-0.371666666666667
526.76.99166666666667-0.291666666666667
536.67.01166666666667-0.411666666666667
546.96.97166666666667-0.0716666666666665
557.37.051666666666670.248333333333333
567.57.071666666666670.428333333333333
577.36.991666666666670.308333333333333
587.16.931666666666670.168333333333333
596.96.851666666666670.0483333333333333
607.16.891666666666670.208333333333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1520180315712610.3040360631425230.847981968428739
170.2307882190190740.4615764380381490.769211780980926
180.1812434368131800.3624868736263590.81875656318682
190.1053698333059290.2107396666118570.894630166694071
200.07711748283965370.1542349656793070.922882517160346
210.06060016968879620.1212003393775920.939399830311204
220.03835492507361420.07670985014722840.961645074926386
230.02677758265759410.05355516531518820.973222417342406
240.01867723222368410.03735446444736830.981322767776316
250.01066320828641030.02132641657282050.98933679171359
260.006528822840217410.01305764568043480.993471177159783
270.004442002674487360.008884005348974720.995557997325513
280.004920576821530770.009841153643061530.99507942317847
290.007282366903602360.01456473380720470.992717633096398
300.006518899793926550.01303779958785310.993481100206073
310.007090901300862080.01418180260172420.992909098699138
320.0140116424779360.0280232849558720.985988357522064
330.02747959129444550.0549591825888910.972520408705555
340.03729817505624110.07459635011248220.962701824943759
350.04624774765952750.0924954953190550.953752252340473
360.04838112934576190.09676225869152370.951618870654238
370.0509218482124330.1018436964248660.949078151787567
380.056907253955330.113814507910660.94309274604467
390.07875747767414980.1575149553483000.92124252232585
400.1680444578696020.3360889157392040.831955542130398
410.6345158659501730.7309682680996550.365484134049827
420.8776988653584470.2446022692831060.122301134641553
430.8434661682350850.3130676635298290.156533831764915
440.8699826355959880.2600347288080230.130017364404012

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.152018031571261 & 0.304036063142523 & 0.847981968428739 \tabularnewline
17 & 0.230788219019074 & 0.461576438038149 & 0.769211780980926 \tabularnewline
18 & 0.181243436813180 & 0.362486873626359 & 0.81875656318682 \tabularnewline
19 & 0.105369833305929 & 0.210739666611857 & 0.894630166694071 \tabularnewline
20 & 0.0771174828396537 & 0.154234965679307 & 0.922882517160346 \tabularnewline
21 & 0.0606001696887962 & 0.121200339377592 & 0.939399830311204 \tabularnewline
22 & 0.0383549250736142 & 0.0767098501472284 & 0.961645074926386 \tabularnewline
23 & 0.0267775826575941 & 0.0535551653151882 & 0.973222417342406 \tabularnewline
24 & 0.0186772322236841 & 0.0373544644473683 & 0.981322767776316 \tabularnewline
25 & 0.0106632082864103 & 0.0213264165728205 & 0.98933679171359 \tabularnewline
26 & 0.00652882284021741 & 0.0130576456804348 & 0.993471177159783 \tabularnewline
27 & 0.00444200267448736 & 0.00888400534897472 & 0.995557997325513 \tabularnewline
28 & 0.00492057682153077 & 0.00984115364306153 & 0.99507942317847 \tabularnewline
29 & 0.00728236690360236 & 0.0145647338072047 & 0.992717633096398 \tabularnewline
30 & 0.00651889979392655 & 0.0130377995878531 & 0.993481100206073 \tabularnewline
31 & 0.00709090130086208 & 0.0141818026017242 & 0.992909098699138 \tabularnewline
32 & 0.014011642477936 & 0.028023284955872 & 0.985988357522064 \tabularnewline
33 & 0.0274795912944455 & 0.054959182588891 & 0.972520408705555 \tabularnewline
34 & 0.0372981750562411 & 0.0745963501124822 & 0.962701824943759 \tabularnewline
35 & 0.0462477476595275 & 0.092495495319055 & 0.953752252340473 \tabularnewline
36 & 0.0483811293457619 & 0.0967622586915237 & 0.951618870654238 \tabularnewline
37 & 0.050921848212433 & 0.101843696424866 & 0.949078151787567 \tabularnewline
38 & 0.05690725395533 & 0.11381450791066 & 0.94309274604467 \tabularnewline
39 & 0.0787574776741498 & 0.157514955348300 & 0.92124252232585 \tabularnewline
40 & 0.168044457869602 & 0.336088915739204 & 0.831955542130398 \tabularnewline
41 & 0.634515865950173 & 0.730968268099655 & 0.365484134049827 \tabularnewline
42 & 0.877698865358447 & 0.244602269283106 & 0.122301134641553 \tabularnewline
43 & 0.843466168235085 & 0.313067663529829 & 0.156533831764915 \tabularnewline
44 & 0.869982635595988 & 0.260034728808023 & 0.130017364404012 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58039&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.152018031571261[/C][C]0.304036063142523[/C][C]0.847981968428739[/C][/ROW]
[ROW][C]17[/C][C]0.230788219019074[/C][C]0.461576438038149[/C][C]0.769211780980926[/C][/ROW]
[ROW][C]18[/C][C]0.181243436813180[/C][C]0.362486873626359[/C][C]0.81875656318682[/C][/ROW]
[ROW][C]19[/C][C]0.105369833305929[/C][C]0.210739666611857[/C][C]0.894630166694071[/C][/ROW]
[ROW][C]20[/C][C]0.0771174828396537[/C][C]0.154234965679307[/C][C]0.922882517160346[/C][/ROW]
[ROW][C]21[/C][C]0.0606001696887962[/C][C]0.121200339377592[/C][C]0.939399830311204[/C][/ROW]
[ROW][C]22[/C][C]0.0383549250736142[/C][C]0.0767098501472284[/C][C]0.961645074926386[/C][/ROW]
[ROW][C]23[/C][C]0.0267775826575941[/C][C]0.0535551653151882[/C][C]0.973222417342406[/C][/ROW]
[ROW][C]24[/C][C]0.0186772322236841[/C][C]0.0373544644473683[/C][C]0.981322767776316[/C][/ROW]
[ROW][C]25[/C][C]0.0106632082864103[/C][C]0.0213264165728205[/C][C]0.98933679171359[/C][/ROW]
[ROW][C]26[/C][C]0.00652882284021741[/C][C]0.0130576456804348[/C][C]0.993471177159783[/C][/ROW]
[ROW][C]27[/C][C]0.00444200267448736[/C][C]0.00888400534897472[/C][C]0.995557997325513[/C][/ROW]
[ROW][C]28[/C][C]0.00492057682153077[/C][C]0.00984115364306153[/C][C]0.99507942317847[/C][/ROW]
[ROW][C]29[/C][C]0.00728236690360236[/C][C]0.0145647338072047[/C][C]0.992717633096398[/C][/ROW]
[ROW][C]30[/C][C]0.00651889979392655[/C][C]0.0130377995878531[/C][C]0.993481100206073[/C][/ROW]
[ROW][C]31[/C][C]0.00709090130086208[/C][C]0.0141818026017242[/C][C]0.992909098699138[/C][/ROW]
[ROW][C]32[/C][C]0.014011642477936[/C][C]0.028023284955872[/C][C]0.985988357522064[/C][/ROW]
[ROW][C]33[/C][C]0.0274795912944455[/C][C]0.054959182588891[/C][C]0.972520408705555[/C][/ROW]
[ROW][C]34[/C][C]0.0372981750562411[/C][C]0.0745963501124822[/C][C]0.962701824943759[/C][/ROW]
[ROW][C]35[/C][C]0.0462477476595275[/C][C]0.092495495319055[/C][C]0.953752252340473[/C][/ROW]
[ROW][C]36[/C][C]0.0483811293457619[/C][C]0.0967622586915237[/C][C]0.951618870654238[/C][/ROW]
[ROW][C]37[/C][C]0.050921848212433[/C][C]0.101843696424866[/C][C]0.949078151787567[/C][/ROW]
[ROW][C]38[/C][C]0.05690725395533[/C][C]0.11381450791066[/C][C]0.94309274604467[/C][/ROW]
[ROW][C]39[/C][C]0.0787574776741498[/C][C]0.157514955348300[/C][C]0.92124252232585[/C][/ROW]
[ROW][C]40[/C][C]0.168044457869602[/C][C]0.336088915739204[/C][C]0.831955542130398[/C][/ROW]
[ROW][C]41[/C][C]0.634515865950173[/C][C]0.730968268099655[/C][C]0.365484134049827[/C][/ROW]
[ROW][C]42[/C][C]0.877698865358447[/C][C]0.244602269283106[/C][C]0.122301134641553[/C][/ROW]
[ROW][C]43[/C][C]0.843466168235085[/C][C]0.313067663529829[/C][C]0.156533831764915[/C][/ROW]
[ROW][C]44[/C][C]0.869982635595988[/C][C]0.260034728808023[/C][C]0.130017364404012[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58039&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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.1520180315712610.3040360631425230.847981968428739
170.2307882190190740.4615764380381490.769211780980926
180.1812434368131800.3624868736263590.81875656318682
190.1053698333059290.2107396666118570.894630166694071
200.07711748283965370.1542349656793070.922882517160346
210.06060016968879620.1212003393775920.939399830311204
220.03835492507361420.07670985014722840.961645074926386
230.02677758265759410.05355516531518820.973222417342406
240.01867723222368410.03735446444736830.981322767776316
250.01066320828641030.02132641657282050.98933679171359
260.006528822840217410.01305764568043480.993471177159783
270.004442002674487360.008884005348974720.995557997325513
280.004920576821530770.009841153643061530.99507942317847
290.007282366903602360.01456473380720470.992717633096398
300.006518899793926550.01303779958785310.993481100206073
310.007090901300862080.01418180260172420.992909098699138
320.0140116424779360.0280232849558720.985988357522064
330.02747959129444550.0549591825888910.972520408705555
340.03729817505624110.07459635011248220.962701824943759
350.04624774765952750.0924954953190550.953752252340473
360.04838112934576190.09676225869152370.951618870654238
370.0509218482124330.1018436964248660.949078151787567
380.056907253955330.113814507910660.94309274604467
390.07875747767414980.1575149553483000.92124252232585
400.1680444578696020.3360889157392040.831955542130398
410.6345158659501730.7309682680996550.365484134049827
420.8776988653584470.2446022692831060.122301134641553
430.8434661682350850.3130676635298290.156533831764915
440.8699826355959880.2600347288080230.130017364404012







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0689655172413793NOK
5% type I error level90.310344827586207NOK
10% type I error level150.517241379310345NOK

\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 & 2 & 0.0689655172413793 & NOK \tabularnewline
5% type I error level & 9 & 0.310344827586207 & NOK \tabularnewline
10% type I error level & 15 & 0.517241379310345 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58039&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]2[/C][C]0.0689655172413793[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]9[/C][C]0.310344827586207[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]15[/C][C]0.517241379310345[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58039&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58039&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 level20.0689655172413793NOK
5% type I error level90.310344827586207NOK
10% type I error level150.517241379310345NOK



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