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:51:44 -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/t12585703828dzdu3wum05ws0h.htm/, Retrieved Sun, 05 May 2024 11:14:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57592, Retrieved Sun, 05 May 2024 11:14:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
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 2] [2009-11-18 18:51:44] [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=57592&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=57592&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57592&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] = + 584.371764705883 -71.4294117647059X[t] -1.89529411764702M1[t] -10.6858823529412M2[t] -21.2858823529412M3[t] -28.6858823529412M4[t] -38.6858823529411M5[t] -37.6858823529412M6[t] + 13.5141176470588M7[t] + 22.9141176470588M8[t] + 14.1141176470588M9[t] + 13M10[t] -2.40000000000001M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  584.371764705883 -71.4294117647059X[t] -1.89529411764702M1[t] -10.6858823529412M2[t] -21.2858823529412M3[t] -28.6858823529412M4[t] -38.6858823529411M5[t] -37.6858823529412M6[t] +  13.5141176470588M7[t] +  22.9141176470588M8[t] +  14.1141176470588M9[t] +  13M10[t] -2.40000000000001M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57592&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  584.371764705883 -71.4294117647059X[t] -1.89529411764702M1[t] -10.6858823529412M2[t] -21.2858823529412M3[t] -28.6858823529412M4[t] -38.6858823529411M5[t] -37.6858823529412M6[t] +  13.5141176470588M7[t] +  22.9141176470588M8[t] +  14.1141176470588M9[t] +  13M10[t] -2.40000000000001M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57592&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57592&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] = + 584.371764705883 -71.4294117647059X[t] -1.89529411764702M1[t] -10.6858823529412M2[t] -21.2858823529412M3[t] -28.6858823529412M4[t] -38.6858823529411M5[t] -37.6858823529412M6[t] + 13.5141176470588M7[t] + 22.9141176470588M8[t] + 14.1141176470588M9[t] + 13M10[t] -2.40000000000001M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)584.37176470588310.56265955.324300
X-71.42941176470596.780601-10.534400
M1-1.8952941176470213.829767-0.1370.8915690.445784
M2-10.685882352941214.500555-0.73690.4647520.232376
M3-21.285882352941214.500555-1.46790.1486440.074322
M4-28.685882352941214.500555-1.97830.0536540.026827
M5-38.685882352941114.500555-2.66790.0103770.005189
M6-37.685882352941214.500555-2.59890.0123860.006193
M713.514117647058814.5005550.9320.3560150.178007
M822.914117647058814.5005551.58020.1206240.060312
M914.114117647058814.5005550.97340.3352590.16763
M101314.4370020.90050.3723690.186185
M11-2.4000000000000114.437002-0.16620.8686670.434333

