Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 17 Nov 2009 14:35:13 -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/17/t1258493774danu9i5vu2hkjhh.htm/, Retrieved Thu, 02 May 2024 00:42:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57428, Retrieved Thu, 02 May 2024 00:42:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact181
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Regressiemodel me...] [2009-11-17 21:35:13] [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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57428&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -20975.9090114693 + 729.663124933304X[t] -739.925932000227M1[t] -810.905937388851M2[t] -751.494489025193M3[t] -381.362579415402M4[t] -761.283258554145M5[t] -425.773370194755M6[t] -590.816319326028M7[t] -773.893453448231M8[t] -228.600657584305M9[t] -585.677294222248M10[t] -448.101342111657M11[t] -86.799782107389t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -20975.9090114693 +  729.663124933304X[t] -739.925932000227M1[t] -810.905937388851M2[t] -751.494489025193M3[t] -381.362579415402M4[t] -761.283258554145M5[t] -425.773370194755M6[t] -590.816319326028M7[t] -773.893453448231M8[t] -228.600657584305M9[t] -585.677294222248M10[t] -448.101342111657M11[t] -86.799782107389t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57428&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -20975.9090114693 +  729.663124933304X[t] -739.925932000227M1[t] -810.905937388851M2[t] -751.494489025193M3[t] -381.362579415402M4[t] -761.283258554145M5[t] -425.773370194755M6[t] -590.816319326028M7[t] -773.893453448231M8[t] -228.600657584305M9[t] -585.677294222248M10[t] -448.101342111657M11[t] -86.799782107389t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57428&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57428&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] = -20975.9090114693 + 729.663124933304X[t] -739.925932000227M1[t] -810.905937388851M2[t] -751.494489025193M3[t] -381.362579415402M4[t] -761.283258554145M5[t] -425.773370194755M6[t] -590.816319326028M7[t] -773.893453448231M8[t] -228.600657584305M9[t] -585.677294222248M10[t] -448.101342111657M11[t] -86.799782107389t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-20975.909011469315020.830195-1.39650.169280.08464
X729.663124933304411.0296691.77520.082480.04124
M1-739.925932000227361.33308-2.04780.0463170.023158
M2-810.905937388851360.924335-2.24670.0294980.014749
M3-751.494489025193360.445791-2.08490.0426560.021328
M4-381.362579415402361.544004-1.05480.2970180.148509
M5-761.283258554145362.940294-2.09750.0414690.020735
M6-425.773370194755367.244965-1.15940.2522880.126144
M7-590.816319326028361.764758-1.63320.1092650.054632
M8-773.893453448231360.92585-2.14420.0373350.018668
M9-228.600657584305360.894558-0.63340.5295910.264796
M10-585.677294222248359.715325-1.62820.110320.05516
M11-448.101342111657358.441167-1.25010.2175710.108786
t-86.79978210738939.225203-2.21290.0319090.015955

