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 computationWed, 18 Nov 2009 11:55:42 -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/18/t12585706402g5xvzyzblg1gf1.htm/, Retrieved Sun, 05 May 2024 16:02:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57593, Retrieved Sun, 05 May 2024 16:02:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact187
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] [Model 3] [2009-11-18 18:55:42] [82f29a5d509ab8039aab37a0145f886d] [Current]
Feedback Forum

Post a new message
Dataseries X:
562	0
561	0
555	0
544	0
537	0
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	1
510	1
514	1
517	1
508	1
493	1
490	1
469	1
478	1
528	1
534	1
518	1
506	1
502	1
516	1
528	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 603.15761589404 -47.1084437086093X[t] -4.23420713760115M1[t] -13.742310522443M2[t] -23.5502483443709M3[t] -30.1581861662987M4[t] -39.3661239882266M5[t] -37.5740618101545M6[t] + 14.4180003679176M7[t] + 24.6100625459897M8[t] + 16.6021247240618M9[t] + 11.4158756438558M10[t] -3.19206217807213M11[t] -0.792062178072112t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  603.15761589404 -47.1084437086093X[t] -4.23420713760115M1[t] -13.742310522443M2[t] -23.5502483443709M3[t] -30.1581861662987M4[t] -39.3661239882266M5[t] -37.5740618101545M6[t] +  14.4180003679176M7[t] +  24.6100625459897M8[t] +  16.6021247240618M9[t] +  11.4158756438558M10[t] -3.19206217807213M11[t] -0.792062178072112t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57593&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  603.15761589404 -47.1084437086093X[t] -4.23420713760115M1[t] -13.742310522443M2[t] -23.5502483443709M3[t] -30.1581861662987M4[t] -39.3661239882266M5[t] -37.5740618101545M6[t] +  14.4180003679176M7[t] +  24.6100625459897M8[t] +  16.6021247240618M9[t] +  11.4158756438558M10[t] -3.19206217807213M11[t] -0.792062178072112t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57593&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57593&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
Y[t] = + 603.15761589404 -47.1084437086093X[t] -4.23420713760115M1[t] -13.742310522443M2[t] -23.5502483443709M3[t] -30.1581861662987M4[t] -39.3661239882266M5[t] -37.5740618101545M6[t] + 14.4180003679176M7[t] + 24.6100625459897M8[t] + 16.6021247240618M9[t] + 11.4158756438558M10[t] -3.19206217807213M11[t] -0.792062178072112t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)603.1576158940411.11340354.27300
X-47.10844370860939.524173-4.94621e-055e-06
M1-4.2342071376011512.578523-0.33660.73790.36895
M2-13.74231052244313.199876-1.04110.3031580.151579
M3-23.550248344370913.185621-1.78610.0805420.040271
M4-30.158186166298713.1756-2.28890.0266220.013311
M5-39.366123988226613.169824-2.98910.004440.00222
M6-37.574061810154513.168298-2.85340.0064130.003207
M714.418000367917613.1710241.09470.2792370.139619
M824.610062545989713.1781.86750.0680730.034037
M916.602124724061813.1892171.25880.2143320.107166
M1011.415875643855813.1190810.87020.3886280.194314
M11-3.1920621780721313.112678-0.24340.8087290.404365
t-0.7920621780721120.23663-3.34730.0016130.000807

