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, 25 Nov 2008 08:56:16 -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/Nov/25/t1227628718b275lpoqaftf0qj.htm/, Retrieved Thu, 09 May 2024 05:20:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25585, Retrieved Thu, 09 May 2024 05:20:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple regression
Estimated Impact196
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Multiple Regressi...] [2008-11-21 15:51:01] [c96f3dce3a823a83b6ede18389e1cfd4]
-    D  [Multiple Regression] [Multiple regressi...] [2008-11-24 14:26:32] [c96f3dce3a823a83b6ede18389e1cfd4]
-    D      [Multiple Regression] [Q3 Seatbelt law- ...] [2008-11-25 15:56:16] [3bdbbe597ac6c61989658933956ee6ac] [Current]
Feedback Forum

Post a new message
Dataseries X:
25	0
23.6	0
22.3	0
21.8	0
20.8	0
19.7	0
18.3	0
17.4	0
17	0
18.1	0
23.9	0
25.6	0
25.3	0
23.6	0
21.9	0
21.4	0
20.6	0
20.5	0
20.2	0
20.6	0
19.7	0
19.3	0
22.8	0
23.5	0
23.8	0
22.6	0
22	0
21.7	0
20.7	0
20.2	0
19.1	0
19.5	0
18.7	0
18.6	0
22.2	0
23.2	0
23.5	0
21.3	0
20	0
18.7	0
18.9	0
18.3	0
18.4	0
19.9	0
19.2	0
18.5	1
20.9	1
20.5	1
19.4	1
18.1	1
17	1
17	1
17.3	1
16.7	1
15.5	1
15.3	1
13.7	1
14.1	1
17.3	1
18.1	1
18.1	1




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25585&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=25585&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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] = + 24.7241059602649 -2.86879139072848x[t] -0.0485568432671088M1[t] -1.30169977924945M2[t] -2.46290562913908M3[t] -2.94411147902870M4[t] -3.36531732891832M5[t] -3.90652317880795M6[t] -4.64772902869757M7[t] -4.36893487858720M8[t] -5.21014072847682M9[t] -4.53758830022075M10[t] -0.798794150110375M11[t] -0.0387941501103753t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  24.7241059602649 -2.86879139072848x[t] -0.0485568432671088M1[t] -1.30169977924945M2[t] -2.46290562913908M3[t] -2.94411147902870M4[t] -3.36531732891832M5[t] -3.90652317880795M6[t] -4.64772902869757M7[t] -4.36893487858720M8[t] -5.21014072847682M9[t] -4.53758830022075M10[t] -0.798794150110375M11[t] -0.0387941501103753t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25585&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  24.7241059602649 -2.86879139072848x[t] -0.0485568432671088M1[t] -1.30169977924945M2[t] -2.46290562913908M3[t] -2.94411147902870M4[t] -3.36531732891832M5[t] -3.90652317880795M6[t] -4.64772902869757M7[t] -4.36893487858720M8[t] -5.21014072847682M9[t] -4.53758830022075M10[t] -0.798794150110375M11[t] -0.0387941501103753t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25585&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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] = + 24.7241059602649 -2.86879139072848x[t] -0.0485568432671088M1[t] -1.30169977924945M2[t] -2.46290562913908M3[t] -2.94411147902870M4[t] -3.36531732891832M5[t] -3.90652317880795M6[t] -4.64772902869757M7[t] -4.36893487858720M8[t] -5.21014072847682M9[t] -4.53758830022075M10[t] -0.798794150110375M11[t] -0.0387941501103753t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)24.72410596026490.59537241.527200
x-2.868791390728480.510233-5.62251e-060
M1-0.04855684326710880.673862-0.07210.9428620.471431
M2-1.301699779249450.707149-1.84080.0719730.035986
M3-2.462905629139080.706385-3.48660.0010720.000536
M4-2.944111479028700.705849-4.1710.0001296.5e-05
M5-3.365317328918320.705539-4.76991.8e-059e-06
M6-3.906523178807950.705457-5.53761e-061e-06
M7-4.647729028697570.705603-6.586900
M8-4.368934878587200.705977-6.188500
M9-5.210140728476820.706578-7.373800
M10-4.537588300220750.702821-6.456300
M11-0.7987941501103750.702478-1.13710.2612570.130628
t-0.03879415011037530.012677-3.06020.0036480.001824

