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 computationWed, 18 Nov 2009 13:49:00 -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/18/t1258578962urfs7ngk6nori5g.htm/, Retrieved Sun, 05 May 2024 14:57:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57623, Retrieved Sun, 05 May 2024 14:57:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact163
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-18 20:49:00] [efd540d63f04881f500eb7fad70c8699] [Current]
-    D        [Multiple Regression] [] [2009-11-20 13:54:15] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
1.7	0
2.4	0
2.0	0
2.1	0
2.0	0
1.8	0
2.7	0
2.3	0
1.9	0
2.0	0
2.3	0
2.8	0
2.4	0
2.3	0
2.7	0
2.7	0
2.9	0
3.0	0
2.2	0
2.3	0
2.8	0
2.8	0
2.8	0
2.2	0
2.6	0
2.8	0
2.5	0
2.4	0
2.3	0
1.9	0
1.7	0
2.0	0
2.1	0
1.7	0
1.8	0
1.8	0
1.8	0
1.3	0
1.3	0
1.3	0
1.2	0
1.4	0
2.2	1
2.9	1
3.1	1
3.5	1
3.6	1
4.4	1
4.1	1
5.1	1
5.8	1
5.9	1
5.4	1
5.5	1
4.8	1
3.2	1
2.7	1
2.1	1
1.9	1
0.6	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&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]3 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=57623&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.19333333333333 + 2.31666666666667X[t] + 0.391111111111108M1[t] + 0.672222222222222M2[t] + 0.773333333333333M3[t] + 0.814444444444445M4[t] + 0.715555555555555M5[t] + 0.696666666666665M6[t] + 0.254444444444444M7[t] + 0.0955555555555554M8[t] + 0.0966666666666665M9[t] + 0.0177777777777775M10[t] + 0.0988888888888882M11[t] -0.0211111111111111t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.19333333333333 +  2.31666666666667X[t] +  0.391111111111108M1[t] +  0.672222222222222M2[t] +  0.773333333333333M3[t] +  0.814444444444445M4[t] +  0.715555555555555M5[t] +  0.696666666666665M6[t] +  0.254444444444444M7[t] +  0.0955555555555554M8[t] +  0.0966666666666665M9[t] +  0.0177777777777775M10[t] +  0.0988888888888882M11[t] -0.0211111111111111t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.19333333333333 +  2.31666666666667X[t] +  0.391111111111108M1[t] +  0.672222222222222M2[t] +  0.773333333333333M3[t] +  0.814444444444445M4[t] +  0.715555555555555M5[t] +  0.696666666666665M6[t] +  0.254444444444444M7[t] +  0.0955555555555554M8[t] +  0.0966666666666665M9[t] +  0.0177777777777775M10[t] +  0.0988888888888882M11[t] -0.0211111111111111t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57623&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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] = + 2.19333333333333 + 2.31666666666667X[t] + 0.391111111111108M1[t] + 0.672222222222222M2[t] + 0.773333333333333M3[t] + 0.814444444444445M4[t] + 0.715555555555555M5[t] + 0.696666666666665M6[t] + 0.254444444444444M7[t] + 0.0955555555555554M8[t] + 0.0966666666666665M9[t] + 0.0177777777777775M10[t] + 0.0988888888888882M11[t] -0.0211111111111111t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.193333333333330.5157134.2530.0001025.1e-05
X2.316666666666670.442225.23874e-062e-06
M10.3911111111111080.598610.65340.5167740.258387
M20.6722222222222220.5975891.12490.2664710.133235
M30.7733333333333330.5967931.29580.2015030.100752
M40.8144444444444450.5962231.3660.1785790.089289
M50.7155555555555550.5958821.20080.2359620.117981
M60.6966666666666650.5957681.16940.2482830.124141
M70.2544444444444440.5961550.42680.6715090.335755
M80.09555555555555540.5951290.16060.8731410.43657
M90.09666666666666650.594330.16260.8715080.435754
M100.01777777777777750.5937580.02990.9762440.488122
M110.09888888888888820.5934150.16660.8683810.43419
t-0.02111111111111110.011654-1.81160.0765850.038293