\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) & 603.15761589404 & 11.113403 & 54.273 & 0 & 0 \tabularnewline
X & -47.1084437086093 & 9.524173 & -4.9462 & 1e-05 & 5e-06 \tabularnewline
M1 & -4.23420713760115 & 12.578523 & -0.3366 & 0.7379 & 0.36895 \tabularnewline
M2 & -13.742310522443 & 13.199876 & -1.0411 & 0.303158 & 0.151579 \tabularnewline
M3 & -23.5502483443709 & 13.185621 & -1.7861 & 0.080542 & 0.040271 \tabularnewline
M4 & -30.1581861662987 & 13.1756 & -2.2889 & 0.026622 & 0.013311 \tabularnewline
M5 & -39.3661239882266 & 13.169824 & -2.9891 & 0.00444 & 0.00222 \tabularnewline
M6 & -37.5740618101545 & 13.168298 & -2.8534 & 0.006413 & 0.003207 \tabularnewline
M7 & 14.4180003679176 & 13.171024 & 1.0947 & 0.279237 & 0.139619 \tabularnewline
M8 & 24.6100625459897 & 13.178 & 1.8675 & 0.068073 & 0.034037 \tabularnewline
M9 & 16.6021247240618 & 13.189217 & 1.2588 & 0.214332 & 0.107166 \tabularnewline
M10 & 11.4158756438558 & 13.119081 & 0.8702 & 0.388628 & 0.194314 \tabularnewline
M11 & -3.19206217807213 & 13.112678 & -0.2434 & 0.808729 & 0.404365 \tabularnewline
t & -0.792062178072112 & 0.23663 & -3.3473 & 0.001613 & 0.000807 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57593&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]603.15761589404[/C][C]11.113403[/C][C]54.273[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-47.1084437086093[/C][C]9.524173[/C][C]-4.9462[/C][C]1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]M1[/C][C]-4.23420713760115[/C][C]12.578523[/C][C]-0.3366[/C][C]0.7379[/C][C]0.36895[/C][/ROW]
[ROW][C]M2[/C][C]-13.742310522443[/C][C]13.199876[/C][C]-1.0411[/C][C]0.303158[/C][C]0.151579[/C][/ROW]
[ROW][C]M3[/C][C]-23.5502483443709[/C][C]13.185621[/C][C]-1.7861[/C][C]0.080542[/C][C]0.040271[/C][/ROW]
[ROW][C]M4[/C][C]-30.1581861662987[/C][C]13.1756[/C][C]-2.2889[/C][C]0.026622[/C][C]0.013311[/C][/ROW]
[ROW][C]M5[/C][C]-39.3661239882266[/C][C]13.169824[/C][C]-2.9891[/C][C]0.00444[/C][C]0.00222[/C][/ROW]
[ROW][C]M6[/C][C]-37.5740618101545[/C][C]13.168298[/C][C]-2.8534[/C][C]0.006413[/C][C]0.003207[/C][/ROW]
[ROW][C]M7[/C][C]14.4180003679176[/C][C]13.171024[/C][C]1.0947[/C][C]0.279237[/C][C]0.139619[/C][/ROW]
[ROW][C]M8[/C][C]24.6100625459897[/C][C]13.178[/C][C]1.8675[/C][C]0.068073[/C][C]0.034037[/C][/ROW]
[ROW][C]M9[/C][C]16.6021247240618[/C][C]13.189217[/C][C]1.2588[/C][C]0.214332[/C][C]0.107166[/C][/ROW]
[ROW][C]M10[/C][C]11.4158756438558[/C][C]13.119081[/C][C]0.8702[/C][C]0.388628[/C][C]0.194314[/C][/ROW]
[ROW][C]M11[/C][C]-3.19206217807213[/C][C]13.112678[/C][C]-0.2434[/C][C]0.808729[/C][C]0.404365[/C][/ROW]
[ROW][C]t[/C][C]-0.792062178072112[/C][C]0.23663[/C][C]-3.3473[/C][C]0.001613[/C][C]0.000807[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57593&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57593&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)603.1576158940411.11340354.27300
X-47.10844370860939.524173-4.94621e-055e-06
M1-4.2342071376011512.578523-0.33660.73790.36895
M2-13.74231052244313.199876-1.04110.3031580.151579
M3-23.550248344370913.185621-1.78610.0805420.040271
M4-30.158186166298713.1756-2.28890.0266220.013311
M5-39.366123988226613.169824-2.98910.004440.00222
M6-37.574061810154513.168298-2.85340.0064130.003207
M714.418000367917613.1710241.09470.2792370.139619
M824.610062545989713.1781.86750.0680730.034037
M916.602124724061813.1892171.25880.2143320.107166
M1011.415875643855813.1190810.87020.3886280.194314
M11-3.1920621780721313.112678-0.24340.8087290.404365
t-0.7920621780721120.23663-3.34730.0016130.000807







