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, 27 Nov 2009 06:17:40 -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/27/t1259327983ugoos18jptl6195.htm/, Retrieved Sun, 28 Apr 2024 22:40:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60725, Retrieved Sun, 28 Apr 2024 22:40:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [workshop 7 data 2] [2009-11-20 18:14:50] [74be16979710d4c4e7c6647856088456]
-   P         [Multiple Regression] [] [2009-11-27 13:17:40] [71596e6a53ccce532e52aaf6113616ef] [Current]
Feedback Forum

Post a new message
Dataseries X:
543	0
594	0
611	0
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	1
478	1
528	1
534	1
518	1
506	1
502	1
516	1
528	1
533	1
536	1
537	1
524	1
536	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=60725&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=60725&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60725&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
Yt[t] = + 548.326582278481 -48.8164556962025X[t] + 0.945569620252883M1[t] + 45.0367088607595M2[t] + 54.4367088607595M3[t] + 45.6367088607595M4[t] + 30.2367088607595M5[t] + 14.8367088607595M6[t] + 17.2367088607595M7[t] + 19.4367088607595M8[t] + 15.2367088607595M9[t] + 6.43670886075953M10[t] + 1.43670886075952M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Yt[t] =  +  548.326582278481 -48.8164556962025X[t] +  0.945569620252883M1[t] +  45.0367088607595M2[t] +  54.4367088607595M3[t] +  45.6367088607595M4[t] +  30.2367088607595M5[t] +  14.8367088607595M6[t] +  17.2367088607595M7[t] +  19.4367088607595M8[t] +  15.2367088607595M9[t] +  6.43670886075953M10[t] +  1.43670886075952M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60725&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Yt[t] =  +  548.326582278481 -48.8164556962025X[t] +  0.945569620252883M1[t] +  45.0367088607595M2[t] +  54.4367088607595M3[t] +  45.6367088607595M4[t] +  30.2367088607595M5[t] +  14.8367088607595M6[t] +  17.2367088607595M7[t] +  19.4367088607595M8[t] +  15.2367088607595M9[t] +  6.43670886075953M10[t] +  1.43670886075952M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60725&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60725&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
Yt[t] = + 548.326582278481 -48.8164556962025X[t] + 0.945569620252883M1[t] + 45.0367088607595M2[t] + 54.4367088607595M3[t] + 45.6367088607595M4[t] + 30.2367088607595M5[t] + 14.8367088607595M6[t] + 17.2367088607595M7[t] + 19.4367088607595M8[t] + 15.2367088607595M9[t] + 6.43670886075953M10[t] + 1.43670886075952M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)548.32658227848116.16889633.912400
X-48.816455696202510.739561-4.54553.7e-051.9e-05
M10.94556962025288321.1181030.04480.9644720.482236
M245.036708860759522.1488532.03340.0475650.023782
M354.436708860759522.1488532.45780.0176420.008821
M445.636708860759522.1488532.06050.0447970.022399
M530.236708860759522.1488531.36520.1785680.089284
M614.836708860759522.1488530.66990.5061550.253077
M717.236708860759522.1488530.77820.4402580.220129
M819.436708860759522.1488530.87750.384560.19228
M915.236708860759522.1488530.68790.4948120.247406
M106.4367088607595322.1488530.29060.7726010.3863
M111.4367088607595222.1488530.06490.948550.474275

