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 13:26:55 +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/t12926787800u4yv6ev8n1goyd.htm/, Retrieved Tue, 30 Apr 2024 00:28:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111952, Retrieved Tue, 30 Apr 2024 00:28:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact185
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] [514029464b0621595fe21c9fa38c7009] [Current]
-    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] [945bcebba5e7ac34a41d6888338a1ba9]
- RMPD            [(Partial) Autocorrelation Function] [Paper TSA ACF] [2010-12-18 17:47:34] [945bcebba5e7ac34a41d6888338a1ba9]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111952&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111952&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Werklozen[t] = + 14396.70103154 + 142652.134415666Oliecrisis[t] + 6084.1668575355t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werklozen[t] =  +  14396.70103154 +  142652.134415666Oliecrisis[t] +  6084.1668575355t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111952&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werklozen[t] =  +  14396.70103154 +  142652.134415666Oliecrisis[t] +  6084.1668575355t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111952&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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] = + 14396.70103154 + 142652.134415666Oliecrisis[t] + 6084.1668575355t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)14396.7010315425857.4217140.55680.5799010.289951
Oliecrisis142652.13441566646732.3520153.05250.0034670.001734
t6084.16685753551367.1730854.45024.1e-052.1e-05

\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) & 14396.70103154 & 25857.421714 & 0.5568 & 0.579901 & 0.289951 \tabularnewline
Oliecrisis & 142652.134415666 & 46732.352015 & 3.0525 & 0.003467 & 0.001734 \tabularnewline
t & 6084.1668575355 & 1367.173085 & 4.4502 & 4.1e-05 & 2.1e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111952&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]14396.70103154[/C][C]25857.421714[/C][C]0.5568[/C][C]0.579901[/C][C]0.289951[/C][/ROW]
[ROW][C]Oliecrisis[/C][C]142652.134415666[/C][C]46732.352015[/C][C]3.0525[/C][C]0.003467[/C][C]0.001734[/C][/ROW]
[ROW][C]t[/C][C]6084.1668575355[/C][C]1367.173085[/C][C]4.4502[/C][C]4.1e-05[/C][C]2.1e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111952&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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)14396.7010315425857.4217140.55680.5799010.289951
Oliecrisis142652.13441566646732.3520153.05250.0034670.001734
t6084.16685753551367.1730854.45024.1e-052.1e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.886720046261259
R-squared0.786272440441569
Adjusted R-squared0.778639313314482
F-TEST (value)103.007905849152
F-TEST (DF numerator)2
F-TEST (DF denominator)56
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation90336.9379592833
Sum Squared Residuals457002692152.126

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.886720046261259 \tabularnewline
R-squared & 0.786272440441569 \tabularnewline
Adjusted R-squared & 0.778639313314482 \tabularnewline
F-TEST (value) & 103.007905849152 \tabularnewline
F-TEST (DF numerator) & 2 \tabularnewline
F-TEST (DF denominator) & 56 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 90336.9379592833 \tabularnewline
Sum Squared Residuals & 457002692152.126 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111952&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.886720046261259[/C][/ROW]
[ROW][C]R-squared[/C][C]0.786272440441569[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.778639313314482[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]103.007905849152[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]2[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]56[/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]90336.9379592833[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]457002692152.126[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111952&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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.886720046261259
R-squared0.786272440441569
Adjusted R-squared0.778639313314482
F-TEST (value)103.007905849152
F-TEST (DF numerator)2
F-TEST (DF denominator)56
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation90336.9379592833
Sum Squared Residuals457002692152.126







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13670020480.867889075416219.1321109246
23560026565.03474661109034.96525338904
38090032649.201604146648250.7983958534
417400038733.368461682135266.631538318
516942244817.5353192175124604.464680782
615345250901.702176753102550.297823247
717357056985.8690342885116584.130965711
819303663070.035891824129965.964108176
917465269154.2027493595105497.797250640
1010536775238.36960689530128.6303931050
119596381322.536464430514640.4635355695
128289687406.703321966-4510.70332196605
1312174793490.870179501528256.1298204985
1412019699575.03703703720620.9629629630
15103983105659.203894573-1676.20389457255
1681103111743.370752108-30640.3707521080
1770944117827.537609644-46883.5376096435
1857248123911.704467179-66663.704467179
1947830129995.871324715-82165.8713247146
2060095136080.03818225-75985.03818225
2160931142164.205039786-81233.2050397855
2282955148248.371897321-65293.371897321
2399559154332.538754857-54773.5387548566
2477911160416.705612392-82505.705612392
2570753166500.872469928-95747.8724699276
2669287172585.039327463-103298.039327463
2788426178669.206184999-90243.2061849986
2891756327405.5074582-235649.507458200
2996933333489.674315735-236556.674315735
30174484339573.841173271-165089.841173271
31232595345658.008030806-113063.008030806
32266197351742.174888342-85545.1748883417
33290435357826.341745877-67391.3417458772
34304296363910.508603413-59614.5086034128
35322310369994.675460948-47684.6754609483
36415555376078.84231848439476.1576815162
37490042382163.009176019107878.990823981
38545109388247.176033555156861.823966445
39545720394331.34289109151388.657108910
40505944400415.509748626105528.490251374
41477930406499.67660616171430.3233938387
42466106412583.84346369753522.1565363032
43424476418668.0103212325807.98967876775
44383018424752.177178768-41734.1771787677
45364696430836.344036303-66140.3440363032
46391116436920.510893839-45804.5108938387
47435721443004.677751374-7283.67775137425
48511435449088.8446089162346.1553910903
49553997455173.01146644598823.9885335548
50555252461257.17832398193994.8216760193
51544897467341.34518151677555.6548184838
52540562473425.51203905267136.4879609483
53505282479509.67889658725772.3211034127
54507626485593.84575412322032.1542458772
55474427491678.012611658-17251.0126116583
56469740497762.179469194-28022.1794691938
57491480503846.346326729-12366.3463267293
58538974509930.51318426529043.4868157353
59576612516014.680041860597.3199581997

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 36700 & 20480.8678890754 & 16219.1321109246 \tabularnewline
2 & 35600 & 26565.0347466110 & 9034.96525338904 \tabularnewline
3 & 80900 & 32649.2016041466 & 48250.7983958534 \tabularnewline
4 & 174000 & 38733.368461682 & 135266.631538318 \tabularnewline
5 & 169422 & 44817.5353192175 & 124604.464680782 \tabularnewline
6 & 153452 & 50901.702176753 & 102550.297823247 \tabularnewline
7 & 173570 & 56985.8690342885 & 116584.130965711 \tabularnewline
8 & 193036 & 63070.035891824 & 129965.964108176 \tabularnewline
9 & 174652 & 69154.2027493595 & 105497.797250640 \tabularnewline
10 & 105367 & 75238.369606895 & 30128.6303931050 \tabularnewline
11 & 95963 & 81322.5364644305 & 14640.4635355695 \tabularnewline
12 & 82896 & 87406.703321966 & -4510.70332196605 \tabularnewline
13 & 121747 & 93490.8701795015 & 28256.1298204985 \tabularnewline
14 & 120196 & 99575.037037037 & 20620.9629629630 \tabularnewline
15 & 103983 & 105659.203894573 & -1676.20389457255 \tabularnewline
16 & 81103 & 111743.370752108 & -30640.3707521080 \tabularnewline
17 & 70944 & 117827.537609644 & -46883.5376096435 \tabularnewline
18 & 57248 & 123911.704467179 & -66663.704467179 \tabularnewline
19 & 47830 & 129995.871324715 & -82165.8713247146 \tabularnewline
20 & 60095 & 136080.03818225 & -75985.03818225 \tabularnewline
21 & 60931 & 142164.205039786 & -81233.2050397855 \tabularnewline
22 & 82955 & 148248.371897321 & -65293.371897321 \tabularnewline
23 & 99559 & 154332.538754857 & -54773.5387548566 \tabularnewline
24 & 77911 & 160416.705612392 & -82505.705612392 \tabularnewline
25 & 70753 & 166500.872469928 & -95747.8724699276 \tabularnewline
26 & 69287 & 172585.039327463 & -103298.039327463 \tabularnewline
27 & 88426 & 178669.206184999 & -90243.2061849986 \tabularnewline
28 & 91756 & 327405.5074582 & -235649.507458200 \tabularnewline
29 & 96933 & 333489.674315735 & -236556.674315735 \tabularnewline
30 & 174484 & 339573.841173271 & -165089.841173271 \tabularnewline
31 & 232595 & 345658.008030806 & -113063.008030806 \tabularnewline
32 & 266197 & 351742.174888342 & -85545.1748883417 \tabularnewline
33 & 290435 & 357826.341745877 & -67391.3417458772 \tabularnewline
34 & 304296 & 363910.508603413 & -59614.5086034128 \tabularnewline
35 & 322310 & 369994.675460948 & -47684.6754609483 \tabularnewline
36 & 415555 & 376078.842318484 & 39476.1576815162 \tabularnewline
37 & 490042 & 382163.009176019 & 107878.990823981 \tabularnewline
38 & 545109 & 388247.176033555 & 156861.823966445 \tabularnewline
39 & 545720 & 394331.34289109 & 151388.657108910 \tabularnewline
40 & 505944 & 400415.509748626 & 105528.490251374 \tabularnewline
41 & 477930 & 406499.676606161 & 71430.3233938387 \tabularnewline
42 & 466106 & 412583.843463697 & 53522.1565363032 \tabularnewline
43 & 424476 & 418668.010321232 & 5807.98967876775 \tabularnewline
44 & 383018 & 424752.177178768 & -41734.1771787677 \tabularnewline
45 & 364696 & 430836.344036303 & -66140.3440363032 \tabularnewline
46 & 391116 & 436920.510893839 & -45804.5108938387 \tabularnewline
47 & 435721 & 443004.677751374 & -7283.67775137425 \tabularnewline
48 & 511435 & 449088.84460891 & 62346.1553910903 \tabularnewline
49 & 553997 & 455173.011466445 & 98823.9885335548 \tabularnewline
50 & 555252 & 461257.178323981 & 93994.8216760193 \tabularnewline
51 & 544897 & 467341.345181516 & 77555.6548184838 \tabularnewline
52 & 540562 & 473425.512039052 & 67136.4879609483 \tabularnewline
53 & 505282 & 479509.678896587 & 25772.3211034127 \tabularnewline
54 & 507626 & 485593.845754123 & 22032.1542458772 \tabularnewline
55 & 474427 & 491678.012611658 & -17251.0126116583 \tabularnewline
56 & 469740 & 497762.179469194 & -28022.1794691938 \tabularnewline
57 & 491480 & 503846.346326729 & -12366.3463267293 \tabularnewline
58 & 538974 & 509930.513184265 & 29043.4868157353 \tabularnewline
59 & 576612 & 516014.6800418 & 60597.3199581997 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111952&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]36700[/C][C]20480.8678890754[/C][C]16219.1321109246[/C][/ROW]
[ROW][C]2[/C][C]35600[/C][C]26565.0347466110[/C][C]9034.96525338904[/C][/ROW]
[ROW][C]3[/C][C]80900[/C][C]32649.2016041466[/C][C]48250.7983958534[/C][/ROW]
[ROW][C]4[/C][C]174000[/C][C]38733.368461682[/C][C]135266.631538318[/C][/ROW]
[ROW][C]5[/C][C]169422[/C][C]44817.5353192175[/C][C]124604.464680782[/C][/ROW]
[ROW][C]6[/C][C]153452[/C][C]50901.702176753[/C][C]102550.297823247[/C][/ROW]
[ROW][C]7[/C][C]173570[/C][C]56985.8690342885[/C][C]116584.130965711[/C][/ROW]
[ROW][C]8[/C][C]193036[/C][C]63070.035891824[/C][C]129965.964108176[/C][/ROW]
[ROW][C]9[/C][C]174652[/C][C]69154.2027493595[/C][C]105497.797250640[/C][/ROW]
[ROW][C]10[/C][C]105367[/C][C]75238.369606895[/C][C]30128.6303931050[/C][/ROW]
[ROW][C]11[/C][C]95963[/C][C]81322.5364644305[/C][C]14640.4635355695[/C][/ROW]
[ROW][C]12[/C][C]82896[/C][C]87406.703321966[/C][C]-4510.70332196605[/C][/ROW]
[ROW][C]13[/C][C]121747[/C][C]93490.8701795015[/C][C]28256.1298204985[/C][/ROW]
[ROW][C]14[/C][C]120196[/C][C]99575.037037037[/C][C]20620.9629629630[/C][/ROW]
[ROW][C]15[/C][C]103983[/C][C]105659.203894573[/C][C]-1676.20389457255[/C][/ROW]
[ROW][C]16[/C][C]81103[/C][C]111743.370752108[/C][C]-30640.3707521080[/C][/ROW]
[ROW][C]17[/C][C]70944[/C][C]117827.537609644[/C][C]-46883.5376096435[/C][/ROW]
[ROW][C]18[/C][C]57248[/C][C]123911.704467179[/C][C]-66663.704467179[/C][/ROW]
[ROW][C]19[/C][C]47830[/C][C]129995.871324715[/C][C]-82165.8713247146[/C][/ROW]
[ROW][C]20[/C][C]60095[/C][C]136080.03818225[/C][C]-75985.03818225[/C][/ROW]
[ROW][C]21[/C][C]60931[/C][C]142164.205039786[/C][C]-81233.2050397855[/C][/ROW]
[ROW][C]22[/C][C]82955[/C][C]148248.371897321[/C][C]-65293.371897321[/C][/ROW]
[ROW][C]23[/C][C]99559[/C][C]154332.538754857[/C][C]-54773.5387548566[/C][/ROW]
[ROW][C]24[/C][C]77911[/C][C]160416.705612392[/C][C]-82505.705612392[/C][/ROW]
[ROW][C]25[/C][C]70753[/C][C]166500.872469928[/C][C]-95747.8724699276[/C][/ROW]
[ROW][C]26[/C][C]69287[/C][C]172585.039327463[/C][C]-103298.039327463[/C][/ROW]
[ROW][C]27[/C][C]88426[/C][C]178669.206184999[/C][C]-90243.2061849986[/C][/ROW]
[ROW][C]28[/C][C]91756[/C][C]327405.5074582[/C][C]-235649.507458200[/C][/ROW]
[ROW][C]29[/C][C]96933[/C][C]333489.674315735[/C][C]-236556.674315735[/C][/ROW]
[ROW][C]30[/C][C]174484[/C][C]339573.841173271[/C][C]-165089.841173271[/C][/ROW]
[ROW][C]31[/C][C]232595[/C][C]345658.008030806[/C][C]-113063.008030806[/C][/ROW]
[ROW][C]32[/C][C]266197[/C][C]351742.174888342[/C][C]-85545.1748883417[/C][/ROW]
[ROW][C]33[/C][C]290435[/C][C]357826.341745877[/C][C]-67391.3417458772[/C][/ROW]
[ROW][C]34[/C][C]304296[/C][C]363910.508603413[/C][C]-59614.5086034128[/C][/ROW]
[ROW][C]35[/C][C]322310[/C][C]369994.675460948[/C][C]-47684.6754609483[/C][/ROW]
[ROW][C]36[/C][C]415555[/C][C]376078.842318484[/C][C]39476.1576815162[/C][/ROW]
[ROW][C]37[/C][C]490042[/C][C]382163.009176019[/C][C]107878.990823981[/C][/ROW]
[ROW][C]38[/C][C]545109[/C][C]388247.176033555[/C][C]156861.823966445[/C][/ROW]
[ROW][C]39[/C][C]545720[/C][C]394331.34289109[/C][C]151388.657108910[/C][/ROW]
[ROW][C]40[/C][C]505944[/C][C]400415.509748626[/C][C]105528.490251374[/C][/ROW]
[ROW][C]41[/C][C]477930[/C][C]406499.676606161[/C][C]71430.3233938387[/C][/ROW]
[ROW][C]42[/C][C]466106[/C][C]412583.843463697[/C][C]53522.1565363032[/C][/ROW]
[ROW][C]43[/C][C]424476[/C][C]418668.010321232[/C][C]5807.98967876775[/C][/ROW]
[ROW][C]44[/C][C]383018[/C][C]424752.177178768[/C][C]-41734.1771787677[/C][/ROW]
[ROW][C]45[/C][C]364696[/C][C]430836.344036303[/C][C]-66140.3440363032[/C][/ROW]
[ROW][C]46[/C][C]391116[/C][C]436920.510893839[/C][C]-45804.5108938387[/C][/ROW]
[ROW][C]47[/C][C]435721[/C][C]443004.677751374[/C][C]-7283.67775137425[/C][/ROW]
[ROW][C]48[/C][C]511435[/C][C]449088.84460891[/C][C]62346.1553910903[/C][/ROW]
[ROW][C]49[/C][C]553997[/C][C]455173.011466445[/C][C]98823.9885335548[/C][/ROW]
[ROW][C]50[/C][C]555252[/C][C]461257.178323981[/C][C]93994.8216760193[/C][/ROW]
[ROW][C]51[/C][C]544897[/C][C]467341.345181516[/C][C]77555.6548184838[/C][/ROW]
[ROW][C]52[/C][C]540562[/C][C]473425.512039052[/C][C]67136.4879609483[/C][/ROW]
[ROW][C]53[/C][C]505282[/C][C]479509.678896587[/C][C]25772.3211034127[/C][/ROW]
[ROW][C]54[/C][C]507626[/C][C]485593.845754123[/C][C]22032.1542458772[/C][/ROW]
[ROW][C]55[/C][C]474427[/C][C]491678.012611658[/C][C]-17251.0126116583[/C][/ROW]
[ROW][C]56[/C][C]469740[/C][C]497762.179469194[/C][C]-28022.1794691938[/C][/ROW]
[ROW][C]57[/C][C]491480[/C][C]503846.346326729[/C][C]-12366.3463267293[/C][/ROW]
[ROW][C]58[/C][C]538974[/C][C]509930.513184265[/C][C]29043.4868157353[/C][/ROW]
[ROW][C]59[/C][C]576612[/C][C]516014.6800418[/C][C]60597.3199581997[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111952&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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
13670020480.867889075416219.1321109246
23560026565.03474661109034.96525338904
38090032649.201604146648250.7983958534
417400038733.368461682135266.631538318
516942244817.5353192175124604.464680782
615345250901.702176753102550.297823247
717357056985.8690342885116584.130965711
819303663070.035891824129965.964108176
917465269154.2027493595105497.797250640
1010536775238.36960689530128.6303931050
119596381322.536464430514640.4635355695
128289687406.703321966-4510.70332196605
1312174793490.870179501528256.1298204985
1412019699575.03703703720620.9629629630
15103983105659.203894573-1676.20389457255
1681103111743.370752108-30640.3707521080
1770944117827.537609644-46883.5376096435
1857248123911.704467179-66663.704467179
1947830129995.871324715-82165.8713247146
2060095136080.03818225-75985.03818225
2160931142164.205039786-81233.2050397855
2282955148248.371897321-65293.371897321
2399559154332.538754857-54773.5387548566
2477911160416.705612392-82505.705612392
2570753166500.872469928-95747.8724699276
2669287172585.039327463-103298.039327463
2788426178669.206184999-90243.2061849986
2891756327405.5074582-235649.507458200
2996933333489.674315735-236556.674315735
30174484339573.841173271-165089.841173271
31232595345658.008030806-113063.008030806
32266197351742.174888342-85545.1748883417
33290435357826.341745877-67391.3417458772
34304296363910.508603413-59614.5086034128
35322310369994.675460948-47684.6754609483
36415555376078.84231848439476.1576815162
37490042382163.009176019107878.990823981
38545109388247.176033555156861.823966445
39545720394331.34289109151388.657108910
40505944400415.509748626105528.490251374
41477930406499.67660616171430.3233938387
42466106412583.84346369753522.1565363032
43424476418668.0103212325807.98967876775
44383018424752.177178768-41734.1771787677
45364696430836.344036303-66140.3440363032
46391116436920.510893839-45804.5108938387
47435721443004.677751374-7283.67775137425
48511435449088.8446089162346.1553910903
49553997455173.01146644598823.9885335548
50555252461257.17832398193994.8216760193
51544897467341.34518151677555.6548184838
52540562473425.51203905267136.4879609483
53505282479509.67889658725772.3211034127
54507626485593.84575412322032.1542458772
55474427491678.012611658-17251.0126116583
56469740497762.179469194-28022.1794691938
57491480503846.346326729-12366.3463267293
58538974509930.51318426529043.4868157353
59576612516014.680041860597.3199581997







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.1021580055830880.2043160111661750.897841994416912
70.0561111135799370.1122222271598740.943888886420063
80.02987841762158570.05975683524317130.970121582378414
90.02963712441228730.05927424882457460.970362875587713
100.1150927746050730.2301855492101460.884907225394927
110.1639837266830.3279674533660.836016273317
120.1836890432679730.3673780865359470.816310956732026
130.1444247012441890.2888494024883790.85557529875581
140.1128610842658130.2257221685316250.887138915734187
150.09019296718183470.1803859343636690.909807032818165
160.07620460407610870.1524092081522170.923795395923891
170.0620415493500450.124083098700090.937958450649955
180.04973784531080570.09947569062161150.950262154689194
190.03794475342698790.07588950685397580.962055246573012
200.02439288161178490.04878576322356980.975607118388215
210.01464730507645780.02929461015291560.985352694923542
220.008457861617666360.01691572323533270.991542138382334
230.005243974098826680.01048794819765340.994756025901173
240.002792098619790080.005584197239580170.99720790138021
250.001417536514786110.002835073029572210.998582463485214
260.0006935536926697270.001387107385339450.99930644630733
270.0003497889206247180.0006995778412494360.999650211079375
280.0004752994150195610.0009505988300391210.99952470058498
290.001273671292390000.002547342584780000.99872632870761
300.004271478881591670.008542957763183350.995728521118408
310.0170609174465410.0341218348930820.982939082553459
320.05352063877280420.1070412775456080.946479361227196
330.1302818962193300.2605637924386600.86971810378067
340.2646552712047820.5293105424095640.735344728795218
350.4734771336259740.9469542672519470.526522866374026
360.68240849017870.6351830196425990.317591509821299
370.85598911222850.2880217755430020.144010887771501
380.9623924835931580.07521503281368460.0376075164068423
390.990491001228380.01901799754323870.00950899877161933
400.9942761692519420.01144766149611570.00572383074805784
410.9940435629165760.01191287416684810.00595643708342403
420.9924522080777840.01509558384443290.00754779192221647
430.9857321319836930.02853573603261340.0142678680163067
440.9788404049756850.0423191900486290.0211595950243145
450.9853918908246240.02921621835075180.0146081091753759
460.9936039778439160.01279204431216740.00639602215608368
470.9971224886243280.005755022751343790.00287751137567190
480.9940937975918650.01181240481626990.00590620240813497
490.9881471752209080.02370564955818340.0118528247790917
500.9795842994069030.0408314011861940.020415700593097
510.9664759150230250.06704816995395080.0335240849769754
520.9627749983405860.07445000331882820.0372250016594141
530.9298381522815270.1403236954369470.0701618477184734

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
6 & 0.102158005583088 & 0.204316011166175 & 0.897841994416912 \tabularnewline
7 & 0.056111113579937 & 0.112222227159874 & 0.943888886420063 \tabularnewline
8 & 0.0298784176215857 & 0.0597568352431713 & 0.970121582378414 \tabularnewline
9 & 0.0296371244122873 & 0.0592742488245746 & 0.970362875587713 \tabularnewline
10 & 0.115092774605073 & 0.230185549210146 & 0.884907225394927 \tabularnewline
11 & 0.163983726683 & 0.327967453366 & 0.836016273317 \tabularnewline
12 & 0.183689043267973 & 0.367378086535947 & 0.816310956732026 \tabularnewline
13 & 0.144424701244189 & 0.288849402488379 & 0.85557529875581 \tabularnewline
14 & 0.112861084265813 & 0.225722168531625 & 0.887138915734187 \tabularnewline
15 & 0.0901929671818347 & 0.180385934363669 & 0.909807032818165 \tabularnewline
16 & 0.0762046040761087 & 0.152409208152217 & 0.923795395923891 \tabularnewline
17 & 0.062041549350045 & 0.12408309870009 & 0.937958450649955 \tabularnewline
18 & 0.0497378453108057 & 0.0994756906216115 & 0.950262154689194 \tabularnewline
19 & 0.0379447534269879 & 0.0758895068539758 & 0.962055246573012 \tabularnewline
20 & 0.0243928816117849 & 0.0487857632235698 & 0.975607118388215 \tabularnewline
21 & 0.0146473050764578 & 0.0292946101529156 & 0.985352694923542 \tabularnewline
22 & 0.00845786161766636 & 0.0169157232353327 & 0.991542138382334 \tabularnewline
23 & 0.00524397409882668 & 0.0104879481976534 & 0.994756025901173 \tabularnewline
24 & 0.00279209861979008 & 0.00558419723958017 & 0.99720790138021 \tabularnewline
25 & 0.00141753651478611 & 0.00283507302957221 & 0.998582463485214 \tabularnewline
26 & 0.000693553692669727 & 0.00138710738533945 & 0.99930644630733 \tabularnewline
27 & 0.000349788920624718 & 0.000699577841249436 & 0.999650211079375 \tabularnewline
28 & 0.000475299415019561 & 0.000950598830039121 & 0.99952470058498 \tabularnewline
29 & 0.00127367129239000 & 0.00254734258478000 & 0.99872632870761 \tabularnewline
30 & 0.00427147888159167 & 0.00854295776318335 & 0.995728521118408 \tabularnewline
31 & 0.017060917446541 & 0.034121834893082 & 0.982939082553459 \tabularnewline
32 & 0.0535206387728042 & 0.107041277545608 & 0.946479361227196 \tabularnewline
33 & 0.130281896219330 & 0.260563792438660 & 0.86971810378067 \tabularnewline
34 & 0.264655271204782 & 0.529310542409564 & 0.735344728795218 \tabularnewline
35 & 0.473477133625974 & 0.946954267251947 & 0.526522866374026 \tabularnewline
36 & 0.6824084901787 & 0.635183019642599 & 0.317591509821299 \tabularnewline
37 & 0.8559891122285 & 0.288021775543002 & 0.144010887771501 \tabularnewline
38 & 0.962392483593158 & 0.0752150328136846 & 0.0376075164068423 \tabularnewline
39 & 0.99049100122838 & 0.0190179975432387 & 0.00950899877161933 \tabularnewline
40 & 0.994276169251942 & 0.0114476614961157 & 0.00572383074805784 \tabularnewline
41 & 0.994043562916576 & 0.0119128741668481 & 0.00595643708342403 \tabularnewline
42 & 0.992452208077784 & 0.0150955838444329 & 0.00754779192221647 \tabularnewline
43 & 0.985732131983693 & 0.0285357360326134 & 0.0142678680163067 \tabularnewline
44 & 0.978840404975685 & 0.042319190048629 & 0.0211595950243145 \tabularnewline
45 & 0.985391890824624 & 0.0292162183507518 & 0.0146081091753759 \tabularnewline
46 & 0.993603977843916 & 0.0127920443121674 & 0.00639602215608368 \tabularnewline
47 & 0.997122488624328 & 0.00575502275134379 & 0.00287751137567190 \tabularnewline
48 & 0.994093797591865 & 0.0118124048162699 & 0.00590620240813497 \tabularnewline
49 & 0.988147175220908 & 0.0237056495581834 & 0.0118528247790917 \tabularnewline
50 & 0.979584299406903 & 0.040831401186194 & 0.020415700593097 \tabularnewline
51 & 0.966475915023025 & 0.0670481699539508 & 0.0335240849769754 \tabularnewline
52 & 0.962774998340586 & 0.0744500033188282 & 0.0372250016594141 \tabularnewline
53 & 0.929838152281527 & 0.140323695436947 & 0.0701618477184734 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111952&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]6[/C][C]0.102158005583088[/C][C]0.204316011166175[/C][C]0.897841994416912[/C][/ROW]
[ROW][C]7[/C][C]0.056111113579937[/C][C]0.112222227159874[/C][C]0.943888886420063[/C][/ROW]
[ROW][C]8[/C][C]0.0298784176215857[/C][C]0.0597568352431713[/C][C]0.970121582378414[/C][/ROW]
[ROW][C]9[/C][C]0.0296371244122873[/C][C]0.0592742488245746[/C][C]0.970362875587713[/C][/ROW]
[ROW][C]10[/C][C]0.115092774605073[/C][C]0.230185549210146[/C][C]0.884907225394927[/C][/ROW]
[ROW][C]11[/C][C]0.163983726683[/C][C]0.327967453366[/C][C]0.836016273317[/C][/ROW]
[ROW][C]12[/C][C]0.183689043267973[/C][C]0.367378086535947[/C][C]0.816310956732026[/C][/ROW]
[ROW][C]13[/C][C]0.144424701244189[/C][C]0.288849402488379[/C][C]0.85557529875581[/C][/ROW]
[ROW][C]14[/C][C]0.112861084265813[/C][C]0.225722168531625[/C][C]0.887138915734187[/C][/ROW]
[ROW][C]15[/C][C]0.0901929671818347[/C][C]0.180385934363669[/C][C]0.909807032818165[/C][/ROW]
[ROW][C]16[/C][C]0.0762046040761087[/C][C]0.152409208152217[/C][C]0.923795395923891[/C][/ROW]
[ROW][C]17[/C][C]0.062041549350045[/C][C]0.12408309870009[/C][C]0.937958450649955[/C][/ROW]
[ROW][C]18[/C][C]0.0497378453108057[/C][C]0.0994756906216115[/C][C]0.950262154689194[/C][/ROW]
[ROW][C]19[/C][C]0.0379447534269879[/C][C]0.0758895068539758[/C][C]0.962055246573012[/C][/ROW]
[ROW][C]20[/C][C]0.0243928816117849[/C][C]0.0487857632235698[/C][C]0.975607118388215[/C][/ROW]
[ROW][C]21[/C][C]0.0146473050764578[/C][C]0.0292946101529156[/C][C]0.985352694923542[/C][/ROW]
[ROW][C]22[/C][C]0.00845786161766636[/C][C]0.0169157232353327[/C][C]0.991542138382334[/C][/ROW]
[ROW][C]23[/C][C]0.00524397409882668[/C][C]0.0104879481976534[/C][C]0.994756025901173[/C][/ROW]
[ROW][C]24[/C][C]0.00279209861979008[/C][C]0.00558419723958017[/C][C]0.99720790138021[/C][/ROW]
[ROW][C]25[/C][C]0.00141753651478611[/C][C]0.00283507302957221[/C][C]0.998582463485214[/C][/ROW]
[ROW][C]26[/C][C]0.000693553692669727[/C][C]0.00138710738533945[/C][C]0.99930644630733[/C][/ROW]
[ROW][C]27[/C][C]0.000349788920624718[/C][C]0.000699577841249436[/C][C]0.999650211079375[/C][/ROW]
[ROW][C]28[/C][C]0.000475299415019561[/C][C]0.000950598830039121[/C][C]0.99952470058498[/C][/ROW]
[ROW][C]29[/C][C]0.00127367129239000[/C][C]0.00254734258478000[/C][C]0.99872632870761[/C][/ROW]
[ROW][C]30[/C][C]0.00427147888159167[/C][C]0.00854295776318335[/C][C]0.995728521118408[/C][/ROW]
[ROW][C]31[/C][C]0.017060917446541[/C][C]0.034121834893082[/C][C]0.982939082553459[/C][/ROW]
[ROW][C]32[/C][C]0.0535206387728042[/C][C]0.107041277545608[/C][C]0.946479361227196[/C][/ROW]
[ROW][C]33[/C][C]0.130281896219330[/C][C]0.260563792438660[/C][C]0.86971810378067[/C][/ROW]
[ROW][C]34[/C][C]0.264655271204782[/C][C]0.529310542409564[/C][C]0.735344728795218[/C][/ROW]
[ROW][C]35[/C][C]0.473477133625974[/C][C]0.946954267251947[/C][C]0.526522866374026[/C][/ROW]
[ROW][C]36[/C][C]0.6824084901787[/C][C]0.635183019642599[/C][C]0.317591509821299[/C][/ROW]
[ROW][C]37[/C][C]0.8559891122285[/C][C]0.288021775543002[/C][C]0.144010887771501[/C][/ROW]
[ROW][C]38[/C][C]0.962392483593158[/C][C]0.0752150328136846[/C][C]0.0376075164068423[/C][/ROW]
[ROW][C]39[/C][C]0.99049100122838[/C][C]0.0190179975432387[/C][C]0.00950899877161933[/C][/ROW]
[ROW][C]40[/C][C]0.994276169251942[/C][C]0.0114476614961157[/C][C]0.00572383074805784[/C][/ROW]
[ROW][C]41[/C][C]0.994043562916576[/C][C]0.0119128741668481[/C][C]0.00595643708342403[/C][/ROW]
[ROW][C]42[/C][C]0.992452208077784[/C][C]0.0150955838444329[/C][C]0.00754779192221647[/C][/ROW]
[ROW][C]43[/C][C]0.985732131983693[/C][C]0.0285357360326134[/C][C]0.0142678680163067[/C][/ROW]
[ROW][C]44[/C][C]0.978840404975685[/C][C]0.042319190048629[/C][C]0.0211595950243145[/C][/ROW]
[ROW][C]45[/C][C]0.985391890824624[/C][C]0.0292162183507518[/C][C]0.0146081091753759[/C][/ROW]
[ROW][C]46[/C][C]0.993603977843916[/C][C]0.0127920443121674[/C][C]0.00639602215608368[/C][/ROW]
[ROW][C]47[/C][C]0.997122488624328[/C][C]0.00575502275134379[/C][C]0.00287751137567190[/C][/ROW]
[ROW][C]48[/C][C]0.994093797591865[/C][C]0.0118124048162699[/C][C]0.00590620240813497[/C][/ROW]
[ROW][C]49[/C][C]0.988147175220908[/C][C]0.0237056495581834[/C][C]0.0118528247790917[/C][/ROW]
[ROW][C]50[/C][C]0.979584299406903[/C][C]0.040831401186194[/C][C]0.020415700593097[/C][/ROW]
[ROW][C]51[/C][C]0.966475915023025[/C][C]0.0670481699539508[/C][C]0.0335240849769754[/C][/ROW]
[ROW][C]52[/C][C]0.962774998340586[/C][C]0.0744500033188282[/C][C]0.0372250016594141[/C][/ROW]
[ROW][C]53[/C][C]0.929838152281527[/C][C]0.140323695436947[/C][C]0.0701618477184734[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111952&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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
60.1021580055830880.2043160111661750.897841994416912
70.0561111135799370.1122222271598740.943888886420063
80.02987841762158570.05975683524317130.970121582378414
90.02963712441228730.05927424882457460.970362875587713
100.1150927746050730.2301855492101460.884907225394927
110.1639837266830.3279674533660.836016273317
120.1836890432679730.3673780865359470.816310956732026
130.1444247012441890.2888494024883790.85557529875581
140.1128610842658130.2257221685316250.887138915734187
150.09019296718183470.1803859343636690.909807032818165
160.07620460407610870.1524092081522170.923795395923891
170.0620415493500450.124083098700090.937958450649955
180.04973784531080570.09947569062161150.950262154689194
190.03794475342698790.07588950685397580.962055246573012
200.02439288161178490.04878576322356980.975607118388215
210.01464730507645780.02929461015291560.985352694923542
220.008457861617666360.01691572323533270.991542138382334
230.005243974098826680.01048794819765340.994756025901173
240.002792098619790080.005584197239580170.99720790138021
250.001417536514786110.002835073029572210.998582463485214
260.0006935536926697270.001387107385339450.99930644630733
270.0003497889206247180.0006995778412494360.999650211079375
280.0004752994150195610.0009505988300391210.99952470058498
290.001273671292390000.002547342584780000.99872632870761
300.004271478881591670.008542957763183350.995728521118408
310.0170609174465410.0341218348930820.982939082553459
320.05352063877280420.1070412775456080.946479361227196
330.1302818962193300.2605637924386600.86971810378067
340.2646552712047820.5293105424095640.735344728795218
350.4734771336259740.9469542672519470.526522866374026
360.68240849017870.6351830196425990.317591509821299
370.85598911222850.2880217755430020.144010887771501
380.9623924835931580.07521503281368460.0376075164068423
390.990491001228380.01901799754323870.00950899877161933
400.9942761692519420.01144766149611570.00572383074805784
410.9940435629165760.01191287416684810.00595643708342403
420.9924522080777840.01509558384443290.00754779192221647
430.9857321319836930.02853573603261340.0142678680163067
440.9788404049756850.0423191900486290.0211595950243145
450.9853918908246240.02921621835075180.0146081091753759
460.9936039778439160.01279204431216740.00639602215608368
470.9971224886243280.005755022751343790.00287751137567190
480.9940937975918650.01181240481626990.00590620240813497
490.9881471752209080.02370564955818340.0118528247790917
500.9795842994069030.0408314011861940.020415700593097
510.9664759150230250.06704816995395080.0335240849769754
520.9627749983405860.07445000331882820.0372250016594141
530.9298381522815270.1403236954369470.0701618477184734







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.166666666666667NOK
5% type I error level240.5NOK
10% type I error level310.645833333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111952&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 level80.166666666666667NOK
5% type I error level240.5NOK
10% type I error level310.645833333333333NOK



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