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 computationTue, 15 Dec 2009 07:57:54 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/15/t1260889193gspxkg5xnrayffp.htm/, Retrieved Sat, 04 May 2024 17:07:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67957, Retrieved Sat, 04 May 2024 17:07:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact154
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] [] [2009-11-18 12:06:02] [6ba840d2473f9a55d7b3e13093db69b8]
-    D        [Multiple Regression] [] [2009-12-15 14:57:54] [830aa0f7fb5acd5849dbc0c6ad889830] [Current]
-   PD          [Multiple Regression] [] [2009-12-21 11:18:14] [6ba840d2473f9a55d7b3e13093db69b8]
-    D          [Multiple Regression] [] [2009-12-21 11:50:01] [6ba840d2473f9a55d7b3e13093db69b8]
Feedback Forum

Post a new message
Dataseries X:
8.7	0
8.2	0
8.3	0
8.5	0
8.6	0
8.5	0
8.2	0
8.1	0
7.9	0
8.6	0
8.7	0
8.7	0
8.5	0
8.4	0
8.5	0
8.7	0
8.7	0
8.6	0
8.5	0
8.3	0
8	0
8.2	0
8.1	0
8.1	0
8	0
7.9	0
7.9	0
8	0
8	0
7.9	0
8	0
7.7	0
7.2	0
7.5	0
7.3	0
7	0
7	0
7	0
7.2	0
7.3	0
7.1	0
6.8	0
6.4	0
6.1	0
6.5	0
7.7	0
7.9	0
7.5	0
6.9	1
6.6	1
6.9	1
7.7	1
8	1
8	1
7.7	1
7.3	1
7.4	1
8.1	1
8.3	1
8.2	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=67957&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=67957&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 7.95875 -0.293749999999999X[t] -0.0800000000000069M1[t] -0.280000000000000M2[t] -0.14M3[t] + 0.140000000000000M4[t] + 0.179999999999999M5[t] + 0.0599999999999998M6[t] -0.14M7[t] -0.4M8[t] -0.5M9[t] + 0.120000000000000M10[t] + 0.160000000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  7.95875 -0.293749999999999X[t] -0.0800000000000069M1[t] -0.280000000000000M2[t] -0.14M3[t] +  0.140000000000000M4[t] +  0.179999999999999M5[t] +  0.0599999999999998M6[t] -0.14M7[t] -0.4M8[t] -0.5M9[t] +  0.120000000000000M10[t] +  0.160000000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67957&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  7.95875 -0.293749999999999X[t] -0.0800000000000069M1[t] -0.280000000000000M2[t] -0.14M3[t] +  0.140000000000000M4[t] +  0.179999999999999M5[t] +  0.0599999999999998M6[t] -0.14M7[t] -0.4M8[t] -0.5M9[t] +  0.120000000000000M10[t] +  0.160000000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67957&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 7.95875 -0.293749999999999X[t] -0.0800000000000069M1[t] -0.280000000000000M2[t] -0.14M3[t] + 0.140000000000000M4[t] + 0.179999999999999M5[t] + 0.0599999999999998M6[t] -0.14M7[t] -0.4M8[t] -0.5M9[t] + 0.120000000000000M10[t] + 0.160000000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7.958750.30930625.73100
X-0.2937499999999990.220933-1.32960.1900710.095035
M1-0.08000000000000690.432938-0.18480.8541930.427097
M2-0.2800000000000000.432938-0.64670.5209440.260472
M3-0.140.432938-0.32340.7478480.373924
M40.1400000000000000.4329380.32340.7478480.373924
M50.1799999999999990.4329380.41580.6794750.339737
M60.05999999999999980.4329380.13860.8903680.445184
M7-0.140.432938-0.32340.7478480.373924
M8-0.40.432938-0.92390.3602470.180124
M9-0.50.432938-1.15490.2539690.126985
M100.1200000000000000.4329380.27720.782860.39143
M110.1600000000000000.4329380.36960.7133640.356682

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 7.95875 & 0.309306 & 25.731 & 0 & 0 \tabularnewline
X & -0.293749999999999 & 0.220933 & -1.3296 & 0.190071 & 0.095035 \tabularnewline
M1 & -0.0800000000000069 & 0.432938 & -0.1848 & 0.854193 & 0.427097 \tabularnewline
M2 & -0.280000000000000 & 0.432938 & -0.6467 & 0.520944 & 0.260472 \tabularnewline
M3 & -0.14 & 0.432938 & -0.3234 & 0.747848 & 0.373924 \tabularnewline
M4 & 0.140000000000000 & 0.432938 & 0.3234 & 0.747848 & 0.373924 \tabularnewline
M5 & 0.179999999999999 & 0.432938 & 0.4158 & 0.679475 & 0.339737 \tabularnewline
M6 & 0.0599999999999998 & 0.432938 & 0.1386 & 0.890368 & 0.445184 \tabularnewline
M7 & -0.14 & 0.432938 & -0.3234 & 0.747848 & 0.373924 \tabularnewline
M8 & -0.4 & 0.432938 & -0.9239 & 0.360247 & 0.180124 \tabularnewline
M9 & -0.5 & 0.432938 & -1.1549 & 0.253969 & 0.126985 \tabularnewline
M10 & 0.120000000000000 & 0.432938 & 0.2772 & 0.78286 & 0.39143 \tabularnewline
M11 & 0.160000000000000 & 0.432938 & 0.3696 & 0.713364 & 0.356682 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67957&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]7.95875[/C][C]0.309306[/C][C]25.731[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.293749999999999[/C][C]0.220933[/C][C]-1.3296[/C][C]0.190071[/C][C]0.095035[/C][/ROW]
[ROW][C]M1[/C][C]-0.0800000000000069[/C][C]0.432938[/C][C]-0.1848[/C][C]0.854193[/C][C]0.427097[/C][/ROW]
[ROW][C]M2[/C][C]-0.280000000000000[/C][C]0.432938[/C][C]-0.6467[/C][C]0.520944[/C][C]0.260472[/C][/ROW]
[ROW][C]M3[/C][C]-0.14[/C][C]0.432938[/C][C]-0.3234[/C][C]0.747848[/C][C]0.373924[/C][/ROW]
[ROW][C]M4[/C][C]0.140000000000000[/C][C]0.432938[/C][C]0.3234[/C][C]0.747848[/C][C]0.373924[/C][/ROW]
[ROW][C]M5[/C][C]0.179999999999999[/C][C]0.432938[/C][C]0.4158[/C][C]0.679475[/C][C]0.339737[/C][/ROW]
[ROW][C]M6[/C][C]0.0599999999999998[/C][C]0.432938[/C][C]0.1386[/C][C]0.890368[/C][C]0.445184[/C][/ROW]
[ROW][C]M7[/C][C]-0.14[/C][C]0.432938[/C][C]-0.3234[/C][C]0.747848[/C][C]0.373924[/C][/ROW]
[ROW][C]M8[/C][C]-0.4[/C][C]0.432938[/C][C]-0.9239[/C][C]0.360247[/C][C]0.180124[/C][/ROW]
[ROW][C]M9[/C][C]-0.5[/C][C]0.432938[/C][C]-1.1549[/C][C]0.253969[/C][C]0.126985[/C][/ROW]
[ROW][C]M10[/C][C]0.120000000000000[/C][C]0.432938[/C][C]0.2772[/C][C]0.78286[/C][C]0.39143[/C][/ROW]
[ROW][C]M11[/C][C]0.160000000000000[/C][C]0.432938[/C][C]0.3696[/C][C]0.713364[/C][C]0.356682[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67957&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7.958750.30930625.73100
X-0.2937499999999990.220933-1.32960.1900710.095035
M1-0.08000000000000690.432938-0.18480.8541930.427097
M2-0.2800000000000000.432938-0.64670.5209440.260472
M3-0.140.432938-0.32340.7478480.373924
M40.1400000000000000.4329380.32340.7478480.373924
M50.1799999999999990.4329380.41580.6794750.339737
M60.05999999999999980.4329380.13860.8903680.445184
M7-0.140.432938-0.32340.7478480.373924
M8-0.40.432938-0.92390.3602470.180124
M9-0.50.432938-1.15490.2539690.126985
M100.1200000000000000.4329380.27720.782860.39143
M110.1600000000000000.4329380.36960.7133640.356682







Multiple Linear Regression - Regression Statistics
Multiple R0.377217626731188
R-squared0.142293137916710
Adjusted R-squared-0.0766958481471085
F-TEST (value)0.649773034134432
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.788671972191285
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.684534707635373
Sum Squared Residuals22.0236249999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.377217626731188 \tabularnewline
R-squared & 0.142293137916710 \tabularnewline
Adjusted R-squared & -0.0766958481471085 \tabularnewline
F-TEST (value) & 0.649773034134432 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.788671972191285 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.684534707635373 \tabularnewline
Sum Squared Residuals & 22.0236249999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67957&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.377217626731188[/C][/ROW]
[ROW][C]R-squared[/C][C]0.142293137916710[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0766958481471085[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.649773034134432[/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.788671972191285[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.684534707635373[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22.0236249999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67957&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67957&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.377217626731188
R-squared0.142293137916710
Adjusted R-squared-0.0766958481471085
F-TEST (value)0.649773034134432
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.788671972191285
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.684534707635373
Sum Squared Residuals22.0236249999999







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.77.878750000000030.821249999999974
28.27.678750.521249999999999
38.37.818750.481250000000001
48.58.098750.40125
58.68.138750.46125
68.58.018750.48125
78.27.818750.381249999999999
88.17.558750.54125
97.97.458750.44125
108.68.078750.52125
118.78.118750.581249999999999
128.77.958750.74125
138.57.878750.621250000000007
148.47.678750.721250000000001
158.57.818750.68125
168.78.098750.60125
178.78.138750.56125
188.68.018750.58125
198.57.818750.68125
208.37.558750.741250000000001
2187.458750.54125
228.28.078750.121250000000000
238.18.11875-0.0187500000000002
248.17.958750.141250000000000
2587.878750.121250000000007
267.97.678750.221250000000001
277.97.818750.0812500000000004
2888.09875-0.0987499999999997
2988.13875-0.138749999999999
307.98.01875-0.118749999999999
3187.818750.18125
327.77.558750.141250000000000
337.27.45875-0.25875
347.58.07875-0.57875
357.38.11875-0.81875
3677.95875-0.95875
3777.87875-0.878749999999993
3877.67875-0.67875
397.27.81875-0.61875
407.38.09875-0.79875
417.18.13875-1.03875
426.88.01875-1.21875
436.47.81875-1.41875
446.17.55875-1.45875
456.57.45875-0.95875
467.78.07875-0.378749999999999
477.98.11875-0.218749999999999
487.57.95875-0.45875
496.97.585-0.684999999999994
506.67.385-0.785
516.97.525-0.625
527.77.805-0.105000000000000
5387.8450.155
5487.7250.274999999999999
557.77.5250.175000000000000
567.37.2650.0349999999999992
577.47.1650.234999999999999
588.17.7850.314999999999999
598.37.8250.475
608.27.6650.534999999999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.7 & 7.87875000000003 & 0.821249999999974 \tabularnewline
2 & 8.2 & 7.67875 & 0.521249999999999 \tabularnewline
3 & 8.3 & 7.81875 & 0.481250000000001 \tabularnewline
4 & 8.5 & 8.09875 & 0.40125 \tabularnewline
5 & 8.6 & 8.13875 & 0.46125 \tabularnewline
6 & 8.5 & 8.01875 & 0.48125 \tabularnewline
7 & 8.2 & 7.81875 & 0.381249999999999 \tabularnewline
8 & 8.1 & 7.55875 & 0.54125 \tabularnewline
9 & 7.9 & 7.45875 & 0.44125 \tabularnewline
10 & 8.6 & 8.07875 & 0.52125 \tabularnewline
11 & 8.7 & 8.11875 & 0.581249999999999 \tabularnewline
12 & 8.7 & 7.95875 & 0.74125 \tabularnewline
13 & 8.5 & 7.87875 & 0.621250000000007 \tabularnewline
14 & 8.4 & 7.67875 & 0.721250000000001 \tabularnewline
15 & 8.5 & 7.81875 & 0.68125 \tabularnewline
16 & 8.7 & 8.09875 & 0.60125 \tabularnewline
17 & 8.7 & 8.13875 & 0.56125 \tabularnewline
18 & 8.6 & 8.01875 & 0.58125 \tabularnewline
19 & 8.5 & 7.81875 & 0.68125 \tabularnewline
20 & 8.3 & 7.55875 & 0.741250000000001 \tabularnewline
21 & 8 & 7.45875 & 0.54125 \tabularnewline
22 & 8.2 & 8.07875 & 0.121250000000000 \tabularnewline
23 & 8.1 & 8.11875 & -0.0187500000000002 \tabularnewline
24 & 8.1 & 7.95875 & 0.141250000000000 \tabularnewline
25 & 8 & 7.87875 & 0.121250000000007 \tabularnewline
26 & 7.9 & 7.67875 & 0.221250000000001 \tabularnewline
27 & 7.9 & 7.81875 & 0.0812500000000004 \tabularnewline
28 & 8 & 8.09875 & -0.0987499999999997 \tabularnewline
29 & 8 & 8.13875 & -0.138749999999999 \tabularnewline
30 & 7.9 & 8.01875 & -0.118749999999999 \tabularnewline
31 & 8 & 7.81875 & 0.18125 \tabularnewline
32 & 7.7 & 7.55875 & 0.141250000000000 \tabularnewline
33 & 7.2 & 7.45875 & -0.25875 \tabularnewline
34 & 7.5 & 8.07875 & -0.57875 \tabularnewline
35 & 7.3 & 8.11875 & -0.81875 \tabularnewline
36 & 7 & 7.95875 & -0.95875 \tabularnewline
37 & 7 & 7.87875 & -0.878749999999993 \tabularnewline
38 & 7 & 7.67875 & -0.67875 \tabularnewline
39 & 7.2 & 7.81875 & -0.61875 \tabularnewline
40 & 7.3 & 8.09875 & -0.79875 \tabularnewline
41 & 7.1 & 8.13875 & -1.03875 \tabularnewline
42 & 6.8 & 8.01875 & -1.21875 \tabularnewline
43 & 6.4 & 7.81875 & -1.41875 \tabularnewline
44 & 6.1 & 7.55875 & -1.45875 \tabularnewline
45 & 6.5 & 7.45875 & -0.95875 \tabularnewline
46 & 7.7 & 8.07875 & -0.378749999999999 \tabularnewline
47 & 7.9 & 8.11875 & -0.218749999999999 \tabularnewline
48 & 7.5 & 7.95875 & -0.45875 \tabularnewline
49 & 6.9 & 7.585 & -0.684999999999994 \tabularnewline
50 & 6.6 & 7.385 & -0.785 \tabularnewline
51 & 6.9 & 7.525 & -0.625 \tabularnewline
52 & 7.7 & 7.805 & -0.105000000000000 \tabularnewline
53 & 8 & 7.845 & 0.155 \tabularnewline
54 & 8 & 7.725 & 0.274999999999999 \tabularnewline
55 & 7.7 & 7.525 & 0.175000000000000 \tabularnewline
56 & 7.3 & 7.265 & 0.0349999999999992 \tabularnewline
57 & 7.4 & 7.165 & 0.234999999999999 \tabularnewline
58 & 8.1 & 7.785 & 0.314999999999999 \tabularnewline
59 & 8.3 & 7.825 & 0.475 \tabularnewline
60 & 8.2 & 7.665 & 0.534999999999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67957&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.7[/C][C]7.87875000000003[/C][C]0.821249999999974[/C][/ROW]
[ROW][C]2[/C][C]8.2[/C][C]7.67875[/C][C]0.521249999999999[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]7.81875[/C][C]0.481250000000001[/C][/ROW]
[ROW][C]4[/C][C]8.5[/C][C]8.09875[/C][C]0.40125[/C][/ROW]
[ROW][C]5[/C][C]8.6[/C][C]8.13875[/C][C]0.46125[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.01875[/C][C]0.48125[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]7.81875[/C][C]0.381249999999999[/C][/ROW]
[ROW][C]8[/C][C]8.1[/C][C]7.55875[/C][C]0.54125[/C][/ROW]
[ROW][C]9[/C][C]7.9[/C][C]7.45875[/C][C]0.44125[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.07875[/C][C]0.52125[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.11875[/C][C]0.581249999999999[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]7.95875[/C][C]0.74125[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]7.87875[/C][C]0.621250000000007[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]7.67875[/C][C]0.721250000000001[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]7.81875[/C][C]0.68125[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.09875[/C][C]0.60125[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.13875[/C][C]0.56125[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.01875[/C][C]0.58125[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]7.81875[/C][C]0.68125[/C][/ROW]
[ROW][C]20[/C][C]8.3[/C][C]7.55875[/C][C]0.741250000000001[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]7.45875[/C][C]0.54125[/C][/ROW]
[ROW][C]22[/C][C]8.2[/C][C]8.07875[/C][C]0.121250000000000[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]8.11875[/C][C]-0.0187500000000002[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]7.95875[/C][C]0.141250000000000[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.87875[/C][C]0.121250000000007[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.67875[/C][C]0.221250000000001[/C][/ROW]
[ROW][C]27[/C][C]7.9[/C][C]7.81875[/C][C]0.0812500000000004[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]8.09875[/C][C]-0.0987499999999997[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]8.13875[/C][C]-0.138749999999999[/C][/ROW]
[ROW][C]30[/C][C]7.9[/C][C]8.01875[/C][C]-0.118749999999999[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.81875[/C][C]0.18125[/C][/ROW]
[ROW][C]32[/C][C]7.7[/C][C]7.55875[/C][C]0.141250000000000[/C][/ROW]
[ROW][C]33[/C][C]7.2[/C][C]7.45875[/C][C]-0.25875[/C][/ROW]
[ROW][C]34[/C][C]7.5[/C][C]8.07875[/C][C]-0.57875[/C][/ROW]
[ROW][C]35[/C][C]7.3[/C][C]8.11875[/C][C]-0.81875[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]7.95875[/C][C]-0.95875[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.87875[/C][C]-0.878749999999993[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.67875[/C][C]-0.67875[/C][/ROW]
[ROW][C]39[/C][C]7.2[/C][C]7.81875[/C][C]-0.61875[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]8.09875[/C][C]-0.79875[/C][/ROW]
[ROW][C]41[/C][C]7.1[/C][C]8.13875[/C][C]-1.03875[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]8.01875[/C][C]-1.21875[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]7.81875[/C][C]-1.41875[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]7.55875[/C][C]-1.45875[/C][/ROW]
[ROW][C]45[/C][C]6.5[/C][C]7.45875[/C][C]-0.95875[/C][/ROW]
[ROW][C]46[/C][C]7.7[/C][C]8.07875[/C][C]-0.378749999999999[/C][/ROW]
[ROW][C]47[/C][C]7.9[/C][C]8.11875[/C][C]-0.218749999999999[/C][/ROW]
[ROW][C]48[/C][C]7.5[/C][C]7.95875[/C][C]-0.45875[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]7.585[/C][C]-0.684999999999994[/C][/ROW]
[ROW][C]50[/C][C]6.6[/C][C]7.385[/C][C]-0.785[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.525[/C][C]-0.625[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.805[/C][C]-0.105000000000000[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]7.845[/C][C]0.155[/C][/ROW]
[ROW][C]54[/C][C]8[/C][C]7.725[/C][C]0.274999999999999[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.525[/C][C]0.175000000000000[/C][/ROW]
[ROW][C]56[/C][C]7.3[/C][C]7.265[/C][C]0.0349999999999992[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]7.165[/C][C]0.234999999999999[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]7.785[/C][C]0.314999999999999[/C][/ROW]
[ROW][C]59[/C][C]8.3[/C][C]7.825[/C][C]0.475[/C][/ROW]
[ROW][C]60[/C][C]8.2[/C][C]7.665[/C][C]0.534999999999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67957&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67957&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.77.878750000000030.821249999999974
28.27.678750.521249999999999
38.37.818750.481250000000001
48.58.098750.40125
58.68.138750.46125
68.58.018750.48125
78.27.818750.381249999999999
88.17.558750.54125
97.97.458750.44125
108.68.078750.52125
118.78.118750.581249999999999
128.77.958750.74125
138.57.878750.621250000000007
148.47.678750.721250000000001
158.57.818750.68125
168.78.098750.60125
178.78.138750.56125
188.68.018750.58125
198.57.818750.68125
208.37.558750.741250000000001
2187.458750.54125
228.28.078750.121250000000000
238.18.11875-0.0187500000000002
248.17.958750.141250000000000
2587.878750.121250000000007
267.97.678750.221250000000001
277.97.818750.0812500000000004
2888.09875-0.0987499999999997
2988.13875-0.138749999999999
307.98.01875-0.118749999999999
3187.818750.18125
327.77.558750.141250000000000
337.27.45875-0.25875
347.58.07875-0.57875
357.38.11875-0.81875
3677.95875-0.95875
3777.87875-0.878749999999993
3877.67875-0.67875
397.27.81875-0.61875
407.38.09875-0.79875
417.18.13875-1.03875
426.88.01875-1.21875
436.47.81875-1.41875
446.17.55875-1.45875
456.57.45875-0.95875
467.78.07875-0.378749999999999
477.98.11875-0.218749999999999
487.57.95875-0.45875
496.97.585-0.684999999999994
506.67.385-0.785
516.97.525-0.625
527.77.805-0.105000000000000
5387.8450.155
5487.7250.274999999999999
557.77.5250.175000000000000
567.37.2650.0349999999999992
577.47.1650.234999999999999
588.17.7850.314999999999999
598.37.8250.475
608.27.6650.534999999999999







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02051975807551310.04103951615102620.979480241924487
170.00507157481046080.01014314962092160.99492842518954
180.001274570580502080.002549141161004150.998725429419498
190.0009485293226886570.001897058645377310.999051470677311
200.0004784592705686710.0009569185411373430.999521540729431
210.0001643123728525290.0003286247457050590.999835687627147
220.0002129110426419890.0004258220852839770.999787088957358
230.000683456838411960.001366913676823920.999316543161588
240.001310397087731690.002620794175463390.998689602912268
250.004064270006368840.008128540012737670.995935729993631
260.006259466670972830.01251893334194570.993740533329027
270.01079315012537540.02158630025075090.989206849874624
280.01739828589135570.03479657178271140.982601714108644
290.02785914362444140.05571828724888270.972140856375559
300.0427001056331850.085400211266370.957299894366815
310.07755433389494880.1551086677898980.922445666105051
320.2183653984541980.4367307969083960.781634601545802
330.2970529972346620.5941059944693230.702947002765338
340.3472130124985740.6944260249971480.652786987501426
350.4838418722169990.9676837444339970.516158127783001
360.6713525438207070.6572949123585860.328647456179293
370.798616656350.40276668730.20138334365
380.923641830866160.1527163382676810.0763581691338403
390.9871291905357060.02574161892858810.0128708094642941
400.9873462726778450.02530745464430970.0126537273221548
410.9770631723211450.04587365535770910.0229368276788545
420.9702663810021380.05946723799572460.0297336189978623
430.9754864781137870.04902704377242630.0245135218862131
440.9839615459429380.03207690811412470.0160384540570623

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0205197580755131 & 0.0410395161510262 & 0.979480241924487 \tabularnewline
17 & 0.0050715748104608 & 0.0101431496209216 & 0.99492842518954 \tabularnewline
18 & 0.00127457058050208 & 0.00254914116100415 & 0.998725429419498 \tabularnewline
19 & 0.000948529322688657 & 0.00189705864537731 & 0.999051470677311 \tabularnewline
20 & 0.000478459270568671 & 0.000956918541137343 & 0.999521540729431 \tabularnewline
21 & 0.000164312372852529 & 0.000328624745705059 & 0.999835687627147 \tabularnewline
22 & 0.000212911042641989 & 0.000425822085283977 & 0.999787088957358 \tabularnewline
23 & 0.00068345683841196 & 0.00136691367682392 & 0.999316543161588 \tabularnewline
24 & 0.00131039708773169 & 0.00262079417546339 & 0.998689602912268 \tabularnewline
25 & 0.00406427000636884 & 0.00812854001273767 & 0.995935729993631 \tabularnewline
26 & 0.00625946667097283 & 0.0125189333419457 & 0.993740533329027 \tabularnewline
27 & 0.0107931501253754 & 0.0215863002507509 & 0.989206849874624 \tabularnewline
28 & 0.0173982858913557 & 0.0347965717827114 & 0.982601714108644 \tabularnewline
29 & 0.0278591436244414 & 0.0557182872488827 & 0.972140856375559 \tabularnewline
30 & 0.042700105633185 & 0.08540021126637 & 0.957299894366815 \tabularnewline
31 & 0.0775543338949488 & 0.155108667789898 & 0.922445666105051 \tabularnewline
32 & 0.218365398454198 & 0.436730796908396 & 0.781634601545802 \tabularnewline
33 & 0.297052997234662 & 0.594105994469323 & 0.702947002765338 \tabularnewline
34 & 0.347213012498574 & 0.694426024997148 & 0.652786987501426 \tabularnewline
35 & 0.483841872216999 & 0.967683744433997 & 0.516158127783001 \tabularnewline
36 & 0.671352543820707 & 0.657294912358586 & 0.328647456179293 \tabularnewline
37 & 0.79861665635 & 0.4027666873 & 0.20138334365 \tabularnewline
38 & 0.92364183086616 & 0.152716338267681 & 0.0763581691338403 \tabularnewline
39 & 0.987129190535706 & 0.0257416189285881 & 0.0128708094642941 \tabularnewline
40 & 0.987346272677845 & 0.0253074546443097 & 0.0126537273221548 \tabularnewline
41 & 0.977063172321145 & 0.0458736553577091 & 0.0229368276788545 \tabularnewline
42 & 0.970266381002138 & 0.0594672379957246 & 0.0297336189978623 \tabularnewline
43 & 0.975486478113787 & 0.0490270437724263 & 0.0245135218862131 \tabularnewline
44 & 0.983961545942938 & 0.0320769081141247 & 0.0160384540570623 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67957&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.0205197580755131[/C][C]0.0410395161510262[/C][C]0.979480241924487[/C][/ROW]
[ROW][C]17[/C][C]0.0050715748104608[/C][C]0.0101431496209216[/C][C]0.99492842518954[/C][/ROW]
[ROW][C]18[/C][C]0.00127457058050208[/C][C]0.00254914116100415[/C][C]0.998725429419498[/C][/ROW]
[ROW][C]19[/C][C]0.000948529322688657[/C][C]0.00189705864537731[/C][C]0.999051470677311[/C][/ROW]
[ROW][C]20[/C][C]0.000478459270568671[/C][C]0.000956918541137343[/C][C]0.999521540729431[/C][/ROW]
[ROW][C]21[/C][C]0.000164312372852529[/C][C]0.000328624745705059[/C][C]0.999835687627147[/C][/ROW]
[ROW][C]22[/C][C]0.000212911042641989[/C][C]0.000425822085283977[/C][C]0.999787088957358[/C][/ROW]
[ROW][C]23[/C][C]0.00068345683841196[/C][C]0.00136691367682392[/C][C]0.999316543161588[/C][/ROW]
[ROW][C]24[/C][C]0.00131039708773169[/C][C]0.00262079417546339[/C][C]0.998689602912268[/C][/ROW]
[ROW][C]25[/C][C]0.00406427000636884[/C][C]0.00812854001273767[/C][C]0.995935729993631[/C][/ROW]
[ROW][C]26[/C][C]0.00625946667097283[/C][C]0.0125189333419457[/C][C]0.993740533329027[/C][/ROW]
[ROW][C]27[/C][C]0.0107931501253754[/C][C]0.0215863002507509[/C][C]0.989206849874624[/C][/ROW]
[ROW][C]28[/C][C]0.0173982858913557[/C][C]0.0347965717827114[/C][C]0.982601714108644[/C][/ROW]
[ROW][C]29[/C][C]0.0278591436244414[/C][C]0.0557182872488827[/C][C]0.972140856375559[/C][/ROW]
[ROW][C]30[/C][C]0.042700105633185[/C][C]0.08540021126637[/C][C]0.957299894366815[/C][/ROW]
[ROW][C]31[/C][C]0.0775543338949488[/C][C]0.155108667789898[/C][C]0.922445666105051[/C][/ROW]
[ROW][C]32[/C][C]0.218365398454198[/C][C]0.436730796908396[/C][C]0.781634601545802[/C][/ROW]
[ROW][C]33[/C][C]0.297052997234662[/C][C]0.594105994469323[/C][C]0.702947002765338[/C][/ROW]
[ROW][C]34[/C][C]0.347213012498574[/C][C]0.694426024997148[/C][C]0.652786987501426[/C][/ROW]
[ROW][C]35[/C][C]0.483841872216999[/C][C]0.967683744433997[/C][C]0.516158127783001[/C][/ROW]
[ROW][C]36[/C][C]0.671352543820707[/C][C]0.657294912358586[/C][C]0.328647456179293[/C][/ROW]
[ROW][C]37[/C][C]0.79861665635[/C][C]0.4027666873[/C][C]0.20138334365[/C][/ROW]
[ROW][C]38[/C][C]0.92364183086616[/C][C]0.152716338267681[/C][C]0.0763581691338403[/C][/ROW]
[ROW][C]39[/C][C]0.987129190535706[/C][C]0.0257416189285881[/C][C]0.0128708094642941[/C][/ROW]
[ROW][C]40[/C][C]0.987346272677845[/C][C]0.0253074546443097[/C][C]0.0126537273221548[/C][/ROW]
[ROW][C]41[/C][C]0.977063172321145[/C][C]0.0458736553577091[/C][C]0.0229368276788545[/C][/ROW]
[ROW][C]42[/C][C]0.970266381002138[/C][C]0.0594672379957246[/C][C]0.0297336189978623[/C][/ROW]
[ROW][C]43[/C][C]0.975486478113787[/C][C]0.0490270437724263[/C][C]0.0245135218862131[/C][/ROW]
[ROW][C]44[/C][C]0.983961545942938[/C][C]0.0320769081141247[/C][C]0.0160384540570623[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67957&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67957&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.02051975807551310.04103951615102620.979480241924487
170.00507157481046080.01014314962092160.99492842518954
180.001274570580502080.002549141161004150.998725429419498
190.0009485293226886570.001897058645377310.999051470677311
200.0004784592705686710.0009569185411373430.999521540729431
210.0001643123728525290.0003286247457050590.999835687627147
220.0002129110426419890.0004258220852839770.999787088957358
230.000683456838411960.001366913676823920.999316543161588
240.001310397087731690.002620794175463390.998689602912268
250.004064270006368840.008128540012737670.995935729993631
260.006259466670972830.01251893334194570.993740533329027
270.01079315012537540.02158630025075090.989206849874624
280.01739828589135570.03479657178271140.982601714108644
290.02785914362444140.05571828724888270.972140856375559
300.0427001056331850.085400211266370.957299894366815
310.07755433389494880.1551086677898980.922445666105051
320.2183653984541980.4367307969083960.781634601545802
330.2970529972346620.5941059944693230.702947002765338
340.3472130124985740.6944260249971480.652786987501426
350.4838418722169990.9676837444339970.516158127783001
360.6713525438207070.6572949123585860.328647456179293
370.798616656350.40276668730.20138334365
380.923641830866160.1527163382676810.0763581691338403
390.9871291905357060.02574161892858810.0128708094642941
400.9873462726778450.02530745464430970.0126537273221548
410.9770631723211450.04587365535770910.0229368276788545
420.9702663810021380.05946723799572460.0297336189978623
430.9754864781137870.04902704377242630.0245135218862131
440.9839615459429380.03207690811412470.0160384540570623







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.275862068965517NOK
5% type I error level180.620689655172414NOK
10% type I error level210.724137931034483NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67957&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 level80.275862068965517NOK
5% type I error level180.620689655172414NOK
10% type I error level210.724137931034483NOK



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