\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) & 584.371764705883 & 10.562659 & 55.3243 & 0 & 0 \tabularnewline
X & -71.4294117647059 & 6.780601 & -10.5344 & 0 & 0 \tabularnewline
M1 & -1.89529411764702 & 13.829767 & -0.137 & 0.891569 & 0.445784 \tabularnewline
M2 & -10.6858823529412 & 14.500555 & -0.7369 & 0.464752 & 0.232376 \tabularnewline
M3 & -21.2858823529412 & 14.500555 & -1.4679 & 0.148644 & 0.074322 \tabularnewline
M4 & -28.6858823529412 & 14.500555 & -1.9783 & 0.053654 & 0.026827 \tabularnewline
M5 & -38.6858823529411 & 14.500555 & -2.6679 & 0.010377 & 0.005189 \tabularnewline
M6 & -37.6858823529412 & 14.500555 & -2.5989 & 0.012386 & 0.006193 \tabularnewline
M7 & 13.5141176470588 & 14.500555 & 0.932 & 0.356015 & 0.178007 \tabularnewline
M8 & 22.9141176470588 & 14.500555 & 1.5802 & 0.120624 & 0.060312 \tabularnewline
M9 & 14.1141176470588 & 14.500555 & 0.9734 & 0.335259 & 0.16763 \tabularnewline
M10 & 13 & 14.437002 & 0.9005 & 0.372369 & 0.186185 \tabularnewline
M11 & -2.40000000000001 & 14.437002 & -0.1662 & 0.868667 & 0.434333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57592&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]584.371764705883[/C][C]10.562659[/C][C]55.3243[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-71.4294117647059[/C][C]6.780601[/C][C]-10.5344[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-1.89529411764702[/C][C]13.829767[/C][C]-0.137[/C][C]0.891569[/C][C]0.445784[/C][/ROW]
[ROW][C]M2[/C][C]-10.6858823529412[/C][C]14.500555[/C][C]-0.7369[/C][C]0.464752[/C][C]0.232376[/C][/ROW]
[ROW][C]M3[/C][C]-21.2858823529412[/C][C]14.500555[/C][C]-1.4679[/C][C]0.148644[/C][C]0.074322[/C][/ROW]
[ROW][C]M4[/C][C]-28.6858823529412[/C][C]14.500555[/C][C]-1.9783[/C][C]0.053654[/C][C]0.026827[/C][/ROW]
[ROW][C]M5[/C][C]-38.6858823529411[/C][C]14.500555[/C][C]-2.6679[/C][C]0.010377[/C][C]0.005189[/C][/ROW]
[ROW][C]M6[/C][C]-37.6858823529412[/C][C]14.500555[/C][C]-2.5989[/C][C]0.012386[/C][C]0.006193[/C][/ROW]
[ROW][C]M7[/C][C]13.5141176470588[/C][C]14.500555[/C][C]0.932[/C][C]0.356015[/C][C]0.178007[/C][/ROW]
[ROW][C]M8[/C][C]22.9141176470588[/C][C]14.500555[/C][C]1.5802[/C][C]0.120624[/C][C]0.060312[/C][/ROW]
[ROW][C]M9[/C][C]14.1141176470588[/C][C]14.500555[/C][C]0.9734[/C][C]0.335259[/C][C]0.16763[/C][/ROW]
[ROW][C]M10[/C][C]13[/C][C]14.437002[/C][C]0.9005[/C][C]0.372369[/C][C]0.186185[/C][/ROW]
[ROW][C]M11[/C][C]-2.40000000000001[/C][C]14.437002[/C][C]-0.1662[/C][C]0.868667[/C][C]0.434333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57592&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57592&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)584.37176470588310.56265955.324300
X-71.42941176470596.780601-10.534400
M1-1.8952941176470213.829767-0.1370.8915690.445784
M2-10.685882352941214.500555-0.73690.4647520.232376
M3-21.285882352941214.500555-1.46790.1486440.074322
M4-28.685882352941214.500555-1.97830.0536540.026827
M5-38.685882352941114.500555-2.66790.0103770.005189
M6-37.685882352941214.500555-2.59890.0123860.006193
M713.514117647058814.5005550.9320.3560150.178007
M822.914117647058814.5005551.58020.1206240.060312
M914.114117647058814.5005550.97340.3352590.16763
M101314.4370020.90050.3723690.186185
M11-2.4000000000000114.437002-0.16620.8686670.434333







Multiple Linear Regression - Regression Statistics
Multiple R0.872704588342877
R-squared0.761613298514711
Adjusted R-squared0.702016623143389
F-TEST (value)12.7794594877888
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value3.67905705900284e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation22.8269045980705
Sum Squared Residuals25011.2435294118

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.872704588342877 \tabularnewline
R-squared & 0.761613298514711 \tabularnewline
Adjusted R-squared & 0.702016623143389 \tabularnewline
F-TEST (value) & 12.7794594877888 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 3.67905705900284e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 22.8269045980705 \tabularnewline
Sum Squared Residuals & 25011.2435294118 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57592&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.872704588342877[/C][/ROW]
[ROW][C]R-squared[/C][C]0.761613298514711[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.702016623143389[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]12.7794594877888[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]3.67905705900284e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]22.8269045980705[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]25011.2435294118[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57592&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57592&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.872704588342877
R-squared0.761613298514711
Adjusted R-squared0.702016623143389
F-TEST (value)12.7794594877888
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value3.67905705900284e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation22.8269045980705
Sum Squared Residuals25011.2435294118







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1562582.476470588235-20.4764705882351
2561573.685882352941-12.6858823529411
3555563.085882352941-8.08588235294119
4544555.685882352941-11.6858823529412
5537545.685882352941-8.6858823529411
6543546.685882352941-3.68588235294122
7594597.885882352941-3.88588235294121
8611607.2858823529413.71411764705878
9613598.48588235294114.5141176470588
10611597.37176470588213.6282352941177
11594581.97176470588212.0282352941176
12595584.37176470588210.6282352941176
13591582.4764705882358.52352941176466
14589573.68588235294115.3141176470588
15584563.08588235294120.9141176470588
16573555.68588235294117.3141176470588
17567545.68588235294121.3141176470588
18569546.68588235294122.3141176470588
19621597.88588235294123.1141176470588
20629607.28588235294121.7141176470588
21628598.48588235294129.5141176470588
22612597.37176470588214.6282352941177
23595581.97176470588213.0282352941176
24597584.37176470588212.6282352941176
25593582.47647058823510.5235294117647
26590573.68588235294116.3141176470588
27580563.08588235294116.9141176470588
28574555.68588235294118.3141176470588
29573545.68588235294127.3141176470588
30573546.68588235294126.3141176470588
31620597.88588235294122.1141176470588
32626607.28588235294118.7141176470588
33620598.48588235294121.5141176470588
34588597.371764705882-9.37176470588236
35566581.971764705882-15.9717647058824
36557584.371764705882-27.3717647058824
37561582.476470588235-21.4764705882353
38549573.685882352941-24.6858823529412
39532563.085882352941-31.0858823529412
40526555.685882352941-29.6858823529412
41511545.685882352941-34.6858823529412
42499546.685882352941-47.6858823529412
43555597.885882352941-42.8858823529412
44565607.285882352941-42.2858823529412
45542598.485882352941-56.4858823529412
46527525.9423529411771.05764705882353
47510510.542352941176-0.54235294117646
48514512.9423529411771.05764705882353
49517511.0470588235295.95294117647056
50508502.2564705882355.74352941176472
51493491.6564705882351.34352941176471
52490484.2564705882355.74352941176471
53469474.256470588235-5.2564705882353
54478475.2564705882352.74352941176472
55528526.4564705882351.54352941176472
56534535.856470588235-1.85647058823527
57518527.056470588235-9.05647058823529
58506525.942352941177-19.9423529411765
59502510.542352941176-8.54235294117646
60516512.9423529411773.05764705882353
61528511.04705882352916.9529411764705

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 562 & 582.476470588235 & -20.4764705882351 \tabularnewline
2 & 561 & 573.685882352941 & -12.6858823529411 \tabularnewline
3 & 555 & 563.085882352941 & -8.08588235294119 \tabularnewline
4 & 544 & 555.685882352941 & -11.6858823529412 \tabularnewline
5 & 537 & 545.685882352941 & -8.6858823529411 \tabularnewline
6 & 543 & 546.685882352941 & -3.68588235294122 \tabularnewline
7 & 594 & 597.885882352941 & -3.88588235294121 \tabularnewline
8 & 611 & 607.285882352941 & 3.71411764705878 \tabularnewline
9 & 613 & 598.485882352941 & 14.5141176470588 \tabularnewline
10 & 611 & 597.371764705882 & 13.6282352941177 \tabularnewline
11 & 594 & 581.971764705882 & 12.0282352941176 \tabularnewline
12 & 595 & 584.371764705882 & 10.6282352941176 \tabularnewline
13 & 591 & 582.476470588235 & 8.52352941176466 \tabularnewline
14 & 589 & 573.685882352941 & 15.3141176470588 \tabularnewline
15 & 584 & 563.085882352941 & 20.9141176470588 \tabularnewline
16 & 573 & 555.685882352941 & 17.3141176470588 \tabularnewline
17 & 567 & 545.685882352941 & 21.3141176470588 \tabularnewline
18 & 569 & 546.685882352941 & 22.3141176470588 \tabularnewline
19 & 621 & 597.885882352941 & 23.1141176470588 \tabularnewline
20 & 629 & 607.285882352941 & 21.7141176470588 \tabularnewline
21 & 628 & 598.485882352941 & 29.5141176470588 \tabularnewline
22 & 612 & 597.371764705882 & 14.6282352941177 \tabularnewline
23 & 595 & 581.971764705882 & 13.0282352941176 \tabularnewline
24 & 597 & 584.371764705882 & 12.6282352941176 \tabularnewline
25 & 593 & 582.476470588235 & 10.5235294117647 \tabularnewline
26 & 590 & 573.685882352941 & 16.3141176470588 \tabularnewline
27 & 580 & 563.085882352941 & 16.9141176470588 \tabularnewline
28 & 574 & 555.685882352941 & 18.3141176470588 \tabularnewline
29 & 573 & 545.685882352941 & 27.3141176470588 \tabularnewline
30 & 573 & 546.685882352941 & 26.3141176470588 \tabularnewline
31 & 620 & 597.885882352941 & 22.1141176470588 \tabularnewline
32 & 626 & 607.285882352941 & 18.7141176470588 \tabularnewline
33 & 620 & 598.485882352941 & 21.5141176470588 \tabularnewline
34 & 588 & 597.371764705882 & -9.37176470588236 \tabularnewline
35 & 566 & 581.971764705882 & -15.9717647058824 \tabularnewline
36 & 557 & 584.371764705882 & -27.3717647058824 \tabularnewline
37 & 561 & 582.476470588235 & -21.4764705882353 \tabularnewline
38 & 549 & 573.685882352941 & -24.6858823529412 \tabularnewline
39 & 532 & 563.085882352941 & -31.0858823529412 \tabularnewline
40 & 526 & 555.685882352941 & -29.6858823529412 \tabularnewline
41 & 511 & 545.685882352941 & -34.6858823529412 \tabularnewline
42 & 499 & 546.685882352941 & -47.6858823529412 \tabularnewline
43 & 555 & 597.885882352941 & -42.8858823529412 \tabularnewline
44 & 565 & 607.285882352941 & -42.2858823529412 \tabularnewline
45 & 542 & 598.485882352941 & -56.4858823529412 \tabularnewline
46 & 527 & 525.942352941177 & 1.05764705882353 \tabularnewline
47 & 510 & 510.542352941176 & -0.54235294117646 \tabularnewline
48 & 514 & 512.942352941177 & 1.05764705882353 \tabularnewline
49 & 517 & 511.047058823529 & 5.95294117647056 \tabularnewline
50 & 508 & 502.256470588235 & 5.74352941176472 \tabularnewline
51 & 493 & 491.656470588235 & 1.34352941176471 \tabularnewline
52 & 490 & 484.256470588235 & 5.74352941176471 \tabularnewline
53 & 469 & 474.256470588235 & -5.2564705882353 \tabularnewline
54 & 478 & 475.256470588235 & 2.74352941176472 \tabularnewline
55 & 528 & 526.456470588235 & 1.54352941176472 \tabularnewline
56 & 534 & 535.856470588235 & -1.85647058823527 \tabularnewline
57 & 518 & 527.056470588235 & -9.05647058823529 \tabularnewline
58 & 506 & 525.942352941177 & -19.9423529411765 \tabularnewline
59 & 502 & 510.542352941176 & -8.54235294117646 \tabularnewline
60 & 516 & 512.942352941177 & 3.05764705882353 \tabularnewline
61 & 528 & 511.047058823529 & 16.9529411764705 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57592&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]582.476470588235[/C][C]-20.4764705882351[/C][/ROW]
[ROW][C]2[/C][C]561[/C][C]573.685882352941[/C][C]-12.6858823529411[/C][/ROW]
[ROW][C]3[/C][C]555[/C][C]563.085882352941[/C][C]-8.08588235294119[/C][/ROW]
[ROW][C]4[/C][C]544[/C][C]555.685882352941[/C][C]-11.6858823529412[/C][/ROW]
[ROW][C]5[/C][C]537[/C][C]545.685882352941[/C][C]-8.6858823529411[/C][/ROW]
[ROW][C]6[/C][C]543[/C][C]546.685882352941[/C][C]-3.68588235294122[/C][/ROW]
[ROW][C]7[/C][C]594[/C][C]597.885882352941[/C][C]-3.88588235294121[/C][/ROW]
[ROW][C]8[/C][C]611[/C][C]607.285882352941[/C][C]3.71411764705878[/C][/ROW]
[ROW][C]9[/C][C]613[/C][C]598.485882352941[/C][C]14.5141176470588[/C][/ROW]
[ROW][C]10[/C][C]611[/C][C]597.371764705882[/C][C]13.6282352941177[/C][/ROW]
[ROW][C]11[/C][C]594[/C][C]581.971764705882[/C][C]12.0282352941176[/C][/ROW]
[ROW][C]12[/C][C]595[/C][C]584.371764705882[/C][C]10.6282352941176[/C][/ROW]
[ROW][C]13[/C][C]591[/C][C]582.476470588235[/C][C]8.52352941176466[/C][/ROW]
[ROW][C]14[/C][C]589[/C][C]573.685882352941[/C][C]15.3141176470588[/C][/ROW]
[ROW][C]15[/C][C]584[/C][C]563.085882352941[/C][C]20.9141176470588[/C][/ROW]
[ROW][C]16[/C][C]573[/C][C]555.685882352941[/C][C]17.3141176470588[/C][/ROW]
[ROW][C]17[/C][C]567[/C][C]545.685882352941[/C][C]21.3141176470588[/C][/ROW]
[ROW][C]18[/C][C]569[/C][C]546.685882352941[/C][C]22.3141176470588[/C][/ROW]
[ROW][C]19[/C][C]621[/C][C]597.885882352941[/C][C]23.1141176470588[/C][/ROW]
[ROW][C]20[/C][C]629[/C][C]607.285882352941[/C][C]21.7141176470588[/C][/ROW]
[ROW][C]21[/C][C]628[/C][C]598.485882352941[/C][C]29.5141176470588[/C][/ROW]
[ROW][C]22[/C][C]612[/C][C]597.371764705882[/C][C]14.6282352941177[/C][/ROW]
[ROW][C]23[/C][C]595[/C][C]581.971764705882[/C][C]13.0282352941176[/C][/ROW]
[ROW][C]24[/C][C]597[/C][C]584.371764705882[/C][C]12.6282352941176[/C][/ROW]
[ROW][C]25[/C][C]593[/C][C]582.476470588235[/C][C]10.5235294117647[/C][/ROW]
[ROW][C]26[/C][C]590[/C][C]573.685882352941[/C][C]16.3141176470588[/C][/ROW]
[ROW][C]27[/C][C]580[/C][C]563.085882352941[/C][C]16.9141176470588[/C][/ROW]
[ROW][C]28[/C][C]574[/C][C]555.685882352941[/C][C]18.3141176470588[/C][/ROW]
[ROW][C]29[/C][C]573[/C][C]545.685882352941[/C][C]27.3141176470588[/C][/ROW]
[ROW][C]30[/C][C]573[/C][C]546.685882352941[/C][C]26.3141176470588[/C][/ROW]
[ROW][C]31[/C][C]620[/C][C]597.885882352941[/C][C]22.1141176470588[/C][/ROW]
[ROW][C]32[/C][C]626[/C][C]607.285882352941[/C][C]18.7141176470588[/C][/ROW]
[ROW][C]33[/C][C]620[/C][C]598.485882352941[/C][C]21.5141176470588[/C][/ROW]
[ROW][C]34[/C][C]588[/C][C]597.371764705882[/C][C]-9.37176470588236[/C][/ROW]
[ROW][C]35[/C][C]566[/C][C]581.971764705882[/C][C]-15.9717647058824[/C][/ROW]
[ROW][C]36[/C][C]557[/C][C]584.371764705882[/C][C]-27.3717647058824[/C][/ROW]
[ROW][C]37[/C][C]561[/C][C]582.476470588235[/C][C]-21.4764705882353[/C][/ROW]
[ROW][C]38[/C][C]549[/C][C]573.685882352941[/C][C]-24.6858823529412[/C][/ROW]
[ROW][C]39[/C][C]532[/C][C]563.085882352941[/C][C]-31.0858823529412[/C][/ROW]
[ROW][C]40[/C][C]526[/C][C]555.685882352941[/C][C]-29.6858823529412[/C][/ROW]
[ROW][C]41[/C][C]511[/C][C]545.685882352941[/C][C]-34.6858823529412[/C][/ROW]
[ROW][C]42[/C][C]499[/C][C]546.685882352941[/C][C]-47.6858823529412[/C][/ROW]
[ROW][C]43[/C][C]555[/C][C]597.885882352941[/C][C]-42.8858823529412[/C][/ROW]
[ROW][C]44[/C][C]565[/C][C]607.285882352941[/C][C]-42.2858823529412[/C][/ROW]
[ROW][C]45[/C][C]542[/C][C]598.485882352941[/C][C]-56.4858823529412[/C][/ROW]
[ROW][C]46[/C][C]527[/C][C]525.942352941177[/C][C]1.05764705882353[/C][/ROW]
[ROW][C]47[/C][C]510[/C][C]510.542352941176[/C][C]-0.54235294117646[/C][/ROW]
[ROW][C]48[/C][C]514[/C][C]512.942352941177[/C][C]1.05764705882353[/C][/ROW]
[ROW][C]49[/C][C]517[/C][C]511.047058823529[/C][C]5.95294117647056[/C][/ROW]
[ROW][C]50[/C][C]508[/C][C]502.256470588235[/C][C]5.74352941176472[/C][/ROW]
[ROW][C]51[/C][C]493[/C][C]491.656470588235[/C][C]1.34352941176471[/C][/ROW]
[ROW][C]52[/C][C]490[/C][C]484.256470588235[/C][C]5.74352941176471[/C][/ROW]
[ROW][C]53[/C][C]469[/C][C]474.256470588235[/C][C]-5.2564705882353[/C][/ROW]
[ROW][C]54[/C][C]478[/C][C]475.256470588235[/C][C]2.74352941176472[/C][/ROW]
[ROW][C]55[/C][C]528[/C][C]526.456470588235[/C][C]1.54352941176472[/C][/ROW]
[ROW][C]56[/C][C]534[/C][C]535.856470588235[/C][C]-1.85647058823527[/C][/ROW]
[ROW][C]57[/C][C]518[/C][C]527.056470588235[/C][C]-9.05647058823529[/C][/ROW]
[ROW][C]58[/C][C]506[/C][C]525.942352941177[/C][C]-19.9423529411765[/C][/ROW]
[ROW][C]59[/C][C]502[/C][C]510.542352941176[/C][C]-8.54235294117646[/C][/ROW]
[ROW][C]60[/C][C]516[/C][C]512.942352941177[/C][C]3.05764705882353[/C][/ROW]
[ROW][C]61[/C][C]528[/C][C]511.047058823529[/C][C]16.9529411764705[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57592&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57592&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
1562582.476470588235-20.4764705882351
2561573.685882352941-12.6858823529411
3555563.085882352941-8.08588235294119
4544555.685882352941-11.6858823529412
5537545.685882352941-8.6858823529411
6543546.685882352941-3.68588235294122
7594597.885882352941-3.88588235294121
8611607.2858823529413.71411764705878
9613598.48588235294114.5141176470588
10611597.37176470588213.6282352941177
11594581.97176470588212.0282352941176
12595584.37176470588210.6282352941176
13591582.4764705882358.52352941176466
14589573.68588235294115.3141176470588
15584563.08588235294120.9141176470588
16573555.68588235294117.3141176470588
17567545.68588235294121.3141176470588
18569546.68588235294122.3141176470588
19621597.88588235294123.1141176470588
20629607.28588235294121.7141176470588
21628598.48588235294129.5141176470588
22612597.37176470588214.6282352941177
23595581.97176470588213.0282352941176
24597584.37176470588212.6282352941176
25593582.47647058823510.5235294117647
26590573.68588235294116.3141176470588
27580563.08588235294116.9141176470588
28574555.68588235294118.3141176470588
29573545.68588235294127.3141176470588
30573546.68588235294126.3141176470588
31620597.88588235294122.1141176470588
32626607.28588235294118.7141176470588
33620598.48588235294121.5141176470588
34588597.371764705882-9.37176470588236
35566581.971764705882-15.9717647058824
36557584.371764705882-27.3717647058824
37561582.476470588235-21.4764705882353
38549573.685882352941-24.6858823529412
39532563.085882352941-31.0858823529412
40526555.685882352941-29.6858823529412
41511545.685882352941-34.6858823529412
42499546.685882352941-47.6858823529412
43555597.885882352941-42.8858823529412
44565607.285882352941-42.2858823529412
45542598.485882352941-56.4858823529412
46527525.9423529411771.05764705882353
47510510.542352941176-0.54235294117646
48514512.9423529411771.05764705882353
49517511.0470588235295.95294117647056
50508502.2564705882355.74352941176472
51493491.6564705882351.34352941176471
52490484.2564705882355.74352941176471
53469474.256470588235-5.2564705882353
54478475.2564705882352.74352941176472
55528526.4564705882351.54352941176472
56534535.856470588235-1.85647058823527
57518527.056470588235-9.05647058823529
58506525.942352941177-19.9423529411765
59502510.542352941176-8.54235294117646
60516512.9423529411773.05764705882353
61528511.04705882352916.9529411764705







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.4963600419114890.9927200838229770.503639958088511
170.4383459570718310.8766919141436620.561654042928169
180.3728620962414540.7457241924829070.627137903758546
190.3267877019316230.6535754038632450.673212298068377
200.2579472745563360.5158945491126730.742052725443664
210.2169837324459570.4339674648919140.783016267554043
220.1511401842864040.3022803685728080.848859815713596
230.1014062347945690.2028124695891380.898593765205431
240.06641265307482740.1328253061496550.933587346925173
250.04843506059655260.09687012119310520.951564939403447
260.03778808874763510.07557617749527010.962211911252365
270.02990658208588980.05981316417177960.97009341791411
280.02678088977801020.05356177955602050.97321911022199
290.04367926619443820.08735853238887640.956320733805562
300.0802961689378570.1605923378757140.919703831062143
310.1394663968319540.2789327936639080.860533603168046
320.2647660132555350.529532026511070.735233986744465
330.8946154458564260.2107691082871470.105384554143574
340.983671906948810.03265618610237820.0163280930511891
350.9979201391293480.004159721741304650.00207986087065232
360.9984636008574890.003072798285022340.00153639914251117
370.997353681280660.005292637438681130.00264631871934056
380.996827660030380.00634467993923980.0031723399696199
390.9965440285774240.006911942845151120.00345597142257556
400.994674825709770.01065034858046160.0053251742902308
410.9961657455586240.007668508882751990.00383425444137599
420.9944128603571240.01117427928575220.0055871396428761
430.9874145024527980.02517099509440480.0125854975472024
440.9711578474902380.0576843050195240.028842152509762
450.9341234335618520.1317531328762960.0658765664381478

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.496360041911489 & 0.992720083822977 & 0.503639958088511 \tabularnewline
17 & 0.438345957071831 & 0.876691914143662 & 0.561654042928169 \tabularnewline
18 & 0.372862096241454 & 0.745724192482907 & 0.627137903758546 \tabularnewline
19 & 0.326787701931623 & 0.653575403863245 & 0.673212298068377 \tabularnewline
20 & 0.257947274556336 & 0.515894549112673 & 0.742052725443664 \tabularnewline
21 & 0.216983732445957 & 0.433967464891914 & 0.783016267554043 \tabularnewline
22 & 0.151140184286404 & 0.302280368572808 & 0.848859815713596 \tabularnewline
23 & 0.101406234794569 & 0.202812469589138 & 0.898593765205431 \tabularnewline
24 & 0.0664126530748274 & 0.132825306149655 & 0.933587346925173 \tabularnewline
25 & 0.0484350605965526 & 0.0968701211931052 & 0.951564939403447 \tabularnewline
26 & 0.0377880887476351 & 0.0755761774952701 & 0.962211911252365 \tabularnewline
27 & 0.0299065820858898 & 0.0598131641717796 & 0.97009341791411 \tabularnewline
28 & 0.0267808897780102 & 0.0535617795560205 & 0.97321911022199 \tabularnewline
29 & 0.0436792661944382 & 0.0873585323888764 & 0.956320733805562 \tabularnewline
30 & 0.080296168937857 & 0.160592337875714 & 0.919703831062143 \tabularnewline
31 & 0.139466396831954 & 0.278932793663908 & 0.860533603168046 \tabularnewline
32 & 0.264766013255535 & 0.52953202651107 & 0.735233986744465 \tabularnewline
33 & 0.894615445856426 & 0.210769108287147 & 0.105384554143574 \tabularnewline
34 & 0.98367190694881 & 0.0326561861023782 & 0.0163280930511891 \tabularnewline
35 & 0.997920139129348 & 0.00415972174130465 & 0.00207986087065232 \tabularnewline
36 & 0.998463600857489 & 0.00307279828502234 & 0.00153639914251117 \tabularnewline
37 & 0.99735368128066 & 0.00529263743868113 & 0.00264631871934056 \tabularnewline
38 & 0.99682766003038 & 0.0063446799392398 & 0.0031723399696199 \tabularnewline
39 & 0.996544028577424 & 0.00691194284515112 & 0.00345597142257556 \tabularnewline
40 & 0.99467482570977 & 0.0106503485804616 & 0.0053251742902308 \tabularnewline
41 & 0.996165745558624 & 0.00766850888275199 & 0.00383425444137599 \tabularnewline
42 & 0.994412860357124 & 0.0111742792857522 & 0.0055871396428761 \tabularnewline
43 & 0.987414502452798 & 0.0251709950944048 & 0.0125854975472024 \tabularnewline
44 & 0.971157847490238 & 0.057684305019524 & 0.028842152509762 \tabularnewline
45 & 0.934123433561852 & 0.131753132876296 & 0.0658765664381478 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57592&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.496360041911489[/C][C]0.992720083822977[/C][C]0.503639958088511[/C][/ROW]
[ROW][C]17[/C][C]0.438345957071831[/C][C]0.876691914143662[/C][C]0.561654042928169[/C][/ROW]
[ROW][C]18[/C][C]0.372862096241454[/C][C]0.745724192482907[/C][C]0.627137903758546[/C][/ROW]
[ROW][C]19[/C][C]0.326787701931623[/C][C]0.653575403863245[/C][C]0.673212298068377[/C][/ROW]
[ROW][C]20[/C][C]0.257947274556336[/C][C]0.515894549112673[/C][C]0.742052725443664[/C][/ROW]
[ROW][C]21[/C][C]0.216983732445957[/C][C]0.433967464891914[/C][C]0.783016267554043[/C][/ROW]
[ROW][C]22[/C][C]0.151140184286404[/C][C]0.302280368572808[/C][C]0.848859815713596[/C][/ROW]
[ROW][C]23[/C][C]0.101406234794569[/C][C]0.202812469589138[/C][C]0.898593765205431[/C][/ROW]
[ROW][C]24[/C][C]0.0664126530748274[/C][C]0.132825306149655[/C][C]0.933587346925173[/C][/ROW]
[ROW][C]25[/C][C]0.0484350605965526[/C][C]0.0968701211931052[/C][C]0.951564939403447[/C][/ROW]
[ROW][C]26[/C][C]0.0377880887476351[/C][C]0.0755761774952701[/C][C]0.962211911252365[/C][/ROW]
[ROW][C]27[/C][C]0.0299065820858898[/C][C]0.0598131641717796[/C][C]0.97009341791411[/C][/ROW]
[ROW][C]28[/C][C]0.0267808897780102[/C][C]0.0535617795560205[/C][C]0.97321911022199[/C][/ROW]
[ROW][C]29[/C][C]0.0436792661944382[/C][C]0.0873585323888764[/C][C]0.956320733805562[/C][/ROW]
[ROW][C]30[/C][C]0.080296168937857[/C][C]0.160592337875714[/C][C]0.919703831062143[/C][/ROW]
[ROW][C]31[/C][C]0.139466396831954[/C][C]0.278932793663908[/C][C]0.860533603168046[/C][/ROW]
[ROW][C]32[/C][C]0.264766013255535[/C][C]0.52953202651107[/C][C]0.735233986744465[/C][/ROW]
[ROW][C]33[/C][C]0.894615445856426[/C][C]0.210769108287147[/C][C]0.105384554143574[/C][/ROW]
[ROW][C]34[/C][C]0.98367190694881[/C][C]0.0326561861023782[/C][C]0.0163280930511891[/C][/ROW]
[ROW][C]35[/C][C]0.997920139129348[/C][C]0.00415972174130465[/C][C]0.00207986087065232[/C][/ROW]
[ROW][C]36[/C][C]0.998463600857489[/C][C]0.00307279828502234[/C][C]0.00153639914251117[/C][/ROW]
[ROW][C]37[/C][C]0.99735368128066[/C][C]0.00529263743868113[/C][C]0.00264631871934056[/C][/ROW]
[ROW][C]38[/C][C]0.99682766003038[/C][C]0.0063446799392398[/C][C]0.0031723399696199[/C][/ROW]
[ROW][C]39[/C][C]0.996544028577424[/C][C]0.00691194284515112[/C][C]0.00345597142257556[/C][/ROW]
[ROW][C]40[/C][C]0.99467482570977[/C][C]0.0106503485804616[/C][C]0.0053251742902308[/C][/ROW]
[ROW][C]41[/C][C]0.996165745558624[/C][C]0.00766850888275199[/C][C]0.00383425444137599[/C][/ROW]
[ROW][C]42[/C][C]0.994412860357124[/C][C]0.0111742792857522[/C][C]0.0055871396428761[/C][/ROW]
[ROW][C]43[/C][C]0.987414502452798[/C][C]0.0251709950944048[/C][C]0.0125854975472024[/C][/ROW]
[ROW][C]44[/C][C]0.971157847490238[/C][C]0.057684305019524[/C][C]0.028842152509762[/C][/ROW]
[ROW][C]45[/C][C]0.934123433561852[/C][C]0.131753132876296[/C][C]0.0658765664381478[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57592&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.4963600419114890.9927200838229770.503639958088511
170.4383459570718310.8766919141436620.561654042928169
180.3728620962414540.7457241924829070.627137903758546
190.3267877019316230.6535754038632450.673212298068377
200.2579472745563360.5158945491126730.742052725443664
210.2169837324459570.4339674648919140.783016267554043
220.1511401842864040.3022803685728080.848859815713596
230.1014062347945690.2028124695891380.898593765205431
240.06641265307482740.1328253061496550.933587346925173
250.04843506059655260.09687012119310520.951564939403447
260.03778808874763510.07557617749527010.962211911252365
270.02990658208588980.05981316417177960.97009341791411
280.02678088977801020.05356177955602050.97321911022199
290.04367926619443820.08735853238887640.956320733805562
300.0802961689378570.1605923378757140.919703831062143
310.1394663968319540.2789327936639080.860533603168046
320.2647660132555350.529532026511070.735233986744465
330.8946154458564260.2107691082871470.105384554143574
340.983671906948810.03265618610237820.0163280930511891
350.9979201391293480.004159721741304650.00207986087065232
360.9984636008574890.003072798285022340.00153639914251117
370.997353681280660.005292637438681130.00264631871934056
380.996827660030380.00634467993923980.0031723399696199
390.9965440285774240.006911942845151120.00345597142257556
400.994674825709770.01065034858046160.0053251742902308
410.9961657455586240.007668508882751990.00383425444137599
420.9944128603571240.01117427928575220.0055871396428761
430.9874145024527980.02517099509440480.0125854975472024
440.9711578474902380.0576843050195240.028842152509762
450.9341234335618520.1317531328762960.0658765664381478







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.2NOK
5% type I error level100.333333333333333NOK
10% type I error level160.533333333333333NOK

\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 & 6 & 0.2 & NOK \tabularnewline
5% type I error level & 10 & 0.333333333333333 & NOK \tabularnewline
10% type I error level & 16 & 0.533333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57592&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]6[/C][C]0.2[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]10[/C][C]0.333333333333333[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]16[/C][C]0.533333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57592&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57592&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 level60.2NOK
5% type I error level100.333333333333333NOK
10% type I error level160.533333333333333NOK



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