Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 18 Dec 2010 17:15:14 +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/Dec/18/t12926928896ltif501wuq1w0b.htm/, Retrieved Tue, 30 Apr 2024 06:06:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=112115, Retrieved Tue, 30 Apr 2024 06:06:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact207
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  D    [Multiple Regression] [Paper TSA Multipl...] [2010-12-18 12:51:38] [945bcebba5e7ac34a41d6888338a1ba9]
-   P       [Multiple Regression] [Paper TSA Multipl...] [2010-12-18 13:26:55] [945bcebba5e7ac34a41d6888338a1ba9]
-    D        [Multiple Regression] [Paper TSA Multipl...] [2010-12-18 15:54:00] [945bcebba5e7ac34a41d6888338a1ba9]
-    D            [Multiple Regression] [Paper TSA Multipl...] [2010-12-18 17:15:14] [514029464b0621595fe21c9fa38c7009] [Current]
Feedback Forum

Post a new message
Dataseries X:
80900	0	35600	36700
174000	0	80900	35600
169422	0	174000	80900
153452	0	169422	174000
173570	0	153452	169422
193036	0	173570	153452
174652	0	193036	173570
105367	0	174652	193036
95963	0	105367	174652
82896	0	95963	105367
121747	0	82896	95963
120196	0	121747	82896
103983	0	120196	121747
81103	0	103983	120196
70944	0	81103	103983
57248	0	70944	81103
47830	0	57248	70944
60095	0	47830	57248
60931	0	60095	47830
82955	0	60931	60095
99559	0	82955	60931
77911	0	99559	82955
70753	0	77911	99559
69287	0	70753	77911
88426	0	69287	70753
91756	1	88426	69287
96933	1	91756	88426
174484	1	96933	91756
232595	1	174484	96933
266197	1	232595	174484
290435	1	266197	232595
304296	1	290435	266197
322310	1	304296	290435
415555	1	322310	304296
490042	1	415555	322310
545109	1	490042	415555
545720	1	545109	490042
505944	1	545720	545109
477930	1	505944	545720
466106	1	477930	505944
424476	1	466106	477930
383018	1	424476	466106
364696	1	383018	424476
391116	1	364696	383018
435721	1	391116	364696
511435	1	435721	391116
553997	1	511435	435721
555252	1	553997	511435
544897	1	555252	553997
540562	1	544897	555252
505282	1	540562	544897
507626	1	505282	540562
474427	1	507626	505282
469740	1	474427	507626
491480	1	469740	474427
538974	1	491480	469740
576612	1	538974	491480




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112115&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'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
Werklozen[t] = + 7083.61427550935 + 27769.2857221576Oliecrisis[t] + 1.4167263043587Y1[t] -0.534958190946436Y2[t] + 496.549472685872t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werklozen[t] =  +  7083.61427550935 +  27769.2857221576Oliecrisis[t] +  1.4167263043587Y1[t] -0.534958190946436Y2[t] +  496.549472685872t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werklozen[t] =  +  7083.61427550935 +  27769.2857221576Oliecrisis[t] +  1.4167263043587Y1[t] -0.534958190946436Y2[t] +  496.549472685872t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112115&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
Werklozen[t] = + 7083.61427550935 + 27769.2857221576Oliecrisis[t] + 1.4167263043587Y1[t] -0.534958190946436Y2[t] + 496.549472685872t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7083.614275509358192.6137030.86460.3912110.195605
Oliecrisis27769.285722157615843.5596311.75270.0855450.042772
Y11.41672630435870.11703212.105400
Y2-0.5349581909464360.113884-4.69742e-051e-05
t496.549472685872543.7941210.91310.3653940.182697

