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 computationTue, 15 Dec 2009 09:09:36 -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/Dec/15/t1260893424q3z1qqacufshu1r.htm/, Retrieved Sun, 05 May 2024 13:50:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68018, Retrieved Sun, 05 May 2024 13:50:24 +0000
QR Codes:

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

Post a new message
Dataseries X:
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
564	1
558	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68018&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68018&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
WklBe[t] = + 626.710819672131 + 53.2918032786885X[t] -13.9899271402552M1[t] -17.5604007285975M2[t] -12.8985245901639M3[t] -14.6366484517304M4[t] -20.9747723132969M5[t] -23.5128961748634M6[t] -32.2510200364299M7[t] -27.5891438979964M8[t] + 26.0727322404372M9[t] + 36.5346083788707M10[t] + 15.9381238615665M11[t] -2.46187613843351t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WklBe[t] =  +  626.710819672131 +  53.2918032786885X[t] -13.9899271402552M1[t] -17.5604007285975M2[t] -12.8985245901639M3[t] -14.6366484517304M4[t] -20.9747723132969M5[t] -23.5128961748634M6[t] -32.2510200364299M7[t] -27.5891438979964M8[t] +  26.0727322404372M9[t] +  36.5346083788707M10[t] +  15.9381238615665M11[t] -2.46187613843351t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68018&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WklBe[t] =  +  626.710819672131 +  53.2918032786885X[t] -13.9899271402552M1[t] -17.5604007285975M2[t] -12.8985245901639M3[t] -14.6366484517304M4[t] -20.9747723132969M5[t] -23.5128961748634M6[t] -32.2510200364299M7[t] -27.5891438979964M8[t] +  26.0727322404372M9[t] +  36.5346083788707M10[t] +  15.9381238615665M11[t] -2.46187613843351t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68018&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68018&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] = + 626.710819672131 + 53.2918032786885X[t] -13.9899271402552M1[t] -17.5604007285975M2[t] -12.8985245901639M3[t] -14.6366484517304M4[t] -20.9747723132969M5[t] -23.5128961748634M6[t] -32.2510200364299M7[t] -27.5891438979964M8[t] + 26.0727322404372M9[t] + 36.5346083788707M10[t] + 15.9381238615665M11[t] -2.46187613843351t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)626.71081967213112.41965950.461200
X53.291803278688510.6436335.00698e-064e-06
M1-13.989927140255214.125909-0.99040.3270630.163532
M2-17.560400728597514.825143-1.18450.242170.121085
M3-12.898524590163914.809874-0.87090.3882130.194107
M4-14.636648451730414.799149-0.9890.3277180.163859
M5-20.974772313296914.792977-1.41790.162820.08141
M6-23.512896174863414.791364-1.58960.1186220.059311
M7-32.251020036429914.794311-2.180.0343030.017152
M8-27.589143897996414.801817-1.86390.0685890.034294
M926.072732240437214.8138731.760.0849110.042456
M1036.534608378870714.8304692.46350.0174760.008738
M1115.938123861566514.7264231.08230.2846490.142325
t-2.461876138433510.259735-9.478400

