Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 20 Dec 2008 10:12:17 -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/2008/Dec/20/t1229793422yv6xw978kauuwmg.htm/, Retrieved Sun, 19 May 2024 09:18:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=35425, Retrieved Sun, 19 May 2024 09:18:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact142
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2008-12-20 14:30:39] [26613835c1ac4f0077f6e0b9d2a8875e]
-    D    [Multiple Regression] [Productie consump...] [2008-12-20 17:12:17] [af8fa2ce3787e7eb62013778260b011d] [Current]
Feedback Forum

Post a new message
Dataseries X:
98.6	0
98	0
106.8	0
96.6	0
100.1	0
107.7	0
91.5	0
97.8	0
107.4	1
117.5	1
105.6	1
97.4	1
99.5	1
98	1
104.3	1
100.6	1
101.1	1
103.9	1
96.9	1
95.5	1
108.4	1
117	1
103.8	1
100.8	1
110.6	1
104	1
112.6	1
107.3	1
98.9	1
109.8	1
104.9	1
102.2	1
123.9	1
124.9	1
112.7	1
121.9	1
100.6	1
104.3	1
120.4	1
107.5	1
102.9	1
125.6	1
107.5	1
108.8	1
128.4	1
121.1	1
119.5	1
128.7	1
108.7	1
105.5	1
119.8	1
111.3	1
110.6	1
120.1	1
97.5	1
107.7	1
127.3	1
117.2	1
119.8	1
116.2	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 6 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35425&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35425&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Productie[t] = + 104.1803125 -2.75468749999998Dummy[t] -6.41432291666669M1[t] -8.37583333333333M2[t] + 2.12265625000000M3[t] -6.31885416666666M4[t] -8.58036458333332M5[t] + 1.79812500000000M6[t] -12.2833854166667M7[t] -9.86489583333332M8[t] + 7.04453125M9[t] + 7.18302083333334M10[t] -0.398489583333333M11[t] + 0.321510416666667t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Productie[t] =  +  104.1803125 -2.75468749999998Dummy[t] -6.41432291666669M1[t] -8.37583333333333M2[t] +  2.12265625000000M3[t] -6.31885416666666M4[t] -8.58036458333332M5[t] +  1.79812500000000M6[t] -12.2833854166667M7[t] -9.86489583333332M8[t] +  7.04453125M9[t] +  7.18302083333334M10[t] -0.398489583333333M11[t] +  0.321510416666667t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35425&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Productie[t] =  +  104.1803125 -2.75468749999998Dummy[t] -6.41432291666669M1[t] -8.37583333333333M2[t] +  2.12265625000000M3[t] -6.31885416666666M4[t] -8.58036458333332M5[t] +  1.79812500000000M6[t] -12.2833854166667M7[t] -9.86489583333332M8[t] +  7.04453125M9[t] +  7.18302083333334M10[t] -0.398489583333333M11[t] +  0.321510416666667t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35425&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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
Productie[t] = + 104.1803125 -2.75468749999998Dummy[t] -6.41432291666669M1[t] -8.37583333333333M2[t] + 2.12265625000000M3[t] -6.31885416666666M4[t] -8.58036458333332M5[t] + 1.79812500000000M6[t] -12.2833854166667M7[t] -9.86489583333332M8[t] + 7.04453125M9[t] + 7.18302083333334M10[t] -0.398489583333333M11[t] + 0.321510416666667t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)104.18031253.0497234.160600
Dummy-2.754687499999982.462871-1.11850.2691660.134583
M1-6.414322916666693.251169-1.97290.0545310.027265
M2-8.375833333333333.248058-2.57870.0131820.006591
M32.122656250000003.2456360.6540.5163660.258183
M4-6.318854166666663.243906-1.94790.0575420.028771
M5-8.580364583333323.242867-2.64590.0111130.005557
M61.798125000000003.242520.55450.5818920.290946
M7-12.28338541666673.242867-3.78780.000440.00022
M8-9.864895833333323.243906-3.04110.0038840.001942
M97.044531253.2206222.18730.033840.01692
M107.183020833333343.2188772.23150.030560.01528
M11-0.3984895833333333.21783-0.12380.9019830.450992
t0.3215104166666670.0473986.783200