\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) & 7083.61427550935 & 8192.613703 & 0.8646 & 0.391211 & 0.195605 \tabularnewline
Oliecrisis & 27769.2857221576 & 15843.559631 & 1.7527 & 0.085545 & 0.042772 \tabularnewline
Y1 & 1.4167263043587 & 0.117032 & 12.1054 & 0 & 0 \tabularnewline
Y2 & -0.534958190946436 & 0.113884 & -4.6974 & 2e-05 & 1e-05 \tabularnewline
t & 496.549472685872 & 543.794121 & 0.9131 & 0.365394 & 0.182697 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&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]7083.61427550935[/C][C]8192.613703[/C][C]0.8646[/C][C]0.391211[/C][C]0.195605[/C][/ROW]
[ROW][C]Oliecrisis[/C][C]27769.2857221576[/C][C]15843.559631[/C][C]1.7527[/C][C]0.085545[/C][C]0.042772[/C][/ROW]
[ROW][C]Y1[/C][C]1.4167263043587[/C][C]0.117032[/C][C]12.1054[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.534958190946436[/C][C]0.113884[/C][C]-4.6974[/C][C]2e-05[/C][C]1e-05[/C][/ROW]
[ROW][C]t[/C][C]496.549472685872[/C][C]543.794121[/C][C]0.9131[/C][C]0.365394[/C][C]0.182697[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112115&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)7083.614275509358192.6137030.86460.3912110.195605
Oliecrisis27769.285722157615843.5596311.75270.0855450.042772
Y11.41672630435870.11703212.105400
Y2-0.5349581909464360.113884-4.69742e-051e-05
t496.549472685872543.7941210.91310.3653940.182697







Multiple Linear Regression - Regression Statistics
Multiple R0.98987994432335
R-squared0.979862304173597
Adjusted R-squared0.978313250648489
F-TEST (value)632.555485198821
F-TEST (DF numerator)4
F-TEST (DF denominator)52
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation27974.9745735618
Sum Squared Residuals40695158524.3543

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.98987994432335 \tabularnewline
R-squared & 0.979862304173597 \tabularnewline
Adjusted R-squared & 0.978313250648489 \tabularnewline
F-TEST (value) & 632.555485198821 \tabularnewline
F-TEST (DF numerator) & 4 \tabularnewline
F-TEST (DF denominator) & 52 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 27974.9745735618 \tabularnewline
Sum Squared Residuals & 40695158524.3543 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.98987994432335[/C][/ROW]
[ROW][C]R-squared[/C][C]0.979862304173597[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.978313250648489[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]632.555485198821[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]4[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]52[/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]27974.9745735618[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]40695158524.3543[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112115&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.98987994432335
R-squared0.979862304173597
Adjusted R-squared0.978313250648489
F-TEST (value)632.555485198821
F-TEST (DF numerator)4
F-TEST (DF denominator)52
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation27974.9745735618
Sum Squared Residuals40695158524.3543







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18090038382.654575630342517.3454243697
2174000103645.35964580670354.6403541936
3169422211805.522004414-42383.5220044136
4153452156011.690878632-2559.69087863203
5173570136332.15986886237237.8401311377
6193036173873.69144205119162.3085579491
7174652191185.946269923-16533.9462699228
8105367155223.903218315-49856.9032183151
99596367397.24207586828565.757924132
108289691635.4756420885-8739.47564208845
1112174778650.409323379543096.5906766205
12120196141178.491127802-20982.4911278022
13103983118694.037425968-14711.0374259677
148110397050.923480244-15947.923480244
157094473806.0522590175-2862.05225901745
165724872149.9226145778-14901.9226145778
174783058677.6288845918-10847.6288845918
186009553158.23740602986936.76259397016
196093176069.1712440086-15138.1712440086
208295571188.841695180411766.1583048196
2199559102440.146247431-2881.14624743093
2277911114678.100080284-36767.1000802843
237075375622.9127137385-4869.9127137385
246928777559.3102174333-8272.31021743326
258842679808.16965872398617.83034127613
2691756135972.978300616-44216.9783006159
2796933130948.661550292-34015.6615502924
28174484136998.19232479237485.8076752084
29232595244593.804872269-11998.8048722691
30266197285931.193951456-19734.1939514561
31290435302945.625269115-12510.6252691146
32304296319805.121774664-15509.1217746644
33322310326972.597919906-4662.59791990642
34415555345574.99955460169980.0004453987
35490042468537.45642550521504.5435744953
36545109524679.52161615620429.4783838436
37545720563343.507721936-17623.5077219355
38505944535247.134265737-29303.1342657372
39477930479065.118801583-1135.11880158323
40466106461151.994587054954.00541294999
41424476459883.490998172-35407.4909981721
42383018407727.070070156-24709.0700701561
43364696371759.289905839-7063.28990583926
44391116368476.87671032222639.1232896775
45435721416204.83911868619516.1608813144
46511435465760.86999248645674.1300075137
47553997549661.6247662214335.37523377918
48555252569953.054735703-14701.0547357031
49544897549458.705197297-4561.70519729692
50540562534613.6812587115948.31874128929
51505282534508.214269252-29226.214269252
52507626487341.70348191620284.2965180842
53474427510032.384388609-35605.3843886088
54469740462241.0952833127498.90471668822
55491480473857.52554869917622.4744513008
56538974507661.05391910931312.946080891
57576612563813.61141983112798.3885801686

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 80900 & 38382.6545756303 & 42517.3454243697 \tabularnewline
2 & 174000 & 103645.359645806 & 70354.6403541936 \tabularnewline
3 & 169422 & 211805.522004414 & -42383.5220044136 \tabularnewline
4 & 153452 & 156011.690878632 & -2559.69087863203 \tabularnewline
5 & 173570 & 136332.159868862 & 37237.8401311377 \tabularnewline
6 & 193036 & 173873.691442051 & 19162.3085579491 \tabularnewline
7 & 174652 & 191185.946269923 & -16533.9462699228 \tabularnewline
8 & 105367 & 155223.903218315 & -49856.9032183151 \tabularnewline
9 & 95963 & 67397.242075868 & 28565.757924132 \tabularnewline
10 & 82896 & 91635.4756420885 & -8739.47564208845 \tabularnewline
11 & 121747 & 78650.4093233795 & 43096.5906766205 \tabularnewline
12 & 120196 & 141178.491127802 & -20982.4911278022 \tabularnewline
13 & 103983 & 118694.037425968 & -14711.0374259677 \tabularnewline
14 & 81103 & 97050.923480244 & -15947.923480244 \tabularnewline
15 & 70944 & 73806.0522590175 & -2862.05225901745 \tabularnewline
16 & 57248 & 72149.9226145778 & -14901.9226145778 \tabularnewline
17 & 47830 & 58677.6288845918 & -10847.6288845918 \tabularnewline
18 & 60095 & 53158.2374060298 & 6936.76259397016 \tabularnewline
19 & 60931 & 76069.1712440086 & -15138.1712440086 \tabularnewline
20 & 82955 & 71188.8416951804 & 11766.1583048196 \tabularnewline
21 & 99559 & 102440.146247431 & -2881.14624743093 \tabularnewline
22 & 77911 & 114678.100080284 & -36767.1000802843 \tabularnewline
23 & 70753 & 75622.9127137385 & -4869.9127137385 \tabularnewline
24 & 69287 & 77559.3102174333 & -8272.31021743326 \tabularnewline
25 & 88426 & 79808.1696587239 & 8617.83034127613 \tabularnewline
26 & 91756 & 135972.978300616 & -44216.9783006159 \tabularnewline
27 & 96933 & 130948.661550292 & -34015.6615502924 \tabularnewline
28 & 174484 & 136998.192324792 & 37485.8076752084 \tabularnewline
29 & 232595 & 244593.804872269 & -11998.8048722691 \tabularnewline
30 & 266197 & 285931.193951456 & -19734.1939514561 \tabularnewline
31 & 290435 & 302945.625269115 & -12510.6252691146 \tabularnewline
32 & 304296 & 319805.121774664 & -15509.1217746644 \tabularnewline
33 & 322310 & 326972.597919906 & -4662.59791990642 \tabularnewline
34 & 415555 & 345574.999554601 & 69980.0004453987 \tabularnewline
35 & 490042 & 468537.456425505 & 21504.5435744953 \tabularnewline
36 & 545109 & 524679.521616156 & 20429.4783838436 \tabularnewline
37 & 545720 & 563343.507721936 & -17623.5077219355 \tabularnewline
38 & 505944 & 535247.134265737 & -29303.1342657372 \tabularnewline
39 & 477930 & 479065.118801583 & -1135.11880158323 \tabularnewline
40 & 466106 & 461151.99458705 & 4954.00541294999 \tabularnewline
41 & 424476 & 459883.490998172 & -35407.4909981721 \tabularnewline
42 & 383018 & 407727.070070156 & -24709.0700701561 \tabularnewline
43 & 364696 & 371759.289905839 & -7063.28990583926 \tabularnewline
44 & 391116 & 368476.876710322 & 22639.1232896775 \tabularnewline
45 & 435721 & 416204.839118686 & 19516.1608813144 \tabularnewline
46 & 511435 & 465760.869992486 & 45674.1300075137 \tabularnewline
47 & 553997 & 549661.624766221 & 4335.37523377918 \tabularnewline
48 & 555252 & 569953.054735703 & -14701.0547357031 \tabularnewline
49 & 544897 & 549458.705197297 & -4561.70519729692 \tabularnewline
50 & 540562 & 534613.681258711 & 5948.31874128929 \tabularnewline
51 & 505282 & 534508.214269252 & -29226.214269252 \tabularnewline
52 & 507626 & 487341.703481916 & 20284.2965180842 \tabularnewline
53 & 474427 & 510032.384388609 & -35605.3843886088 \tabularnewline
54 & 469740 & 462241.095283312 & 7498.90471668822 \tabularnewline
55 & 491480 & 473857.525548699 & 17622.4744513008 \tabularnewline
56 & 538974 & 507661.053919109 & 31312.946080891 \tabularnewline
57 & 576612 & 563813.611419831 & 12798.3885801686 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&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]80900[/C][C]38382.6545756303[/C][C]42517.3454243697[/C][/ROW]
[ROW][C]2[/C][C]174000[/C][C]103645.359645806[/C][C]70354.6403541936[/C][/ROW]
[ROW][C]3[/C][C]169422[/C][C]211805.522004414[/C][C]-42383.5220044136[/C][/ROW]
[ROW][C]4[/C][C]153452[/C][C]156011.690878632[/C][C]-2559.69087863203[/C][/ROW]
[ROW][C]5[/C][C]173570[/C][C]136332.159868862[/C][C]37237.8401311377[/C][/ROW]
[ROW][C]6[/C][C]193036[/C][C]173873.691442051[/C][C]19162.3085579491[/C][/ROW]
[ROW][C]7[/C][C]174652[/C][C]191185.946269923[/C][C]-16533.9462699228[/C][/ROW]
[ROW][C]8[/C][C]105367[/C][C]155223.903218315[/C][C]-49856.9032183151[/C][/ROW]
[ROW][C]9[/C][C]95963[/C][C]67397.242075868[/C][C]28565.757924132[/C][/ROW]
[ROW][C]10[/C][C]82896[/C][C]91635.4756420885[/C][C]-8739.47564208845[/C][/ROW]
[ROW][C]11[/C][C]121747[/C][C]78650.4093233795[/C][C]43096.5906766205[/C][/ROW]
[ROW][C]12[/C][C]120196[/C][C]141178.491127802[/C][C]-20982.4911278022[/C][/ROW]
[ROW][C]13[/C][C]103983[/C][C]118694.037425968[/C][C]-14711.0374259677[/C][/ROW]
[ROW][C]14[/C][C]81103[/C][C]97050.923480244[/C][C]-15947.923480244[/C][/ROW]
[ROW][C]15[/C][C]70944[/C][C]73806.0522590175[/C][C]-2862.05225901745[/C][/ROW]
[ROW][C]16[/C][C]57248[/C][C]72149.9226145778[/C][C]-14901.9226145778[/C][/ROW]
[ROW][C]17[/C][C]47830[/C][C]58677.6288845918[/C][C]-10847.6288845918[/C][/ROW]
[ROW][C]18[/C][C]60095[/C][C]53158.2374060298[/C][C]6936.76259397016[/C][/ROW]
[ROW][C]19[/C][C]60931[/C][C]76069.1712440086[/C][C]-15138.1712440086[/C][/ROW]
[ROW][C]20[/C][C]82955[/C][C]71188.8416951804[/C][C]11766.1583048196[/C][/ROW]
[ROW][C]21[/C][C]99559[/C][C]102440.146247431[/C][C]-2881.14624743093[/C][/ROW]
[ROW][C]22[/C][C]77911[/C][C]114678.100080284[/C][C]-36767.1000802843[/C][/ROW]
[ROW][C]23[/C][C]70753[/C][C]75622.9127137385[/C][C]-4869.9127137385[/C][/ROW]
[ROW][C]24[/C][C]69287[/C][C]77559.3102174333[/C][C]-8272.31021743326[/C][/ROW]
[ROW][C]25[/C][C]88426[/C][C]79808.1696587239[/C][C]8617.83034127613[/C][/ROW]
[ROW][C]26[/C][C]91756[/C][C]135972.978300616[/C][C]-44216.9783006159[/C][/ROW]
[ROW][C]27[/C][C]96933[/C][C]130948.661550292[/C][C]-34015.6615502924[/C][/ROW]
[ROW][C]28[/C][C]174484[/C][C]136998.192324792[/C][C]37485.8076752084[/C][/ROW]
[ROW][C]29[/C][C]232595[/C][C]244593.804872269[/C][C]-11998.8048722691[/C][/ROW]
[ROW][C]30[/C][C]266197[/C][C]285931.193951456[/C][C]-19734.1939514561[/C][/ROW]
[ROW][C]31[/C][C]290435[/C][C]302945.625269115[/C][C]-12510.6252691146[/C][/ROW]
[ROW][C]32[/C][C]304296[/C][C]319805.121774664[/C][C]-15509.1217746644[/C][/ROW]
[ROW][C]33[/C][C]322310[/C][C]326972.597919906[/C][C]-4662.59791990642[/C][/ROW]
[ROW][C]34[/C][C]415555[/C][C]345574.999554601[/C][C]69980.0004453987[/C][/ROW]
[ROW][C]35[/C][C]490042[/C][C]468537.456425505[/C][C]21504.5435744953[/C][/ROW]
[ROW][C]36[/C][C]545109[/C][C]524679.521616156[/C][C]20429.4783838436[/C][/ROW]
[ROW][C]37[/C][C]545720[/C][C]563343.507721936[/C][C]-17623.5077219355[/C][/ROW]
[ROW][C]38[/C][C]505944[/C][C]535247.134265737[/C][C]-29303.1342657372[/C][/ROW]
[ROW][C]39[/C][C]477930[/C][C]479065.118801583[/C][C]-1135.11880158323[/C][/ROW]
[ROW][C]40[/C][C]466106[/C][C]461151.99458705[/C][C]4954.00541294999[/C][/ROW]
[ROW][C]41[/C][C]424476[/C][C]459883.490998172[/C][C]-35407.4909981721[/C][/ROW]
[ROW][C]42[/C][C]383018[/C][C]407727.070070156[/C][C]-24709.0700701561[/C][/ROW]
[ROW][C]43[/C][C]364696[/C][C]371759.289905839[/C][C]-7063.28990583926[/C][/ROW]
[ROW][C]44[/C][C]391116[/C][C]368476.876710322[/C][C]22639.1232896775[/C][/ROW]
[ROW][C]45[/C][C]435721[/C][C]416204.839118686[/C][C]19516.1608813144[/C][/ROW]
[ROW][C]46[/C][C]511435[/C][C]465760.869992486[/C][C]45674.1300075137[/C][/ROW]
[ROW][C]47[/C][C]553997[/C][C]549661.624766221[/C][C]4335.37523377918[/C][/ROW]
[ROW][C]48[/C][C]555252[/C][C]569953.054735703[/C][C]-14701.0547357031[/C][/ROW]
[ROW][C]49[/C][C]544897[/C][C]549458.705197297[/C][C]-4561.70519729692[/C][/ROW]
[ROW][C]50[/C][C]540562[/C][C]534613.681258711[/C][C]5948.31874128929[/C][/ROW]
[ROW][C]51[/C][C]505282[/C][C]534508.214269252[/C][C]-29226.214269252[/C][/ROW]
[ROW][C]52[/C][C]507626[/C][C]487341.703481916[/C][C]20284.2965180842[/C][/ROW]
[ROW][C]53[/C][C]474427[/C][C]510032.384388609[/C][C]-35605.3843886088[/C][/ROW]
[ROW][C]54[/C][C]469740[/C][C]462241.095283312[/C][C]7498.90471668822[/C][/ROW]
[ROW][C]55[/C][C]491480[/C][C]473857.525548699[/C][C]17622.4744513008[/C][/ROW]
[ROW][C]56[/C][C]538974[/C][C]507661.053919109[/C][C]31312.946080891[/C][/ROW]
[ROW][C]57[/C][C]576612[/C][C]563813.611419831[/C][C]12798.3885801686[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112115&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
18090038382.654575630342517.3454243697
2174000103645.35964580670354.6403541936
3169422211805.522004414-42383.5220044136
4153452156011.690878632-2559.69087863203
5173570136332.15986886237237.8401311377
6193036173873.69144205119162.3085579491
7174652191185.946269923-16533.9462699228
8105367155223.903218315-49856.9032183151
99596367397.24207586828565.757924132
108289691635.4756420885-8739.47564208845
1112174778650.409323379543096.5906766205
12120196141178.491127802-20982.4911278022
13103983118694.037425968-14711.0374259677
148110397050.923480244-15947.923480244
157094473806.0522590175-2862.05225901745
165724872149.9226145778-14901.9226145778
174783058677.6288845918-10847.6288845918
186009553158.23740602986936.76259397016
196093176069.1712440086-15138.1712440086
208295571188.841695180411766.1583048196
2199559102440.146247431-2881.14624743093
2277911114678.100080284-36767.1000802843
237075375622.9127137385-4869.9127137385
246928777559.3102174333-8272.31021743326
258842679808.16965872398617.83034127613
2691756135972.978300616-44216.9783006159
2796933130948.661550292-34015.6615502924
28174484136998.19232479237485.8076752084
29232595244593.804872269-11998.8048722691
30266197285931.193951456-19734.1939514561
31290435302945.625269115-12510.6252691146
32304296319805.121774664-15509.1217746644
33322310326972.597919906-4662.59791990642
34415555345574.99955460169980.0004453987
35490042468537.45642550521504.5435744953
36545109524679.52161615620429.4783838436
37545720563343.507721936-17623.5077219355
38505944535247.134265737-29303.1342657372
39477930479065.118801583-1135.11880158323
40466106461151.994587054954.00541294999
41424476459883.490998172-35407.4909981721
42383018407727.070070156-24709.0700701561
43364696371759.289905839-7063.28990583926
44391116368476.87671032222639.1232896775
45435721416204.83911868619516.1608813144
46511435465760.86999248645674.1300075137
47553997549661.6247662214335.37523377918
48555252569953.054735703-14701.0547357031
49544897549458.705197297-4561.70519729692
50540562534613.6812587115948.31874128929
51505282534508.214269252-29226.214269252
52507626487341.70348191620284.2965180842
53474427510032.384388609-35605.3843886088
54469740462241.0952833127498.90471668822
55491480473857.52554869917622.4744513008
56538974507661.05391910931312.946080891
57576612563813.61141983112798.3885801686







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.9674347440526450.06513051189471080.0325652559473554
90.9447169542496920.1105660915006150.0552830457503077
100.9028357892013050.1943284215973890.0971642107986946
110.9403397676793820.1193204646412360.059660232320618
120.9017933012774470.1964133974451070.0982066987225533
130.8468330942535940.3063338114928130.153166905746406
140.7839743292123710.4320513415752580.216025670787629
150.707215879869080.585568240261840.29278412013092
160.6247413447270380.7505173105459230.375258655272962
170.5317026646242540.936594670751490.468297335375746
180.4693732205147580.9387464410295160.530626779485242
190.3808386424214680.7616772848429360.619161357578532
200.3964567330485550.792913466097110.603543266951445
210.3719971189346010.7439942378692030.628002881065398
220.3284902664219230.6569805328438460.671509733578077
230.2742931697888990.5485863395777990.7257068302111
240.2221811520985030.4443623041970070.777818847901497
250.2185148375732940.4370296751465880.781485162426706
260.2260751002622030.4521502005244060.773924899737797
270.2441199670420790.4882399340841580.755880032957921
280.5236511131701270.9526977736597450.476348886829873
290.5817474521331560.8365050957336890.418252547866844
300.6555758797007430.6888482405985140.344424120299257
310.7030257245754580.5939485508490830.296974275424542
320.772572764204260.4548544715914810.22742723579574
330.8319583228725230.3360833542549540.168041677127477
340.970925083235190.0581498335296210.0290749167648105
350.960733279063530.07853344187294170.0392667209364709
360.952324116537560.09535176692488030.0476758834624402
370.930904231243330.1381915375133380.069095768756669
380.9075374868159760.1849250263680480.092462513184024
390.9022474233664940.1955051532670130.0977525766335064
400.9169944777547440.1660110444905120.0830055222452562
410.8987175315506390.2025649368987220.101282468449361
420.869754845172150.26049030965570.13024515482785
430.839808049535270.3203839009294610.16019195046473
440.781444448599690.4371111028006210.21855555140031
450.7532855407322560.4934289185354880.246714459267744
460.7277297502527660.5445404994944680.272270249747234
470.617714129138570.764571741722860.38228587086143
480.4818852415408890.9637704830817780.518114758459111
490.3776500079259310.7553000158518620.622349992074069

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
8 & 0.967434744052645 & 0.0651305118947108 & 0.0325652559473554 \tabularnewline
9 & 0.944716954249692 & 0.110566091500615 & 0.0552830457503077 \tabularnewline
10 & 0.902835789201305 & 0.194328421597389 & 0.0971642107986946 \tabularnewline
11 & 0.940339767679382 & 0.119320464641236 & 0.059660232320618 \tabularnewline
12 & 0.901793301277447 & 0.196413397445107 & 0.0982066987225533 \tabularnewline
13 & 0.846833094253594 & 0.306333811492813 & 0.153166905746406 \tabularnewline
14 & 0.783974329212371 & 0.432051341575258 & 0.216025670787629 \tabularnewline
15 & 0.70721587986908 & 0.58556824026184 & 0.29278412013092 \tabularnewline
16 & 0.624741344727038 & 0.750517310545923 & 0.375258655272962 \tabularnewline
17 & 0.531702664624254 & 0.93659467075149 & 0.468297335375746 \tabularnewline
18 & 0.469373220514758 & 0.938746441029516 & 0.530626779485242 \tabularnewline
19 & 0.380838642421468 & 0.761677284842936 & 0.619161357578532 \tabularnewline
20 & 0.396456733048555 & 0.79291346609711 & 0.603543266951445 \tabularnewline
21 & 0.371997118934601 & 0.743994237869203 & 0.628002881065398 \tabularnewline
22 & 0.328490266421923 & 0.656980532843846 & 0.671509733578077 \tabularnewline
23 & 0.274293169788899 & 0.548586339577799 & 0.7257068302111 \tabularnewline
24 & 0.222181152098503 & 0.444362304197007 & 0.777818847901497 \tabularnewline
25 & 0.218514837573294 & 0.437029675146588 & 0.781485162426706 \tabularnewline
26 & 0.226075100262203 & 0.452150200524406 & 0.773924899737797 \tabularnewline
27 & 0.244119967042079 & 0.488239934084158 & 0.755880032957921 \tabularnewline
28 & 0.523651113170127 & 0.952697773659745 & 0.476348886829873 \tabularnewline
29 & 0.581747452133156 & 0.836505095733689 & 0.418252547866844 \tabularnewline
30 & 0.655575879700743 & 0.688848240598514 & 0.344424120299257 \tabularnewline
31 & 0.703025724575458 & 0.593948550849083 & 0.296974275424542 \tabularnewline
32 & 0.77257276420426 & 0.454854471591481 & 0.22742723579574 \tabularnewline
33 & 0.831958322872523 & 0.336083354254954 & 0.168041677127477 \tabularnewline
34 & 0.97092508323519 & 0.058149833529621 & 0.0290749167648105 \tabularnewline
35 & 0.96073327906353 & 0.0785334418729417 & 0.0392667209364709 \tabularnewline
36 & 0.95232411653756 & 0.0953517669248803 & 0.0476758834624402 \tabularnewline
37 & 0.93090423124333 & 0.138191537513338 & 0.069095768756669 \tabularnewline
38 & 0.907537486815976 & 0.184925026368048 & 0.092462513184024 \tabularnewline
39 & 0.902247423366494 & 0.195505153267013 & 0.0977525766335064 \tabularnewline
40 & 0.916994477754744 & 0.166011044490512 & 0.0830055222452562 \tabularnewline
41 & 0.898717531550639 & 0.202564936898722 & 0.101282468449361 \tabularnewline
42 & 0.86975484517215 & 0.2604903096557 & 0.13024515482785 \tabularnewline
43 & 0.83980804953527 & 0.320383900929461 & 0.16019195046473 \tabularnewline
44 & 0.78144444859969 & 0.437111102800621 & 0.21855555140031 \tabularnewline
45 & 0.753285540732256 & 0.493428918535488 & 0.246714459267744 \tabularnewline
46 & 0.727729750252766 & 0.544540499494468 & 0.272270249747234 \tabularnewline
47 & 0.61771412913857 & 0.76457174172286 & 0.38228587086143 \tabularnewline
48 & 0.481885241540889 & 0.963770483081778 & 0.518114758459111 \tabularnewline
49 & 0.377650007925931 & 0.755300015851862 & 0.622349992074069 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&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]8[/C][C]0.967434744052645[/C][C]0.0651305118947108[/C][C]0.0325652559473554[/C][/ROW]
[ROW][C]9[/C][C]0.944716954249692[/C][C]0.110566091500615[/C][C]0.0552830457503077[/C][/ROW]
[ROW][C]10[/C][C]0.902835789201305[/C][C]0.194328421597389[/C][C]0.0971642107986946[/C][/ROW]
[ROW][C]11[/C][C]0.940339767679382[/C][C]0.119320464641236[/C][C]0.059660232320618[/C][/ROW]
[ROW][C]12[/C][C]0.901793301277447[/C][C]0.196413397445107[/C][C]0.0982066987225533[/C][/ROW]
[ROW][C]13[/C][C]0.846833094253594[/C][C]0.306333811492813[/C][C]0.153166905746406[/C][/ROW]
[ROW][C]14[/C][C]0.783974329212371[/C][C]0.432051341575258[/C][C]0.216025670787629[/C][/ROW]
[ROW][C]15[/C][C]0.70721587986908[/C][C]0.58556824026184[/C][C]0.29278412013092[/C][/ROW]
[ROW][C]16[/C][C]0.624741344727038[/C][C]0.750517310545923[/C][C]0.375258655272962[/C][/ROW]
[ROW][C]17[/C][C]0.531702664624254[/C][C]0.93659467075149[/C][C]0.468297335375746[/C][/ROW]
[ROW][C]18[/C][C]0.469373220514758[/C][C]0.938746441029516[/C][C]0.530626779485242[/C][/ROW]
[ROW][C]19[/C][C]0.380838642421468[/C][C]0.761677284842936[/C][C]0.619161357578532[/C][/ROW]
[ROW][C]20[/C][C]0.396456733048555[/C][C]0.79291346609711[/C][C]0.603543266951445[/C][/ROW]
[ROW][C]21[/C][C]0.371997118934601[/C][C]0.743994237869203[/C][C]0.628002881065398[/C][/ROW]
[ROW][C]22[/C][C]0.328490266421923[/C][C]0.656980532843846[/C][C]0.671509733578077[/C][/ROW]
[ROW][C]23[/C][C]0.274293169788899[/C][C]0.548586339577799[/C][C]0.7257068302111[/C][/ROW]
[ROW][C]24[/C][C]0.222181152098503[/C][C]0.444362304197007[/C][C]0.777818847901497[/C][/ROW]
[ROW][C]25[/C][C]0.218514837573294[/C][C]0.437029675146588[/C][C]0.781485162426706[/C][/ROW]
[ROW][C]26[/C][C]0.226075100262203[/C][C]0.452150200524406[/C][C]0.773924899737797[/C][/ROW]
[ROW][C]27[/C][C]0.244119967042079[/C][C]0.488239934084158[/C][C]0.755880032957921[/C][/ROW]
[ROW][C]28[/C][C]0.523651113170127[/C][C]0.952697773659745[/C][C]0.476348886829873[/C][/ROW]
[ROW][C]29[/C][C]0.581747452133156[/C][C]0.836505095733689[/C][C]0.418252547866844[/C][/ROW]
[ROW][C]30[/C][C]0.655575879700743[/C][C]0.688848240598514[/C][C]0.344424120299257[/C][/ROW]
[ROW][C]31[/C][C]0.703025724575458[/C][C]0.593948550849083[/C][C]0.296974275424542[/C][/ROW]
[ROW][C]32[/C][C]0.77257276420426[/C][C]0.454854471591481[/C][C]0.22742723579574[/C][/ROW]
[ROW][C]33[/C][C]0.831958322872523[/C][C]0.336083354254954[/C][C]0.168041677127477[/C][/ROW]
[ROW][C]34[/C][C]0.97092508323519[/C][C]0.058149833529621[/C][C]0.0290749167648105[/C][/ROW]
[ROW][C]35[/C][C]0.96073327906353[/C][C]0.0785334418729417[/C][C]0.0392667209364709[/C][/ROW]
[ROW][C]36[/C][C]0.95232411653756[/C][C]0.0953517669248803[/C][C]0.0476758834624402[/C][/ROW]
[ROW][C]37[/C][C]0.93090423124333[/C][C]0.138191537513338[/C][C]0.069095768756669[/C][/ROW]
[ROW][C]38[/C][C]0.907537486815976[/C][C]0.184925026368048[/C][C]0.092462513184024[/C][/ROW]
[ROW][C]39[/C][C]0.902247423366494[/C][C]0.195505153267013[/C][C]0.0977525766335064[/C][/ROW]
[ROW][C]40[/C][C]0.916994477754744[/C][C]0.166011044490512[/C][C]0.0830055222452562[/C][/ROW]
[ROW][C]41[/C][C]0.898717531550639[/C][C]0.202564936898722[/C][C]0.101282468449361[/C][/ROW]
[ROW][C]42[/C][C]0.86975484517215[/C][C]0.2604903096557[/C][C]0.13024515482785[/C][/ROW]
[ROW][C]43[/C][C]0.83980804953527[/C][C]0.320383900929461[/C][C]0.16019195046473[/C][/ROW]
[ROW][C]44[/C][C]0.78144444859969[/C][C]0.437111102800621[/C][C]0.21855555140031[/C][/ROW]
[ROW][C]45[/C][C]0.753285540732256[/C][C]0.493428918535488[/C][C]0.246714459267744[/C][/ROW]
[ROW][C]46[/C][C]0.727729750252766[/C][C]0.544540499494468[/C][C]0.272270249747234[/C][/ROW]
[ROW][C]47[/C][C]0.61771412913857[/C][C]0.76457174172286[/C][C]0.38228587086143[/C][/ROW]
[ROW][C]48[/C][C]0.481885241540889[/C][C]0.963770483081778[/C][C]0.518114758459111[/C][/ROW]
[ROW][C]49[/C][C]0.377650007925931[/C][C]0.755300015851862[/C][C]0.622349992074069[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112115&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
80.9674347440526450.06513051189471080.0325652559473554
90.9447169542496920.1105660915006150.0552830457503077
100.9028357892013050.1943284215973890.0971642107986946
110.9403397676793820.1193204646412360.059660232320618
120.9017933012774470.1964133974451070.0982066987225533
130.8468330942535940.3063338114928130.153166905746406
140.7839743292123710.4320513415752580.216025670787629
150.707215879869080.585568240261840.29278412013092
160.6247413447270380.7505173105459230.375258655272962
170.5317026646242540.936594670751490.468297335375746
180.4693732205147580.9387464410295160.530626779485242
190.3808386424214680.7616772848429360.619161357578532
200.3964567330485550.792913466097110.603543266951445
210.3719971189346010.7439942378692030.628002881065398
220.3284902664219230.6569805328438460.671509733578077
230.2742931697888990.5485863395777990.7257068302111
240.2221811520985030.4443623041970070.777818847901497
250.2185148375732940.4370296751465880.781485162426706
260.2260751002622030.4521502005244060.773924899737797
270.2441199670420790.4882399340841580.755880032957921
280.5236511131701270.9526977736597450.476348886829873
290.5817474521331560.8365050957336890.418252547866844
300.6555758797007430.6888482405985140.344424120299257
310.7030257245754580.5939485508490830.296974275424542
320.772572764204260.4548544715914810.22742723579574
330.8319583228725230.3360833542549540.168041677127477
340.970925083235190.0581498335296210.0290749167648105
350.960733279063530.07853344187294170.0392667209364709
360.952324116537560.09535176692488030.0476758834624402
370.930904231243330.1381915375133380.069095768756669
380.9075374868159760.1849250263680480.092462513184024
390.9022474233664940.1955051532670130.0977525766335064
400.9169944777547440.1660110444905120.0830055222452562
410.8987175315506390.2025649368987220.101282468449361
420.869754845172150.26049030965570.13024515482785
430.839808049535270.3203839009294610.16019195046473
440.781444448599690.4371111028006210.21855555140031
450.7532855407322560.4934289185354880.246714459267744
460.7277297502527660.5445404994944680.272270249747234
470.617714129138570.764571741722860.38228587086143
480.4818852415408890.9637704830817780.518114758459111
490.3776500079259310.7553000158518620.622349992074069







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level40.0952380952380952OK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 4 & 0.0952380952380952 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112115&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]4[/C][C]0.0952380952380952[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112115&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level40.0952380952380952OK



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}