\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) & 626.710819672131 & 12.419659 & 50.4612 & 0 & 0 \tabularnewline
X & 53.2918032786885 & 10.643633 & 5.0069 & 8e-06 & 4e-06 \tabularnewline
M1 & -13.9899271402552 & 14.125909 & -0.9904 & 0.327063 & 0.163532 \tabularnewline
M2 & -17.5604007285975 & 14.825143 & -1.1845 & 0.24217 & 0.121085 \tabularnewline
M3 & -12.8985245901639 & 14.809874 & -0.8709 & 0.388213 & 0.194107 \tabularnewline
M4 & -14.6366484517304 & 14.799149 & -0.989 & 0.327718 & 0.163859 \tabularnewline
M5 & -20.9747723132969 & 14.792977 & -1.4179 & 0.16282 & 0.08141 \tabularnewline
M6 & -23.5128961748634 & 14.791364 & -1.5896 & 0.118622 & 0.059311 \tabularnewline
M7 & -32.2510200364299 & 14.794311 & -2.18 & 0.034303 & 0.017152 \tabularnewline
M8 & -27.5891438979964 & 14.801817 & -1.8639 & 0.068589 & 0.034294 \tabularnewline
M9 & 26.0727322404372 & 14.813873 & 1.76 & 0.084911 & 0.042456 \tabularnewline
M10 & 36.5346083788707 & 14.830469 & 2.4635 & 0.017476 & 0.008738 \tabularnewline
M11 & 15.9381238615665 & 14.726423 & 1.0823 & 0.284649 & 0.142325 \tabularnewline
t & -2.46187613843351 & 0.259735 & -9.4784 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68018&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]626.710819672131[/C][C]12.419659[/C][C]50.4612[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]53.2918032786885[/C][C]10.643633[/C][C]5.0069[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M1[/C][C]-13.9899271402552[/C][C]14.125909[/C][C]-0.9904[/C][C]0.327063[/C][C]0.163532[/C][/ROW]
[ROW][C]M2[/C][C]-17.5604007285975[/C][C]14.825143[/C][C]-1.1845[/C][C]0.24217[/C][C]0.121085[/C][/ROW]
[ROW][C]M3[/C][C]-12.8985245901639[/C][C]14.809874[/C][C]-0.8709[/C][C]0.388213[/C][C]0.194107[/C][/ROW]
[ROW][C]M4[/C][C]-14.6366484517304[/C][C]14.799149[/C][C]-0.989[/C][C]0.327718[/C][C]0.163859[/C][/ROW]
[ROW][C]M5[/C][C]-20.9747723132969[/C][C]14.792977[/C][C]-1.4179[/C][C]0.16282[/C][C]0.08141[/C][/ROW]
[ROW][C]M6[/C][C]-23.5128961748634[/C][C]14.791364[/C][C]-1.5896[/C][C]0.118622[/C][C]0.059311[/C][/ROW]
[ROW][C]M7[/C][C]-32.2510200364299[/C][C]14.794311[/C][C]-2.18[/C][C]0.034303[/C][C]0.017152[/C][/ROW]
[ROW][C]M8[/C][C]-27.5891438979964[/C][C]14.801817[/C][C]-1.8639[/C][C]0.068589[/C][C]0.034294[/C][/ROW]
[ROW][C]M9[/C][C]26.0727322404372[/C][C]14.813873[/C][C]1.76[/C][C]0.084911[/C][C]0.042456[/C][/ROW]
[ROW][C]M10[/C][C]36.5346083788707[/C][C]14.830469[/C][C]2.4635[/C][C]0.017476[/C][C]0.008738[/C][/ROW]
[ROW][C]M11[/C][C]15.9381238615665[/C][C]14.726423[/C][C]1.0823[/C][C]0.284649[/C][C]0.142325[/C][/ROW]
[ROW][C]t[/C][C]-2.46187613843351[/C][C]0.259735[/C][C]-9.4784[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68018&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68018&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)626.71081967213112.41965950.461200
X53.291803278688510.6436335.00698e-064e-06
M1-13.989927140255214.125909-0.99040.3270630.163532
M2-17.560400728597514.825143-1.18450.242170.121085
M3-12.898524590163914.809874-0.87090.3882130.194107
M4-14.636648451730414.799149-0.9890.3277180.163859
M5-20.974772313296914.792977-1.41790.162820.08141
M6-23.512896174863414.791364-1.58960.1186220.059311
M7-32.251020036429914.794311-2.180.0343030.017152
M8-27.589143897996414.801817-1.86390.0685890.034294
M926.072732240437214.8138731.760.0849110.042456
M1036.534608378870714.8304692.46350.0174760.008738
M1115.938123861566514.7264231.08230.2846490.142325
t-2.461876138433510.259735-9.478400







Multiple Linear Regression - Regression Statistics
Multiple R0.86345984599006
R-squared0.745562905637178
Adjusted R-squared0.675186688047461
F-TEST (value)10.5939610165426
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value5.63361357563963e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23.2808972491104
Sum Squared Residuals25474.0083060110

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.86345984599006 \tabularnewline
R-squared & 0.745562905637178 \tabularnewline
Adjusted R-squared & 0.675186688047461 \tabularnewline
F-TEST (value) & 10.5939610165426 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 5.63361357563963e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 23.2808972491104 \tabularnewline
Sum Squared Residuals & 25474.0083060110 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68018&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.86345984599006[/C][/ROW]
[ROW][C]R-squared[/C][C]0.745562905637178[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.675186688047461[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.5939610165426[/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]5.63361357563963e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]23.2808972491104[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]25474.0083060110[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68018&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68018&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.86345984599006
R-squared0.745562905637178
Adjusted R-squared0.675186688047461
F-TEST (value)10.5939610165426
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value5.63361357563963e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23.2808972491104
Sum Squared Residuals25474.0083060110







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1594610.259016393444-16.2590163934435
2595604.226666666667-9.22666666666663
3591606.426666666667-15.4266666666666
4589602.226666666667-13.2266666666665
5584593.426666666667-9.42666666666662
6573588.426666666667-15.4266666666666
7567577.226666666667-10.2266666666666
8569579.426666666667-10.4266666666666
9621630.626666666667-9.62666666666663
10629638.626666666667-9.62666666666664
11628615.56830601092912.4316939890711
12612597.16830601092914.8316939890711
13595580.7165027322414.2834972677598
14597574.68415300546422.3158469945356
15593576.88415300546416.1158469945355
16590572.68415300546517.3158469945355
17580563.88415300546416.1158469945355
18574558.88415300546415.1158469945355
19573547.68415300546525.3158469945355
20573549.88415300546423.1158469945355
21620601.08415300546418.9158469945355
22626609.08415300546416.9158469945355
23620586.02579234972733.9742076502732
24588567.62579234972720.3742076502732
25566551.17398907103814.8260109289619
26557545.14163934426211.8583606557377
27561547.34163934426213.6583606557377
28549543.1416393442625.85836065573769
29532534.341639344262-2.34163934426231
30526529.341639344262-3.34163934426232
31511518.141639344262-7.14163934426232
32499520.341639344262-21.3416393442623
33555571.541639344262-16.5416393442623
34565579.541639344262-14.5416393442623
35542556.483278688525-14.4832786885246
36527538.083278688525-11.0832786885246
37510521.631475409836-11.6314754098359
38514515.59912568306-1.59912568306017
39517517.79912568306-0.799125683060167
40508513.59912568306-5.59912568306017
41493504.79912568306-11.7991256830602
42490499.79912568306-9.79912568306015
43469488.59912568306-19.5991256830601
44478490.79912568306-12.7991256830602
45528541.99912568306-13.9991256830602
46534549.99912568306-15.9991256830601
47518580.232568306011-62.232568306011
48506561.832568306011-55.8325683060109
49502545.380765027322-43.3807650273222
50516539.348415300546-23.3484153005465
51528541.548415300546-13.5484153005465
52533537.348415300546-4.34841530054648
53536528.5484153005467.45158469945352
54537523.54841530054613.4515846994535
55524512.34841530054611.6515846994535
56536514.54841530054621.4515846994535
57587565.74841530054621.2515846994535
58597573.74841530054623.2515846994535
59581550.69005464480930.3099453551912
60564532.29005464480931.7099453551912
61558515.8382513661242.1617486338799

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 594 & 610.259016393444 & -16.2590163934435 \tabularnewline
2 & 595 & 604.226666666667 & -9.22666666666663 \tabularnewline
3 & 591 & 606.426666666667 & -15.4266666666666 \tabularnewline
4 & 589 & 602.226666666667 & -13.2266666666665 \tabularnewline
5 & 584 & 593.426666666667 & -9.42666666666662 \tabularnewline
6 & 573 & 588.426666666667 & -15.4266666666666 \tabularnewline
7 & 567 & 577.226666666667 & -10.2266666666666 \tabularnewline
8 & 569 & 579.426666666667 & -10.4266666666666 \tabularnewline
9 & 621 & 630.626666666667 & -9.62666666666663 \tabularnewline
10 & 629 & 638.626666666667 & -9.62666666666664 \tabularnewline
11 & 628 & 615.568306010929 & 12.4316939890711 \tabularnewline
12 & 612 & 597.168306010929 & 14.8316939890711 \tabularnewline
13 & 595 & 580.71650273224 & 14.2834972677598 \tabularnewline
14 & 597 & 574.684153005464 & 22.3158469945356 \tabularnewline
15 & 593 & 576.884153005464 & 16.1158469945355 \tabularnewline
16 & 590 & 572.684153005465 & 17.3158469945355 \tabularnewline
17 & 580 & 563.884153005464 & 16.1158469945355 \tabularnewline
18 & 574 & 558.884153005464 & 15.1158469945355 \tabularnewline
19 & 573 & 547.684153005465 & 25.3158469945355 \tabularnewline
20 & 573 & 549.884153005464 & 23.1158469945355 \tabularnewline
21 & 620 & 601.084153005464 & 18.9158469945355 \tabularnewline
22 & 626 & 609.084153005464 & 16.9158469945355 \tabularnewline
23 & 620 & 586.025792349727 & 33.9742076502732 \tabularnewline
24 & 588 & 567.625792349727 & 20.3742076502732 \tabularnewline
25 & 566 & 551.173989071038 & 14.8260109289619 \tabularnewline
26 & 557 & 545.141639344262 & 11.8583606557377 \tabularnewline
27 & 561 & 547.341639344262 & 13.6583606557377 \tabularnewline
28 & 549 & 543.141639344262 & 5.85836065573769 \tabularnewline
29 & 532 & 534.341639344262 & -2.34163934426231 \tabularnewline
30 & 526 & 529.341639344262 & -3.34163934426232 \tabularnewline
31 & 511 & 518.141639344262 & -7.14163934426232 \tabularnewline
32 & 499 & 520.341639344262 & -21.3416393442623 \tabularnewline
33 & 555 & 571.541639344262 & -16.5416393442623 \tabularnewline
34 & 565 & 579.541639344262 & -14.5416393442623 \tabularnewline
35 & 542 & 556.483278688525 & -14.4832786885246 \tabularnewline
36 & 527 & 538.083278688525 & -11.0832786885246 \tabularnewline
37 & 510 & 521.631475409836 & -11.6314754098359 \tabularnewline
38 & 514 & 515.59912568306 & -1.59912568306017 \tabularnewline
39 & 517 & 517.79912568306 & -0.799125683060167 \tabularnewline
40 & 508 & 513.59912568306 & -5.59912568306017 \tabularnewline
41 & 493 & 504.79912568306 & -11.7991256830602 \tabularnewline
42 & 490 & 499.79912568306 & -9.79912568306015 \tabularnewline
43 & 469 & 488.59912568306 & -19.5991256830601 \tabularnewline
44 & 478 & 490.79912568306 & -12.7991256830602 \tabularnewline
45 & 528 & 541.99912568306 & -13.9991256830602 \tabularnewline
46 & 534 & 549.99912568306 & -15.9991256830601 \tabularnewline
47 & 518 & 580.232568306011 & -62.232568306011 \tabularnewline
48 & 506 & 561.832568306011 & -55.8325683060109 \tabularnewline
49 & 502 & 545.380765027322 & -43.3807650273222 \tabularnewline
50 & 516 & 539.348415300546 & -23.3484153005465 \tabularnewline
51 & 528 & 541.548415300546 & -13.5484153005465 \tabularnewline
52 & 533 & 537.348415300546 & -4.34841530054648 \tabularnewline
53 & 536 & 528.548415300546 & 7.45158469945352 \tabularnewline
54 & 537 & 523.548415300546 & 13.4515846994535 \tabularnewline
55 & 524 & 512.348415300546 & 11.6515846994535 \tabularnewline
56 & 536 & 514.548415300546 & 21.4515846994535 \tabularnewline
57 & 587 & 565.748415300546 & 21.2515846994535 \tabularnewline
58 & 597 & 573.748415300546 & 23.2515846994535 \tabularnewline
59 & 581 & 550.690054644809 & 30.3099453551912 \tabularnewline
60 & 564 & 532.290054644809 & 31.7099453551912 \tabularnewline
61 & 558 & 515.83825136612 & 42.1617486338799 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68018&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]594[/C][C]610.259016393444[/C][C]-16.2590163934435[/C][/ROW]
[ROW][C]2[/C][C]595[/C][C]604.226666666667[/C][C]-9.22666666666663[/C][/ROW]
[ROW][C]3[/C][C]591[/C][C]606.426666666667[/C][C]-15.4266666666666[/C][/ROW]
[ROW][C]4[/C][C]589[/C][C]602.226666666667[/C][C]-13.2266666666665[/C][/ROW]
[ROW][C]5[/C][C]584[/C][C]593.426666666667[/C][C]-9.42666666666662[/C][/ROW]
[ROW][C]6[/C][C]573[/C][C]588.426666666667[/C][C]-15.4266666666666[/C][/ROW]
[ROW][C]7[/C][C]567[/C][C]577.226666666667[/C][C]-10.2266666666666[/C][/ROW]
[ROW][C]8[/C][C]569[/C][C]579.426666666667[/C][C]-10.4266666666666[/C][/ROW]
[ROW][C]9[/C][C]621[/C][C]630.626666666667[/C][C]-9.62666666666663[/C][/ROW]
[ROW][C]10[/C][C]629[/C][C]638.626666666667[/C][C]-9.62666666666664[/C][/ROW]
[ROW][C]11[/C][C]628[/C][C]615.568306010929[/C][C]12.4316939890711[/C][/ROW]
[ROW][C]12[/C][C]612[/C][C]597.168306010929[/C][C]14.8316939890711[/C][/ROW]
[ROW][C]13[/C][C]595[/C][C]580.71650273224[/C][C]14.2834972677598[/C][/ROW]
[ROW][C]14[/C][C]597[/C][C]574.684153005464[/C][C]22.3158469945356[/C][/ROW]
[ROW][C]15[/C][C]593[/C][C]576.884153005464[/C][C]16.1158469945355[/C][/ROW]
[ROW][C]16[/C][C]590[/C][C]572.684153005465[/C][C]17.3158469945355[/C][/ROW]
[ROW][C]17[/C][C]580[/C][C]563.884153005464[/C][C]16.1158469945355[/C][/ROW]
[ROW][C]18[/C][C]574[/C][C]558.884153005464[/C][C]15.1158469945355[/C][/ROW]
[ROW][C]19[/C][C]573[/C][C]547.684153005465[/C][C]25.3158469945355[/C][/ROW]
[ROW][C]20[/C][C]573[/C][C]549.884153005464[/C][C]23.1158469945355[/C][/ROW]
[ROW][C]21[/C][C]620[/C][C]601.084153005464[/C][C]18.9158469945355[/C][/ROW]
[ROW][C]22[/C][C]626[/C][C]609.084153005464[/C][C]16.9158469945355[/C][/ROW]
[ROW][C]23[/C][C]620[/C][C]586.025792349727[/C][C]33.9742076502732[/C][/ROW]
[ROW][C]24[/C][C]588[/C][C]567.625792349727[/C][C]20.3742076502732[/C][/ROW]
[ROW][C]25[/C][C]566[/C][C]551.173989071038[/C][C]14.8260109289619[/C][/ROW]
[ROW][C]26[/C][C]557[/C][C]545.141639344262[/C][C]11.8583606557377[/C][/ROW]
[ROW][C]27[/C][C]561[/C][C]547.341639344262[/C][C]13.6583606557377[/C][/ROW]
[ROW][C]28[/C][C]549[/C][C]543.141639344262[/C][C]5.85836065573769[/C][/ROW]
[ROW][C]29[/C][C]532[/C][C]534.341639344262[/C][C]-2.34163934426231[/C][/ROW]
[ROW][C]30[/C][C]526[/C][C]529.341639344262[/C][C]-3.34163934426232[/C][/ROW]
[ROW][C]31[/C][C]511[/C][C]518.141639344262[/C][C]-7.14163934426232[/C][/ROW]
[ROW][C]32[/C][C]499[/C][C]520.341639344262[/C][C]-21.3416393442623[/C][/ROW]
[ROW][C]33[/C][C]555[/C][C]571.541639344262[/C][C]-16.5416393442623[/C][/ROW]
[ROW][C]34[/C][C]565[/C][C]579.541639344262[/C][C]-14.5416393442623[/C][/ROW]
[ROW][C]35[/C][C]542[/C][C]556.483278688525[/C][C]-14.4832786885246[/C][/ROW]
[ROW][C]36[/C][C]527[/C][C]538.083278688525[/C][C]-11.0832786885246[/C][/ROW]
[ROW][C]37[/C][C]510[/C][C]521.631475409836[/C][C]-11.6314754098359[/C][/ROW]
[ROW][C]38[/C][C]514[/C][C]515.59912568306[/C][C]-1.59912568306017[/C][/ROW]
[ROW][C]39[/C][C]517[/C][C]517.79912568306[/C][C]-0.799125683060167[/C][/ROW]
[ROW][C]40[/C][C]508[/C][C]513.59912568306[/C][C]-5.59912568306017[/C][/ROW]
[ROW][C]41[/C][C]493[/C][C]504.79912568306[/C][C]-11.7991256830602[/C][/ROW]
[ROW][C]42[/C][C]490[/C][C]499.79912568306[/C][C]-9.79912568306015[/C][/ROW]
[ROW][C]43[/C][C]469[/C][C]488.59912568306[/C][C]-19.5991256830601[/C][/ROW]
[ROW][C]44[/C][C]478[/C][C]490.79912568306[/C][C]-12.7991256830602[/C][/ROW]
[ROW][C]45[/C][C]528[/C][C]541.99912568306[/C][C]-13.9991256830602[/C][/ROW]
[ROW][C]46[/C][C]534[/C][C]549.99912568306[/C][C]-15.9991256830601[/C][/ROW]
[ROW][C]47[/C][C]518[/C][C]580.232568306011[/C][C]-62.232568306011[/C][/ROW]
[ROW][C]48[/C][C]506[/C][C]561.832568306011[/C][C]-55.8325683060109[/C][/ROW]
[ROW][C]49[/C][C]502[/C][C]545.380765027322[/C][C]-43.3807650273222[/C][/ROW]
[ROW][C]50[/C][C]516[/C][C]539.348415300546[/C][C]-23.3484153005465[/C][/ROW]
[ROW][C]51[/C][C]528[/C][C]541.548415300546[/C][C]-13.5484153005465[/C][/ROW]
[ROW][C]52[/C][C]533[/C][C]537.348415300546[/C][C]-4.34841530054648[/C][/ROW]
[ROW][C]53[/C][C]536[/C][C]528.548415300546[/C][C]7.45158469945352[/C][/ROW]
[ROW][C]54[/C][C]537[/C][C]523.548415300546[/C][C]13.4515846994535[/C][/ROW]
[ROW][C]55[/C][C]524[/C][C]512.348415300546[/C][C]11.6515846994535[/C][/ROW]
[ROW][C]56[/C][C]536[/C][C]514.548415300546[/C][C]21.4515846994535[/C][/ROW]
[ROW][C]57[/C][C]587[/C][C]565.748415300546[/C][C]21.2515846994535[/C][/ROW]
[ROW][C]58[/C][C]597[/C][C]573.748415300546[/C][C]23.2515846994535[/C][/ROW]
[ROW][C]59[/C][C]581[/C][C]550.690054644809[/C][C]30.3099453551912[/C][/ROW]
[ROW][C]60[/C][C]564[/C][C]532.290054644809[/C][C]31.7099453551912[/C][/ROW]
[ROW][C]61[/C][C]558[/C][C]515.83825136612[/C][C]42.1617486338799[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68018&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68018&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
1594610.259016393444-16.2590163934435
2595604.226666666667-9.22666666666663
3591606.426666666667-15.4266666666666
4589602.226666666667-13.2266666666665
5584593.426666666667-9.42666666666662
6573588.426666666667-15.4266666666666
7567577.226666666667-10.2266666666666
8569579.426666666667-10.4266666666666
9621630.626666666667-9.62666666666663
10629638.626666666667-9.62666666666664
11628615.56830601092912.4316939890711
12612597.16830601092914.8316939890711
13595580.7165027322414.2834972677598
14597574.68415300546422.3158469945356
15593576.88415300546416.1158469945355
16590572.68415300546517.3158469945355
17580563.88415300546416.1158469945355
18574558.88415300546415.1158469945355
19573547.68415300546525.3158469945355
20573549.88415300546423.1158469945355
21620601.08415300546418.9158469945355
22626609.08415300546416.9158469945355
23620586.02579234972733.9742076502732
24588567.62579234972720.3742076502732
25566551.17398907103814.8260109289619
26557545.14163934426211.8583606557377
27561547.34163934426213.6583606557377
28549543.1416393442625.85836065573769
29532534.341639344262-2.34163934426231
30526529.341639344262-3.34163934426232
31511518.141639344262-7.14163934426232
32499520.341639344262-21.3416393442623
33555571.541639344262-16.5416393442623
34565579.541639344262-14.5416393442623
35542556.483278688525-14.4832786885246
36527538.083278688525-11.0832786885246
37510521.631475409836-11.6314754098359
38514515.59912568306-1.59912568306017
39517517.79912568306-0.799125683060167
40508513.59912568306-5.59912568306017
41493504.79912568306-11.7991256830602
42490499.79912568306-9.79912568306015
43469488.59912568306-19.5991256830601
44478490.79912568306-12.7991256830602
45528541.99912568306-13.9991256830602
46534549.99912568306-15.9991256830601
47518580.232568306011-62.232568306011
48506561.832568306011-55.8325683060109
49502545.380765027322-43.3807650273222
50516539.348415300546-23.3484153005465
51528541.548415300546-13.5484153005465
52533537.348415300546-4.34841530054648
53536528.5484153005467.45158469945352
54537523.54841530054613.4515846994535
55524512.34841530054611.6515846994535
56536514.54841530054621.4515846994535
57587565.74841530054621.2515846994535
58597573.74841530054623.2515846994535
59581550.69005464480930.3099453551912
60564532.29005464480931.7099453551912
61558515.8382513661242.1617486338799







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0006508683104689050.001301736620937810.999349131689531
184.09820766975986e-058.19641533951972e-050.999959017923302
191.35579630392022e-052.71159260784044e-050.99998644203696
201.45730083118351e-062.91460166236703e-060.999998542699169
211.52917493011367e-073.05834986022734e-070.999999847082507
222.85187681892524e-085.70375363785047e-080.999999971481232
236.44737124097064e-081.28947424819413e-070.999999935526288
241.49916225224408e-052.99832450448815e-050.999985008377478
250.0001619270517707970.0003238541035415940.999838072948229
260.001377624259209530.002755248518419050.99862237574079
270.001819688225659240.003639376451318480.99818031177434
280.003775367870693530.007550735741387060.996224632129306
290.009705900448992970.01941180089798590.990294099551007
300.01384915611162380.02769831222324760.986150843888376
310.03530274765444180.07060549530888360.964697252345558
320.07892990747104050.1578598149420810.92107009252896
330.1139977966755850.2279955933511690.886002203324415
340.1835882815369040.3671765630738070.816411718463096
350.3575778071912650.715155614382530.642422192808735
360.5971027058709280.8057945882581440.402897294129072
370.8195278176683750.3609443646632490.180472182331625
380.929681320804190.1406373583916180.0703186791958092
390.9883412369825670.02331752603486600.0116587630174330
400.99927551491950.001448970161000540.000724485080500272
410.9995408162618060.0009183674763881020.000459183738194051
420.9998267450979980.000346509804004840.00017325490200242
430.9994205700480140.001158859903972430.000579429951986215
440.9962223245669640.007555350866071020.00377767543303551

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.000650868310468905 & 0.00130173662093781 & 0.999349131689531 \tabularnewline
18 & 4.09820766975986e-05 & 8.19641533951972e-05 & 0.999959017923302 \tabularnewline
19 & 1.35579630392022e-05 & 2.71159260784044e-05 & 0.99998644203696 \tabularnewline
20 & 1.45730083118351e-06 & 2.91460166236703e-06 & 0.999998542699169 \tabularnewline
21 & 1.52917493011367e-07 & 3.05834986022734e-07 & 0.999999847082507 \tabularnewline
22 & 2.85187681892524e-08 & 5.70375363785047e-08 & 0.999999971481232 \tabularnewline
23 & 6.44737124097064e-08 & 1.28947424819413e-07 & 0.999999935526288 \tabularnewline
24 & 1.49916225224408e-05 & 2.99832450448815e-05 & 0.999985008377478 \tabularnewline
25 & 0.000161927051770797 & 0.000323854103541594 & 0.999838072948229 \tabularnewline
26 & 0.00137762425920953 & 0.00275524851841905 & 0.99862237574079 \tabularnewline
27 & 0.00181968822565924 & 0.00363937645131848 & 0.99818031177434 \tabularnewline
28 & 0.00377536787069353 & 0.00755073574138706 & 0.996224632129306 \tabularnewline
29 & 0.00970590044899297 & 0.0194118008979859 & 0.990294099551007 \tabularnewline
30 & 0.0138491561116238 & 0.0276983122232476 & 0.986150843888376 \tabularnewline
31 & 0.0353027476544418 & 0.0706054953088836 & 0.964697252345558 \tabularnewline
32 & 0.0789299074710405 & 0.157859814942081 & 0.92107009252896 \tabularnewline
33 & 0.113997796675585 & 0.227995593351169 & 0.886002203324415 \tabularnewline
34 & 0.183588281536904 & 0.367176563073807 & 0.816411718463096 \tabularnewline
35 & 0.357577807191265 & 0.71515561438253 & 0.642422192808735 \tabularnewline
36 & 0.597102705870928 & 0.805794588258144 & 0.402897294129072 \tabularnewline
37 & 0.819527817668375 & 0.360944364663249 & 0.180472182331625 \tabularnewline
38 & 0.92968132080419 & 0.140637358391618 & 0.0703186791958092 \tabularnewline
39 & 0.988341236982567 & 0.0233175260348660 & 0.0116587630174330 \tabularnewline
40 & 0.9992755149195 & 0.00144897016100054 & 0.000724485080500272 \tabularnewline
41 & 0.999540816261806 & 0.000918367476388102 & 0.000459183738194051 \tabularnewline
42 & 0.999826745097998 & 0.00034650980400484 & 0.00017325490200242 \tabularnewline
43 & 0.999420570048014 & 0.00115885990397243 & 0.000579429951986215 \tabularnewline
44 & 0.996222324566964 & 0.00755535086607102 & 0.00377767543303551 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68018&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.000650868310468905[/C][C]0.00130173662093781[/C][C]0.999349131689531[/C][/ROW]
[ROW][C]18[/C][C]4.09820766975986e-05[/C][C]8.19641533951972e-05[/C][C]0.999959017923302[/C][/ROW]
[ROW][C]19[/C][C]1.35579630392022e-05[/C][C]2.71159260784044e-05[/C][C]0.99998644203696[/C][/ROW]
[ROW][C]20[/C][C]1.45730083118351e-06[/C][C]2.91460166236703e-06[/C][C]0.999998542699169[/C][/ROW]
[ROW][C]21[/C][C]1.52917493011367e-07[/C][C]3.05834986022734e-07[/C][C]0.999999847082507[/C][/ROW]
[ROW][C]22[/C][C]2.85187681892524e-08[/C][C]5.70375363785047e-08[/C][C]0.999999971481232[/C][/ROW]
[ROW][C]23[/C][C]6.44737124097064e-08[/C][C]1.28947424819413e-07[/C][C]0.999999935526288[/C][/ROW]
[ROW][C]24[/C][C]1.49916225224408e-05[/C][C]2.99832450448815e-05[/C][C]0.999985008377478[/C][/ROW]
[ROW][C]25[/C][C]0.000161927051770797[/C][C]0.000323854103541594[/C][C]0.999838072948229[/C][/ROW]
[ROW][C]26[/C][C]0.00137762425920953[/C][C]0.00275524851841905[/C][C]0.99862237574079[/C][/ROW]
[ROW][C]27[/C][C]0.00181968822565924[/C][C]0.00363937645131848[/C][C]0.99818031177434[/C][/ROW]
[ROW][C]28[/C][C]0.00377536787069353[/C][C]0.00755073574138706[/C][C]0.996224632129306[/C][/ROW]
[ROW][C]29[/C][C]0.00970590044899297[/C][C]0.0194118008979859[/C][C]0.990294099551007[/C][/ROW]
[ROW][C]30[/C][C]0.0138491561116238[/C][C]0.0276983122232476[/C][C]0.986150843888376[/C][/ROW]
[ROW][C]31[/C][C]0.0353027476544418[/C][C]0.0706054953088836[/C][C]0.964697252345558[/C][/ROW]
[ROW][C]32[/C][C]0.0789299074710405[/C][C]0.157859814942081[/C][C]0.92107009252896[/C][/ROW]
[ROW][C]33[/C][C]0.113997796675585[/C][C]0.227995593351169[/C][C]0.886002203324415[/C][/ROW]
[ROW][C]34[/C][C]0.183588281536904[/C][C]0.367176563073807[/C][C]0.816411718463096[/C][/ROW]
[ROW][C]35[/C][C]0.357577807191265[/C][C]0.71515561438253[/C][C]0.642422192808735[/C][/ROW]
[ROW][C]36[/C][C]0.597102705870928[/C][C]0.805794588258144[/C][C]0.402897294129072[/C][/ROW]
[ROW][C]37[/C][C]0.819527817668375[/C][C]0.360944364663249[/C][C]0.180472182331625[/C][/ROW]
[ROW][C]38[/C][C]0.92968132080419[/C][C]0.140637358391618[/C][C]0.0703186791958092[/C][/ROW]
[ROW][C]39[/C][C]0.988341236982567[/C][C]0.0233175260348660[/C][C]0.0116587630174330[/C][/ROW]
[ROW][C]40[/C][C]0.9992755149195[/C][C]0.00144897016100054[/C][C]0.000724485080500272[/C][/ROW]
[ROW][C]41[/C][C]0.999540816261806[/C][C]0.000918367476388102[/C][C]0.000459183738194051[/C][/ROW]
[ROW][C]42[/C][C]0.999826745097998[/C][C]0.00034650980400484[/C][C]0.00017325490200242[/C][/ROW]
[ROW][C]43[/C][C]0.999420570048014[/C][C]0.00115885990397243[/C][C]0.000579429951986215[/C][/ROW]
[ROW][C]44[/C][C]0.996222324566964[/C][C]0.00755535086607102[/C][C]0.00377767543303551[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68018&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68018&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.0006508683104689050.001301736620937810.999349131689531
184.09820766975986e-058.19641533951972e-050.999959017923302
191.35579630392022e-052.71159260784044e-050.99998644203696
201.45730083118351e-062.91460166236703e-060.999998542699169
211.52917493011367e-073.05834986022734e-070.999999847082507
222.85187681892524e-085.70375363785047e-080.999999971481232
236.44737124097064e-081.28947424819413e-070.999999935526288
241.49916225224408e-052.99832450448815e-050.999985008377478
250.0001619270517707970.0003238541035415940.999838072948229
260.001377624259209530.002755248518419050.99862237574079
270.001819688225659240.003639376451318480.99818031177434
280.003775367870693530.007550735741387060.996224632129306
290.009705900448992970.01941180089798590.990294099551007
300.01384915611162380.02769831222324760.986150843888376
310.03530274765444180.07060549530888360.964697252345558
320.07892990747104050.1578598149420810.92107009252896
330.1139977966755850.2279955933511690.886002203324415
340.1835882815369040.3671765630738070.816411718463096
350.3575778071912650.715155614382530.642422192808735
360.5971027058709280.8057945882581440.402897294129072
370.8195278176683750.3609443646632490.180472182331625
380.929681320804190.1406373583916180.0703186791958092
390.9883412369825670.02331752603486600.0116587630174330
400.99927551491950.001448970161000540.000724485080500272
410.9995408162618060.0009183674763881020.000459183738194051
420.9998267450979980.000346509804004840.00017325490200242
430.9994205700480140.001158859903972430.000579429951986215
440.9962223245669640.007555350866071020.00377767543303551







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.607142857142857NOK
5% type I error level200.714285714285714NOK
10% type I error level210.75NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68018&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 level170.607142857142857NOK
5% type I error level200.714285714285714NOK
10% type I error level210.75NOK



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