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 computationWed, 18 Nov 2009 14:12:39 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258578995t9ycn2u3sxdqafl.htm/, Retrieved Sun, 05 May 2024 08:48:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57624, Retrieved Sun, 05 May 2024 08:48:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsW7
Estimated Impact146
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]
-   PD      [Multiple Regression] [w7] [2009-11-18 21:12:39] [950726a732ba3ca782ecb1a5307d0f6f] [Current]
Feedback Forum

Post a new message
Dataseries X:
13132.1	12002.4
17665.9	15525.5
16913	14247.9
17318.8	15000.7
16224.2	14931.4
15469.6	13333.7
16557.5	14711.2
19414.8	17197.3
17335	14985.2
16525.2	14734.4
18160.4	15937.8
15553.8	13028.1
15262.2	13836.8
18581	16677.5
17564.1	15130
18948.6	17504
17187.8	16979.9
17564.8	16012.5
17668.4	16247.7
20811.7	19268.2
17257.8	15533
18984.2	16803.3
20532.6	17396.1
17082.3	15155.4
16894.9	15692.4
20274.9	18063.7
20078.6	17568.6
19900.9	18154.3
17012.2	15467.4
19642.9	16956.1
19024	16854
21691	19396.4
18835.9	16457.6
19873.4	17284.5
21468.2	18395.3
19406.8	16938.7
18385.3	16414.3
20739.3	18173.4
22268.3	19919.7
21569	19623.8
17514.8	17228.1
21124.7	18730.3
21251	19039.1
21393	19413.3
22145.2	20013.6
20310.5	17917.2
23466.9	21270.3
21264.6	18766.1
18388.1	16790.8
22635.4	19960.6
22014.3	19586.7
18422.7	17179
16120.2	14964.9
16037.7	13918.5
16410.7	14401.3
17749.8	15994.6
16349.8	14521.1
15662.3	13746.5
17782.3	15956
16398.9	14332.2




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Uitvoer[t] = + 1802.9519805538 + 1.03159197521405Invoer[t] -809.987975349867M1[t] -62.3425252148233M2[t] + 127.884444649563M3[t] -615.930184109128M4[t] -1408.21741538185M5[t] -124.076219418276M6[t] -384.682428485835M7[t] -421.530632432152M8[t] -235.327519690847M9[t] -137.553692129983M10[t] + 125.972029215426M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Uitvoer[t] =  +  1802.9519805538 +  1.03159197521405Invoer[t] -809.987975349867M1[t] -62.3425252148233M2[t] +  127.884444649563M3[t] -615.930184109128M4[t] -1408.21741538185M5[t] -124.076219418276M6[t] -384.682428485835M7[t] -421.530632432152M8[t] -235.327519690847M9[t] -137.553692129983M10[t] +  125.972029215426M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57624&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Uitvoer[t] =  +  1802.9519805538 +  1.03159197521405Invoer[t] -809.987975349867M1[t] -62.3425252148233M2[t] +  127.884444649563M3[t] -615.930184109128M4[t] -1408.21741538185M5[t] -124.076219418276M6[t] -384.682428485835M7[t] -421.530632432152M8[t] -235.327519690847M9[t] -137.553692129983M10[t] +  125.972029215426M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57624&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57624&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
Uitvoer[t] = + 1802.9519805538 + 1.03159197521405Invoer[t] -809.987975349867M1[t] -62.3425252148233M2[t] + 127.884444649563M3[t] -615.930184109128M4[t] -1408.21741538185M5[t] -124.076219418276M6[t] -384.682428485835M7[t] -421.530632432152M8[t] -235.327519690847M9[t] -137.553692129983M10[t] + 125.972029215426M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1802.9519805538473.016493.81160.0004012e-04
Invoer1.031591975214050.02818536.601300
M1-809.987975349867243.004078-3.33320.001680.00084
M2-62.3425252148233248.914356-0.25050.8033250.401663
M3127.884444649563246.614650.51860.6065010.30325
M4-615.930184109128247.747753-2.48610.0165260.008263
M5-1408.21741538185242.32901-5.81121e-060
M6-124.076219418276242.244292-0.51220.6109130.305457
M7-384.682428485835242.811854-1.58430.1198360.059918
M8-421.530632432152253.132515-1.66530.1025150.051257
M9-235.327519690847242.918236-0.96880.3376280.168814
M10-137.553692129983242.545677-0.56710.5733280.286664
M11125.972029215426249.6538850.50460.6162070.308103

