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 computationFri, 20 Nov 2009 07:15:41 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258726829chlubag35fvnqe4.htm/, Retrieved Thu, 25 Apr 2024 21:52:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58198, Retrieved Thu, 25 Apr 2024 21:52:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact121
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 14:15:41] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
-    D        [Multiple Regression] [] [2009-12-15 16:09:36] [e149fd9094b67af26551857fa83a9d9d]
Feedback Forum

Post a new message
Dataseries X:
613	0
611	0
594	0
595	0
591	0
589	0
584	0
573	0
567	0
569	0
621	0
629	0
628	0
612	0
595	0
597	0
593	0
590	0
580	0
574	0
573	0
573	0
620	0
626	0
620	0
588	0
566	0
557	0
561	0
549	0
532	0
526	0
511	0
499	0
555	0
565	0
542	0
527	0
510	0
514	0
517	0
508	0
493	0
490	0
469	0
478	0
528	0
534	0
518	1
506	1
502	1
516	1
528	1
533	1
536	1
537	1
524	1
536	1
587	1
597	1
581	1




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
WklBe[t] = + 668.809090909091 + 48.5649350649351X[t] -25.2756132756135M1[t] -45.9339105339106M2[t] -58.8805194805196M3[t] -54.0271284271285M4[t] -49.3737373737373M5[t] -51.1203463203463M6[t] -57.4669552669553M7[t] -60.0135642135643M8[t] -68.7601731601732M9[t] -64.1067821067821M10[t] -10.4533910533911M11[t] -2.45339105339105t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WklBe[t] =  +  668.809090909091 +  48.5649350649351X[t] -25.2756132756135M1[t] -45.9339105339106M2[t] -58.8805194805196M3[t] -54.0271284271285M4[t] -49.3737373737373M5[t] -51.1203463203463M6[t] -57.4669552669553M7[t] -60.0135642135643M8[t] -68.7601731601732M9[t] -64.1067821067821M10[t] -10.4533910533911M11[t] -2.45339105339105t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WklBe[t] =  +  668.809090909091 +  48.5649350649351X[t] -25.2756132756135M1[t] -45.9339105339106M2[t] -58.8805194805196M3[t] -54.0271284271285M4[t] -49.3737373737373M5[t] -51.1203463203463M6[t] -57.4669552669553M7[t] -60.0135642135643M8[t] -68.7601731601732M9[t] -64.1067821067821M10[t] -10.4533910533911M11[t] -2.45339105339105t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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
WklBe[t] = + 668.809090909091 + 48.5649350649351X[t] -25.2756132756135M1[t] -45.9339105339106M2[t] -58.8805194805196M3[t] -54.0271284271285M4[t] -49.3737373737373M5[t] -51.1203463203463M6[t] -57.4669552669553M7[t] -60.0135642135643M8[t] -68.7601731601732M9[t] -64.1067821067821M10[t] -10.4533910533911M11[t] -2.45339105339105t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)668.80909090909112.17442254.935600
X48.564935064935110.0179374.84781.4e-057e-06
M1-25.275613275613513.53622-1.86730.0681090.034055
M2-45.933910533910614.124017-3.25220.0021230.001061
M3-58.880519480519614.086711-4.17990.0001266.3e-05
M4-54.027128427128514.053249-3.84450.0003620.000181
M5-49.373737373737314.023656-3.52070.0009680.000484
M6-51.120346320346313.997959-3.6520.0006530.000326
M7-57.466955266955313.976178-4.11180.0001567.8e-05
M8-60.013564213564313.958332-4.29958.6e-054.3e-05
M9-68.760173160173213.944437-4.9311.1e-055e-06
M10-64.106782106782113.934502-4.60063.2e-051.6e-05
M11-10.453391053391113.928539-0.75050.4566940.228347
t-2.453391053391050.235352-10.424300