\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) & -20975.9090114693 & 15020.830195 & -1.3965 & 0.16928 & 0.08464 \tabularnewline
X & 729.663124933304 & 411.029669 & 1.7752 & 0.08248 & 0.04124 \tabularnewline
M1 & -739.925932000227 & 361.33308 & -2.0478 & 0.046317 & 0.023158 \tabularnewline
M2 & -810.905937388851 & 360.924335 & -2.2467 & 0.029498 & 0.014749 \tabularnewline
M3 & -751.494489025193 & 360.445791 & -2.0849 & 0.042656 & 0.021328 \tabularnewline
M4 & -381.362579415402 & 361.544004 & -1.0548 & 0.297018 & 0.148509 \tabularnewline
M5 & -761.283258554145 & 362.940294 & -2.0975 & 0.041469 & 0.020735 \tabularnewline
M6 & -425.773370194755 & 367.244965 & -1.1594 & 0.252288 & 0.126144 \tabularnewline
M7 & -590.816319326028 & 361.764758 & -1.6332 & 0.109265 & 0.054632 \tabularnewline
M8 & -773.893453448231 & 360.92585 & -2.1442 & 0.037335 & 0.018668 \tabularnewline
M9 & -228.600657584305 & 360.894558 & -0.6334 & 0.529591 & 0.264796 \tabularnewline
M10 & -585.677294222248 & 359.715325 & -1.6282 & 0.11032 & 0.05516 \tabularnewline
M11 & -448.101342111657 & 358.441167 & -1.2501 & 0.217571 & 0.108786 \tabularnewline
t & -86.799782107389 & 39.225203 & -2.2129 & 0.031909 & 0.015955 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57428&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]-20975.9090114693[/C][C]15020.830195[/C][C]-1.3965[/C][C]0.16928[/C][C]0.08464[/C][/ROW]
[ROW][C]X[/C][C]729.663124933304[/C][C]411.029669[/C][C]1.7752[/C][C]0.08248[/C][C]0.04124[/C][/ROW]
[ROW][C]M1[/C][C]-739.925932000227[/C][C]361.33308[/C][C]-2.0478[/C][C]0.046317[/C][C]0.023158[/C][/ROW]
[ROW][C]M2[/C][C]-810.905937388851[/C][C]360.924335[/C][C]-2.2467[/C][C]0.029498[/C][C]0.014749[/C][/ROW]
[ROW][C]M3[/C][C]-751.494489025193[/C][C]360.445791[/C][C]-2.0849[/C][C]0.042656[/C][C]0.021328[/C][/ROW]
[ROW][C]M4[/C][C]-381.362579415402[/C][C]361.544004[/C][C]-1.0548[/C][C]0.297018[/C][C]0.148509[/C][/ROW]
[ROW][C]M5[/C][C]-761.283258554145[/C][C]362.940294[/C][C]-2.0975[/C][C]0.041469[/C][C]0.020735[/C][/ROW]
[ROW][C]M6[/C][C]-425.773370194755[/C][C]367.244965[/C][C]-1.1594[/C][C]0.252288[/C][C]0.126144[/C][/ROW]
[ROW][C]M7[/C][C]-590.816319326028[/C][C]361.764758[/C][C]-1.6332[/C][C]0.109265[/C][C]0.054632[/C][/ROW]
[ROW][C]M8[/C][C]-773.893453448231[/C][C]360.92585[/C][C]-2.1442[/C][C]0.037335[/C][C]0.018668[/C][/ROW]
[ROW][C]M9[/C][C]-228.600657584305[/C][C]360.894558[/C][C]-0.6334[/C][C]0.529591[/C][C]0.264796[/C][/ROW]
[ROW][C]M10[/C][C]-585.677294222248[/C][C]359.715325[/C][C]-1.6282[/C][C]0.11032[/C][C]0.05516[/C][/ROW]
[ROW][C]M11[/C][C]-448.101342111657[/C][C]358.441167[/C][C]-1.2501[/C][C]0.217571[/C][C]0.108786[/C][/ROW]
[ROW][C]t[/C][C]-86.799782107389[/C][C]39.225203[/C][C]-2.2129[/C][C]0.031909[/C][C]0.015955[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57428&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57428&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)-20975.909011469315020.830195-1.39650.169280.08464
X729.663124933304411.0296691.77520.082480.04124
M1-739.925932000227361.33308-2.04780.0463170.023158
M2-810.905937388851360.924335-2.24670.0294980.014749
M3-751.494489025193360.445791-2.08490.0426560.021328
M4-381.362579415402361.544004-1.05480.2970180.148509
M5-761.283258554145362.940294-2.09750.0414690.020735
M6-425.773370194755367.244965-1.15940.2522880.126144
M7-590.816319326028361.764758-1.63320.1092650.054632
M8-773.893453448231360.92585-2.14420.0373350.018668
M9-228.600657584305360.894558-0.63340.5295910.264796
M10-585.677294222248359.715325-1.62820.110320.05516
M11-448.101342111657358.441167-1.25010.2175710.108786
t-86.79978210738939.225203-2.21290.0319090.015955