\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) & 104.1803125 & 3.04972 & 34.1606 & 0 & 0 \tabularnewline
Dummy & -2.75468749999998 & 2.462871 & -1.1185 & 0.269166 & 0.134583 \tabularnewline
M1 & -6.41432291666669 & 3.251169 & -1.9729 & 0.054531 & 0.027265 \tabularnewline
M2 & -8.37583333333333 & 3.248058 & -2.5787 & 0.013182 & 0.006591 \tabularnewline
M3 & 2.12265625000000 & 3.245636 & 0.654 & 0.516366 & 0.258183 \tabularnewline
M4 & -6.31885416666666 & 3.243906 & -1.9479 & 0.057542 & 0.028771 \tabularnewline
M5 & -8.58036458333332 & 3.242867 & -2.6459 & 0.011113 & 0.005557 \tabularnewline
M6 & 1.79812500000000 & 3.24252 & 0.5545 & 0.581892 & 0.290946 \tabularnewline
M7 & -12.2833854166667 & 3.242867 & -3.7878 & 0.00044 & 0.00022 \tabularnewline
M8 & -9.86489583333332 & 3.243906 & -3.0411 & 0.003884 & 0.001942 \tabularnewline
M9 & 7.04453125 & 3.220622 & 2.1873 & 0.03384 & 0.01692 \tabularnewline
M10 & 7.18302083333334 & 3.218877 & 2.2315 & 0.03056 & 0.01528 \tabularnewline
M11 & -0.398489583333333 & 3.21783 & -0.1238 & 0.901983 & 0.450992 \tabularnewline
t & 0.321510416666667 & 0.047398 & 6.7832 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35425&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]104.1803125[/C][C]3.04972[/C][C]34.1606[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]-2.75468749999998[/C][C]2.462871[/C][C]-1.1185[/C][C]0.269166[/C][C]0.134583[/C][/ROW]
[ROW][C]M1[/C][C]-6.41432291666669[/C][C]3.251169[/C][C]-1.9729[/C][C]0.054531[/C][C]0.027265[/C][/ROW]
[ROW][C]M2[/C][C]-8.37583333333333[/C][C]3.248058[/C][C]-2.5787[/C][C]0.013182[/C][C]0.006591[/C][/ROW]
[ROW][C]M3[/C][C]2.12265625000000[/C][C]3.245636[/C][C]0.654[/C][C]0.516366[/C][C]0.258183[/C][/ROW]
[ROW][C]M4[/C][C]-6.31885416666666[/C][C]3.243906[/C][C]-1.9479[/C][C]0.057542[/C][C]0.028771[/C][/ROW]
[ROW][C]M5[/C][C]-8.58036458333332[/C][C]3.242867[/C][C]-2.6459[/C][C]0.011113[/C][C]0.005557[/C][/ROW]
[ROW][C]M6[/C][C]1.79812500000000[/C][C]3.24252[/C][C]0.5545[/C][C]0.581892[/C][C]0.290946[/C][/ROW]
[ROW][C]M7[/C][C]-12.2833854166667[/C][C]3.242867[/C][C]-3.7878[/C][C]0.00044[/C][C]0.00022[/C][/ROW]
[ROW][C]M8[/C][C]-9.86489583333332[/C][C]3.243906[/C][C]-3.0411[/C][C]0.003884[/C][C]0.001942[/C][/ROW]
[ROW][C]M9[/C][C]7.04453125[/C][C]3.220622[/C][C]2.1873[/C][C]0.03384[/C][C]0.01692[/C][/ROW]
[ROW][C]M10[/C][C]7.18302083333334[/C][C]3.218877[/C][C]2.2315[/C][C]0.03056[/C][C]0.01528[/C][/ROW]
[ROW][C]M11[/C][C]-0.398489583333333[/C][C]3.21783[/C][C]-0.1238[/C][C]0.901983[/C][C]0.450992[/C][/ROW]
[ROW][C]t[/C][C]0.321510416666667[/C][C]0.047398[/C][C]6.7832[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35425&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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)104.18031253.0497234.160600
Dummy-2.754687499999982.462871-1.11850.2691660.134583
M1-6.414322916666693.251169-1.97290.0545310.027265
M2-8.375833333333333.248058-2.57870.0131820.006591
M32.122656250000003.2456360.6540.5163660.258183
M4-6.318854166666663.243906-1.94790.0575420.028771
M5-8.580364583333323.242867-2.64590.0111130.005557
M61.798125000000003.242520.55450.5818920.290946
M7-12.28338541666673.242867-3.78780.000440.00022
M8-9.864895833333323.243906-3.04110.0038840.001942
M97.044531253.2206222.18730.033840.01692
M107.183020833333343.2188772.23150.030560.01528
M11-0.3984895833333333.21783-0.12380.9019830.450992
t0.3215104166666670.0473986.783200







