Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 28 Nov 2010 16:10:50 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Nov/28/t12909606340lxvm6xc2htor3x.htm/, Retrieved Thu, 02 May 2024 15:13:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=102635, Retrieved Thu, 02 May 2024 15:13:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
- R PD    [Multiple Regression] [Aantal reizigers ...] [2010-11-26 01:03:33] [97ad38b1c3b35a5feca8b85f7bc7b3ff]
-    D      [Multiple Regression] [Aantal reizigers ...] [2010-11-26 01:44:20] [97ad38b1c3b35a5feca8b85f7bc7b3ff]
-    D        [Multiple Regression] [Aantal reizigers ...] [2010-11-26 01:59:36] [97ad38b1c3b35a5feca8b85f7bc7b3ff]
-   PD            [Multiple Regression] [model 2] [2010-11-28 16:10:50] [7b4029fa8534fd52dfa7d68267386cff] [Current]
-   PD              [Multiple Regression] [] [2010-11-30 10:08:34] [ed939ef6f97e5f2afb6796311d9e7a5f]
Feedback Forum

Post a new message
Dataseries X:
53.470	62.653	65.566	56.493	62.027
59.600	53.470	62.653	65.566	56.493
42.542	59.600	53.470	62.653	65.566
42.018	42.542	59.600	53.470	62.653
44.038	42.018	42.542	59.600	53.470
44.988	44.038	42.018	42.542	59.600
43.309	44.988	44.038	42.018	42.542
26.843	43.309	44.988	44.038	42.018
69.770	26.843	43.309	44.988	44.038
64.886	69.770	26.843	43.309	44.988
79.354	64.886	69.770	26.843	43.309
63.025	79.354	64.886	69.770	26.843
54.003	63.025	79.354	64.886	69.770
55.926	54.003	63.025	79.354	64.886
45.629	55.926	54.003	63.025	79.354
40.361	45.629	55.926	54.003	63.025
43.039	40.361	45.629	55.926	54.003
44.570	43.039	40.361	45.629	55.926
43.269	44.570	43.039	40.361	45.629
25.563	43.269	44.570	43.039	40.361
68.707	25.563	43.269	44.570	43.039
60.223	68.707	25.563	43.269	44.570
74.283	60.223	68.707	25.563	43.269
61.232	74.283	60.223	68.707	25.563
61.531	61.232	74.283	60.223	68.707
65.305	61.531	61.232	74.283	60.223
51.699	65.305	61.531	61.232	74.283
44.599	51.699	65.305	61.531	61.232
35.221	44.599	51.699	65.305	61.531
55.066	35.221	44.599	51.699	65.305
45.335	55.066	35.221	44.599	51.699
28.702	45.335	55.066	35.221	44.599
69.517	28.702	45.335	55.066	35.221
69.240	69.517	28.702	45.335	55.066
71.525	69.240	69.517	28.702	45.335
77.740	71.525	69.240	69.517	28.702
62.107	77.740	71.525	69.240	69.517
65.450	62.107	77.740	71.525	69.240
51.493	65.450	62.107	77.740	71.525
43.067	51.493	65.450	62.107	77.740
49.172	43.067	51.493	65.450	62.107
54.483	49.172	43.067	51.493	65.450
38.158	54.483	49.172	43.067	51.493
27.898	38.158	54.483	49.172	43.067
58.648	27.898	38.158	54.483	49.172
56.000	58.648	27.898	38.158	54.483
62.381	56.000	58.648	27.898	38.158
59.849	62.381	56.000	58.648	27.898
48.345	59.849	62.381	56.000	58.648
55.376	48.345	59.849	62.381	56.000
45.400	55.376	48.345	59.849	62.381
38.389	45.400	55.376	48.345	59.849
44.098	38.389	45.400	55.376	48.345
48.290	44.098	38.389	45.400	55.376
41.267	48.290	44.098	38.389	45.400
31.238	41.267	48.290	44.098	38.389




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ 72.249.76.132

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102635&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Yt[t] = + 22.6312382261078 + 0.196506125470823Yt_1[t] + 0.424055921103169Yt_2[t] + 0.0585369260350396Yt_3[t] -0.0637881636311812Yt_4[t] -8.84011801809233M1[t] -1.02335139651173M2[t] -10.12932203986M3[t] -14.9652615598999M4[t] -7.75591787526218M5[t] + 1.77509448248112M6[t] -7.78890250187808M7[t] -23.7349262723345M8[t] + 20.4649326275848M9[t] + 15.9869643501035M10[t] + 9.80486419820637M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Yt[t] =  +  22.6312382261078 +  0.196506125470823Yt_1[t] +  0.424055921103169Yt_2[t] +  0.0585369260350396Yt_3[t] -0.0637881636311812Yt_4[t] -8.84011801809233M1[t] -1.02335139651173M2[t] -10.12932203986M3[t] -14.9652615598999M4[t] -7.75591787526218M5[t] +  1.77509448248112M6[t] -7.78890250187808M7[t] -23.7349262723345M8[t] +  20.4649326275848M9[t] +  15.9869643501035M10[t] +  9.80486419820637M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102635&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Yt[t] =  +  22.6312382261078 +  0.196506125470823Yt_1[t] +  0.424055921103169Yt_2[t] +  0.0585369260350396Yt_3[t] -0.0637881636311812Yt_4[t] -8.84011801809233M1[t] -1.02335139651173M2[t] -10.12932203986M3[t] -14.9652615598999M4[t] -7.75591787526218M5[t] +  1.77509448248112M6[t] -7.78890250187808M7[t] -23.7349262723345M8[t] +  20.4649326275848M9[t] +  15.9869643501035M10[t] +  9.80486419820637M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102635&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102635&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
Yt[t] = + 22.6312382261078 + 0.196506125470823Yt_1[t] + 0.424055921103169Yt_2[t] + 0.0585369260350396Yt_3[t] -0.0637881636311812Yt_4[t] -8.84011801809233M1[t] -1.02335139651173M2[t] -10.12932203986M3[t] -14.9652615598999M4[t] -7.75591787526218M5[t] + 1.77509448248112M6[t] -7.78890250187808M7[t] -23.7349262723345M8[t] + 20.4649326275848M9[t] + 15.9869643501035M10[t] + 9.80486419820637M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)22.631238226107811.8420341.91110.0631770.031589
Yt_10.1965061254708230.1595351.23170.2252370.112619
Yt_20.4240559211031690.1619492.61840.0124150.006207
Yt_30.05853692603503960.160680.36430.7175480.358774
Yt_4-0.06378816363118120.156935-0.40650.686570.343285
M1-8.840118018092336.751331-1.30940.1978740.098937
M2-1.023351396511736.634976-0.15420.8781990.4391
M3-10.129322039868.147073-1.24330.2209920.110496
M4-14.96526155989998.008265-1.86870.0689960.034498
M5-7.755917875262187.925687-0.97860.3336690.166835
M61.775094482481128.9994350.19720.8446350.422317
M7-7.788902501878087.283428-1.06940.29130.14565
M8-23.73492627233456.589109-3.60210.0008630.000431
M920.46493262758488.2729672.47370.0177150.008857
M1015.98696435010359.1270531.75160.0875070.043754
M119.804864198206377.6344891.28430.2064310.103215