Multiple Linear Regression - Regression Statistics
Multiple R0.618001316467757
R-squared0.381925627155881
Adjusted R-squared0.207252434830369
F-TEST (value)2.18651541241740
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.0259702954238020
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation566.34944137796
Sum Squared Residuals14754577.7284599

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.618001316467757 \tabularnewline
R-squared & 0.381925627155881 \tabularnewline
Adjusted R-squared & 0.207252434830369 \tabularnewline
F-TEST (value) & 2.18651541241740 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.0259702954238020 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 566.34944137796 \tabularnewline
Sum Squared Residuals & 14754577.7284599 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57428&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.618001316467757[/C][/ROW]
[ROW][C]R-squared[/C][C]0.381925627155881[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.207252434830369[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.18651541241740[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.0259702954238020[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]566.34944137796[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]14754577.7284599[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57428&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57428&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.618001316467757
R-squared0.381925627155881
Adjusted R-squared0.207252434830369
F-TEST (value)2.18651541241740
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.0259702954238020
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation566.34944137796
Sum Squared Residuals14754577.7284599







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
155604961.40869697655598.591303023452
239224818.22217197927-896.222171979267
337594798.13046948487-1039.13046948487
441385088.75922823661-950.759228236606
546344629.33539823984.66460176019562
639964878.04550449181-882.045504491806
743084728.35561074381-420.355610743807
844294779.53046948487-350.530469484872
952195296.39653323607-77.3965332360716
1049294874.4100082387454.5899917612590
1157554990.85585948594764.144140514063
1255925468.90351947954123.096480520464
1341634642.17780537192-479.17780537192
1449624513.58454287324448.415457126761
1552084537.27262787484670.72737212516
1647554827.90138662657-72.9013866265736
1744914397.6640816271193.3359183728906
1857324675.560712876441056.43928712356
1957314759.3630191071971.636980892899
2050404664.6052528615375.394747138503
2161025225.2511041087876.748895891302
2249044861.6376291060342.362370893971
2353694963.49021785456405.509782145438
2455785339.3850403575238.614959642502
2546194527.2525887485591.7474112514548
2647314486.21890124186244.781098758136
2750114488.01709249547522.982907504535
2852994785.94248249653513.05751750347
2941464435.96812123973-289.968121239729
3046254699.2714899904-74.2714899903987
3147364520.39507124506215.604928754937
3242194600.75645498346-381.75645498346
3351165256.25851247199-140.258512471986
3442054819.67872497599-614.678724975991
3541214921.53131372452-800.531313724524
3651035290.12950497812-187.129504978124
3743004477.99705336917-177.997053369170
3845784349.40379087049228.596209129506
3938094365.79524462276-556.795244622759
4055264671.01726587316854.982734126839
4142474240.779960873696.22003912630821
4238304489.49006712569-659.490067125693
4343944347.0968046270346.9031953729692
4448264157.4828321401668.517167859899
4544094637.86573964464-228.865739644638
4645694296.14215838996272.857841610036
4741064354.2149596425-248.214959642503
4847944795.77946338943-1.77946338943394
4939143947.16385553382-33.1638555338176
5037933818.57059303514-25.5705930351362
5144054002.78456552206402.215434477936
5240224366.37963676713-344.379636767129
5341003914.25243801966185.747561980335
5447884228.63222551566559.36777448434
5531633976.789494277-813.789494276999
5635853896.62499053007-311.624990530069
5739034333.22811053861-430.228110538606
5841783933.13147928927244.868520710726
5938633983.90764929248-120.907649292476
6041874359.80247179541-172.802471795408

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 5560 & 4961.40869697655 & 598.591303023452 \tabularnewline
2 & 3922 & 4818.22217197927 & -896.222171979267 \tabularnewline
3 & 3759 & 4798.13046948487 & -1039.13046948487 \tabularnewline
4 & 4138 & 5088.75922823661 & -950.759228236606 \tabularnewline
5 & 4634 & 4629.3353982398 & 4.66460176019562 \tabularnewline
6 & 3996 & 4878.04550449181 & -882.045504491806 \tabularnewline
7 & 4308 & 4728.35561074381 & -420.355610743807 \tabularnewline
8 & 4429 & 4779.53046948487 & -350.530469484872 \tabularnewline
9 & 5219 & 5296.39653323607 & -77.3965332360716 \tabularnewline
10 & 4929 & 4874.41000823874 & 54.5899917612590 \tabularnewline
11 & 5755 & 4990.85585948594 & 764.144140514063 \tabularnewline
12 & 5592 & 5468.90351947954 & 123.096480520464 \tabularnewline
13 & 4163 & 4642.17780537192 & -479.17780537192 \tabularnewline
14 & 4962 & 4513.58454287324 & 448.415457126761 \tabularnewline
15 & 5208 & 4537.27262787484 & 670.72737212516 \tabularnewline
16 & 4755 & 4827.90138662657 & -72.9013866265736 \tabularnewline
17 & 4491 & 4397.66408162711 & 93.3359183728906 \tabularnewline
18 & 5732 & 4675.56071287644 & 1056.43928712356 \tabularnewline
19 & 5731 & 4759.3630191071 & 971.636980892899 \tabularnewline
20 & 5040 & 4664.6052528615 & 375.394747138503 \tabularnewline
21 & 6102 & 5225.2511041087 & 876.748895891302 \tabularnewline
22 & 4904 & 4861.63762910603 & 42.362370893971 \tabularnewline
23 & 5369 & 4963.49021785456 & 405.509782145438 \tabularnewline
24 & 5578 & 5339.3850403575 & 238.614959642502 \tabularnewline
25 & 4619 & 4527.25258874855 & 91.7474112514548 \tabularnewline
26 & 4731 & 4486.21890124186 & 244.781098758136 \tabularnewline
27 & 5011 & 4488.01709249547 & 522.982907504535 \tabularnewline
28 & 5299 & 4785.94248249653 & 513.05751750347 \tabularnewline
29 & 4146 & 4435.96812123973 & -289.968121239729 \tabularnewline
30 & 4625 & 4699.2714899904 & -74.2714899903987 \tabularnewline
31 & 4736 & 4520.39507124506 & 215.604928754937 \tabularnewline
32 & 4219 & 4600.75645498346 & -381.75645498346 \tabularnewline
33 & 5116 & 5256.25851247199 & -140.258512471986 \tabularnewline
34 & 4205 & 4819.67872497599 & -614.678724975991 \tabularnewline
35 & 4121 & 4921.53131372452 & -800.531313724524 \tabularnewline
36 & 5103 & 5290.12950497812 & -187.129504978124 \tabularnewline
37 & 4300 & 4477.99705336917 & -177.997053369170 \tabularnewline
38 & 4578 & 4349.40379087049 & 228.596209129506 \tabularnewline
39 & 3809 & 4365.79524462276 & -556.795244622759 \tabularnewline
40 & 5526 & 4671.01726587316 & 854.982734126839 \tabularnewline
41 & 4247 & 4240.77996087369 & 6.22003912630821 \tabularnewline
42 & 3830 & 4489.49006712569 & -659.490067125693 \tabularnewline
43 & 4394 & 4347.09680462703 & 46.9031953729692 \tabularnewline
44 & 4826 & 4157.4828321401 & 668.517167859899 \tabularnewline
45 & 4409 & 4637.86573964464 & -228.865739644638 \tabularnewline
46 & 4569 & 4296.14215838996 & 272.857841610036 \tabularnewline
47 & 4106 & 4354.2149596425 & -248.214959642503 \tabularnewline
48 & 4794 & 4795.77946338943 & -1.77946338943394 \tabularnewline
49 & 3914 & 3947.16385553382 & -33.1638555338176 \tabularnewline
50 & 3793 & 3818.57059303514 & -25.5705930351362 \tabularnewline
51 & 4405 & 4002.78456552206 & 402.215434477936 \tabularnewline
52 & 4022 & 4366.37963676713 & -344.379636767129 \tabularnewline
53 & 4100 & 3914.25243801966 & 185.747561980335 \tabularnewline
54 & 4788 & 4228.63222551566 & 559.36777448434 \tabularnewline
55 & 3163 & 3976.789494277 & -813.789494276999 \tabularnewline
56 & 3585 & 3896.62499053007 & -311.624990530069 \tabularnewline
57 & 3903 & 4333.22811053861 & -430.228110538606 \tabularnewline
58 & 4178 & 3933.13147928927 & 244.868520710726 \tabularnewline
59 & 3863 & 3983.90764929248 & -120.907649292476 \tabularnewline
60 & 4187 & 4359.80247179541 & -172.802471795408 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57428&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]4961.40869697655[/C][C]598.591303023452[/C][/ROW]
[ROW][C]2[/C][C]3922[/C][C]4818.22217197927[/C][C]-896.222171979267[/C][/ROW]
[ROW][C]3[/C][C]3759[/C][C]4798.13046948487[/C][C]-1039.13046948487[/C][/ROW]
[ROW][C]4[/C][C]4138[/C][C]5088.75922823661[/C][C]-950.759228236606[/C][/ROW]
[ROW][C]5[/C][C]4634[/C][C]4629.3353982398[/C][C]4.66460176019562[/C][/ROW]
[ROW][C]6[/C][C]3996[/C][C]4878.04550449181[/C][C]-882.045504491806[/C][/ROW]
[ROW][C]7[/C][C]4308[/C][C]4728.35561074381[/C][C]-420.355610743807[/C][/ROW]
[ROW][C]8[/C][C]4429[/C][C]4779.53046948487[/C][C]-350.530469484872[/C][/ROW]
[ROW][C]9[/C][C]5219[/C][C]5296.39653323607[/C][C]-77.3965332360716[/C][/ROW]
[ROW][C]10[/C][C]4929[/C][C]4874.41000823874[/C][C]54.5899917612590[/C][/ROW]
[ROW][C]11[/C][C]5755[/C][C]4990.85585948594[/C][C]764.144140514063[/C][/ROW]
[ROW][C]12[/C][C]5592[/C][C]5468.90351947954[/C][C]123.096480520464[/C][/ROW]
[ROW][C]13[/C][C]4163[/C][C]4642.17780537192[/C][C]-479.17780537192[/C][/ROW]
[ROW][C]14[/C][C]4962[/C][C]4513.58454287324[/C][C]448.415457126761[/C][/ROW]
[ROW][C]15[/C][C]5208[/C][C]4537.27262787484[/C][C]670.72737212516[/C][/ROW]
[ROW][C]16[/C][C]4755[/C][C]4827.90138662657[/C][C]-72.9013866265736[/C][/ROW]
[ROW][C]17[/C][C]4491[/C][C]4397.66408162711[/C][C]93.3359183728906[/C][/ROW]
[ROW][C]18[/C][C]5732[/C][C]4675.56071287644[/C][C]1056.43928712356[/C][/ROW]
[ROW][C]19[/C][C]5731[/C][C]4759.3630191071[/C][C]971.636980892899[/C][/ROW]
[ROW][C]20[/C][C]5040[/C][C]4664.6052528615[/C][C]375.394747138503[/C][/ROW]
[ROW][C]21[/C][C]6102[/C][C]5225.2511041087[/C][C]876.748895891302[/C][/ROW]
[ROW][C]22[/C][C]4904[/C][C]4861.63762910603[/C][C]42.362370893971[/C][/ROW]
[ROW][C]23[/C][C]5369[/C][C]4963.49021785456[/C][C]405.509782145438[/C][/ROW]
[ROW][C]24[/C][C]5578[/C][C]5339.3850403575[/C][C]238.614959642502[/C][/ROW]
[ROW][C]25[/C][C]4619[/C][C]4527.25258874855[/C][C]91.7474112514548[/C][/ROW]
[ROW][C]26[/C][C]4731[/C][C]4486.21890124186[/C][C]244.781098758136[/C][/ROW]
[ROW][C]27[/C][C]5011[/C][C]4488.01709249547[/C][C]522.982907504535[/C][/ROW]
[ROW][C]28[/C][C]5299[/C][C]4785.94248249653[/C][C]513.05751750347[/C][/ROW]
[ROW][C]29[/C][C]4146[/C][C]4435.96812123973[/C][C]-289.968121239729[/C][/ROW]
[ROW][C]30[/C][C]4625[/C][C]4699.2714899904[/C][C]-74.2714899903987[/C][/ROW]
[ROW][C]31[/C][C]4736[/C][C]4520.39507124506[/C][C]215.604928754937[/C][/ROW]
[ROW][C]32[/C][C]4219[/C][C]4600.75645498346[/C][C]-381.75645498346[/C][/ROW]
[ROW][C]33[/C][C]5116[/C][C]5256.25851247199[/C][C]-140.258512471986[/C][/ROW]
[ROW][C]34[/C][C]4205[/C][C]4819.67872497599[/C][C]-614.678724975991[/C][/ROW]
[ROW][C]35[/C][C]4121[/C][C]4921.53131372452[/C][C]-800.531313724524[/C][/ROW]
[ROW][C]36[/C][C]5103[/C][C]5290.12950497812[/C][C]-187.129504978124[/C][/ROW]
[ROW][C]37[/C][C]4300[/C][C]4477.99705336917[/C][C]-177.997053369170[/C][/ROW]
[ROW][C]38[/C][C]4578[/C][C]4349.40379087049[/C][C]228.596209129506[/C][/ROW]
[ROW][C]39[/C][C]3809[/C][C]4365.79524462276[/C][C]-556.795244622759[/C][/ROW]
[ROW][C]40[/C][C]5526[/C][C]4671.01726587316[/C][C]854.982734126839[/C][/ROW]
[ROW][C]41[/C][C]4247[/C][C]4240.77996087369[/C][C]6.22003912630821[/C][/ROW]
[ROW][C]42[/C][C]3830[/C][C]4489.49006712569[/C][C]-659.490067125693[/C][/ROW]
[ROW][C]43[/C][C]4394[/C][C]4347.09680462703[/C][C]46.9031953729692[/C][/ROW]
[ROW][C]44[/C][C]4826[/C][C]4157.4828321401[/C][C]668.517167859899[/C][/ROW]
[ROW][C]45[/C][C]4409[/C][C]4637.86573964464[/C][C]-228.865739644638[/C][/ROW]
[ROW][C]46[/C][C]4569[/C][C]4296.14215838996[/C][C]272.857841610036[/C][/ROW]
[ROW][C]47[/C][C]4106[/C][C]4354.2149596425[/C][C]-248.214959642503[/C][/ROW]
[ROW][C]48[/C][C]4794[/C][C]4795.77946338943[/C][C]-1.77946338943394[/C][/ROW]
[ROW][C]49[/C][C]3914[/C][C]3947.16385553382[/C][C]-33.1638555338176[/C][/ROW]
[ROW][C]50[/C][C]3793[/C][C]3818.57059303514[/C][C]-25.5705930351362[/C][/ROW]
[ROW][C]51[/C][C]4405[/C][C]4002.78456552206[/C][C]402.215434477936[/C][/ROW]
[ROW][C]52[/C][C]4022[/C][C]4366.37963676713[/C][C]-344.379636767129[/C][/ROW]
[ROW][C]53[/C][C]4100[/C][C]3914.25243801966[/C][C]185.747561980335[/C][/ROW]
[ROW][C]54[/C][C]4788[/C][C]4228.63222551566[/C][C]559.36777448434[/C][/ROW]
[ROW][C]55[/C][C]3163[/C][C]3976.789494277[/C][C]-813.789494276999[/C][/ROW]
[ROW][C]56[/C][C]3585[/C][C]3896.62499053007[/C][C]-311.624990530069[/C][/ROW]
[ROW][C]57[/C][C]3903[/C][C]4333.22811053861[/C][C]-430.228110538606[/C][/ROW]
[ROW][C]58[/C][C]4178[/C][C]3933.13147928927[/C][C]244.868520710726[/C][/ROW]
[ROW][C]59[/C][C]3863[/C][C]3983.90764929248[/C][C]-120.907649292476[/C][/ROW]
[ROW][C]60[/C][C]4187[/C][C]4359.80247179541[/C][C]-172.802471795408[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57428&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57428&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
155604961.40869697655598.591303023452
239224818.22217197927-896.222171979267
337594798.13046948487-1039.13046948487
441385088.75922823661-950.759228236606
546344629.33539823984.66460176019562
639964878.04550449181-882.045504491806
743084728.35561074381-420.355610743807
844294779.53046948487-350.530469484872
952195296.39653323607-77.3965332360716
1049294874.4100082387454.5899917612590
1157554990.85585948594764.144140514063
1255925468.90351947954123.096480520464
1341634642.17780537192-479.17780537192
1449624513.58454287324448.415457126761
1552084537.27262787484670.72737212516
1647554827.90138662657-72.9013866265736
1744914397.6640816271193.3359183728906
1857324675.560712876441056.43928712356
1957314759.3630191071971.636980892899
2050404664.6052528615375.394747138503
2161025225.2511041087876.748895891302
2249044861.6376291060342.362370893971
2353694963.49021785456405.509782145438
2455785339.3850403575238.614959642502
2546194527.2525887485591.7474112514548
2647314486.21890124186244.781098758136
2750114488.01709249547522.982907504535
2852994785.94248249653513.05751750347
2941464435.96812123973-289.968121239729
3046254699.2714899904-74.2714899903987
3147364520.39507124506215.604928754937
3242194600.75645498346-381.75645498346
3351165256.25851247199-140.258512471986
3442054819.67872497599-614.678724975991
3541214921.53131372452-800.531313724524
3651035290.12950497812-187.129504978124
3743004477.99705336917-177.997053369170
3845784349.40379087049228.596209129506
3938094365.79524462276-556.795244622759
4055264671.01726587316854.982734126839
4142474240.779960873696.22003912630821
4238304489.49006712569-659.490067125693
4343944347.0968046270346.9031953729692
4448264157.4828321401668.517167859899
4544094637.86573964464-228.865739644638
4645694296.14215838996272.857841610036
4741064354.2149596425-248.214959642503
4847944795.77946338943-1.77946338943394
4939143947.16385553382-33.1638555338176
5037933818.57059303514-25.5705930351362
5144054002.78456552206402.215434477936
5240224366.37963676713-344.379636767129
5341003914.25243801966185.747561980335
5447884228.63222551566559.36777448434
5531633976.789494277-813.789494276999
5635853896.62499053007-311.624990530069
5739034333.22811053861-430.228110538606
5841783933.13147928927244.868520710726
5938633983.90764929248-120.907649292476
6041874359.80247179541-172.802471795408







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.984479115264640.03104176947071740.0155208847353587
180.9684367981770310.06312640364593730.0315632018229686
190.979437422371510.04112515525697890.0205625776284895
200.9636423950111130.0727152099777750.0363576049888875
210.95560077644010.0887984471197980.044399223559899
220.9628788544359640.07424229112807140.0371211455640357
230.9738351909094510.05232961818109760.0261648090905488
240.9596665411097010.0806669177805980.040333458890299
250.9530616041226920.09387679175461580.0469383958773079
260.9241483153129250.1517033693741510.0758516846870754
270.8904506849655560.2190986300688870.109549315034444
280.8402385732477760.3195228535044480.159761426752224
290.8541301573002360.2917396853995290.145869842699764
300.8187237756488120.3625524487023760.181276224351188
310.7844613354441510.4310773291116980.215538664555849
320.7671943926498250.465611214700350.232805607350175
330.7359220787056220.5281558425887570.264077921294378
340.730002467626260.539995064747480.26999753237374
350.7600931237760920.4798137524478170.239906876223909
360.6758537411465330.6482925177069350.324146258853467
370.5885785150581610.8228429698836780.411421484941839
380.4734946841261840.9469893682523670.526505315873816
390.5531914511869670.8936170976260660.446808548813033
400.6468219669757910.7063560660484180.353178033024209
410.5208724639864110.9582550720271780.479127536013589
420.894929391189210.2101412176215800.105070608810790
430.9139963626461630.1720072747076730.0860036373538365

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.98447911526464 & 0.0310417694707174 & 0.0155208847353587 \tabularnewline
18 & 0.968436798177031 & 0.0631264036459373 & 0.0315632018229686 \tabularnewline
19 & 0.97943742237151 & 0.0411251552569789 & 0.0205625776284895 \tabularnewline
20 & 0.963642395011113 & 0.072715209977775 & 0.0363576049888875 \tabularnewline
21 & 0.9556007764401 & 0.088798447119798 & 0.044399223559899 \tabularnewline
22 & 0.962878854435964 & 0.0742422911280714 & 0.0371211455640357 \tabularnewline
23 & 0.973835190909451 & 0.0523296181810976 & 0.0261648090905488 \tabularnewline
24 & 0.959666541109701 & 0.080666917780598 & 0.040333458890299 \tabularnewline
25 & 0.953061604122692 & 0.0938767917546158 & 0.0469383958773079 \tabularnewline
26 & 0.924148315312925 & 0.151703369374151 & 0.0758516846870754 \tabularnewline
27 & 0.890450684965556 & 0.219098630068887 & 0.109549315034444 \tabularnewline
28 & 0.840238573247776 & 0.319522853504448 & 0.159761426752224 \tabularnewline
29 & 0.854130157300236 & 0.291739685399529 & 0.145869842699764 \tabularnewline
30 & 0.818723775648812 & 0.362552448702376 & 0.181276224351188 \tabularnewline
31 & 0.784461335444151 & 0.431077329111698 & 0.215538664555849 \tabularnewline
32 & 0.767194392649825 & 0.46561121470035 & 0.232805607350175 \tabularnewline
33 & 0.735922078705622 & 0.528155842588757 & 0.264077921294378 \tabularnewline
34 & 0.73000246762626 & 0.53999506474748 & 0.26999753237374 \tabularnewline
35 & 0.760093123776092 & 0.479813752447817 & 0.239906876223909 \tabularnewline
36 & 0.675853741146533 & 0.648292517706935 & 0.324146258853467 \tabularnewline
37 & 0.588578515058161 & 0.822842969883678 & 0.411421484941839 \tabularnewline
38 & 0.473494684126184 & 0.946989368252367 & 0.526505315873816 \tabularnewline
39 & 0.553191451186967 & 0.893617097626066 & 0.446808548813033 \tabularnewline
40 & 0.646821966975791 & 0.706356066048418 & 0.353178033024209 \tabularnewline
41 & 0.520872463986411 & 0.958255072027178 & 0.479127536013589 \tabularnewline
42 & 0.89492939118921 & 0.210141217621580 & 0.105070608810790 \tabularnewline
43 & 0.913996362646163 & 0.172007274707673 & 0.0860036373538365 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57428&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.98447911526464[/C][C]0.0310417694707174[/C][C]0.0155208847353587[/C][/ROW]
[ROW][C]18[/C][C]0.968436798177031[/C][C]0.0631264036459373[/C][C]0.0315632018229686[/C][/ROW]
[ROW][C]19[/C][C]0.97943742237151[/C][C]0.0411251552569789[/C][C]0.0205625776284895[/C][/ROW]
[ROW][C]20[/C][C]0.963642395011113[/C][C]0.072715209977775[/C][C]0.0363576049888875[/C][/ROW]
[ROW][C]21[/C][C]0.9556007764401[/C][C]0.088798447119798[/C][C]0.044399223559899[/C][/ROW]
[ROW][C]22[/C][C]0.962878854435964[/C][C]0.0742422911280714[/C][C]0.0371211455640357[/C][/ROW]
[ROW][C]23[/C][C]0.973835190909451[/C][C]0.0523296181810976[/C][C]0.0261648090905488[/C][/ROW]
[ROW][C]24[/C][C]0.959666541109701[/C][C]0.080666917780598[/C][C]0.040333458890299[/C][/ROW]
[ROW][C]25[/C][C]0.953061604122692[/C][C]0.0938767917546158[/C][C]0.0469383958773079[/C][/ROW]
[ROW][C]26[/C][C]0.924148315312925[/C][C]0.151703369374151[/C][C]0.0758516846870754[/C][/ROW]
[ROW][C]27[/C][C]0.890450684965556[/C][C]0.219098630068887[/C][C]0.109549315034444[/C][/ROW]
[ROW][C]28[/C][C]0.840238573247776[/C][C]0.319522853504448[/C][C]0.159761426752224[/C][/ROW]
[ROW][C]29[/C][C]0.854130157300236[/C][C]0.291739685399529[/C][C]0.145869842699764[/C][/ROW]
[ROW][C]30[/C][C]0.818723775648812[/C][C]0.362552448702376[/C][C]0.181276224351188[/C][/ROW]
[ROW][C]31[/C][C]0.784461335444151[/C][C]0.431077329111698[/C][C]0.215538664555849[/C][/ROW]
[ROW][C]32[/C][C]0.767194392649825[/C][C]0.46561121470035[/C][C]0.232805607350175[/C][/ROW]
[ROW][C]33[/C][C]0.735922078705622[/C][C]0.528155842588757[/C][C]0.264077921294378[/C][/ROW]
[ROW][C]34[/C][C]0.73000246762626[/C][C]0.53999506474748[/C][C]0.26999753237374[/C][/ROW]
[ROW][C]35[/C][C]0.760093123776092[/C][C]0.479813752447817[/C][C]0.239906876223909[/C][/ROW]
[ROW][C]36[/C][C]0.675853741146533[/C][C]0.648292517706935[/C][C]0.324146258853467[/C][/ROW]
[ROW][C]37[/C][C]0.588578515058161[/C][C]0.822842969883678[/C][C]0.411421484941839[/C][/ROW]
[ROW][C]38[/C][C]0.473494684126184[/C][C]0.946989368252367[/C][C]0.526505315873816[/C][/ROW]
[ROW][C]39[/C][C]0.553191451186967[/C][C]0.893617097626066[/C][C]0.446808548813033[/C][/ROW]
[ROW][C]40[/C][C]0.646821966975791[/C][C]0.706356066048418[/C][C]0.353178033024209[/C][/ROW]
[ROW][C]41[/C][C]0.520872463986411[/C][C]0.958255072027178[/C][C]0.479127536013589[/C][/ROW]
[ROW][C]42[/C][C]0.89492939118921[/C][C]0.210141217621580[/C][C]0.105070608810790[/C][/ROW]
[ROW][C]43[/C][C]0.913996362646163[/C][C]0.172007274707673[/C][C]0.0860036373538365[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57428&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.984479115264640.03104176947071740.0155208847353587
180.9684367981770310.06312640364593730.0315632018229686
190.979437422371510.04112515525697890.0205625776284895
200.9636423950111130.0727152099777750.0363576049888875
210.95560077644010.0887984471197980.044399223559899
220.9628788544359640.07424229112807140.0371211455640357
230.9738351909094510.05232961818109760.0261648090905488
240.9596665411097010.0806669177805980.040333458890299
250.9530616041226920.09387679175461580.0469383958773079
260.9241483153129250.1517033693741510.0758516846870754
270.8904506849655560.2190986300688870.109549315034444
280.8402385732477760.3195228535044480.159761426752224
290.8541301573002360.2917396853995290.145869842699764
300.8187237756488120.3625524487023760.181276224351188
310.7844613354441510.4310773291116980.215538664555849
320.7671943926498250.465611214700350.232805607350175
330.7359220787056220.5281558425887570.264077921294378
340.730002467626260.539995064747480.26999753237374
350.7600931237760920.4798137524478170.239906876223909
360.6758537411465330.6482925177069350.324146258853467
370.5885785150581610.8228429698836780.411421484941839
380.4734946841261840.9469893682523670.526505315873816
390.5531914511869670.8936170976260660.446808548813033
400.6468219669757910.7063560660484180.353178033024209
410.5208724639864110.9582550720271780.479127536013589
420.894929391189210.2101412176215800.105070608810790
430.9139963626461630.1720072747076730.0860036373538365







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57428&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 level20.0740740740740741NOK
10% type I error level90.333333333333333NOK



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