Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 21 Dec 2009 07:16:30 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/21/t1261405057qw9o2x7mp1sdv5y.htm/, Retrieved Tue, 07 May 2024 21:23:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70184, Retrieved Tue, 07 May 2024 21:23:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact153
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2008-12-23 13:24:38] [4410ab0ca24958cd2ed04d23e7a7b8e5]
-  M      [Multiple Regression] [] [2009-12-21 14:16:30] [ce16745b5fa1a53fd3d9c8db848c7076] [Current]
Feedback Forum

Post a new message
Dataseries X:
2350.44	0	1	0
2440.25	0	2	0
2408.64	0	3	0
2472.81	0	4	0
2407.6	0	5	0
2454.62	0	6	0
2448.05	0	7	0
2497.84	0	8	0
2645.64	0	9	0
2756.76	0	10	0
2849.27	0	11	0
2921.44	0	12	0
2981.85	0	13	0
3080.58	0	14	0
3106.22	0	15	0
3119.31	0	16	0
3061.26	0	17	0
3097.31	0	18	0
3161.69	0	19	0
3257.16	0	20	0
3277.01	0	21	0
3295.32	0	22	0
3363.99	0	23	0
3494.17	0	24	0
3667.03	0	25	0
3813.06	0	26	0
3917.96	0	27	0
3895.51	0	28	0
3801.06	0	29	0
3570.12	0	30	0
3701.61	0	31	0
3862.27	0	32	0
3970.1	0	33	0
4138.52	0	34	0
4199.75	0	35	0
4290.89	0	36	0
4443.91	0	37	0
4502.64	1	38	38
4356.98	1	39	39
4591.27	1	40	40
4696.96	1	41	41
4621.4	1	42	42
4562.84	1	43	43
4202.52	1	44	44
4296.49	1	45	45
4435.23	1	46	46
4105.18	1	47	47
4116.68	1	48	48
3844.49	1	49	49
3720.98	1	50	50
3674.4	1	51	51
3857.62	1	52	52
3801.06	1	53	53
3504.37	1	54	54
3032.6	1	55	55
3047.03	1	56	56
2962.34	1	57	57
2197.82	1	58	58
2014.45	1	59	59




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

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







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 2265.76895251738 + 6702.57359475699Dummy[t] + 56.2740308416929Trend[t] -160.319856371451Extradummy[t] + 15.5441499291209M1[t] -76.7917201666513M2[t] -87.5998084597628M3[t] + 14.7181032471253M4[t] -11.1439850459874M5[t] -107.3140733391M6[t] -167.666161632212M7[t] -167.806249925324M8[t] -103.000338218437M9[t] -160.732426511549M10[t] -211.080514804662M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  2265.76895251738 +  6702.57359475699Dummy[t] +  56.2740308416929Trend[t] -160.319856371451Extradummy[t] +  15.5441499291209M1[t] -76.7917201666513M2[t] -87.5998084597628M3[t] +  14.7181032471253M4[t] -11.1439850459874M5[t] -107.3140733391M6[t] -167.666161632212M7[t] -167.806249925324M8[t] -103.000338218437M9[t] -160.732426511549M10[t] -211.080514804662M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70184&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  2265.76895251738 +  6702.57359475699Dummy[t] +  56.2740308416929Trend[t] -160.319856371451Extradummy[t] +  15.5441499291209M1[t] -76.7917201666513M2[t] -87.5998084597628M3[t] +  14.7181032471253M4[t] -11.1439850459874M5[t] -107.3140733391M6[t] -167.666161632212M7[t] -167.806249925324M8[t] -103.000338218437M9[t] -160.732426511549M10[t] -211.080514804662M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70184&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70184&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
X[t] = + 2265.76895251738 + 6702.57359475699Dummy[t] + 56.2740308416929Trend[t] -160.319856371451Extradummy[t] + 15.5441499291209M1[t] -76.7917201666513M2[t] -87.5998084597628M3[t] + 14.7181032471253M4[t] -11.1439850459874M5[t] -107.3140733391M6[t] -167.666161632212M7[t] -167.806249925324M8[t] -103.000338218437M9[t] -160.732426511549M10[t] -211.080514804662M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2265.76895251738137.97435716.421700
Dummy6702.57359475699385.11139717.404200
Trend56.27403084169293.52424215.967700
Extradummy-160.3198563714518.380617-19.129800
M115.5441499291209150.0753950.10360.9179770.458988
M2-76.7917201666513152.300485-0.50420.6166280.308314
M3-87.5998084597628151.713518-0.57740.566610.283305
M414.7181032471253151.222830.09730.9229090.461454
M5-11.1439850459874150.829361-0.07390.9414370.470718
M6-107.3140733391150.533872-0.71290.4796780.239839
M7-167.666161632212150.336942-1.11530.2707890.135395
M8-167.806249925324150.238958-1.11690.2700870.135043
M9-103.000338218437150.240113-0.68560.496580.24829
M10-160.732426511549150.340406-1.06910.2908440.145422
M11-211.080514804662150.539638-1.40220.1678840.083942