Multiple Linear Regression - Regression Statistics
Multiple R0.898611226493912
R-squared0.807502136380892
Adjusted R-squared0.754258046443692
F-TEST (value)15.1660426036640
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.21302967670545e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20.7295874110486
Sum Squared Residuals20196.6423289183

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.898611226493912 \tabularnewline
R-squared & 0.807502136380892 \tabularnewline
Adjusted R-squared & 0.754258046443692 \tabularnewline
F-TEST (value) & 15.1660426036640 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.21302967670545e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 20.7295874110486 \tabularnewline
Sum Squared Residuals & 20196.6423289183 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57593&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.898611226493912[/C][/ROW]
[ROW][C]R-squared[/C][C]0.807502136380892[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.754258046443692[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.1660426036640[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]1.21302967670545e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]20.7295874110486[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]20196.6423289183[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57593&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57593&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.898611226493912
R-squared0.807502136380892
Adjusted R-squared0.754258046443692
F-TEST (value)15.1660426036640
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.21302967670545e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20.7295874110486
Sum Squared Residuals20196.6423289183







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1562598.131346578366-36.1313465783663
2561587.831181015452-26.8311810154525
3555577.231181015453-22.2311810154525
4544569.831181015453-25.8311810154526
5537559.831181015452-22.8311810154525
6543560.831181015453-17.8311810154526
7594612.031181015453-18.0311810154526
8611621.431181015453-10.4311810154526
9613612.6311810154530.368818984547442
10611606.6528697571744.34713024282562
11594591.2528697571742.74713024282559
12595593.6528697571741.34713024282558
13591588.6266004415012.37339955849886
14589578.32643487858710.6735651214128
15584567.72643487858716.2735651214128
16573560.32643487858712.6735651214128
17567550.32643487858716.6735651214128
18569551.32643487858717.6735651214128
19621602.52643487858718.4735651214128
20629611.92643487858717.0735651214128
21628603.12643487858724.8735651214128
22612597.14812362030914.8518763796910
23595581.74812362030913.2518763796910
24597584.14812362030912.8518763796909
25593579.12185430463613.8781456953642
26590568.82168874172221.1783112582781
27580558.22168874172221.7783112582782
28574550.82168874172223.1783112582782
29573540.82168874172232.1783112582781
30573541.82168874172231.1783112582782
31620593.02168874172226.9783112582782
32626602.42168874172223.5783112582782
33620593.62168874172226.3783112582781
34588587.6433774834440.356622516556293
35566572.243377483444-6.2433774834437
36557574.643377483444-17.6433774834437
37561569.61710816777-8.61710816777045
38549559.316942604857-10.3169426048565
39532548.716942604857-16.7169426048565
40526541.316942604857-15.3169426048565
41511531.316942604857-20.3169426048565
42499532.316942604856-33.3169426048565
43555583.516942604856-28.5169426048565
44565592.916942604857-27.9169426048565
45542584.116942604856-42.1169426048565
46527531.030187637969-4.0301876379691
47510515.630187637969-5.63018763796909
48514518.030187637969-4.03018763796912
49517513.0039183222963.99608167770415
50508502.7037527593825.29624724061811
51493492.1037527593820.896247240618112
52490484.7037527593825.2962472406181
53469474.703752759382-5.70375275938191
54478475.7037527593822.29624724061811
55528526.9037527593821.09624724061811
56534536.303752759382-2.30375275938188
57518527.503752759382-9.5037527593819
58506521.525441501104-15.5254415011038
59502506.125441501104-4.12544150110375
60516508.5254415011047.47455849889623
61528503.49917218543024.5008278145695

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 562 & 598.131346578366 & -36.1313465783663 \tabularnewline
2 & 561 & 587.831181015452 & -26.8311810154525 \tabularnewline
3 & 555 & 577.231181015453 & -22.2311810154525 \tabularnewline
4 & 544 & 569.831181015453 & -25.8311810154526 \tabularnewline
5 & 537 & 559.831181015452 & -22.8311810154525 \tabularnewline
6 & 543 & 560.831181015453 & -17.8311810154526 \tabularnewline
7 & 594 & 612.031181015453 & -18.0311810154526 \tabularnewline
8 & 611 & 621.431181015453 & -10.4311810154526 \tabularnewline
9 & 613 & 612.631181015453 & 0.368818984547442 \tabularnewline
10 & 611 & 606.652869757174 & 4.34713024282562 \tabularnewline
11 & 594 & 591.252869757174 & 2.74713024282559 \tabularnewline
12 & 595 & 593.652869757174 & 1.34713024282558 \tabularnewline
13 & 591 & 588.626600441501 & 2.37339955849886 \tabularnewline
14 & 589 & 578.326434878587 & 10.6735651214128 \tabularnewline
15 & 584 & 567.726434878587 & 16.2735651214128 \tabularnewline
16 & 573 & 560.326434878587 & 12.6735651214128 \tabularnewline
17 & 567 & 550.326434878587 & 16.6735651214128 \tabularnewline
18 & 569 & 551.326434878587 & 17.6735651214128 \tabularnewline
19 & 621 & 602.526434878587 & 18.4735651214128 \tabularnewline
20 & 629 & 611.926434878587 & 17.0735651214128 \tabularnewline
21 & 628 & 603.126434878587 & 24.8735651214128 \tabularnewline
22 & 612 & 597.148123620309 & 14.8518763796910 \tabularnewline
23 & 595 & 581.748123620309 & 13.2518763796910 \tabularnewline
24 & 597 & 584.148123620309 & 12.8518763796909 \tabularnewline
25 & 593 & 579.121854304636 & 13.8781456953642 \tabularnewline
26 & 590 & 568.821688741722 & 21.1783112582781 \tabularnewline
27 & 580 & 558.221688741722 & 21.7783112582782 \tabularnewline
28 & 574 & 550.821688741722 & 23.1783112582782 \tabularnewline
29 & 573 & 540.821688741722 & 32.1783112582781 \tabularnewline
30 & 573 & 541.821688741722 & 31.1783112582782 \tabularnewline
31 & 620 & 593.021688741722 & 26.9783112582782 \tabularnewline
32 & 626 & 602.421688741722 & 23.5783112582782 \tabularnewline
33 & 620 & 593.621688741722 & 26.3783112582781 \tabularnewline
34 & 588 & 587.643377483444 & 0.356622516556293 \tabularnewline
35 & 566 & 572.243377483444 & -6.2433774834437 \tabularnewline
36 & 557 & 574.643377483444 & -17.6433774834437 \tabularnewline
37 & 561 & 569.61710816777 & -8.61710816777045 \tabularnewline
38 & 549 & 559.316942604857 & -10.3169426048565 \tabularnewline
39 & 532 & 548.716942604857 & -16.7169426048565 \tabularnewline
40 & 526 & 541.316942604857 & -15.3169426048565 \tabularnewline
41 & 511 & 531.316942604857 & -20.3169426048565 \tabularnewline
42 & 499 & 532.316942604856 & -33.3169426048565 \tabularnewline
43 & 555 & 583.516942604856 & -28.5169426048565 \tabularnewline
44 & 565 & 592.916942604857 & -27.9169426048565 \tabularnewline
45 & 542 & 584.116942604856 & -42.1169426048565 \tabularnewline
46 & 527 & 531.030187637969 & -4.0301876379691 \tabularnewline
47 & 510 & 515.630187637969 & -5.63018763796909 \tabularnewline
48 & 514 & 518.030187637969 & -4.03018763796912 \tabularnewline
49 & 517 & 513.003918322296 & 3.99608167770415 \tabularnewline
50 & 508 & 502.703752759382 & 5.29624724061811 \tabularnewline
51 & 493 & 492.103752759382 & 0.896247240618112 \tabularnewline
52 & 490 & 484.703752759382 & 5.2962472406181 \tabularnewline
53 & 469 & 474.703752759382 & -5.70375275938191 \tabularnewline
54 & 478 & 475.703752759382 & 2.29624724061811 \tabularnewline
55 & 528 & 526.903752759382 & 1.09624724061811 \tabularnewline
56 & 534 & 536.303752759382 & -2.30375275938188 \tabularnewline
57 & 518 & 527.503752759382 & -9.5037527593819 \tabularnewline
58 & 506 & 521.525441501104 & -15.5254415011038 \tabularnewline
59 & 502 & 506.125441501104 & -4.12544150110375 \tabularnewline
60 & 516 & 508.525441501104 & 7.47455849889623 \tabularnewline
61 & 528 & 503.499172185430 & 24.5008278145695 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57593&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]562[/C][C]598.131346578366[/C][C]-36.1313465783663[/C][/ROW]
[ROW][C]2[/C][C]561[/C][C]587.831181015452[/C][C]-26.8311810154525[/C][/ROW]
[ROW][C]3[/C][C]555[/C][C]577.231181015453[/C][C]-22.2311810154525[/C][/ROW]
[ROW][C]4[/C][C]544[/C][C]569.831181015453[/C][C]-25.8311810154526[/C][/ROW]
[ROW][C]5[/C][C]537[/C][C]559.831181015452[/C][C]-22.8311810154525[/C][/ROW]
[ROW][C]6[/C][C]543[/C][C]560.831181015453[/C][C]-17.8311810154526[/C][/ROW]
[ROW][C]7[/C][C]594[/C][C]612.031181015453[/C][C]-18.0311810154526[/C][/ROW]
[ROW][C]8[/C][C]611[/C][C]621.431181015453[/C][C]-10.4311810154526[/C][/ROW]
[ROW][C]9[/C][C]613[/C][C]612.631181015453[/C][C]0.368818984547442[/C][/ROW]
[ROW][C]10[/C][C]611[/C][C]606.652869757174[/C][C]4.34713024282562[/C][/ROW]
[ROW][C]11[/C][C]594[/C][C]591.252869757174[/C][C]2.74713024282559[/C][/ROW]
[ROW][C]12[/C][C]595[/C][C]593.652869757174[/C][C]1.34713024282558[/C][/ROW]
[ROW][C]13[/C][C]591[/C][C]588.626600441501[/C][C]2.37339955849886[/C][/ROW]
[ROW][C]14[/C][C]589[/C][C]578.326434878587[/C][C]10.6735651214128[/C][/ROW]
[ROW][C]15[/C][C]584[/C][C]567.726434878587[/C][C]16.2735651214128[/C][/ROW]
[ROW][C]16[/C][C]573[/C][C]560.326434878587[/C][C]12.6735651214128[/C][/ROW]
[ROW][C]17[/C][C]567[/C][C]550.326434878587[/C][C]16.6735651214128[/C][/ROW]
[ROW][C]18[/C][C]569[/C][C]551.326434878587[/C][C]17.6735651214128[/C][/ROW]
[ROW][C]19[/C][C]621[/C][C]602.526434878587[/C][C]18.4735651214128[/C][/ROW]
[ROW][C]20[/C][C]629[/C][C]611.926434878587[/C][C]17.0735651214128[/C][/ROW]
[ROW][C]21[/C][C]628[/C][C]603.126434878587[/C][C]24.8735651214128[/C][/ROW]
[ROW][C]22[/C][C]612[/C][C]597.148123620309[/C][C]14.8518763796910[/C][/ROW]
[ROW][C]23[/C][C]595[/C][C]581.748123620309[/C][C]13.2518763796910[/C][/ROW]
[ROW][C]24[/C][C]597[/C][C]584.148123620309[/C][C]12.8518763796909[/C][/ROW]
[ROW][C]25[/C][C]593[/C][C]579.121854304636[/C][C]13.8781456953642[/C][/ROW]
[ROW][C]26[/C][C]590[/C][C]568.821688741722[/C][C]21.1783112582781[/C][/ROW]
[ROW][C]27[/C][C]580[/C][C]558.221688741722[/C][C]21.7783112582782[/C][/ROW]
[ROW][C]28[/C][C]574[/C][C]550.821688741722[/C][C]23.1783112582782[/C][/ROW]
[ROW][C]29[/C][C]573[/C][C]540.821688741722[/C][C]32.1783112582781[/C][/ROW]
[ROW][C]30[/C][C]573[/C][C]541.821688741722[/C][C]31.1783112582782[/C][/ROW]
[ROW][C]31[/C][C]620[/C][C]593.021688741722[/C][C]26.9783112582782[/C][/ROW]
[ROW][C]32[/C][C]626[/C][C]602.421688741722[/C][C]23.5783112582782[/C][/ROW]
[ROW][C]33[/C][C]620[/C][C]593.621688741722[/C][C]26.3783112582781[/C][/ROW]
[ROW][C]34[/C][C]588[/C][C]587.643377483444[/C][C]0.356622516556293[/C][/ROW]
[ROW][C]35[/C][C]566[/C][C]572.243377483444[/C][C]-6.2433774834437[/C][/ROW]
[ROW][C]36[/C][C]557[/C][C]574.643377483444[/C][C]-17.6433774834437[/C][/ROW]
[ROW][C]37[/C][C]561[/C][C]569.61710816777[/C][C]-8.61710816777045[/C][/ROW]
[ROW][C]38[/C][C]549[/C][C]559.316942604857[/C][C]-10.3169426048565[/C][/ROW]
[ROW][C]39[/C][C]532[/C][C]548.716942604857[/C][C]-16.7169426048565[/C][/ROW]
[ROW][C]40[/C][C]526[/C][C]541.316942604857[/C][C]-15.3169426048565[/C][/ROW]
[ROW][C]41[/C][C]511[/C][C]531.316942604857[/C][C]-20.3169426048565[/C][/ROW]
[ROW][C]42[/C][C]499[/C][C]532.316942604856[/C][C]-33.3169426048565[/C][/ROW]
[ROW][C]43[/C][C]555[/C][C]583.516942604856[/C][C]-28.5169426048565[/C][/ROW]
[ROW][C]44[/C][C]565[/C][C]592.916942604857[/C][C]-27.9169426048565[/C][/ROW]
[ROW][C]45[/C][C]542[/C][C]584.116942604856[/C][C]-42.1169426048565[/C][/ROW]
[ROW][C]46[/C][C]527[/C][C]531.030187637969[/C][C]-4.0301876379691[/C][/ROW]
[ROW][C]47[/C][C]510[/C][C]515.630187637969[/C][C]-5.63018763796909[/C][/ROW]
[ROW][C]48[/C][C]514[/C][C]518.030187637969[/C][C]-4.03018763796912[/C][/ROW]
[ROW][C]49[/C][C]517[/C][C]513.003918322296[/C][C]3.99608167770415[/C][/ROW]
[ROW][C]50[/C][C]508[/C][C]502.703752759382[/C][C]5.29624724061811[/C][/ROW]
[ROW][C]51[/C][C]493[/C][C]492.103752759382[/C][C]0.896247240618112[/C][/ROW]
[ROW][C]52[/C][C]490[/C][C]484.703752759382[/C][C]5.2962472406181[/C][/ROW]
[ROW][C]53[/C][C]469[/C][C]474.703752759382[/C][C]-5.70375275938191[/C][/ROW]
[ROW][C]54[/C][C]478[/C][C]475.703752759382[/C][C]2.29624724061811[/C][/ROW]
[ROW][C]55[/C][C]528[/C][C]526.903752759382[/C][C]1.09624724061811[/C][/ROW]
[ROW][C]56[/C][C]534[/C][C]536.303752759382[/C][C]-2.30375275938188[/C][/ROW]
[ROW][C]57[/C][C]518[/C][C]527.503752759382[/C][C]-9.5037527593819[/C][/ROW]
[ROW][C]58[/C][C]506[/C][C]521.525441501104[/C][C]-15.5254415011038[/C][/ROW]
[ROW][C]59[/C][C]502[/C][C]506.125441501104[/C][C]-4.12544150110375[/C][/ROW]
[ROW][C]60[/C][C]516[/C][C]508.525441501104[/C][C]7.47455849889623[/C][/ROW]
[ROW][C]61[/C][C]528[/C][C]503.499172185430[/C][C]24.5008278145695[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57593&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57593&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
1562598.131346578366-36.1313465783663
2561587.831181015452-26.8311810154525
3555577.231181015453-22.2311810154525
4544569.831181015453-25.8311810154526
5537559.831181015452-22.8311810154525
6543560.831181015453-17.8311810154526
7594612.031181015453-18.0311810154526
8611621.431181015453-10.4311810154526
9613612.6311810154530.368818984547442
10611606.6528697571744.34713024282562
11594591.2528697571742.74713024282559
12595593.6528697571741.34713024282558
13591588.6266004415012.37339955849886
14589578.32643487858710.6735651214128
15584567.72643487858716.2735651214128
16573560.32643487858712.6735651214128
17567550.32643487858716.6735651214128
18569551.32643487858717.6735651214128
19621602.52643487858718.4735651214128
20629611.92643487858717.0735651214128
21628603.12643487858724.8735651214128
22612597.14812362030914.8518763796910
23595581.74812362030913.2518763796910
24597584.14812362030912.8518763796909
25593579.12185430463613.8781456953642
26590568.82168874172221.1783112582781
27580558.22168874172221.7783112582782
28574550.82168874172223.1783112582782
29573540.82168874172232.1783112582781
30573541.82168874172231.1783112582782
31620593.02168874172226.9783112582782
32626602.42168874172223.5783112582782
33620593.62168874172226.3783112582781
34588587.6433774834440.356622516556293
35566572.243377483444-6.2433774834437
36557574.643377483444-17.6433774834437
37561569.61710816777-8.61710816777045
38549559.316942604857-10.3169426048565
39532548.716942604857-16.7169426048565
40526541.316942604857-15.3169426048565
41511531.316942604857-20.3169426048565
42499532.316942604856-33.3169426048565
43555583.516942604856-28.5169426048565
44565592.916942604857-27.9169426048565
45542584.116942604856-42.1169426048565
46527531.030187637969-4.0301876379691
47510515.630187637969-5.63018763796909
48514518.030187637969-4.03018763796912
49517513.0039183222963.99608167770415
50508502.7037527593825.29624724061811
51493492.1037527593820.896247240618112
52490484.7037527593825.2962472406181
53469474.703752759382-5.70375275938191
54478475.7037527593822.29624724061811
55528526.9037527593821.09624724061811
56534536.303752759382-2.30375275938188
57518527.503752759382-9.5037527593819
58506521.525441501104-15.5254415011038
59502506.125441501104-4.12544150110375
60516508.5254415011047.47455849889623
61528503.49917218543024.5008278145695







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
177.91941746080157e-050.0001583883492160310.999920805825392
185.68226199005055e-050.0001136452398010110.9999431773801
195.78908937844706e-061.15781787568941e-050.999994210910622
200.0002677368233880960.0005354736467761920.999732263176612
210.000663629169330690.001327258338661380.99933637083067
220.01129028059426410.02258056118852820.988709719405736
230.02209591412244320.04419182824488630.977904085877557
240.02489657478685620.04979314957371250.975103425213144
250.02225340599745100.04450681199490210.97774659400255
260.01528576871524320.03057153743048640.984714231284757
270.01249915967387260.02499831934774530.987500840326127
280.006961432103635360.01392286420727070.993038567896365
290.004765993640842490.009531987281684980.995234006359157
300.004472059265422830.008944118530845660.995527940734577
310.005080942097145350.01016188419429070.994919057902855
320.01100543753950790.02201087507901570.988994562460492
330.3022985707722250.6045971415444510.697701429227775
340.8916030255774160.2167939488451690.108396974422584
350.9911810994972610.01763780100547710.00881890050273855
360.9963943771822470.007211245635505750.00360562281775287
370.9949633515946470.01007329681070670.00503664840535333
380.9948223997954090.01035520040918260.00517760020459128
390.9942908125101570.01141837497968590.00570918748984294
400.9904308506888930.01913829862221430.00956914931110716
410.9916681427419820.01666371451603560.00833185725801782
420.9851548679771430.02969026404571460.0148451320228573
430.9628119077418710.07437618451625720.0371880922581286
440.9102714397723430.1794571204553140.0897285602276571

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 7.91941746080157e-05 & 0.000158388349216031 & 0.999920805825392 \tabularnewline
18 & 5.68226199005055e-05 & 0.000113645239801011 & 0.9999431773801 \tabularnewline
19 & 5.78908937844706e-06 & 1.15781787568941e-05 & 0.999994210910622 \tabularnewline
20 & 0.000267736823388096 & 0.000535473646776192 & 0.999732263176612 \tabularnewline
21 & 0.00066362916933069 & 0.00132725833866138 & 0.99933637083067 \tabularnewline
22 & 0.0112902805942641 & 0.0225805611885282 & 0.988709719405736 \tabularnewline
23 & 0.0220959141224432 & 0.0441918282448863 & 0.977904085877557 \tabularnewline
24 & 0.0248965747868562 & 0.0497931495737125 & 0.975103425213144 \tabularnewline
25 & 0.0222534059974510 & 0.0445068119949021 & 0.97774659400255 \tabularnewline
26 & 0.0152857687152432 & 0.0305715374304864 & 0.984714231284757 \tabularnewline
27 & 0.0124991596738726 & 0.0249983193477453 & 0.987500840326127 \tabularnewline
28 & 0.00696143210363536 & 0.0139228642072707 & 0.993038567896365 \tabularnewline
29 & 0.00476599364084249 & 0.00953198728168498 & 0.995234006359157 \tabularnewline
30 & 0.00447205926542283 & 0.00894411853084566 & 0.995527940734577 \tabularnewline
31 & 0.00508094209714535 & 0.0101618841942907 & 0.994919057902855 \tabularnewline
32 & 0.0110054375395079 & 0.0220108750790157 & 0.988994562460492 \tabularnewline
33 & 0.302298570772225 & 0.604597141544451 & 0.697701429227775 \tabularnewline
34 & 0.891603025577416 & 0.216793948845169 & 0.108396974422584 \tabularnewline
35 & 0.991181099497261 & 0.0176378010054771 & 0.00881890050273855 \tabularnewline
36 & 0.996394377182247 & 0.00721124563550575 & 0.00360562281775287 \tabularnewline
37 & 0.994963351594647 & 0.0100732968107067 & 0.00503664840535333 \tabularnewline
38 & 0.994822399795409 & 0.0103552004091826 & 0.00517760020459128 \tabularnewline
39 & 0.994290812510157 & 0.0114183749796859 & 0.00570918748984294 \tabularnewline
40 & 0.990430850688893 & 0.0191382986222143 & 0.00956914931110716 \tabularnewline
41 & 0.991668142741982 & 0.0166637145160356 & 0.00833185725801782 \tabularnewline
42 & 0.985154867977143 & 0.0296902640457146 & 0.0148451320228573 \tabularnewline
43 & 0.962811907741871 & 0.0743761845162572 & 0.0371880922581286 \tabularnewline
44 & 0.910271439772343 & 0.179457120455314 & 0.0897285602276571 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57593&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]7.91941746080157e-05[/C][C]0.000158388349216031[/C][C]0.999920805825392[/C][/ROW]
[ROW][C]18[/C][C]5.68226199005055e-05[/C][C]0.000113645239801011[/C][C]0.9999431773801[/C][/ROW]
[ROW][C]19[/C][C]5.78908937844706e-06[/C][C]1.15781787568941e-05[/C][C]0.999994210910622[/C][/ROW]
[ROW][C]20[/C][C]0.000267736823388096[/C][C]0.000535473646776192[/C][C]0.999732263176612[/C][/ROW]
[ROW][C]21[/C][C]0.00066362916933069[/C][C]0.00132725833866138[/C][C]0.99933637083067[/C][/ROW]
[ROW][C]22[/C][C]0.0112902805942641[/C][C]0.0225805611885282[/C][C]0.988709719405736[/C][/ROW]
[ROW][C]23[/C][C]0.0220959141224432[/C][C]0.0441918282448863[/C][C]0.977904085877557[/C][/ROW]
[ROW][C]24[/C][C]0.0248965747868562[/C][C]0.0497931495737125[/C][C]0.975103425213144[/C][/ROW]
[ROW][C]25[/C][C]0.0222534059974510[/C][C]0.0445068119949021[/C][C]0.97774659400255[/C][/ROW]
[ROW][C]26[/C][C]0.0152857687152432[/C][C]0.0305715374304864[/C][C]0.984714231284757[/C][/ROW]
[ROW][C]27[/C][C]0.0124991596738726[/C][C]0.0249983193477453[/C][C]0.987500840326127[/C][/ROW]
[ROW][C]28[/C][C]0.00696143210363536[/C][C]0.0139228642072707[/C][C]0.993038567896365[/C][/ROW]
[ROW][C]29[/C][C]0.00476599364084249[/C][C]0.00953198728168498[/C][C]0.995234006359157[/C][/ROW]
[ROW][C]30[/C][C]0.00447205926542283[/C][C]0.00894411853084566[/C][C]0.995527940734577[/C][/ROW]
[ROW][C]31[/C][C]0.00508094209714535[/C][C]0.0101618841942907[/C][C]0.994919057902855[/C][/ROW]
[ROW][C]32[/C][C]0.0110054375395079[/C][C]0.0220108750790157[/C][C]0.988994562460492[/C][/ROW]
[ROW][C]33[/C][C]0.302298570772225[/C][C]0.604597141544451[/C][C]0.697701429227775[/C][/ROW]
[ROW][C]34[/C][C]0.891603025577416[/C][C]0.216793948845169[/C][C]0.108396974422584[/C][/ROW]
[ROW][C]35[/C][C]0.991181099497261[/C][C]0.0176378010054771[/C][C]0.00881890050273855[/C][/ROW]
[ROW][C]36[/C][C]0.996394377182247[/C][C]0.00721124563550575[/C][C]0.00360562281775287[/C][/ROW]
[ROW][C]37[/C][C]0.994963351594647[/C][C]0.0100732968107067[/C][C]0.00503664840535333[/C][/ROW]
[ROW][C]38[/C][C]0.994822399795409[/C][C]0.0103552004091826[/C][C]0.00517760020459128[/C][/ROW]
[ROW][C]39[/C][C]0.994290812510157[/C][C]0.0114183749796859[/C][C]0.00570918748984294[/C][/ROW]
[ROW][C]40[/C][C]0.990430850688893[/C][C]0.0191382986222143[/C][C]0.00956914931110716[/C][/ROW]
[ROW][C]41[/C][C]0.991668142741982[/C][C]0.0166637145160356[/C][C]0.00833185725801782[/C][/ROW]
[ROW][C]42[/C][C]0.985154867977143[/C][C]0.0296902640457146[/C][C]0.0148451320228573[/C][/ROW]
[ROW][C]43[/C][C]0.962811907741871[/C][C]0.0743761845162572[/C][C]0.0371880922581286[/C][/ROW]
[ROW][C]44[/C][C]0.910271439772343[/C][C]0.179457120455314[/C][C]0.0897285602276571[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57593&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57593&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
177.91941746080157e-050.0001583883492160310.999920805825392
185.68226199005055e-050.0001136452398010110.9999431773801
195.78908937844706e-061.15781787568941e-050.999994210910622
200.0002677368233880960.0005354736467761920.999732263176612
210.000663629169330690.001327258338661380.99933637083067
220.01129028059426410.02258056118852820.988709719405736
230.02209591412244320.04419182824488630.977904085877557
240.02489657478685620.04979314957371250.975103425213144
250.02225340599745100.04450681199490210.97774659400255
260.01528576871524320.03057153743048640.984714231284757
270.01249915967387260.02499831934774530.987500840326127
280.006961432103635360.01392286420727070.993038567896365
290.004765993640842490.009531987281684980.995234006359157
300.004472059265422830.008944118530845660.995527940734577
310.005080942097145350.01016188419429070.994919057902855
320.01100543753950790.02201087507901570.988994562460492
330.3022985707722250.6045971415444510.697701429227775
340.8916030255774160.2167939488451690.108396974422584
350.9911810994972610.01763780100547710.00881890050273855
360.9963943771822470.007211245635505750.00360562281775287
370.9949633515946470.01007329681070670.00503664840535333
380.9948223997954090.01035520040918260.00517760020459128
390.9942908125101570.01141837497968590.00570918748984294
400.9904308506888930.01913829862221430.00956914931110716
410.9916681427419820.01666371451603560.00833185725801782
420.9851548679771430.02969026404571460.0148451320228573
430.9628119077418710.07437618451625720.0371880922581286
440.9102714397723430.1794571204553140.0897285602276571







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.285714285714286NOK
5% type I error level240.857142857142857NOK
10% type I error level250.892857142857143NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 8 & 0.285714285714286 & NOK \tabularnewline
5% type I error level & 24 & 0.857142857142857 & NOK \tabularnewline
10% type I error level & 25 & 0.892857142857143 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57593&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]8[/C][C]0.285714285714286[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]24[/C][C]0.857142857142857[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]25[/C][C]0.892857142857143[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57593&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.285714285714286NOK
5% type I error level240.857142857142857NOK
10% type I error level250.892857142857143NOK



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