\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) & 668.809090909091 & 12.174422 & 54.9356 & 0 & 0 \tabularnewline
X & 48.5649350649351 & 10.017937 & 4.8478 & 1.4e-05 & 7e-06 \tabularnewline
M1 & -25.2756132756135 & 13.53622 & -1.8673 & 0.068109 & 0.034055 \tabularnewline
M2 & -45.9339105339106 & 14.124017 & -3.2522 & 0.002123 & 0.001061 \tabularnewline
M3 & -58.8805194805196 & 14.086711 & -4.1799 & 0.000126 & 6.3e-05 \tabularnewline
M4 & -54.0271284271285 & 14.053249 & -3.8445 & 0.000362 & 0.000181 \tabularnewline
M5 & -49.3737373737373 & 14.023656 & -3.5207 & 0.000968 & 0.000484 \tabularnewline
M6 & -51.1203463203463 & 13.997959 & -3.652 & 0.000653 & 0.000326 \tabularnewline
M7 & -57.4669552669553 & 13.976178 & -4.1118 & 0.000156 & 7.8e-05 \tabularnewline
M8 & -60.0135642135643 & 13.958332 & -4.2995 & 8.6e-05 & 4.3e-05 \tabularnewline
M9 & -68.7601731601732 & 13.944437 & -4.931 & 1.1e-05 & 5e-06 \tabularnewline
M10 & -64.1067821067821 & 13.934502 & -4.6006 & 3.2e-05 & 1.6e-05 \tabularnewline
M11 & -10.4533910533911 & 13.928539 & -0.7505 & 0.456694 & 0.228347 \tabularnewline
t & -2.45339105339105 & 0.235352 & -10.4243 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&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]668.809090909091[/C][C]12.174422[/C][C]54.9356[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]48.5649350649351[/C][C]10.017937[/C][C]4.8478[/C][C]1.4e-05[/C][C]7e-06[/C][/ROW]
[ROW][C]M1[/C][C]-25.2756132756135[/C][C]13.53622[/C][C]-1.8673[/C][C]0.068109[/C][C]0.034055[/C][/ROW]
[ROW][C]M2[/C][C]-45.9339105339106[/C][C]14.124017[/C][C]-3.2522[/C][C]0.002123[/C][C]0.001061[/C][/ROW]
[ROW][C]M3[/C][C]-58.8805194805196[/C][C]14.086711[/C][C]-4.1799[/C][C]0.000126[/C][C]6.3e-05[/C][/ROW]
[ROW][C]M4[/C][C]-54.0271284271285[/C][C]14.053249[/C][C]-3.8445[/C][C]0.000362[/C][C]0.000181[/C][/ROW]
[ROW][C]M5[/C][C]-49.3737373737373[/C][C]14.023656[/C][C]-3.5207[/C][C]0.000968[/C][C]0.000484[/C][/ROW]
[ROW][C]M6[/C][C]-51.1203463203463[/C][C]13.997959[/C][C]-3.652[/C][C]0.000653[/C][C]0.000326[/C][/ROW]
[ROW][C]M7[/C][C]-57.4669552669553[/C][C]13.976178[/C][C]-4.1118[/C][C]0.000156[/C][C]7.8e-05[/C][/ROW]
[ROW][C]M8[/C][C]-60.0135642135643[/C][C]13.958332[/C][C]-4.2995[/C][C]8.6e-05[/C][C]4.3e-05[/C][/ROW]
[ROW][C]M9[/C][C]-68.7601731601732[/C][C]13.944437[/C][C]-4.931[/C][C]1.1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]M10[/C][C]-64.1067821067821[/C][C]13.934502[/C][C]-4.6006[/C][C]3.2e-05[/C][C]1.6e-05[/C][/ROW]
[ROW][C]M11[/C][C]-10.4533910533911[/C][C]13.928539[/C][C]-0.7505[/C][C]0.456694[/C][C]0.228347[/C][/ROW]
[ROW][C]t[/C][C]-2.45339105339105[/C][C]0.235352[/C][C]-10.4243[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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)668.80909090909112.17442254.935600
X48.564935064935110.0179374.84781.4e-057e-06
M1-25.275613275613513.53622-1.86730.0681090.034055
M2-45.933910533910614.124017-3.25220.0021230.001061
M3-58.880519480519614.086711-4.17990.0001266.3e-05
M4-54.027128427128514.053249-3.84450.0003620.000181
M5-49.373737373737314.023656-3.52070.0009680.000484
M6-51.120346320346313.997959-3.6520.0006530.000326
M7-57.466955266955313.976178-4.11180.0001567.8e-05
M8-60.013564213564313.958332-4.29958.6e-054.3e-05
M9-68.760173160173213.944437-4.9311.1e-055e-06
M10-64.106782106782113.934502-4.60063.2e-051.6e-05
M11-10.453391053391113.928539-0.75050.4566940.228347
t-2.453391053391050.235352-10.424300