\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) & 22.6312382261078 & 11.842034 & 1.9111 & 0.063177 & 0.031589 \tabularnewline
Yt_1 & 0.196506125470823 & 0.159535 & 1.2317 & 0.225237 & 0.112619 \tabularnewline
Yt_2 & 0.424055921103169 & 0.161949 & 2.6184 & 0.012415 & 0.006207 \tabularnewline
Yt_3 & 0.0585369260350396 & 0.16068 & 0.3643 & 0.717548 & 0.358774 \tabularnewline
Yt_4 & -0.0637881636311812 & 0.156935 & -0.4065 & 0.68657 & 0.343285 \tabularnewline
M1 & -8.84011801809233 & 6.751331 & -1.3094 & 0.197874 & 0.098937 \tabularnewline
M2 & -1.02335139651173 & 6.634976 & -0.1542 & 0.878199 & 0.4391 \tabularnewline
M3 & -10.12932203986 & 8.147073 & -1.2433 & 0.220992 & 0.110496 \tabularnewline
M4 & -14.9652615598999 & 8.008265 & -1.8687 & 0.068996 & 0.034498 \tabularnewline
M5 & -7.75591787526218 & 7.925687 & -0.9786 & 0.333669 & 0.166835 \tabularnewline
M6 & 1.77509448248112 & 8.999435 & 0.1972 & 0.844635 & 0.422317 \tabularnewline
M7 & -7.78890250187808 & 7.283428 & -1.0694 & 0.2913 & 0.14565 \tabularnewline
M8 & -23.7349262723345 & 6.589109 & -3.6021 & 0.000863 & 0.000431 \tabularnewline
M9 & 20.4649326275848 & 8.272967 & 2.4737 & 0.017715 & 0.008857 \tabularnewline
M10 & 15.9869643501035 & 9.127053 & 1.7516 & 0.087507 & 0.043754 \tabularnewline
M11 & 9.80486419820637 & 7.634489 & 1.2843 & 0.206431 & 0.103215 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102635&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]22.6312382261078[/C][C]11.842034[/C][C]1.9111[/C][C]0.063177[/C][C]0.031589[/C][/ROW]
[ROW][C]Yt_1[/C][C]0.196506125470823[/C][C]0.159535[/C][C]1.2317[/C][C]0.225237[/C][C]0.112619[/C][/ROW]
[ROW][C]Yt_2[/C][C]0.424055921103169[/C][C]0.161949[/C][C]2.6184[/C][C]0.012415[/C][C]0.006207[/C][/ROW]
[ROW][C]Yt_3[/C][C]0.0585369260350396[/C][C]0.16068[/C][C]0.3643[/C][C]0.717548[/C][C]0.358774[/C][/ROW]
[ROW][C]Yt_4[/C][C]-0.0637881636311812[/C][C]0.156935[/C][C]-0.4065[/C][C]0.68657[/C][C]0.343285[/C][/ROW]
[ROW][C]M1[/C][C]-8.84011801809233[/C][C]6.751331[/C][C]-1.3094[/C][C]0.197874[/C][C]0.098937[/C][/ROW]
[ROW][C]M2[/C][C]-1.02335139651173[/C][C]6.634976[/C][C]-0.1542[/C][C]0.878199[/C][C]0.4391[/C][/ROW]
[ROW][C]M3[/C][C]-10.12932203986[/C][C]8.147073[/C][C]-1.2433[/C][C]0.220992[/C][C]0.110496[/C][/ROW]
[ROW][C]M4[/C][C]-14.9652615598999[/C][C]8.008265[/C][C]-1.8687[/C][C]0.068996[/C][C]0.034498[/C][/ROW]
[ROW][C]M5[/C][C]-7.75591787526218[/C][C]7.925687[/C][C]-0.9786[/C][C]0.333669[/C][C]0.166835[/C][/ROW]
[ROW][C]M6[/C][C]1.77509448248112[/C][C]8.999435[/C][C]0.1972[/C][C]0.844635[/C][C]0.422317[/C][/ROW]
[ROW][C]M7[/C][C]-7.78890250187808[/C][C]7.283428[/C][C]-1.0694[/C][C]0.2913[/C][C]0.14565[/C][/ROW]
[ROW][C]M8[/C][C]-23.7349262723345[/C][C]6.589109[/C][C]-3.6021[/C][C]0.000863[/C][C]0.000431[/C][/ROW]
[ROW][C]M9[/C][C]20.4649326275848[/C][C]8.272967[/C][C]2.4737[/C][C]0.017715[/C][C]0.008857[/C][/ROW]
[ROW][C]M10[/C][C]15.9869643501035[/C][C]9.127053[/C][C]1.7516[/C][C]0.087507[/C][C]0.043754[/C][/ROW]
[ROW][C]M11[/C][C]9.80486419820637[/C][C]7.634489[/C][C]1.2843[/C][C]0.206431[/C][C]0.103215[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102635&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102635&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)22.631238226107811.8420341.91110.0631770.031589
Yt_10.1965061254708230.1595351.23170.2252370.112619
Yt_20.4240559211031690.1619492.61840.0124150.006207
Yt_30.05853692603503960.160680.36430.7175480.358774
Yt_4-0.06378816363118120.156935-0.40650.686570.343285
M1-8.840118018092336.751331-1.30940.1978740.098937
M2-1.023351396511736.634976-0.15420.8781990.4391
M3-10.129322039868.147073-1.24330.2209920.110496
M4-14.96526155989998.008265-1.86870.0689960.034498
M5-7.755917875262187.925687-0.97860.3336690.166835
M61.775094482481128.9994350.19720.8446350.422317
M7-7.788902501878087.283428-1.06940.29130.14565
M8-23.73492627233456.589109-3.60210.0008630.000431
M920.46493262758488.2729672.47370.0177150.008857
M1015.98696435010359.1270531.75160.0875070.043754
M119.804864198206377.6344891.28430.2064310.103215