\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) & 2265.76895251738 & 137.974357 & 16.4217 & 0 & 0 \tabularnewline
Dummy & 6702.57359475699 & 385.111397 & 17.4042 & 0 & 0 \tabularnewline
Trend & 56.2740308416929 & 3.524242 & 15.9677 & 0 & 0 \tabularnewline
Extradummy & -160.319856371451 & 8.380617 & -19.1298 & 0 & 0 \tabularnewline
M1 & 15.5441499291209 & 150.075395 & 0.1036 & 0.917977 & 0.458988 \tabularnewline
M2 & -76.7917201666513 & 152.300485 & -0.5042 & 0.616628 & 0.308314 \tabularnewline
M3 & -87.5998084597628 & 151.713518 & -0.5774 & 0.56661 & 0.283305 \tabularnewline
M4 & 14.7181032471253 & 151.22283 & 0.0973 & 0.922909 & 0.461454 \tabularnewline
M5 & -11.1439850459874 & 150.829361 & -0.0739 & 0.941437 & 0.470718 \tabularnewline
M6 & -107.3140733391 & 150.533872 & -0.7129 & 0.479678 & 0.239839 \tabularnewline
M7 & -167.666161632212 & 150.336942 & -1.1153 & 0.270789 & 0.135395 \tabularnewline
M8 & -167.806249925324 & 150.238958 & -1.1169 & 0.270087 & 0.135043 \tabularnewline
M9 & -103.000338218437 & 150.240113 & -0.6856 & 0.49658 & 0.24829 \tabularnewline
M10 & -160.732426511549 & 150.340406 & -1.0691 & 0.290844 & 0.145422 \tabularnewline
M11 & -211.080514804662 & 150.539638 & -1.4022 & 0.167884 & 0.083942 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70184&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]2265.76895251738[/C][C]137.974357[/C][C]16.4217[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]6702.57359475699[/C][C]385.111397[/C][C]17.4042[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Trend[/C][C]56.2740308416929[/C][C]3.524242[/C][C]15.9677[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Extradummy[/C][C]-160.319856371451[/C][C]8.380617[/C][C]-19.1298[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]15.5441499291209[/C][C]150.075395[/C][C]0.1036[/C][C]0.917977[/C][C]0.458988[/C][/ROW]
[ROW][C]M2[/C][C]-76.7917201666513[/C][C]152.300485[/C][C]-0.5042[/C][C]0.616628[/C][C]0.308314[/C][/ROW]
[ROW][C]M3[/C][C]-87.5998084597628[/C][C]151.713518[/C][C]-0.5774[/C][C]0.56661[/C][C]0.283305[/C][/ROW]
[ROW][C]M4[/C][C]14.7181032471253[/C][C]151.22283[/C][C]0.0973[/C][C]0.922909[/C][C]0.461454[/C][/ROW]
[ROW][C]M5[/C][C]-11.1439850459874[/C][C]150.829361[/C][C]-0.0739[/C][C]0.941437[/C][C]0.470718[/C][/ROW]
[ROW][C]M6[/C][C]-107.3140733391[/C][C]150.533872[/C][C]-0.7129[/C][C]0.479678[/C][C]0.239839[/C][/ROW]
[ROW][C]M7[/C][C]-167.666161632212[/C][C]150.336942[/C][C]-1.1153[/C][C]0.270789[/C][C]0.135395[/C][/ROW]
[ROW][C]M8[/C][C]-167.806249925324[/C][C]150.238958[/C][C]-1.1169[/C][C]0.270087[/C][C]0.135043[/C][/ROW]
[ROW][C]M9[/C][C]-103.000338218437[/C][C]150.240113[/C][C]-0.6856[/C][C]0.49658[/C][C]0.24829[/C][/ROW]
[ROW][C]M10[/C][C]-160.732426511549[/C][C]150.340406[/C][C]-1.0691[/C][C]0.290844[/C][C]0.145422[/C][/ROW]
[ROW][C]M11[/C][C]-211.080514804662[/C][C]150.539638[/C][C]-1.4022[/C][C]0.167884[/C][C]0.083942[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70184&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70184&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)2265.76895251738137.97435716.421700
Dummy6702.57359475699385.11139717.404200
Trend56.27403084169293.52424215.967700
Extradummy-160.3198563714518.380617-19.129800
M115.5441499291209150.0753950.10360.9179770.458988
M2-76.7917201666513152.300485-0.50420.6166280.308314
M3-87.5998084597628151.713518-0.57740.566610.283305
M414.7181032471253151.222830.09730.9229090.461454
M5-11.1439850459874150.829361-0.07390.9414370.470718
M6-107.3140733391150.533872-0.71290.4796780.239839
M7-167.666161632212150.336942-1.11530.2707890.135395
M8-167.806249925324150.238958-1.11690.2700870.135043
M9-103.000338218437150.240113-0.68560.496580.24829
M10-160.732426511549150.340406-1.06910.2908440.145422
M11-211.080514804662150.539638-1.40220.1678840.083942







Multiple Linear Regression - Regression Statistics
Multiple R0.96331215525516
R-squared0.927970308462342
Adjusted R-squared0.905051770245815
F-TEST (value)40.4899431061072
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation222.805240997540
Sum Squared Residuals2184255.71830277

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.96331215525516 \tabularnewline
R-squared & 0.927970308462342 \tabularnewline
Adjusted R-squared & 0.905051770245815 \tabularnewline
F-TEST (value) & 40.4899431061072 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 222.805240997540 \tabularnewline
Sum Squared Residuals & 2184255.71830277 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70184&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.96331215525516[/C][/ROW]
[ROW][C]R-squared[/C][C]0.927970308462342[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.905051770245815[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]40.4899431061072[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]222.805240997540[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2184255.71830277[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70184&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70184&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.96331215525516
R-squared0.927970308462342
Adjusted R-squared0.905051770245815
F-TEST (value)40.4899431061072
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation222.805240997540
Sum Squared Residuals2184255.71830277







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12350.442337.5871332882012.852866711805
22440.252301.52529403412138.724705965879
32408.642346.9912365827061.6487634173034
42472.812505.58317913128-32.7731791312767
52407.62535.99512167986-128.395121679859
62454.622496.09906422844-41.4790642284385
72448.052492.02100677702-43.971006777019
82497.842548.1549493256-50.3149493255997
92645.642669.23489187418-23.5948918741802
102756.762667.7768344227688.9831655772394
112849.272673.70277697134175.567223028659
122921.442941.05732261770-19.6173226176957
132981.853012.87550338851-31.0255033885097
143080.582976.81366413443103.766335865570
153106.223022.2796066830183.9403933169882
163119.313180.87154923159-61.5615492315926
173061.263211.28349178017-150.023491780172
183097.313171.38743432875-74.0774343287531
193161.693167.30937687733-5.61937687733370
203257.163223.4433194259133.7166805740856
213277.013344.52326197449-67.5132619744944
223295.323343.06520452307-47.745204523075
233363.993348.9911470716614.9988529283441
243494.173616.34569271801-122.17569271801
253667.033688.16387348882-21.1338734888238
263813.063652.10203423474160.957965765255
273917.963697.56797678333220.392023216674
283895.513856.1599193319139.3500806680933
293801.063886.57186188049-85.5118618804872
303570.123846.67580442907-276.555804429068
313701.613842.59774697765-140.987746977648
323862.273898.73168952623-36.4616895262287
333970.14019.81163207481-49.7116320748092
344138.524018.35357462339120.166425376611
354199.754024.27951717197175.47048282803
364290.894291.63406281832-0.744062818324361
374443.914363.4522435891480.4577564108615
384502.644937.8094569769-435.169456976902
394356.984822.95554315403-465.975543154033
404591.274821.22762933116-229.957629331162
414696.964691.319715508295.64028449170894
424621.44491.10380168542130.296198314579
434562.844326.70588786255236.13411213745
444202.524222.51997403968-19.9999740396787
454296.494183.28006021681113.209939783192
464435.234021.50214639394413.727853606062
474105.183867.10823257107238.071767428933
484116.683974.14292184597142.537078154030
493844.493885.64124624533-41.1512462453329
503720.983689.259550619831.7204493801979
513674.43574.4056367969399.9943632030678
523857.623572.67772297406284.942277025938
533801.063442.76980915119358.290190848809
543504.373242.55389532832261.81610467168
553032.63078.15598150545-45.5559815054496
563047.032973.9700676825873.0599323174215
572962.342934.7301538597127.6098461402922
582197.822772.95224003684-575.132240036837
592014.452618.55832621397-604.108326213966

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2350.44 & 2337.58713328820 & 12.852866711805 \tabularnewline
2 & 2440.25 & 2301.52529403412 & 138.724705965879 \tabularnewline
3 & 2408.64 & 2346.99123658270 & 61.6487634173034 \tabularnewline
4 & 2472.81 & 2505.58317913128 & -32.7731791312767 \tabularnewline
5 & 2407.6 & 2535.99512167986 & -128.395121679859 \tabularnewline
6 & 2454.62 & 2496.09906422844 & -41.4790642284385 \tabularnewline
7 & 2448.05 & 2492.02100677702 & -43.971006777019 \tabularnewline
8 & 2497.84 & 2548.1549493256 & -50.3149493255997 \tabularnewline
9 & 2645.64 & 2669.23489187418 & -23.5948918741802 \tabularnewline
10 & 2756.76 & 2667.77683442276 & 88.9831655772394 \tabularnewline
11 & 2849.27 & 2673.70277697134 & 175.567223028659 \tabularnewline
12 & 2921.44 & 2941.05732261770 & -19.6173226176957 \tabularnewline
13 & 2981.85 & 3012.87550338851 & -31.0255033885097 \tabularnewline
14 & 3080.58 & 2976.81366413443 & 103.766335865570 \tabularnewline
15 & 3106.22 & 3022.27960668301 & 83.9403933169882 \tabularnewline
16 & 3119.31 & 3180.87154923159 & -61.5615492315926 \tabularnewline
17 & 3061.26 & 3211.28349178017 & -150.023491780172 \tabularnewline
18 & 3097.31 & 3171.38743432875 & -74.0774343287531 \tabularnewline
19 & 3161.69 & 3167.30937687733 & -5.61937687733370 \tabularnewline
20 & 3257.16 & 3223.44331942591 & 33.7166805740856 \tabularnewline
21 & 3277.01 & 3344.52326197449 & -67.5132619744944 \tabularnewline
22 & 3295.32 & 3343.06520452307 & -47.745204523075 \tabularnewline
23 & 3363.99 & 3348.99114707166 & 14.9988529283441 \tabularnewline
24 & 3494.17 & 3616.34569271801 & -122.17569271801 \tabularnewline
25 & 3667.03 & 3688.16387348882 & -21.1338734888238 \tabularnewline
26 & 3813.06 & 3652.10203423474 & 160.957965765255 \tabularnewline
27 & 3917.96 & 3697.56797678333 & 220.392023216674 \tabularnewline
28 & 3895.51 & 3856.15991933191 & 39.3500806680933 \tabularnewline
29 & 3801.06 & 3886.57186188049 & -85.5118618804872 \tabularnewline
30 & 3570.12 & 3846.67580442907 & -276.555804429068 \tabularnewline
31 & 3701.61 & 3842.59774697765 & -140.987746977648 \tabularnewline
32 & 3862.27 & 3898.73168952623 & -36.4616895262287 \tabularnewline
33 & 3970.1 & 4019.81163207481 & -49.7116320748092 \tabularnewline
34 & 4138.52 & 4018.35357462339 & 120.166425376611 \tabularnewline
35 & 4199.75 & 4024.27951717197 & 175.47048282803 \tabularnewline
36 & 4290.89 & 4291.63406281832 & -0.744062818324361 \tabularnewline
37 & 4443.91 & 4363.45224358914 & 80.4577564108615 \tabularnewline
38 & 4502.64 & 4937.8094569769 & -435.169456976902 \tabularnewline
39 & 4356.98 & 4822.95554315403 & -465.975543154033 \tabularnewline
40 & 4591.27 & 4821.22762933116 & -229.957629331162 \tabularnewline
41 & 4696.96 & 4691.31971550829 & 5.64028449170894 \tabularnewline
42 & 4621.4 & 4491.10380168542 & 130.296198314579 \tabularnewline
43 & 4562.84 & 4326.70588786255 & 236.13411213745 \tabularnewline
44 & 4202.52 & 4222.51997403968 & -19.9999740396787 \tabularnewline
45 & 4296.49 & 4183.28006021681 & 113.209939783192 \tabularnewline
46 & 4435.23 & 4021.50214639394 & 413.727853606062 \tabularnewline
47 & 4105.18 & 3867.10823257107 & 238.071767428933 \tabularnewline
48 & 4116.68 & 3974.14292184597 & 142.537078154030 \tabularnewline
49 & 3844.49 & 3885.64124624533 & -41.1512462453329 \tabularnewline
50 & 3720.98 & 3689.2595506198 & 31.7204493801979 \tabularnewline
51 & 3674.4 & 3574.40563679693 & 99.9943632030678 \tabularnewline
52 & 3857.62 & 3572.67772297406 & 284.942277025938 \tabularnewline
53 & 3801.06 & 3442.76980915119 & 358.290190848809 \tabularnewline
54 & 3504.37 & 3242.55389532832 & 261.81610467168 \tabularnewline
55 & 3032.6 & 3078.15598150545 & -45.5559815054496 \tabularnewline
56 & 3047.03 & 2973.97006768258 & 73.0599323174215 \tabularnewline
57 & 2962.34 & 2934.73015385971 & 27.6098461402922 \tabularnewline
58 & 2197.82 & 2772.95224003684 & -575.132240036837 \tabularnewline
59 & 2014.45 & 2618.55832621397 & -604.108326213966 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70184&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]2350.44[/C][C]2337.58713328820[/C][C]12.852866711805[/C][/ROW]
[ROW][C]2[/C][C]2440.25[/C][C]2301.52529403412[/C][C]138.724705965879[/C][/ROW]
[ROW][C]3[/C][C]2408.64[/C][C]2346.99123658270[/C][C]61.6487634173034[/C][/ROW]
[ROW][C]4[/C][C]2472.81[/C][C]2505.58317913128[/C][C]-32.7731791312767[/C][/ROW]
[ROW][C]5[/C][C]2407.6[/C][C]2535.99512167986[/C][C]-128.395121679859[/C][/ROW]
[ROW][C]6[/C][C]2454.62[/C][C]2496.09906422844[/C][C]-41.4790642284385[/C][/ROW]
[ROW][C]7[/C][C]2448.05[/C][C]2492.02100677702[/C][C]-43.971006777019[/C][/ROW]
[ROW][C]8[/C][C]2497.84[/C][C]2548.1549493256[/C][C]-50.3149493255997[/C][/ROW]
[ROW][C]9[/C][C]2645.64[/C][C]2669.23489187418[/C][C]-23.5948918741802[/C][/ROW]
[ROW][C]10[/C][C]2756.76[/C][C]2667.77683442276[/C][C]88.9831655772394[/C][/ROW]
[ROW][C]11[/C][C]2849.27[/C][C]2673.70277697134[/C][C]175.567223028659[/C][/ROW]
[ROW][C]12[/C][C]2921.44[/C][C]2941.05732261770[/C][C]-19.6173226176957[/C][/ROW]
[ROW][C]13[/C][C]2981.85[/C][C]3012.87550338851[/C][C]-31.0255033885097[/C][/ROW]
[ROW][C]14[/C][C]3080.58[/C][C]2976.81366413443[/C][C]103.766335865570[/C][/ROW]
[ROW][C]15[/C][C]3106.22[/C][C]3022.27960668301[/C][C]83.9403933169882[/C][/ROW]
[ROW][C]16[/C][C]3119.31[/C][C]3180.87154923159[/C][C]-61.5615492315926[/C][/ROW]
[ROW][C]17[/C][C]3061.26[/C][C]3211.28349178017[/C][C]-150.023491780172[/C][/ROW]
[ROW][C]18[/C][C]3097.31[/C][C]3171.38743432875[/C][C]-74.0774343287531[/C][/ROW]
[ROW][C]19[/C][C]3161.69[/C][C]3167.30937687733[/C][C]-5.61937687733370[/C][/ROW]
[ROW][C]20[/C][C]3257.16[/C][C]3223.44331942591[/C][C]33.7166805740856[/C][/ROW]
[ROW][C]21[/C][C]3277.01[/C][C]3344.52326197449[/C][C]-67.5132619744944[/C][/ROW]
[ROW][C]22[/C][C]3295.32[/C][C]3343.06520452307[/C][C]-47.745204523075[/C][/ROW]
[ROW][C]23[/C][C]3363.99[/C][C]3348.99114707166[/C][C]14.9988529283441[/C][/ROW]
[ROW][C]24[/C][C]3494.17[/C][C]3616.34569271801[/C][C]-122.17569271801[/C][/ROW]
[ROW][C]25[/C][C]3667.03[/C][C]3688.16387348882[/C][C]-21.1338734888238[/C][/ROW]
[ROW][C]26[/C][C]3813.06[/C][C]3652.10203423474[/C][C]160.957965765255[/C][/ROW]
[ROW][C]27[/C][C]3917.96[/C][C]3697.56797678333[/C][C]220.392023216674[/C][/ROW]
[ROW][C]28[/C][C]3895.51[/C][C]3856.15991933191[/C][C]39.3500806680933[/C][/ROW]
[ROW][C]29[/C][C]3801.06[/C][C]3886.57186188049[/C][C]-85.5118618804872[/C][/ROW]
[ROW][C]30[/C][C]3570.12[/C][C]3846.67580442907[/C][C]-276.555804429068[/C][/ROW]
[ROW][C]31[/C][C]3701.61[/C][C]3842.59774697765[/C][C]-140.987746977648[/C][/ROW]
[ROW][C]32[/C][C]3862.27[/C][C]3898.73168952623[/C][C]-36.4616895262287[/C][/ROW]
[ROW][C]33[/C][C]3970.1[/C][C]4019.81163207481[/C][C]-49.7116320748092[/C][/ROW]
[ROW][C]34[/C][C]4138.52[/C][C]4018.35357462339[/C][C]120.166425376611[/C][/ROW]
[ROW][C]35[/C][C]4199.75[/C][C]4024.27951717197[/C][C]175.47048282803[/C][/ROW]
[ROW][C]36[/C][C]4290.89[/C][C]4291.63406281832[/C][C]-0.744062818324361[/C][/ROW]
[ROW][C]37[/C][C]4443.91[/C][C]4363.45224358914[/C][C]80.4577564108615[/C][/ROW]
[ROW][C]38[/C][C]4502.64[/C][C]4937.8094569769[/C][C]-435.169456976902[/C][/ROW]
[ROW][C]39[/C][C]4356.98[/C][C]4822.95554315403[/C][C]-465.975543154033[/C][/ROW]
[ROW][C]40[/C][C]4591.27[/C][C]4821.22762933116[/C][C]-229.957629331162[/C][/ROW]
[ROW][C]41[/C][C]4696.96[/C][C]4691.31971550829[/C][C]5.64028449170894[/C][/ROW]
[ROW][C]42[/C][C]4621.4[/C][C]4491.10380168542[/C][C]130.296198314579[/C][/ROW]
[ROW][C]43[/C][C]4562.84[/C][C]4326.70588786255[/C][C]236.13411213745[/C][/ROW]
[ROW][C]44[/C][C]4202.52[/C][C]4222.51997403968[/C][C]-19.9999740396787[/C][/ROW]
[ROW][C]45[/C][C]4296.49[/C][C]4183.28006021681[/C][C]113.209939783192[/C][/ROW]
[ROW][C]46[/C][C]4435.23[/C][C]4021.50214639394[/C][C]413.727853606062[/C][/ROW]
[ROW][C]47[/C][C]4105.18[/C][C]3867.10823257107[/C][C]238.071767428933[/C][/ROW]
[ROW][C]48[/C][C]4116.68[/C][C]3974.14292184597[/C][C]142.537078154030[/C][/ROW]
[ROW][C]49[/C][C]3844.49[/C][C]3885.64124624533[/C][C]-41.1512462453329[/C][/ROW]
[ROW][C]50[/C][C]3720.98[/C][C]3689.2595506198[/C][C]31.7204493801979[/C][/ROW]
[ROW][C]51[/C][C]3674.4[/C][C]3574.40563679693[/C][C]99.9943632030678[/C][/ROW]
[ROW][C]52[/C][C]3857.62[/C][C]3572.67772297406[/C][C]284.942277025938[/C][/ROW]
[ROW][C]53[/C][C]3801.06[/C][C]3442.76980915119[/C][C]358.290190848809[/C][/ROW]
[ROW][C]54[/C][C]3504.37[/C][C]3242.55389532832[/C][C]261.81610467168[/C][/ROW]
[ROW][C]55[/C][C]3032.6[/C][C]3078.15598150545[/C][C]-45.5559815054496[/C][/ROW]
[ROW][C]56[/C][C]3047.03[/C][C]2973.97006768258[/C][C]73.0599323174215[/C][/ROW]
[ROW][C]57[/C][C]2962.34[/C][C]2934.73015385971[/C][C]27.6098461402922[/C][/ROW]
[ROW][C]58[/C][C]2197.82[/C][C]2772.95224003684[/C][C]-575.132240036837[/C][/ROW]
[ROW][C]59[/C][C]2014.45[/C][C]2618.55832621397[/C][C]-604.108326213966[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70184&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70184&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
12350.442337.5871332882012.852866711805
22440.252301.52529403412138.724705965879
32408.642346.9912365827061.6487634173034
42472.812505.58317913128-32.7731791312767
52407.62535.99512167986-128.395121679859
62454.622496.09906422844-41.4790642284385
72448.052492.02100677702-43.971006777019
82497.842548.1549493256-50.3149493255997
92645.642669.23489187418-23.5948918741802
102756.762667.7768344227688.9831655772394
112849.272673.70277697134175.567223028659
122921.442941.05732261770-19.6173226176957
132981.853012.87550338851-31.0255033885097
143080.582976.81366413443103.766335865570
153106.223022.2796066830183.9403933169882
163119.313180.87154923159-61.5615492315926
173061.263211.28349178017-150.023491780172
183097.313171.38743432875-74.0774343287531
193161.693167.30937687733-5.61937687733370
203257.163223.4433194259133.7166805740856
213277.013344.52326197449-67.5132619744944
223295.323343.06520452307-47.745204523075
233363.993348.9911470716614.9988529283441
243494.173616.34569271801-122.17569271801
253667.033688.16387348882-21.1338734888238
263813.063652.10203423474160.957965765255
273917.963697.56797678333220.392023216674
283895.513856.1599193319139.3500806680933
293801.063886.57186188049-85.5118618804872
303570.123846.67580442907-276.555804429068
313701.613842.59774697765-140.987746977648
323862.273898.73168952623-36.4616895262287
333970.14019.81163207481-49.7116320748092
344138.524018.35357462339120.166425376611
354199.754024.27951717197175.47048282803
364290.894291.63406281832-0.744062818324361
374443.914363.4522435891480.4577564108615
384502.644937.8094569769-435.169456976902
394356.984822.95554315403-465.975543154033
404591.274821.22762933116-229.957629331162
414696.964691.319715508295.64028449170894
424621.44491.10380168542130.296198314579
434562.844326.70588786255236.13411213745
444202.524222.51997403968-19.9999740396787
454296.494183.28006021681113.209939783192
464435.234021.50214639394413.727853606062
474105.183867.10823257107238.071767428933
484116.683974.14292184597142.537078154030
493844.493885.64124624533-41.1512462453329
503720.983689.259550619831.7204493801979
513674.43574.4056367969399.9943632030678
523857.623572.67772297406284.942277025938
533801.063442.76980915119358.290190848809
543504.373242.55389532832261.81610467168
553032.63078.15598150545-45.5559815054496
563047.032973.9700676825873.0599323174215
572962.342934.7301538597127.6098461402922
582197.822772.95224003684-575.132240036837
592014.452618.55832621397-604.108326213966







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.0006663558959275170.001332711791855030.999333644104073
190.0001931462104956160.0003862924209912310.999806853789504
200.0001377923575399750.0002755847150799510.99986220764246
212.10584594415713e-054.21169188831426e-050.999978941540558
222.24137812100874e-054.48275624201749e-050.99997758621879
231.84343245107032e-053.68686490214063e-050.99998156567549
244.5195309058326e-069.0390618116652e-060.999995480469094
258.6537854185872e-071.73075708371744e-060.999999134621458
263.60956966126119e-077.21913932252237e-070.999999639043034
271.63215390134351e-063.26430780268702e-060.999998367846099
287.69669899563964e-071.53933979912793e-060.9999992303301
291.80100132401275e-073.60200264802549e-070.999999819899868
307.38530195790277e-071.47706039158055e-060.999999261469804
312.73111936025378e-075.46223872050757e-070.999999726888064
325.68598719859657e-081.13719743971931e-070.999999943140128
331.48086595428652e-082.96173190857304e-080.99999998519134
346.10595251552454e-091.22119050310491e-080.999999993894047
352.33602538147325e-094.67205076294651e-090.999999997663975
365.34928924784169e-101.06985784956834e-090.99999999946507
371.40124018066601e-102.80248036133202e-100.999999999859876
385.43811403237742e-111.08762280647548e-100.999999999945619
395.90718616341904e-111.18143723268381e-100.999999999940928
407.27372675911688e-101.45474535182338e-090.999999999272627
415.09055983828414e-091.01811196765683e-080.99999999490944

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.000666355895927517 & 0.00133271179185503 & 0.999333644104073 \tabularnewline
19 & 0.000193146210495616 & 0.000386292420991231 & 0.999806853789504 \tabularnewline
20 & 0.000137792357539975 & 0.000275584715079951 & 0.99986220764246 \tabularnewline
21 & 2.10584594415713e-05 & 4.21169188831426e-05 & 0.999978941540558 \tabularnewline
22 & 2.24137812100874e-05 & 4.48275624201749e-05 & 0.99997758621879 \tabularnewline
23 & 1.84343245107032e-05 & 3.68686490214063e-05 & 0.99998156567549 \tabularnewline
24 & 4.5195309058326e-06 & 9.0390618116652e-06 & 0.999995480469094 \tabularnewline
25 & 8.6537854185872e-07 & 1.73075708371744e-06 & 0.999999134621458 \tabularnewline
26 & 3.60956966126119e-07 & 7.21913932252237e-07 & 0.999999639043034 \tabularnewline
27 & 1.63215390134351e-06 & 3.26430780268702e-06 & 0.999998367846099 \tabularnewline
28 & 7.69669899563964e-07 & 1.53933979912793e-06 & 0.9999992303301 \tabularnewline
29 & 1.80100132401275e-07 & 3.60200264802549e-07 & 0.999999819899868 \tabularnewline
30 & 7.38530195790277e-07 & 1.47706039158055e-06 & 0.999999261469804 \tabularnewline
31 & 2.73111936025378e-07 & 5.46223872050757e-07 & 0.999999726888064 \tabularnewline
32 & 5.68598719859657e-08 & 1.13719743971931e-07 & 0.999999943140128 \tabularnewline
33 & 1.48086595428652e-08 & 2.96173190857304e-08 & 0.99999998519134 \tabularnewline
34 & 6.10595251552454e-09 & 1.22119050310491e-08 & 0.999999993894047 \tabularnewline
35 & 2.33602538147325e-09 & 4.67205076294651e-09 & 0.999999997663975 \tabularnewline
36 & 5.34928924784169e-10 & 1.06985784956834e-09 & 0.99999999946507 \tabularnewline
37 & 1.40124018066601e-10 & 2.80248036133202e-10 & 0.999999999859876 \tabularnewline
38 & 5.43811403237742e-11 & 1.08762280647548e-10 & 0.999999999945619 \tabularnewline
39 & 5.90718616341904e-11 & 1.18143723268381e-10 & 0.999999999940928 \tabularnewline
40 & 7.27372675911688e-10 & 1.45474535182338e-09 & 0.999999999272627 \tabularnewline
41 & 5.09055983828414e-09 & 1.01811196765683e-08 & 0.99999999490944 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70184&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]18[/C][C]0.000666355895927517[/C][C]0.00133271179185503[/C][C]0.999333644104073[/C][/ROW]
[ROW][C]19[/C][C]0.000193146210495616[/C][C]0.000386292420991231[/C][C]0.999806853789504[/C][/ROW]
[ROW][C]20[/C][C]0.000137792357539975[/C][C]0.000275584715079951[/C][C]0.99986220764246[/C][/ROW]
[ROW][C]21[/C][C]2.10584594415713e-05[/C][C]4.21169188831426e-05[/C][C]0.999978941540558[/C][/ROW]
[ROW][C]22[/C][C]2.24137812100874e-05[/C][C]4.48275624201749e-05[/C][C]0.99997758621879[/C][/ROW]
[ROW][C]23[/C][C]1.84343245107032e-05[/C][C]3.68686490214063e-05[/C][C]0.99998156567549[/C][/ROW]
[ROW][C]24[/C][C]4.5195309058326e-06[/C][C]9.0390618116652e-06[/C][C]0.999995480469094[/C][/ROW]
[ROW][C]25[/C][C]8.6537854185872e-07[/C][C]1.73075708371744e-06[/C][C]0.999999134621458[/C][/ROW]
[ROW][C]26[/C][C]3.60956966126119e-07[/C][C]7.21913932252237e-07[/C][C]0.999999639043034[/C][/ROW]
[ROW][C]27[/C][C]1.63215390134351e-06[/C][C]3.26430780268702e-06[/C][C]0.999998367846099[/C][/ROW]
[ROW][C]28[/C][C]7.69669899563964e-07[/C][C]1.53933979912793e-06[/C][C]0.9999992303301[/C][/ROW]
[ROW][C]29[/C][C]1.80100132401275e-07[/C][C]3.60200264802549e-07[/C][C]0.999999819899868[/C][/ROW]
[ROW][C]30[/C][C]7.38530195790277e-07[/C][C]1.47706039158055e-06[/C][C]0.999999261469804[/C][/ROW]
[ROW][C]31[/C][C]2.73111936025378e-07[/C][C]5.46223872050757e-07[/C][C]0.999999726888064[/C][/ROW]
[ROW][C]32[/C][C]5.68598719859657e-08[/C][C]1.13719743971931e-07[/C][C]0.999999943140128[/C][/ROW]
[ROW][C]33[/C][C]1.48086595428652e-08[/C][C]2.96173190857304e-08[/C][C]0.99999998519134[/C][/ROW]
[ROW][C]34[/C][C]6.10595251552454e-09[/C][C]1.22119050310491e-08[/C][C]0.999999993894047[/C][/ROW]
[ROW][C]35[/C][C]2.33602538147325e-09[/C][C]4.67205076294651e-09[/C][C]0.999999997663975[/C][/ROW]
[ROW][C]36[/C][C]5.34928924784169e-10[/C][C]1.06985784956834e-09[/C][C]0.99999999946507[/C][/ROW]
[ROW][C]37[/C][C]1.40124018066601e-10[/C][C]2.80248036133202e-10[/C][C]0.999999999859876[/C][/ROW]
[ROW][C]38[/C][C]5.43811403237742e-11[/C][C]1.08762280647548e-10[/C][C]0.999999999945619[/C][/ROW]
[ROW][C]39[/C][C]5.90718616341904e-11[/C][C]1.18143723268381e-10[/C][C]0.999999999940928[/C][/ROW]
[ROW][C]40[/C][C]7.27372675911688e-10[/C][C]1.45474535182338e-09[/C][C]0.999999999272627[/C][/ROW]
[ROW][C]41[/C][C]5.09055983828414e-09[/C][C]1.01811196765683e-08[/C][C]0.99999999490944[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70184&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70184&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
180.0006663558959275170.001332711791855030.999333644104073
190.0001931462104956160.0003862924209912310.999806853789504
200.0001377923575399750.0002755847150799510.99986220764246
212.10584594415713e-054.21169188831426e-050.999978941540558
222.24137812100874e-054.48275624201749e-050.99997758621879
231.84343245107032e-053.68686490214063e-050.99998156567549
244.5195309058326e-069.0390618116652e-060.999995480469094
258.6537854185872e-071.73075708371744e-060.999999134621458
263.60956966126119e-077.21913932252237e-070.999999639043034
271.63215390134351e-063.26430780268702e-060.999998367846099
287.69669899563964e-071.53933979912793e-060.9999992303301
291.80100132401275e-073.60200264802549e-070.999999819899868
307.38530195790277e-071.47706039158055e-060.999999261469804
312.73111936025378e-075.46223872050757e-070.999999726888064
325.68598719859657e-081.13719743971931e-070.999999943140128
331.48086595428652e-082.96173190857304e-080.99999998519134
346.10595251552454e-091.22119050310491e-080.999999993894047
352.33602538147325e-094.67205076294651e-090.999999997663975
365.34928924784169e-101.06985784956834e-090.99999999946507
371.40124018066601e-102.80248036133202e-100.999999999859876
385.43811403237742e-111.08762280647548e-100.999999999945619
395.90718616341904e-111.18143723268381e-100.999999999940928
407.27372675911688e-101.45474535182338e-090.999999999272627
415.09055983828414e-091.01811196765683e-080.99999999490944







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level241NOK
5% type I error level241NOK
10% type I error level241NOK

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

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



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