\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) & 24.7241059602649 & 0.595372 & 41.5272 & 0 & 0 \tabularnewline
x & -2.86879139072848 & 0.510233 & -5.6225 & 1e-06 & 0 \tabularnewline
M1 & -0.0485568432671088 & 0.673862 & -0.0721 & 0.942862 & 0.471431 \tabularnewline
M2 & -1.30169977924945 & 0.707149 & -1.8408 & 0.071973 & 0.035986 \tabularnewline
M3 & -2.46290562913908 & 0.706385 & -3.4866 & 0.001072 & 0.000536 \tabularnewline
M4 & -2.94411147902870 & 0.705849 & -4.171 & 0.000129 & 6.5e-05 \tabularnewline
M5 & -3.36531732891832 & 0.705539 & -4.7699 & 1.8e-05 & 9e-06 \tabularnewline
M6 & -3.90652317880795 & 0.705457 & -5.5376 & 1e-06 & 1e-06 \tabularnewline
M7 & -4.64772902869757 & 0.705603 & -6.5869 & 0 & 0 \tabularnewline
M8 & -4.36893487858720 & 0.705977 & -6.1885 & 0 & 0 \tabularnewline
M9 & -5.21014072847682 & 0.706578 & -7.3738 & 0 & 0 \tabularnewline
M10 & -4.53758830022075 & 0.702821 & -6.4563 & 0 & 0 \tabularnewline
M11 & -0.798794150110375 & 0.702478 & -1.1371 & 0.261257 & 0.130628 \tabularnewline
t & -0.0387941501103753 & 0.012677 & -3.0602 & 0.003648 & 0.001824 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25585&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]24.7241059602649[/C][C]0.595372[/C][C]41.5272[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-2.86879139072848[/C][C]0.510233[/C][C]-5.6225[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.0485568432671088[/C][C]0.673862[/C][C]-0.0721[/C][C]0.942862[/C][C]0.471431[/C][/ROW]
[ROW][C]M2[/C][C]-1.30169977924945[/C][C]0.707149[/C][C]-1.8408[/C][C]0.071973[/C][C]0.035986[/C][/ROW]
[ROW][C]M3[/C][C]-2.46290562913908[/C][C]0.706385[/C][C]-3.4866[/C][C]0.001072[/C][C]0.000536[/C][/ROW]
[ROW][C]M4[/C][C]-2.94411147902870[/C][C]0.705849[/C][C]-4.171[/C][C]0.000129[/C][C]6.5e-05[/C][/ROW]
[ROW][C]M5[/C][C]-3.36531732891832[/C][C]0.705539[/C][C]-4.7699[/C][C]1.8e-05[/C][C]9e-06[/C][/ROW]
[ROW][C]M6[/C][C]-3.90652317880795[/C][C]0.705457[/C][C]-5.5376[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M7[/C][C]-4.64772902869757[/C][C]0.705603[/C][C]-6.5869[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-4.36893487858720[/C][C]0.705977[/C][C]-6.1885[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-5.21014072847682[/C][C]0.706578[/C][C]-7.3738[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-4.53758830022075[/C][C]0.702821[/C][C]-6.4563[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-0.798794150110375[/C][C]0.702478[/C][C]-1.1371[/C][C]0.261257[/C][C]0.130628[/C][/ROW]
[ROW][C]t[/C][C]-0.0387941501103753[/C][C]0.012677[/C][C]-3.0602[/C][C]0.003648[/C][C]0.001824[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25585&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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)24.72410596026490.59537241.527200
x-2.868791390728480.510233-5.62251e-060
M1-0.04855684326710880.673862-0.07210.9428620.471431
M2-1.301699779249450.707149-1.84080.0719730.035986
M3-2.462905629139080.706385-3.48660.0010720.000536
M4-2.944111479028700.705849-4.1710.0001296.5e-05
M5-3.365317328918320.705539-4.76991.8e-059e-06
M6-3.906523178807950.705457-5.53761e-061e-06
M7-4.647729028697570.705603-6.586900
M8-4.368934878587200.705977-6.188500
M9-5.210140728476820.706578-7.373800
M10-4.537588300220750.702821-6.456300
M11-0.7987941501103750.702478-1.13710.2612570.130628
t-0.03879415011037530.012677-3.06020.0036480.001824







Multiple Linear Regression - Regression Statistics
Multiple R0.930244373511343
R-squared0.865354594449512
Adjusted R-squared0.82811224823342
F-TEST (value)23.2357700943017
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.11053375732208
Sum Squared Residuals57.9644056291391

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.930244373511343 \tabularnewline
R-squared & 0.865354594449512 \tabularnewline
Adjusted R-squared & 0.82811224823342 \tabularnewline
F-TEST (value) & 23.2357700943017 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 4.44089209850063e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.11053375732208 \tabularnewline
Sum Squared Residuals & 57.9644056291391 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25585&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.930244373511343[/C][/ROW]
[ROW][C]R-squared[/C][C]0.865354594449512[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.82811224823342[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]23.2357700943017[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]4.44089209850063e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.11053375732208[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]57.9644056291391[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25585&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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.930244373511343
R-squared0.865354594449512
Adjusted R-squared0.82811224823342
F-TEST (value)23.2357700943017
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.11053375732208
Sum Squared Residuals57.9644056291391







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12524.63675496688740.363245033112585
223.623.34481788079470.255182119205299
322.322.14481788079470.155182119205298
421.821.62481788079470.175182119205297
520.821.1648178807947-0.364817880794695
619.720.5848178807947-0.884817880794708
718.319.8048178807947-1.5048178807947
817.420.0448178807947-2.64481788079470
91719.1648178807947-2.16481788079470
1018.119.7985761589404-1.6985761589404
1123.923.49857615894040.401423841059604
1225.624.25857615894041.34142384105960
1325.324.17122516556291.12877483443709
1423.622.87928807947020.7207119205298
1521.921.67928807947020.2207119205298
1621.421.15928807947020.2407119205298
1720.620.6992880794702-0.0992880794701991
1820.520.11928807947020.380711920529803
1920.219.33928807947020.8607119205298
2020.619.57928807947021.02071192052980
2119.718.69928807947021.00071192052980
2219.319.3330463576159-0.0330463576158951
2322.823.0330463576159-0.233046357615894
2423.523.7930463576159-0.293046357615894
2523.823.70569536423840.0943046357615896
2622.622.41375827814570.186241721854305
272221.21375827814570.786241721854305
2821.720.69375827814571.00624172185430
2920.720.23375827814570.466241721854302
3020.219.65375827814570.546241721854306
3119.118.87375827814570.226241721854306
3219.519.11375827814570.386241721854304
3318.718.23375827814570.466241721854305
3418.618.8675165562914-0.267516556291390
3522.222.5675165562914-0.367516556291392
3623.223.3275165562914-0.127516556291391
3723.523.24016556291390.259834437086093
3821.321.9482284768212-0.648228476821192
392020.7482284768212-0.748228476821191
4018.720.2282284768212-1.52822847682119
4118.919.7682284768212-0.868228476821195
4218.319.1882284768212-0.888228476821188
4318.418.4082284768212-0.00822847682119302
4419.918.64822847682121.25177152317881
4519.217.76822847682121.43177152317881
4618.515.53319536423842.96680463576159
4720.919.23319536423841.66680463576159
4820.519.99319536423840.506804635761589
4919.419.9058443708609-0.505844370860929
5018.118.6139072847682-0.513907284768211
511717.4139072847682-0.413907284768212
521716.89390728476820.106092715231789
5317.316.43390728476820.866092715231787
5416.715.85390728476820.846092715231788
5515.515.07390728476820.426092715231787
5615.315.3139072847682-0.0139072847682126
5713.714.4339072847682-0.733907284768213
5814.115.0676655629139-0.967665562913907
5917.318.7676655629139-1.46766556291391
6018.119.5276655629139-1.42766556291391
6118.119.4403145695364-1.34031456953642

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25 & 24.6367549668874 & 0.363245033112585 \tabularnewline
2 & 23.6 & 23.3448178807947 & 0.255182119205299 \tabularnewline
3 & 22.3 & 22.1448178807947 & 0.155182119205298 \tabularnewline
4 & 21.8 & 21.6248178807947 & 0.175182119205297 \tabularnewline
5 & 20.8 & 21.1648178807947 & -0.364817880794695 \tabularnewline
6 & 19.7 & 20.5848178807947 & -0.884817880794708 \tabularnewline
7 & 18.3 & 19.8048178807947 & -1.5048178807947 \tabularnewline
8 & 17.4 & 20.0448178807947 & -2.64481788079470 \tabularnewline
9 & 17 & 19.1648178807947 & -2.16481788079470 \tabularnewline
10 & 18.1 & 19.7985761589404 & -1.6985761589404 \tabularnewline
11 & 23.9 & 23.4985761589404 & 0.401423841059604 \tabularnewline
12 & 25.6 & 24.2585761589404 & 1.34142384105960 \tabularnewline
13 & 25.3 & 24.1712251655629 & 1.12877483443709 \tabularnewline
14 & 23.6 & 22.8792880794702 & 0.7207119205298 \tabularnewline
15 & 21.9 & 21.6792880794702 & 0.2207119205298 \tabularnewline
16 & 21.4 & 21.1592880794702 & 0.2407119205298 \tabularnewline
17 & 20.6 & 20.6992880794702 & -0.0992880794701991 \tabularnewline
18 & 20.5 & 20.1192880794702 & 0.380711920529803 \tabularnewline
19 & 20.2 & 19.3392880794702 & 0.8607119205298 \tabularnewline
20 & 20.6 & 19.5792880794702 & 1.02071192052980 \tabularnewline
21 & 19.7 & 18.6992880794702 & 1.00071192052980 \tabularnewline
22 & 19.3 & 19.3330463576159 & -0.0330463576158951 \tabularnewline
23 & 22.8 & 23.0330463576159 & -0.233046357615894 \tabularnewline
24 & 23.5 & 23.7930463576159 & -0.293046357615894 \tabularnewline
25 & 23.8 & 23.7056953642384 & 0.0943046357615896 \tabularnewline
26 & 22.6 & 22.4137582781457 & 0.186241721854305 \tabularnewline
27 & 22 & 21.2137582781457 & 0.786241721854305 \tabularnewline
28 & 21.7 & 20.6937582781457 & 1.00624172185430 \tabularnewline
29 & 20.7 & 20.2337582781457 & 0.466241721854302 \tabularnewline
30 & 20.2 & 19.6537582781457 & 0.546241721854306 \tabularnewline
31 & 19.1 & 18.8737582781457 & 0.226241721854306 \tabularnewline
32 & 19.5 & 19.1137582781457 & 0.386241721854304 \tabularnewline
33 & 18.7 & 18.2337582781457 & 0.466241721854305 \tabularnewline
34 & 18.6 & 18.8675165562914 & -0.267516556291390 \tabularnewline
35 & 22.2 & 22.5675165562914 & -0.367516556291392 \tabularnewline
36 & 23.2 & 23.3275165562914 & -0.127516556291391 \tabularnewline
37 & 23.5 & 23.2401655629139 & 0.259834437086093 \tabularnewline
38 & 21.3 & 21.9482284768212 & -0.648228476821192 \tabularnewline
39 & 20 & 20.7482284768212 & -0.748228476821191 \tabularnewline
40 & 18.7 & 20.2282284768212 & -1.52822847682119 \tabularnewline
41 & 18.9 & 19.7682284768212 & -0.868228476821195 \tabularnewline
42 & 18.3 & 19.1882284768212 & -0.888228476821188 \tabularnewline
43 & 18.4 & 18.4082284768212 & -0.00822847682119302 \tabularnewline
44 & 19.9 & 18.6482284768212 & 1.25177152317881 \tabularnewline
45 & 19.2 & 17.7682284768212 & 1.43177152317881 \tabularnewline
46 & 18.5 & 15.5331953642384 & 2.96680463576159 \tabularnewline
47 & 20.9 & 19.2331953642384 & 1.66680463576159 \tabularnewline
48 & 20.5 & 19.9931953642384 & 0.506804635761589 \tabularnewline
49 & 19.4 & 19.9058443708609 & -0.505844370860929 \tabularnewline
50 & 18.1 & 18.6139072847682 & -0.513907284768211 \tabularnewline
51 & 17 & 17.4139072847682 & -0.413907284768212 \tabularnewline
52 & 17 & 16.8939072847682 & 0.106092715231789 \tabularnewline
53 & 17.3 & 16.4339072847682 & 0.866092715231787 \tabularnewline
54 & 16.7 & 15.8539072847682 & 0.846092715231788 \tabularnewline
55 & 15.5 & 15.0739072847682 & 0.426092715231787 \tabularnewline
56 & 15.3 & 15.3139072847682 & -0.0139072847682126 \tabularnewline
57 & 13.7 & 14.4339072847682 & -0.733907284768213 \tabularnewline
58 & 14.1 & 15.0676655629139 & -0.967665562913907 \tabularnewline
59 & 17.3 & 18.7676655629139 & -1.46766556291391 \tabularnewline
60 & 18.1 & 19.5276655629139 & -1.42766556291391 \tabularnewline
61 & 18.1 & 19.4403145695364 & -1.34031456953642 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25585&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]25[/C][C]24.6367549668874[/C][C]0.363245033112585[/C][/ROW]
[ROW][C]2[/C][C]23.6[/C][C]23.3448178807947[/C][C]0.255182119205299[/C][/ROW]
[ROW][C]3[/C][C]22.3[/C][C]22.1448178807947[/C][C]0.155182119205298[/C][/ROW]
[ROW][C]4[/C][C]21.8[/C][C]21.6248178807947[/C][C]0.175182119205297[/C][/ROW]
[ROW][C]5[/C][C]20.8[/C][C]21.1648178807947[/C][C]-0.364817880794695[/C][/ROW]
[ROW][C]6[/C][C]19.7[/C][C]20.5848178807947[/C][C]-0.884817880794708[/C][/ROW]
[ROW][C]7[/C][C]18.3[/C][C]19.8048178807947[/C][C]-1.5048178807947[/C][/ROW]
[ROW][C]8[/C][C]17.4[/C][C]20.0448178807947[/C][C]-2.64481788079470[/C][/ROW]
[ROW][C]9[/C][C]17[/C][C]19.1648178807947[/C][C]-2.16481788079470[/C][/ROW]
[ROW][C]10[/C][C]18.1[/C][C]19.7985761589404[/C][C]-1.6985761589404[/C][/ROW]
[ROW][C]11[/C][C]23.9[/C][C]23.4985761589404[/C][C]0.401423841059604[/C][/ROW]
[ROW][C]12[/C][C]25.6[/C][C]24.2585761589404[/C][C]1.34142384105960[/C][/ROW]
[ROW][C]13[/C][C]25.3[/C][C]24.1712251655629[/C][C]1.12877483443709[/C][/ROW]
[ROW][C]14[/C][C]23.6[/C][C]22.8792880794702[/C][C]0.7207119205298[/C][/ROW]
[ROW][C]15[/C][C]21.9[/C][C]21.6792880794702[/C][C]0.2207119205298[/C][/ROW]
[ROW][C]16[/C][C]21.4[/C][C]21.1592880794702[/C][C]0.2407119205298[/C][/ROW]
[ROW][C]17[/C][C]20.6[/C][C]20.6992880794702[/C][C]-0.0992880794701991[/C][/ROW]
[ROW][C]18[/C][C]20.5[/C][C]20.1192880794702[/C][C]0.380711920529803[/C][/ROW]
[ROW][C]19[/C][C]20.2[/C][C]19.3392880794702[/C][C]0.8607119205298[/C][/ROW]
[ROW][C]20[/C][C]20.6[/C][C]19.5792880794702[/C][C]1.02071192052980[/C][/ROW]
[ROW][C]21[/C][C]19.7[/C][C]18.6992880794702[/C][C]1.00071192052980[/C][/ROW]
[ROW][C]22[/C][C]19.3[/C][C]19.3330463576159[/C][C]-0.0330463576158951[/C][/ROW]
[ROW][C]23[/C][C]22.8[/C][C]23.0330463576159[/C][C]-0.233046357615894[/C][/ROW]
[ROW][C]24[/C][C]23.5[/C][C]23.7930463576159[/C][C]-0.293046357615894[/C][/ROW]
[ROW][C]25[/C][C]23.8[/C][C]23.7056953642384[/C][C]0.0943046357615896[/C][/ROW]
[ROW][C]26[/C][C]22.6[/C][C]22.4137582781457[/C][C]0.186241721854305[/C][/ROW]
[ROW][C]27[/C][C]22[/C][C]21.2137582781457[/C][C]0.786241721854305[/C][/ROW]
[ROW][C]28[/C][C]21.7[/C][C]20.6937582781457[/C][C]1.00624172185430[/C][/ROW]
[ROW][C]29[/C][C]20.7[/C][C]20.2337582781457[/C][C]0.466241721854302[/C][/ROW]
[ROW][C]30[/C][C]20.2[/C][C]19.6537582781457[/C][C]0.546241721854306[/C][/ROW]
[ROW][C]31[/C][C]19.1[/C][C]18.8737582781457[/C][C]0.226241721854306[/C][/ROW]
[ROW][C]32[/C][C]19.5[/C][C]19.1137582781457[/C][C]0.386241721854304[/C][/ROW]
[ROW][C]33[/C][C]18.7[/C][C]18.2337582781457[/C][C]0.466241721854305[/C][/ROW]
[ROW][C]34[/C][C]18.6[/C][C]18.8675165562914[/C][C]-0.267516556291390[/C][/ROW]
[ROW][C]35[/C][C]22.2[/C][C]22.5675165562914[/C][C]-0.367516556291392[/C][/ROW]
[ROW][C]36[/C][C]23.2[/C][C]23.3275165562914[/C][C]-0.127516556291391[/C][/ROW]
[ROW][C]37[/C][C]23.5[/C][C]23.2401655629139[/C][C]0.259834437086093[/C][/ROW]
[ROW][C]38[/C][C]21.3[/C][C]21.9482284768212[/C][C]-0.648228476821192[/C][/ROW]
[ROW][C]39[/C][C]20[/C][C]20.7482284768212[/C][C]-0.748228476821191[/C][/ROW]
[ROW][C]40[/C][C]18.7[/C][C]20.2282284768212[/C][C]-1.52822847682119[/C][/ROW]
[ROW][C]41[/C][C]18.9[/C][C]19.7682284768212[/C][C]-0.868228476821195[/C][/ROW]
[ROW][C]42[/C][C]18.3[/C][C]19.1882284768212[/C][C]-0.888228476821188[/C][/ROW]
[ROW][C]43[/C][C]18.4[/C][C]18.4082284768212[/C][C]-0.00822847682119302[/C][/ROW]
[ROW][C]44[/C][C]19.9[/C][C]18.6482284768212[/C][C]1.25177152317881[/C][/ROW]
[ROW][C]45[/C][C]19.2[/C][C]17.7682284768212[/C][C]1.43177152317881[/C][/ROW]
[ROW][C]46[/C][C]18.5[/C][C]15.5331953642384[/C][C]2.96680463576159[/C][/ROW]
[ROW][C]47[/C][C]20.9[/C][C]19.2331953642384[/C][C]1.66680463576159[/C][/ROW]
[ROW][C]48[/C][C]20.5[/C][C]19.9931953642384[/C][C]0.506804635761589[/C][/ROW]
[ROW][C]49[/C][C]19.4[/C][C]19.9058443708609[/C][C]-0.505844370860929[/C][/ROW]
[ROW][C]50[/C][C]18.1[/C][C]18.6139072847682[/C][C]-0.513907284768211[/C][/ROW]
[ROW][C]51[/C][C]17[/C][C]17.4139072847682[/C][C]-0.413907284768212[/C][/ROW]
[ROW][C]52[/C][C]17[/C][C]16.8939072847682[/C][C]0.106092715231789[/C][/ROW]
[ROW][C]53[/C][C]17.3[/C][C]16.4339072847682[/C][C]0.866092715231787[/C][/ROW]
[ROW][C]54[/C][C]16.7[/C][C]15.8539072847682[/C][C]0.846092715231788[/C][/ROW]
[ROW][C]55[/C][C]15.5[/C][C]15.0739072847682[/C][C]0.426092715231787[/C][/ROW]
[ROW][C]56[/C][C]15.3[/C][C]15.3139072847682[/C][C]-0.0139072847682126[/C][/ROW]
[ROW][C]57[/C][C]13.7[/C][C]14.4339072847682[/C][C]-0.733907284768213[/C][/ROW]
[ROW][C]58[/C][C]14.1[/C][C]15.0676655629139[/C][C]-0.967665562913907[/C][/ROW]
[ROW][C]59[/C][C]17.3[/C][C]18.7676655629139[/C][C]-1.46766556291391[/C][/ROW]
[ROW][C]60[/C][C]18.1[/C][C]19.5276655629139[/C][C]-1.42766556291391[/C][/ROW]
[ROW][C]61[/C][C]18.1[/C][C]19.4403145695364[/C][C]-1.34031456953642[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25585&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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
12524.63675496688740.363245033112585
223.623.34481788079470.255182119205299
322.322.14481788079470.155182119205298
421.821.62481788079470.175182119205297
520.821.1648178807947-0.364817880794695
619.720.5848178807947-0.884817880794708
718.319.8048178807947-1.5048178807947
817.420.0448178807947-2.64481788079470
91719.1648178807947-2.16481788079470
1018.119.7985761589404-1.6985761589404
1123.923.49857615894040.401423841059604
1225.624.25857615894041.34142384105960
1325.324.17122516556291.12877483443709
1423.622.87928807947020.7207119205298
1521.921.67928807947020.2207119205298
1621.421.15928807947020.2407119205298
1720.620.6992880794702-0.0992880794701991
1820.520.11928807947020.380711920529803
1920.219.33928807947020.8607119205298
2020.619.57928807947021.02071192052980
2119.718.69928807947021.00071192052980
2219.319.3330463576159-0.0330463576158951
2322.823.0330463576159-0.233046357615894
2423.523.7930463576159-0.293046357615894
2523.823.70569536423840.0943046357615896
2622.622.41375827814570.186241721854305
272221.21375827814570.786241721854305
2821.720.69375827814571.00624172185430
2920.720.23375827814570.466241721854302
3020.219.65375827814570.546241721854306
3119.118.87375827814570.226241721854306
3219.519.11375827814570.386241721854304
3318.718.23375827814570.466241721854305
3418.618.8675165562914-0.267516556291390
3522.222.5675165562914-0.367516556291392
3623.223.3275165562914-0.127516556291391
3723.523.24016556291390.259834437086093
3821.321.9482284768212-0.648228476821192
392020.7482284768212-0.748228476821191
4018.720.2282284768212-1.52822847682119
4118.919.7682284768212-0.868228476821195
4218.319.1882284768212-0.888228476821188
4318.418.4082284768212-0.00822847682119302
4419.918.64822847682121.25177152317881
4519.217.76822847682121.43177152317881
4618.515.53319536423842.96680463576159
4720.919.23319536423841.66680463576159
4820.519.99319536423840.506804635761589
4919.419.9058443708609-0.505844370860929
5018.118.6139072847682-0.513907284768211
511717.4139072847682-0.413907284768212
521716.89390728476820.106092715231789
5317.316.43390728476820.866092715231787
5416.715.85390728476820.846092715231788
5515.515.07390728476820.426092715231787
5615.315.3139072847682-0.0139072847682126
5713.714.4339072847682-0.733907284768213
5814.115.0676655629139-0.967665562913907
5917.318.7676655629139-1.46766556291391
6018.119.5276655629139-1.42766556291391
6118.119.4403145695364-1.34031456953642







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02712172493365670.05424344986731340.972878275066343
180.04902621043607710.09805242087215420.950973789563923
190.2315155112099960.4630310224199930.768484488790004
200.6426558304880520.7146883390238960.357344169511948
210.7024662912500640.5950674174998720.297533708749936
220.646171278069930.7076574438601390.353828721930070
230.7157354092458860.5685291815082280.284264590754114
240.8420708034196010.3158583931607970.157929196580399
250.8620133136004760.2759733727990480.137986686399524
260.829680927406720.3406381451865590.170319072593280
270.7603971500040770.4792056999918460.239602849995923
280.6899562584516790.6200874830966420.310043741548321
290.60223856210220.79552287579560.3977614378978
300.5080914667336030.9838170665327940.491908533266397
310.4459234685457360.8918469370914720.554076531454264
320.4331217915677570.8662435831355130.566878208432243
330.4200978124353430.8401956248706870.579902187564657
340.4579947435399130.9159894870798260.542005256460087
350.4695361737416020.9390723474832050.530463826258398
360.428835165281460.857670330562920.57116483471854
370.3581044584475930.7162089168951870.641895541552407
380.3251620697225160.6503241394450320.674837930277484
390.2783533146996640.5567066293993280.721646685300336
400.3302172896544970.6604345793089940.669782710345503
410.3541964610124640.7083929220249280.645803538987536
420.5120734066290490.9758531867419030.487926593370951
430.5699200917082810.8601598165834380.430079908291719
440.4533194396459370.9066388792918740.546680560354063

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0271217249336567 & 0.0542434498673134 & 0.972878275066343 \tabularnewline
18 & 0.0490262104360771 & 0.0980524208721542 & 0.950973789563923 \tabularnewline
19 & 0.231515511209996 & 0.463031022419993 & 0.768484488790004 \tabularnewline
20 & 0.642655830488052 & 0.714688339023896 & 0.357344169511948 \tabularnewline
21 & 0.702466291250064 & 0.595067417499872 & 0.297533708749936 \tabularnewline
22 & 0.64617127806993 & 0.707657443860139 & 0.353828721930070 \tabularnewline
23 & 0.715735409245886 & 0.568529181508228 & 0.284264590754114 \tabularnewline
24 & 0.842070803419601 & 0.315858393160797 & 0.157929196580399 \tabularnewline
25 & 0.862013313600476 & 0.275973372799048 & 0.137986686399524 \tabularnewline
26 & 0.82968092740672 & 0.340638145186559 & 0.170319072593280 \tabularnewline
27 & 0.760397150004077 & 0.479205699991846 & 0.239602849995923 \tabularnewline
28 & 0.689956258451679 & 0.620087483096642 & 0.310043741548321 \tabularnewline
29 & 0.6022385621022 & 0.7955228757956 & 0.3977614378978 \tabularnewline
30 & 0.508091466733603 & 0.983817066532794 & 0.491908533266397 \tabularnewline
31 & 0.445923468545736 & 0.891846937091472 & 0.554076531454264 \tabularnewline
32 & 0.433121791567757 & 0.866243583135513 & 0.566878208432243 \tabularnewline
33 & 0.420097812435343 & 0.840195624870687 & 0.579902187564657 \tabularnewline
34 & 0.457994743539913 & 0.915989487079826 & 0.542005256460087 \tabularnewline
35 & 0.469536173741602 & 0.939072347483205 & 0.530463826258398 \tabularnewline
36 & 0.42883516528146 & 0.85767033056292 & 0.57116483471854 \tabularnewline
37 & 0.358104458447593 & 0.716208916895187 & 0.641895541552407 \tabularnewline
38 & 0.325162069722516 & 0.650324139445032 & 0.674837930277484 \tabularnewline
39 & 0.278353314699664 & 0.556706629399328 & 0.721646685300336 \tabularnewline
40 & 0.330217289654497 & 0.660434579308994 & 0.669782710345503 \tabularnewline
41 & 0.354196461012464 & 0.708392922024928 & 0.645803538987536 \tabularnewline
42 & 0.512073406629049 & 0.975853186741903 & 0.487926593370951 \tabularnewline
43 & 0.569920091708281 & 0.860159816583438 & 0.430079908291719 \tabularnewline
44 & 0.453319439645937 & 0.906638879291874 & 0.546680560354063 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25585&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.0271217249336567[/C][C]0.0542434498673134[/C][C]0.972878275066343[/C][/ROW]
[ROW][C]18[/C][C]0.0490262104360771[/C][C]0.0980524208721542[/C][C]0.950973789563923[/C][/ROW]
[ROW][C]19[/C][C]0.231515511209996[/C][C]0.463031022419993[/C][C]0.768484488790004[/C][/ROW]
[ROW][C]20[/C][C]0.642655830488052[/C][C]0.714688339023896[/C][C]0.357344169511948[/C][/ROW]
[ROW][C]21[/C][C]0.702466291250064[/C][C]0.595067417499872[/C][C]0.297533708749936[/C][/ROW]
[ROW][C]22[/C][C]0.64617127806993[/C][C]0.707657443860139[/C][C]0.353828721930070[/C][/ROW]
[ROW][C]23[/C][C]0.715735409245886[/C][C]0.568529181508228[/C][C]0.284264590754114[/C][/ROW]
[ROW][C]24[/C][C]0.842070803419601[/C][C]0.315858393160797[/C][C]0.157929196580399[/C][/ROW]
[ROW][C]25[/C][C]0.862013313600476[/C][C]0.275973372799048[/C][C]0.137986686399524[/C][/ROW]
[ROW][C]26[/C][C]0.82968092740672[/C][C]0.340638145186559[/C][C]0.170319072593280[/C][/ROW]
[ROW][C]27[/C][C]0.760397150004077[/C][C]0.479205699991846[/C][C]0.239602849995923[/C][/ROW]
[ROW][C]28[/C][C]0.689956258451679[/C][C]0.620087483096642[/C][C]0.310043741548321[/C][/ROW]
[ROW][C]29[/C][C]0.6022385621022[/C][C]0.7955228757956[/C][C]0.3977614378978[/C][/ROW]
[ROW][C]30[/C][C]0.508091466733603[/C][C]0.983817066532794[/C][C]0.491908533266397[/C][/ROW]
[ROW][C]31[/C][C]0.445923468545736[/C][C]0.891846937091472[/C][C]0.554076531454264[/C][/ROW]
[ROW][C]32[/C][C]0.433121791567757[/C][C]0.866243583135513[/C][C]0.566878208432243[/C][/ROW]
[ROW][C]33[/C][C]0.420097812435343[/C][C]0.840195624870687[/C][C]0.579902187564657[/C][/ROW]
[ROW][C]34[/C][C]0.457994743539913[/C][C]0.915989487079826[/C][C]0.542005256460087[/C][/ROW]
[ROW][C]35[/C][C]0.469536173741602[/C][C]0.939072347483205[/C][C]0.530463826258398[/C][/ROW]
[ROW][C]36[/C][C]0.42883516528146[/C][C]0.85767033056292[/C][C]0.57116483471854[/C][/ROW]
[ROW][C]37[/C][C]0.358104458447593[/C][C]0.716208916895187[/C][C]0.641895541552407[/C][/ROW]
[ROW][C]38[/C][C]0.325162069722516[/C][C]0.650324139445032[/C][C]0.674837930277484[/C][/ROW]
[ROW][C]39[/C][C]0.278353314699664[/C][C]0.556706629399328[/C][C]0.721646685300336[/C][/ROW]
[ROW][C]40[/C][C]0.330217289654497[/C][C]0.660434579308994[/C][C]0.669782710345503[/C][/ROW]
[ROW][C]41[/C][C]0.354196461012464[/C][C]0.708392922024928[/C][C]0.645803538987536[/C][/ROW]
[ROW][C]42[/C][C]0.512073406629049[/C][C]0.975853186741903[/C][C]0.487926593370951[/C][/ROW]
[ROW][C]43[/C][C]0.569920091708281[/C][C]0.860159816583438[/C][C]0.430079908291719[/C][/ROW]
[ROW][C]44[/C][C]0.453319439645937[/C][C]0.906638879291874[/C][C]0.546680560354063[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25585&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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.02712172493365670.05424344986731340.972878275066343
180.04902621043607710.09805242087215420.950973789563923
190.2315155112099960.4630310224199930.768484488790004
200.6426558304880520.7146883390238960.357344169511948
210.7024662912500640.5950674174998720.297533708749936
220.646171278069930.7076574438601390.353828721930070
230.7157354092458860.5685291815082280.284264590754114
240.8420708034196010.3158583931607970.157929196580399
250.8620133136004760.2759733727990480.137986686399524
260.829680927406720.3406381451865590.170319072593280
270.7603971500040770.4792056999918460.239602849995923
280.6899562584516790.6200874830966420.310043741548321
290.60223856210220.79552287579560.3977614378978
300.5080914667336030.9838170665327940.491908533266397
310.4459234685457360.8918469370914720.554076531454264
320.4331217915677570.8662435831355130.566878208432243
330.4200978124353430.8401956248706870.579902187564657
340.4579947435399130.9159894870798260.542005256460087
350.4695361737416020.9390723474832050.530463826258398
360.428835165281460.857670330562920.57116483471854
370.3581044584475930.7162089168951870.641895541552407
380.3251620697225160.6503241394450320.674837930277484
390.2783533146996640.5567066293993280.721646685300336
400.3302172896544970.6604345793089940.669782710345503
410.3541964610124640.7083929220249280.645803538987536
420.5120734066290490.9758531867419030.487926593370951
430.5699200917082810.8601598165834380.430079908291719
440.4533194396459370.9066388792918740.546680560354063







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0714285714285714OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25585&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 level00OK
5% type I error level00OK
10% type I error level20.0714285714285714OK



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