Multiple Linear Regression - Regression Statistics
Multiple R0.886111711290853
R-squared0.785193964886805
Adjusted R-squared0.72577952964273
F-TEST (value)13.2155420086250
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.37907463226838e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation22.0198090459688
Sum Squared Residuals22788.9835497836

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.886111711290853 \tabularnewline
R-squared & 0.785193964886805 \tabularnewline
Adjusted R-squared & 0.72577952964273 \tabularnewline
F-TEST (value) & 13.2155420086250 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.37907463226838e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 22.0198090459688 \tabularnewline
Sum Squared Residuals & 22788.9835497836 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.886111711290853[/C][/ROW]
[ROW][C]R-squared[/C][C]0.785193964886805[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.72577952964273[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.2155420086250[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]1.37907463226838e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]22.0198090459688[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22788.9835497836[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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.886111711290853
R-squared0.785193964886805
Adjusted R-squared0.72577952964273
F-TEST (value)13.2155420086250
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.37907463226838e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation22.0198090459688
Sum Squared Residuals22788.9835497836







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1613641.080086580087-28.0800865800875
2611617.968398268398-6.96839826839825
3594602.568398268398-8.56839826839822
4595604.968398268398-9.96839826839813
5591607.168398268398-16.1683982683981
6589602.968398268398-13.9683982683981
7584594.168398268398-10.1683982683983
8573589.168398268398-16.1683982683982
9567577.968398268398-10.9683982683983
10569580.168398268398-11.1683982683982
11621631.368398268398-10.3683982683982
12629639.368398268398-10.3683982683982
13628611.63939393939416.3606060606063
14612588.52770562770623.4722943722944
15595573.12770562770621.8722943722944
16597575.52770562770621.4722943722944
17593577.72770562770615.2722943722944
18590573.52770562770616.4722943722944
19580564.72770562770615.2722943722944
20574559.72770562770614.2722943722944
21573548.52770562770624.4722943722944
22573550.72770562770622.2722943722944
23620601.92770562770618.0722943722944
24626609.92770562770616.0722943722944
25620582.19870129870137.8012987012989
26588559.08701298701328.912987012987
27566543.68701298701322.3129870129870
28557546.08701298701310.9129870129870
29561548.28701298701312.7129870129870
30549544.0870129870134.91298701298698
31532535.287012987013-3.28701298701298
32526530.287012987013-4.28701298701298
33511519.087012987013-8.08701298701298
34499521.287012987013-22.287012987013
35555572.487012987013-17.487012987013
36565580.487012987013-15.4870129870130
37542552.758008658009-10.7580086580085
38527529.64632034632-2.64632034632037
39510514.24632034632-4.24632034632038
40514516.64632034632-2.64632034632038
41517518.84632034632-1.84632034632040
42508514.64632034632-6.64632034632039
43493505.84632034632-12.8463203463204
44490500.84632034632-10.8463203463204
45469489.64632034632-20.6463203463204
46478491.84632034632-13.8463203463204
47528543.04632034632-15.0463203463204
48534551.04632034632-17.0463203463204
49518571.882251082251-53.8822510822509
50506548.770562770563-42.7705627705628
51502533.370562770563-31.3705627705628
52516535.770562770563-19.7705627705628
53528537.970562770563-9.97056277056282
54533533.770562770563-0.770562770562831
55536524.97056277056311.0294372294372
56537519.97056277056317.0294372294372
57524508.77056277056315.2294372294372
58536510.97056277056325.0294372294372
59587562.17056277056324.8294372294372
60597570.17056277056326.8294372294372
61581542.44155844155838.5584415584417

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 613 & 641.080086580087 & -28.0800865800875 \tabularnewline
2 & 611 & 617.968398268398 & -6.96839826839825 \tabularnewline
3 & 594 & 602.568398268398 & -8.56839826839822 \tabularnewline
4 & 595 & 604.968398268398 & -9.96839826839813 \tabularnewline
5 & 591 & 607.168398268398 & -16.1683982683981 \tabularnewline
6 & 589 & 602.968398268398 & -13.9683982683981 \tabularnewline
7 & 584 & 594.168398268398 & -10.1683982683983 \tabularnewline
8 & 573 & 589.168398268398 & -16.1683982683982 \tabularnewline
9 & 567 & 577.968398268398 & -10.9683982683983 \tabularnewline
10 & 569 & 580.168398268398 & -11.1683982683982 \tabularnewline
11 & 621 & 631.368398268398 & -10.3683982683982 \tabularnewline
12 & 629 & 639.368398268398 & -10.3683982683982 \tabularnewline
13 & 628 & 611.639393939394 & 16.3606060606063 \tabularnewline
14 & 612 & 588.527705627706 & 23.4722943722944 \tabularnewline
15 & 595 & 573.127705627706 & 21.8722943722944 \tabularnewline
16 & 597 & 575.527705627706 & 21.4722943722944 \tabularnewline
17 & 593 & 577.727705627706 & 15.2722943722944 \tabularnewline
18 & 590 & 573.527705627706 & 16.4722943722944 \tabularnewline
19 & 580 & 564.727705627706 & 15.2722943722944 \tabularnewline
20 & 574 & 559.727705627706 & 14.2722943722944 \tabularnewline
21 & 573 & 548.527705627706 & 24.4722943722944 \tabularnewline
22 & 573 & 550.727705627706 & 22.2722943722944 \tabularnewline
23 & 620 & 601.927705627706 & 18.0722943722944 \tabularnewline
24 & 626 & 609.927705627706 & 16.0722943722944 \tabularnewline
25 & 620 & 582.198701298701 & 37.8012987012989 \tabularnewline
26 & 588 & 559.087012987013 & 28.912987012987 \tabularnewline
27 & 566 & 543.687012987013 & 22.3129870129870 \tabularnewline
28 & 557 & 546.087012987013 & 10.9129870129870 \tabularnewline
29 & 561 & 548.287012987013 & 12.7129870129870 \tabularnewline
30 & 549 & 544.087012987013 & 4.91298701298698 \tabularnewline
31 & 532 & 535.287012987013 & -3.28701298701298 \tabularnewline
32 & 526 & 530.287012987013 & -4.28701298701298 \tabularnewline
33 & 511 & 519.087012987013 & -8.08701298701298 \tabularnewline
34 & 499 & 521.287012987013 & -22.287012987013 \tabularnewline
35 & 555 & 572.487012987013 & -17.487012987013 \tabularnewline
36 & 565 & 580.487012987013 & -15.4870129870130 \tabularnewline
37 & 542 & 552.758008658009 & -10.7580086580085 \tabularnewline
38 & 527 & 529.64632034632 & -2.64632034632037 \tabularnewline
39 & 510 & 514.24632034632 & -4.24632034632038 \tabularnewline
40 & 514 & 516.64632034632 & -2.64632034632038 \tabularnewline
41 & 517 & 518.84632034632 & -1.84632034632040 \tabularnewline
42 & 508 & 514.64632034632 & -6.64632034632039 \tabularnewline
43 & 493 & 505.84632034632 & -12.8463203463204 \tabularnewline
44 & 490 & 500.84632034632 & -10.8463203463204 \tabularnewline
45 & 469 & 489.64632034632 & -20.6463203463204 \tabularnewline
46 & 478 & 491.84632034632 & -13.8463203463204 \tabularnewline
47 & 528 & 543.04632034632 & -15.0463203463204 \tabularnewline
48 & 534 & 551.04632034632 & -17.0463203463204 \tabularnewline
49 & 518 & 571.882251082251 & -53.8822510822509 \tabularnewline
50 & 506 & 548.770562770563 & -42.7705627705628 \tabularnewline
51 & 502 & 533.370562770563 & -31.3705627705628 \tabularnewline
52 & 516 & 535.770562770563 & -19.7705627705628 \tabularnewline
53 & 528 & 537.970562770563 & -9.97056277056282 \tabularnewline
54 & 533 & 533.770562770563 & -0.770562770562831 \tabularnewline
55 & 536 & 524.970562770563 & 11.0294372294372 \tabularnewline
56 & 537 & 519.970562770563 & 17.0294372294372 \tabularnewline
57 & 524 & 508.770562770563 & 15.2294372294372 \tabularnewline
58 & 536 & 510.970562770563 & 25.0294372294372 \tabularnewline
59 & 587 & 562.170562770563 & 24.8294372294372 \tabularnewline
60 & 597 & 570.170562770563 & 26.8294372294372 \tabularnewline
61 & 581 & 542.441558441558 & 38.5584415584417 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&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]613[/C][C]641.080086580087[/C][C]-28.0800865800875[/C][/ROW]
[ROW][C]2[/C][C]611[/C][C]617.968398268398[/C][C]-6.96839826839825[/C][/ROW]
[ROW][C]3[/C][C]594[/C][C]602.568398268398[/C][C]-8.56839826839822[/C][/ROW]
[ROW][C]4[/C][C]595[/C][C]604.968398268398[/C][C]-9.96839826839813[/C][/ROW]
[ROW][C]5[/C][C]591[/C][C]607.168398268398[/C][C]-16.1683982683981[/C][/ROW]
[ROW][C]6[/C][C]589[/C][C]602.968398268398[/C][C]-13.9683982683981[/C][/ROW]
[ROW][C]7[/C][C]584[/C][C]594.168398268398[/C][C]-10.1683982683983[/C][/ROW]
[ROW][C]8[/C][C]573[/C][C]589.168398268398[/C][C]-16.1683982683982[/C][/ROW]
[ROW][C]9[/C][C]567[/C][C]577.968398268398[/C][C]-10.9683982683983[/C][/ROW]
[ROW][C]10[/C][C]569[/C][C]580.168398268398[/C][C]-11.1683982683982[/C][/ROW]
[ROW][C]11[/C][C]621[/C][C]631.368398268398[/C][C]-10.3683982683982[/C][/ROW]
[ROW][C]12[/C][C]629[/C][C]639.368398268398[/C][C]-10.3683982683982[/C][/ROW]
[ROW][C]13[/C][C]628[/C][C]611.639393939394[/C][C]16.3606060606063[/C][/ROW]
[ROW][C]14[/C][C]612[/C][C]588.527705627706[/C][C]23.4722943722944[/C][/ROW]
[ROW][C]15[/C][C]595[/C][C]573.127705627706[/C][C]21.8722943722944[/C][/ROW]
[ROW][C]16[/C][C]597[/C][C]575.527705627706[/C][C]21.4722943722944[/C][/ROW]
[ROW][C]17[/C][C]593[/C][C]577.727705627706[/C][C]15.2722943722944[/C][/ROW]
[ROW][C]18[/C][C]590[/C][C]573.527705627706[/C][C]16.4722943722944[/C][/ROW]
[ROW][C]19[/C][C]580[/C][C]564.727705627706[/C][C]15.2722943722944[/C][/ROW]
[ROW][C]20[/C][C]574[/C][C]559.727705627706[/C][C]14.2722943722944[/C][/ROW]
[ROW][C]21[/C][C]573[/C][C]548.527705627706[/C][C]24.4722943722944[/C][/ROW]
[ROW][C]22[/C][C]573[/C][C]550.727705627706[/C][C]22.2722943722944[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]601.927705627706[/C][C]18.0722943722944[/C][/ROW]
[ROW][C]24[/C][C]626[/C][C]609.927705627706[/C][C]16.0722943722944[/C][/ROW]
[ROW][C]25[/C][C]620[/C][C]582.198701298701[/C][C]37.8012987012989[/C][/ROW]
[ROW][C]26[/C][C]588[/C][C]559.087012987013[/C][C]28.912987012987[/C][/ROW]
[ROW][C]27[/C][C]566[/C][C]543.687012987013[/C][C]22.3129870129870[/C][/ROW]
[ROW][C]28[/C][C]557[/C][C]546.087012987013[/C][C]10.9129870129870[/C][/ROW]
[ROW][C]29[/C][C]561[/C][C]548.287012987013[/C][C]12.7129870129870[/C][/ROW]
[ROW][C]30[/C][C]549[/C][C]544.087012987013[/C][C]4.91298701298698[/C][/ROW]
[ROW][C]31[/C][C]532[/C][C]535.287012987013[/C][C]-3.28701298701298[/C][/ROW]
[ROW][C]32[/C][C]526[/C][C]530.287012987013[/C][C]-4.28701298701298[/C][/ROW]
[ROW][C]33[/C][C]511[/C][C]519.087012987013[/C][C]-8.08701298701298[/C][/ROW]
[ROW][C]34[/C][C]499[/C][C]521.287012987013[/C][C]-22.287012987013[/C][/ROW]
[ROW][C]35[/C][C]555[/C][C]572.487012987013[/C][C]-17.487012987013[/C][/ROW]
[ROW][C]36[/C][C]565[/C][C]580.487012987013[/C][C]-15.4870129870130[/C][/ROW]
[ROW][C]37[/C][C]542[/C][C]552.758008658009[/C][C]-10.7580086580085[/C][/ROW]
[ROW][C]38[/C][C]527[/C][C]529.64632034632[/C][C]-2.64632034632037[/C][/ROW]
[ROW][C]39[/C][C]510[/C][C]514.24632034632[/C][C]-4.24632034632038[/C][/ROW]
[ROW][C]40[/C][C]514[/C][C]516.64632034632[/C][C]-2.64632034632038[/C][/ROW]
[ROW][C]41[/C][C]517[/C][C]518.84632034632[/C][C]-1.84632034632040[/C][/ROW]
[ROW][C]42[/C][C]508[/C][C]514.64632034632[/C][C]-6.64632034632039[/C][/ROW]
[ROW][C]43[/C][C]493[/C][C]505.84632034632[/C][C]-12.8463203463204[/C][/ROW]
[ROW][C]44[/C][C]490[/C][C]500.84632034632[/C][C]-10.8463203463204[/C][/ROW]
[ROW][C]45[/C][C]469[/C][C]489.64632034632[/C][C]-20.6463203463204[/C][/ROW]
[ROW][C]46[/C][C]478[/C][C]491.84632034632[/C][C]-13.8463203463204[/C][/ROW]
[ROW][C]47[/C][C]528[/C][C]543.04632034632[/C][C]-15.0463203463204[/C][/ROW]
[ROW][C]48[/C][C]534[/C][C]551.04632034632[/C][C]-17.0463203463204[/C][/ROW]
[ROW][C]49[/C][C]518[/C][C]571.882251082251[/C][C]-53.8822510822509[/C][/ROW]
[ROW][C]50[/C][C]506[/C][C]548.770562770563[/C][C]-42.7705627705628[/C][/ROW]
[ROW][C]51[/C][C]502[/C][C]533.370562770563[/C][C]-31.3705627705628[/C][/ROW]
[ROW][C]52[/C][C]516[/C][C]535.770562770563[/C][C]-19.7705627705628[/C][/ROW]
[ROW][C]53[/C][C]528[/C][C]537.970562770563[/C][C]-9.97056277056282[/C][/ROW]
[ROW][C]54[/C][C]533[/C][C]533.770562770563[/C][C]-0.770562770562831[/C][/ROW]
[ROW][C]55[/C][C]536[/C][C]524.970562770563[/C][C]11.0294372294372[/C][/ROW]
[ROW][C]56[/C][C]537[/C][C]519.970562770563[/C][C]17.0294372294372[/C][/ROW]
[ROW][C]57[/C][C]524[/C][C]508.770562770563[/C][C]15.2294372294372[/C][/ROW]
[ROW][C]58[/C][C]536[/C][C]510.970562770563[/C][C]25.0294372294372[/C][/ROW]
[ROW][C]59[/C][C]587[/C][C]562.170562770563[/C][C]24.8294372294372[/C][/ROW]
[ROW][C]60[/C][C]597[/C][C]570.170562770563[/C][C]26.8294372294372[/C][/ROW]
[ROW][C]61[/C][C]581[/C][C]542.441558441558[/C][C]38.5584415584417[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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
1613641.080086580087-28.0800865800875
2611617.968398268398-6.96839826839825
3594602.568398268398-8.56839826839822
4595604.968398268398-9.96839826839813
5591607.168398268398-16.1683982683981
6589602.968398268398-13.9683982683981
7584594.168398268398-10.1683982683983
8573589.168398268398-16.1683982683982
9567577.968398268398-10.9683982683983
10569580.168398268398-11.1683982683982
11621631.368398268398-10.3683982683982
12629639.368398268398-10.3683982683982
13628611.63939393939416.3606060606063
14612588.52770562770623.4722943722944
15595573.12770562770621.8722943722944
16597575.52770562770621.4722943722944
17593577.72770562770615.2722943722944
18590573.52770562770616.4722943722944
19580564.72770562770615.2722943722944
20574559.72770562770614.2722943722944
21573548.52770562770624.4722943722944
22573550.72770562770622.2722943722944
23620601.92770562770618.0722943722944
24626609.92770562770616.0722943722944
25620582.19870129870137.8012987012989
26588559.08701298701328.912987012987
27566543.68701298701322.3129870129870
28557546.08701298701310.9129870129870
29561548.28701298701312.7129870129870
30549544.0870129870134.91298701298698
31532535.287012987013-3.28701298701298
32526530.287012987013-4.28701298701298
33511519.087012987013-8.08701298701298
34499521.287012987013-22.287012987013
35555572.487012987013-17.487012987013
36565580.487012987013-15.4870129870130
37542552.758008658009-10.7580086580085
38527529.64632034632-2.64632034632037
39510514.24632034632-4.24632034632038
40514516.64632034632-2.64632034632038
41517518.84632034632-1.84632034632040
42508514.64632034632-6.64632034632039
43493505.84632034632-12.8463203463204
44490500.84632034632-10.8463203463204
45469489.64632034632-20.6463203463204
46478491.84632034632-13.8463203463204
47528543.04632034632-15.0463203463204
48534551.04632034632-17.0463203463204
49518571.882251082251-53.8822510822509
50506548.770562770563-42.7705627705628
51502533.370562770563-31.3705627705628
52516535.770562770563-19.7705627705628
53528537.970562770563-9.97056277056282
54533533.770562770563-0.770562770562831
55536524.97056277056311.0294372294372
56537519.97056277056317.0294372294372
57524508.77056277056315.2294372294372
58536510.97056277056325.0294372294372
59587562.17056277056324.8294372294372
60597570.17056277056326.8294372294372
61581542.44155844155838.5584415584417







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01370691677205280.02741383354410560.986293083227947
180.002614185029138840.005228370058277680.997385814970861
190.0008104167120255710.001620833424051140.999189583287974
200.0001361078097280300.0002722156194560590.999863892190272
212.52444453492562e-055.04888906985124e-050.99997475555465
223.7787626663723e-067.5575253327446e-060.999996221237334
236.65012551220894e-071.33002510244179e-060.999999334987449
241.49629717717385e-072.99259435434771e-070.999999850370282
254.33471352725046e-088.66942705450092e-080.999999956652865
262.30758647195019e-054.61517294390037e-050.99997692413528
270.0003451637698399140.0006903275396798270.99965483623016
280.003281708324640490.006563416649280980.99671829167536
290.005070320332228530.01014064066445710.994929679667771
300.01073713429541340.02147426859082670.989262865704587
310.02473578701589410.04947157403178820.975264212984106
320.03244326261054820.06488652522109640.967556737389452
330.06358570582472060.1271714116494410.93641429417528
340.1138165863007410.2276331726014820.886183413699259
350.1344188452347760.2688376904695530.865581154765223
360.1805568801022990.3611137602045990.8194431198977
370.3209856465368420.6419712930736850.679014353463158
380.5372507243764610.9254985512470770.462749275623539
390.7194490737844870.5611018524310270.280550926215513
400.8596761554552670.2806476890894660.140323844544733
410.9609942731475360.07801145370492870.0390057268524644
420.9943783508695770.01124329826084580.0056216491304229
430.9947805638807920.0104388722384160.005219436119208
440.9971650623967210.005669875206557670.00283493760327884

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0137069167720528 & 0.0274138335441056 & 0.986293083227947 \tabularnewline
18 & 0.00261418502913884 & 0.00522837005827768 & 0.997385814970861 \tabularnewline
19 & 0.000810416712025571 & 0.00162083342405114 & 0.999189583287974 \tabularnewline
20 & 0.000136107809728030 & 0.000272215619456059 & 0.999863892190272 \tabularnewline
21 & 2.52444453492562e-05 & 5.04888906985124e-05 & 0.99997475555465 \tabularnewline
22 & 3.7787626663723e-06 & 7.5575253327446e-06 & 0.999996221237334 \tabularnewline
23 & 6.65012551220894e-07 & 1.33002510244179e-06 & 0.999999334987449 \tabularnewline
24 & 1.49629717717385e-07 & 2.99259435434771e-07 & 0.999999850370282 \tabularnewline
25 & 4.33471352725046e-08 & 8.66942705450092e-08 & 0.999999956652865 \tabularnewline
26 & 2.30758647195019e-05 & 4.61517294390037e-05 & 0.99997692413528 \tabularnewline
27 & 0.000345163769839914 & 0.000690327539679827 & 0.99965483623016 \tabularnewline
28 & 0.00328170832464049 & 0.00656341664928098 & 0.99671829167536 \tabularnewline
29 & 0.00507032033222853 & 0.0101406406644571 & 0.994929679667771 \tabularnewline
30 & 0.0107371342954134 & 0.0214742685908267 & 0.989262865704587 \tabularnewline
31 & 0.0247357870158941 & 0.0494715740317882 & 0.975264212984106 \tabularnewline
32 & 0.0324432626105482 & 0.0648865252210964 & 0.967556737389452 \tabularnewline
33 & 0.0635857058247206 & 0.127171411649441 & 0.93641429417528 \tabularnewline
34 & 0.113816586300741 & 0.227633172601482 & 0.886183413699259 \tabularnewline
35 & 0.134418845234776 & 0.268837690469553 & 0.865581154765223 \tabularnewline
36 & 0.180556880102299 & 0.361113760204599 & 0.8194431198977 \tabularnewline
37 & 0.320985646536842 & 0.641971293073685 & 0.679014353463158 \tabularnewline
38 & 0.537250724376461 & 0.925498551247077 & 0.462749275623539 \tabularnewline
39 & 0.719449073784487 & 0.561101852431027 & 0.280550926215513 \tabularnewline
40 & 0.859676155455267 & 0.280647689089466 & 0.140323844544733 \tabularnewline
41 & 0.960994273147536 & 0.0780114537049287 & 0.0390057268524644 \tabularnewline
42 & 0.994378350869577 & 0.0112432982608458 & 0.0056216491304229 \tabularnewline
43 & 0.994780563880792 & 0.010438872238416 & 0.005219436119208 \tabularnewline
44 & 0.997165062396721 & 0.00566987520655767 & 0.00283493760327884 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&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]17[/C][C]0.0137069167720528[/C][C]0.0274138335441056[/C][C]0.986293083227947[/C][/ROW]
[ROW][C]18[/C][C]0.00261418502913884[/C][C]0.00522837005827768[/C][C]0.997385814970861[/C][/ROW]
[ROW][C]19[/C][C]0.000810416712025571[/C][C]0.00162083342405114[/C][C]0.999189583287974[/C][/ROW]
[ROW][C]20[/C][C]0.000136107809728030[/C][C]0.000272215619456059[/C][C]0.999863892190272[/C][/ROW]
[ROW][C]21[/C][C]2.52444453492562e-05[/C][C]5.04888906985124e-05[/C][C]0.99997475555465[/C][/ROW]
[ROW][C]22[/C][C]3.7787626663723e-06[/C][C]7.5575253327446e-06[/C][C]0.999996221237334[/C][/ROW]
[ROW][C]23[/C][C]6.65012551220894e-07[/C][C]1.33002510244179e-06[/C][C]0.999999334987449[/C][/ROW]
[ROW][C]24[/C][C]1.49629717717385e-07[/C][C]2.99259435434771e-07[/C][C]0.999999850370282[/C][/ROW]
[ROW][C]25[/C][C]4.33471352725046e-08[/C][C]8.66942705450092e-08[/C][C]0.999999956652865[/C][/ROW]
[ROW][C]26[/C][C]2.30758647195019e-05[/C][C]4.61517294390037e-05[/C][C]0.99997692413528[/C][/ROW]
[ROW][C]27[/C][C]0.000345163769839914[/C][C]0.000690327539679827[/C][C]0.99965483623016[/C][/ROW]
[ROW][C]28[/C][C]0.00328170832464049[/C][C]0.00656341664928098[/C][C]0.99671829167536[/C][/ROW]
[ROW][C]29[/C][C]0.00507032033222853[/C][C]0.0101406406644571[/C][C]0.994929679667771[/C][/ROW]
[ROW][C]30[/C][C]0.0107371342954134[/C][C]0.0214742685908267[/C][C]0.989262865704587[/C][/ROW]
[ROW][C]31[/C][C]0.0247357870158941[/C][C]0.0494715740317882[/C][C]0.975264212984106[/C][/ROW]
[ROW][C]32[/C][C]0.0324432626105482[/C][C]0.0648865252210964[/C][C]0.967556737389452[/C][/ROW]
[ROW][C]33[/C][C]0.0635857058247206[/C][C]0.127171411649441[/C][C]0.93641429417528[/C][/ROW]
[ROW][C]34[/C][C]0.113816586300741[/C][C]0.227633172601482[/C][C]0.886183413699259[/C][/ROW]
[ROW][C]35[/C][C]0.134418845234776[/C][C]0.268837690469553[/C][C]0.865581154765223[/C][/ROW]
[ROW][C]36[/C][C]0.180556880102299[/C][C]0.361113760204599[/C][C]0.8194431198977[/C][/ROW]
[ROW][C]37[/C][C]0.320985646536842[/C][C]0.641971293073685[/C][C]0.679014353463158[/C][/ROW]
[ROW][C]38[/C][C]0.537250724376461[/C][C]0.925498551247077[/C][C]0.462749275623539[/C][/ROW]
[ROW][C]39[/C][C]0.719449073784487[/C][C]0.561101852431027[/C][C]0.280550926215513[/C][/ROW]
[ROW][C]40[/C][C]0.859676155455267[/C][C]0.280647689089466[/C][C]0.140323844544733[/C][/ROW]
[ROW][C]41[/C][C]0.960994273147536[/C][C]0.0780114537049287[/C][C]0.0390057268524644[/C][/ROW]
[ROW][C]42[/C][C]0.994378350869577[/C][C]0.0112432982608458[/C][C]0.0056216491304229[/C][/ROW]
[ROW][C]43[/C][C]0.994780563880792[/C][C]0.010438872238416[/C][C]0.005219436119208[/C][/ROW]
[ROW][C]44[/C][C]0.997165062396721[/C][C]0.00566987520655767[/C][C]0.00283493760327884[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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
170.01370691677205280.02741383354410560.986293083227947
180.002614185029138840.005228370058277680.997385814970861
190.0008104167120255710.001620833424051140.999189583287974
200.0001361078097280300.0002722156194560590.999863892190272
212.52444453492562e-055.04888906985124e-050.99997475555465
223.7787626663723e-067.5575253327446e-060.999996221237334
236.65012551220894e-071.33002510244179e-060.999999334987449
241.49629717717385e-072.99259435434771e-070.999999850370282
254.33471352725046e-088.66942705450092e-080.999999956652865
262.30758647195019e-054.61517294390037e-050.99997692413528
270.0003451637698399140.0006903275396798270.99965483623016
280.003281708324640490.006563416649280980.99671829167536
290.005070320332228530.01014064066445710.994929679667771
300.01073713429541340.02147426859082670.989262865704587
310.02473578701589410.04947157403178820.975264212984106
320.03244326261054820.06488652522109640.967556737389452
330.06358570582472060.1271714116494410.93641429417528
340.1138165863007410.2276331726014820.886183413699259
350.1344188452347760.2688376904695530.865581154765223
360.1805568801022990.3611137602045990.8194431198977
370.3209856465368420.6419712930736850.679014353463158
380.5372507243764610.9254985512470770.462749275623539
390.7194490737844870.5611018524310270.280550926215513
400.8596761554552670.2806476890894660.140323844544733
410.9609942731475360.07801145370492870.0390057268524644
420.9943783508695770.01124329826084580.0056216491304229
430.9947805638807920.0104388722384160.005219436119208
440.9971650623967210.005669875206557670.00283493760327884







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level120.428571428571429NOK
5% type I error level180.642857142857143NOK
10% type I error level200.714285714285714NOK

\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 & 12 & 0.428571428571429 & NOK \tabularnewline
5% type I error level & 18 & 0.642857142857143 & NOK \tabularnewline
10% type I error level & 20 & 0.714285714285714 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58198&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]12[/C][C]0.428571428571429[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]18[/C][C]0.642857142857143[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]20[/C][C]0.714285714285714[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58198&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58198&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 level120.428571428571429NOK
5% type I error level180.642857142857143NOK
10% type I error level200.714285714285714NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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')
}