\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) & 548.326582278481 & 16.168896 & 33.9124 & 0 & 0 \tabularnewline
X & -48.8164556962025 & 10.739561 & -4.5455 & 3.7e-05 & 1.9e-05 \tabularnewline
M1 & 0.945569620252883 & 21.118103 & 0.0448 & 0.964472 & 0.482236 \tabularnewline
M2 & 45.0367088607595 & 22.148853 & 2.0334 & 0.047565 & 0.023782 \tabularnewline
M3 & 54.4367088607595 & 22.148853 & 2.4578 & 0.017642 & 0.008821 \tabularnewline
M4 & 45.6367088607595 & 22.148853 & 2.0605 & 0.044797 & 0.022399 \tabularnewline
M5 & 30.2367088607595 & 22.148853 & 1.3652 & 0.178568 & 0.089284 \tabularnewline
M6 & 14.8367088607595 & 22.148853 & 0.6699 & 0.506155 & 0.253077 \tabularnewline
M7 & 17.2367088607595 & 22.148853 & 0.7782 & 0.440258 & 0.220129 \tabularnewline
M8 & 19.4367088607595 & 22.148853 & 0.8775 & 0.38456 & 0.19228 \tabularnewline
M9 & 15.2367088607595 & 22.148853 & 0.6879 & 0.494812 & 0.247406 \tabularnewline
M10 & 6.43670886075953 & 22.148853 & 0.2906 & 0.772601 & 0.3863 \tabularnewline
M11 & 1.43670886075952 & 22.148853 & 0.0649 & 0.94855 & 0.474275 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60725&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]548.326582278481[/C][C]16.168896[/C][C]33.9124[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-48.8164556962025[/C][C]10.739561[/C][C]-4.5455[/C][C]3.7e-05[/C][C]1.9e-05[/C][/ROW]
[ROW][C]M1[/C][C]0.945569620252883[/C][C]21.118103[/C][C]0.0448[/C][C]0.964472[/C][C]0.482236[/C][/ROW]
[ROW][C]M2[/C][C]45.0367088607595[/C][C]22.148853[/C][C]2.0334[/C][C]0.047565[/C][C]0.023782[/C][/ROW]
[ROW][C]M3[/C][C]54.4367088607595[/C][C]22.148853[/C][C]2.4578[/C][C]0.017642[/C][C]0.008821[/C][/ROW]
[ROW][C]M4[/C][C]45.6367088607595[/C][C]22.148853[/C][C]2.0605[/C][C]0.044797[/C][C]0.022399[/C][/ROW]
[ROW][C]M5[/C][C]30.2367088607595[/C][C]22.148853[/C][C]1.3652[/C][C]0.178568[/C][C]0.089284[/C][/ROW]
[ROW][C]M6[/C][C]14.8367088607595[/C][C]22.148853[/C][C]0.6699[/C][C]0.506155[/C][C]0.253077[/C][/ROW]
[ROW][C]M7[/C][C]17.2367088607595[/C][C]22.148853[/C][C]0.7782[/C][C]0.440258[/C][C]0.220129[/C][/ROW]
[ROW][C]M8[/C][C]19.4367088607595[/C][C]22.148853[/C][C]0.8775[/C][C]0.38456[/C][C]0.19228[/C][/ROW]
[ROW][C]M9[/C][C]15.2367088607595[/C][C]22.148853[/C][C]0.6879[/C][C]0.494812[/C][C]0.247406[/C][/ROW]
[ROW][C]M10[/C][C]6.43670886075953[/C][C]22.148853[/C][C]0.2906[/C][C]0.772601[/C][C]0.3863[/C][/ROW]
[ROW][C]M11[/C][C]1.43670886075952[/C][C]22.148853[/C][C]0.0649[/C][C]0.94855[/C][C]0.474275[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60725&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60725&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)548.32658227848116.16889633.912400
X-48.816455696202510.739561-4.54553.7e-051.9e-05
M10.94556962025288321.1181030.04480.9644720.482236
M245.036708860759522.1488532.03340.0475650.023782
M354.436708860759522.1488532.45780.0176420.008821
M445.636708860759522.1488532.06050.0447970.022399
M530.236708860759522.1488531.36520.1785680.089284
M614.836708860759522.1488530.66990.5061550.253077
M717.236708860759522.1488530.77820.4402580.220129
M819.436708860759522.1488530.87750.384560.19228
M915.236708860759522.1488530.68790.4948120.247406
M106.4367088607595322.1488530.29060.7726010.3863
M111.4367088607595222.1488530.06490.948550.474275







Multiple Linear Regression - Regression Statistics
Multiple R0.676505460555468
R-squared0.457659638161366
Adjusted R-squared0.322074547701707
F-TEST (value)3.37544221573194
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00128608346648806
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation34.8553494462629
Sum Squared Residuals58314.9784810127

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.676505460555468 \tabularnewline
R-squared & 0.457659638161366 \tabularnewline
Adjusted R-squared & 0.322074547701707 \tabularnewline
F-TEST (value) & 3.37544221573194 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.00128608346648806 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 34.8553494462629 \tabularnewline
Sum Squared Residuals & 58314.9784810127 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60725&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.676505460555468[/C][/ROW]
[ROW][C]R-squared[/C][C]0.457659638161366[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.322074547701707[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.37544221573194[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.00128608346648806[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]34.8553494462629[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]58314.9784810127[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60725&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60725&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.676505460555468
R-squared0.457659638161366
Adjusted R-squared0.322074547701707
F-TEST (value)3.37544221573194
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00128608346648806
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation34.8553494462629
Sum Squared Residuals58314.9784810127







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1543549.272151898736-6.27215189873589
2594593.363291139240.6367088607595
3611602.763291139248.23670886075943
4613593.9632911392419.0367088607595
5611578.5632911392432.4367088607595
6594563.1632911392430.8367088607595
7595565.5632911392429.4367088607595
8591567.7632911392423.2367088607595
9589563.5632911392425.4367088607595
10584554.7632911392429.2367088607595
11573549.7632911392423.2367088607595
12567548.32658227848118.6734177215190
13569549.27215189873419.7278481012662
14621593.3632911392427.6367088607595
15629602.7632911392426.2367088607595
16628593.9632911392434.0367088607595
17612578.5632911392433.4367088607595
18595563.1632911392431.8367088607595
19597565.5632911392431.4367088607595
20593567.7632911392425.2367088607595
21590563.5632911392426.4367088607595
22580554.7632911392425.2367088607595
23574549.7632911392424.2367088607595
24573548.32658227848124.6734177215190
25573549.27215189873423.7278481012662
26620593.3632911392426.6367088607595
27626602.7632911392423.2367088607595
28620593.9632911392426.0367088607595
29588578.563291139249.4367088607595
30566563.163291139242.83670886075950
31557565.56329113924-8.5632911392405
32561567.76329113924-6.76329113924049
33549563.56329113924-14.5632911392405
34532554.76329113924-22.7632911392405
35526549.76329113924-23.7632911392405
36511548.326582278481-37.326582278481
37499549.272151898734-50.2721518987338
38555593.36329113924-38.3632911392405
39565602.76329113924-37.7632911392405
40542593.96329113924-51.9632911392405
41527578.56329113924-51.5632911392405
42510563.16329113924-53.1632911392405
43514565.56329113924-51.5632911392405
44517567.76329113924-50.7632911392405
45508563.56329113924-55.5632911392405
46493554.76329113924-61.7632911392405
47490549.76329113924-59.7632911392405
48469499.510126582279-30.5101265822785
49478500.455696202531-22.4556962025313
50528544.546835443038-16.546835443038
51534553.946835443038-19.9468354430380
52518545.146835443038-27.1468354430380
53506529.746835443038-23.7468354430380
54502514.346835443038-12.3468354430380
55516516.746835443038-0.746835443038022
56528518.9468354430389.05316455696198
57533514.74683544303818.253164556962
58536505.94683544303830.0531645569620
59537500.94683544303836.053164556962
60524499.51012658227924.4898734177215
61536500.45569620253135.5443037974686

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 543 & 549.272151898736 & -6.27215189873589 \tabularnewline
2 & 594 & 593.36329113924 & 0.6367088607595 \tabularnewline
3 & 611 & 602.76329113924 & 8.23670886075943 \tabularnewline
4 & 613 & 593.96329113924 & 19.0367088607595 \tabularnewline
5 & 611 & 578.56329113924 & 32.4367088607595 \tabularnewline
6 & 594 & 563.16329113924 & 30.8367088607595 \tabularnewline
7 & 595 & 565.56329113924 & 29.4367088607595 \tabularnewline
8 & 591 & 567.76329113924 & 23.2367088607595 \tabularnewline
9 & 589 & 563.56329113924 & 25.4367088607595 \tabularnewline
10 & 584 & 554.76329113924 & 29.2367088607595 \tabularnewline
11 & 573 & 549.76329113924 & 23.2367088607595 \tabularnewline
12 & 567 & 548.326582278481 & 18.6734177215190 \tabularnewline
13 & 569 & 549.272151898734 & 19.7278481012662 \tabularnewline
14 & 621 & 593.36329113924 & 27.6367088607595 \tabularnewline
15 & 629 & 602.76329113924 & 26.2367088607595 \tabularnewline
16 & 628 & 593.96329113924 & 34.0367088607595 \tabularnewline
17 & 612 & 578.56329113924 & 33.4367088607595 \tabularnewline
18 & 595 & 563.16329113924 & 31.8367088607595 \tabularnewline
19 & 597 & 565.56329113924 & 31.4367088607595 \tabularnewline
20 & 593 & 567.76329113924 & 25.2367088607595 \tabularnewline
21 & 590 & 563.56329113924 & 26.4367088607595 \tabularnewline
22 & 580 & 554.76329113924 & 25.2367088607595 \tabularnewline
23 & 574 & 549.76329113924 & 24.2367088607595 \tabularnewline
24 & 573 & 548.326582278481 & 24.6734177215190 \tabularnewline
25 & 573 & 549.272151898734 & 23.7278481012662 \tabularnewline
26 & 620 & 593.36329113924 & 26.6367088607595 \tabularnewline
27 & 626 & 602.76329113924 & 23.2367088607595 \tabularnewline
28 & 620 & 593.96329113924 & 26.0367088607595 \tabularnewline
29 & 588 & 578.56329113924 & 9.4367088607595 \tabularnewline
30 & 566 & 563.16329113924 & 2.83670886075950 \tabularnewline
31 & 557 & 565.56329113924 & -8.5632911392405 \tabularnewline
32 & 561 & 567.76329113924 & -6.76329113924049 \tabularnewline
33 & 549 & 563.56329113924 & -14.5632911392405 \tabularnewline
34 & 532 & 554.76329113924 & -22.7632911392405 \tabularnewline
35 & 526 & 549.76329113924 & -23.7632911392405 \tabularnewline
36 & 511 & 548.326582278481 & -37.326582278481 \tabularnewline
37 & 499 & 549.272151898734 & -50.2721518987338 \tabularnewline
38 & 555 & 593.36329113924 & -38.3632911392405 \tabularnewline
39 & 565 & 602.76329113924 & -37.7632911392405 \tabularnewline
40 & 542 & 593.96329113924 & -51.9632911392405 \tabularnewline
41 & 527 & 578.56329113924 & -51.5632911392405 \tabularnewline
42 & 510 & 563.16329113924 & -53.1632911392405 \tabularnewline
43 & 514 & 565.56329113924 & -51.5632911392405 \tabularnewline
44 & 517 & 567.76329113924 & -50.7632911392405 \tabularnewline
45 & 508 & 563.56329113924 & -55.5632911392405 \tabularnewline
46 & 493 & 554.76329113924 & -61.7632911392405 \tabularnewline
47 & 490 & 549.76329113924 & -59.7632911392405 \tabularnewline
48 & 469 & 499.510126582279 & -30.5101265822785 \tabularnewline
49 & 478 & 500.455696202531 & -22.4556962025313 \tabularnewline
50 & 528 & 544.546835443038 & -16.546835443038 \tabularnewline
51 & 534 & 553.946835443038 & -19.9468354430380 \tabularnewline
52 & 518 & 545.146835443038 & -27.1468354430380 \tabularnewline
53 & 506 & 529.746835443038 & -23.7468354430380 \tabularnewline
54 & 502 & 514.346835443038 & -12.3468354430380 \tabularnewline
55 & 516 & 516.746835443038 & -0.746835443038022 \tabularnewline
56 & 528 & 518.946835443038 & 9.05316455696198 \tabularnewline
57 & 533 & 514.746835443038 & 18.253164556962 \tabularnewline
58 & 536 & 505.946835443038 & 30.0531645569620 \tabularnewline
59 & 537 & 500.946835443038 & 36.053164556962 \tabularnewline
60 & 524 & 499.510126582279 & 24.4898734177215 \tabularnewline
61 & 536 & 500.455696202531 & 35.5443037974686 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60725&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]543[/C][C]549.272151898736[/C][C]-6.27215189873589[/C][/ROW]
[ROW][C]2[/C][C]594[/C][C]593.36329113924[/C][C]0.6367088607595[/C][/ROW]
[ROW][C]3[/C][C]611[/C][C]602.76329113924[/C][C]8.23670886075943[/C][/ROW]
[ROW][C]4[/C][C]613[/C][C]593.96329113924[/C][C]19.0367088607595[/C][/ROW]
[ROW][C]5[/C][C]611[/C][C]578.56329113924[/C][C]32.4367088607595[/C][/ROW]
[ROW][C]6[/C][C]594[/C][C]563.16329113924[/C][C]30.8367088607595[/C][/ROW]
[ROW][C]7[/C][C]595[/C][C]565.56329113924[/C][C]29.4367088607595[/C][/ROW]
[ROW][C]8[/C][C]591[/C][C]567.76329113924[/C][C]23.2367088607595[/C][/ROW]
[ROW][C]9[/C][C]589[/C][C]563.56329113924[/C][C]25.4367088607595[/C][/ROW]
[ROW][C]10[/C][C]584[/C][C]554.76329113924[/C][C]29.2367088607595[/C][/ROW]
[ROW][C]11[/C][C]573[/C][C]549.76329113924[/C][C]23.2367088607595[/C][/ROW]
[ROW][C]12[/C][C]567[/C][C]548.326582278481[/C][C]18.6734177215190[/C][/ROW]
[ROW][C]13[/C][C]569[/C][C]549.272151898734[/C][C]19.7278481012662[/C][/ROW]
[ROW][C]14[/C][C]621[/C][C]593.36329113924[/C][C]27.6367088607595[/C][/ROW]
[ROW][C]15[/C][C]629[/C][C]602.76329113924[/C][C]26.2367088607595[/C][/ROW]
[ROW][C]16[/C][C]628[/C][C]593.96329113924[/C][C]34.0367088607595[/C][/ROW]
[ROW][C]17[/C][C]612[/C][C]578.56329113924[/C][C]33.4367088607595[/C][/ROW]
[ROW][C]18[/C][C]595[/C][C]563.16329113924[/C][C]31.8367088607595[/C][/ROW]
[ROW][C]19[/C][C]597[/C][C]565.56329113924[/C][C]31.4367088607595[/C][/ROW]
[ROW][C]20[/C][C]593[/C][C]567.76329113924[/C][C]25.2367088607595[/C][/ROW]
[ROW][C]21[/C][C]590[/C][C]563.56329113924[/C][C]26.4367088607595[/C][/ROW]
[ROW][C]22[/C][C]580[/C][C]554.76329113924[/C][C]25.2367088607595[/C][/ROW]
[ROW][C]23[/C][C]574[/C][C]549.76329113924[/C][C]24.2367088607595[/C][/ROW]
[ROW][C]24[/C][C]573[/C][C]548.326582278481[/C][C]24.6734177215190[/C][/ROW]
[ROW][C]25[/C][C]573[/C][C]549.272151898734[/C][C]23.7278481012662[/C][/ROW]
[ROW][C]26[/C][C]620[/C][C]593.36329113924[/C][C]26.6367088607595[/C][/ROW]
[ROW][C]27[/C][C]626[/C][C]602.76329113924[/C][C]23.2367088607595[/C][/ROW]
[ROW][C]28[/C][C]620[/C][C]593.96329113924[/C][C]26.0367088607595[/C][/ROW]
[ROW][C]29[/C][C]588[/C][C]578.56329113924[/C][C]9.4367088607595[/C][/ROW]
[ROW][C]30[/C][C]566[/C][C]563.16329113924[/C][C]2.83670886075950[/C][/ROW]
[ROW][C]31[/C][C]557[/C][C]565.56329113924[/C][C]-8.5632911392405[/C][/ROW]
[ROW][C]32[/C][C]561[/C][C]567.76329113924[/C][C]-6.76329113924049[/C][/ROW]
[ROW][C]33[/C][C]549[/C][C]563.56329113924[/C][C]-14.5632911392405[/C][/ROW]
[ROW][C]34[/C][C]532[/C][C]554.76329113924[/C][C]-22.7632911392405[/C][/ROW]
[ROW][C]35[/C][C]526[/C][C]549.76329113924[/C][C]-23.7632911392405[/C][/ROW]
[ROW][C]36[/C][C]511[/C][C]548.326582278481[/C][C]-37.326582278481[/C][/ROW]
[ROW][C]37[/C][C]499[/C][C]549.272151898734[/C][C]-50.2721518987338[/C][/ROW]
[ROW][C]38[/C][C]555[/C][C]593.36329113924[/C][C]-38.3632911392405[/C][/ROW]
[ROW][C]39[/C][C]565[/C][C]602.76329113924[/C][C]-37.7632911392405[/C][/ROW]
[ROW][C]40[/C][C]542[/C][C]593.96329113924[/C][C]-51.9632911392405[/C][/ROW]
[ROW][C]41[/C][C]527[/C][C]578.56329113924[/C][C]-51.5632911392405[/C][/ROW]
[ROW][C]42[/C][C]510[/C][C]563.16329113924[/C][C]-53.1632911392405[/C][/ROW]
[ROW][C]43[/C][C]514[/C][C]565.56329113924[/C][C]-51.5632911392405[/C][/ROW]
[ROW][C]44[/C][C]517[/C][C]567.76329113924[/C][C]-50.7632911392405[/C][/ROW]
[ROW][C]45[/C][C]508[/C][C]563.56329113924[/C][C]-55.5632911392405[/C][/ROW]
[ROW][C]46[/C][C]493[/C][C]554.76329113924[/C][C]-61.7632911392405[/C][/ROW]
[ROW][C]47[/C][C]490[/C][C]549.76329113924[/C][C]-59.7632911392405[/C][/ROW]
[ROW][C]48[/C][C]469[/C][C]499.510126582279[/C][C]-30.5101265822785[/C][/ROW]
[ROW][C]49[/C][C]478[/C][C]500.455696202531[/C][C]-22.4556962025313[/C][/ROW]
[ROW][C]50[/C][C]528[/C][C]544.546835443038[/C][C]-16.546835443038[/C][/ROW]
[ROW][C]51[/C][C]534[/C][C]553.946835443038[/C][C]-19.9468354430380[/C][/ROW]
[ROW][C]52[/C][C]518[/C][C]545.146835443038[/C][C]-27.1468354430380[/C][/ROW]
[ROW][C]53[/C][C]506[/C][C]529.746835443038[/C][C]-23.7468354430380[/C][/ROW]
[ROW][C]54[/C][C]502[/C][C]514.346835443038[/C][C]-12.3468354430380[/C][/ROW]
[ROW][C]55[/C][C]516[/C][C]516.746835443038[/C][C]-0.746835443038022[/C][/ROW]
[ROW][C]56[/C][C]528[/C][C]518.946835443038[/C][C]9.05316455696198[/C][/ROW]
[ROW][C]57[/C][C]533[/C][C]514.746835443038[/C][C]18.253164556962[/C][/ROW]
[ROW][C]58[/C][C]536[/C][C]505.946835443038[/C][C]30.0531645569620[/C][/ROW]
[ROW][C]59[/C][C]537[/C][C]500.946835443038[/C][C]36.053164556962[/C][/ROW]
[ROW][C]60[/C][C]524[/C][C]499.510126582279[/C][C]24.4898734177215[/C][/ROW]
[ROW][C]61[/C][C]536[/C][C]500.455696202531[/C][C]35.5443037974686[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60725&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60725&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
1543549.272151898736-6.27215189873589
2594593.363291139240.6367088607595
3611602.763291139248.23670886075943
4613593.9632911392419.0367088607595
5611578.5632911392432.4367088607595
6594563.1632911392430.8367088607595
7595565.5632911392429.4367088607595
8591567.7632911392423.2367088607595
9589563.5632911392425.4367088607595
10584554.7632911392429.2367088607595
11573549.7632911392423.2367088607595
12567548.32658227848118.6734177215190
13569549.27215189873419.7278481012662
14621593.3632911392427.6367088607595
15629602.7632911392426.2367088607595
16628593.9632911392434.0367088607595
17612578.5632911392433.4367088607595
18595563.1632911392431.8367088607595
19597565.5632911392431.4367088607595
20593567.7632911392425.2367088607595
21590563.5632911392426.4367088607595
22580554.7632911392425.2367088607595
23574549.7632911392424.2367088607595
24573548.32658227848124.6734177215190
25573549.27215189873423.7278481012662
26620593.3632911392426.6367088607595
27626602.7632911392423.2367088607595
28620593.9632911392426.0367088607595
29588578.563291139249.4367088607595
30566563.163291139242.83670886075950
31557565.56329113924-8.5632911392405
32561567.76329113924-6.76329113924049
33549563.56329113924-14.5632911392405
34532554.76329113924-22.7632911392405
35526549.76329113924-23.7632911392405
36511548.326582278481-37.326582278481
37499549.272151898734-50.2721518987338
38555593.36329113924-38.3632911392405
39565602.76329113924-37.7632911392405
40542593.96329113924-51.9632911392405
41527578.56329113924-51.5632911392405
42510563.16329113924-53.1632911392405
43514565.56329113924-51.5632911392405
44517567.76329113924-50.7632911392405
45508563.56329113924-55.5632911392405
46493554.76329113924-61.7632911392405
47490549.76329113924-59.7632911392405
48469499.510126582279-30.5101265822785
49478500.455696202531-22.4556962025313
50528544.546835443038-16.546835443038
51534553.946835443038-19.9468354430380
52518545.146835443038-27.1468354430380
53506529.746835443038-23.7468354430380
54502514.346835443038-12.3468354430380
55516516.746835443038-0.746835443038022
56528518.9468354430389.05316455696198
57533514.74683544303818.253164556962
58536505.94683544303830.0531645569620
59537500.94683544303836.053164556962
60524499.51012658227924.4898734177215
61536500.45569620253135.5443037974686







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1270334878683230.2540669757366460.872966512131677
170.05282313582801370.1056462716560270.947176864171986
180.02084323362246510.04168646724493010.979156766377535
190.008011389516551680.01602277903310340.991988610483448
200.002846109174576170.005692218349152330.997153890825424
210.001002054093391700.002004108186783390.998997945906608
220.0003612489242335790.0007224978484671590.999638751075766
230.0001230481305421470.0002460962610842940.999876951869458
245.06523531574319e-050.0001013047063148640.999949347646843
255.08076254960606e-050.0001016152509921210.999949192374504
264.67070319199194e-059.34140638398389e-050.99995329296808
273.61050458323834e-057.22100916647668e-050.999963894954168
285.84154312178197e-050.0001168308624356390.999941584568782
290.0003605518380545880.0007211036761091750.999639448161945
300.002410056502947870.004820113005895730.997589943497052
310.01550499115836520.03100998231673040.984495008841635
320.03325225757507820.06650451515015650.966747742424922
330.07439332088129750.1487866417625950.925606679118703
340.1486407875779650.2972815751559300.851359212422035
350.1996920567534960.3993841135069920.800307943246504
360.2945079732136090.5890159464272190.70549202678639
370.3804045406197250.7608090812394490.619595459380275
380.4490160420301110.8980320840602220.550983957969889
390.527519095744560.944961808510880.47248090425544
400.6398341972317780.7203316055364450.360165802768222
410.7115408034803420.5769183930393150.288459196519658
420.7220752397898910.5558495204202190.277924760210109
430.6870381006946560.6259237986106870.312961899305344
440.6138249503174760.7723500993650490.386175049682524
450.4931510736669610.9863021473339230.506848926333039

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.127033487868323 & 0.254066975736646 & 0.872966512131677 \tabularnewline
17 & 0.0528231358280137 & 0.105646271656027 & 0.947176864171986 \tabularnewline
18 & 0.0208432336224651 & 0.0416864672449301 & 0.979156766377535 \tabularnewline
19 & 0.00801138951655168 & 0.0160227790331034 & 0.991988610483448 \tabularnewline
20 & 0.00284610917457617 & 0.00569221834915233 & 0.997153890825424 \tabularnewline
21 & 0.00100205409339170 & 0.00200410818678339 & 0.998997945906608 \tabularnewline
22 & 0.000361248924233579 & 0.000722497848467159 & 0.999638751075766 \tabularnewline
23 & 0.000123048130542147 & 0.000246096261084294 & 0.999876951869458 \tabularnewline
24 & 5.06523531574319e-05 & 0.000101304706314864 & 0.999949347646843 \tabularnewline
25 & 5.08076254960606e-05 & 0.000101615250992121 & 0.999949192374504 \tabularnewline
26 & 4.67070319199194e-05 & 9.34140638398389e-05 & 0.99995329296808 \tabularnewline
27 & 3.61050458323834e-05 & 7.22100916647668e-05 & 0.999963894954168 \tabularnewline
28 & 5.84154312178197e-05 & 0.000116830862435639 & 0.999941584568782 \tabularnewline
29 & 0.000360551838054588 & 0.000721103676109175 & 0.999639448161945 \tabularnewline
30 & 0.00241005650294787 & 0.00482011300589573 & 0.997589943497052 \tabularnewline
31 & 0.0155049911583652 & 0.0310099823167304 & 0.984495008841635 \tabularnewline
32 & 0.0332522575750782 & 0.0665045151501565 & 0.966747742424922 \tabularnewline
33 & 0.0743933208812975 & 0.148786641762595 & 0.925606679118703 \tabularnewline
34 & 0.148640787577965 & 0.297281575155930 & 0.851359212422035 \tabularnewline
35 & 0.199692056753496 & 0.399384113506992 & 0.800307943246504 \tabularnewline
36 & 0.294507973213609 & 0.589015946427219 & 0.70549202678639 \tabularnewline
37 & 0.380404540619725 & 0.760809081239449 & 0.619595459380275 \tabularnewline
38 & 0.449016042030111 & 0.898032084060222 & 0.550983957969889 \tabularnewline
39 & 0.52751909574456 & 0.94496180851088 & 0.47248090425544 \tabularnewline
40 & 0.639834197231778 & 0.720331605536445 & 0.360165802768222 \tabularnewline
41 & 0.711540803480342 & 0.576918393039315 & 0.288459196519658 \tabularnewline
42 & 0.722075239789891 & 0.555849520420219 & 0.277924760210109 \tabularnewline
43 & 0.687038100694656 & 0.625923798610687 & 0.312961899305344 \tabularnewline
44 & 0.613824950317476 & 0.772350099365049 & 0.386175049682524 \tabularnewline
45 & 0.493151073666961 & 0.986302147333923 & 0.506848926333039 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60725&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.127033487868323[/C][C]0.254066975736646[/C][C]0.872966512131677[/C][/ROW]
[ROW][C]17[/C][C]0.0528231358280137[/C][C]0.105646271656027[/C][C]0.947176864171986[/C][/ROW]
[ROW][C]18[/C][C]0.0208432336224651[/C][C]0.0416864672449301[/C][C]0.979156766377535[/C][/ROW]
[ROW][C]19[/C][C]0.00801138951655168[/C][C]0.0160227790331034[/C][C]0.991988610483448[/C][/ROW]
[ROW][C]20[/C][C]0.00284610917457617[/C][C]0.00569221834915233[/C][C]0.997153890825424[/C][/ROW]
[ROW][C]21[/C][C]0.00100205409339170[/C][C]0.00200410818678339[/C][C]0.998997945906608[/C][/ROW]
[ROW][C]22[/C][C]0.000361248924233579[/C][C]0.000722497848467159[/C][C]0.999638751075766[/C][/ROW]
[ROW][C]23[/C][C]0.000123048130542147[/C][C]0.000246096261084294[/C][C]0.999876951869458[/C][/ROW]
[ROW][C]24[/C][C]5.06523531574319e-05[/C][C]0.000101304706314864[/C][C]0.999949347646843[/C][/ROW]
[ROW][C]25[/C][C]5.08076254960606e-05[/C][C]0.000101615250992121[/C][C]0.999949192374504[/C][/ROW]
[ROW][C]26[/C][C]4.67070319199194e-05[/C][C]9.34140638398389e-05[/C][C]0.99995329296808[/C][/ROW]
[ROW][C]27[/C][C]3.61050458323834e-05[/C][C]7.22100916647668e-05[/C][C]0.999963894954168[/C][/ROW]
[ROW][C]28[/C][C]5.84154312178197e-05[/C][C]0.000116830862435639[/C][C]0.999941584568782[/C][/ROW]
[ROW][C]29[/C][C]0.000360551838054588[/C][C]0.000721103676109175[/C][C]0.999639448161945[/C][/ROW]
[ROW][C]30[/C][C]0.00241005650294787[/C][C]0.00482011300589573[/C][C]0.997589943497052[/C][/ROW]
[ROW][C]31[/C][C]0.0155049911583652[/C][C]0.0310099823167304[/C][C]0.984495008841635[/C][/ROW]
[ROW][C]32[/C][C]0.0332522575750782[/C][C]0.0665045151501565[/C][C]0.966747742424922[/C][/ROW]
[ROW][C]33[/C][C]0.0743933208812975[/C][C]0.148786641762595[/C][C]0.925606679118703[/C][/ROW]
[ROW][C]34[/C][C]0.148640787577965[/C][C]0.297281575155930[/C][C]0.851359212422035[/C][/ROW]
[ROW][C]35[/C][C]0.199692056753496[/C][C]0.399384113506992[/C][C]0.800307943246504[/C][/ROW]
[ROW][C]36[/C][C]0.294507973213609[/C][C]0.589015946427219[/C][C]0.70549202678639[/C][/ROW]
[ROW][C]37[/C][C]0.380404540619725[/C][C]0.760809081239449[/C][C]0.619595459380275[/C][/ROW]
[ROW][C]38[/C][C]0.449016042030111[/C][C]0.898032084060222[/C][C]0.550983957969889[/C][/ROW]
[ROW][C]39[/C][C]0.52751909574456[/C][C]0.94496180851088[/C][C]0.47248090425544[/C][/ROW]
[ROW][C]40[/C][C]0.639834197231778[/C][C]0.720331605536445[/C][C]0.360165802768222[/C][/ROW]
[ROW][C]41[/C][C]0.711540803480342[/C][C]0.576918393039315[/C][C]0.288459196519658[/C][/ROW]
[ROW][C]42[/C][C]0.722075239789891[/C][C]0.555849520420219[/C][C]0.277924760210109[/C][/ROW]
[ROW][C]43[/C][C]0.687038100694656[/C][C]0.625923798610687[/C][C]0.312961899305344[/C][/ROW]
[ROW][C]44[/C][C]0.613824950317476[/C][C]0.772350099365049[/C][C]0.386175049682524[/C][/ROW]
[ROW][C]45[/C][C]0.493151073666961[/C][C]0.986302147333923[/C][C]0.506848926333039[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60725&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1270334878683230.2540669757366460.872966512131677
170.05282313582801370.1056462716560270.947176864171986
180.02084323362246510.04168646724493010.979156766377535
190.008011389516551680.01602277903310340.991988610483448
200.002846109174576170.005692218349152330.997153890825424
210.001002054093391700.002004108186783390.998997945906608
220.0003612489242335790.0007224978484671590.999638751075766
230.0001230481305421470.0002460962610842940.999876951869458
245.06523531574319e-050.0001013047063148640.999949347646843
255.08076254960606e-050.0001016152509921210.999949192374504
264.67070319199194e-059.34140638398389e-050.99995329296808
273.61050458323834e-057.22100916647668e-050.999963894954168
285.84154312178197e-050.0001168308624356390.999941584568782
290.0003605518380545880.0007211036761091750.999639448161945
300.002410056502947870.004820113005895730.997589943497052
310.01550499115836520.03100998231673040.984495008841635
320.03325225757507820.06650451515015650.966747742424922
330.07439332088129750.1487866417625950.925606679118703
340.1486407875779650.2972815751559300.851359212422035
350.1996920567534960.3993841135069920.800307943246504
360.2945079732136090.5890159464272190.70549202678639
370.3804045406197250.7608090812394490.619595459380275
380.4490160420301110.8980320840602220.550983957969889
390.527519095744560.944961808510880.47248090425544
400.6398341972317780.7203316055364450.360165802768222
410.7115408034803420.5769183930393150.288459196519658
420.7220752397898910.5558495204202190.277924760210109
430.6870381006946560.6259237986106870.312961899305344
440.6138249503174760.7723500993650490.386175049682524
450.4931510736669610.9863021473339230.506848926333039







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.366666666666667NOK
5% type I error level140.466666666666667NOK
10% type I error level150.5NOK

\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 & 11 & 0.366666666666667 & NOK \tabularnewline
5% type I error level & 14 & 0.466666666666667 & NOK \tabularnewline
10% type I error level & 15 & 0.5 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60725&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]11[/C][C]0.366666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]14[/C][C]0.466666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]15[/C][C]0.5[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60725&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60725&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 level110.366666666666667NOK
5% type I error level140.466666666666667NOK
10% type I error level150.5NOK



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