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 computationSun, 20 Dec 2009 11:14:05 -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/20/t1261332959wdw358r3s4pz0z0.htm/, Retrieved Sat, 27 Apr 2024 07:37:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69969, Retrieved Sat, 27 Apr 2024 07:37:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact126
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-12-20 18:14:05] [09bbdaa13608b41d3e388e84e1f7dd72] [Current]
Feedback Forum

Post a new message
Dataseries X:
4634	611	4138	3759	3922	5560
3996	594	4634	4138	3759	3922
4308	595	3996	4634	4138	3759
4143	591	4308	3996	4634	4138
4429	589	4143	4308	3996	4634
5219	584	4429	4143	4308	3996
4929	573	5219	4429	4143	4308
5755	567	4929	5219	4429	4143
5592	569	5755	4929	5219	4429
4163	621	5592	5755	4929	5219
4962	629	4163	5592	5755	4929
5208	628	4962	4163	5592	5755
4755	612	5208	4962	4163	5592
4491	595	4755	5208	4962	4163
5732	597	4491	4755	5208	4962
5731	593	5732	4491	4755	5208
5040	590	5731	5732	4491	4755
6102	580	5040	5731	5732	4491
4904	574	6102	5040	5731	5732
5369	573	4904	6102	5040	5731
5578	573	5369	4904	6102	5040
4619	620	5578	5369	4904	6102
4731	626	4619	5578	5369	4904
5011	620	4731	4619	5578	5369
5299	588	5011	4731	4619	5578
4146	566	5299	5011	4731	4619
4625	557	4146	5299	5011	4731
4736	561	4625	4146	5299	5011
4219	549	4736	4625	4146	5299
5116	532	4219	4736	4625	4146
4205	526	5116	4219	4736	4625
4121	511	4205	5116	4219	4736
5103	499	4121	4205	5116	4219
4300	555	5103	4121	4205	5116
4578	565	4300	5103	4121	4205
3809	542	4578	4300	5103	4121
5526	527	3809	4578	4300	5103
4247	510	5526	3809	4578	4300
3830	514	4247	5526	3809	4578
4394	517	3830	4247	5526	3809
4826	508	4394	3830	4247	5526
4409	493	4826	4394	3830	4247
4569	490	4409	4826	4394	3830
4106	469	4569	4409	4826	4394
4794	478	4106	4569	4409	4826
3914	528	4794	4106	4569	4409
3793	534	3914	4794	4106	4569
4405	518	3793	3914	4794	4106
4022	506	4405	3793	3914	4794
4100	502	4022	4405	3793	3914
4788	516	4100	4022	4405	3793
3163	528	4788	4100	4022	4405
3585	533	3163	4788	4100	4022
3903	536	3585	3163	4788	4100
4178	537	3903	3585	3163	4788
3863	524	4178	3903	3585	3163
4187	536	3863	4178	3903	3585




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1781.33973794529 + 0.0538006313056124X[t] + 0.119501855681305`yt-1`[t] + 0.063586039545287`yt-2`[t] + 0.311071408572704`yt-3`[t] + 0.140670870471306`yt-4`[t] + 445.120233686327M1[t] -139.148884123066M2[t] + 317.064608308976M3[t] -33.4253531581604M4[t] + 117.406862236303M5[t] + 623.118184091766M6[t] + 183.848976303235M7[t] + 330.214447746130M8[t] + 600.959567741939M9[t] -370.074056974433M10[t] + 22.8431456711585M11[t] -11.0948669738725t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1781.33973794529 +  0.0538006313056124X[t] +  0.119501855681305`yt-1`[t] +  0.063586039545287`yt-2`[t] +  0.311071408572704`yt-3`[t] +  0.140670870471306`yt-4`[t] +  445.120233686327M1[t] -139.148884123066M2[t] +  317.064608308976M3[t] -33.4253531581604M4[t] +  117.406862236303M5[t] +  623.118184091766M6[t] +  183.848976303235M7[t] +  330.214447746130M8[t] +  600.959567741939M9[t] -370.074056974433M10[t] +  22.8431456711585M11[t] -11.0948669738725t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69969&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1781.33973794529 +  0.0538006313056124X[t] +  0.119501855681305`yt-1`[t] +  0.063586039545287`yt-2`[t] +  0.311071408572704`yt-3`[t] +  0.140670870471306`yt-4`[t] +  445.120233686327M1[t] -139.148884123066M2[t] +  317.064608308976M3[t] -33.4253531581604M4[t] +  117.406862236303M5[t] +  623.118184091766M6[t] +  183.848976303235M7[t] +  330.214447746130M8[t] +  600.959567741939M9[t] -370.074056974433M10[t] +  22.8431456711585M11[t] -11.0948669738725t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69969&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69969&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] = + 1781.33973794529 + 0.0538006313056124X[t] + 0.119501855681305`yt-1`[t] + 0.063586039545287`yt-2`[t] + 0.311071408572704`yt-3`[t] + 0.140670870471306`yt-4`[t] + 445.120233686327M1[t] -139.148884123066M2[t] + 317.064608308976M3[t] -33.4253531581604M4[t] + 117.406862236303M5[t] + 623.118184091766M6[t] + 183.848976303235M7[t] + 330.214447746130M8[t] + 600.959567741939M9[t] -370.074056974433M10[t] + 22.8431456711585M11[t] -11.0948669738725t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1781.339737945292001.2022330.89010.3788520.189426
X0.05380063130561243.0678790.01750.9860980.493049
`yt-1`0.1195018556813050.1550380.77080.4454750.222737
`yt-2`0.0635860395452870.1459080.43580.6653870.332693
`yt-3`0.3110714085727040.1458282.13310.0392610.019631
`yt-4`0.1406708704713060.1533520.91730.364620.18231
M1445.120233686327379.2799411.17360.2476760.123838
M2-139.148884123066371.690113-0.37440.7101580.355079
M3317.064608308976366.7940290.86440.3926420.196321
M4-33.4253531581604331.088768-0.1010.9201030.460051
M5117.406862236303374.3776190.31360.7554920.377746
M6623.118184091766348.4764061.78810.0815280.040764
M7183.848976303235365.7177990.50270.6179970.308999
M8330.214447746130389.6726650.84740.4019350.200967
M9600.959567741939351.3128951.71060.0950980.047549
M10-370.074056974433377.365426-0.98070.3327960.166398
M1122.8431456711585382.7998070.05970.952720.47636
t-11.09486697387257.208704-1.53910.1318570.065928