\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) & 1802.9519805538 & 473.01649 & 3.8116 & 0.000401 & 2e-04 \tabularnewline
Invoer & 1.03159197521405 & 0.028185 & 36.6013 & 0 & 0 \tabularnewline
M1 & -809.987975349867 & 243.004078 & -3.3332 & 0.00168 & 0.00084 \tabularnewline
M2 & -62.3425252148233 & 248.914356 & -0.2505 & 0.803325 & 0.401663 \tabularnewline
M3 & 127.884444649563 & 246.61465 & 0.5186 & 0.606501 & 0.30325 \tabularnewline
M4 & -615.930184109128 & 247.747753 & -2.4861 & 0.016526 & 0.008263 \tabularnewline
M5 & -1408.21741538185 & 242.32901 & -5.8112 & 1e-06 & 0 \tabularnewline
M6 & -124.076219418276 & 242.244292 & -0.5122 & 0.610913 & 0.305457 \tabularnewline
M7 & -384.682428485835 & 242.811854 & -1.5843 & 0.119836 & 0.059918 \tabularnewline
M8 & -421.530632432152 & 253.132515 & -1.6653 & 0.102515 & 0.051257 \tabularnewline
M9 & -235.327519690847 & 242.918236 & -0.9688 & 0.337628 & 0.168814 \tabularnewline
M10 & -137.553692129983 & 242.545677 & -0.5671 & 0.573328 & 0.286664 \tabularnewline
M11 & 125.972029215426 & 249.653885 & 0.5046 & 0.616207 & 0.308103 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57624&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]1802.9519805538[/C][C]473.01649[/C][C]3.8116[/C][C]0.000401[/C][C]2e-04[/C][/ROW]
[ROW][C]Invoer[/C][C]1.03159197521405[/C][C]0.028185[/C][C]36.6013[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-809.987975349867[/C][C]243.004078[/C][C]-3.3332[/C][C]0.00168[/C][C]0.00084[/C][/ROW]
[ROW][C]M2[/C][C]-62.3425252148233[/C][C]248.914356[/C][C]-0.2505[/C][C]0.803325[/C][C]0.401663[/C][/ROW]
[ROW][C]M3[/C][C]127.884444649563[/C][C]246.61465[/C][C]0.5186[/C][C]0.606501[/C][C]0.30325[/C][/ROW]
[ROW][C]M4[/C][C]-615.930184109128[/C][C]247.747753[/C][C]-2.4861[/C][C]0.016526[/C][C]0.008263[/C][/ROW]
[ROW][C]M5[/C][C]-1408.21741538185[/C][C]242.32901[/C][C]-5.8112[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-124.076219418276[/C][C]242.244292[/C][C]-0.5122[/C][C]0.610913[/C][C]0.305457[/C][/ROW]
[ROW][C]M7[/C][C]-384.682428485835[/C][C]242.811854[/C][C]-1.5843[/C][C]0.119836[/C][C]0.059918[/C][/ROW]
[ROW][C]M8[/C][C]-421.530632432152[/C][C]253.132515[/C][C]-1.6653[/C][C]0.102515[/C][C]0.051257[/C][/ROW]
[ROW][C]M9[/C][C]-235.327519690847[/C][C]242.918236[/C][C]-0.9688[/C][C]0.337628[/C][C]0.168814[/C][/ROW]
[ROW][C]M10[/C][C]-137.553692129983[/C][C]242.545677[/C][C]-0.5671[/C][C]0.573328[/C][C]0.286664[/C][/ROW]
[ROW][C]M11[/C][C]125.972029215426[/C][C]249.653885[/C][C]0.5046[/C][C]0.616207[/C][C]0.308103[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57624&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57624&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)1802.9519805538473.016493.81160.0004012e-04
Invoer1.031591975214050.02818536.601300
M1-809.987975349867243.004078-3.33320.001680.00084
M2-62.3425252148233248.914356-0.25050.8033250.401663
M3127.884444649563246.614650.51860.6065010.30325
M4-615.930184109128247.747753-2.48610.0165260.008263
M5-1408.21741538185242.32901-5.81121e-060
M6-124.076219418276242.244292-0.51220.6109130.305457
M7-384.682428485835242.811854-1.58430.1198360.059918
M8-421.530632432152253.132515-1.66530.1025150.051257
M9-235.327519690847242.918236-0.96880.3376280.168814
M10-137.553692129983242.545677-0.56710.5733280.286664
M11125.972029215426249.6538850.50460.6162070.308103







Multiple Linear Regression - Regression Statistics
Multiple R0.988229087160556
R-squared0.976596728710185
Adjusted R-squared0.970621425402148
F-TEST (value)163.438854626258
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation382.966501248118
Sum Squared Residuals6893177.03067656

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.988229087160556 \tabularnewline
R-squared & 0.976596728710185 \tabularnewline
Adjusted R-squared & 0.970621425402148 \tabularnewline
F-TEST (value) & 163.438854626258 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 382.966501248118 \tabularnewline
Sum Squared Residuals & 6893177.03067656 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57624&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.988229087160556[/C][/ROW]
[ROW][C]R-squared[/C][C]0.976596728710185[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.970621425402148[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]163.438854626258[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/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]382.966501248118[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]6893177.03067656[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57624&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57624&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.988229087160556
R-squared0.976596728710185
Adjusted R-squared0.970621425402148
F-TEST (value)163.438854626258
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation382.966501248118
Sum Squared Residuals6893177.03067656







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
113132.113374.5435285132-242.443528513171
217665.917756.5906665248-90.6906665247915
31691316628.8557288557284.144271144301
417318.816661.6235390381657.17646096185
516224.215797.8469838831426.353016116904
615469.615433.813681047235.7863189528278
716557.516594.2254178370-36.7254178369717
819414.819122.0180234703292.781976529684
91733517026.2365278406308.763472159387
1016525.216865.2870880178-340.08708801779
1118160.418370.2305923358-209.830592335791
1215553.815242.6353928400311.164607159966
1315262.215266.8958478458-4.69584784577068
141858118944.9846219714-363.98462197138
1517564.117538.823010192025.2769898079814
1618948.619244.0077305915-295.407730591493
1717187.817911.0631451091-723.263145109091
1817564.818197.2422642506-632.442264250582
1917668.418179.2664877534-510.866487753367
2020811.721258.3418449411-446.641844941102
2117257.817591.3426118629-333.542611862872
2218984.218999.5477255381-15.3477255381472
2320532.619874.6011697904657.99883020955
2417082.317437.1410017129-354.841001712891
2516894.917181.1179170530-286.21791705297
2620274.920374.9774180131-100.077418013102
2720078.620054.46320094924.1367990509895
2819900.919914.8519920732-13.9519920731896
2917012.216350.7802825978661.41971740217
3019642.919170.6524520626472.24754793744
311902418804.7207023256219.279297674351
322169121390.5919361635300.408063836454
3318835.918545.1525521458290.747447854217
3419873.419495.9497840112377.450215988850
3521468.220905.3678714243562.832128575668
3619406.819276.7789711121130.021028887884
3718385.317925.82416396459.475836040002
3820739.320488.1430576941251.156942305913
3922268.322479.8390938748-211.539093874776
402156921430.7763996502138.223600349756
4117514.818167.1042733572-652.304273357216
4221124.721000.9029344873123.797065512663
432125121058.8523273659192.147672634122
442139321408.0258405447-15.0258405446610
4522145.222213.4936160070-68.2936160069619
4620310.520148.6380267291161.861973270915
4723466.923871.1948001647-404.294800164737
4821264.621161.9101466183102.689853381722
4918388.118314.218542628173.88145737191
5022635.422331.8042357966303.595764203360
5122014.322136.3189661285-122.018966128496
5218422.718908.7403386469-486.040338646923
5316120.215832.4053150528287.794684947233
5416037.716037.08866815230.61133184765021
5516410.716274.5350647181136.164935281864
5617749.817881.3223548804-131.522354880374
5716349.816547.4746921438-197.674692143770
5815662.315846.1773757038-183.877375703828
5917782.318389.0055662847-606.70556628469
6016398.916587.9344877167-189.034487716680

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 13132.1 & 13374.5435285132 & -242.443528513171 \tabularnewline
2 & 17665.9 & 17756.5906665248 & -90.6906665247915 \tabularnewline
3 & 16913 & 16628.8557288557 & 284.144271144301 \tabularnewline
4 & 17318.8 & 16661.6235390381 & 657.17646096185 \tabularnewline
5 & 16224.2 & 15797.8469838831 & 426.353016116904 \tabularnewline
6 & 15469.6 & 15433.8136810472 & 35.7863189528278 \tabularnewline
7 & 16557.5 & 16594.2254178370 & -36.7254178369717 \tabularnewline
8 & 19414.8 & 19122.0180234703 & 292.781976529684 \tabularnewline
9 & 17335 & 17026.2365278406 & 308.763472159387 \tabularnewline
10 & 16525.2 & 16865.2870880178 & -340.08708801779 \tabularnewline
11 & 18160.4 & 18370.2305923358 & -209.830592335791 \tabularnewline
12 & 15553.8 & 15242.6353928400 & 311.164607159966 \tabularnewline
13 & 15262.2 & 15266.8958478458 & -4.69584784577068 \tabularnewline
14 & 18581 & 18944.9846219714 & -363.98462197138 \tabularnewline
15 & 17564.1 & 17538.8230101920 & 25.2769898079814 \tabularnewline
16 & 18948.6 & 19244.0077305915 & -295.407730591493 \tabularnewline
17 & 17187.8 & 17911.0631451091 & -723.263145109091 \tabularnewline
18 & 17564.8 & 18197.2422642506 & -632.442264250582 \tabularnewline
19 & 17668.4 & 18179.2664877534 & -510.866487753367 \tabularnewline
20 & 20811.7 & 21258.3418449411 & -446.641844941102 \tabularnewline
21 & 17257.8 & 17591.3426118629 & -333.542611862872 \tabularnewline
22 & 18984.2 & 18999.5477255381 & -15.3477255381472 \tabularnewline
23 & 20532.6 & 19874.6011697904 & 657.99883020955 \tabularnewline
24 & 17082.3 & 17437.1410017129 & -354.841001712891 \tabularnewline
25 & 16894.9 & 17181.1179170530 & -286.21791705297 \tabularnewline
26 & 20274.9 & 20374.9774180131 & -100.077418013102 \tabularnewline
27 & 20078.6 & 20054.463200949 & 24.1367990509895 \tabularnewline
28 & 19900.9 & 19914.8519920732 & -13.9519920731896 \tabularnewline
29 & 17012.2 & 16350.7802825978 & 661.41971740217 \tabularnewline
30 & 19642.9 & 19170.6524520626 & 472.24754793744 \tabularnewline
31 & 19024 & 18804.7207023256 & 219.279297674351 \tabularnewline
32 & 21691 & 21390.5919361635 & 300.408063836454 \tabularnewline
33 & 18835.9 & 18545.1525521458 & 290.747447854217 \tabularnewline
34 & 19873.4 & 19495.9497840112 & 377.450215988850 \tabularnewline
35 & 21468.2 & 20905.3678714243 & 562.832128575668 \tabularnewline
36 & 19406.8 & 19276.7789711121 & 130.021028887884 \tabularnewline
37 & 18385.3 & 17925.82416396 & 459.475836040002 \tabularnewline
38 & 20739.3 & 20488.1430576941 & 251.156942305913 \tabularnewline
39 & 22268.3 & 22479.8390938748 & -211.539093874776 \tabularnewline
40 & 21569 & 21430.7763996502 & 138.223600349756 \tabularnewline
41 & 17514.8 & 18167.1042733572 & -652.304273357216 \tabularnewline
42 & 21124.7 & 21000.9029344873 & 123.797065512663 \tabularnewline
43 & 21251 & 21058.8523273659 & 192.147672634122 \tabularnewline
44 & 21393 & 21408.0258405447 & -15.0258405446610 \tabularnewline
45 & 22145.2 & 22213.4936160070 & -68.2936160069619 \tabularnewline
46 & 20310.5 & 20148.6380267291 & 161.861973270915 \tabularnewline
47 & 23466.9 & 23871.1948001647 & -404.294800164737 \tabularnewline
48 & 21264.6 & 21161.9101466183 & 102.689853381722 \tabularnewline
49 & 18388.1 & 18314.2185426281 & 73.88145737191 \tabularnewline
50 & 22635.4 & 22331.8042357966 & 303.595764203360 \tabularnewline
51 & 22014.3 & 22136.3189661285 & -122.018966128496 \tabularnewline
52 & 18422.7 & 18908.7403386469 & -486.040338646923 \tabularnewline
53 & 16120.2 & 15832.4053150528 & 287.794684947233 \tabularnewline
54 & 16037.7 & 16037.0886681523 & 0.61133184765021 \tabularnewline
55 & 16410.7 & 16274.5350647181 & 136.164935281864 \tabularnewline
56 & 17749.8 & 17881.3223548804 & -131.522354880374 \tabularnewline
57 & 16349.8 & 16547.4746921438 & -197.674692143770 \tabularnewline
58 & 15662.3 & 15846.1773757038 & -183.877375703828 \tabularnewline
59 & 17782.3 & 18389.0055662847 & -606.70556628469 \tabularnewline
60 & 16398.9 & 16587.9344877167 & -189.034487716680 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57624&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]13132.1[/C][C]13374.5435285132[/C][C]-242.443528513171[/C][/ROW]
[ROW][C]2[/C][C]17665.9[/C][C]17756.5906665248[/C][C]-90.6906665247915[/C][/ROW]
[ROW][C]3[/C][C]16913[/C][C]16628.8557288557[/C][C]284.144271144301[/C][/ROW]
[ROW][C]4[/C][C]17318.8[/C][C]16661.6235390381[/C][C]657.17646096185[/C][/ROW]
[ROW][C]5[/C][C]16224.2[/C][C]15797.8469838831[/C][C]426.353016116904[/C][/ROW]
[ROW][C]6[/C][C]15469.6[/C][C]15433.8136810472[/C][C]35.7863189528278[/C][/ROW]
[ROW][C]7[/C][C]16557.5[/C][C]16594.2254178370[/C][C]-36.7254178369717[/C][/ROW]
[ROW][C]8[/C][C]19414.8[/C][C]19122.0180234703[/C][C]292.781976529684[/C][/ROW]
[ROW][C]9[/C][C]17335[/C][C]17026.2365278406[/C][C]308.763472159387[/C][/ROW]
[ROW][C]10[/C][C]16525.2[/C][C]16865.2870880178[/C][C]-340.08708801779[/C][/ROW]
[ROW][C]11[/C][C]18160.4[/C][C]18370.2305923358[/C][C]-209.830592335791[/C][/ROW]
[ROW][C]12[/C][C]15553.8[/C][C]15242.6353928400[/C][C]311.164607159966[/C][/ROW]
[ROW][C]13[/C][C]15262.2[/C][C]15266.8958478458[/C][C]-4.69584784577068[/C][/ROW]
[ROW][C]14[/C][C]18581[/C][C]18944.9846219714[/C][C]-363.98462197138[/C][/ROW]
[ROW][C]15[/C][C]17564.1[/C][C]17538.8230101920[/C][C]25.2769898079814[/C][/ROW]
[ROW][C]16[/C][C]18948.6[/C][C]19244.0077305915[/C][C]-295.407730591493[/C][/ROW]
[ROW][C]17[/C][C]17187.8[/C][C]17911.0631451091[/C][C]-723.263145109091[/C][/ROW]
[ROW][C]18[/C][C]17564.8[/C][C]18197.2422642506[/C][C]-632.442264250582[/C][/ROW]
[ROW][C]19[/C][C]17668.4[/C][C]18179.2664877534[/C][C]-510.866487753367[/C][/ROW]
[ROW][C]20[/C][C]20811.7[/C][C]21258.3418449411[/C][C]-446.641844941102[/C][/ROW]
[ROW][C]21[/C][C]17257.8[/C][C]17591.3426118629[/C][C]-333.542611862872[/C][/ROW]
[ROW][C]22[/C][C]18984.2[/C][C]18999.5477255381[/C][C]-15.3477255381472[/C][/ROW]
[ROW][C]23[/C][C]20532.6[/C][C]19874.6011697904[/C][C]657.99883020955[/C][/ROW]
[ROW][C]24[/C][C]17082.3[/C][C]17437.1410017129[/C][C]-354.841001712891[/C][/ROW]
[ROW][C]25[/C][C]16894.9[/C][C]17181.1179170530[/C][C]-286.21791705297[/C][/ROW]
[ROW][C]26[/C][C]20274.9[/C][C]20374.9774180131[/C][C]-100.077418013102[/C][/ROW]
[ROW][C]27[/C][C]20078.6[/C][C]20054.463200949[/C][C]24.1367990509895[/C][/ROW]
[ROW][C]28[/C][C]19900.9[/C][C]19914.8519920732[/C][C]-13.9519920731896[/C][/ROW]
[ROW][C]29[/C][C]17012.2[/C][C]16350.7802825978[/C][C]661.41971740217[/C][/ROW]
[ROW][C]30[/C][C]19642.9[/C][C]19170.6524520626[/C][C]472.24754793744[/C][/ROW]
[ROW][C]31[/C][C]19024[/C][C]18804.7207023256[/C][C]219.279297674351[/C][/ROW]
[ROW][C]32[/C][C]21691[/C][C]21390.5919361635[/C][C]300.408063836454[/C][/ROW]
[ROW][C]33[/C][C]18835.9[/C][C]18545.1525521458[/C][C]290.747447854217[/C][/ROW]
[ROW][C]34[/C][C]19873.4[/C][C]19495.9497840112[/C][C]377.450215988850[/C][/ROW]
[ROW][C]35[/C][C]21468.2[/C][C]20905.3678714243[/C][C]562.832128575668[/C][/ROW]
[ROW][C]36[/C][C]19406.8[/C][C]19276.7789711121[/C][C]130.021028887884[/C][/ROW]
[ROW][C]37[/C][C]18385.3[/C][C]17925.82416396[/C][C]459.475836040002[/C][/ROW]
[ROW][C]38[/C][C]20739.3[/C][C]20488.1430576941[/C][C]251.156942305913[/C][/ROW]
[ROW][C]39[/C][C]22268.3[/C][C]22479.8390938748[/C][C]-211.539093874776[/C][/ROW]
[ROW][C]40[/C][C]21569[/C][C]21430.7763996502[/C][C]138.223600349756[/C][/ROW]
[ROW][C]41[/C][C]17514.8[/C][C]18167.1042733572[/C][C]-652.304273357216[/C][/ROW]
[ROW][C]42[/C][C]21124.7[/C][C]21000.9029344873[/C][C]123.797065512663[/C][/ROW]
[ROW][C]43[/C][C]21251[/C][C]21058.8523273659[/C][C]192.147672634122[/C][/ROW]
[ROW][C]44[/C][C]21393[/C][C]21408.0258405447[/C][C]-15.0258405446610[/C][/ROW]
[ROW][C]45[/C][C]22145.2[/C][C]22213.4936160070[/C][C]-68.2936160069619[/C][/ROW]
[ROW][C]46[/C][C]20310.5[/C][C]20148.6380267291[/C][C]161.861973270915[/C][/ROW]
[ROW][C]47[/C][C]23466.9[/C][C]23871.1948001647[/C][C]-404.294800164737[/C][/ROW]
[ROW][C]48[/C][C]21264.6[/C][C]21161.9101466183[/C][C]102.689853381722[/C][/ROW]
[ROW][C]49[/C][C]18388.1[/C][C]18314.2185426281[/C][C]73.88145737191[/C][/ROW]
[ROW][C]50[/C][C]22635.4[/C][C]22331.8042357966[/C][C]303.595764203360[/C][/ROW]
[ROW][C]51[/C][C]22014.3[/C][C]22136.3189661285[/C][C]-122.018966128496[/C][/ROW]
[ROW][C]52[/C][C]18422.7[/C][C]18908.7403386469[/C][C]-486.040338646923[/C][/ROW]
[ROW][C]53[/C][C]16120.2[/C][C]15832.4053150528[/C][C]287.794684947233[/C][/ROW]
[ROW][C]54[/C][C]16037.7[/C][C]16037.0886681523[/C][C]0.61133184765021[/C][/ROW]
[ROW][C]55[/C][C]16410.7[/C][C]16274.5350647181[/C][C]136.164935281864[/C][/ROW]
[ROW][C]56[/C][C]17749.8[/C][C]17881.3223548804[/C][C]-131.522354880374[/C][/ROW]
[ROW][C]57[/C][C]16349.8[/C][C]16547.4746921438[/C][C]-197.674692143770[/C][/ROW]
[ROW][C]58[/C][C]15662.3[/C][C]15846.1773757038[/C][C]-183.877375703828[/C][/ROW]
[ROW][C]59[/C][C]17782.3[/C][C]18389.0055662847[/C][C]-606.70556628469[/C][/ROW]
[ROW][C]60[/C][C]16398.9[/C][C]16587.9344877167[/C][C]-189.034487716680[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57624&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57624&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
113132.113374.5435285132-242.443528513171
217665.917756.5906665248-90.6906665247915
31691316628.8557288557284.144271144301
417318.816661.6235390381657.17646096185
516224.215797.8469838831426.353016116904
615469.615433.813681047235.7863189528278
716557.516594.2254178370-36.7254178369717
819414.819122.0180234703292.781976529684
91733517026.2365278406308.763472159387
1016525.216865.2870880178-340.08708801779
1118160.418370.2305923358-209.830592335791
1215553.815242.6353928400311.164607159966
1315262.215266.8958478458-4.69584784577068
141858118944.9846219714-363.98462197138
1517564.117538.823010192025.2769898079814
1618948.619244.0077305915-295.407730591493
1717187.817911.0631451091-723.263145109091
1817564.818197.2422642506-632.442264250582
1917668.418179.2664877534-510.866487753367
2020811.721258.3418449411-446.641844941102
2117257.817591.3426118629-333.542611862872
2218984.218999.5477255381-15.3477255381472
2320532.619874.6011697904657.99883020955
2417082.317437.1410017129-354.841001712891
2516894.917181.1179170530-286.21791705297
2620274.920374.9774180131-100.077418013102
2720078.620054.46320094924.1367990509895
2819900.919914.8519920732-13.9519920731896
2917012.216350.7802825978661.41971740217
3019642.919170.6524520626472.24754793744
311902418804.7207023256219.279297674351
322169121390.5919361635300.408063836454
3318835.918545.1525521458290.747447854217
3419873.419495.9497840112377.450215988850
3521468.220905.3678714243562.832128575668
3619406.819276.7789711121130.021028887884
3718385.317925.82416396459.475836040002
3820739.320488.1430576941251.156942305913
3922268.322479.8390938748-211.539093874776
402156921430.7763996502138.223600349756
4117514.818167.1042733572-652.304273357216
4221124.721000.9029344873123.797065512663
432125121058.8523273659192.147672634122
442139321408.0258405447-15.0258405446610
4522145.222213.4936160070-68.2936160069619
4620310.520148.6380267291161.861973270915
4723466.923871.1948001647-404.294800164737
4821264.621161.9101466183102.689853381722
4918388.118314.218542628173.88145737191
5022635.422331.8042357966303.595764203360
5122014.322136.3189661285-122.018966128496
5218422.718908.7403386469-486.040338646923
5316120.215832.4053150528287.794684947233
5416037.716037.08866815230.61133184765021
5516410.716274.5350647181136.164935281864
5617749.817881.3223548804-131.522354880374
5716349.816547.4746921438-197.674692143770
5815662.315846.1773757038-183.877375703828
5917782.318389.0055662847-606.70556628469
6016398.916587.9344877167-189.034487716680







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.3718766970280550.743753394056110.628123302971945
170.4588161620162180.9176323240324360.541183837983782
180.3696720501526740.7393441003053480.630327949847326
190.2824229526120300.5648459052240610.71757704738797
200.2088159218038130.4176318436076270.791184078196187
210.213495462814870.426990925629740.78650453718513
220.4025481416117960.8050962832235920.597451858388204
230.7813366707351360.4373266585297280.218663329264864
240.7227446451677730.5545107096644540.277255354832227
250.7161350472503860.5677299054992280.283864952749614
260.7007189021609430.5985621956781130.299281097839057
270.643889277086090.7122214458278190.356110722913909
280.5543445858585970.8913108282828060.445655414141403
290.7519921324151240.4960157351697530.248007867584876
300.8585500237719550.2828999524560910.141449976228046
310.8370268356699960.3259463286600080.162973164330004
320.812720665132150.37455866973570.18727933486785
330.7996905370397960.4006189259204090.200309462960204
340.7928608824449760.4142782351100470.207139117555024
350.9643418343848140.07131633123037130.0356581656151857
360.9426650438523430.1146699122953150.0573349561476574
370.9444115171077940.1111769657844110.0555884828922057
380.910192270919380.179615458161240.08980772908062
390.8553390861041050.2893218277917890.144660913895895
400.8624506399182330.2750987201635350.137549360081767
410.999801298817640.0003974023647184380.000198701182359219
420.9990308539440920.001938292111815410.000969146055907706
430.9974194198076820.005161160384635360.00258058019231768
440.9860637238072410.02787255238551740.0139362761927587

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.371876697028055 & 0.74375339405611 & 0.628123302971945 \tabularnewline
17 & 0.458816162016218 & 0.917632324032436 & 0.541183837983782 \tabularnewline
18 & 0.369672050152674 & 0.739344100305348 & 0.630327949847326 \tabularnewline
19 & 0.282422952612030 & 0.564845905224061 & 0.71757704738797 \tabularnewline
20 & 0.208815921803813 & 0.417631843607627 & 0.791184078196187 \tabularnewline
21 & 0.21349546281487 & 0.42699092562974 & 0.78650453718513 \tabularnewline
22 & 0.402548141611796 & 0.805096283223592 & 0.597451858388204 \tabularnewline
23 & 0.781336670735136 & 0.437326658529728 & 0.218663329264864 \tabularnewline
24 & 0.722744645167773 & 0.554510709664454 & 0.277255354832227 \tabularnewline
25 & 0.716135047250386 & 0.567729905499228 & 0.283864952749614 \tabularnewline
26 & 0.700718902160943 & 0.598562195678113 & 0.299281097839057 \tabularnewline
27 & 0.64388927708609 & 0.712221445827819 & 0.356110722913909 \tabularnewline
28 & 0.554344585858597 & 0.891310828282806 & 0.445655414141403 \tabularnewline
29 & 0.751992132415124 & 0.496015735169753 & 0.248007867584876 \tabularnewline
30 & 0.858550023771955 & 0.282899952456091 & 0.141449976228046 \tabularnewline
31 & 0.837026835669996 & 0.325946328660008 & 0.162973164330004 \tabularnewline
32 & 0.81272066513215 & 0.3745586697357 & 0.18727933486785 \tabularnewline
33 & 0.799690537039796 & 0.400618925920409 & 0.200309462960204 \tabularnewline
34 & 0.792860882444976 & 0.414278235110047 & 0.207139117555024 \tabularnewline
35 & 0.964341834384814 & 0.0713163312303713 & 0.0356581656151857 \tabularnewline
36 & 0.942665043852343 & 0.114669912295315 & 0.0573349561476574 \tabularnewline
37 & 0.944411517107794 & 0.111176965784411 & 0.0555884828922057 \tabularnewline
38 & 0.91019227091938 & 0.17961545816124 & 0.08980772908062 \tabularnewline
39 & 0.855339086104105 & 0.289321827791789 & 0.144660913895895 \tabularnewline
40 & 0.862450639918233 & 0.275098720163535 & 0.137549360081767 \tabularnewline
41 & 0.99980129881764 & 0.000397402364718438 & 0.000198701182359219 \tabularnewline
42 & 0.999030853944092 & 0.00193829211181541 & 0.000969146055907706 \tabularnewline
43 & 0.997419419807682 & 0.00516116038463536 & 0.00258058019231768 \tabularnewline
44 & 0.986063723807241 & 0.0278725523855174 & 0.0139362761927587 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57624&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]16[/C][C]0.371876697028055[/C][C]0.74375339405611[/C][C]0.628123302971945[/C][/ROW]
[ROW][C]17[/C][C]0.458816162016218[/C][C]0.917632324032436[/C][C]0.541183837983782[/C][/ROW]
[ROW][C]18[/C][C]0.369672050152674[/C][C]0.739344100305348[/C][C]0.630327949847326[/C][/ROW]
[ROW][C]19[/C][C]0.282422952612030[/C][C]0.564845905224061[/C][C]0.71757704738797[/C][/ROW]
[ROW][C]20[/C][C]0.208815921803813[/C][C]0.417631843607627[/C][C]0.791184078196187[/C][/ROW]
[ROW][C]21[/C][C]0.21349546281487[/C][C]0.42699092562974[/C][C]0.78650453718513[/C][/ROW]
[ROW][C]22[/C][C]0.402548141611796[/C][C]0.805096283223592[/C][C]0.597451858388204[/C][/ROW]
[ROW][C]23[/C][C]0.781336670735136[/C][C]0.437326658529728[/C][C]0.218663329264864[/C][/ROW]
[ROW][C]24[/C][C]0.722744645167773[/C][C]0.554510709664454[/C][C]0.277255354832227[/C][/ROW]
[ROW][C]25[/C][C]0.716135047250386[/C][C]0.567729905499228[/C][C]0.283864952749614[/C][/ROW]
[ROW][C]26[/C][C]0.700718902160943[/C][C]0.598562195678113[/C][C]0.299281097839057[/C][/ROW]
[ROW][C]27[/C][C]0.64388927708609[/C][C]0.712221445827819[/C][C]0.356110722913909[/C][/ROW]
[ROW][C]28[/C][C]0.554344585858597[/C][C]0.891310828282806[/C][C]0.445655414141403[/C][/ROW]
[ROW][C]29[/C][C]0.751992132415124[/C][C]0.496015735169753[/C][C]0.248007867584876[/C][/ROW]
[ROW][C]30[/C][C]0.858550023771955[/C][C]0.282899952456091[/C][C]0.141449976228046[/C][/ROW]
[ROW][C]31[/C][C]0.837026835669996[/C][C]0.325946328660008[/C][C]0.162973164330004[/C][/ROW]
[ROW][C]32[/C][C]0.81272066513215[/C][C]0.3745586697357[/C][C]0.18727933486785[/C][/ROW]
[ROW][C]33[/C][C]0.799690537039796[/C][C]0.400618925920409[/C][C]0.200309462960204[/C][/ROW]
[ROW][C]34[/C][C]0.792860882444976[/C][C]0.414278235110047[/C][C]0.207139117555024[/C][/ROW]
[ROW][C]35[/C][C]0.964341834384814[/C][C]0.0713163312303713[/C][C]0.0356581656151857[/C][/ROW]
[ROW][C]36[/C][C]0.942665043852343[/C][C]0.114669912295315[/C][C]0.0573349561476574[/C][/ROW]
[ROW][C]37[/C][C]0.944411517107794[/C][C]0.111176965784411[/C][C]0.0555884828922057[/C][/ROW]
[ROW][C]38[/C][C]0.91019227091938[/C][C]0.17961545816124[/C][C]0.08980772908062[/C][/ROW]
[ROW][C]39[/C][C]0.855339086104105[/C][C]0.289321827791789[/C][C]0.144660913895895[/C][/ROW]
[ROW][C]40[/C][C]0.862450639918233[/C][C]0.275098720163535[/C][C]0.137549360081767[/C][/ROW]
[ROW][C]41[/C][C]0.99980129881764[/C][C]0.000397402364718438[/C][C]0.000198701182359219[/C][/ROW]
[ROW][C]42[/C][C]0.999030853944092[/C][C]0.00193829211181541[/C][C]0.000969146055907706[/C][/ROW]
[ROW][C]43[/C][C]0.997419419807682[/C][C]0.00516116038463536[/C][C]0.00258058019231768[/C][/ROW]
[ROW][C]44[/C][C]0.986063723807241[/C][C]0.0278725523855174[/C][C]0.0139362761927587[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57624&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57624&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
160.3718766970280550.743753394056110.628123302971945
170.4588161620162180.9176323240324360.541183837983782
180.3696720501526740.7393441003053480.630327949847326
190.2824229526120300.5648459052240610.71757704738797
200.2088159218038130.4176318436076270.791184078196187
210.213495462814870.426990925629740.78650453718513
220.4025481416117960.8050962832235920.597451858388204
230.7813366707351360.4373266585297280.218663329264864
240.7227446451677730.5545107096644540.277255354832227
250.7161350472503860.5677299054992280.283864952749614
260.7007189021609430.5985621956781130.299281097839057
270.643889277086090.7122214458278190.356110722913909
280.5543445858585970.8913108282828060.445655414141403
290.7519921324151240.4960157351697530.248007867584876
300.8585500237719550.2828999524560910.141449976228046
310.8370268356699960.3259463286600080.162973164330004
320.812720665132150.37455866973570.18727933486785
330.7996905370397960.4006189259204090.200309462960204
340.7928608824449760.4142782351100470.207139117555024
350.9643418343848140.07131633123037130.0356581656151857
360.9426650438523430.1146699122953150.0573349561476574
370.9444115171077940.1111769657844110.0555884828922057
380.910192270919380.179615458161240.08980772908062
390.8553390861041050.2893218277917890.144660913895895
400.8624506399182330.2750987201635350.137549360081767
410.999801298817640.0003974023647184380.000198701182359219
420.9990308539440920.001938292111815410.000969146055907706
430.9974194198076820.005161160384635360.00258058019231768
440.9860637238072410.02787255238551740.0139362761927587







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.103448275862069NOK
5% type I error level40.137931034482759NOK
10% type I error level50.172413793103448NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57624&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.103448275862069NOK
5% type I error level40.137931034482759NOK
10% type I error level50.172413793103448NOK



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