Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 04 Dec 2009 05:52:54 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/04/t12599313329vzhrrh627ism1w.htm/, Retrieved Sat, 27 Apr 2024 18:22:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63443, Retrieved Sat, 27 Apr 2024 18:22:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [W 7] [2009-11-18 20:45:25] [315ba876df544ad397193b5931d5f354]
-   PD        [Multiple Regression] [Multiple Regression] [2009-12-04 12:52:54] [950726a732ba3ca782ecb1a5307d0f6f] [Current]
Feedback Forum

Post a new message
Dataseries X:
13132.1	0
17665.9	0
16913	0
17318.8	0
16224.2	0
15469.6	0
16557.5	0
19414.8	0
17335	0
16525.2	0
18160.4	0
15553.8	0
15262.2	0
18581	0
17564.1	0
18948.6	0
17187.8	0
17564.8	0
17668.4	0
20811.7	0
17257.8	0
18984.2	0
20532.6	0
17082.3	0
16894.9	0
20274.9	0
20078.6	0
19900.9	0
17012.2	0
19642.9	0
19024	0
21691	0
18835.9	0
19873.4	0
21468.2	0
19406.8	0
18385.3	0
20739.3	0
22268.3	0
21569	0
17514.8	0
21124.7	0
21251	0
21393	0
22145.2	0
20310.5	0
23466.9	0
21264.6	0
18388.1	0
22635.4	0
22014.3	1
18422.7	1
16120.2	1
16037.7	1
16410.7	1
17749.8	1
16349.8	1
15662.3	1
17782.3	1
16398.9	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=63443&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=63443&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63443&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
Uitvoer[t] = + 14842.0402857143 -5214.89071428572Crisis[t] -1306.06046428573M1[t] + 2145.65792857143M2[t] + 2861.93446428572M3[t] + 2211.21285714286M4[t] -324.008749999997M5[t] + 717.029642857146M6[t] + 816.348035714288M7[t] + 2731.02642857143M8[t] + 788.644821428573M9[t] + 559.963214285717M10[t] + 2455.86160714286M11[t] + 115.061607142857t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Uitvoer[t] =  +  14842.0402857143 -5214.89071428572Crisis[t] -1306.06046428573M1[t] +  2145.65792857143M2[t] +  2861.93446428572M3[t] +  2211.21285714286M4[t] -324.008749999997M5[t] +  717.029642857146M6[t] +  816.348035714288M7[t] +  2731.02642857143M8[t] +  788.644821428573M9[t] +  559.963214285717M10[t] +  2455.86160714286M11[t] +  115.061607142857t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63443&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Uitvoer[t] =  +  14842.0402857143 -5214.89071428572Crisis[t] -1306.06046428573M1[t] +  2145.65792857143M2[t] +  2861.93446428572M3[t] +  2211.21285714286M4[t] -324.008749999997M5[t] +  717.029642857146M6[t] +  816.348035714288M7[t] +  2731.02642857143M8[t] +  788.644821428573M9[t] +  559.963214285717M10[t] +  2455.86160714286M11[t] +  115.061607142857t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63443&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63443&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
Uitvoer[t] = + 14842.0402857143 -5214.89071428572Crisis[t] -1306.06046428573M1[t] + 2145.65792857143M2[t] + 2861.93446428572M3[t] + 2211.21285714286M4[t] -324.008749999997M5[t] + 717.029642857146M6[t] + 816.348035714288M7[t] + 2731.02642857143M8[t] + 788.644821428573M9[t] + 559.963214285717M10[t] + 2455.86160714286M11[t] + 115.061607142857t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)14842.0402857143536.87740227.645100
Crisis-5214.89071428572458.128325-11.38300
M1-1306.06046428573631.747842-2.06740.0443510.022176
M22145.65792857143631.055333.40010.0014020.000701
M32861.93446428572632.1783564.52714.2e-052.1e-05
M42211.21285714286630.8705323.5050.001030.000515
M5-324.008749999997629.714314-0.51450.6093430.304671
M6717.029642857146628.7105391.14050.2599910.129996
M7816.348035714288627.8599371.30020.2000070.100004
M82731.02642857143627.1631314.35467.4e-053.7e-05
M9788.644821428573626.6206361.25860.2145370.107268
M10559.963214285717626.2328520.89420.3758820.187941
M112455.86160714286626.0000663.92310.000290.000145
t115.0616071428579.85735211.672700