Multiple Linear Regression - Regression Statistics
Multiple R0.882613549448699
R-squared0.77900667767043
Adjusted R-squared0.71655204309903
F-TEST (value)12.4731604470417
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.95119500953933e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.08728413974276
Sum Squared Residuals1190.50115625

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.882613549448699 \tabularnewline
R-squared & 0.77900667767043 \tabularnewline
Adjusted R-squared & 0.71655204309903 \tabularnewline
F-TEST (value) & 12.4731604470417 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 4.95119500953933e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.08728413974276 \tabularnewline
Sum Squared Residuals & 1190.50115625 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35425&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.882613549448699[/C][/ROW]
[ROW][C]R-squared[/C][C]0.77900667767043[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.71655204309903[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]12.4731604470417[/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]4.95119500953933e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.08728413974276[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1190.50115625[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35425&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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.882613549448699
R-squared0.77900667767043
Adjusted R-squared0.71655204309903
F-TEST (value)12.4731604470417
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.95119500953933e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.08728413974276
Sum Squared Residuals1190.50115625







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
198.698.08750.512499999999898
29896.44751.55250000000002
3106.8107.2675-0.467499999999983
496.699.1475-2.54749999999999
5100.197.20752.89250000000001
6107.7107.9075-0.207499999999979
791.594.1475-2.64749999999998
897.896.88750.912500000000011
9107.4111.36375-3.96375
10117.5111.823755.67625
11105.6104.563751.03624999999999
1297.4105.28375-7.88375
1399.599.19093750.309062500000025
149897.55093750.449062499999989
15104.3108.3709375-4.07093750000000
16100.6100.25093750.349062499999992
17101.198.31093752.78906249999999
18103.9109.0109375-5.1109375
1996.995.25093751.64906250000000
2095.597.9909375-2.49093750000000
21108.4115.221875-6.821875
22117115.6818751.318125
23103.8108.421875-4.621875
24100.8109.141875-8.341875
25110.6103.04906257.55093750000002
26104101.40906252.5909375
27112.6112.22906250.370937499999991
28107.3104.10906253.1909375
2998.9102.1690625-3.26906250000000
30109.8112.8690625-3.06906250000001
31104.999.10906255.7909375
32102.2101.84906250.350937499999998
33123.9119.084.82
34124.9119.545.36000000000001
35112.7112.280.420000000000004
36121.91138.9
37100.6106.9071875-6.30718749999998
38104.3105.2671875-0.967187500000004
39120.4116.08718754.3128125
40107.5107.9671875-0.467187499999998
41102.9106.0271875-3.12718750000000
42125.6116.72718758.8728125
43107.5102.96718754.53281249999999
44108.8105.70718753.09281249999999
45128.4122.9381255.461875
46121.1123.398125-2.29812500000000
47119.5116.1381253.36187500000000
48128.7116.85812511.8418750000000
49108.7110.7653125-2.06531249999997
50105.5109.1253125-3.6253125
51119.8119.9453125-0.145312500000004
52111.3111.8253125-0.525312500000003
53110.6109.88531250.714687499999991
54120.1120.5853125-0.485312500000008
5597.5106.8253125-9.3253125
56107.7109.5653125-1.8653125
57127.3126.796250.503749999999992
58117.2127.25625-10.05625
59119.8119.99625-0.196250000000002
60116.2120.71625-4.51624999999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 98.6 & 98.0875 & 0.512499999999898 \tabularnewline
2 & 98 & 96.4475 & 1.55250000000002 \tabularnewline
3 & 106.8 & 107.2675 & -0.467499999999983 \tabularnewline
4 & 96.6 & 99.1475 & -2.54749999999999 \tabularnewline
5 & 100.1 & 97.2075 & 2.89250000000001 \tabularnewline
6 & 107.7 & 107.9075 & -0.207499999999979 \tabularnewline
7 & 91.5 & 94.1475 & -2.64749999999998 \tabularnewline
8 & 97.8 & 96.8875 & 0.912500000000011 \tabularnewline
9 & 107.4 & 111.36375 & -3.96375 \tabularnewline
10 & 117.5 & 111.82375 & 5.67625 \tabularnewline
11 & 105.6 & 104.56375 & 1.03624999999999 \tabularnewline
12 & 97.4 & 105.28375 & -7.88375 \tabularnewline
13 & 99.5 & 99.1909375 & 0.309062500000025 \tabularnewline
14 & 98 & 97.5509375 & 0.449062499999989 \tabularnewline
15 & 104.3 & 108.3709375 & -4.07093750000000 \tabularnewline
16 & 100.6 & 100.2509375 & 0.349062499999992 \tabularnewline
17 & 101.1 & 98.3109375 & 2.78906249999999 \tabularnewline
18 & 103.9 & 109.0109375 & -5.1109375 \tabularnewline
19 & 96.9 & 95.2509375 & 1.64906250000000 \tabularnewline
20 & 95.5 & 97.9909375 & -2.49093750000000 \tabularnewline
21 & 108.4 & 115.221875 & -6.821875 \tabularnewline
22 & 117 & 115.681875 & 1.318125 \tabularnewline
23 & 103.8 & 108.421875 & -4.621875 \tabularnewline
24 & 100.8 & 109.141875 & -8.341875 \tabularnewline
25 & 110.6 & 103.0490625 & 7.55093750000002 \tabularnewline
26 & 104 & 101.4090625 & 2.5909375 \tabularnewline
27 & 112.6 & 112.2290625 & 0.370937499999991 \tabularnewline
28 & 107.3 & 104.1090625 & 3.1909375 \tabularnewline
29 & 98.9 & 102.1690625 & -3.26906250000000 \tabularnewline
30 & 109.8 & 112.8690625 & -3.06906250000001 \tabularnewline
31 & 104.9 & 99.1090625 & 5.7909375 \tabularnewline
32 & 102.2 & 101.8490625 & 0.350937499999998 \tabularnewline
33 & 123.9 & 119.08 & 4.82 \tabularnewline
34 & 124.9 & 119.54 & 5.36000000000001 \tabularnewline
35 & 112.7 & 112.28 & 0.420000000000004 \tabularnewline
36 & 121.9 & 113 & 8.9 \tabularnewline
37 & 100.6 & 106.9071875 & -6.30718749999998 \tabularnewline
38 & 104.3 & 105.2671875 & -0.967187500000004 \tabularnewline
39 & 120.4 & 116.0871875 & 4.3128125 \tabularnewline
40 & 107.5 & 107.9671875 & -0.467187499999998 \tabularnewline
41 & 102.9 & 106.0271875 & -3.12718750000000 \tabularnewline
42 & 125.6 & 116.7271875 & 8.8728125 \tabularnewline
43 & 107.5 & 102.9671875 & 4.53281249999999 \tabularnewline
44 & 108.8 & 105.7071875 & 3.09281249999999 \tabularnewline
45 & 128.4 & 122.938125 & 5.461875 \tabularnewline
46 & 121.1 & 123.398125 & -2.29812500000000 \tabularnewline
47 & 119.5 & 116.138125 & 3.36187500000000 \tabularnewline
48 & 128.7 & 116.858125 & 11.8418750000000 \tabularnewline
49 & 108.7 & 110.7653125 & -2.06531249999997 \tabularnewline
50 & 105.5 & 109.1253125 & -3.6253125 \tabularnewline
51 & 119.8 & 119.9453125 & -0.145312500000004 \tabularnewline
52 & 111.3 & 111.8253125 & -0.525312500000003 \tabularnewline
53 & 110.6 & 109.8853125 & 0.714687499999991 \tabularnewline
54 & 120.1 & 120.5853125 & -0.485312500000008 \tabularnewline
55 & 97.5 & 106.8253125 & -9.3253125 \tabularnewline
56 & 107.7 & 109.5653125 & -1.8653125 \tabularnewline
57 & 127.3 & 126.79625 & 0.503749999999992 \tabularnewline
58 & 117.2 & 127.25625 & -10.05625 \tabularnewline
59 & 119.8 & 119.99625 & -0.196250000000002 \tabularnewline
60 & 116.2 & 120.71625 & -4.51624999999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35425&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]98.6[/C][C]98.0875[/C][C]0.512499999999898[/C][/ROW]
[ROW][C]2[/C][C]98[/C][C]96.4475[/C][C]1.55250000000002[/C][/ROW]
[ROW][C]3[/C][C]106.8[/C][C]107.2675[/C][C]-0.467499999999983[/C][/ROW]
[ROW][C]4[/C][C]96.6[/C][C]99.1475[/C][C]-2.54749999999999[/C][/ROW]
[ROW][C]5[/C][C]100.1[/C][C]97.2075[/C][C]2.89250000000001[/C][/ROW]
[ROW][C]6[/C][C]107.7[/C][C]107.9075[/C][C]-0.207499999999979[/C][/ROW]
[ROW][C]7[/C][C]91.5[/C][C]94.1475[/C][C]-2.64749999999998[/C][/ROW]
[ROW][C]8[/C][C]97.8[/C][C]96.8875[/C][C]0.912500000000011[/C][/ROW]
[ROW][C]9[/C][C]107.4[/C][C]111.36375[/C][C]-3.96375[/C][/ROW]
[ROW][C]10[/C][C]117.5[/C][C]111.82375[/C][C]5.67625[/C][/ROW]
[ROW][C]11[/C][C]105.6[/C][C]104.56375[/C][C]1.03624999999999[/C][/ROW]
[ROW][C]12[/C][C]97.4[/C][C]105.28375[/C][C]-7.88375[/C][/ROW]
[ROW][C]13[/C][C]99.5[/C][C]99.1909375[/C][C]0.309062500000025[/C][/ROW]
[ROW][C]14[/C][C]98[/C][C]97.5509375[/C][C]0.449062499999989[/C][/ROW]
[ROW][C]15[/C][C]104.3[/C][C]108.3709375[/C][C]-4.07093750000000[/C][/ROW]
[ROW][C]16[/C][C]100.6[/C][C]100.2509375[/C][C]0.349062499999992[/C][/ROW]
[ROW][C]17[/C][C]101.1[/C][C]98.3109375[/C][C]2.78906249999999[/C][/ROW]
[ROW][C]18[/C][C]103.9[/C][C]109.0109375[/C][C]-5.1109375[/C][/ROW]
[ROW][C]19[/C][C]96.9[/C][C]95.2509375[/C][C]1.64906250000000[/C][/ROW]
[ROW][C]20[/C][C]95.5[/C][C]97.9909375[/C][C]-2.49093750000000[/C][/ROW]
[ROW][C]21[/C][C]108.4[/C][C]115.221875[/C][C]-6.821875[/C][/ROW]
[ROW][C]22[/C][C]117[/C][C]115.681875[/C][C]1.318125[/C][/ROW]
[ROW][C]23[/C][C]103.8[/C][C]108.421875[/C][C]-4.621875[/C][/ROW]
[ROW][C]24[/C][C]100.8[/C][C]109.141875[/C][C]-8.341875[/C][/ROW]
[ROW][C]25[/C][C]110.6[/C][C]103.0490625[/C][C]7.55093750000002[/C][/ROW]
[ROW][C]26[/C][C]104[/C][C]101.4090625[/C][C]2.5909375[/C][/ROW]
[ROW][C]27[/C][C]112.6[/C][C]112.2290625[/C][C]0.370937499999991[/C][/ROW]
[ROW][C]28[/C][C]107.3[/C][C]104.1090625[/C][C]3.1909375[/C][/ROW]
[ROW][C]29[/C][C]98.9[/C][C]102.1690625[/C][C]-3.26906250000000[/C][/ROW]
[ROW][C]30[/C][C]109.8[/C][C]112.8690625[/C][C]-3.06906250000001[/C][/ROW]
[ROW][C]31[/C][C]104.9[/C][C]99.1090625[/C][C]5.7909375[/C][/ROW]
[ROW][C]32[/C][C]102.2[/C][C]101.8490625[/C][C]0.350937499999998[/C][/ROW]
[ROW][C]33[/C][C]123.9[/C][C]119.08[/C][C]4.82[/C][/ROW]
[ROW][C]34[/C][C]124.9[/C][C]119.54[/C][C]5.36000000000001[/C][/ROW]
[ROW][C]35[/C][C]112.7[/C][C]112.28[/C][C]0.420000000000004[/C][/ROW]
[ROW][C]36[/C][C]121.9[/C][C]113[/C][C]8.9[/C][/ROW]
[ROW][C]37[/C][C]100.6[/C][C]106.9071875[/C][C]-6.30718749999998[/C][/ROW]
[ROW][C]38[/C][C]104.3[/C][C]105.2671875[/C][C]-0.967187500000004[/C][/ROW]
[ROW][C]39[/C][C]120.4[/C][C]116.0871875[/C][C]4.3128125[/C][/ROW]
[ROW][C]40[/C][C]107.5[/C][C]107.9671875[/C][C]-0.467187499999998[/C][/ROW]
[ROW][C]41[/C][C]102.9[/C][C]106.0271875[/C][C]-3.12718750000000[/C][/ROW]
[ROW][C]42[/C][C]125.6[/C][C]116.7271875[/C][C]8.8728125[/C][/ROW]
[ROW][C]43[/C][C]107.5[/C][C]102.9671875[/C][C]4.53281249999999[/C][/ROW]
[ROW][C]44[/C][C]108.8[/C][C]105.7071875[/C][C]3.09281249999999[/C][/ROW]
[ROW][C]45[/C][C]128.4[/C][C]122.938125[/C][C]5.461875[/C][/ROW]
[ROW][C]46[/C][C]121.1[/C][C]123.398125[/C][C]-2.29812500000000[/C][/ROW]
[ROW][C]47[/C][C]119.5[/C][C]116.138125[/C][C]3.36187500000000[/C][/ROW]
[ROW][C]48[/C][C]128.7[/C][C]116.858125[/C][C]11.8418750000000[/C][/ROW]
[ROW][C]49[/C][C]108.7[/C][C]110.7653125[/C][C]-2.06531249999997[/C][/ROW]
[ROW][C]50[/C][C]105.5[/C][C]109.1253125[/C][C]-3.6253125[/C][/ROW]
[ROW][C]51[/C][C]119.8[/C][C]119.9453125[/C][C]-0.145312500000004[/C][/ROW]
[ROW][C]52[/C][C]111.3[/C][C]111.8253125[/C][C]-0.525312500000003[/C][/ROW]
[ROW][C]53[/C][C]110.6[/C][C]109.8853125[/C][C]0.714687499999991[/C][/ROW]
[ROW][C]54[/C][C]120.1[/C][C]120.5853125[/C][C]-0.485312500000008[/C][/ROW]
[ROW][C]55[/C][C]97.5[/C][C]106.8253125[/C][C]-9.3253125[/C][/ROW]
[ROW][C]56[/C][C]107.7[/C][C]109.5653125[/C][C]-1.8653125[/C][/ROW]
[ROW][C]57[/C][C]127.3[/C][C]126.79625[/C][C]0.503749999999992[/C][/ROW]
[ROW][C]58[/C][C]117.2[/C][C]127.25625[/C][C]-10.05625[/C][/ROW]
[ROW][C]59[/C][C]119.8[/C][C]119.99625[/C][C]-0.196250000000002[/C][/ROW]
[ROW][C]60[/C][C]116.2[/C][C]120.71625[/C][C]-4.51624999999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35425&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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
198.698.08750.512499999999898
29896.44751.55250000000002
3106.8107.2675-0.467499999999983
496.699.1475-2.54749999999999
5100.197.20752.89250000000001
6107.7107.9075-0.207499999999979
791.594.1475-2.64749999999998
897.896.88750.912500000000011
9107.4111.36375-3.96375
10117.5111.823755.67625
11105.6104.563751.03624999999999
1297.4105.28375-7.88375
1399.599.19093750.309062500000025
149897.55093750.449062499999989
15104.3108.3709375-4.07093750000000
16100.6100.25093750.349062499999992
17101.198.31093752.78906249999999
18103.9109.0109375-5.1109375
1996.995.25093751.64906250000000
2095.597.9909375-2.49093750000000
21108.4115.221875-6.821875
22117115.6818751.318125
23103.8108.421875-4.621875
24100.8109.141875-8.341875
25110.6103.04906257.55093750000002
26104101.40906252.5909375
27112.6112.22906250.370937499999991
28107.3104.10906253.1909375
2998.9102.1690625-3.26906250000000
30109.8112.8690625-3.06906250000001
31104.999.10906255.7909375
32102.2101.84906250.350937499999998
33123.9119.084.82
34124.9119.545.36000000000001
35112.7112.280.420000000000004
36121.91138.9
37100.6106.9071875-6.30718749999998
38104.3105.2671875-0.967187500000004
39120.4116.08718754.3128125
40107.5107.9671875-0.467187499999998
41102.9106.0271875-3.12718750000000
42125.6116.72718758.8728125
43107.5102.96718754.53281249999999
44108.8105.70718753.09281249999999
45128.4122.9381255.461875
46121.1123.398125-2.29812500000000
47119.5116.1381253.36187500000000
48128.7116.85812511.8418750000000
49108.7110.7653125-2.06531249999997
50105.5109.1253125-3.6253125
51119.8119.9453125-0.145312500000004
52111.3111.8253125-0.525312500000003
53110.6109.88531250.714687499999991
54120.1120.5853125-0.485312500000008
5597.5106.8253125-9.3253125
56107.7109.5653125-1.8653125
57127.3126.796250.503749999999992
58117.2127.25625-10.05625
59119.8119.99625-0.196250000000002
60116.2120.71625-4.51624999999999







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04514280816778670.09028561633557340.954857191832213
180.03614796717619820.07229593435239640.963852032823802
190.03454968863703740.06909937727407470.965450311362963
200.01745180610092510.03490361220185010.982548193899075
210.009145717840867340.01829143568173470.990854282159133
220.003355588794024720.006711177588049450.996644411205975
230.001666948472279320.003333896944558630.99833305152772
240.004886821532630950.00977364306526190.99511317846737
250.06839178044584620.1367835608916920.931608219554154
260.04272399861584980.08544799723169970.95727600138415
270.03201138237359180.06402276474718350.967988617626408
280.02373940209884620.04747880419769250.976260597901154
290.03964361069230450.0792872213846090.960356389307696
300.06632445787429210.1326489157485840.933675542125708
310.07574565449597730.1514913089919550.924254345504023
320.06147146711120790.1229429342224160.938528532888792
330.1091219300135850.218243860027170.890878069986415
340.08986961131970160.1797392226394030.910130388680298
350.0979593673738380.1959187347476760.902040632626162
360.2494951581535690.4989903163071390.75050484184643
370.5140247898389680.9719504203220650.485975210161032
380.4455053945923310.8910107891846610.55449460540767
390.3470667243820780.6941334487641570.652933275617922
400.3270742429278370.6541484858556730.672925757072163
410.6041389295276930.7917221409446130.395861070472307
420.5144107546498260.9711784907003480.485589245350174
430.4638893568341740.9277787136683470.536110643165826

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0451428081677867 & 0.0902856163355734 & 0.954857191832213 \tabularnewline
18 & 0.0361479671761982 & 0.0722959343523964 & 0.963852032823802 \tabularnewline
19 & 0.0345496886370374 & 0.0690993772740747 & 0.965450311362963 \tabularnewline
20 & 0.0174518061009251 & 0.0349036122018501 & 0.982548193899075 \tabularnewline
21 & 0.00914571784086734 & 0.0182914356817347 & 0.990854282159133 \tabularnewline
22 & 0.00335558879402472 & 0.00671117758804945 & 0.996644411205975 \tabularnewline
23 & 0.00166694847227932 & 0.00333389694455863 & 0.99833305152772 \tabularnewline
24 & 0.00488682153263095 & 0.0097736430652619 & 0.99511317846737 \tabularnewline
25 & 0.0683917804458462 & 0.136783560891692 & 0.931608219554154 \tabularnewline
26 & 0.0427239986158498 & 0.0854479972316997 & 0.95727600138415 \tabularnewline
27 & 0.0320113823735918 & 0.0640227647471835 & 0.967988617626408 \tabularnewline
28 & 0.0237394020988462 & 0.0474788041976925 & 0.976260597901154 \tabularnewline
29 & 0.0396436106923045 & 0.079287221384609 & 0.960356389307696 \tabularnewline
30 & 0.0663244578742921 & 0.132648915748584 & 0.933675542125708 \tabularnewline
31 & 0.0757456544959773 & 0.151491308991955 & 0.924254345504023 \tabularnewline
32 & 0.0614714671112079 & 0.122942934222416 & 0.938528532888792 \tabularnewline
33 & 0.109121930013585 & 0.21824386002717 & 0.890878069986415 \tabularnewline
34 & 0.0898696113197016 & 0.179739222639403 & 0.910130388680298 \tabularnewline
35 & 0.097959367373838 & 0.195918734747676 & 0.902040632626162 \tabularnewline
36 & 0.249495158153569 & 0.498990316307139 & 0.75050484184643 \tabularnewline
37 & 0.514024789838968 & 0.971950420322065 & 0.485975210161032 \tabularnewline
38 & 0.445505394592331 & 0.891010789184661 & 0.55449460540767 \tabularnewline
39 & 0.347066724382078 & 0.694133448764157 & 0.652933275617922 \tabularnewline
40 & 0.327074242927837 & 0.654148485855673 & 0.672925757072163 \tabularnewline
41 & 0.604138929527693 & 0.791722140944613 & 0.395861070472307 \tabularnewline
42 & 0.514410754649826 & 0.971178490700348 & 0.485589245350174 \tabularnewline
43 & 0.463889356834174 & 0.927778713668347 & 0.536110643165826 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35425&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.0451428081677867[/C][C]0.0902856163355734[/C][C]0.954857191832213[/C][/ROW]
[ROW][C]18[/C][C]0.0361479671761982[/C][C]0.0722959343523964[/C][C]0.963852032823802[/C][/ROW]
[ROW][C]19[/C][C]0.0345496886370374[/C][C]0.0690993772740747[/C][C]0.965450311362963[/C][/ROW]
[ROW][C]20[/C][C]0.0174518061009251[/C][C]0.0349036122018501[/C][C]0.982548193899075[/C][/ROW]
[ROW][C]21[/C][C]0.00914571784086734[/C][C]0.0182914356817347[/C][C]0.990854282159133[/C][/ROW]
[ROW][C]22[/C][C]0.00335558879402472[/C][C]0.00671117758804945[/C][C]0.996644411205975[/C][/ROW]
[ROW][C]23[/C][C]0.00166694847227932[/C][C]0.00333389694455863[/C][C]0.99833305152772[/C][/ROW]
[ROW][C]24[/C][C]0.00488682153263095[/C][C]0.0097736430652619[/C][C]0.99511317846737[/C][/ROW]
[ROW][C]25[/C][C]0.0683917804458462[/C][C]0.136783560891692[/C][C]0.931608219554154[/C][/ROW]
[ROW][C]26[/C][C]0.0427239986158498[/C][C]0.0854479972316997[/C][C]0.95727600138415[/C][/ROW]
[ROW][C]27[/C][C]0.0320113823735918[/C][C]0.0640227647471835[/C][C]0.967988617626408[/C][/ROW]
[ROW][C]28[/C][C]0.0237394020988462[/C][C]0.0474788041976925[/C][C]0.976260597901154[/C][/ROW]
[ROW][C]29[/C][C]0.0396436106923045[/C][C]0.079287221384609[/C][C]0.960356389307696[/C][/ROW]
[ROW][C]30[/C][C]0.0663244578742921[/C][C]0.132648915748584[/C][C]0.933675542125708[/C][/ROW]
[ROW][C]31[/C][C]0.0757456544959773[/C][C]0.151491308991955[/C][C]0.924254345504023[/C][/ROW]
[ROW][C]32[/C][C]0.0614714671112079[/C][C]0.122942934222416[/C][C]0.938528532888792[/C][/ROW]
[ROW][C]33[/C][C]0.109121930013585[/C][C]0.21824386002717[/C][C]0.890878069986415[/C][/ROW]
[ROW][C]34[/C][C]0.0898696113197016[/C][C]0.179739222639403[/C][C]0.910130388680298[/C][/ROW]
[ROW][C]35[/C][C]0.097959367373838[/C][C]0.195918734747676[/C][C]0.902040632626162[/C][/ROW]
[ROW][C]36[/C][C]0.249495158153569[/C][C]0.498990316307139[/C][C]0.75050484184643[/C][/ROW]
[ROW][C]37[/C][C]0.514024789838968[/C][C]0.971950420322065[/C][C]0.485975210161032[/C][/ROW]
[ROW][C]38[/C][C]0.445505394592331[/C][C]0.891010789184661[/C][C]0.55449460540767[/C][/ROW]
[ROW][C]39[/C][C]0.347066724382078[/C][C]0.694133448764157[/C][C]0.652933275617922[/C][/ROW]
[ROW][C]40[/C][C]0.327074242927837[/C][C]0.654148485855673[/C][C]0.672925757072163[/C][/ROW]
[ROW][C]41[/C][C]0.604138929527693[/C][C]0.791722140944613[/C][C]0.395861070472307[/C][/ROW]
[ROW][C]42[/C][C]0.514410754649826[/C][C]0.971178490700348[/C][C]0.485589245350174[/C][/ROW]
[ROW][C]43[/C][C]0.463889356834174[/C][C]0.927778713668347[/C][C]0.536110643165826[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35425&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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.04514280816778670.09028561633557340.954857191832213
180.03614796717619820.07229593435239640.963852032823802
190.03454968863703740.06909937727407470.965450311362963
200.01745180610092510.03490361220185010.982548193899075
210.009145717840867340.01829143568173470.990854282159133
220.003355588794024720.006711177588049450.996644411205975
230.001666948472279320.003333896944558630.99833305152772
240.004886821532630950.00977364306526190.99511317846737
250.06839178044584620.1367835608916920.931608219554154
260.04272399861584980.08544799723169970.95727600138415
270.03201138237359180.06402276474718350.967988617626408
280.02373940209884620.04747880419769250.976260597901154
290.03964361069230450.0792872213846090.960356389307696
300.06632445787429210.1326489157485840.933675542125708
310.07574565449597730.1514913089919550.924254345504023
320.06147146711120790.1229429342224160.938528532888792
330.1091219300135850.218243860027170.890878069986415
340.08986961131970160.1797392226394030.910130388680298
350.0979593673738380.1959187347476760.902040632626162
360.2494951581535690.4989903163071390.75050484184643
370.5140247898389680.9719504203220650.485975210161032
380.4455053945923310.8910107891846610.55449460540767
390.3470667243820780.6941334487641570.652933275617922
400.3270742429278370.6541484858556730.672925757072163
410.6041389295276930.7917221409446130.395861070472307
420.5144107546498260.9711784907003480.485589245350174
430.4638893568341740.9277787136683470.536110643165826







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.111111111111111NOK
5% type I error level60.222222222222222NOK
10% type I error level120.444444444444444NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35425&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 level30.111111111111111NOK
5% type I error level60.222222222222222NOK
10% type I error level120.444444444444444NOK



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