\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) & 1781.33973794529 & 2001.202233 & 0.8901 & 0.378852 & 0.189426 \tabularnewline
X & 0.0538006313056124 & 3.067879 & 0.0175 & 0.986098 & 0.493049 \tabularnewline
`yt-1` & 0.119501855681305 & 0.155038 & 0.7708 & 0.445475 & 0.222737 \tabularnewline
`yt-2` & 0.063586039545287 & 0.145908 & 0.4358 & 0.665387 & 0.332693 \tabularnewline
`yt-3` & 0.311071408572704 & 0.145828 & 2.1331 & 0.039261 & 0.019631 \tabularnewline
`yt-4` & 0.140670870471306 & 0.153352 & 0.9173 & 0.36462 & 0.18231 \tabularnewline
M1 & 445.120233686327 & 379.279941 & 1.1736 & 0.247676 & 0.123838 \tabularnewline
M2 & -139.148884123066 & 371.690113 & -0.3744 & 0.710158 & 0.355079 \tabularnewline
M3 & 317.064608308976 & 366.794029 & 0.8644 & 0.392642 & 0.196321 \tabularnewline
M4 & -33.4253531581604 & 331.088768 & -0.101 & 0.920103 & 0.460051 \tabularnewline
M5 & 117.406862236303 & 374.377619 & 0.3136 & 0.755492 & 0.377746 \tabularnewline
M6 & 623.118184091766 & 348.476406 & 1.7881 & 0.081528 & 0.040764 \tabularnewline
M7 & 183.848976303235 & 365.717799 & 0.5027 & 0.617997 & 0.308999 \tabularnewline
M8 & 330.214447746130 & 389.672665 & 0.8474 & 0.401935 & 0.200967 \tabularnewline
M9 & 600.959567741939 & 351.312895 & 1.7106 & 0.095098 & 0.047549 \tabularnewline
M10 & -370.074056974433 & 377.365426 & -0.9807 & 0.332796 & 0.166398 \tabularnewline
M11 & 22.8431456711585 & 382.799807 & 0.0597 & 0.95272 & 0.47636 \tabularnewline
t & -11.0948669738725 & 7.208704 & -1.5391 & 0.131857 & 0.065928 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69969&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]1781.33973794529[/C][C]2001.202233[/C][C]0.8901[/C][C]0.378852[/C][C]0.189426[/C][/ROW]
[ROW][C]X[/C][C]0.0538006313056124[/C][C]3.067879[/C][C]0.0175[/C][C]0.986098[/C][C]0.493049[/C][/ROW]
[ROW][C]`yt-1`[/C][C]0.119501855681305[/C][C]0.155038[/C][C]0.7708[/C][C]0.445475[/C][C]0.222737[/C][/ROW]
[ROW][C]`yt-2`[/C][C]0.063586039545287[/C][C]0.145908[/C][C]0.4358[/C][C]0.665387[/C][C]0.332693[/C][/ROW]
[ROW][C]`yt-3`[/C][C]0.311071408572704[/C][C]0.145828[/C][C]2.1331[/C][C]0.039261[/C][C]0.019631[/C][/ROW]
[ROW][C]`yt-4`[/C][C]0.140670870471306[/C][C]0.153352[/C][C]0.9173[/C][C]0.36462[/C][C]0.18231[/C][/ROW]
[ROW][C]M1[/C][C]445.120233686327[/C][C]379.279941[/C][C]1.1736[/C][C]0.247676[/C][C]0.123838[/C][/ROW]
[ROW][C]M2[/C][C]-139.148884123066[/C][C]371.690113[/C][C]-0.3744[/C][C]0.710158[/C][C]0.355079[/C][/ROW]
[ROW][C]M3[/C][C]317.064608308976[/C][C]366.794029[/C][C]0.8644[/C][C]0.392642[/C][C]0.196321[/C][/ROW]
[ROW][C]M4[/C][C]-33.4253531581604[/C][C]331.088768[/C][C]-0.101[/C][C]0.920103[/C][C]0.460051[/C][/ROW]
[ROW][C]M5[/C][C]117.406862236303[/C][C]374.377619[/C][C]0.3136[/C][C]0.755492[/C][C]0.377746[/C][/ROW]
[ROW][C]M6[/C][C]623.118184091766[/C][C]348.476406[/C][C]1.7881[/C][C]0.081528[/C][C]0.040764[/C][/ROW]
[ROW][C]M7[/C][C]183.848976303235[/C][C]365.717799[/C][C]0.5027[/C][C]0.617997[/C][C]0.308999[/C][/ROW]
[ROW][C]M8[/C][C]330.214447746130[/C][C]389.672665[/C][C]0.8474[/C][C]0.401935[/C][C]0.200967[/C][/ROW]
[ROW][C]M9[/C][C]600.959567741939[/C][C]351.312895[/C][C]1.7106[/C][C]0.095098[/C][C]0.047549[/C][/ROW]
[ROW][C]M10[/C][C]-370.074056974433[/C][C]377.365426[/C][C]-0.9807[/C][C]0.332796[/C][C]0.166398[/C][/ROW]
[ROW][C]M11[/C][C]22.8431456711585[/C][C]382.799807[/C][C]0.0597[/C][C]0.95272[/C][C]0.47636[/C][/ROW]
[ROW][C]t[/C][C]-11.0948669738725[/C][C]7.208704[/C][C]-1.5391[/C][C]0.131857[/C][C]0.065928[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69969&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69969&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)1781.339737945292001.2022330.89010.3788520.189426
X0.05380063130561243.0678790.01750.9860980.493049
`yt-1`0.1195018556813050.1550380.77080.4454750.222737
`yt-2`0.0635860395452870.1459080.43580.6653870.332693
`yt-3`0.3110714085727040.1458282.13310.0392610.019631
`yt-4`0.1406708704713060.1533520.91730.364620.18231
M1445.120233686327379.2799411.17360.2476760.123838
M2-139.148884123066371.690113-0.37440.7101580.355079
M3317.064608308976366.7940290.86440.3926420.196321
M4-33.4253531581604331.088768-0.1010.9201030.460051
M5117.406862236303374.3776190.31360.7554920.377746
M6623.118184091766348.4764061.78810.0815280.040764
M7183.848976303235365.7177990.50270.6179970.308999
M8330.214447746130389.6726650.84740.4019350.200967
M9600.959567741939351.3128951.71060.0950980.047549
M10-370.074056974433377.365426-0.98070.3327960.166398
M1122.8431456711585382.7998070.05970.952720.47636
t-11.09486697387257.208704-1.53910.1318570.065928







