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 computationSat, 14 Nov 2009 04:09:10 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/14/t1258197057z3e7b7ecj5khi9n.htm/, Retrieved Sun, 28 Apr 2024 08:21:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57214, Retrieved Sun, 28 Apr 2024 08:21:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact223
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] [Regressiemodel zo...] [2009-11-14 11:09:10] [2622964eb3e61db9b0dfd11950e3a18c] [Current]
Feedback Forum

Post a new message
Dataseries X:
5560	36.68
3922	36.7
3759	36.71
4138	36.72
4634	36.73
3996	36.73
4308	36.87
4429	37.31
5219	37.39
4929	37.42
5755	37.51
5592	37.67
4163	37.67
4962	37.71
5208	37.78
4755	37.79
4491	37.84
5732	37.88
5731	38.34
5040	38.58
6102	38.72
4904	38.83
5369	38.9
5578	38.92
4619	38.94
4731	39.1
5011	39.14
5299	39.16
4146	39.32
4625	39.34
4736	39.44
4219	39.92
5116	40.19
4205	40.2
4121	40.27
5103	40.28
4300	40.3
4578	40.34
3809	40.4
5526	40.43
4247	40.48
3830	40.48
4394	40.63
4826	40.74
4409	40.77
4569	40.91
4106	40.92
4794	41.03
3914	41
3793	41.04
4405	41.33
4022	41.44
4100	41.46
4788	41.55
3163	41.55
3585	41.81
3903	41.78
4178	41.84
3863	41.84
4187	41.86




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=57214&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=57214&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57214&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 10478.8954186677 -149.383931152047X[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  10478.8954186677 -149.383931152047X[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57214&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  10478.8954186677 -149.383931152047X[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57214&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57214&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] = + 10478.8954186677 -149.383931152047X[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)10478.89541866771807.8634885.796300
X-149.38393115204745.83193-3.25940.001870.000935

\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) & 10478.8954186677 & 1807.863488 & 5.7963 & 0 & 0 \tabularnewline
X & -149.383931152047 & 45.83193 & -3.2594 & 0.00187 & 0.000935 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57214&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]10478.8954186677[/C][C]1807.863488[/C][C]5.7963[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-149.383931152047[/C][C]45.83193[/C][C]-3.2594[/C][C]0.00187[/C][C]0.000935[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57214&T=2

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







Multiple Linear Regression - Regression Statistics
Multiple R0.393458566501769
R-squared0.154809643553627
Adjusted R-squared0.140237396028689
F-TEST (value)10.6235941496808
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.00187029886726986
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation589.802071683868
Sum Squared Residuals20176256.0582298

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.393458566501769 \tabularnewline
R-squared & 0.154809643553627 \tabularnewline
Adjusted R-squared & 0.140237396028689 \tabularnewline
F-TEST (value) & 10.6235941496808 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.00187029886726986 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 589.802071683868 \tabularnewline
Sum Squared Residuals & 20176256.0582298 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57214&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.393458566501769[/C][/ROW]
[ROW][C]R-squared[/C][C]0.154809643553627[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.140237396028689[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.6235941496808[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.00187029886726986[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]589.802071683868[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]20176256.0582298[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57214&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57214&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.393458566501769
R-squared0.154809643553627
Adjusted R-squared0.140237396028689
F-TEST (value)10.6235941496808
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.00187029886726986
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation589.802071683868
Sum Squared Residuals20176256.0582298







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
155604999.4928240107560.507175989303
239224996.50514538762-1074.50514538762
337594995.0113060761-1236.0113060761
441384993.51746676458-855.51746676458
546344992.02362745306-358.023627453061
639964992.02362745306-996.02362745306
743084971.10987709177-663.109877091774
844294905.38094738487-476.380947384873
952194893.43023289271325.569767107291
1049294888.9487149581540.0512850418521
1157554875.50416115446879.495838845536
1255924851.60273217014740.397267829864
1341634851.60273217014-688.602732170136
1449624845.62737492405116.372625075945
1552084835.17049974341372.829500256589
1647554833.67666043189-78.676660431891
1744914826.20746387429-335.207463874288
1857324820.23210662821911.767893371794
1957314751.51549829826979.484501701735
2050404715.66335482177324.336645178226
2161024694.749604460491407.25039553951
2249044678.31737203376225.682627966237
2353694667.86049685312701.13950314688
2455784664.87281823008913.127181769922
2546194661.88513960704-42.8851396070377
2647314637.9837106227193.0162893772903
2750114632.00835337663378.991646623372
2852994629.02067475359669.979325246412
2941464605.11924576926-459.11924576926
3046254602.1315671462222.8684328537817
3147364587.19317403101148.806825968986
3242194515.48888707803-296.488887078032
3351164475.15522566698640.84477433302
3442054473.66138635546-268.661386355458
3541214463.20451117481-342.204511174815
3651034461.71067186329641.289328136705
3743004458.72299324025-158.722993240255
3845784452.74763599417125.252364005828
3938094443.78460012505-634.78460012505
4055264439.303082190491086.69691780951
4142474431.83388563289-184.833885632886
4238304431.83388563289-601.833885632886
4343944409.42629596008-15.4262959600784
4448264392.99406353335433.005936466647
4544094388.5125455987920.4874544012083
4645694367.59879523751201.401204762494
4741064366.10495592598-260.104955925985
4847944349.67272349926444.32727650074
4939144354.15424143382-440.154241433822
5037934348.17888418774-555.17888418774
5144054304.85754415365100.142455846354
5240224288.42531172692-266.425311726921
5341004285.43763310388-185.43763310388
5447884271.9930793002516.006920699804
5531634271.9930793002-1108.99307930020
5635854233.15325720066-648.153257200663
5739034237.63477513523-334.634775135225
5841784228.6717392661-50.6717392661020
5938634228.6717392661-365.671739266102
6041874225.68406064306-38.6840606430616

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 5560 & 4999.4928240107 & 560.507175989303 \tabularnewline
2 & 3922 & 4996.50514538762 & -1074.50514538762 \tabularnewline
3 & 3759 & 4995.0113060761 & -1236.0113060761 \tabularnewline
4 & 4138 & 4993.51746676458 & -855.51746676458 \tabularnewline
5 & 4634 & 4992.02362745306 & -358.023627453061 \tabularnewline
6 & 3996 & 4992.02362745306 & -996.02362745306 \tabularnewline
7 & 4308 & 4971.10987709177 & -663.109877091774 \tabularnewline
8 & 4429 & 4905.38094738487 & -476.380947384873 \tabularnewline
9 & 5219 & 4893.43023289271 & 325.569767107291 \tabularnewline
10 & 4929 & 4888.94871495815 & 40.0512850418521 \tabularnewline
11 & 5755 & 4875.50416115446 & 879.495838845536 \tabularnewline
12 & 5592 & 4851.60273217014 & 740.397267829864 \tabularnewline
13 & 4163 & 4851.60273217014 & -688.602732170136 \tabularnewline
14 & 4962 & 4845.62737492405 & 116.372625075945 \tabularnewline
15 & 5208 & 4835.17049974341 & 372.829500256589 \tabularnewline
16 & 4755 & 4833.67666043189 & -78.676660431891 \tabularnewline
17 & 4491 & 4826.20746387429 & -335.207463874288 \tabularnewline
18 & 5732 & 4820.23210662821 & 911.767893371794 \tabularnewline
19 & 5731 & 4751.51549829826 & 979.484501701735 \tabularnewline
20 & 5040 & 4715.66335482177 & 324.336645178226 \tabularnewline
21 & 6102 & 4694.74960446049 & 1407.25039553951 \tabularnewline
22 & 4904 & 4678.31737203376 & 225.682627966237 \tabularnewline
23 & 5369 & 4667.86049685312 & 701.13950314688 \tabularnewline
24 & 5578 & 4664.87281823008 & 913.127181769922 \tabularnewline
25 & 4619 & 4661.88513960704 & -42.8851396070377 \tabularnewline
26 & 4731 & 4637.98371062271 & 93.0162893772903 \tabularnewline
27 & 5011 & 4632.00835337663 & 378.991646623372 \tabularnewline
28 & 5299 & 4629.02067475359 & 669.979325246412 \tabularnewline
29 & 4146 & 4605.11924576926 & -459.11924576926 \tabularnewline
30 & 4625 & 4602.13156714622 & 22.8684328537817 \tabularnewline
31 & 4736 & 4587.19317403101 & 148.806825968986 \tabularnewline
32 & 4219 & 4515.48888707803 & -296.488887078032 \tabularnewline
33 & 5116 & 4475.15522566698 & 640.84477433302 \tabularnewline
34 & 4205 & 4473.66138635546 & -268.661386355458 \tabularnewline
35 & 4121 & 4463.20451117481 & -342.204511174815 \tabularnewline
36 & 5103 & 4461.71067186329 & 641.289328136705 \tabularnewline
37 & 4300 & 4458.72299324025 & -158.722993240255 \tabularnewline
38 & 4578 & 4452.74763599417 & 125.252364005828 \tabularnewline
39 & 3809 & 4443.78460012505 & -634.78460012505 \tabularnewline
40 & 5526 & 4439.30308219049 & 1086.69691780951 \tabularnewline
41 & 4247 & 4431.83388563289 & -184.833885632886 \tabularnewline
42 & 3830 & 4431.83388563289 & -601.833885632886 \tabularnewline
43 & 4394 & 4409.42629596008 & -15.4262959600784 \tabularnewline
44 & 4826 & 4392.99406353335 & 433.005936466647 \tabularnewline
45 & 4409 & 4388.51254559879 & 20.4874544012083 \tabularnewline
46 & 4569 & 4367.59879523751 & 201.401204762494 \tabularnewline
47 & 4106 & 4366.10495592598 & -260.104955925985 \tabularnewline
48 & 4794 & 4349.67272349926 & 444.32727650074 \tabularnewline
49 & 3914 & 4354.15424143382 & -440.154241433822 \tabularnewline
50 & 3793 & 4348.17888418774 & -555.17888418774 \tabularnewline
51 & 4405 & 4304.85754415365 & 100.142455846354 \tabularnewline
52 & 4022 & 4288.42531172692 & -266.425311726921 \tabularnewline
53 & 4100 & 4285.43763310388 & -185.43763310388 \tabularnewline
54 & 4788 & 4271.9930793002 & 516.006920699804 \tabularnewline
55 & 3163 & 4271.9930793002 & -1108.99307930020 \tabularnewline
56 & 3585 & 4233.15325720066 & -648.153257200663 \tabularnewline
57 & 3903 & 4237.63477513523 & -334.634775135225 \tabularnewline
58 & 4178 & 4228.6717392661 & -50.6717392661020 \tabularnewline
59 & 3863 & 4228.6717392661 & -365.671739266102 \tabularnewline
60 & 4187 & 4225.68406064306 & -38.6840606430616 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57214&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]5560[/C][C]4999.4928240107[/C][C]560.507175989303[/C][/ROW]
[ROW][C]2[/C][C]3922[/C][C]4996.50514538762[/C][C]-1074.50514538762[/C][/ROW]
[ROW][C]3[/C][C]3759[/C][C]4995.0113060761[/C][C]-1236.0113060761[/C][/ROW]
[ROW][C]4[/C][C]4138[/C][C]4993.51746676458[/C][C]-855.51746676458[/C][/ROW]
[ROW][C]5[/C][C]4634[/C][C]4992.02362745306[/C][C]-358.023627453061[/C][/ROW]
[ROW][C]6[/C][C]3996[/C][C]4992.02362745306[/C][C]-996.02362745306[/C][/ROW]
[ROW][C]7[/C][C]4308[/C][C]4971.10987709177[/C][C]-663.109877091774[/C][/ROW]
[ROW][C]8[/C][C]4429[/C][C]4905.38094738487[/C][C]-476.380947384873[/C][/ROW]
[ROW][C]9[/C][C]5219[/C][C]4893.43023289271[/C][C]325.569767107291[/C][/ROW]
[ROW][C]10[/C][C]4929[/C][C]4888.94871495815[/C][C]40.0512850418521[/C][/ROW]
[ROW][C]11[/C][C]5755[/C][C]4875.50416115446[/C][C]879.495838845536[/C][/ROW]
[ROW][C]12[/C][C]5592[/C][C]4851.60273217014[/C][C]740.397267829864[/C][/ROW]
[ROW][C]13[/C][C]4163[/C][C]4851.60273217014[/C][C]-688.602732170136[/C][/ROW]
[ROW][C]14[/C][C]4962[/C][C]4845.62737492405[/C][C]116.372625075945[/C][/ROW]
[ROW][C]15[/C][C]5208[/C][C]4835.17049974341[/C][C]372.829500256589[/C][/ROW]
[ROW][C]16[/C][C]4755[/C][C]4833.67666043189[/C][C]-78.676660431891[/C][/ROW]
[ROW][C]17[/C][C]4491[/C][C]4826.20746387429[/C][C]-335.207463874288[/C][/ROW]
[ROW][C]18[/C][C]5732[/C][C]4820.23210662821[/C][C]911.767893371794[/C][/ROW]
[ROW][C]19[/C][C]5731[/C][C]4751.51549829826[/C][C]979.484501701735[/C][/ROW]
[ROW][C]20[/C][C]5040[/C][C]4715.66335482177[/C][C]324.336645178226[/C][/ROW]
[ROW][C]21[/C][C]6102[/C][C]4694.74960446049[/C][C]1407.25039553951[/C][/ROW]
[ROW][C]22[/C][C]4904[/C][C]4678.31737203376[/C][C]225.682627966237[/C][/ROW]
[ROW][C]23[/C][C]5369[/C][C]4667.86049685312[/C][C]701.13950314688[/C][/ROW]
[ROW][C]24[/C][C]5578[/C][C]4664.87281823008[/C][C]913.127181769922[/C][/ROW]
[ROW][C]25[/C][C]4619[/C][C]4661.88513960704[/C][C]-42.8851396070377[/C][/ROW]
[ROW][C]26[/C][C]4731[/C][C]4637.98371062271[/C][C]93.0162893772903[/C][/ROW]
[ROW][C]27[/C][C]5011[/C][C]4632.00835337663[/C][C]378.991646623372[/C][/ROW]
[ROW][C]28[/C][C]5299[/C][C]4629.02067475359[/C][C]669.979325246412[/C][/ROW]
[ROW][C]29[/C][C]4146[/C][C]4605.11924576926[/C][C]-459.11924576926[/C][/ROW]
[ROW][C]30[/C][C]4625[/C][C]4602.13156714622[/C][C]22.8684328537817[/C][/ROW]
[ROW][C]31[/C][C]4736[/C][C]4587.19317403101[/C][C]148.806825968986[/C][/ROW]
[ROW][C]32[/C][C]4219[/C][C]4515.48888707803[/C][C]-296.488887078032[/C][/ROW]
[ROW][C]33[/C][C]5116[/C][C]4475.15522566698[/C][C]640.84477433302[/C][/ROW]
[ROW][C]34[/C][C]4205[/C][C]4473.66138635546[/C][C]-268.661386355458[/C][/ROW]
[ROW][C]35[/C][C]4121[/C][C]4463.20451117481[/C][C]-342.204511174815[/C][/ROW]
[ROW][C]36[/C][C]5103[/C][C]4461.71067186329[/C][C]641.289328136705[/C][/ROW]
[ROW][C]37[/C][C]4300[/C][C]4458.72299324025[/C][C]-158.722993240255[/C][/ROW]
[ROW][C]38[/C][C]4578[/C][C]4452.74763599417[/C][C]125.252364005828[/C][/ROW]
[ROW][C]39[/C][C]3809[/C][C]4443.78460012505[/C][C]-634.78460012505[/C][/ROW]
[ROW][C]40[/C][C]5526[/C][C]4439.30308219049[/C][C]1086.69691780951[/C][/ROW]
[ROW][C]41[/C][C]4247[/C][C]4431.83388563289[/C][C]-184.833885632886[/C][/ROW]
[ROW][C]42[/C][C]3830[/C][C]4431.83388563289[/C][C]-601.833885632886[/C][/ROW]
[ROW][C]43[/C][C]4394[/C][C]4409.42629596008[/C][C]-15.4262959600784[/C][/ROW]
[ROW][C]44[/C][C]4826[/C][C]4392.99406353335[/C][C]433.005936466647[/C][/ROW]
[ROW][C]45[/C][C]4409[/C][C]4388.51254559879[/C][C]20.4874544012083[/C][/ROW]
[ROW][C]46[/C][C]4569[/C][C]4367.59879523751[/C][C]201.401204762494[/C][/ROW]
[ROW][C]47[/C][C]4106[/C][C]4366.10495592598[/C][C]-260.104955925985[/C][/ROW]
[ROW][C]48[/C][C]4794[/C][C]4349.67272349926[/C][C]444.32727650074[/C][/ROW]
[ROW][C]49[/C][C]3914[/C][C]4354.15424143382[/C][C]-440.154241433822[/C][/ROW]
[ROW][C]50[/C][C]3793[/C][C]4348.17888418774[/C][C]-555.17888418774[/C][/ROW]
[ROW][C]51[/C][C]4405[/C][C]4304.85754415365[/C][C]100.142455846354[/C][/ROW]
[ROW][C]52[/C][C]4022[/C][C]4288.42531172692[/C][C]-266.425311726921[/C][/ROW]
[ROW][C]53[/C][C]4100[/C][C]4285.43763310388[/C][C]-185.43763310388[/C][/ROW]
[ROW][C]54[/C][C]4788[/C][C]4271.9930793002[/C][C]516.006920699804[/C][/ROW]
[ROW][C]55[/C][C]3163[/C][C]4271.9930793002[/C][C]-1108.99307930020[/C][/ROW]
[ROW][C]56[/C][C]3585[/C][C]4233.15325720066[/C][C]-648.153257200663[/C][/ROW]
[ROW][C]57[/C][C]3903[/C][C]4237.63477513523[/C][C]-334.634775135225[/C][/ROW]
[ROW][C]58[/C][C]4178[/C][C]4228.6717392661[/C][C]-50.6717392661020[/C][/ROW]
[ROW][C]59[/C][C]3863[/C][C]4228.6717392661[/C][C]-365.671739266102[/C][/ROW]
[ROW][C]60[/C][C]4187[/C][C]4225.68406064306[/C][C]-38.6840606430616[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57214&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57214&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
155604999.4928240107560.507175989303
239224996.50514538762-1074.50514538762
337594995.0113060761-1236.0113060761
441384993.51746676458-855.51746676458
546344992.02362745306-358.023627453061
639964992.02362745306-996.02362745306
743084971.10987709177-663.109877091774
844294905.38094738487-476.380947384873
952194893.43023289271325.569767107291
1049294888.9487149581540.0512850418521
1157554875.50416115446879.495838845536
1255924851.60273217014740.397267829864
1341634851.60273217014-688.602732170136
1449624845.62737492405116.372625075945
1552084835.17049974341372.829500256589
1647554833.67666043189-78.676660431891
1744914826.20746387429-335.207463874288
1857324820.23210662821911.767893371794
1957314751.51549829826979.484501701735
2050404715.66335482177324.336645178226
2161024694.749604460491407.25039553951
2249044678.31737203376225.682627966237
2353694667.86049685312701.13950314688
2455784664.87281823008913.127181769922
2546194661.88513960704-42.8851396070377
2647314637.9837106227193.0162893772903
2750114632.00835337663378.991646623372
2852994629.02067475359669.979325246412
2941464605.11924576926-459.11924576926
3046254602.1315671462222.8684328537817
3147364587.19317403101148.806825968986
3242194515.48888707803-296.488887078032
3351164475.15522566698640.84477433302
3442054473.66138635546-268.661386355458
3541214463.20451117481-342.204511174815
3651034461.71067186329641.289328136705
3743004458.72299324025-158.722993240255
3845784452.74763599417125.252364005828
3938094443.78460012505-634.78460012505
4055264439.303082190491086.69691780951
4142474431.83388563289-184.833885632886
4238304431.83388563289-601.833885632886
4343944409.42629596008-15.4262959600784
4448264392.99406353335433.005936466647
4544094388.5125455987920.4874544012083
4645694367.59879523751201.401204762494
4741064366.10495592598-260.104955925985
4847944349.67272349926444.32727650074
4939144354.15424143382-440.154241433822
5037934348.17888418774-555.17888418774
5144054304.85754415365100.142455846354
5240224288.42531172692-266.425311726921
5341004285.43763310388-185.43763310388
5447884271.9930793002516.006920699804
5531634271.9930793002-1108.99307930020
5635854233.15325720066-648.153257200663
5739034237.63477513523-334.634775135225
5841784228.6717392661-50.6717392661020
5938634228.6717392661-365.671739266102
6041874225.68406064306-38.6840606430616







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.8407616109289850.318476778142030.159238389071015
60.7798742030906620.4402515938186760.220125796909338
70.860622330707440.2787553385851210.139377669292561
80.8288135311720840.3423729376558320.171186468827916
90.820387310864490.3592253782710220.179612689135511
100.7504903290549620.4990193418900770.249509670945038
110.7737574505509210.4524850988981570.226242549449079
120.7037090852229890.5925818295540210.296290914777011
130.9084966995846120.1830066008307760.0915033004153882
140.8770267492853210.2459465014293570.122973250714679
150.8271888661382690.3456222677234620.172811133861731
160.820885518317390.358228963365220.17911448168261
170.8805092654296250.238981469140750.119490734570375
180.8767686448751250.246462710249750.123231355124875
190.8474732244438930.3050535511122150.152526775556107
200.8402075976975570.3195848046048870.159792402302443
210.8851102251256580.2297795497486840.114889774874342
220.9012025672543540.1975948654912920.098797432745646
230.8805216094227310.2389567811545380.119478390577269
240.8763390191353460.2473219617293080.123660980864654
250.9054483490464570.1891033019070850.0945516509535426
260.9067884831464070.1864230337071860.0932115168535931
270.8839330199621180.2321339600757630.116066980037882
280.8689423771304920.2621152457390160.131057622869508
290.93395250564570.1320949887085980.066047494354299
300.9231682357716380.1536635284567240.0768317642283618
310.9015123822013120.1969752355973760.098487617798688
320.9202093376807320.1595813246385370.0797906623192684
330.9132874930072450.1734250139855090.0867125069927546
340.9168280930290270.1663438139419460.0831719069709728
350.9222327699439950.1555344601120090.0777672300560045
360.9173053413846640.1653893172306720.0826946586153359
370.898877510981650.2022449780367010.101122489018351
380.8617838952622610.2764322094754770.138216104737739
390.9075117656042270.1849764687915460.0924882343957729
400.9698657774208760.06026844515824850.0301342225791242
410.9568901257830010.08621974843399750.0431098742169988
420.9717745758432050.05645084831358890.0282254241567944
430.9549511247670540.09009775046589260.0450488752329463
440.9450857519803040.1098284960393920.054914248019696
450.9144925844058110.1710148311883770.0855074155941885
460.8863480527623880.2273038944752230.113651947237612
470.83975888384080.32048223231840.1602411161592
480.8741063098467580.2517873803064830.125893690153242
490.8226129144278390.3547741711443230.177387085572161
500.7918486190569180.4163027618861640.208151380943082
510.7216812350173860.5566375299652280.278318764982614
520.6109435450013890.7781129099972220.389056454998611
530.4843717714722360.9687435429444730.515628228527764
540.9704027966020530.05919440679589340.0295972033979467
550.927147397121140.1457052057577200.0728526028788601

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.840761610928985 & 0.31847677814203 & 0.159238389071015 \tabularnewline
6 & 0.779874203090662 & 0.440251593818676 & 0.220125796909338 \tabularnewline
7 & 0.86062233070744 & 0.278755338585121 & 0.139377669292561 \tabularnewline
8 & 0.828813531172084 & 0.342372937655832 & 0.171186468827916 \tabularnewline
9 & 0.82038731086449 & 0.359225378271022 & 0.179612689135511 \tabularnewline
10 & 0.750490329054962 & 0.499019341890077 & 0.249509670945038 \tabularnewline
11 & 0.773757450550921 & 0.452485098898157 & 0.226242549449079 \tabularnewline
12 & 0.703709085222989 & 0.592581829554021 & 0.296290914777011 \tabularnewline
13 & 0.908496699584612 & 0.183006600830776 & 0.0915033004153882 \tabularnewline
14 & 0.877026749285321 & 0.245946501429357 & 0.122973250714679 \tabularnewline
15 & 0.827188866138269 & 0.345622267723462 & 0.172811133861731 \tabularnewline
16 & 0.82088551831739 & 0.35822896336522 & 0.17911448168261 \tabularnewline
17 & 0.880509265429625 & 0.23898146914075 & 0.119490734570375 \tabularnewline
18 & 0.876768644875125 & 0.24646271024975 & 0.123231355124875 \tabularnewline
19 & 0.847473224443893 & 0.305053551112215 & 0.152526775556107 \tabularnewline
20 & 0.840207597697557 & 0.319584804604887 & 0.159792402302443 \tabularnewline
21 & 0.885110225125658 & 0.229779549748684 & 0.114889774874342 \tabularnewline
22 & 0.901202567254354 & 0.197594865491292 & 0.098797432745646 \tabularnewline
23 & 0.880521609422731 & 0.238956781154538 & 0.119478390577269 \tabularnewline
24 & 0.876339019135346 & 0.247321961729308 & 0.123660980864654 \tabularnewline
25 & 0.905448349046457 & 0.189103301907085 & 0.0945516509535426 \tabularnewline
26 & 0.906788483146407 & 0.186423033707186 & 0.0932115168535931 \tabularnewline
27 & 0.883933019962118 & 0.232133960075763 & 0.116066980037882 \tabularnewline
28 & 0.868942377130492 & 0.262115245739016 & 0.131057622869508 \tabularnewline
29 & 0.9339525056457 & 0.132094988708598 & 0.066047494354299 \tabularnewline
30 & 0.923168235771638 & 0.153663528456724 & 0.0768317642283618 \tabularnewline
31 & 0.901512382201312 & 0.196975235597376 & 0.098487617798688 \tabularnewline
32 & 0.920209337680732 & 0.159581324638537 & 0.0797906623192684 \tabularnewline
33 & 0.913287493007245 & 0.173425013985509 & 0.0867125069927546 \tabularnewline
34 & 0.916828093029027 & 0.166343813941946 & 0.0831719069709728 \tabularnewline
35 & 0.922232769943995 & 0.155534460112009 & 0.0777672300560045 \tabularnewline
36 & 0.917305341384664 & 0.165389317230672 & 0.0826946586153359 \tabularnewline
37 & 0.89887751098165 & 0.202244978036701 & 0.101122489018351 \tabularnewline
38 & 0.861783895262261 & 0.276432209475477 & 0.138216104737739 \tabularnewline
39 & 0.907511765604227 & 0.184976468791546 & 0.0924882343957729 \tabularnewline
40 & 0.969865777420876 & 0.0602684451582485 & 0.0301342225791242 \tabularnewline
41 & 0.956890125783001 & 0.0862197484339975 & 0.0431098742169988 \tabularnewline
42 & 0.971774575843205 & 0.0564508483135889 & 0.0282254241567944 \tabularnewline
43 & 0.954951124767054 & 0.0900977504658926 & 0.0450488752329463 \tabularnewline
44 & 0.945085751980304 & 0.109828496039392 & 0.054914248019696 \tabularnewline
45 & 0.914492584405811 & 0.171014831188377 & 0.0855074155941885 \tabularnewline
46 & 0.886348052762388 & 0.227303894475223 & 0.113651947237612 \tabularnewline
47 & 0.8397588838408 & 0.3204822323184 & 0.1602411161592 \tabularnewline
48 & 0.874106309846758 & 0.251787380306483 & 0.125893690153242 \tabularnewline
49 & 0.822612914427839 & 0.354774171144323 & 0.177387085572161 \tabularnewline
50 & 0.791848619056918 & 0.416302761886164 & 0.208151380943082 \tabularnewline
51 & 0.721681235017386 & 0.556637529965228 & 0.278318764982614 \tabularnewline
52 & 0.610943545001389 & 0.778112909997222 & 0.389056454998611 \tabularnewline
53 & 0.484371771472236 & 0.968743542944473 & 0.515628228527764 \tabularnewline
54 & 0.970402796602053 & 0.0591944067958934 & 0.0295972033979467 \tabularnewline
55 & 0.92714739712114 & 0.145705205757720 & 0.0728526028788601 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57214&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]5[/C][C]0.840761610928985[/C][C]0.31847677814203[/C][C]0.159238389071015[/C][/ROW]
[ROW][C]6[/C][C]0.779874203090662[/C][C]0.440251593818676[/C][C]0.220125796909338[/C][/ROW]
[ROW][C]7[/C][C]0.86062233070744[/C][C]0.278755338585121[/C][C]0.139377669292561[/C][/ROW]
[ROW][C]8[/C][C]0.828813531172084[/C][C]0.342372937655832[/C][C]0.171186468827916[/C][/ROW]
[ROW][C]9[/C][C]0.82038731086449[/C][C]0.359225378271022[/C][C]0.179612689135511[/C][/ROW]
[ROW][C]10[/C][C]0.750490329054962[/C][C]0.499019341890077[/C][C]0.249509670945038[/C][/ROW]
[ROW][C]11[/C][C]0.773757450550921[/C][C]0.452485098898157[/C][C]0.226242549449079[/C][/ROW]
[ROW][C]12[/C][C]0.703709085222989[/C][C]0.592581829554021[/C][C]0.296290914777011[/C][/ROW]
[ROW][C]13[/C][C]0.908496699584612[/C][C]0.183006600830776[/C][C]0.0915033004153882[/C][/ROW]
[ROW][C]14[/C][C]0.877026749285321[/C][C]0.245946501429357[/C][C]0.122973250714679[/C][/ROW]
[ROW][C]15[/C][C]0.827188866138269[/C][C]0.345622267723462[/C][C]0.172811133861731[/C][/ROW]
[ROW][C]16[/C][C]0.82088551831739[/C][C]0.35822896336522[/C][C]0.17911448168261[/C][/ROW]
[ROW][C]17[/C][C]0.880509265429625[/C][C]0.23898146914075[/C][C]0.119490734570375[/C][/ROW]
[ROW][C]18[/C][C]0.876768644875125[/C][C]0.24646271024975[/C][C]0.123231355124875[/C][/ROW]
[ROW][C]19[/C][C]0.847473224443893[/C][C]0.305053551112215[/C][C]0.152526775556107[/C][/ROW]
[ROW][C]20[/C][C]0.840207597697557[/C][C]0.319584804604887[/C][C]0.159792402302443[/C][/ROW]
[ROW][C]21[/C][C]0.885110225125658[/C][C]0.229779549748684[/C][C]0.114889774874342[/C][/ROW]
[ROW][C]22[/C][C]0.901202567254354[/C][C]0.197594865491292[/C][C]0.098797432745646[/C][/ROW]
[ROW][C]23[/C][C]0.880521609422731[/C][C]0.238956781154538[/C][C]0.119478390577269[/C][/ROW]
[ROW][C]24[/C][C]0.876339019135346[/C][C]0.247321961729308[/C][C]0.123660980864654[/C][/ROW]
[ROW][C]25[/C][C]0.905448349046457[/C][C]0.189103301907085[/C][C]0.0945516509535426[/C][/ROW]
[ROW][C]26[/C][C]0.906788483146407[/C][C]0.186423033707186[/C][C]0.0932115168535931[/C][/ROW]
[ROW][C]27[/C][C]0.883933019962118[/C][C]0.232133960075763[/C][C]0.116066980037882[/C][/ROW]
[ROW][C]28[/C][C]0.868942377130492[/C][C]0.262115245739016[/C][C]0.131057622869508[/C][/ROW]
[ROW][C]29[/C][C]0.9339525056457[/C][C]0.132094988708598[/C][C]0.066047494354299[/C][/ROW]
[ROW][C]30[/C][C]0.923168235771638[/C][C]0.153663528456724[/C][C]0.0768317642283618[/C][/ROW]
[ROW][C]31[/C][C]0.901512382201312[/C][C]0.196975235597376[/C][C]0.098487617798688[/C][/ROW]
[ROW][C]32[/C][C]0.920209337680732[/C][C]0.159581324638537[/C][C]0.0797906623192684[/C][/ROW]
[ROW][C]33[/C][C]0.913287493007245[/C][C]0.173425013985509[/C][C]0.0867125069927546[/C][/ROW]
[ROW][C]34[/C][C]0.916828093029027[/C][C]0.166343813941946[/C][C]0.0831719069709728[/C][/ROW]
[ROW][C]35[/C][C]0.922232769943995[/C][C]0.155534460112009[/C][C]0.0777672300560045[/C][/ROW]
[ROW][C]36[/C][C]0.917305341384664[/C][C]0.165389317230672[/C][C]0.0826946586153359[/C][/ROW]
[ROW][C]37[/C][C]0.89887751098165[/C][C]0.202244978036701[/C][C]0.101122489018351[/C][/ROW]
[ROW][C]38[/C][C]0.861783895262261[/C][C]0.276432209475477[/C][C]0.138216104737739[/C][/ROW]
[ROW][C]39[/C][C]0.907511765604227[/C][C]0.184976468791546[/C][C]0.0924882343957729[/C][/ROW]
[ROW][C]40[/C][C]0.969865777420876[/C][C]0.0602684451582485[/C][C]0.0301342225791242[/C][/ROW]
[ROW][C]41[/C][C]0.956890125783001[/C][C]0.0862197484339975[/C][C]0.0431098742169988[/C][/ROW]
[ROW][C]42[/C][C]0.971774575843205[/C][C]0.0564508483135889[/C][C]0.0282254241567944[/C][/ROW]
[ROW][C]43[/C][C]0.954951124767054[/C][C]0.0900977504658926[/C][C]0.0450488752329463[/C][/ROW]
[ROW][C]44[/C][C]0.945085751980304[/C][C]0.109828496039392[/C][C]0.054914248019696[/C][/ROW]
[ROW][C]45[/C][C]0.914492584405811[/C][C]0.171014831188377[/C][C]0.0855074155941885[/C][/ROW]
[ROW][C]46[/C][C]0.886348052762388[/C][C]0.227303894475223[/C][C]0.113651947237612[/C][/ROW]
[ROW][C]47[/C][C]0.8397588838408[/C][C]0.3204822323184[/C][C]0.1602411161592[/C][/ROW]
[ROW][C]48[/C][C]0.874106309846758[/C][C]0.251787380306483[/C][C]0.125893690153242[/C][/ROW]
[ROW][C]49[/C][C]0.822612914427839[/C][C]0.354774171144323[/C][C]0.177387085572161[/C][/ROW]
[ROW][C]50[/C][C]0.791848619056918[/C][C]0.416302761886164[/C][C]0.208151380943082[/C][/ROW]
[ROW][C]51[/C][C]0.721681235017386[/C][C]0.556637529965228[/C][C]0.278318764982614[/C][/ROW]
[ROW][C]52[/C][C]0.610943545001389[/C][C]0.778112909997222[/C][C]0.389056454998611[/C][/ROW]
[ROW][C]53[/C][C]0.484371771472236[/C][C]0.968743542944473[/C][C]0.515628228527764[/C][/ROW]
[ROW][C]54[/C][C]0.970402796602053[/C][C]0.0591944067958934[/C][C]0.0295972033979467[/C][/ROW]
[ROW][C]55[/C][C]0.92714739712114[/C][C]0.145705205757720[/C][C]0.0728526028788601[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57214&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57214&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
50.8407616109289850.318476778142030.159238389071015
60.7798742030906620.4402515938186760.220125796909338
70.860622330707440.2787553385851210.139377669292561
80.8288135311720840.3423729376558320.171186468827916
90.820387310864490.3592253782710220.179612689135511
100.7504903290549620.4990193418900770.249509670945038
110.7737574505509210.4524850988981570.226242549449079
120.7037090852229890.5925818295540210.296290914777011
130.9084966995846120.1830066008307760.0915033004153882
140.8770267492853210.2459465014293570.122973250714679
150.8271888661382690.3456222677234620.172811133861731
160.820885518317390.358228963365220.17911448168261
170.8805092654296250.238981469140750.119490734570375
180.8767686448751250.246462710249750.123231355124875
190.8474732244438930.3050535511122150.152526775556107
200.8402075976975570.3195848046048870.159792402302443
210.8851102251256580.2297795497486840.114889774874342
220.9012025672543540.1975948654912920.098797432745646
230.8805216094227310.2389567811545380.119478390577269
240.8763390191353460.2473219617293080.123660980864654
250.9054483490464570.1891033019070850.0945516509535426
260.9067884831464070.1864230337071860.0932115168535931
270.8839330199621180.2321339600757630.116066980037882
280.8689423771304920.2621152457390160.131057622869508
290.93395250564570.1320949887085980.066047494354299
300.9231682357716380.1536635284567240.0768317642283618
310.9015123822013120.1969752355973760.098487617798688
320.9202093376807320.1595813246385370.0797906623192684
330.9132874930072450.1734250139855090.0867125069927546
340.9168280930290270.1663438139419460.0831719069709728
350.9222327699439950.1555344601120090.0777672300560045
360.9173053413846640.1653893172306720.0826946586153359
370.898877510981650.2022449780367010.101122489018351
380.8617838952622610.2764322094754770.138216104737739
390.9075117656042270.1849764687915460.0924882343957729
400.9698657774208760.06026844515824850.0301342225791242
410.9568901257830010.08621974843399750.0431098742169988
420.9717745758432050.05645084831358890.0282254241567944
430.9549511247670540.09009775046589260.0450488752329463
440.9450857519803040.1098284960393920.054914248019696
450.9144925844058110.1710148311883770.0855074155941885
460.8863480527623880.2273038944752230.113651947237612
470.83975888384080.32048223231840.1602411161592
480.8741063098467580.2517873803064830.125893690153242
490.8226129144278390.3547741711443230.177387085572161
500.7918486190569180.4163027618861640.208151380943082
510.7216812350173860.5566375299652280.278318764982614
520.6109435450013890.7781129099972220.389056454998611
530.4843717714722360.9687435429444730.515628228527764
540.9704027966020530.05919440679589340.0295972033979467
550.927147397121140.1457052057577200.0728526028788601







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 level50.0980392156862745OK

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

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



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No 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')
}