\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) & 2.19333333333333 & 0.515713 & 4.253 & 0.000102 & 5.1e-05 \tabularnewline
X & 2.31666666666667 & 0.44222 & 5.2387 & 4e-06 & 2e-06 \tabularnewline
M1 & 0.391111111111108 & 0.59861 & 0.6534 & 0.516774 & 0.258387 \tabularnewline
M2 & 0.672222222222222 & 0.597589 & 1.1249 & 0.266471 & 0.133235 \tabularnewline
M3 & 0.773333333333333 & 0.596793 & 1.2958 & 0.201503 & 0.100752 \tabularnewline
M4 & 0.814444444444445 & 0.596223 & 1.366 & 0.178579 & 0.089289 \tabularnewline
M5 & 0.715555555555555 & 0.595882 & 1.2008 & 0.235962 & 0.117981 \tabularnewline
M6 & 0.696666666666665 & 0.595768 & 1.1694 & 0.248283 & 0.124141 \tabularnewline
M7 & 0.254444444444444 & 0.596155 & 0.4268 & 0.671509 & 0.335755 \tabularnewline
M8 & 0.0955555555555554 & 0.595129 & 0.1606 & 0.873141 & 0.43657 \tabularnewline
M9 & 0.0966666666666665 & 0.59433 & 0.1626 & 0.871508 & 0.435754 \tabularnewline
M10 & 0.0177777777777775 & 0.593758 & 0.0299 & 0.976244 & 0.488122 \tabularnewline
M11 & 0.0988888888888882 & 0.593415 & 0.1666 & 0.868381 & 0.43419 \tabularnewline
t & -0.0211111111111111 & 0.011654 & -1.8116 & 0.076585 & 0.038293 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&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]2.19333333333333[/C][C]0.515713[/C][C]4.253[/C][C]0.000102[/C][C]5.1e-05[/C][/ROW]
[ROW][C]X[/C][C]2.31666666666667[/C][C]0.44222[/C][C]5.2387[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M1[/C][C]0.391111111111108[/C][C]0.59861[/C][C]0.6534[/C][C]0.516774[/C][C]0.258387[/C][/ROW]
[ROW][C]M2[/C][C]0.672222222222222[/C][C]0.597589[/C][C]1.1249[/C][C]0.266471[/C][C]0.133235[/C][/ROW]
[ROW][C]M3[/C][C]0.773333333333333[/C][C]0.596793[/C][C]1.2958[/C][C]0.201503[/C][C]0.100752[/C][/ROW]
[ROW][C]M4[/C][C]0.814444444444445[/C][C]0.596223[/C][C]1.366[/C][C]0.178579[/C][C]0.089289[/C][/ROW]
[ROW][C]M5[/C][C]0.715555555555555[/C][C]0.595882[/C][C]1.2008[/C][C]0.235962[/C][C]0.117981[/C][/ROW]
[ROW][C]M6[/C][C]0.696666666666665[/C][C]0.595768[/C][C]1.1694[/C][C]0.248283[/C][C]0.124141[/C][/ROW]
[ROW][C]M7[/C][C]0.254444444444444[/C][C]0.596155[/C][C]0.4268[/C][C]0.671509[/C][C]0.335755[/C][/ROW]
[ROW][C]M8[/C][C]0.0955555555555554[/C][C]0.595129[/C][C]0.1606[/C][C]0.873141[/C][C]0.43657[/C][/ROW]
[ROW][C]M9[/C][C]0.0966666666666665[/C][C]0.59433[/C][C]0.1626[/C][C]0.871508[/C][C]0.435754[/C][/ROW]
[ROW][C]M10[/C][C]0.0177777777777775[/C][C]0.593758[/C][C]0.0299[/C][C]0.976244[/C][C]0.488122[/C][/ROW]
[ROW][C]M11[/C][C]0.0988888888888882[/C][C]0.593415[/C][C]0.1666[/C][C]0.868381[/C][C]0.43419[/C][/ROW]
[ROW][C]t[/C][C]-0.0211111111111111[/C][C]0.011654[/C][C]-1.8116[/C][C]0.076585[/C][C]0.038293[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57623&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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)2.193333333333330.5157134.2530.0001025.1e-05
X2.316666666666670.442225.23874e-062e-06
M10.3911111111111080.598610.65340.5167740.258387
M20.6722222222222220.5975891.12490.2664710.133235
M30.7733333333333330.5967931.29580.2015030.100752
M40.8144444444444450.5962231.3660.1785790.089289
M50.7155555555555550.5958821.20080.2359620.117981
M60.6966666666666650.5957681.16940.2482830.124141
M70.2544444444444440.5961550.42680.6715090.335755
M80.09555555555555540.5951290.16060.8731410.43657
M90.09666666666666650.594330.16260.8715080.435754
M100.01777777777777750.5937580.02990.9762440.488122
M110.09888888888888820.5934150.16660.8683810.43419
t-0.02111111111111110.011654-1.81160.0765850.038293







Multiple Linear Regression - Regression Statistics
Multiple R0.698672819377352
R-squared0.488143708536698
Adjusted R-squared0.343488669644896
F-TEST (value)3.37453649922153
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00112376002416636
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.938090876596518
Sum Squared Residuals40.4806666666667

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.698672819377352 \tabularnewline
R-squared & 0.488143708536698 \tabularnewline
Adjusted R-squared & 0.343488669644896 \tabularnewline
F-TEST (value) & 3.37453649922153 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.00112376002416636 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.938090876596518 \tabularnewline
Sum Squared Residuals & 40.4806666666667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.698672819377352[/C][/ROW]
[ROW][C]R-squared[/C][C]0.488143708536698[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.343488669644896[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.37453649922153[/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]0.00112376002416636[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.938090876596518[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]40.4806666666667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57623&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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.698672819377352
R-squared0.488143708536698
Adjusted R-squared0.343488669644896
F-TEST (value)3.37453649922153
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00112376002416636
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.938090876596518
Sum Squared Residuals40.4806666666667







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11.72.56333333333334-0.86333333333334
22.42.82333333333333-0.423333333333331
322.90333333333333-0.903333333333332
42.12.92333333333333-0.823333333333334
522.80333333333333-0.803333333333332
61.82.76333333333333-0.963333333333334
72.72.30.400000000000002
82.32.120.180000000000000
91.92.1-0.2
10221.66533453693773e-16
112.32.060.24
122.81.940.86
132.42.310.0900000000000015
142.32.57-0.270000000000001
152.72.650.0499999999999999
162.72.670.0300000000000005
172.92.550.35
1832.510.490000000000001
192.22.046666666666670.153333333333334
202.31.866666666666670.433333333333333
212.81.846666666666670.953333333333333
222.81.746666666666671.05333333333333
232.81.806666666666670.993333333333333
242.21.686666666666670.513333333333333
252.62.056666666666660.543333333333335
262.82.316666666666670.483333333333333
272.52.396666666666670.103333333333333
282.42.41666666666667-0.0166666666666666
292.32.296666666666670.00333333333333302
301.92.25666666666667-0.356666666666666
311.71.79333333333333-0.0933333333333333
3221.613333333333330.386666666666666
332.11.593333333333330.506666666666666
341.71.493333333333330.206666666666666
351.81.553333333333330.246666666666667
361.81.433333333333330.366666666666666
371.81.80333333333333-0.00333333333333195
381.32.06333333333333-0.763333333333334
391.32.14333333333333-0.843333333333334
401.32.16333333333333-0.863333333333333
411.22.04333333333333-0.843333333333334
421.42.00333333333333-0.603333333333333
432.23.85666666666667-1.65666666666667
442.93.67666666666667-0.776666666666667
453.13.65666666666667-0.556666666666667
463.53.55666666666667-0.0566666666666667
473.63.61666666666667-0.0166666666666663
484.43.496666666666670.903333333333333
494.13.866666666666660.233333333333335
505.14.126666666666670.973333333333333
515.84.206666666666671.59333333333333
525.94.226666666666671.67333333333333
535.44.106666666666671.29333333333333
545.54.066666666666671.43333333333333
554.83.603333333333331.19666666666667
563.23.42333333333333-0.223333333333334
572.73.40333333333333-0.703333333333334
582.13.30333333333333-1.20333333333333
591.93.36333333333333-1.46333333333333
600.63.24333333333333-2.64333333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1.7 & 2.56333333333334 & -0.86333333333334 \tabularnewline
2 & 2.4 & 2.82333333333333 & -0.423333333333331 \tabularnewline
3 & 2 & 2.90333333333333 & -0.903333333333332 \tabularnewline
4 & 2.1 & 2.92333333333333 & -0.823333333333334 \tabularnewline
5 & 2 & 2.80333333333333 & -0.803333333333332 \tabularnewline
6 & 1.8 & 2.76333333333333 & -0.963333333333334 \tabularnewline
7 & 2.7 & 2.3 & 0.400000000000002 \tabularnewline
8 & 2.3 & 2.12 & 0.180000000000000 \tabularnewline
9 & 1.9 & 2.1 & -0.2 \tabularnewline
10 & 2 & 2 & 1.66533453693773e-16 \tabularnewline
11 & 2.3 & 2.06 & 0.24 \tabularnewline
12 & 2.8 & 1.94 & 0.86 \tabularnewline
13 & 2.4 & 2.31 & 0.0900000000000015 \tabularnewline
14 & 2.3 & 2.57 & -0.270000000000001 \tabularnewline
15 & 2.7 & 2.65 & 0.0499999999999999 \tabularnewline
16 & 2.7 & 2.67 & 0.0300000000000005 \tabularnewline
17 & 2.9 & 2.55 & 0.35 \tabularnewline
18 & 3 & 2.51 & 0.490000000000001 \tabularnewline
19 & 2.2 & 2.04666666666667 & 0.153333333333334 \tabularnewline
20 & 2.3 & 1.86666666666667 & 0.433333333333333 \tabularnewline
21 & 2.8 & 1.84666666666667 & 0.953333333333333 \tabularnewline
22 & 2.8 & 1.74666666666667 & 1.05333333333333 \tabularnewline
23 & 2.8 & 1.80666666666667 & 0.993333333333333 \tabularnewline
24 & 2.2 & 1.68666666666667 & 0.513333333333333 \tabularnewline
25 & 2.6 & 2.05666666666666 & 0.543333333333335 \tabularnewline
26 & 2.8 & 2.31666666666667 & 0.483333333333333 \tabularnewline
27 & 2.5 & 2.39666666666667 & 0.103333333333333 \tabularnewline
28 & 2.4 & 2.41666666666667 & -0.0166666666666666 \tabularnewline
29 & 2.3 & 2.29666666666667 & 0.00333333333333302 \tabularnewline
30 & 1.9 & 2.25666666666667 & -0.356666666666666 \tabularnewline
31 & 1.7 & 1.79333333333333 & -0.0933333333333333 \tabularnewline
32 & 2 & 1.61333333333333 & 0.386666666666666 \tabularnewline
33 & 2.1 & 1.59333333333333 & 0.506666666666666 \tabularnewline
34 & 1.7 & 1.49333333333333 & 0.206666666666666 \tabularnewline
35 & 1.8 & 1.55333333333333 & 0.246666666666667 \tabularnewline
36 & 1.8 & 1.43333333333333 & 0.366666666666666 \tabularnewline
37 & 1.8 & 1.80333333333333 & -0.00333333333333195 \tabularnewline
38 & 1.3 & 2.06333333333333 & -0.763333333333334 \tabularnewline
39 & 1.3 & 2.14333333333333 & -0.843333333333334 \tabularnewline
40 & 1.3 & 2.16333333333333 & -0.863333333333333 \tabularnewline
41 & 1.2 & 2.04333333333333 & -0.843333333333334 \tabularnewline
42 & 1.4 & 2.00333333333333 & -0.603333333333333 \tabularnewline
43 & 2.2 & 3.85666666666667 & -1.65666666666667 \tabularnewline
44 & 2.9 & 3.67666666666667 & -0.776666666666667 \tabularnewline
45 & 3.1 & 3.65666666666667 & -0.556666666666667 \tabularnewline
46 & 3.5 & 3.55666666666667 & -0.0566666666666667 \tabularnewline
47 & 3.6 & 3.61666666666667 & -0.0166666666666663 \tabularnewline
48 & 4.4 & 3.49666666666667 & 0.903333333333333 \tabularnewline
49 & 4.1 & 3.86666666666666 & 0.233333333333335 \tabularnewline
50 & 5.1 & 4.12666666666667 & 0.973333333333333 \tabularnewline
51 & 5.8 & 4.20666666666667 & 1.59333333333333 \tabularnewline
52 & 5.9 & 4.22666666666667 & 1.67333333333333 \tabularnewline
53 & 5.4 & 4.10666666666667 & 1.29333333333333 \tabularnewline
54 & 5.5 & 4.06666666666667 & 1.43333333333333 \tabularnewline
55 & 4.8 & 3.60333333333333 & 1.19666666666667 \tabularnewline
56 & 3.2 & 3.42333333333333 & -0.223333333333334 \tabularnewline
57 & 2.7 & 3.40333333333333 & -0.703333333333334 \tabularnewline
58 & 2.1 & 3.30333333333333 & -1.20333333333333 \tabularnewline
59 & 1.9 & 3.36333333333333 & -1.46333333333333 \tabularnewline
60 & 0.6 & 3.24333333333333 & -2.64333333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&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]1.7[/C][C]2.56333333333334[/C][C]-0.86333333333334[/C][/ROW]
[ROW][C]2[/C][C]2.4[/C][C]2.82333333333333[/C][C]-0.423333333333331[/C][/ROW]
[ROW][C]3[/C][C]2[/C][C]2.90333333333333[/C][C]-0.903333333333332[/C][/ROW]
[ROW][C]4[/C][C]2.1[/C][C]2.92333333333333[/C][C]-0.823333333333334[/C][/ROW]
[ROW][C]5[/C][C]2[/C][C]2.80333333333333[/C][C]-0.803333333333332[/C][/ROW]
[ROW][C]6[/C][C]1.8[/C][C]2.76333333333333[/C][C]-0.963333333333334[/C][/ROW]
[ROW][C]7[/C][C]2.7[/C][C]2.3[/C][C]0.400000000000002[/C][/ROW]
[ROW][C]8[/C][C]2.3[/C][C]2.12[/C][C]0.180000000000000[/C][/ROW]
[ROW][C]9[/C][C]1.9[/C][C]2.1[/C][C]-0.2[/C][/ROW]
[ROW][C]10[/C][C]2[/C][C]2[/C][C]1.66533453693773e-16[/C][/ROW]
[ROW][C]11[/C][C]2.3[/C][C]2.06[/C][C]0.24[/C][/ROW]
[ROW][C]12[/C][C]2.8[/C][C]1.94[/C][C]0.86[/C][/ROW]
[ROW][C]13[/C][C]2.4[/C][C]2.31[/C][C]0.0900000000000015[/C][/ROW]
[ROW][C]14[/C][C]2.3[/C][C]2.57[/C][C]-0.270000000000001[/C][/ROW]
[ROW][C]15[/C][C]2.7[/C][C]2.65[/C][C]0.0499999999999999[/C][/ROW]
[ROW][C]16[/C][C]2.7[/C][C]2.67[/C][C]0.0300000000000005[/C][/ROW]
[ROW][C]17[/C][C]2.9[/C][C]2.55[/C][C]0.35[/C][/ROW]
[ROW][C]18[/C][C]3[/C][C]2.51[/C][C]0.490000000000001[/C][/ROW]
[ROW][C]19[/C][C]2.2[/C][C]2.04666666666667[/C][C]0.153333333333334[/C][/ROW]
[ROW][C]20[/C][C]2.3[/C][C]1.86666666666667[/C][C]0.433333333333333[/C][/ROW]
[ROW][C]21[/C][C]2.8[/C][C]1.84666666666667[/C][C]0.953333333333333[/C][/ROW]
[ROW][C]22[/C][C]2.8[/C][C]1.74666666666667[/C][C]1.05333333333333[/C][/ROW]
[ROW][C]23[/C][C]2.8[/C][C]1.80666666666667[/C][C]0.993333333333333[/C][/ROW]
[ROW][C]24[/C][C]2.2[/C][C]1.68666666666667[/C][C]0.513333333333333[/C][/ROW]
[ROW][C]25[/C][C]2.6[/C][C]2.05666666666666[/C][C]0.543333333333335[/C][/ROW]
[ROW][C]26[/C][C]2.8[/C][C]2.31666666666667[/C][C]0.483333333333333[/C][/ROW]
[ROW][C]27[/C][C]2.5[/C][C]2.39666666666667[/C][C]0.103333333333333[/C][/ROW]
[ROW][C]28[/C][C]2.4[/C][C]2.41666666666667[/C][C]-0.0166666666666666[/C][/ROW]
[ROW][C]29[/C][C]2.3[/C][C]2.29666666666667[/C][C]0.00333333333333302[/C][/ROW]
[ROW][C]30[/C][C]1.9[/C][C]2.25666666666667[/C][C]-0.356666666666666[/C][/ROW]
[ROW][C]31[/C][C]1.7[/C][C]1.79333333333333[/C][C]-0.0933333333333333[/C][/ROW]
[ROW][C]32[/C][C]2[/C][C]1.61333333333333[/C][C]0.386666666666666[/C][/ROW]
[ROW][C]33[/C][C]2.1[/C][C]1.59333333333333[/C][C]0.506666666666666[/C][/ROW]
[ROW][C]34[/C][C]1.7[/C][C]1.49333333333333[/C][C]0.206666666666666[/C][/ROW]
[ROW][C]35[/C][C]1.8[/C][C]1.55333333333333[/C][C]0.246666666666667[/C][/ROW]
[ROW][C]36[/C][C]1.8[/C][C]1.43333333333333[/C][C]0.366666666666666[/C][/ROW]
[ROW][C]37[/C][C]1.8[/C][C]1.80333333333333[/C][C]-0.00333333333333195[/C][/ROW]
[ROW][C]38[/C][C]1.3[/C][C]2.06333333333333[/C][C]-0.763333333333334[/C][/ROW]
[ROW][C]39[/C][C]1.3[/C][C]2.14333333333333[/C][C]-0.843333333333334[/C][/ROW]
[ROW][C]40[/C][C]1.3[/C][C]2.16333333333333[/C][C]-0.863333333333333[/C][/ROW]
[ROW][C]41[/C][C]1.2[/C][C]2.04333333333333[/C][C]-0.843333333333334[/C][/ROW]
[ROW][C]42[/C][C]1.4[/C][C]2.00333333333333[/C][C]-0.603333333333333[/C][/ROW]
[ROW][C]43[/C][C]2.2[/C][C]3.85666666666667[/C][C]-1.65666666666667[/C][/ROW]
[ROW][C]44[/C][C]2.9[/C][C]3.67666666666667[/C][C]-0.776666666666667[/C][/ROW]
[ROW][C]45[/C][C]3.1[/C][C]3.65666666666667[/C][C]-0.556666666666667[/C][/ROW]
[ROW][C]46[/C][C]3.5[/C][C]3.55666666666667[/C][C]-0.0566666666666667[/C][/ROW]
[ROW][C]47[/C][C]3.6[/C][C]3.61666666666667[/C][C]-0.0166666666666663[/C][/ROW]
[ROW][C]48[/C][C]4.4[/C][C]3.49666666666667[/C][C]0.903333333333333[/C][/ROW]
[ROW][C]49[/C][C]4.1[/C][C]3.86666666666666[/C][C]0.233333333333335[/C][/ROW]
[ROW][C]50[/C][C]5.1[/C][C]4.12666666666667[/C][C]0.973333333333333[/C][/ROW]
[ROW][C]51[/C][C]5.8[/C][C]4.20666666666667[/C][C]1.59333333333333[/C][/ROW]
[ROW][C]52[/C][C]5.9[/C][C]4.22666666666667[/C][C]1.67333333333333[/C][/ROW]
[ROW][C]53[/C][C]5.4[/C][C]4.10666666666667[/C][C]1.29333333333333[/C][/ROW]
[ROW][C]54[/C][C]5.5[/C][C]4.06666666666667[/C][C]1.43333333333333[/C][/ROW]
[ROW][C]55[/C][C]4.8[/C][C]3.60333333333333[/C][C]1.19666666666667[/C][/ROW]
[ROW][C]56[/C][C]3.2[/C][C]3.42333333333333[/C][C]-0.223333333333334[/C][/ROW]
[ROW][C]57[/C][C]2.7[/C][C]3.40333333333333[/C][C]-0.703333333333334[/C][/ROW]
[ROW][C]58[/C][C]2.1[/C][C]3.30333333333333[/C][C]-1.20333333333333[/C][/ROW]
[ROW][C]59[/C][C]1.9[/C][C]3.36333333333333[/C][C]-1.46333333333333[/C][/ROW]
[ROW][C]60[/C][C]0.6[/C][C]3.24333333333333[/C][C]-2.64333333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57623&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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
11.72.56333333333334-0.86333333333334
22.42.82333333333333-0.423333333333331
322.90333333333333-0.903333333333332
42.12.92333333333333-0.823333333333334
522.80333333333333-0.803333333333332
61.82.76333333333333-0.963333333333334
72.72.30.400000000000002
82.32.120.180000000000000
91.92.1-0.2
10221.66533453693773e-16
112.32.060.24
122.81.940.86
132.42.310.0900000000000015
142.32.57-0.270000000000001
152.72.650.0499999999999999
162.72.670.0300000000000005
172.92.550.35
1832.510.490000000000001
192.22.046666666666670.153333333333334
202.31.866666666666670.433333333333333
212.81.846666666666670.953333333333333
222.81.746666666666671.05333333333333
232.81.806666666666670.993333333333333
242.21.686666666666670.513333333333333
252.62.056666666666660.543333333333335
262.82.316666666666670.483333333333333
272.52.396666666666670.103333333333333
282.42.41666666666667-0.0166666666666666
292.32.296666666666670.00333333333333302
301.92.25666666666667-0.356666666666666
311.71.79333333333333-0.0933333333333333
3221.613333333333330.386666666666666
332.11.593333333333330.506666666666666
341.71.493333333333330.206666666666666
351.81.553333333333330.246666666666667
361.81.433333333333330.366666666666666
371.81.80333333333333-0.00333333333333195
381.32.06333333333333-0.763333333333334
391.32.14333333333333-0.843333333333334
401.32.16333333333333-0.863333333333333
411.22.04333333333333-0.843333333333334
421.42.00333333333333-0.603333333333333
432.23.85666666666667-1.65666666666667
442.93.67666666666667-0.776666666666667
453.13.65666666666667-0.556666666666667
463.53.55666666666667-0.0566666666666667
473.63.61666666666667-0.0166666666666663
484.43.496666666666670.903333333333333
494.13.866666666666660.233333333333335
505.14.126666666666670.973333333333333
515.84.206666666666671.59333333333333
525.94.226666666666671.67333333333333
535.44.106666666666671.29333333333333
545.54.066666666666671.43333333333333
554.83.603333333333331.19666666666667
563.23.42333333333333-0.223333333333334
572.73.40333333333333-0.703333333333334
582.13.30333333333333-1.20333333333333
591.93.36333333333333-1.46333333333333
600.63.24333333333333-2.64333333333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0430370818095250.086074163619050.956962918190475
180.02620329929330390.05240659858660790.973796700706696
190.04512342899753540.09024685799507090.954876571002465
200.02218833984299260.04437667968598510.977811660157007
210.01050637150432770.02101274300865540.989493628495672
220.004406279131261740.008812558262523490.995593720868738
230.001605797447594990.003211594895189990.998394202552405
240.002478811082816840.004957622165633690.997521188917183
250.0008910194368757230.001782038873751450.999108980563124
260.000310608638991250.00062121727798250.99968939136101
270.0001415601110386140.0002831202220772280.999858439888961
287.69962916701483e-050.0001539925833402970.99992300370833
294.72658269742324e-059.45316539484647e-050.999952734173026
307.0002883637721e-050.0001400057672754420.999929997116362
319.36543726337404e-050.0001873087452674810.999906345627366
325.24932600055746e-050.0001049865200111490.999947506739994
333.35445007176023e-056.70890014352047e-050.999966455499282
343.80249155590266e-057.60498311180533e-050.99996197508444
356.157440915633e-050.000123148818312660.999938425590844
360.0002675906463087850.000535181292617570.999732409353691
370.0002814925098366610.0005629850196733230.999718507490163
380.0003344997593292830.0006689995186585660.99966550024067
390.0002325528592232090.0004651057184464180.999767447140777
400.0001374195991919410.0002748391983838830.999862580400808
417.34083723223419e-050.0001468167446446840.999926591627678
422.32832942647783e-054.65665885295566e-050.999976716705735
430.002221716299401080.004443432598802160.997778283700599

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.043037081809525 & 0.08607416361905 & 0.956962918190475 \tabularnewline
18 & 0.0262032992933039 & 0.0524065985866079 & 0.973796700706696 \tabularnewline
19 & 0.0451234289975354 & 0.0902468579950709 & 0.954876571002465 \tabularnewline
20 & 0.0221883398429926 & 0.0443766796859851 & 0.977811660157007 \tabularnewline
21 & 0.0105063715043277 & 0.0210127430086554 & 0.989493628495672 \tabularnewline
22 & 0.00440627913126174 & 0.00881255826252349 & 0.995593720868738 \tabularnewline
23 & 0.00160579744759499 & 0.00321159489518999 & 0.998394202552405 \tabularnewline
24 & 0.00247881108281684 & 0.00495762216563369 & 0.997521188917183 \tabularnewline
25 & 0.000891019436875723 & 0.00178203887375145 & 0.999108980563124 \tabularnewline
26 & 0.00031060863899125 & 0.0006212172779825 & 0.99968939136101 \tabularnewline
27 & 0.000141560111038614 & 0.000283120222077228 & 0.999858439888961 \tabularnewline
28 & 7.69962916701483e-05 & 0.000153992583340297 & 0.99992300370833 \tabularnewline
29 & 4.72658269742324e-05 & 9.45316539484647e-05 & 0.999952734173026 \tabularnewline
30 & 7.0002883637721e-05 & 0.000140005767275442 & 0.999929997116362 \tabularnewline
31 & 9.36543726337404e-05 & 0.000187308745267481 & 0.999906345627366 \tabularnewline
32 & 5.24932600055746e-05 & 0.000104986520011149 & 0.999947506739994 \tabularnewline
33 & 3.35445007176023e-05 & 6.70890014352047e-05 & 0.999966455499282 \tabularnewline
34 & 3.80249155590266e-05 & 7.60498311180533e-05 & 0.99996197508444 \tabularnewline
35 & 6.157440915633e-05 & 0.00012314881831266 & 0.999938425590844 \tabularnewline
36 & 0.000267590646308785 & 0.00053518129261757 & 0.999732409353691 \tabularnewline
37 & 0.000281492509836661 & 0.000562985019673323 & 0.999718507490163 \tabularnewline
38 & 0.000334499759329283 & 0.000668999518658566 & 0.99966550024067 \tabularnewline
39 & 0.000232552859223209 & 0.000465105718446418 & 0.999767447140777 \tabularnewline
40 & 0.000137419599191941 & 0.000274839198383883 & 0.999862580400808 \tabularnewline
41 & 7.34083723223419e-05 & 0.000146816744644684 & 0.999926591627678 \tabularnewline
42 & 2.32832942647783e-05 & 4.65665885295566e-05 & 0.999976716705735 \tabularnewline
43 & 0.00222171629940108 & 0.00444343259880216 & 0.997778283700599 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&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.043037081809525[/C][C]0.08607416361905[/C][C]0.956962918190475[/C][/ROW]
[ROW][C]18[/C][C]0.0262032992933039[/C][C]0.0524065985866079[/C][C]0.973796700706696[/C][/ROW]
[ROW][C]19[/C][C]0.0451234289975354[/C][C]0.0902468579950709[/C][C]0.954876571002465[/C][/ROW]
[ROW][C]20[/C][C]0.0221883398429926[/C][C]0.0443766796859851[/C][C]0.977811660157007[/C][/ROW]
[ROW][C]21[/C][C]0.0105063715043277[/C][C]0.0210127430086554[/C][C]0.989493628495672[/C][/ROW]
[ROW][C]22[/C][C]0.00440627913126174[/C][C]0.00881255826252349[/C][C]0.995593720868738[/C][/ROW]
[ROW][C]23[/C][C]0.00160579744759499[/C][C]0.00321159489518999[/C][C]0.998394202552405[/C][/ROW]
[ROW][C]24[/C][C]0.00247881108281684[/C][C]0.00495762216563369[/C][C]0.997521188917183[/C][/ROW]
[ROW][C]25[/C][C]0.000891019436875723[/C][C]0.00178203887375145[/C][C]0.999108980563124[/C][/ROW]
[ROW][C]26[/C][C]0.00031060863899125[/C][C]0.0006212172779825[/C][C]0.99968939136101[/C][/ROW]
[ROW][C]27[/C][C]0.000141560111038614[/C][C]0.000283120222077228[/C][C]0.999858439888961[/C][/ROW]
[ROW][C]28[/C][C]7.69962916701483e-05[/C][C]0.000153992583340297[/C][C]0.99992300370833[/C][/ROW]
[ROW][C]29[/C][C]4.72658269742324e-05[/C][C]9.45316539484647e-05[/C][C]0.999952734173026[/C][/ROW]
[ROW][C]30[/C][C]7.0002883637721e-05[/C][C]0.000140005767275442[/C][C]0.999929997116362[/C][/ROW]
[ROW][C]31[/C][C]9.36543726337404e-05[/C][C]0.000187308745267481[/C][C]0.999906345627366[/C][/ROW]
[ROW][C]32[/C][C]5.24932600055746e-05[/C][C]0.000104986520011149[/C][C]0.999947506739994[/C][/ROW]
[ROW][C]33[/C][C]3.35445007176023e-05[/C][C]6.70890014352047e-05[/C][C]0.999966455499282[/C][/ROW]
[ROW][C]34[/C][C]3.80249155590266e-05[/C][C]7.60498311180533e-05[/C][C]0.99996197508444[/C][/ROW]
[ROW][C]35[/C][C]6.157440915633e-05[/C][C]0.00012314881831266[/C][C]0.999938425590844[/C][/ROW]
[ROW][C]36[/C][C]0.000267590646308785[/C][C]0.00053518129261757[/C][C]0.999732409353691[/C][/ROW]
[ROW][C]37[/C][C]0.000281492509836661[/C][C]0.000562985019673323[/C][C]0.999718507490163[/C][/ROW]
[ROW][C]38[/C][C]0.000334499759329283[/C][C]0.000668999518658566[/C][C]0.99966550024067[/C][/ROW]
[ROW][C]39[/C][C]0.000232552859223209[/C][C]0.000465105718446418[/C][C]0.999767447140777[/C][/ROW]
[ROW][C]40[/C][C]0.000137419599191941[/C][C]0.000274839198383883[/C][C]0.999862580400808[/C][/ROW]
[ROW][C]41[/C][C]7.34083723223419e-05[/C][C]0.000146816744644684[/C][C]0.999926591627678[/C][/ROW]
[ROW][C]42[/C][C]2.32832942647783e-05[/C][C]4.65665885295566e-05[/C][C]0.999976716705735[/C][/ROW]
[ROW][C]43[/C][C]0.00222171629940108[/C][C]0.00444343259880216[/C][C]0.997778283700599[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57623&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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.0430370818095250.086074163619050.956962918190475
180.02620329929330390.05240659858660790.973796700706696
190.04512342899753540.09024685799507090.954876571002465
200.02218833984299260.04437667968598510.977811660157007
210.01050637150432770.02101274300865540.989493628495672
220.004406279131261740.008812558262523490.995593720868738
230.001605797447594990.003211594895189990.998394202552405
240.002478811082816840.004957622165633690.997521188917183
250.0008910194368757230.001782038873751450.999108980563124
260.000310608638991250.00062121727798250.99968939136101
270.0001415601110386140.0002831202220772280.999858439888961
287.69962916701483e-050.0001539925833402970.99992300370833
294.72658269742324e-059.45316539484647e-050.999952734173026
307.0002883637721e-050.0001400057672754420.999929997116362
319.36543726337404e-050.0001873087452674810.999906345627366
325.24932600055746e-050.0001049865200111490.999947506739994
333.35445007176023e-056.70890014352047e-050.999966455499282
343.80249155590266e-057.60498311180533e-050.99996197508444
356.157440915633e-050.000123148818312660.999938425590844
360.0002675906463087850.000535181292617570.999732409353691
370.0002814925098366610.0005629850196733230.999718507490163
380.0003344997593292830.0006689995186585660.99966550024067
390.0002325528592232090.0004651057184464180.999767447140777
400.0001374195991919410.0002748391983838830.999862580400808
417.34083723223419e-050.0001468167446446840.999926591627678
422.32832942647783e-054.65665885295566e-050.999976716705735
430.002221716299401080.004443432598802160.997778283700599







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.814814814814815NOK
5% type I error level240.888888888888889NOK
10% type I error level271NOK

\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 & 22 & 0.814814814814815 & NOK \tabularnewline
5% type I error level & 24 & 0.888888888888889 & NOK \tabularnewline
10% type I error level & 27 & 1 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57623&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]22[/C][C]0.814814814814815[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]24[/C][C]0.888888888888889[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]27[/C][C]1[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57623&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57623&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 level220.814814814814815NOK
5% type I error level240.888888888888889NOK
10% type I error level271NOK



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