Multiple Linear Regression - Regression Statistics
Multiple R0.775654730445256
R-squared0.601640260862102
Adjusted R-squared0.427996272007121
F-TEST (value)3.46479175483905
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0.000662408025575933
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation471.696718242219
Sum Squared Residuals8677413.9660187

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.775654730445256 \tabularnewline
R-squared & 0.601640260862102 \tabularnewline
Adjusted R-squared & 0.427996272007121 \tabularnewline
F-TEST (value) & 3.46479175483905 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0.000662408025575933 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 471.696718242219 \tabularnewline
Sum Squared Residuals & 8677413.9660187 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69969&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.775654730445256[/C][/ROW]
[ROW][C]R-squared[/C][C]0.601640260862102[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.427996272007121[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.46479175483905[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/C][/ROW]
[ROW][C]p-value[/C][C]0.000662408025575933[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]471.696718242219[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8677413.9660187[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69969&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69969&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.775654730445256
R-squared0.601640260862102
Adjusted R-squared0.427996272007121
F-TEST (value)3.46479175483905
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0.000662408025575933
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation471.696718242219
Sum Squared Residuals8677413.9660187







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
146344983.90799608805-349.907996088049
239964189.87790454883-193.877904548833
343084685.31353429033-377.313534290328
441434527.83586762746-384.835867627459
544294538.89584602054-109.895846020537
652195064.23539605947154.76460394053
749294718.43411682344210.565883176561
857554934.71507982185820.284920178148
955925560.7197971582631.2802028417440
1041634635.35148367051-472.351483670506
1149625052.62197922258-90.6219792225772
1252085088.73719753734119.262802462664
1347555134.65406150597-379.65406150597
1444914547.41067264111-56.4106726411114
1557325121.20352556347610.796474436529
1657314784.60826911029946.39173088971
1750404857.12823267029182.87176732971
1861025617.4698211578484.530178842202
1949045424.01743886163-520.017438861632
2053695268.50837939603100.491620603971
2155785740.70518434306-162.705184343058
2246194592.3776355205626.6223644794431
2347314849.33447980839-118.334479808385
2450114897.90473844875113.095261551251
2552995101.87337208654197.126627913458
2641464457.48303190161-311.483031901609
2746254885.49972335967-260.499723359668
2847364637.0331921204298.966807879584
2942194501.69522849957-282.695228499566
3051164927.48235470416188.517645295838
3142054653.02493156247-448.024931562468
3241214590.44956189859-469.449561898586
3351034987.79338289792115.206617102081
3443003963.48303912106336.516960878944
3545784158.04372050775419.956279492253
3638094398.68598956603-589.68598956603
3755264646.03279250251879.967207497492
3842474179.5603613762867.4396386237243
3938304381.12113464115-551.121134641149
4043944314.4725988234379.527401176571
4148264338.28096271089487.719037289114
4244094609.94291537314-200.942915373140
4345694253.83885542975315.161144570251
4441064594.3057845092-488.305784509202
4547944740.3376890284853.6623109715226
4639143804.78784168788109.212158312118
4737934003.99982046129-210.999820461290
4844054047.67207444788357.327925552115
4940224369.53177781693-347.531777816930
5041003605.66802953217494.331970467829
5147884209.86208214538578.137917854617
5231633903.05007231841-740.050072318406
5335853862.99973009872-277.999730098722
5439034529.86951270543-626.869512705431
5541783735.68465732271442.315342677286
5638633826.0211943743336.9788056256688
5741874224.44394657229-37.4439465722893

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 4634 & 4983.90799608805 & -349.907996088049 \tabularnewline
2 & 3996 & 4189.87790454883 & -193.877904548833 \tabularnewline
3 & 4308 & 4685.31353429033 & -377.313534290328 \tabularnewline
4 & 4143 & 4527.83586762746 & -384.835867627459 \tabularnewline
5 & 4429 & 4538.89584602054 & -109.895846020537 \tabularnewline
6 & 5219 & 5064.23539605947 & 154.76460394053 \tabularnewline
7 & 4929 & 4718.43411682344 & 210.565883176561 \tabularnewline
8 & 5755 & 4934.71507982185 & 820.284920178148 \tabularnewline
9 & 5592 & 5560.71979715826 & 31.2802028417440 \tabularnewline
10 & 4163 & 4635.35148367051 & -472.351483670506 \tabularnewline
11 & 4962 & 5052.62197922258 & -90.6219792225772 \tabularnewline
12 & 5208 & 5088.73719753734 & 119.262802462664 \tabularnewline
13 & 4755 & 5134.65406150597 & -379.65406150597 \tabularnewline
14 & 4491 & 4547.41067264111 & -56.4106726411114 \tabularnewline
15 & 5732 & 5121.20352556347 & 610.796474436529 \tabularnewline
16 & 5731 & 4784.60826911029 & 946.39173088971 \tabularnewline
17 & 5040 & 4857.12823267029 & 182.87176732971 \tabularnewline
18 & 6102 & 5617.4698211578 & 484.530178842202 \tabularnewline
19 & 4904 & 5424.01743886163 & -520.017438861632 \tabularnewline
20 & 5369 & 5268.50837939603 & 100.491620603971 \tabularnewline
21 & 5578 & 5740.70518434306 & -162.705184343058 \tabularnewline
22 & 4619 & 4592.37763552056 & 26.6223644794431 \tabularnewline
23 & 4731 & 4849.33447980839 & -118.334479808385 \tabularnewline
24 & 5011 & 4897.90473844875 & 113.095261551251 \tabularnewline
25 & 5299 & 5101.87337208654 & 197.126627913458 \tabularnewline
26 & 4146 & 4457.48303190161 & -311.483031901609 \tabularnewline
27 & 4625 & 4885.49972335967 & -260.499723359668 \tabularnewline
28 & 4736 & 4637.03319212042 & 98.966807879584 \tabularnewline
29 & 4219 & 4501.69522849957 & -282.695228499566 \tabularnewline
30 & 5116 & 4927.48235470416 & 188.517645295838 \tabularnewline
31 & 4205 & 4653.02493156247 & -448.024931562468 \tabularnewline
32 & 4121 & 4590.44956189859 & -469.449561898586 \tabularnewline
33 & 5103 & 4987.79338289792 & 115.206617102081 \tabularnewline
34 & 4300 & 3963.48303912106 & 336.516960878944 \tabularnewline
35 & 4578 & 4158.04372050775 & 419.956279492253 \tabularnewline
36 & 3809 & 4398.68598956603 & -589.68598956603 \tabularnewline
37 & 5526 & 4646.03279250251 & 879.967207497492 \tabularnewline
38 & 4247 & 4179.56036137628 & 67.4396386237243 \tabularnewline
39 & 3830 & 4381.12113464115 & -551.121134641149 \tabularnewline
40 & 4394 & 4314.47259882343 & 79.527401176571 \tabularnewline
41 & 4826 & 4338.28096271089 & 487.719037289114 \tabularnewline
42 & 4409 & 4609.94291537314 & -200.942915373140 \tabularnewline
43 & 4569 & 4253.83885542975 & 315.161144570251 \tabularnewline
44 & 4106 & 4594.3057845092 & -488.305784509202 \tabularnewline
45 & 4794 & 4740.33768902848 & 53.6623109715226 \tabularnewline
46 & 3914 & 3804.78784168788 & 109.212158312118 \tabularnewline
47 & 3793 & 4003.99982046129 & -210.999820461290 \tabularnewline
48 & 4405 & 4047.67207444788 & 357.327925552115 \tabularnewline
49 & 4022 & 4369.53177781693 & -347.531777816930 \tabularnewline
50 & 4100 & 3605.66802953217 & 494.331970467829 \tabularnewline
51 & 4788 & 4209.86208214538 & 578.137917854617 \tabularnewline
52 & 3163 & 3903.05007231841 & -740.050072318406 \tabularnewline
53 & 3585 & 3862.99973009872 & -277.999730098722 \tabularnewline
54 & 3903 & 4529.86951270543 & -626.869512705431 \tabularnewline
55 & 4178 & 3735.68465732271 & 442.315342677286 \tabularnewline
56 & 3863 & 3826.02119437433 & 36.9788056256688 \tabularnewline
57 & 4187 & 4224.44394657229 & -37.4439465722893 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69969&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]4634[/C][C]4983.90799608805[/C][C]-349.907996088049[/C][/ROW]
[ROW][C]2[/C][C]3996[/C][C]4189.87790454883[/C][C]-193.877904548833[/C][/ROW]
[ROW][C]3[/C][C]4308[/C][C]4685.31353429033[/C][C]-377.313534290328[/C][/ROW]
[ROW][C]4[/C][C]4143[/C][C]4527.83586762746[/C][C]-384.835867627459[/C][/ROW]
[ROW][C]5[/C][C]4429[/C][C]4538.89584602054[/C][C]-109.895846020537[/C][/ROW]
[ROW][C]6[/C][C]5219[/C][C]5064.23539605947[/C][C]154.76460394053[/C][/ROW]
[ROW][C]7[/C][C]4929[/C][C]4718.43411682344[/C][C]210.565883176561[/C][/ROW]
[ROW][C]8[/C][C]5755[/C][C]4934.71507982185[/C][C]820.284920178148[/C][/ROW]
[ROW][C]9[/C][C]5592[/C][C]5560.71979715826[/C][C]31.2802028417440[/C][/ROW]
[ROW][C]10[/C][C]4163[/C][C]4635.35148367051[/C][C]-472.351483670506[/C][/ROW]
[ROW][C]11[/C][C]4962[/C][C]5052.62197922258[/C][C]-90.6219792225772[/C][/ROW]
[ROW][C]12[/C][C]5208[/C][C]5088.73719753734[/C][C]119.262802462664[/C][/ROW]
[ROW][C]13[/C][C]4755[/C][C]5134.65406150597[/C][C]-379.65406150597[/C][/ROW]
[ROW][C]14[/C][C]4491[/C][C]4547.41067264111[/C][C]-56.4106726411114[/C][/ROW]
[ROW][C]15[/C][C]5732[/C][C]5121.20352556347[/C][C]610.796474436529[/C][/ROW]
[ROW][C]16[/C][C]5731[/C][C]4784.60826911029[/C][C]946.39173088971[/C][/ROW]
[ROW][C]17[/C][C]5040[/C][C]4857.12823267029[/C][C]182.87176732971[/C][/ROW]
[ROW][C]18[/C][C]6102[/C][C]5617.4698211578[/C][C]484.530178842202[/C][/ROW]
[ROW][C]19[/C][C]4904[/C][C]5424.01743886163[/C][C]-520.017438861632[/C][/ROW]
[ROW][C]20[/C][C]5369[/C][C]5268.50837939603[/C][C]100.491620603971[/C][/ROW]
[ROW][C]21[/C][C]5578[/C][C]5740.70518434306[/C][C]-162.705184343058[/C][/ROW]
[ROW][C]22[/C][C]4619[/C][C]4592.37763552056[/C][C]26.6223644794431[/C][/ROW]
[ROW][C]23[/C][C]4731[/C][C]4849.33447980839[/C][C]-118.334479808385[/C][/ROW]
[ROW][C]24[/C][C]5011[/C][C]4897.90473844875[/C][C]113.095261551251[/C][/ROW]
[ROW][C]25[/C][C]5299[/C][C]5101.87337208654[/C][C]197.126627913458[/C][/ROW]
[ROW][C]26[/C][C]4146[/C][C]4457.48303190161[/C][C]-311.483031901609[/C][/ROW]
[ROW][C]27[/C][C]4625[/C][C]4885.49972335967[/C][C]-260.499723359668[/C][/ROW]
[ROW][C]28[/C][C]4736[/C][C]4637.03319212042[/C][C]98.966807879584[/C][/ROW]
[ROW][C]29[/C][C]4219[/C][C]4501.69522849957[/C][C]-282.695228499566[/C][/ROW]
[ROW][C]30[/C][C]5116[/C][C]4927.48235470416[/C][C]188.517645295838[/C][/ROW]
[ROW][C]31[/C][C]4205[/C][C]4653.02493156247[/C][C]-448.024931562468[/C][/ROW]
[ROW][C]32[/C][C]4121[/C][C]4590.44956189859[/C][C]-469.449561898586[/C][/ROW]
[ROW][C]33[/C][C]5103[/C][C]4987.79338289792[/C][C]115.206617102081[/C][/ROW]
[ROW][C]34[/C][C]4300[/C][C]3963.48303912106[/C][C]336.516960878944[/C][/ROW]
[ROW][C]35[/C][C]4578[/C][C]4158.04372050775[/C][C]419.956279492253[/C][/ROW]
[ROW][C]36[/C][C]3809[/C][C]4398.68598956603[/C][C]-589.68598956603[/C][/ROW]
[ROW][C]37[/C][C]5526[/C][C]4646.03279250251[/C][C]879.967207497492[/C][/ROW]
[ROW][C]38[/C][C]4247[/C][C]4179.56036137628[/C][C]67.4396386237243[/C][/ROW]
[ROW][C]39[/C][C]3830[/C][C]4381.12113464115[/C][C]-551.121134641149[/C][/ROW]
[ROW][C]40[/C][C]4394[/C][C]4314.47259882343[/C][C]79.527401176571[/C][/ROW]
[ROW][C]41[/C][C]4826[/C][C]4338.28096271089[/C][C]487.719037289114[/C][/ROW]
[ROW][C]42[/C][C]4409[/C][C]4609.94291537314[/C][C]-200.942915373140[/C][/ROW]
[ROW][C]43[/C][C]4569[/C][C]4253.83885542975[/C][C]315.161144570251[/C][/ROW]
[ROW][C]44[/C][C]4106[/C][C]4594.3057845092[/C][C]-488.305784509202[/C][/ROW]
[ROW][C]45[/C][C]4794[/C][C]4740.33768902848[/C][C]53.6623109715226[/C][/ROW]
[ROW][C]46[/C][C]3914[/C][C]3804.78784168788[/C][C]109.212158312118[/C][/ROW]
[ROW][C]47[/C][C]3793[/C][C]4003.99982046129[/C][C]-210.999820461290[/C][/ROW]
[ROW][C]48[/C][C]4405[/C][C]4047.67207444788[/C][C]357.327925552115[/C][/ROW]
[ROW][C]49[/C][C]4022[/C][C]4369.53177781693[/C][C]-347.531777816930[/C][/ROW]
[ROW][C]50[/C][C]4100[/C][C]3605.66802953217[/C][C]494.331970467829[/C][/ROW]
[ROW][C]51[/C][C]4788[/C][C]4209.86208214538[/C][C]578.137917854617[/C][/ROW]
[ROW][C]52[/C][C]3163[/C][C]3903.05007231841[/C][C]-740.050072318406[/C][/ROW]
[ROW][C]53[/C][C]3585[/C][C]3862.99973009872[/C][C]-277.999730098722[/C][/ROW]
[ROW][C]54[/C][C]3903[/C][C]4529.86951270543[/C][C]-626.869512705431[/C][/ROW]
[ROW][C]55[/C][C]4178[/C][C]3735.68465732271[/C][C]442.315342677286[/C][/ROW]
[ROW][C]56[/C][C]3863[/C][C]3826.02119437433[/C][C]36.9788056256688[/C][/ROW]
[ROW][C]57[/C][C]4187[/C][C]4224.44394657229[/C][C]-37.4439465722893[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69969&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69969&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
146344983.90799608805-349.907996088049
239964189.87790454883-193.877904548833
343084685.31353429033-377.313534290328
441434527.83586762746-384.835867627459
544294538.89584602054-109.895846020537
652195064.23539605947154.76460394053
749294718.43411682344210.565883176561
857554934.71507982185820.284920178148
955925560.7197971582631.2802028417440
1041634635.35148367051-472.351483670506
1149625052.62197922258-90.6219792225772
1252085088.73719753734119.262802462664
1347555134.65406150597-379.65406150597
1444914547.41067264111-56.4106726411114
1557325121.20352556347610.796474436529
1657314784.60826911029946.39173088971
1750404857.12823267029182.87176732971
1861025617.4698211578484.530178842202
1949045424.01743886163-520.017438861632
2053695268.50837939603100.491620603971
2155785740.70518434306-162.705184343058
2246194592.3776355205626.6223644794431
2347314849.33447980839-118.334479808385
2450114897.90473844875113.095261551251
2552995101.87337208654197.126627913458
2641464457.48303190161-311.483031901609
2746254885.49972335967-260.499723359668
2847364637.0331921204298.966807879584
2942194501.69522849957-282.695228499566
3051164927.48235470416188.517645295838
3142054653.02493156247-448.024931562468
3241214590.44956189859-469.449561898586
3351034987.79338289792115.206617102081
3443003963.48303912106336.516960878944
3545784158.04372050775419.956279492253
3638094398.68598956603-589.68598956603
3755264646.03279250251879.967207497492
3842474179.5603613762867.4396386237243
3938304381.12113464115-551.121134641149
4043944314.4725988234379.527401176571
4148264338.28096271089487.719037289114
4244094609.94291537314-200.942915373140
4345694253.83885542975315.161144570251
4441064594.3057845092-488.305784509202
4547944740.3376890284853.6623109715226
4639143804.78784168788109.212158312118
4737934003.99982046129-210.999820461290
4844054047.67207444788357.327925552115
4940224369.53177781693-347.531777816930
5041003605.66802953217494.331970467829
5147884209.86208214538578.137917854617
5231633903.05007231841-740.050072318406
5335853862.99973009872-277.999730098722
5439034529.86951270543-626.869512705431
5541783735.68465732271442.315342677286
5638633826.0211943743336.9788056256688
5741874224.44394657229-37.4439465722893







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.6629649616032540.6740700767934930.337035038396746
220.7331302402690570.5337395194618850.266869759730943
230.7366756276937790.5266487446124420.263324372306221
240.6820708069569290.6358583860861430.317929193043071
250.6345364803886280.7309270392227440.365463519611372
260.6024663438413650.795067312317270.397533656158635
270.4747143301308050.949428660261610.525285669869195
280.4080805104102560.8161610208205130.591919489589743
290.2978484010888340.5956968021776670.702151598911166
300.2483676503961240.4967353007922470.751632349603876
310.1914488187564840.3828976375129670.808551181243516
320.147799659970610.295599319941220.85220034002939
330.3458899844066080.6917799688132150.654110015593393
340.2531524229190820.5063048458381630.746847577080918
350.1667521034151770.3335042068303540.833247896584823
360.1468942566399690.2937885132799390.85310574336003

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.662964961603254 & 0.674070076793493 & 0.337035038396746 \tabularnewline
22 & 0.733130240269057 & 0.533739519461885 & 0.266869759730943 \tabularnewline
23 & 0.736675627693779 & 0.526648744612442 & 0.263324372306221 \tabularnewline
24 & 0.682070806956929 & 0.635858386086143 & 0.317929193043071 \tabularnewline
25 & 0.634536480388628 & 0.730927039222744 & 0.365463519611372 \tabularnewline
26 & 0.602466343841365 & 0.79506731231727 & 0.397533656158635 \tabularnewline
27 & 0.474714330130805 & 0.94942866026161 & 0.525285669869195 \tabularnewline
28 & 0.408080510410256 & 0.816161020820513 & 0.591919489589743 \tabularnewline
29 & 0.297848401088834 & 0.595696802177667 & 0.702151598911166 \tabularnewline
30 & 0.248367650396124 & 0.496735300792247 & 0.751632349603876 \tabularnewline
31 & 0.191448818756484 & 0.382897637512967 & 0.808551181243516 \tabularnewline
32 & 0.14779965997061 & 0.29559931994122 & 0.85220034002939 \tabularnewline
33 & 0.345889984406608 & 0.691779968813215 & 0.654110015593393 \tabularnewline
34 & 0.253152422919082 & 0.506304845838163 & 0.746847577080918 \tabularnewline
35 & 0.166752103415177 & 0.333504206830354 & 0.833247896584823 \tabularnewline
36 & 0.146894256639969 & 0.293788513279939 & 0.85310574336003 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69969&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]21[/C][C]0.662964961603254[/C][C]0.674070076793493[/C][C]0.337035038396746[/C][/ROW]
[ROW][C]22[/C][C]0.733130240269057[/C][C]0.533739519461885[/C][C]0.266869759730943[/C][/ROW]
[ROW][C]23[/C][C]0.736675627693779[/C][C]0.526648744612442[/C][C]0.263324372306221[/C][/ROW]
[ROW][C]24[/C][C]0.682070806956929[/C][C]0.635858386086143[/C][C]0.317929193043071[/C][/ROW]
[ROW][C]25[/C][C]0.634536480388628[/C][C]0.730927039222744[/C][C]0.365463519611372[/C][/ROW]
[ROW][C]26[/C][C]0.602466343841365[/C][C]0.79506731231727[/C][C]0.397533656158635[/C][/ROW]
[ROW][C]27[/C][C]0.474714330130805[/C][C]0.94942866026161[/C][C]0.525285669869195[/C][/ROW]
[ROW][C]28[/C][C]0.408080510410256[/C][C]0.816161020820513[/C][C]0.591919489589743[/C][/ROW]
[ROW][C]29[/C][C]0.297848401088834[/C][C]0.595696802177667[/C][C]0.702151598911166[/C][/ROW]
[ROW][C]30[/C][C]0.248367650396124[/C][C]0.496735300792247[/C][C]0.751632349603876[/C][/ROW]
[ROW][C]31[/C][C]0.191448818756484[/C][C]0.382897637512967[/C][C]0.808551181243516[/C][/ROW]
[ROW][C]32[/C][C]0.14779965997061[/C][C]0.29559931994122[/C][C]0.85220034002939[/C][/ROW]
[ROW][C]33[/C][C]0.345889984406608[/C][C]0.691779968813215[/C][C]0.654110015593393[/C][/ROW]
[ROW][C]34[/C][C]0.253152422919082[/C][C]0.506304845838163[/C][C]0.746847577080918[/C][/ROW]
[ROW][C]35[/C][C]0.166752103415177[/C][C]0.333504206830354[/C][C]0.833247896584823[/C][/ROW]
[ROW][C]36[/C][C]0.146894256639969[/C][C]0.293788513279939[/C][C]0.85310574336003[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69969&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69969&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
210.6629649616032540.6740700767934930.337035038396746
220.7331302402690570.5337395194618850.266869759730943
230.7366756276937790.5266487446124420.263324372306221
240.6820708069569290.6358583860861430.317929193043071
250.6345364803886280.7309270392227440.365463519611372
260.6024663438413650.795067312317270.397533656158635
270.4747143301308050.949428660261610.525285669869195
280.4080805104102560.8161610208205130.591919489589743
290.2978484010888340.5956968021776670.702151598911166
300.2483676503961240.4967353007922470.751632349603876
310.1914488187564840.3828976375129670.808551181243516
320.147799659970610.295599319941220.85220034002939
330.3458899844066080.6917799688132150.654110015593393
340.2531524229190820.5063048458381630.746847577080918
350.1667521034151770.3335042068303540.833247896584823
360.1468942566399690.2937885132799390.85310574336003







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 level00OK

\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 & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69969&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]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69969&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69969&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 level00OK



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