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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact213
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] [514029464b0621595fe21c9fa38c7009] [Current]
-   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] [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 time6 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 & 6 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111921&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]6 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=111921&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Werklozen[t] = + 99575.037037037 + 322135.056712963Oliecrisis[t] + e[t]

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

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

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







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)99575.03703703720048.9863244.96667e-063e-06
Oliecrisis322135.05671296327223.46718811.83300

\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) & 99575.037037037 & 20048.986324 & 4.9666 & 7e-06 & 3e-06 \tabularnewline
Oliecrisis & 322135.056712963 & 27223.467188 & 11.833 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111921&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]99575.037037037[/C][C]20048.986324[/C][C]4.9666[/C][C]7e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]Oliecrisis[/C][C]322135.056712963[/C][C]27223.467188[/C][C]11.833[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111921&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111921&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)99575.03703703720048.9863244.96667e-063e-06
Oliecrisis322135.05671296327223.46718811.83300







Multiple Linear Regression - Regression Statistics
Multiple R0.843023613462403
R-squared0.710688812855207
Adjusted R-squared0.705613177993017
F-TEST (value)140.019688600818
F-TEST (DF numerator)1
F-TEST (DF denominator)57
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation104177.58885821
Sum Squared Residuals618619291157.682

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.843023613462403 \tabularnewline
R-squared & 0.710688812855207 \tabularnewline
Adjusted R-squared & 0.705613177993017 \tabularnewline
F-TEST (value) & 140.019688600818 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 57 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 104177.58885821 \tabularnewline
Sum Squared Residuals & 618619291157.682 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111921&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.843023613462403[/C][/ROW]
[ROW][C]R-squared[/C][C]0.710688812855207[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.705613177993017[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]140.019688600818[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]57[/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]104177.58885821[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]618619291157.682[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111921&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111921&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.843023613462403
R-squared0.710688812855207
Adjusted R-squared0.705613177993017
F-TEST (value)140.019688600818
F-TEST (DF numerator)1
F-TEST (DF denominator)57
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation104177.58885821
Sum Squared Residuals618619291157.682







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13670099575.0370370368-62875.0370370368
23560099575.037037037-63975.037037037
38090099575.037037037-18675.0370370371
417400099575.03703703774424.962962963
516942299575.03703703769846.962962963
615345299575.03703703753876.962962963
717357099575.03703703773994.962962963
819303699575.03703703793460.962962963
917465299575.03703703775076.962962963
1010536799575.0370370375791.96296296294
119596399575.037037037-3612.03703703706
128289699575.037037037-16679.0370370371
1312174799575.03703703722171.962962963
1412019699575.03703703720620.962962963
1510398399575.0370370374407.96296296294
168110399575.037037037-18472.0370370371
177094499575.037037037-28631.0370370371
185724899575.037037037-42327.0370370371
194783099575.037037037-51745.037037037
206009599575.037037037-39480.0370370371
216093199575.037037037-38644.0370370371
228295599575.037037037-16620.0370370371
239955999575.037037037-16.0370370370585
247791199575.037037037-21664.0370370371
257075399575.037037037-28822.0370370371
266928799575.037037037-30288.0370370371
278842699575.037037037-11149.0370370371
2891756421710.09375-329954.09375
2996933421710.09375-324777.09375
30174484421710.09375-247226.09375
31232595421710.09375-189115.09375
32266197421710.09375-155513.09375
33290435421710.09375-131275.09375
34304296421710.09375-117414.09375
35322310421710.09375-99400.09375
36415555421710.09375-6155.09375000001
37490042421710.0937568331.90625
38545109421710.09375123398.90625
39545720421710.09375124009.90625
40505944421710.0937584233.90625
41477930421710.0937556219.90625
42466106421710.0937544395.90625
43424476421710.093752765.90624999999
44383018421710.09375-38692.09375
45364696421710.09375-57014.09375
46391116421710.09375-30594.09375
47435721421710.0937514010.90625
48511435421710.0937589724.90625
49553997421710.09375132286.90625
50555252421710.09375133541.90625
51544897421710.09375123186.90625
52540562421710.09375118851.90625
53505282421710.0937583571.90625
54507626421710.0937585915.90625
55474427421710.0937552716.90625
56469740421710.0937548029.90625
57491480421710.0937569769.90625
58538974421710.09375117263.90625
59576612421710.09375154901.90625

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 36700 & 99575.0370370368 & -62875.0370370368 \tabularnewline
2 & 35600 & 99575.037037037 & -63975.037037037 \tabularnewline
3 & 80900 & 99575.037037037 & -18675.0370370371 \tabularnewline
4 & 174000 & 99575.037037037 & 74424.962962963 \tabularnewline
5 & 169422 & 99575.037037037 & 69846.962962963 \tabularnewline
6 & 153452 & 99575.037037037 & 53876.962962963 \tabularnewline
7 & 173570 & 99575.037037037 & 73994.962962963 \tabularnewline
8 & 193036 & 99575.037037037 & 93460.962962963 \tabularnewline
9 & 174652 & 99575.037037037 & 75076.962962963 \tabularnewline
10 & 105367 & 99575.037037037 & 5791.96296296294 \tabularnewline
11 & 95963 & 99575.037037037 & -3612.03703703706 \tabularnewline
12 & 82896 & 99575.037037037 & -16679.0370370371 \tabularnewline
13 & 121747 & 99575.037037037 & 22171.962962963 \tabularnewline
14 & 120196 & 99575.037037037 & 20620.962962963 \tabularnewline
15 & 103983 & 99575.037037037 & 4407.96296296294 \tabularnewline
16 & 81103 & 99575.037037037 & -18472.0370370371 \tabularnewline
17 & 70944 & 99575.037037037 & -28631.0370370371 \tabularnewline
18 & 57248 & 99575.037037037 & -42327.0370370371 \tabularnewline
19 & 47830 & 99575.037037037 & -51745.037037037 \tabularnewline
20 & 60095 & 99575.037037037 & -39480.0370370371 \tabularnewline
21 & 60931 & 99575.037037037 & -38644.0370370371 \tabularnewline
22 & 82955 & 99575.037037037 & -16620.0370370371 \tabularnewline
23 & 99559 & 99575.037037037 & -16.0370370370585 \tabularnewline
24 & 77911 & 99575.037037037 & -21664.0370370371 \tabularnewline
25 & 70753 & 99575.037037037 & -28822.0370370371 \tabularnewline
26 & 69287 & 99575.037037037 & -30288.0370370371 \tabularnewline
27 & 88426 & 99575.037037037 & -11149.0370370371 \tabularnewline
28 & 91756 & 421710.09375 & -329954.09375 \tabularnewline
29 & 96933 & 421710.09375 & -324777.09375 \tabularnewline
30 & 174484 & 421710.09375 & -247226.09375 \tabularnewline
31 & 232595 & 421710.09375 & -189115.09375 \tabularnewline
32 & 266197 & 421710.09375 & -155513.09375 \tabularnewline
33 & 290435 & 421710.09375 & -131275.09375 \tabularnewline
34 & 304296 & 421710.09375 & -117414.09375 \tabularnewline
35 & 322310 & 421710.09375 & -99400.09375 \tabularnewline
36 & 415555 & 421710.09375 & -6155.09375000001 \tabularnewline
37 & 490042 & 421710.09375 & 68331.90625 \tabularnewline
38 & 545109 & 421710.09375 & 123398.90625 \tabularnewline
39 & 545720 & 421710.09375 & 124009.90625 \tabularnewline
40 & 505944 & 421710.09375 & 84233.90625 \tabularnewline
41 & 477930 & 421710.09375 & 56219.90625 \tabularnewline
42 & 466106 & 421710.09375 & 44395.90625 \tabularnewline
43 & 424476 & 421710.09375 & 2765.90624999999 \tabularnewline
44 & 383018 & 421710.09375 & -38692.09375 \tabularnewline
45 & 364696 & 421710.09375 & -57014.09375 \tabularnewline
46 & 391116 & 421710.09375 & -30594.09375 \tabularnewline
47 & 435721 & 421710.09375 & 14010.90625 \tabularnewline
48 & 511435 & 421710.09375 & 89724.90625 \tabularnewline
49 & 553997 & 421710.09375 & 132286.90625 \tabularnewline
50 & 555252 & 421710.09375 & 133541.90625 \tabularnewline
51 & 544897 & 421710.09375 & 123186.90625 \tabularnewline
52 & 540562 & 421710.09375 & 118851.90625 \tabularnewline
53 & 505282 & 421710.09375 & 83571.90625 \tabularnewline
54 & 507626 & 421710.09375 & 85915.90625 \tabularnewline
55 & 474427 & 421710.09375 & 52716.90625 \tabularnewline
56 & 469740 & 421710.09375 & 48029.90625 \tabularnewline
57 & 491480 & 421710.09375 & 69769.90625 \tabularnewline
58 & 538974 & 421710.09375 & 117263.90625 \tabularnewline
59 & 576612 & 421710.09375 & 154901.90625 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111921&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]99575.0370370368[/C][C]-62875.0370370368[/C][/ROW]
[ROW][C]2[/C][C]35600[/C][C]99575.037037037[/C][C]-63975.037037037[/C][/ROW]
[ROW][C]3[/C][C]80900[/C][C]99575.037037037[/C][C]-18675.0370370371[/C][/ROW]
[ROW][C]4[/C][C]174000[/C][C]99575.037037037[/C][C]74424.962962963[/C][/ROW]
[ROW][C]5[/C][C]169422[/C][C]99575.037037037[/C][C]69846.962962963[/C][/ROW]
[ROW][C]6[/C][C]153452[/C][C]99575.037037037[/C][C]53876.962962963[/C][/ROW]
[ROW][C]7[/C][C]173570[/C][C]99575.037037037[/C][C]73994.962962963[/C][/ROW]
[ROW][C]8[/C][C]193036[/C][C]99575.037037037[/C][C]93460.962962963[/C][/ROW]
[ROW][C]9[/C][C]174652[/C][C]99575.037037037[/C][C]75076.962962963[/C][/ROW]
[ROW][C]10[/C][C]105367[/C][C]99575.037037037[/C][C]5791.96296296294[/C][/ROW]
[ROW][C]11[/C][C]95963[/C][C]99575.037037037[/C][C]-3612.03703703706[/C][/ROW]
[ROW][C]12[/C][C]82896[/C][C]99575.037037037[/C][C]-16679.0370370371[/C][/ROW]
[ROW][C]13[/C][C]121747[/C][C]99575.037037037[/C][C]22171.962962963[/C][/ROW]
[ROW][C]14[/C][C]120196[/C][C]99575.037037037[/C][C]20620.962962963[/C][/ROW]
[ROW][C]15[/C][C]103983[/C][C]99575.037037037[/C][C]4407.96296296294[/C][/ROW]
[ROW][C]16[/C][C]81103[/C][C]99575.037037037[/C][C]-18472.0370370371[/C][/ROW]
[ROW][C]17[/C][C]70944[/C][C]99575.037037037[/C][C]-28631.0370370371[/C][/ROW]
[ROW][C]18[/C][C]57248[/C][C]99575.037037037[/C][C]-42327.0370370371[/C][/ROW]
[ROW][C]19[/C][C]47830[/C][C]99575.037037037[/C][C]-51745.037037037[/C][/ROW]
[ROW][C]20[/C][C]60095[/C][C]99575.037037037[/C][C]-39480.0370370371[/C][/ROW]
[ROW][C]21[/C][C]60931[/C][C]99575.037037037[/C][C]-38644.0370370371[/C][/ROW]
[ROW][C]22[/C][C]82955[/C][C]99575.037037037[/C][C]-16620.0370370371[/C][/ROW]
[ROW][C]23[/C][C]99559[/C][C]99575.037037037[/C][C]-16.0370370370585[/C][/ROW]
[ROW][C]24[/C][C]77911[/C][C]99575.037037037[/C][C]-21664.0370370371[/C][/ROW]
[ROW][C]25[/C][C]70753[/C][C]99575.037037037[/C][C]-28822.0370370371[/C][/ROW]
[ROW][C]26[/C][C]69287[/C][C]99575.037037037[/C][C]-30288.0370370371[/C][/ROW]
[ROW][C]27[/C][C]88426[/C][C]99575.037037037[/C][C]-11149.0370370371[/C][/ROW]
[ROW][C]28[/C][C]91756[/C][C]421710.09375[/C][C]-329954.09375[/C][/ROW]
[ROW][C]29[/C][C]96933[/C][C]421710.09375[/C][C]-324777.09375[/C][/ROW]
[ROW][C]30[/C][C]174484[/C][C]421710.09375[/C][C]-247226.09375[/C][/ROW]
[ROW][C]31[/C][C]232595[/C][C]421710.09375[/C][C]-189115.09375[/C][/ROW]
[ROW][C]32[/C][C]266197[/C][C]421710.09375[/C][C]-155513.09375[/C][/ROW]
[ROW][C]33[/C][C]290435[/C][C]421710.09375[/C][C]-131275.09375[/C][/ROW]
[ROW][C]34[/C][C]304296[/C][C]421710.09375[/C][C]-117414.09375[/C][/ROW]
[ROW][C]35[/C][C]322310[/C][C]421710.09375[/C][C]-99400.09375[/C][/ROW]
[ROW][C]36[/C][C]415555[/C][C]421710.09375[/C][C]-6155.09375000001[/C][/ROW]
[ROW][C]37[/C][C]490042[/C][C]421710.09375[/C][C]68331.90625[/C][/ROW]
[ROW][C]38[/C][C]545109[/C][C]421710.09375[/C][C]123398.90625[/C][/ROW]
[ROW][C]39[/C][C]545720[/C][C]421710.09375[/C][C]124009.90625[/C][/ROW]
[ROW][C]40[/C][C]505944[/C][C]421710.09375[/C][C]84233.90625[/C][/ROW]
[ROW][C]41[/C][C]477930[/C][C]421710.09375[/C][C]56219.90625[/C][/ROW]
[ROW][C]42[/C][C]466106[/C][C]421710.09375[/C][C]44395.90625[/C][/ROW]
[ROW][C]43[/C][C]424476[/C][C]421710.09375[/C][C]2765.90624999999[/C][/ROW]
[ROW][C]44[/C][C]383018[/C][C]421710.09375[/C][C]-38692.09375[/C][/ROW]
[ROW][C]45[/C][C]364696[/C][C]421710.09375[/C][C]-57014.09375[/C][/ROW]
[ROW][C]46[/C][C]391116[/C][C]421710.09375[/C][C]-30594.09375[/C][/ROW]
[ROW][C]47[/C][C]435721[/C][C]421710.09375[/C][C]14010.90625[/C][/ROW]
[ROW][C]48[/C][C]511435[/C][C]421710.09375[/C][C]89724.90625[/C][/ROW]
[ROW][C]49[/C][C]553997[/C][C]421710.09375[/C][C]132286.90625[/C][/ROW]
[ROW][C]50[/C][C]555252[/C][C]421710.09375[/C][C]133541.90625[/C][/ROW]
[ROW][C]51[/C][C]544897[/C][C]421710.09375[/C][C]123186.90625[/C][/ROW]
[ROW][C]52[/C][C]540562[/C][C]421710.09375[/C][C]118851.90625[/C][/ROW]
[ROW][C]53[/C][C]505282[/C][C]421710.09375[/C][C]83571.90625[/C][/ROW]
[ROW][C]54[/C][C]507626[/C][C]421710.09375[/C][C]85915.90625[/C][/ROW]
[ROW][C]55[/C][C]474427[/C][C]421710.09375[/C][C]52716.90625[/C][/ROW]
[ROW][C]56[/C][C]469740[/C][C]421710.09375[/C][C]48029.90625[/C][/ROW]
[ROW][C]57[/C][C]491480[/C][C]421710.09375[/C][C]69769.90625[/C][/ROW]
[ROW][C]58[/C][C]538974[/C][C]421710.09375[/C][C]117263.90625[/C][/ROW]
[ROW][C]59[/C][C]576612[/C][C]421710.09375[/C][C]154901.90625[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111921&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111921&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
13670099575.0370370368-62875.0370370368
23560099575.037037037-63975.037037037
38090099575.037037037-18675.0370370371
417400099575.03703703774424.962962963
516942299575.03703703769846.962962963
615345299575.03703703753876.962962963
717357099575.03703703773994.962962963
819303699575.03703703793460.962962963
917465299575.03703703775076.962962963
1010536799575.0370370375791.96296296294
119596399575.037037037-3612.03703703706
128289699575.037037037-16679.0370370371
1312174799575.03703703722171.962962963
1412019699575.03703703720620.962962963
1510398399575.0370370374407.96296296294
168110399575.037037037-18472.0370370371
177094499575.037037037-28631.0370370371
185724899575.037037037-42327.0370370371
194783099575.037037037-51745.037037037
206009599575.037037037-39480.0370370371
216093199575.037037037-38644.0370370371
228295599575.037037037-16620.0370370371
239955999575.037037037-16.0370370370585
247791199575.037037037-21664.0370370371
257075399575.037037037-28822.0370370371
266928799575.037037037-30288.0370370371
278842699575.037037037-11149.0370370371
2891756421710.09375-329954.09375
2996933421710.09375-324777.09375
30174484421710.09375-247226.09375
31232595421710.09375-189115.09375
32266197421710.09375-155513.09375
33290435421710.09375-131275.09375
34304296421710.09375-117414.09375
35322310421710.09375-99400.09375
36415555421710.09375-6155.09375000001
37490042421710.0937568331.90625
38545109421710.09375123398.90625
39545720421710.09375124009.90625
40505944421710.0937584233.90625
41477930421710.0937556219.90625
42466106421710.0937544395.90625
43424476421710.093752765.90624999999
44383018421710.09375-38692.09375
45364696421710.09375-57014.09375
46391116421710.09375-30594.09375
47435721421710.0937514010.90625
48511435421710.0937589724.90625
49553997421710.09375132286.90625
50555252421710.09375133541.90625
51544897421710.09375123186.90625
52540562421710.09375118851.90625
53505282421710.0937583571.90625
54507626421710.0937585915.90625
55474427421710.0937552716.90625
56469740421710.0937548029.90625
57491480421710.0937569769.90625
58538974421710.09375117263.90625
59576612421710.09375154901.90625







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3453941455412180.6907882910824360.654605854458782
60.2310496856811110.4620993713622220.768950314318889
70.1685135384691440.3370270769382870.831486461530856
80.1381742133918070.2763484267836150.861825786608193
90.09165383454027250.1833076690805450.908346165459728
100.05172800071783970.1034560014356790.94827199928216
110.02902834741864720.05805669483729440.970971652581353
120.01703462509140960.03406925018281920.98296537490859
130.00814114616093970.01628229232187940.99185885383906
140.003720449573430880.007440899146861750.99627955042657
150.001688698691291130.003377397382582250.998311301308709
160.0008803341648984740.001760668329796950.999119665835101
170.0004978665695429090.0009957331390858170.999502133430457
180.0003296583480743330.0006593166961486670.999670341651926
190.0002409551589488210.0004819103178976410.999759044841051
200.0001356376849348360.0002712753698696710.999864362315065
217.2320726006622e-050.0001446414520132440.999927679273993
222.98652381114838e-055.97304762229676e-050.999970134761889
231.12212260009763e-052.24424520019525e-050.999988778774
244.49136513112213e-068.98273026224426e-060.999995508634869
251.86000407651311e-063.72000815302621e-060.999998139995923
267.57223685234961e-071.51444737046992e-060.999999242776315
272.56069280100798e-075.12138560201595e-070.99999974393072
288.47799445077914e-071.69559889015583e-060.999999152200555
296.40985003667144e-061.28197000733429e-050.999993590149963
306.41358874729609e-050.0001282717749459220.999935864112527
310.000755377312647050.00151075462529410.999244622687353
320.006440135836958420.01288027167391680.993559864163042
330.03663375131291930.07326750262583860.96336624868708
340.1450082591320.2900165182640010.854991740868
350.397767297921650.79553459584330.60223270207835
360.6441719512856970.7116560974286050.355828048714303
370.827122890617290.345754218765420.17287710938271
380.9359386963709490.1281226072581030.0640613036290515
390.9672812970133030.06543740597339450.0327187029866973
400.9672750968970310.06544980620593730.0327249031029687
410.958379624404280.08324075119143860.0416203755957193
420.944156735532910.1116865289341810.0558432644670906
430.933511764204660.132976471590680.0664882357953402
440.951641636844710.096716726310580.04835836315529
450.985338489919970.0293230201600610.0146615100800305
460.9971121429440340.005775714111931480.00288785705596574
470.9989360182079520.002127963584095640.00106398179204782
480.99765616085440.004687678291201330.00234383914560066
490.9962945277521270.00741094449574670.00370547224787335
500.9942063391455460.01158732170890720.00579366085445359
510.988726777004370.02254644599125820.0112732229956291
520.9767491310058890.04650173798822260.0232508689941113
530.9392000002376550.1215999995246890.0607999997623445
540.8527560861198930.2944878277602150.147243913880107

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.345394145541218 & 0.690788291082436 & 0.654605854458782 \tabularnewline
6 & 0.231049685681111 & 0.462099371362222 & 0.768950314318889 \tabularnewline
7 & 0.168513538469144 & 0.337027076938287 & 0.831486461530856 \tabularnewline
8 & 0.138174213391807 & 0.276348426783615 & 0.861825786608193 \tabularnewline
9 & 0.0916538345402725 & 0.183307669080545 & 0.908346165459728 \tabularnewline
10 & 0.0517280007178397 & 0.103456001435679 & 0.94827199928216 \tabularnewline
11 & 0.0290283474186472 & 0.0580566948372944 & 0.970971652581353 \tabularnewline
12 & 0.0170346250914096 & 0.0340692501828192 & 0.98296537490859 \tabularnewline
13 & 0.0081411461609397 & 0.0162822923218794 & 0.99185885383906 \tabularnewline
14 & 0.00372044957343088 & 0.00744089914686175 & 0.99627955042657 \tabularnewline
15 & 0.00168869869129113 & 0.00337739738258225 & 0.998311301308709 \tabularnewline
16 & 0.000880334164898474 & 0.00176066832979695 & 0.999119665835101 \tabularnewline
17 & 0.000497866569542909 & 0.000995733139085817 & 0.999502133430457 \tabularnewline
18 & 0.000329658348074333 & 0.000659316696148667 & 0.999670341651926 \tabularnewline
19 & 0.000240955158948821 & 0.000481910317897641 & 0.999759044841051 \tabularnewline
20 & 0.000135637684934836 & 0.000271275369869671 & 0.999864362315065 \tabularnewline
21 & 7.2320726006622e-05 & 0.000144641452013244 & 0.999927679273993 \tabularnewline
22 & 2.98652381114838e-05 & 5.97304762229676e-05 & 0.999970134761889 \tabularnewline
23 & 1.12212260009763e-05 & 2.24424520019525e-05 & 0.999988778774 \tabularnewline
24 & 4.49136513112213e-06 & 8.98273026224426e-06 & 0.999995508634869 \tabularnewline
25 & 1.86000407651311e-06 & 3.72000815302621e-06 & 0.999998139995923 \tabularnewline
26 & 7.57223685234961e-07 & 1.51444737046992e-06 & 0.999999242776315 \tabularnewline
27 & 2.56069280100798e-07 & 5.12138560201595e-07 & 0.99999974393072 \tabularnewline
28 & 8.47799445077914e-07 & 1.69559889015583e-06 & 0.999999152200555 \tabularnewline
29 & 6.40985003667144e-06 & 1.28197000733429e-05 & 0.999993590149963 \tabularnewline
30 & 6.41358874729609e-05 & 0.000128271774945922 & 0.999935864112527 \tabularnewline
31 & 0.00075537731264705 & 0.0015107546252941 & 0.999244622687353 \tabularnewline
32 & 0.00644013583695842 & 0.0128802716739168 & 0.993559864163042 \tabularnewline
33 & 0.0366337513129193 & 0.0732675026258386 & 0.96336624868708 \tabularnewline
34 & 0.145008259132 & 0.290016518264001 & 0.854991740868 \tabularnewline
35 & 0.39776729792165 & 0.7955345958433 & 0.60223270207835 \tabularnewline
36 & 0.644171951285697 & 0.711656097428605 & 0.355828048714303 \tabularnewline
37 & 0.82712289061729 & 0.34575421876542 & 0.17287710938271 \tabularnewline
38 & 0.935938696370949 & 0.128122607258103 & 0.0640613036290515 \tabularnewline
39 & 0.967281297013303 & 0.0654374059733945 & 0.0327187029866973 \tabularnewline
40 & 0.967275096897031 & 0.0654498062059373 & 0.0327249031029687 \tabularnewline
41 & 0.95837962440428 & 0.0832407511914386 & 0.0416203755957193 \tabularnewline
42 & 0.94415673553291 & 0.111686528934181 & 0.0558432644670906 \tabularnewline
43 & 0.93351176420466 & 0.13297647159068 & 0.0664882357953402 \tabularnewline
44 & 0.95164163684471 & 0.09671672631058 & 0.04835836315529 \tabularnewline
45 & 0.98533848991997 & 0.029323020160061 & 0.0146615100800305 \tabularnewline
46 & 0.997112142944034 & 0.00577571411193148 & 0.00288785705596574 \tabularnewline
47 & 0.998936018207952 & 0.00212796358409564 & 0.00106398179204782 \tabularnewline
48 & 0.9976561608544 & 0.00468767829120133 & 0.00234383914560066 \tabularnewline
49 & 0.996294527752127 & 0.0074109444957467 & 0.00370547224787335 \tabularnewline
50 & 0.994206339145546 & 0.0115873217089072 & 0.00579366085445359 \tabularnewline
51 & 0.98872677700437 & 0.0225464459912582 & 0.0112732229956291 \tabularnewline
52 & 0.976749131005889 & 0.0465017379882226 & 0.0232508689941113 \tabularnewline
53 & 0.939200000237655 & 0.121599999524689 & 0.0607999997623445 \tabularnewline
54 & 0.852756086119893 & 0.294487827760215 & 0.147243913880107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111921&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]5[/C][C]0.345394145541218[/C][C]0.690788291082436[/C][C]0.654605854458782[/C][/ROW]
[ROW][C]6[/C][C]0.231049685681111[/C][C]0.462099371362222[/C][C]0.768950314318889[/C][/ROW]
[ROW][C]7[/C][C]0.168513538469144[/C][C]0.337027076938287[/C][C]0.831486461530856[/C][/ROW]
[ROW][C]8[/C][C]0.138174213391807[/C][C]0.276348426783615[/C][C]0.861825786608193[/C][/ROW]
[ROW][C]9[/C][C]0.0916538345402725[/C][C]0.183307669080545[/C][C]0.908346165459728[/C][/ROW]
[ROW][C]10[/C][C]0.0517280007178397[/C][C]0.103456001435679[/C][C]0.94827199928216[/C][/ROW]
[ROW][C]11[/C][C]0.0290283474186472[/C][C]0.0580566948372944[/C][C]0.970971652581353[/C][/ROW]
[ROW][C]12[/C][C]0.0170346250914096[/C][C]0.0340692501828192[/C][C]0.98296537490859[/C][/ROW]
[ROW][C]13[/C][C]0.0081411461609397[/C][C]0.0162822923218794[/C][C]0.99185885383906[/C][/ROW]
[ROW][C]14[/C][C]0.00372044957343088[/C][C]0.00744089914686175[/C][C]0.99627955042657[/C][/ROW]
[ROW][C]15[/C][C]0.00168869869129113[/C][C]0.00337739738258225[/C][C]0.998311301308709[/C][/ROW]
[ROW][C]16[/C][C]0.000880334164898474[/C][C]0.00176066832979695[/C][C]0.999119665835101[/C][/ROW]
[ROW][C]17[/C][C]0.000497866569542909[/C][C]0.000995733139085817[/C][C]0.999502133430457[/C][/ROW]
[ROW][C]18[/C][C]0.000329658348074333[/C][C]0.000659316696148667[/C][C]0.999670341651926[/C][/ROW]
[ROW][C]19[/C][C]0.000240955158948821[/C][C]0.000481910317897641[/C][C]0.999759044841051[/C][/ROW]
[ROW][C]20[/C][C]0.000135637684934836[/C][C]0.000271275369869671[/C][C]0.999864362315065[/C][/ROW]
[ROW][C]21[/C][C]7.2320726006622e-05[/C][C]0.000144641452013244[/C][C]0.999927679273993[/C][/ROW]
[ROW][C]22[/C][C]2.98652381114838e-05[/C][C]5.97304762229676e-05[/C][C]0.999970134761889[/C][/ROW]
[ROW][C]23[/C][C]1.12212260009763e-05[/C][C]2.24424520019525e-05[/C][C]0.999988778774[/C][/ROW]
[ROW][C]24[/C][C]4.49136513112213e-06[/C][C]8.98273026224426e-06[/C][C]0.999995508634869[/C][/ROW]
[ROW][C]25[/C][C]1.86000407651311e-06[/C][C]3.72000815302621e-06[/C][C]0.999998139995923[/C][/ROW]
[ROW][C]26[/C][C]7.57223685234961e-07[/C][C]1.51444737046992e-06[/C][C]0.999999242776315[/C][/ROW]
[ROW][C]27[/C][C]2.56069280100798e-07[/C][C]5.12138560201595e-07[/C][C]0.99999974393072[/C][/ROW]
[ROW][C]28[/C][C]8.47799445077914e-07[/C][C]1.69559889015583e-06[/C][C]0.999999152200555[/C][/ROW]
[ROW][C]29[/C][C]6.40985003667144e-06[/C][C]1.28197000733429e-05[/C][C]0.999993590149963[/C][/ROW]
[ROW][C]30[/C][C]6.41358874729609e-05[/C][C]0.000128271774945922[/C][C]0.999935864112527[/C][/ROW]
[ROW][C]31[/C][C]0.00075537731264705[/C][C]0.0015107546252941[/C][C]0.999244622687353[/C][/ROW]
[ROW][C]32[/C][C]0.00644013583695842[/C][C]0.0128802716739168[/C][C]0.993559864163042[/C][/ROW]
[ROW][C]33[/C][C]0.0366337513129193[/C][C]0.0732675026258386[/C][C]0.96336624868708[/C][/ROW]
[ROW][C]34[/C][C]0.145008259132[/C][C]0.290016518264001[/C][C]0.854991740868[/C][/ROW]
[ROW][C]35[/C][C]0.39776729792165[/C][C]0.7955345958433[/C][C]0.60223270207835[/C][/ROW]
[ROW][C]36[/C][C]0.644171951285697[/C][C]0.711656097428605[/C][C]0.355828048714303[/C][/ROW]
[ROW][C]37[/C][C]0.82712289061729[/C][C]0.34575421876542[/C][C]0.17287710938271[/C][/ROW]
[ROW][C]38[/C][C]0.935938696370949[/C][C]0.128122607258103[/C][C]0.0640613036290515[/C][/ROW]
[ROW][C]39[/C][C]0.967281297013303[/C][C]0.0654374059733945[/C][C]0.0327187029866973[/C][/ROW]
[ROW][C]40[/C][C]0.967275096897031[/C][C]0.0654498062059373[/C][C]0.0327249031029687[/C][/ROW]
[ROW][C]41[/C][C]0.95837962440428[/C][C]0.0832407511914386[/C][C]0.0416203755957193[/C][/ROW]
[ROW][C]42[/C][C]0.94415673553291[/C][C]0.111686528934181[/C][C]0.0558432644670906[/C][/ROW]
[ROW][C]43[/C][C]0.93351176420466[/C][C]0.13297647159068[/C][C]0.0664882357953402[/C][/ROW]
[ROW][C]44[/C][C]0.95164163684471[/C][C]0.09671672631058[/C][C]0.04835836315529[/C][/ROW]
[ROW][C]45[/C][C]0.98533848991997[/C][C]0.029323020160061[/C][C]0.0146615100800305[/C][/ROW]
[ROW][C]46[/C][C]0.997112142944034[/C][C]0.00577571411193148[/C][C]0.00288785705596574[/C][/ROW]
[ROW][C]47[/C][C]0.998936018207952[/C][C]0.00212796358409564[/C][C]0.00106398179204782[/C][/ROW]
[ROW][C]48[/C][C]0.9976561608544[/C][C]0.00468767829120133[/C][C]0.00234383914560066[/C][/ROW]
[ROW][C]49[/C][C]0.996294527752127[/C][C]0.0074109444957467[/C][C]0.00370547224787335[/C][/ROW]
[ROW][C]50[/C][C]0.994206339145546[/C][C]0.0115873217089072[/C][C]0.00579366085445359[/C][/ROW]
[ROW][C]51[/C][C]0.98872677700437[/C][C]0.0225464459912582[/C][C]0.0112732229956291[/C][/ROW]
[ROW][C]52[/C][C]0.976749131005889[/C][C]0.0465017379882226[/C][C]0.0232508689941113[/C][/ROW]
[ROW][C]53[/C][C]0.939200000237655[/C][C]0.121599999524689[/C][C]0.0607999997623445[/C][/ROW]
[ROW][C]54[/C][C]0.852756086119893[/C][C]0.294487827760215[/C][C]0.147243913880107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111921&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111921&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
50.3453941455412180.6907882910824360.654605854458782
60.2310496856811110.4620993713622220.768950314318889
70.1685135384691440.3370270769382870.831486461530856
80.1381742133918070.2763484267836150.861825786608193
90.09165383454027250.1833076690805450.908346165459728
100.05172800071783970.1034560014356790.94827199928216
110.02902834741864720.05805669483729440.970971652581353
120.01703462509140960.03406925018281920.98296537490859
130.00814114616093970.01628229232187940.99185885383906
140.003720449573430880.007440899146861750.99627955042657
150.001688698691291130.003377397382582250.998311301308709
160.0008803341648984740.001760668329796950.999119665835101
170.0004978665695429090.0009957331390858170.999502133430457
180.0003296583480743330.0006593166961486670.999670341651926
190.0002409551589488210.0004819103178976410.999759044841051
200.0001356376849348360.0002712753698696710.999864362315065
217.2320726006622e-050.0001446414520132440.999927679273993
222.98652381114838e-055.97304762229676e-050.999970134761889
231.12212260009763e-052.24424520019525e-050.999988778774
244.49136513112213e-068.98273026224426e-060.999995508634869
251.86000407651311e-063.72000815302621e-060.999998139995923
267.57223685234961e-071.51444737046992e-060.999999242776315
272.56069280100798e-075.12138560201595e-070.99999974393072
288.47799445077914e-071.69559889015583e-060.999999152200555
296.40985003667144e-061.28197000733429e-050.999993590149963
306.41358874729609e-050.0001282717749459220.999935864112527
310.000755377312647050.00151075462529410.999244622687353
320.006440135836958420.01288027167391680.993559864163042
330.03663375131291930.07326750262583860.96336624868708
340.1450082591320.2900165182640010.854991740868
350.397767297921650.79553459584330.60223270207835
360.6441719512856970.7116560974286050.355828048714303
370.827122890617290.345754218765420.17287710938271
380.9359386963709490.1281226072581030.0640613036290515
390.9672812970133030.06543740597339450.0327187029866973
400.9672750968970310.06544980620593730.0327249031029687
410.958379624404280.08324075119143860.0416203755957193
420.944156735532910.1116865289341810.0558432644670906
430.933511764204660.132976471590680.0664882357953402
440.951641636844710.096716726310580.04835836315529
450.985338489919970.0293230201600610.0146615100800305
460.9971121429440340.005775714111931480.00288785705596574
470.9989360182079520.002127963584095640.00106398179204782
480.99765616085440.004687678291201330.00234383914560066
490.9962945277521270.00741094449574670.00370547224787335
500.9942063391455460.01158732170890720.00579366085445359
510.988726777004370.02254644599125820.0112732229956291
520.9767491310058890.04650173798822260.0232508689941113
530.9392000002376550.1215999995246890.0607999997623445
540.8527560861198930.2944878277602150.147243913880107







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.44NOK
5% type I error level290.58NOK
10% type I error level350.7NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111921&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 level220.44NOK
5% type I error level290.58NOK
10% type I error level350.7NOK



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