Multiple Linear Regression - Regression Statistics
Multiple R0.957491183981792
R-squared0.916789367402854
Adjusted R-squared0.885585380178925
F-TEST (value)29.3805198939381
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.45950708969358
Sum Squared Residuals795.488139321092

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.957491183981792 \tabularnewline
R-squared & 0.916789367402854 \tabularnewline
Adjusted R-squared & 0.885585380178925 \tabularnewline
F-TEST (value) & 29.3805198939381 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.45950708969358 \tabularnewline
Sum Squared Residuals & 795.488139321092 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102635&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.957491183981792[/C][/ROW]
[ROW][C]R-squared[/C][C]0.916789367402854[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.885585380178925[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]29.3805198939381[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/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]4.45950708969358[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]795.488139321092[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102635&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102635&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.957491183981792
R-squared0.916789367402854
Adjusted R-squared0.885585380178925
F-TEST (value)29.3805198939381
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.45950708969358
Sum Squared Residuals795.488139321092







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
153.4753.25680714713560.213192852864406
259.658.91789234779490.682107652205067
342.54246.3731306559266-3.83113065592662
442.01840.43292277284571.5850772271543
544.03841.25034940877882.78765059122119
644.98849.5665545099503-4.57855450995029
743.30942.10325645139511.20574354860492
826.84326.38182160965470.461178390345328
969.7766.56077874523753.20922125476254
1064.88663.37684186469491.50915813530507
1179.35473.58168562383795.77231437616213
1263.02568.1119334565327-5.08693345653268
1354.00359.174179135197-5.17117913519705
1455.92659.4521119941359-3.5261119941359
1545.62945.01945349323310.609546506766854
1640.36139.4890267127470.871973287253035
1743.03941.9847356298511.05426437014901
1844.5749.0826454331881-4.5126454331881
1943.26941.30357527819671.96542472180330
2025.56326.2439245876426-0.680924587642592
2168.70766.33154460817562.37545539182441
2260.22362.6494862496638-2.42648624966381
2374.28372.14223037785522.14076962214485
2461.23265.1575022312387-3.92550223123871
2561.53156.46630520815235.06469479184771
2665.30560.17168129523085.13331870476922
2751.69950.27329048748151.42570951251845
2844.59945.214077534964-0.615077534963977
2935.22145.4603685641597-10.2393685641597
3055.06649.10055949222835.96544050777172
3145.33539.91171971924915.4232802807509
3228.70230.3728212655533-1.67082126555329
3369.51768.937576307960.579423692040007
3469.2463.59118447135355.64881552864646
3571.52574.309572472081-2.7845724720811
3677.7468.28643444222769.45356555777243
3762.10759.01684114653883.09015885346122
3865.4566.5485612556061-1.09856125560611
3951.49351.6882954165115-0.195295416511469
4043.06744.2157876458496-1.14878764584959
4149.17245.04371153221474.12828846778535
4254.48351.17105488705193.31194511294805
4338.15845.6366225944323-7.47862259443227
4427.89829.6296443228439-1.73164432284385
4558.64864.812100338627-6.16410033862696
465660.7314874142877-4.73148741428772
4762.38167.5095115262259-5.12851152622588
4859.84960.290129870001-0.441129870001028
4948.34551.5418673629763-3.19686736297629
5055.37656.5667531072323-1.19075310723227
5145.443.40882994684721.99117005315279
5238.38939.0821853335938-0.693185333593776
5344.09841.82883486499592.26916513500415
5448.2948.4761856775814-0.186185677581383
5541.26742.3828259567269-1.11582595672685
5631.23827.61578821430563.6222117856944

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 53.47 & 53.2568071471356 & 0.213192852864406 \tabularnewline
2 & 59.6 & 58.9178923477949 & 0.682107652205067 \tabularnewline
3 & 42.542 & 46.3731306559266 & -3.83113065592662 \tabularnewline
4 & 42.018 & 40.4329227728457 & 1.5850772271543 \tabularnewline
5 & 44.038 & 41.2503494087788 & 2.78765059122119 \tabularnewline
6 & 44.988 & 49.5665545099503 & -4.57855450995029 \tabularnewline
7 & 43.309 & 42.1032564513951 & 1.20574354860492 \tabularnewline
8 & 26.843 & 26.3818216096547 & 0.461178390345328 \tabularnewline
9 & 69.77 & 66.5607787452375 & 3.20922125476254 \tabularnewline
10 & 64.886 & 63.3768418646949 & 1.50915813530507 \tabularnewline
11 & 79.354 & 73.5816856238379 & 5.77231437616213 \tabularnewline
12 & 63.025 & 68.1119334565327 & -5.08693345653268 \tabularnewline
13 & 54.003 & 59.174179135197 & -5.17117913519705 \tabularnewline
14 & 55.926 & 59.4521119941359 & -3.5261119941359 \tabularnewline
15 & 45.629 & 45.0194534932331 & 0.609546506766854 \tabularnewline
16 & 40.361 & 39.489026712747 & 0.871973287253035 \tabularnewline
17 & 43.039 & 41.984735629851 & 1.05426437014901 \tabularnewline
18 & 44.57 & 49.0826454331881 & -4.5126454331881 \tabularnewline
19 & 43.269 & 41.3035752781967 & 1.96542472180330 \tabularnewline
20 & 25.563 & 26.2439245876426 & -0.680924587642592 \tabularnewline
21 & 68.707 & 66.3315446081756 & 2.37545539182441 \tabularnewline
22 & 60.223 & 62.6494862496638 & -2.42648624966381 \tabularnewline
23 & 74.283 & 72.1422303778552 & 2.14076962214485 \tabularnewline
24 & 61.232 & 65.1575022312387 & -3.92550223123871 \tabularnewline
25 & 61.531 & 56.4663052081523 & 5.06469479184771 \tabularnewline
26 & 65.305 & 60.1716812952308 & 5.13331870476922 \tabularnewline
27 & 51.699 & 50.2732904874815 & 1.42570951251845 \tabularnewline
28 & 44.599 & 45.214077534964 & -0.615077534963977 \tabularnewline
29 & 35.221 & 45.4603685641597 & -10.2393685641597 \tabularnewline
30 & 55.066 & 49.1005594922283 & 5.96544050777172 \tabularnewline
31 & 45.335 & 39.9117197192491 & 5.4232802807509 \tabularnewline
32 & 28.702 & 30.3728212655533 & -1.67082126555329 \tabularnewline
33 & 69.517 & 68.93757630796 & 0.579423692040007 \tabularnewline
34 & 69.24 & 63.5911844713535 & 5.64881552864646 \tabularnewline
35 & 71.525 & 74.309572472081 & -2.7845724720811 \tabularnewline
36 & 77.74 & 68.2864344422276 & 9.45356555777243 \tabularnewline
37 & 62.107 & 59.0168411465388 & 3.09015885346122 \tabularnewline
38 & 65.45 & 66.5485612556061 & -1.09856125560611 \tabularnewline
39 & 51.493 & 51.6882954165115 & -0.195295416511469 \tabularnewline
40 & 43.067 & 44.2157876458496 & -1.14878764584959 \tabularnewline
41 & 49.172 & 45.0437115322147 & 4.12828846778535 \tabularnewline
42 & 54.483 & 51.1710548870519 & 3.31194511294805 \tabularnewline
43 & 38.158 & 45.6366225944323 & -7.47862259443227 \tabularnewline
44 & 27.898 & 29.6296443228439 & -1.73164432284385 \tabularnewline
45 & 58.648 & 64.812100338627 & -6.16410033862696 \tabularnewline
46 & 56 & 60.7314874142877 & -4.73148741428772 \tabularnewline
47 & 62.381 & 67.5095115262259 & -5.12851152622588 \tabularnewline
48 & 59.849 & 60.290129870001 & -0.441129870001028 \tabularnewline
49 & 48.345 & 51.5418673629763 & -3.19686736297629 \tabularnewline
50 & 55.376 & 56.5667531072323 & -1.19075310723227 \tabularnewline
51 & 45.4 & 43.4088299468472 & 1.99117005315279 \tabularnewline
52 & 38.389 & 39.0821853335938 & -0.693185333593776 \tabularnewline
53 & 44.098 & 41.8288348649959 & 2.26916513500415 \tabularnewline
54 & 48.29 & 48.4761856775814 & -0.186185677581383 \tabularnewline
55 & 41.267 & 42.3828259567269 & -1.11582595672685 \tabularnewline
56 & 31.238 & 27.6157882143056 & 3.6222117856944 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102635&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]53.47[/C][C]53.2568071471356[/C][C]0.213192852864406[/C][/ROW]
[ROW][C]2[/C][C]59.6[/C][C]58.9178923477949[/C][C]0.682107652205067[/C][/ROW]
[ROW][C]3[/C][C]42.542[/C][C]46.3731306559266[/C][C]-3.83113065592662[/C][/ROW]
[ROW][C]4[/C][C]42.018[/C][C]40.4329227728457[/C][C]1.5850772271543[/C][/ROW]
[ROW][C]5[/C][C]44.038[/C][C]41.2503494087788[/C][C]2.78765059122119[/C][/ROW]
[ROW][C]6[/C][C]44.988[/C][C]49.5665545099503[/C][C]-4.57855450995029[/C][/ROW]
[ROW][C]7[/C][C]43.309[/C][C]42.1032564513951[/C][C]1.20574354860492[/C][/ROW]
[ROW][C]8[/C][C]26.843[/C][C]26.3818216096547[/C][C]0.461178390345328[/C][/ROW]
[ROW][C]9[/C][C]69.77[/C][C]66.5607787452375[/C][C]3.20922125476254[/C][/ROW]
[ROW][C]10[/C][C]64.886[/C][C]63.3768418646949[/C][C]1.50915813530507[/C][/ROW]
[ROW][C]11[/C][C]79.354[/C][C]73.5816856238379[/C][C]5.77231437616213[/C][/ROW]
[ROW][C]12[/C][C]63.025[/C][C]68.1119334565327[/C][C]-5.08693345653268[/C][/ROW]
[ROW][C]13[/C][C]54.003[/C][C]59.174179135197[/C][C]-5.17117913519705[/C][/ROW]
[ROW][C]14[/C][C]55.926[/C][C]59.4521119941359[/C][C]-3.5261119941359[/C][/ROW]
[ROW][C]15[/C][C]45.629[/C][C]45.0194534932331[/C][C]0.609546506766854[/C][/ROW]
[ROW][C]16[/C][C]40.361[/C][C]39.489026712747[/C][C]0.871973287253035[/C][/ROW]
[ROW][C]17[/C][C]43.039[/C][C]41.984735629851[/C][C]1.05426437014901[/C][/ROW]
[ROW][C]18[/C][C]44.57[/C][C]49.0826454331881[/C][C]-4.5126454331881[/C][/ROW]
[ROW][C]19[/C][C]43.269[/C][C]41.3035752781967[/C][C]1.96542472180330[/C][/ROW]
[ROW][C]20[/C][C]25.563[/C][C]26.2439245876426[/C][C]-0.680924587642592[/C][/ROW]
[ROW][C]21[/C][C]68.707[/C][C]66.3315446081756[/C][C]2.37545539182441[/C][/ROW]
[ROW][C]22[/C][C]60.223[/C][C]62.6494862496638[/C][C]-2.42648624966381[/C][/ROW]
[ROW][C]23[/C][C]74.283[/C][C]72.1422303778552[/C][C]2.14076962214485[/C][/ROW]
[ROW][C]24[/C][C]61.232[/C][C]65.1575022312387[/C][C]-3.92550223123871[/C][/ROW]
[ROW][C]25[/C][C]61.531[/C][C]56.4663052081523[/C][C]5.06469479184771[/C][/ROW]
[ROW][C]26[/C][C]65.305[/C][C]60.1716812952308[/C][C]5.13331870476922[/C][/ROW]
[ROW][C]27[/C][C]51.699[/C][C]50.2732904874815[/C][C]1.42570951251845[/C][/ROW]
[ROW][C]28[/C][C]44.599[/C][C]45.214077534964[/C][C]-0.615077534963977[/C][/ROW]
[ROW][C]29[/C][C]35.221[/C][C]45.4603685641597[/C][C]-10.2393685641597[/C][/ROW]
[ROW][C]30[/C][C]55.066[/C][C]49.1005594922283[/C][C]5.96544050777172[/C][/ROW]
[ROW][C]31[/C][C]45.335[/C][C]39.9117197192491[/C][C]5.4232802807509[/C][/ROW]
[ROW][C]32[/C][C]28.702[/C][C]30.3728212655533[/C][C]-1.67082126555329[/C][/ROW]
[ROW][C]33[/C][C]69.517[/C][C]68.93757630796[/C][C]0.579423692040007[/C][/ROW]
[ROW][C]34[/C][C]69.24[/C][C]63.5911844713535[/C][C]5.64881552864646[/C][/ROW]
[ROW][C]35[/C][C]71.525[/C][C]74.309572472081[/C][C]-2.7845724720811[/C][/ROW]
[ROW][C]36[/C][C]77.74[/C][C]68.2864344422276[/C][C]9.45356555777243[/C][/ROW]
[ROW][C]37[/C][C]62.107[/C][C]59.0168411465388[/C][C]3.09015885346122[/C][/ROW]
[ROW][C]38[/C][C]65.45[/C][C]66.5485612556061[/C][C]-1.09856125560611[/C][/ROW]
[ROW][C]39[/C][C]51.493[/C][C]51.6882954165115[/C][C]-0.195295416511469[/C][/ROW]
[ROW][C]40[/C][C]43.067[/C][C]44.2157876458496[/C][C]-1.14878764584959[/C][/ROW]
[ROW][C]41[/C][C]49.172[/C][C]45.0437115322147[/C][C]4.12828846778535[/C][/ROW]
[ROW][C]42[/C][C]54.483[/C][C]51.1710548870519[/C][C]3.31194511294805[/C][/ROW]
[ROW][C]43[/C][C]38.158[/C][C]45.6366225944323[/C][C]-7.47862259443227[/C][/ROW]
[ROW][C]44[/C][C]27.898[/C][C]29.6296443228439[/C][C]-1.73164432284385[/C][/ROW]
[ROW][C]45[/C][C]58.648[/C][C]64.812100338627[/C][C]-6.16410033862696[/C][/ROW]
[ROW][C]46[/C][C]56[/C][C]60.7314874142877[/C][C]-4.73148741428772[/C][/ROW]
[ROW][C]47[/C][C]62.381[/C][C]67.5095115262259[/C][C]-5.12851152622588[/C][/ROW]
[ROW][C]48[/C][C]59.849[/C][C]60.290129870001[/C][C]-0.441129870001028[/C][/ROW]
[ROW][C]49[/C][C]48.345[/C][C]51.5418673629763[/C][C]-3.19686736297629[/C][/ROW]
[ROW][C]50[/C][C]55.376[/C][C]56.5667531072323[/C][C]-1.19075310723227[/C][/ROW]
[ROW][C]51[/C][C]45.4[/C][C]43.4088299468472[/C][C]1.99117005315279[/C][/ROW]
[ROW][C]52[/C][C]38.389[/C][C]39.0821853335938[/C][C]-0.693185333593776[/C][/ROW]
[ROW][C]53[/C][C]44.098[/C][C]41.8288348649959[/C][C]2.26916513500415[/C][/ROW]
[ROW][C]54[/C][C]48.29[/C][C]48.4761856775814[/C][C]-0.186185677581383[/C][/ROW]
[ROW][C]55[/C][C]41.267[/C][C]42.3828259567269[/C][C]-1.11582595672685[/C][/ROW]
[ROW][C]56[/C][C]31.238[/C][C]27.6157882143056[/C][C]3.6222117856944[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102635&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102635&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
153.4753.25680714713560.213192852864406
259.658.91789234779490.682107652205067
342.54246.3731306559266-3.83113065592662
442.01840.43292277284571.5850772271543
544.03841.25034940877882.78765059122119
644.98849.5665545099503-4.57855450995029
743.30942.10325645139511.20574354860492
826.84326.38182160965470.461178390345328
969.7766.56077874523753.20922125476254
1064.88663.37684186469491.50915813530507
1179.35473.58168562383795.77231437616213
1263.02568.1119334565327-5.08693345653268
1354.00359.174179135197-5.17117913519705
1455.92659.4521119941359-3.5261119941359
1545.62945.01945349323310.609546506766854
1640.36139.4890267127470.871973287253035
1743.03941.9847356298511.05426437014901
1844.5749.0826454331881-4.5126454331881
1943.26941.30357527819671.96542472180330
2025.56326.2439245876426-0.680924587642592
2168.70766.33154460817562.37545539182441
2260.22362.6494862496638-2.42648624966381
2374.28372.14223037785522.14076962214485
2461.23265.1575022312387-3.92550223123871
2561.53156.46630520815235.06469479184771
2665.30560.17168129523085.13331870476922
2751.69950.27329048748151.42570951251845
2844.59945.214077534964-0.615077534963977
2935.22145.4603685641597-10.2393685641597
3055.06649.10055949222835.96544050777172
3145.33539.91171971924915.4232802807509
3228.70230.3728212655533-1.67082126555329
3369.51768.937576307960.579423692040007
3469.2463.59118447135355.64881552864646
3571.52574.309572472081-2.7845724720811
3677.7468.28643444222769.45356555777243
3762.10759.01684114653883.09015885346122
3865.4566.5485612556061-1.09856125560611
3951.49351.6882954165115-0.195295416511469
4043.06744.2157876458496-1.14878764584959
4149.17245.04371153221474.12828846778535
4254.48351.17105488705193.31194511294805
4338.15845.6366225944323-7.47862259443227
4427.89829.6296443228439-1.73164432284385
4558.64864.812100338627-6.16410033862696
465660.7314874142877-4.73148741428772
4762.38167.5095115262259-5.12851152622588
4859.84960.290129870001-0.441129870001028
4948.34551.5418673629763-3.19686736297629
5055.37656.5667531072323-1.19075310723227
5145.443.40882994684721.99117005315279
5238.38939.0821853335938-0.693185333593776
5344.09841.82883486499592.26916513500415
5448.2948.4761856775814-0.186185677581383
5541.26742.3828259567269-1.11582595672685
5631.23827.61578821430563.6222117856944







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.02362480440422370.04724960880844750.976375195595776
200.006498986612156120.01299797322431220.993501013387844
210.001998378578844600.003996757157689190.998001621421155
220.005149604805608660.01029920961121730.99485039519439
230.004424256939505610.008848513879011210.995575743060494
240.002941637766509270.005883275533018540.99705836223349
250.03658553964605660.07317107929211320.963414460353943
260.03191777202689380.06383554405378760.968082227973106
270.01738379324072480.03476758648144960.982616206759275
280.009106967822171910.01821393564434380.990893032177828
290.2326819036139320.4653638072278650.767318096386068
300.8760887777151750.2478224445696500.123911222284825
310.8401742660843450.3196514678313110.159825733915655
320.7500739855177420.4998520289645160.249926014482258
330.6569449258609140.6861101482781710.343055074139086
340.5849510869749310.8300978260501380.415048913025069
350.4862540551891930.9725081103783860.513745944810807
360.8216113864358730.3567772271282550.178388613564128
370.7029612860687480.5940774278625040.297038713931252

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0236248044042237 & 0.0472496088084475 & 0.976375195595776 \tabularnewline
20 & 0.00649898661215612 & 0.0129979732243122 & 0.993501013387844 \tabularnewline
21 & 0.00199837857884460 & 0.00399675715768919 & 0.998001621421155 \tabularnewline
22 & 0.00514960480560866 & 0.0102992096112173 & 0.99485039519439 \tabularnewline
23 & 0.00442425693950561 & 0.00884851387901121 & 0.995575743060494 \tabularnewline
24 & 0.00294163776650927 & 0.00588327553301854 & 0.99705836223349 \tabularnewline
25 & 0.0365855396460566 & 0.0731710792921132 & 0.963414460353943 \tabularnewline
26 & 0.0319177720268938 & 0.0638355440537876 & 0.968082227973106 \tabularnewline
27 & 0.0173837932407248 & 0.0347675864814496 & 0.982616206759275 \tabularnewline
28 & 0.00910696782217191 & 0.0182139356443438 & 0.990893032177828 \tabularnewline
29 & 0.232681903613932 & 0.465363807227865 & 0.767318096386068 \tabularnewline
30 & 0.876088777715175 & 0.247822444569650 & 0.123911222284825 \tabularnewline
31 & 0.840174266084345 & 0.319651467831311 & 0.159825733915655 \tabularnewline
32 & 0.750073985517742 & 0.499852028964516 & 0.249926014482258 \tabularnewline
33 & 0.656944925860914 & 0.686110148278171 & 0.343055074139086 \tabularnewline
34 & 0.584951086974931 & 0.830097826050138 & 0.415048913025069 \tabularnewline
35 & 0.486254055189193 & 0.972508110378386 & 0.513745944810807 \tabularnewline
36 & 0.821611386435873 & 0.356777227128255 & 0.178388613564128 \tabularnewline
37 & 0.702961286068748 & 0.594077427862504 & 0.297038713931252 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102635&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]19[/C][C]0.0236248044042237[/C][C]0.0472496088084475[/C][C]0.976375195595776[/C][/ROW]
[ROW][C]20[/C][C]0.00649898661215612[/C][C]0.0129979732243122[/C][C]0.993501013387844[/C][/ROW]
[ROW][C]21[/C][C]0.00199837857884460[/C][C]0.00399675715768919[/C][C]0.998001621421155[/C][/ROW]
[ROW][C]22[/C][C]0.00514960480560866[/C][C]0.0102992096112173[/C][C]0.99485039519439[/C][/ROW]
[ROW][C]23[/C][C]0.00442425693950561[/C][C]0.00884851387901121[/C][C]0.995575743060494[/C][/ROW]
[ROW][C]24[/C][C]0.00294163776650927[/C][C]0.00588327553301854[/C][C]0.99705836223349[/C][/ROW]
[ROW][C]25[/C][C]0.0365855396460566[/C][C]0.0731710792921132[/C][C]0.963414460353943[/C][/ROW]
[ROW][C]26[/C][C]0.0319177720268938[/C][C]0.0638355440537876[/C][C]0.968082227973106[/C][/ROW]
[ROW][C]27[/C][C]0.0173837932407248[/C][C]0.0347675864814496[/C][C]0.982616206759275[/C][/ROW]
[ROW][C]28[/C][C]0.00910696782217191[/C][C]0.0182139356443438[/C][C]0.990893032177828[/C][/ROW]
[ROW][C]29[/C][C]0.232681903613932[/C][C]0.465363807227865[/C][C]0.767318096386068[/C][/ROW]
[ROW][C]30[/C][C]0.876088777715175[/C][C]0.247822444569650[/C][C]0.123911222284825[/C][/ROW]
[ROW][C]31[/C][C]0.840174266084345[/C][C]0.319651467831311[/C][C]0.159825733915655[/C][/ROW]
[ROW][C]32[/C][C]0.750073985517742[/C][C]0.499852028964516[/C][C]0.249926014482258[/C][/ROW]
[ROW][C]33[/C][C]0.656944925860914[/C][C]0.686110148278171[/C][C]0.343055074139086[/C][/ROW]
[ROW][C]34[/C][C]0.584951086974931[/C][C]0.830097826050138[/C][C]0.415048913025069[/C][/ROW]
[ROW][C]35[/C][C]0.486254055189193[/C][C]0.972508110378386[/C][C]0.513745944810807[/C][/ROW]
[ROW][C]36[/C][C]0.821611386435873[/C][C]0.356777227128255[/C][C]0.178388613564128[/C][/ROW]
[ROW][C]37[/C][C]0.702961286068748[/C][C]0.594077427862504[/C][C]0.297038713931252[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102635&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102635&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
190.02362480440422370.04724960880844750.976375195595776
200.006498986612156120.01299797322431220.993501013387844
210.001998378578844600.003996757157689190.998001621421155
220.005149604805608660.01029920961121730.99485039519439
230.004424256939505610.008848513879011210.995575743060494
240.002941637766509270.005883275533018540.99705836223349
250.03658553964605660.07317107929211320.963414460353943
260.03191777202689380.06383554405378760.968082227973106
270.01738379324072480.03476758648144960.982616206759275
280.009106967822171910.01821393564434380.990893032177828
290.2326819036139320.4653638072278650.767318096386068
300.8760887777151750.2478224445696500.123911222284825
310.8401742660843450.3196514678313110.159825733915655
320.7500739855177420.4998520289645160.249926014482258
330.6569449258609140.6861101482781710.343055074139086
340.5849510869749310.8300978260501380.415048913025069
350.4862540551891930.9725081103783860.513745944810807
360.8216113864358730.3567772271282550.178388613564128
370.7029612860687480.5940774278625040.297038713931252







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.157894736842105NOK
5% type I error level80.421052631578947NOK
10% type I error level100.526315789473684NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102635&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 level30.157894736842105NOK
5% type I error level80.421052631578947NOK
10% type I error level100.526315789473684NOK



Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ;
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')
}