\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) & 14842.0402857143 & 536.877402 & 27.6451 & 0 & 0 \tabularnewline
Crisis & -5214.89071428572 & 458.128325 & -11.383 & 0 & 0 \tabularnewline
M1 & -1306.06046428573 & 631.747842 & -2.0674 & 0.044351 & 0.022176 \tabularnewline
M2 & 2145.65792857143 & 631.05533 & 3.4001 & 0.001402 & 0.000701 \tabularnewline
M3 & 2861.93446428572 & 632.178356 & 4.5271 & 4.2e-05 & 2.1e-05 \tabularnewline
M4 & 2211.21285714286 & 630.870532 & 3.505 & 0.00103 & 0.000515 \tabularnewline
M5 & -324.008749999997 & 629.714314 & -0.5145 & 0.609343 & 0.304671 \tabularnewline
M6 & 717.029642857146 & 628.710539 & 1.1405 & 0.259991 & 0.129996 \tabularnewline
M7 & 816.348035714288 & 627.859937 & 1.3002 & 0.200007 & 0.100004 \tabularnewline
M8 & 2731.02642857143 & 627.163131 & 4.3546 & 7.4e-05 & 3.7e-05 \tabularnewline
M9 & 788.644821428573 & 626.620636 & 1.2586 & 0.214537 & 0.107268 \tabularnewline
M10 & 559.963214285717 & 626.232852 & 0.8942 & 0.375882 & 0.187941 \tabularnewline
M11 & 2455.86160714286 & 626.000066 & 3.9231 & 0.00029 & 0.000145 \tabularnewline
t & 115.061607142857 & 9.857352 & 11.6727 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63443&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]14842.0402857143[/C][C]536.877402[/C][C]27.6451[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Crisis[/C][C]-5214.89071428572[/C][C]458.128325[/C][C]-11.383[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-1306.06046428573[/C][C]631.747842[/C][C]-2.0674[/C][C]0.044351[/C][C]0.022176[/C][/ROW]
[ROW][C]M2[/C][C]2145.65792857143[/C][C]631.05533[/C][C]3.4001[/C][C]0.001402[/C][C]0.000701[/C][/ROW]
[ROW][C]M3[/C][C]2861.93446428572[/C][C]632.178356[/C][C]4.5271[/C][C]4.2e-05[/C][C]2.1e-05[/C][/ROW]
[ROW][C]M4[/C][C]2211.21285714286[/C][C]630.870532[/C][C]3.505[/C][C]0.00103[/C][C]0.000515[/C][/ROW]
[ROW][C]M5[/C][C]-324.008749999997[/C][C]629.714314[/C][C]-0.5145[/C][C]0.609343[/C][C]0.304671[/C][/ROW]
[ROW][C]M6[/C][C]717.029642857146[/C][C]628.710539[/C][C]1.1405[/C][C]0.259991[/C][C]0.129996[/C][/ROW]
[ROW][C]M7[/C][C]816.348035714288[/C][C]627.859937[/C][C]1.3002[/C][C]0.200007[/C][C]0.100004[/C][/ROW]
[ROW][C]M8[/C][C]2731.02642857143[/C][C]627.163131[/C][C]4.3546[/C][C]7.4e-05[/C][C]3.7e-05[/C][/ROW]
[ROW][C]M9[/C][C]788.644821428573[/C][C]626.620636[/C][C]1.2586[/C][C]0.214537[/C][C]0.107268[/C][/ROW]
[ROW][C]M10[/C][C]559.963214285717[/C][C]626.232852[/C][C]0.8942[/C][C]0.375882[/C][C]0.187941[/C][/ROW]
[ROW][C]M11[/C][C]2455.86160714286[/C][C]626.000066[/C][C]3.9231[/C][C]0.00029[/C][C]0.000145[/C][/ROW]
[ROW][C]t[/C][C]115.061607142857[/C][C]9.857352[/C][C]11.6727[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63443&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63443&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)14842.0402857143536.87740227.645100
Crisis-5214.89071428572458.128325-11.38300
M1-1306.06046428573631.747842-2.06740.0443510.022176
M22145.65792857143631.055333.40010.0014020.000701
M32861.93446428572632.1783564.52714.2e-052.1e-05
M42211.21285714286630.8705323.5050.001030.000515
M5-324.008749999997629.714314-0.51450.6093430.304671
M6717.029642857146628.7105391.14050.2599910.129996
M7816.348035714288627.8599371.30020.2000070.100004
M82731.02642857143627.1631314.35467.4e-053.7e-05
M9788.644821428573626.6206361.25860.2145370.107268
M10559.963214285717626.2328520.89420.3758820.187941
M112455.86160714286626.0000663.92310.000290.000145
t115.0616071428579.85735211.672700







Multiple Linear Regression - Regression Statistics
Multiple R0.920344285580731
R-squared0.847033604001107
Adjusted R-squared0.803803970349246
F-TEST (value)19.5938186944279
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.62092561595273e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation989.670292566894
Sum Squared Residuals45054575.2475143

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.920344285580731 \tabularnewline
R-squared & 0.847033604001107 \tabularnewline
Adjusted R-squared & 0.803803970349246 \tabularnewline
F-TEST (value) & 19.5938186944279 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.62092561595273e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 989.670292566894 \tabularnewline
Sum Squared Residuals & 45054575.2475143 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63443&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.920344285580731[/C][/ROW]
[ROW][C]R-squared[/C][C]0.847033604001107[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.803803970349246[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]19.5938186944279[/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]1.62092561595273e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]989.670292566894[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]45054575.2475143[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63443&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63443&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.920344285580731
R-squared0.847033604001107
Adjusted R-squared0.803803970349246
F-TEST (value)19.5938186944279
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.62092561595273e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation989.670292566894
Sum Squared Residuals45054575.2475143







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
113132.113651.0414285715-518.941428571466
217665.917217.8214285714448.078571428573
31691318049.1595714286-1136.15957142856
417318.817513.4995714286-194.699571428571
516224.215093.33957142861130.86042857143
615469.616249.4395714286-779.839571428568
716557.516463.819571428693.6804285714297
819414.818493.5595714286921.24042857143
91733516666.2395714286668.76042857143
1016525.216552.6195714286-27.4195714285682
1118160.418563.5795714286-403.179571428567
1215553.816222.7795714286-668.979571428568
1315262.215031.7807142857230.419285714298
141858118598.5607142857-17.5607142857161
1517564.119429.8988571429-1865.79885714286
1618948.618894.238857142954.3611428571423
1717187.816474.0788571429713.721142857143
1817564.817630.1788571429-65.3788571428581
1917668.417844.5588571429-176.158857142855
2020811.719874.2988571429937.401142857145
2117257.818046.9788571429-789.178857142857
2218984.217933.35885714291050.84114285714
2320532.619944.3188571429588.281142857142
2417082.317603.5188571429-521.218857142855
2516894.916412.52482.380000000012
2620274.919979.3295.600000000002
2720078.620810.6381428571-732.038142857146
2819900.920274.9781428571-374.078142857142
2917012.217854.8181428571-842.618142857144
3019642.919010.9181428571631.981857142856
311902419225.2981428571-201.298142857144
322169121255.0381428571435.961857142856
3318835.919427.7181428571-591.818142857143
3419873.419314.0981428571559.301857142856
3521468.221325.0581428571143.141857142856
3619406.818984.2581428571422.541857142856
3718385.317793.2592857143592.040714285722
3820739.321360.0392857143-620.739285714287
3922268.322191.377428571476.9225714285666
402156921655.7174285714-86.7174285714308
4117514.819235.5574285714-1720.75742857143
4221124.720391.6574285714733.04257142857
432125120606.0374285714644.962571428569
442139322635.7774285714-1242.77742857143
4522145.220808.45742857141336.74257142857
4620310.520694.8374285714-384.337428571430
4723466.922705.7974285714761.10257142857
4821264.620364.9974285714899.60257142857
4918388.119173.9985714286-785.898571428566
5022635.422740.7785714286-105.378571428573
5122014.318357.2263657.074
5218422.717821.566601.134000000001
5316120.215401.406718.794
5416037.716557.506-519.806
5516410.716771.886-361.185999999999
5617749.818801.626-1051.82600000000
5716349.816974.306-624.506000000001
5815662.316860.686-1198.38600000000
5917782.318871.646-1089.34600000000
6016398.916530.846-131.945999999997

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 13132.1 & 13651.0414285715 & -518.941428571466 \tabularnewline
2 & 17665.9 & 17217.8214285714 & 448.078571428573 \tabularnewline
3 & 16913 & 18049.1595714286 & -1136.15957142856 \tabularnewline
4 & 17318.8 & 17513.4995714286 & -194.699571428571 \tabularnewline
5 & 16224.2 & 15093.3395714286 & 1130.86042857143 \tabularnewline
6 & 15469.6 & 16249.4395714286 & -779.839571428568 \tabularnewline
7 & 16557.5 & 16463.8195714286 & 93.6804285714297 \tabularnewline
8 & 19414.8 & 18493.5595714286 & 921.24042857143 \tabularnewline
9 & 17335 & 16666.2395714286 & 668.76042857143 \tabularnewline
10 & 16525.2 & 16552.6195714286 & -27.4195714285682 \tabularnewline
11 & 18160.4 & 18563.5795714286 & -403.179571428567 \tabularnewline
12 & 15553.8 & 16222.7795714286 & -668.979571428568 \tabularnewline
13 & 15262.2 & 15031.7807142857 & 230.419285714298 \tabularnewline
14 & 18581 & 18598.5607142857 & -17.5607142857161 \tabularnewline
15 & 17564.1 & 19429.8988571429 & -1865.79885714286 \tabularnewline
16 & 18948.6 & 18894.2388571429 & 54.3611428571423 \tabularnewline
17 & 17187.8 & 16474.0788571429 & 713.721142857143 \tabularnewline
18 & 17564.8 & 17630.1788571429 & -65.3788571428581 \tabularnewline
19 & 17668.4 & 17844.5588571429 & -176.158857142855 \tabularnewline
20 & 20811.7 & 19874.2988571429 & 937.401142857145 \tabularnewline
21 & 17257.8 & 18046.9788571429 & -789.178857142857 \tabularnewline
22 & 18984.2 & 17933.3588571429 & 1050.84114285714 \tabularnewline
23 & 20532.6 & 19944.3188571429 & 588.281142857142 \tabularnewline
24 & 17082.3 & 17603.5188571429 & -521.218857142855 \tabularnewline
25 & 16894.9 & 16412.52 & 482.380000000012 \tabularnewline
26 & 20274.9 & 19979.3 & 295.600000000002 \tabularnewline
27 & 20078.6 & 20810.6381428571 & -732.038142857146 \tabularnewline
28 & 19900.9 & 20274.9781428571 & -374.078142857142 \tabularnewline
29 & 17012.2 & 17854.8181428571 & -842.618142857144 \tabularnewline
30 & 19642.9 & 19010.9181428571 & 631.981857142856 \tabularnewline
31 & 19024 & 19225.2981428571 & -201.298142857144 \tabularnewline
32 & 21691 & 21255.0381428571 & 435.961857142856 \tabularnewline
33 & 18835.9 & 19427.7181428571 & -591.818142857143 \tabularnewline
34 & 19873.4 & 19314.0981428571 & 559.301857142856 \tabularnewline
35 & 21468.2 & 21325.0581428571 & 143.141857142856 \tabularnewline
36 & 19406.8 & 18984.2581428571 & 422.541857142856 \tabularnewline
37 & 18385.3 & 17793.2592857143 & 592.040714285722 \tabularnewline
38 & 20739.3 & 21360.0392857143 & -620.739285714287 \tabularnewline
39 & 22268.3 & 22191.3774285714 & 76.9225714285666 \tabularnewline
40 & 21569 & 21655.7174285714 & -86.7174285714308 \tabularnewline
41 & 17514.8 & 19235.5574285714 & -1720.75742857143 \tabularnewline
42 & 21124.7 & 20391.6574285714 & 733.04257142857 \tabularnewline
43 & 21251 & 20606.0374285714 & 644.962571428569 \tabularnewline
44 & 21393 & 22635.7774285714 & -1242.77742857143 \tabularnewline
45 & 22145.2 & 20808.4574285714 & 1336.74257142857 \tabularnewline
46 & 20310.5 & 20694.8374285714 & -384.337428571430 \tabularnewline
47 & 23466.9 & 22705.7974285714 & 761.10257142857 \tabularnewline
48 & 21264.6 & 20364.9974285714 & 899.60257142857 \tabularnewline
49 & 18388.1 & 19173.9985714286 & -785.898571428566 \tabularnewline
50 & 22635.4 & 22740.7785714286 & -105.378571428573 \tabularnewline
51 & 22014.3 & 18357.226 & 3657.074 \tabularnewline
52 & 18422.7 & 17821.566 & 601.134000000001 \tabularnewline
53 & 16120.2 & 15401.406 & 718.794 \tabularnewline
54 & 16037.7 & 16557.506 & -519.806 \tabularnewline
55 & 16410.7 & 16771.886 & -361.185999999999 \tabularnewline
56 & 17749.8 & 18801.626 & -1051.82600000000 \tabularnewline
57 & 16349.8 & 16974.306 & -624.506000000001 \tabularnewline
58 & 15662.3 & 16860.686 & -1198.38600000000 \tabularnewline
59 & 17782.3 & 18871.646 & -1089.34600000000 \tabularnewline
60 & 16398.9 & 16530.846 & -131.945999999997 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63443&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]13132.1[/C][C]13651.0414285715[/C][C]-518.941428571466[/C][/ROW]
[ROW][C]2[/C][C]17665.9[/C][C]17217.8214285714[/C][C]448.078571428573[/C][/ROW]
[ROW][C]3[/C][C]16913[/C][C]18049.1595714286[/C][C]-1136.15957142856[/C][/ROW]
[ROW][C]4[/C][C]17318.8[/C][C]17513.4995714286[/C][C]-194.699571428571[/C][/ROW]
[ROW][C]5[/C][C]16224.2[/C][C]15093.3395714286[/C][C]1130.86042857143[/C][/ROW]
[ROW][C]6[/C][C]15469.6[/C][C]16249.4395714286[/C][C]-779.839571428568[/C][/ROW]
[ROW][C]7[/C][C]16557.5[/C][C]16463.8195714286[/C][C]93.6804285714297[/C][/ROW]
[ROW][C]8[/C][C]19414.8[/C][C]18493.5595714286[/C][C]921.24042857143[/C][/ROW]
[ROW][C]9[/C][C]17335[/C][C]16666.2395714286[/C][C]668.76042857143[/C][/ROW]
[ROW][C]10[/C][C]16525.2[/C][C]16552.6195714286[/C][C]-27.4195714285682[/C][/ROW]
[ROW][C]11[/C][C]18160.4[/C][C]18563.5795714286[/C][C]-403.179571428567[/C][/ROW]
[ROW][C]12[/C][C]15553.8[/C][C]16222.7795714286[/C][C]-668.979571428568[/C][/ROW]
[ROW][C]13[/C][C]15262.2[/C][C]15031.7807142857[/C][C]230.419285714298[/C][/ROW]
[ROW][C]14[/C][C]18581[/C][C]18598.5607142857[/C][C]-17.5607142857161[/C][/ROW]
[ROW][C]15[/C][C]17564.1[/C][C]19429.8988571429[/C][C]-1865.79885714286[/C][/ROW]
[ROW][C]16[/C][C]18948.6[/C][C]18894.2388571429[/C][C]54.3611428571423[/C][/ROW]
[ROW][C]17[/C][C]17187.8[/C][C]16474.0788571429[/C][C]713.721142857143[/C][/ROW]
[ROW][C]18[/C][C]17564.8[/C][C]17630.1788571429[/C][C]-65.3788571428581[/C][/ROW]
[ROW][C]19[/C][C]17668.4[/C][C]17844.5588571429[/C][C]-176.158857142855[/C][/ROW]
[ROW][C]20[/C][C]20811.7[/C][C]19874.2988571429[/C][C]937.401142857145[/C][/ROW]
[ROW][C]21[/C][C]17257.8[/C][C]18046.9788571429[/C][C]-789.178857142857[/C][/ROW]
[ROW][C]22[/C][C]18984.2[/C][C]17933.3588571429[/C][C]1050.84114285714[/C][/ROW]
[ROW][C]23[/C][C]20532.6[/C][C]19944.3188571429[/C][C]588.281142857142[/C][/ROW]
[ROW][C]24[/C][C]17082.3[/C][C]17603.5188571429[/C][C]-521.218857142855[/C][/ROW]
[ROW][C]25[/C][C]16894.9[/C][C]16412.52[/C][C]482.380000000012[/C][/ROW]
[ROW][C]26[/C][C]20274.9[/C][C]19979.3[/C][C]295.600000000002[/C][/ROW]
[ROW][C]27[/C][C]20078.6[/C][C]20810.6381428571[/C][C]-732.038142857146[/C][/ROW]
[ROW][C]28[/C][C]19900.9[/C][C]20274.9781428571[/C][C]-374.078142857142[/C][/ROW]
[ROW][C]29[/C][C]17012.2[/C][C]17854.8181428571[/C][C]-842.618142857144[/C][/ROW]
[ROW][C]30[/C][C]19642.9[/C][C]19010.9181428571[/C][C]631.981857142856[/C][/ROW]
[ROW][C]31[/C][C]19024[/C][C]19225.2981428571[/C][C]-201.298142857144[/C][/ROW]
[ROW][C]32[/C][C]21691[/C][C]21255.0381428571[/C][C]435.961857142856[/C][/ROW]
[ROW][C]33[/C][C]18835.9[/C][C]19427.7181428571[/C][C]-591.818142857143[/C][/ROW]
[ROW][C]34[/C][C]19873.4[/C][C]19314.0981428571[/C][C]559.301857142856[/C][/ROW]
[ROW][C]35[/C][C]21468.2[/C][C]21325.0581428571[/C][C]143.141857142856[/C][/ROW]
[ROW][C]36[/C][C]19406.8[/C][C]18984.2581428571[/C][C]422.541857142856[/C][/ROW]
[ROW][C]37[/C][C]18385.3[/C][C]17793.2592857143[/C][C]592.040714285722[/C][/ROW]
[ROW][C]38[/C][C]20739.3[/C][C]21360.0392857143[/C][C]-620.739285714287[/C][/ROW]
[ROW][C]39[/C][C]22268.3[/C][C]22191.3774285714[/C][C]76.9225714285666[/C][/ROW]
[ROW][C]40[/C][C]21569[/C][C]21655.7174285714[/C][C]-86.7174285714308[/C][/ROW]
[ROW][C]41[/C][C]17514.8[/C][C]19235.5574285714[/C][C]-1720.75742857143[/C][/ROW]
[ROW][C]42[/C][C]21124.7[/C][C]20391.6574285714[/C][C]733.04257142857[/C][/ROW]
[ROW][C]43[/C][C]21251[/C][C]20606.0374285714[/C][C]644.962571428569[/C][/ROW]
[ROW][C]44[/C][C]21393[/C][C]22635.7774285714[/C][C]-1242.77742857143[/C][/ROW]
[ROW][C]45[/C][C]22145.2[/C][C]20808.4574285714[/C][C]1336.74257142857[/C][/ROW]
[ROW][C]46[/C][C]20310.5[/C][C]20694.8374285714[/C][C]-384.337428571430[/C][/ROW]
[ROW][C]47[/C][C]23466.9[/C][C]22705.7974285714[/C][C]761.10257142857[/C][/ROW]
[ROW][C]48[/C][C]21264.6[/C][C]20364.9974285714[/C][C]899.60257142857[/C][/ROW]
[ROW][C]49[/C][C]18388.1[/C][C]19173.9985714286[/C][C]-785.898571428566[/C][/ROW]
[ROW][C]50[/C][C]22635.4[/C][C]22740.7785714286[/C][C]-105.378571428573[/C][/ROW]
[ROW][C]51[/C][C]22014.3[/C][C]18357.226[/C][C]3657.074[/C][/ROW]
[ROW][C]52[/C][C]18422.7[/C][C]17821.566[/C][C]601.134000000001[/C][/ROW]
[ROW][C]53[/C][C]16120.2[/C][C]15401.406[/C][C]718.794[/C][/ROW]
[ROW][C]54[/C][C]16037.7[/C][C]16557.506[/C][C]-519.806[/C][/ROW]
[ROW][C]55[/C][C]16410.7[/C][C]16771.886[/C][C]-361.185999999999[/C][/ROW]
[ROW][C]56[/C][C]17749.8[/C][C]18801.626[/C][C]-1051.82600000000[/C][/ROW]
[ROW][C]57[/C][C]16349.8[/C][C]16974.306[/C][C]-624.506000000001[/C][/ROW]
[ROW][C]58[/C][C]15662.3[/C][C]16860.686[/C][C]-1198.38600000000[/C][/ROW]
[ROW][C]59[/C][C]17782.3[/C][C]18871.646[/C][C]-1089.34600000000[/C][/ROW]
[ROW][C]60[/C][C]16398.9[/C][C]16530.846[/C][C]-131.945999999997[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63443&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63443&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
113132.113651.0414285715-518.941428571466
217665.917217.8214285714448.078571428573
31691318049.1595714286-1136.15957142856
417318.817513.4995714286-194.699571428571
516224.215093.33957142861130.86042857143
615469.616249.4395714286-779.839571428568
716557.516463.819571428693.6804285714297
819414.818493.5595714286921.24042857143
91733516666.2395714286668.76042857143
1016525.216552.6195714286-27.4195714285682
1118160.418563.5795714286-403.179571428567
1215553.816222.7795714286-668.979571428568
1315262.215031.7807142857230.419285714298
141858118598.5607142857-17.5607142857161
1517564.119429.8988571429-1865.79885714286
1618948.618894.238857142954.3611428571423
1717187.816474.0788571429713.721142857143
1817564.817630.1788571429-65.3788571428581
1917668.417844.5588571429-176.158857142855
2020811.719874.2988571429937.401142857145
2117257.818046.9788571429-789.178857142857
2218984.217933.35885714291050.84114285714
2320532.619944.3188571429588.281142857142
2417082.317603.5188571429-521.218857142855
2516894.916412.52482.380000000012
2620274.919979.3295.600000000002
2720078.620810.6381428571-732.038142857146
2819900.920274.9781428571-374.078142857142
2917012.217854.8181428571-842.618142857144
3019642.919010.9181428571631.981857142856
311902419225.2981428571-201.298142857144
322169121255.0381428571435.961857142856
3318835.919427.7181428571-591.818142857143
3419873.419314.0981428571559.301857142856
3521468.221325.0581428571143.141857142856
3619406.818984.2581428571422.541857142856
3718385.317793.2592857143592.040714285722
3820739.321360.0392857143-620.739285714287
3922268.322191.377428571476.9225714285666
402156921655.7174285714-86.7174285714308
4117514.819235.5574285714-1720.75742857143
4221124.720391.6574285714733.04257142857
432125120606.0374285714644.962571428569
442139322635.7774285714-1242.77742857143
4522145.220808.45742857141336.74257142857
4620310.520694.8374285714-384.337428571430
4723466.922705.7974285714761.10257142857
4821264.620364.9974285714899.60257142857
4918388.119173.9985714286-785.898571428566
5022635.422740.7785714286-105.378571428573
5122014.318357.2263657.074
5218422.717821.566601.134000000001
5316120.215401.406718.794
5416037.716557.506-519.806
5516410.716771.886-361.185999999999
5617749.818801.626-1051.82600000000
5716349.816974.306-624.506000000001
5815662.316860.686-1198.38600000000
5917782.318871.646-1089.34600000000
6016398.916530.846-131.945999999997







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1287222098407050.2574444196814110.871277790159295
180.08637983725174520.1727596745034900.913620162748255
190.03697928626109090.07395857252218190.96302071373891
200.01530692921602240.03061385843204470.984693070783978
210.03448998843813380.06897997687626770.965510011561866
220.04279634739979350.0855926947995870.957203652600206
230.03633032541577580.07266065083155160.963669674584224
240.01946071713344250.0389214342668850.980539282866558
250.01113033713220910.02226067426441830.98886966286779
260.005227644803843540.01045528960768710.994772355196156
270.007844375366158960.01568875073231790.99215562463384
280.005097791495285220.01019558299057040.994902208504715
290.02310927337710110.04621854675420220.9768907266229
300.02009019984874830.04018039969749660.979909800151252
310.01167933417840520.02335866835681030.988320665821595
320.008677126355469380.01735425271093880.99132287364453
330.006944037447736010.01388807489547200.993055962552264
340.003981059572135070.007962119144270140.996018940427865
350.001786750168848980.003573500337697960.99821324983115
360.001380068792234530.002760137584469060.998619931207765
370.000923700818271140.001847401636542280.999076299181729
380.0006097685494111210.001219537098822240.999390231450589
390.02397710711007820.04795421422015630.976022892889922
400.01918317652085210.03836635304170430.980816823479148
410.6715188050348760.6569623899302470.328481194965124
420.5403698848139410.9192602303721190.459630115186059
430.3800228208443700.7600456416887390.61997717915563

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.128722209840705 & 0.257444419681411 & 0.871277790159295 \tabularnewline
18 & 0.0863798372517452 & 0.172759674503490 & 0.913620162748255 \tabularnewline
19 & 0.0369792862610909 & 0.0739585725221819 & 0.96302071373891 \tabularnewline
20 & 0.0153069292160224 & 0.0306138584320447 & 0.984693070783978 \tabularnewline
21 & 0.0344899884381338 & 0.0689799768762677 & 0.965510011561866 \tabularnewline
22 & 0.0427963473997935 & 0.085592694799587 & 0.957203652600206 \tabularnewline
23 & 0.0363303254157758 & 0.0726606508315516 & 0.963669674584224 \tabularnewline
24 & 0.0194607171334425 & 0.038921434266885 & 0.980539282866558 \tabularnewline
25 & 0.0111303371322091 & 0.0222606742644183 & 0.98886966286779 \tabularnewline
26 & 0.00522764480384354 & 0.0104552896076871 & 0.994772355196156 \tabularnewline
27 & 0.00784437536615896 & 0.0156887507323179 & 0.99215562463384 \tabularnewline
28 & 0.00509779149528522 & 0.0101955829905704 & 0.994902208504715 \tabularnewline
29 & 0.0231092733771011 & 0.0462185467542022 & 0.9768907266229 \tabularnewline
30 & 0.0200901998487483 & 0.0401803996974966 & 0.979909800151252 \tabularnewline
31 & 0.0116793341784052 & 0.0233586683568103 & 0.988320665821595 \tabularnewline
32 & 0.00867712635546938 & 0.0173542527109388 & 0.99132287364453 \tabularnewline
33 & 0.00694403744773601 & 0.0138880748954720 & 0.993055962552264 \tabularnewline
34 & 0.00398105957213507 & 0.00796211914427014 & 0.996018940427865 \tabularnewline
35 & 0.00178675016884898 & 0.00357350033769796 & 0.99821324983115 \tabularnewline
36 & 0.00138006879223453 & 0.00276013758446906 & 0.998619931207765 \tabularnewline
37 & 0.00092370081827114 & 0.00184740163654228 & 0.999076299181729 \tabularnewline
38 & 0.000609768549411121 & 0.00121953709882224 & 0.999390231450589 \tabularnewline
39 & 0.0239771071100782 & 0.0479542142201563 & 0.976022892889922 \tabularnewline
40 & 0.0191831765208521 & 0.0383663530417043 & 0.980816823479148 \tabularnewline
41 & 0.671518805034876 & 0.656962389930247 & 0.328481194965124 \tabularnewline
42 & 0.540369884813941 & 0.919260230372119 & 0.459630115186059 \tabularnewline
43 & 0.380022820844370 & 0.760045641688739 & 0.61997717915563 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63443&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.128722209840705[/C][C]0.257444419681411[/C][C]0.871277790159295[/C][/ROW]
[ROW][C]18[/C][C]0.0863798372517452[/C][C]0.172759674503490[/C][C]0.913620162748255[/C][/ROW]
[ROW][C]19[/C][C]0.0369792862610909[/C][C]0.0739585725221819[/C][C]0.96302071373891[/C][/ROW]
[ROW][C]20[/C][C]0.0153069292160224[/C][C]0.0306138584320447[/C][C]0.984693070783978[/C][/ROW]
[ROW][C]21[/C][C]0.0344899884381338[/C][C]0.0689799768762677[/C][C]0.965510011561866[/C][/ROW]
[ROW][C]22[/C][C]0.0427963473997935[/C][C]0.085592694799587[/C][C]0.957203652600206[/C][/ROW]
[ROW][C]23[/C][C]0.0363303254157758[/C][C]0.0726606508315516[/C][C]0.963669674584224[/C][/ROW]
[ROW][C]24[/C][C]0.0194607171334425[/C][C]0.038921434266885[/C][C]0.980539282866558[/C][/ROW]
[ROW][C]25[/C][C]0.0111303371322091[/C][C]0.0222606742644183[/C][C]0.98886966286779[/C][/ROW]
[ROW][C]26[/C][C]0.00522764480384354[/C][C]0.0104552896076871[/C][C]0.994772355196156[/C][/ROW]
[ROW][C]27[/C][C]0.00784437536615896[/C][C]0.0156887507323179[/C][C]0.99215562463384[/C][/ROW]
[ROW][C]28[/C][C]0.00509779149528522[/C][C]0.0101955829905704[/C][C]0.994902208504715[/C][/ROW]
[ROW][C]29[/C][C]0.0231092733771011[/C][C]0.0462185467542022[/C][C]0.9768907266229[/C][/ROW]
[ROW][C]30[/C][C]0.0200901998487483[/C][C]0.0401803996974966[/C][C]0.979909800151252[/C][/ROW]
[ROW][C]31[/C][C]0.0116793341784052[/C][C]0.0233586683568103[/C][C]0.988320665821595[/C][/ROW]
[ROW][C]32[/C][C]0.00867712635546938[/C][C]0.0173542527109388[/C][C]0.99132287364453[/C][/ROW]
[ROW][C]33[/C][C]0.00694403744773601[/C][C]0.0138880748954720[/C][C]0.993055962552264[/C][/ROW]
[ROW][C]34[/C][C]0.00398105957213507[/C][C]0.00796211914427014[/C][C]0.996018940427865[/C][/ROW]
[ROW][C]35[/C][C]0.00178675016884898[/C][C]0.00357350033769796[/C][C]0.99821324983115[/C][/ROW]
[ROW][C]36[/C][C]0.00138006879223453[/C][C]0.00276013758446906[/C][C]0.998619931207765[/C][/ROW]
[ROW][C]37[/C][C]0.00092370081827114[/C][C]0.00184740163654228[/C][C]0.999076299181729[/C][/ROW]
[ROW][C]38[/C][C]0.000609768549411121[/C][C]0.00121953709882224[/C][C]0.999390231450589[/C][/ROW]
[ROW][C]39[/C][C]0.0239771071100782[/C][C]0.0479542142201563[/C][C]0.976022892889922[/C][/ROW]
[ROW][C]40[/C][C]0.0191831765208521[/C][C]0.0383663530417043[/C][C]0.980816823479148[/C][/ROW]
[ROW][C]41[/C][C]0.671518805034876[/C][C]0.656962389930247[/C][C]0.328481194965124[/C][/ROW]
[ROW][C]42[/C][C]0.540369884813941[/C][C]0.919260230372119[/C][C]0.459630115186059[/C][/ROW]
[ROW][C]43[/C][C]0.380022820844370[/C][C]0.760045641688739[/C][C]0.61997717915563[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63443&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63443&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.1287222098407050.2574444196814110.871277790159295
180.08637983725174520.1727596745034900.913620162748255
190.03697928626109090.07395857252218190.96302071373891
200.01530692921602240.03061385843204470.984693070783978
210.03448998843813380.06897997687626770.965510011561866
220.04279634739979350.0855926947995870.957203652600206
230.03633032541577580.07266065083155160.963669674584224
240.01946071713344250.0389214342668850.980539282866558
250.01113033713220910.02226067426441830.98886966286779
260.005227644803843540.01045528960768710.994772355196156
270.007844375366158960.01568875073231790.99215562463384
280.005097791495285220.01019558299057040.994902208504715
290.02310927337710110.04621854675420220.9768907266229
300.02009019984874830.04018039969749660.979909800151252
310.01167933417840520.02335866835681030.988320665821595
320.008677126355469380.01735425271093880.99132287364453
330.006944037447736010.01388807489547200.993055962552264
340.003981059572135070.007962119144270140.996018940427865
350.001786750168848980.003573500337697960.99821324983115
360.001380068792234530.002760137584469060.998619931207765
370.000923700818271140.001847401636542280.999076299181729
380.0006097685494111210.001219537098822240.999390231450589
390.02397710711007820.04795421422015630.976022892889922
400.01918317652085210.03836635304170430.980816823479148
410.6715188050348760.6569623899302470.328481194965124
420.5403698848139410.9192602303721190.459630115186059
430.3800228208443700.7600456416887390.61997717915563







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.185185185185185NOK
5% type I error level180.666666666666667NOK
10% type I error level220.814814814814815NOK

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

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



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