Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 25 Dec 2009 12:23:01 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/25/t1261769057t02mhochm2u0nra.htm/, Retrieved Sat, 04 May 2024 17:48:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70726, Retrieved Sat, 04 May 2024 17:48:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact184
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [WS 6 Q3 G6 eigen ...] [2007-11-15 11:12:24] [22f18fc6a98517db16300404be421f9a]
- R  D  [Multiple Regression] [Multiple Regressi...] [2008-12-11 14:26:18] [7506b5e9e41ec66c6657f4234f97306e]
-         [Multiple Regression] [Multiple Regressi...] [2008-12-11 15:14:12] [7506b5e9e41ec66c6657f4234f97306e]
-           [Multiple Regression] [Multiple Regressi...] [2008-12-11 17:23:50] [7506b5e9e41ec66c6657f4234f97306e]
-  M D        [Multiple Regression] [box cox wlh] [2009-12-25 19:20:04] [bd8e774728cf1f2f4e6868fd314defe3]
-   P             [Multiple Regression] [lineair regressio...] [2009-12-25 19:23:01] [a315839f8c359622c3a1e6ed387dd5cd] [Current]
-   P               [Multiple Regression] [lin regr wlh dumm...] [2009-12-25 19:25:37] [bd8e774728cf1f2f4e6868fd314defe3]
Feedback Forum

Post a new message
Dataseries X:
612613	1
611324	1
594167	1
595454	1
590865	1
589379	1
584428	1
573100	1
567456	1
569028	1
620735	1
628884	1
628232	1
612117	1
595404	1
597141	1
593408	1
590072	1
579799	1
574205	1
572775	1
572942	1
619567	1
625809	1
619916	1
587625	0
565742	0
557274	0
560576	0
548854	0
531673	0
525919	0
511038	0
498662	0
555362	0
564591	0
541657	0
527070	0
509846	0
514258	0
516922	0
507561	0
492622	0
490243	0
469357	0
477580	0
528379	0
533590	0
517945	0
506174	0
501866	0
516141	0
528222	0
532638	0
536322	0
536535	0
523597	0
536214	0
586570	0
596594	0




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70726&T=0

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
wlh[t] = + 563417.716666666 + 66189.7083333334dummies[t] -19058.9416666668M1[t] -21031.6M2[t] -36488.6M3[t] -33840M4[t] -31895M5[t] -36192.7999999999M6[t] -44924.800M7[t] -49893.2M8[t] -61049M9[t] -59008.4M10[t] -7771.00000000001M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
wlh[t] =  +  563417.716666666 +  66189.7083333334dummies[t] -19058.9416666668M1[t] -21031.6M2[t] -36488.6M3[t] -33840M4[t] -31895M5[t] -36192.7999999999M6[t] -44924.800M7[t] -49893.2M8[t] -61049M9[t] -59008.4M10[t] -7771.00000000001M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70726&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]wlh[t] =  +  563417.716666666 +  66189.7083333334dummies[t] -19058.9416666668M1[t] -21031.6M2[t] -36488.6M3[t] -33840M4[t] -31895M5[t] -36192.7999999999M6[t] -44924.800M7[t] -49893.2M8[t] -61049M9[t] -59008.4M10[t] -7771.00000000001M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70726&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70726&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
wlh[t] = + 563417.716666666 + 66189.7083333334dummies[t] -19058.9416666668M1[t] -21031.6M2[t] -36488.6M3[t] -33840M4[t] -31895M5[t] -36192.7999999999M6[t] -44924.800M7[t] -49893.2M8[t] -61049M9[t] -59008.4M10[t] -7771.00000000001M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)563417.7166666669475.2648359.461900
dummies66189.70833333345434.43708712.179700
M1-19058.941666666813087.857632-1.45620.1519770.075989
M2-21031.613042.649008-1.61250.1135430.056772
M3-36488.613042.649008-2.79760.0074390.003719
M4-3384013042.649008-2.59460.0125930.006296
M5-3189513042.649008-2.44540.0182680.009134
M6-36192.799999999913042.649008-2.7750.0078980.003949
M7-44924.80013042.649008-3.44450.0012140.000607
M8-49893.213042.649008-3.82540.0003840.000192
M9-6104913042.649008-4.68072.5e-051.2e-05
M10-59008.413042.649008-4.52434.1e-052.1e-05
M11-7771.0000000000113042.649008-0.59580.5541580.277079

\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) & 563417.716666666 & 9475.26483 & 59.4619 & 0 & 0 \tabularnewline
dummies & 66189.7083333334 & 5434.437087 & 12.1797 & 0 & 0 \tabularnewline
M1 & -19058.9416666668 & 13087.857632 & -1.4562 & 0.151977 & 0.075989 \tabularnewline
M2 & -21031.6 & 13042.649008 & -1.6125 & 0.113543 & 0.056772 \tabularnewline
M3 & -36488.6 & 13042.649008 & -2.7976 & 0.007439 & 0.003719 \tabularnewline
M4 & -33840 & 13042.649008 & -2.5946 & 0.012593 & 0.006296 \tabularnewline
M5 & -31895 & 13042.649008 & -2.4454 & 0.018268 & 0.009134 \tabularnewline
M6 & -36192.7999999999 & 13042.649008 & -2.775 & 0.007898 & 0.003949 \tabularnewline
M7 & -44924.800 & 13042.649008 & -3.4445 & 0.001214 & 0.000607 \tabularnewline
M8 & -49893.2 & 13042.649008 & -3.8254 & 0.000384 & 0.000192 \tabularnewline
M9 & -61049 & 13042.649008 & -4.6807 & 2.5e-05 & 1.2e-05 \tabularnewline
M10 & -59008.4 & 13042.649008 & -4.5243 & 4.1e-05 & 2.1e-05 \tabularnewline
M11 & -7771.00000000001 & 13042.649008 & -0.5958 & 0.554158 & 0.277079 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70726&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]563417.716666666[/C][C]9475.26483[/C][C]59.4619[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummies[/C][C]66189.7083333334[/C][C]5434.437087[/C][C]12.1797[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-19058.9416666668[/C][C]13087.857632[/C][C]-1.4562[/C][C]0.151977[/C][C]0.075989[/C][/ROW]
[ROW][C]M2[/C][C]-21031.6[/C][C]13042.649008[/C][C]-1.6125[/C][C]0.113543[/C][C]0.056772[/C][/ROW]
[ROW][C]M3[/C][C]-36488.6[/C][C]13042.649008[/C][C]-2.7976[/C][C]0.007439[/C][C]0.003719[/C][/ROW]
[ROW][C]M4[/C][C]-33840[/C][C]13042.649008[/C][C]-2.5946[/C][C]0.012593[/C][C]0.006296[/C][/ROW]
[ROW][C]M5[/C][C]-31895[/C][C]13042.649008[/C][C]-2.4454[/C][C]0.018268[/C][C]0.009134[/C][/ROW]
[ROW][C]M6[/C][C]-36192.7999999999[/C][C]13042.649008[/C][C]-2.775[/C][C]0.007898[/C][C]0.003949[/C][/ROW]
[ROW][C]M7[/C][C]-44924.800[/C][C]13042.649008[/C][C]-3.4445[/C][C]0.001214[/C][C]0.000607[/C][/ROW]
[ROW][C]M8[/C][C]-49893.2[/C][C]13042.649008[/C][C]-3.8254[/C][C]0.000384[/C][C]0.000192[/C][/ROW]
[ROW][C]M9[/C][C]-61049[/C][C]13042.649008[/C][C]-4.6807[/C][C]2.5e-05[/C][C]1.2e-05[/C][/ROW]
[ROW][C]M10[/C][C]-59008.4[/C][C]13042.649008[/C][C]-4.5243[/C][C]4.1e-05[/C][C]2.1e-05[/C][/ROW]
[ROW][C]M11[/C][C]-7771.00000000001[/C][C]13042.649008[/C][C]-0.5958[/C][C]0.554158[/C][C]0.277079[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70726&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70726&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)563417.7166666669475.2648359.461900
dummies66189.70833333345434.43708712.179700
M1-19058.941666666813087.857632-1.45620.1519770.075989
M2-21031.613042.649008-1.61250.1135430.056772
M3-36488.613042.649008-2.79760.0074390.003719
M4-3384013042.649008-2.59460.0125930.006296
M5-3189513042.649008-2.44540.0182680.009134
M6-36192.799999999913042.649008-2.7750.0078980.003949
M7-44924.80013042.649008-3.44450.0012140.000607
M8-49893.213042.649008-3.82540.0003840.000192
M9-6104913042.649008-4.68072.5e-051.2e-05
M10-59008.413042.649008-4.52434.1e-052.1e-05
M11-7771.0000000000113042.649008-0.59580.5541580.277079







Multiple Linear Regression - Regression Statistics
Multiple R0.900460169939781
R-squared0.81082851764798
Adjusted R-squared0.762529415770868
F-TEST (value)16.7876520708602
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.03233002543857e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20622.2387931578
Sum Squared Residuals19988006443.575

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.900460169939781 \tabularnewline
R-squared & 0.81082851764798 \tabularnewline
Adjusted R-squared & 0.762529415770868 \tabularnewline
F-TEST (value) & 16.7876520708602 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 4.03233002543857e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 20622.2387931578 \tabularnewline
Sum Squared Residuals & 19988006443.575 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70726&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.900460169939781[/C][/ROW]
[ROW][C]R-squared[/C][C]0.81082851764798[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.762529415770868[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]16.7876520708602[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]4.03233002543857e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]20622.2387931578[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]19988006443.575[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70726&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70726&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.900460169939781
R-squared0.81082851764798
Adjusted R-squared0.762529415770868
F-TEST (value)16.7876520708602
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.03233002543857e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20622.2387931578
Sum Squared Residuals19988006443.575







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1612613610548.4833333342064.51666666624
2611324608575.8252748.17500000006
3594167593118.8251048.17500000001
4595454595767.425-313.424999999998
5590865597712.425-6847.42499999995
6589379593414.625-4035.62499999997
7584428584682.625-254.624999999969
8573100579714.225-6614.22500000013
9567456568558.425-1102.42499999992
10569028570599.025-1571.02499999999
11620735621836.425-1101.42499999998
12628884629607.425-723.424999999985
13628232610548.48333333317683.5166666668
14612117608575.8253541.17499999999
15595404593118.8252285.17500000000
16597141595767.4251373.57500000001
17593408597712.425-4304.42499999999
18590072593414.625-3342.62499999999
19579799584682.625-4883.62499999999
20574205579714.225-5509.22499999997
21572775568558.4254216.57499999999
22572942570599.0252342.97500000000
23619567621836.425-2269.42499999999
24625809629607.425-3798.425
25619916610548.4833333339367.51666666678
26587625542386.11666666745238.8833333333
27565742526929.11666666738812.8833333333
28557274529577.71666666727696.2833333333
29560576531522.71666666729053.2833333333
30548854527224.91666666721629.0833333333
31531673518492.91666666713180.0833333333
32525919513524.51666666712394.4833333334
33511038502368.7166666678669.28333333331
34498662504409.316666667-5747.31666666666
35555362555646.716666667-284.716666666661
36564591563417.7166666671173.28333333332
37541657544358.775-2701.77499999989
38527070542386.116666667-15316.1166666667
39509846526929.116666667-17083.1166666667
40514258529577.716666667-15319.7166666667
41516922531522.716666667-14600.7166666667
42507561527224.916666667-19663.9166666667
43492622518492.916666667-25870.9166666667
44490243513524.516666667-23281.5166666666
45469357502368.716666667-33011.7166666667
46477580504409.316666667-26829.3166666667
47528379555646.716666667-27267.7166666667
48533590563417.716666667-29827.7166666667
49517945544358.775-26413.7749999999
50506174542386.116666667-36212.1166666667
51501866526929.116666667-25063.1166666667
52516141529577.716666667-13436.7166666667
53528222531522.716666667-3300.71666666667
54532638527224.9166666675413.08333333332
55536322518492.91666666717829.0833333333
56536535513524.51666666723010.4833333334
57523597502368.71666666721228.2833333333
58536214504409.31666666731804.6833333333
59586570555646.71666666730923.2833333333
60596594563417.71666666733176.2833333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 612613 & 610548.483333334 & 2064.51666666624 \tabularnewline
2 & 611324 & 608575.825 & 2748.17500000006 \tabularnewline
3 & 594167 & 593118.825 & 1048.17500000001 \tabularnewline
4 & 595454 & 595767.425 & -313.424999999998 \tabularnewline
5 & 590865 & 597712.425 & -6847.42499999995 \tabularnewline
6 & 589379 & 593414.625 & -4035.62499999997 \tabularnewline
7 & 584428 & 584682.625 & -254.624999999969 \tabularnewline
8 & 573100 & 579714.225 & -6614.22500000013 \tabularnewline
9 & 567456 & 568558.425 & -1102.42499999992 \tabularnewline
10 & 569028 & 570599.025 & -1571.02499999999 \tabularnewline
11 & 620735 & 621836.425 & -1101.42499999998 \tabularnewline
12 & 628884 & 629607.425 & -723.424999999985 \tabularnewline
13 & 628232 & 610548.483333333 & 17683.5166666668 \tabularnewline
14 & 612117 & 608575.825 & 3541.17499999999 \tabularnewline
15 & 595404 & 593118.825 & 2285.17500000000 \tabularnewline
16 & 597141 & 595767.425 & 1373.57500000001 \tabularnewline
17 & 593408 & 597712.425 & -4304.42499999999 \tabularnewline
18 & 590072 & 593414.625 & -3342.62499999999 \tabularnewline
19 & 579799 & 584682.625 & -4883.62499999999 \tabularnewline
20 & 574205 & 579714.225 & -5509.22499999997 \tabularnewline
21 & 572775 & 568558.425 & 4216.57499999999 \tabularnewline
22 & 572942 & 570599.025 & 2342.97500000000 \tabularnewline
23 & 619567 & 621836.425 & -2269.42499999999 \tabularnewline
24 & 625809 & 629607.425 & -3798.425 \tabularnewline
25 & 619916 & 610548.483333333 & 9367.51666666678 \tabularnewline
26 & 587625 & 542386.116666667 & 45238.8833333333 \tabularnewline
27 & 565742 & 526929.116666667 & 38812.8833333333 \tabularnewline
28 & 557274 & 529577.716666667 & 27696.2833333333 \tabularnewline
29 & 560576 & 531522.716666667 & 29053.2833333333 \tabularnewline
30 & 548854 & 527224.916666667 & 21629.0833333333 \tabularnewline
31 & 531673 & 518492.916666667 & 13180.0833333333 \tabularnewline
32 & 525919 & 513524.516666667 & 12394.4833333334 \tabularnewline
33 & 511038 & 502368.716666667 & 8669.28333333331 \tabularnewline
34 & 498662 & 504409.316666667 & -5747.31666666666 \tabularnewline
35 & 555362 & 555646.716666667 & -284.716666666661 \tabularnewline
36 & 564591 & 563417.716666667 & 1173.28333333332 \tabularnewline
37 & 541657 & 544358.775 & -2701.77499999989 \tabularnewline
38 & 527070 & 542386.116666667 & -15316.1166666667 \tabularnewline
39 & 509846 & 526929.116666667 & -17083.1166666667 \tabularnewline
40 & 514258 & 529577.716666667 & -15319.7166666667 \tabularnewline
41 & 516922 & 531522.716666667 & -14600.7166666667 \tabularnewline
42 & 507561 & 527224.916666667 & -19663.9166666667 \tabularnewline
43 & 492622 & 518492.916666667 & -25870.9166666667 \tabularnewline
44 & 490243 & 513524.516666667 & -23281.5166666666 \tabularnewline
45 & 469357 & 502368.716666667 & -33011.7166666667 \tabularnewline
46 & 477580 & 504409.316666667 & -26829.3166666667 \tabularnewline
47 & 528379 & 555646.716666667 & -27267.7166666667 \tabularnewline
48 & 533590 & 563417.716666667 & -29827.7166666667 \tabularnewline
49 & 517945 & 544358.775 & -26413.7749999999 \tabularnewline
50 & 506174 & 542386.116666667 & -36212.1166666667 \tabularnewline
51 & 501866 & 526929.116666667 & -25063.1166666667 \tabularnewline
52 & 516141 & 529577.716666667 & -13436.7166666667 \tabularnewline
53 & 528222 & 531522.716666667 & -3300.71666666667 \tabularnewline
54 & 532638 & 527224.916666667 & 5413.08333333332 \tabularnewline
55 & 536322 & 518492.916666667 & 17829.0833333333 \tabularnewline
56 & 536535 & 513524.516666667 & 23010.4833333334 \tabularnewline
57 & 523597 & 502368.716666667 & 21228.2833333333 \tabularnewline
58 & 536214 & 504409.316666667 & 31804.6833333333 \tabularnewline
59 & 586570 & 555646.716666667 & 30923.2833333333 \tabularnewline
60 & 596594 & 563417.716666667 & 33176.2833333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70726&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]612613[/C][C]610548.483333334[/C][C]2064.51666666624[/C][/ROW]
[ROW][C]2[/C][C]611324[/C][C]608575.825[/C][C]2748.17500000006[/C][/ROW]
[ROW][C]3[/C][C]594167[/C][C]593118.825[/C][C]1048.17500000001[/C][/ROW]
[ROW][C]4[/C][C]595454[/C][C]595767.425[/C][C]-313.424999999998[/C][/ROW]
[ROW][C]5[/C][C]590865[/C][C]597712.425[/C][C]-6847.42499999995[/C][/ROW]
[ROW][C]6[/C][C]589379[/C][C]593414.625[/C][C]-4035.62499999997[/C][/ROW]
[ROW][C]7[/C][C]584428[/C][C]584682.625[/C][C]-254.624999999969[/C][/ROW]
[ROW][C]8[/C][C]573100[/C][C]579714.225[/C][C]-6614.22500000013[/C][/ROW]
[ROW][C]9[/C][C]567456[/C][C]568558.425[/C][C]-1102.42499999992[/C][/ROW]
[ROW][C]10[/C][C]569028[/C][C]570599.025[/C][C]-1571.02499999999[/C][/ROW]
[ROW][C]11[/C][C]620735[/C][C]621836.425[/C][C]-1101.42499999998[/C][/ROW]
[ROW][C]12[/C][C]628884[/C][C]629607.425[/C][C]-723.424999999985[/C][/ROW]
[ROW][C]13[/C][C]628232[/C][C]610548.483333333[/C][C]17683.5166666668[/C][/ROW]
[ROW][C]14[/C][C]612117[/C][C]608575.825[/C][C]3541.17499999999[/C][/ROW]
[ROW][C]15[/C][C]595404[/C][C]593118.825[/C][C]2285.17500000000[/C][/ROW]
[ROW][C]16[/C][C]597141[/C][C]595767.425[/C][C]1373.57500000001[/C][/ROW]
[ROW][C]17[/C][C]593408[/C][C]597712.425[/C][C]-4304.42499999999[/C][/ROW]
[ROW][C]18[/C][C]590072[/C][C]593414.625[/C][C]-3342.62499999999[/C][/ROW]
[ROW][C]19[/C][C]579799[/C][C]584682.625[/C][C]-4883.62499999999[/C][/ROW]
[ROW][C]20[/C][C]574205[/C][C]579714.225[/C][C]-5509.22499999997[/C][/ROW]
[ROW][C]21[/C][C]572775[/C][C]568558.425[/C][C]4216.57499999999[/C][/ROW]
[ROW][C]22[/C][C]572942[/C][C]570599.025[/C][C]2342.97500000000[/C][/ROW]
[ROW][C]23[/C][C]619567[/C][C]621836.425[/C][C]-2269.42499999999[/C][/ROW]
[ROW][C]24[/C][C]625809[/C][C]629607.425[/C][C]-3798.425[/C][/ROW]
[ROW][C]25[/C][C]619916[/C][C]610548.483333333[/C][C]9367.51666666678[/C][/ROW]
[ROW][C]26[/C][C]587625[/C][C]542386.116666667[/C][C]45238.8833333333[/C][/ROW]
[ROW][C]27[/C][C]565742[/C][C]526929.116666667[/C][C]38812.8833333333[/C][/ROW]
[ROW][C]28[/C][C]557274[/C][C]529577.716666667[/C][C]27696.2833333333[/C][/ROW]
[ROW][C]29[/C][C]560576[/C][C]531522.716666667[/C][C]29053.2833333333[/C][/ROW]
[ROW][C]30[/C][C]548854[/C][C]527224.916666667[/C][C]21629.0833333333[/C][/ROW]
[ROW][C]31[/C][C]531673[/C][C]518492.916666667[/C][C]13180.0833333333[/C][/ROW]
[ROW][C]32[/C][C]525919[/C][C]513524.516666667[/C][C]12394.4833333334[/C][/ROW]
[ROW][C]33[/C][C]511038[/C][C]502368.716666667[/C][C]8669.28333333331[/C][/ROW]
[ROW][C]34[/C][C]498662[/C][C]504409.316666667[/C][C]-5747.31666666666[/C][/ROW]
[ROW][C]35[/C][C]555362[/C][C]555646.716666667[/C][C]-284.716666666661[/C][/ROW]
[ROW][C]36[/C][C]564591[/C][C]563417.716666667[/C][C]1173.28333333332[/C][/ROW]
[ROW][C]37[/C][C]541657[/C][C]544358.775[/C][C]-2701.77499999989[/C][/ROW]
[ROW][C]38[/C][C]527070[/C][C]542386.116666667[/C][C]-15316.1166666667[/C][/ROW]
[ROW][C]39[/C][C]509846[/C][C]526929.116666667[/C][C]-17083.1166666667[/C][/ROW]
[ROW][C]40[/C][C]514258[/C][C]529577.716666667[/C][C]-15319.7166666667[/C][/ROW]
[ROW][C]41[/C][C]516922[/C][C]531522.716666667[/C][C]-14600.7166666667[/C][/ROW]
[ROW][C]42[/C][C]507561[/C][C]527224.916666667[/C][C]-19663.9166666667[/C][/ROW]
[ROW][C]43[/C][C]492622[/C][C]518492.916666667[/C][C]-25870.9166666667[/C][/ROW]
[ROW][C]44[/C][C]490243[/C][C]513524.516666667[/C][C]-23281.5166666666[/C][/ROW]
[ROW][C]45[/C][C]469357[/C][C]502368.716666667[/C][C]-33011.7166666667[/C][/ROW]
[ROW][C]46[/C][C]477580[/C][C]504409.316666667[/C][C]-26829.3166666667[/C][/ROW]
[ROW][C]47[/C][C]528379[/C][C]555646.716666667[/C][C]-27267.7166666667[/C][/ROW]
[ROW][C]48[/C][C]533590[/C][C]563417.716666667[/C][C]-29827.7166666667[/C][/ROW]
[ROW][C]49[/C][C]517945[/C][C]544358.775[/C][C]-26413.7749999999[/C][/ROW]
[ROW][C]50[/C][C]506174[/C][C]542386.116666667[/C][C]-36212.1166666667[/C][/ROW]
[ROW][C]51[/C][C]501866[/C][C]526929.116666667[/C][C]-25063.1166666667[/C][/ROW]
[ROW][C]52[/C][C]516141[/C][C]529577.716666667[/C][C]-13436.7166666667[/C][/ROW]
[ROW][C]53[/C][C]528222[/C][C]531522.716666667[/C][C]-3300.71666666667[/C][/ROW]
[ROW][C]54[/C][C]532638[/C][C]527224.916666667[/C][C]5413.08333333332[/C][/ROW]
[ROW][C]55[/C][C]536322[/C][C]518492.916666667[/C][C]17829.0833333333[/C][/ROW]
[ROW][C]56[/C][C]536535[/C][C]513524.516666667[/C][C]23010.4833333334[/C][/ROW]
[ROW][C]57[/C][C]523597[/C][C]502368.716666667[/C][C]21228.2833333333[/C][/ROW]
[ROW][C]58[/C][C]536214[/C][C]504409.316666667[/C][C]31804.6833333333[/C][/ROW]
[ROW][C]59[/C][C]586570[/C][C]555646.716666667[/C][C]30923.2833333333[/C][/ROW]
[ROW][C]60[/C][C]596594[/C][C]563417.716666667[/C][C]33176.2833333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70726&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70726&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
1612613610548.4833333342064.51666666624
2611324608575.8252748.17500000006
3594167593118.8251048.17500000001
4595454595767.425-313.424999999998
5590865597712.425-6847.42499999995
6589379593414.625-4035.62499999997
7584428584682.625-254.624999999969
8573100579714.225-6614.22500000013
9567456568558.425-1102.42499999992
10569028570599.025-1571.02499999999
11620735621836.425-1101.42499999998
12628884629607.425-723.424999999985
13628232610548.48333333317683.5166666668
14612117608575.8253541.17499999999
15595404593118.8252285.17500000000
16597141595767.4251373.57500000001
17593408597712.425-4304.42499999999
18590072593414.625-3342.62499999999
19579799584682.625-4883.62499999999
20574205579714.225-5509.22499999997
21572775568558.4254216.57499999999
22572942570599.0252342.97500000000
23619567621836.425-2269.42499999999
24625809629607.425-3798.425
25619916610548.4833333339367.51666666678
26587625542386.11666666745238.8833333333
27565742526929.11666666738812.8833333333
28557274529577.71666666727696.2833333333
29560576531522.71666666729053.2833333333
30548854527224.91666666721629.0833333333
31531673518492.91666666713180.0833333333
32525919513524.51666666712394.4833333334
33511038502368.7166666678669.28333333331
34498662504409.316666667-5747.31666666666
35555362555646.716666667-284.716666666661
36564591563417.7166666671173.28333333332
37541657544358.775-2701.77499999989
38527070542386.116666667-15316.1166666667
39509846526929.116666667-17083.1166666667
40514258529577.716666667-15319.7166666667
41516922531522.716666667-14600.7166666667
42507561527224.916666667-19663.9166666667
43492622518492.916666667-25870.9166666667
44490243513524.516666667-23281.5166666666
45469357502368.716666667-33011.7166666667
46477580504409.316666667-26829.3166666667
47528379555646.716666667-27267.7166666667
48533590563417.716666667-29827.7166666667
49517945544358.775-26413.7749999999
50506174542386.116666667-36212.1166666667
51501866526929.116666667-25063.1166666667
52516141529577.716666667-13436.7166666667
53528222531522.716666667-3300.71666666667
54532638527224.9166666675413.08333333332
55536322518492.91666666717829.0833333333
56536535513524.51666666723010.4833333334
57523597502368.71666666721228.2833333333
58536214504409.31666666731804.6833333333
59586570555646.71666666730923.2833333333
60596594563417.71666666733176.2833333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02273041279065660.04546082558131330.977269587209343
170.004874378088524310.009748756177048620.995125621911476
180.0009029882966637780.001805976593327560.999097011703336
190.0001915273584106540.0003830547168213070.99980847264159
203.1542348726219e-056.3084697452438e-050.999968457651274
216.77596979377441e-061.35519395875488e-050.999993224030206
221.20391617748891e-062.40783235497782e-060.999998796083823
231.71334042010777e-073.42668084021554e-070.999999828665958
242.80357057529287e-085.60714115058575e-080.999999971964294
253.47959885367815e-096.95919770735629e-090.999999996520401
261.41771300556696e-092.83542601113392e-090.999999998582287
277.49514847491946e-101.49902969498389e-090.999999999250485
282.10807284421578e-094.21614568843156e-090.999999997891927
296.04637803077696e-101.20927560615539e-090.999999999395362
306.56667615591793e-101.31333523118359e-090.999999999343332
315.57742982365768e-091.11548596473154e-080.99999999442257
324.5712252363196e-099.1424504726392e-090.999999995428775
333.67048921210336e-087.34097842420673e-080.999999963295108
341.22457756438428e-062.44915512876856e-060.999998775422436
351.49831742040249e-062.99663484080497e-060.99999850168258
369.965403572335e-071.993080714467e-060.999999003459643
375.57019575459058e-061.11403915091812e-050.999994429804245
387.65320063196666e-050.0001530640126393330.99992346799368
390.0002119105460418160.0004238210920836330.999788089453958
400.0002181901876194570.0004363803752389140.99978180981238
410.0001518920679947570.0003037841359895130.999848107932005
420.0001336743715994510.0002673487431989030.9998663256284
430.0002087625829465040.0004175251658930080.999791237417053
440.0002572466182888650.000514493236577730.999742753381711

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0227304127906566 & 0.0454608255813133 & 0.977269587209343 \tabularnewline
17 & 0.00487437808852431 & 0.00974875617704862 & 0.995125621911476 \tabularnewline
18 & 0.000902988296663778 & 0.00180597659332756 & 0.999097011703336 \tabularnewline
19 & 0.000191527358410654 & 0.000383054716821307 & 0.99980847264159 \tabularnewline
20 & 3.1542348726219e-05 & 6.3084697452438e-05 & 0.999968457651274 \tabularnewline
21 & 6.77596979377441e-06 & 1.35519395875488e-05 & 0.999993224030206 \tabularnewline
22 & 1.20391617748891e-06 & 2.40783235497782e-06 & 0.999998796083823 \tabularnewline
23 & 1.71334042010777e-07 & 3.42668084021554e-07 & 0.999999828665958 \tabularnewline
24 & 2.80357057529287e-08 & 5.60714115058575e-08 & 0.999999971964294 \tabularnewline
25 & 3.47959885367815e-09 & 6.95919770735629e-09 & 0.999999996520401 \tabularnewline
26 & 1.41771300556696e-09 & 2.83542601113392e-09 & 0.999999998582287 \tabularnewline
27 & 7.49514847491946e-10 & 1.49902969498389e-09 & 0.999999999250485 \tabularnewline
28 & 2.10807284421578e-09 & 4.21614568843156e-09 & 0.999999997891927 \tabularnewline
29 & 6.04637803077696e-10 & 1.20927560615539e-09 & 0.999999999395362 \tabularnewline
30 & 6.56667615591793e-10 & 1.31333523118359e-09 & 0.999999999343332 \tabularnewline
31 & 5.57742982365768e-09 & 1.11548596473154e-08 & 0.99999999442257 \tabularnewline
32 & 4.5712252363196e-09 & 9.1424504726392e-09 & 0.999999995428775 \tabularnewline
33 & 3.67048921210336e-08 & 7.34097842420673e-08 & 0.999999963295108 \tabularnewline
34 & 1.22457756438428e-06 & 2.44915512876856e-06 & 0.999998775422436 \tabularnewline
35 & 1.49831742040249e-06 & 2.99663484080497e-06 & 0.99999850168258 \tabularnewline
36 & 9.965403572335e-07 & 1.993080714467e-06 & 0.999999003459643 \tabularnewline
37 & 5.57019575459058e-06 & 1.11403915091812e-05 & 0.999994429804245 \tabularnewline
38 & 7.65320063196666e-05 & 0.000153064012639333 & 0.99992346799368 \tabularnewline
39 & 0.000211910546041816 & 0.000423821092083633 & 0.999788089453958 \tabularnewline
40 & 0.000218190187619457 & 0.000436380375238914 & 0.99978180981238 \tabularnewline
41 & 0.000151892067994757 & 0.000303784135989513 & 0.999848107932005 \tabularnewline
42 & 0.000133674371599451 & 0.000267348743198903 & 0.9998663256284 \tabularnewline
43 & 0.000208762582946504 & 0.000417525165893008 & 0.999791237417053 \tabularnewline
44 & 0.000257246618288865 & 0.00051449323657773 & 0.999742753381711 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70726&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.0227304127906566[/C][C]0.0454608255813133[/C][C]0.977269587209343[/C][/ROW]
[ROW][C]17[/C][C]0.00487437808852431[/C][C]0.00974875617704862[/C][C]0.995125621911476[/C][/ROW]
[ROW][C]18[/C][C]0.000902988296663778[/C][C]0.00180597659332756[/C][C]0.999097011703336[/C][/ROW]
[ROW][C]19[/C][C]0.000191527358410654[/C][C]0.000383054716821307[/C][C]0.99980847264159[/C][/ROW]
[ROW][C]20[/C][C]3.1542348726219e-05[/C][C]6.3084697452438e-05[/C][C]0.999968457651274[/C][/ROW]
[ROW][C]21[/C][C]6.77596979377441e-06[/C][C]1.35519395875488e-05[/C][C]0.999993224030206[/C][/ROW]
[ROW][C]22[/C][C]1.20391617748891e-06[/C][C]2.40783235497782e-06[/C][C]0.999998796083823[/C][/ROW]
[ROW][C]23[/C][C]1.71334042010777e-07[/C][C]3.42668084021554e-07[/C][C]0.999999828665958[/C][/ROW]
[ROW][C]24[/C][C]2.80357057529287e-08[/C][C]5.60714115058575e-08[/C][C]0.999999971964294[/C][/ROW]
[ROW][C]25[/C][C]3.47959885367815e-09[/C][C]6.95919770735629e-09[/C][C]0.999999996520401[/C][/ROW]
[ROW][C]26[/C][C]1.41771300556696e-09[/C][C]2.83542601113392e-09[/C][C]0.999999998582287[/C][/ROW]
[ROW][C]27[/C][C]7.49514847491946e-10[/C][C]1.49902969498389e-09[/C][C]0.999999999250485[/C][/ROW]
[ROW][C]28[/C][C]2.10807284421578e-09[/C][C]4.21614568843156e-09[/C][C]0.999999997891927[/C][/ROW]
[ROW][C]29[/C][C]6.04637803077696e-10[/C][C]1.20927560615539e-09[/C][C]0.999999999395362[/C][/ROW]
[ROW][C]30[/C][C]6.56667615591793e-10[/C][C]1.31333523118359e-09[/C][C]0.999999999343332[/C][/ROW]
[ROW][C]31[/C][C]5.57742982365768e-09[/C][C]1.11548596473154e-08[/C][C]0.99999999442257[/C][/ROW]
[ROW][C]32[/C][C]4.5712252363196e-09[/C][C]9.1424504726392e-09[/C][C]0.999999995428775[/C][/ROW]
[ROW][C]33[/C][C]3.67048921210336e-08[/C][C]7.34097842420673e-08[/C][C]0.999999963295108[/C][/ROW]
[ROW][C]34[/C][C]1.22457756438428e-06[/C][C]2.44915512876856e-06[/C][C]0.999998775422436[/C][/ROW]
[ROW][C]35[/C][C]1.49831742040249e-06[/C][C]2.99663484080497e-06[/C][C]0.99999850168258[/C][/ROW]
[ROW][C]36[/C][C]9.965403572335e-07[/C][C]1.993080714467e-06[/C][C]0.999999003459643[/C][/ROW]
[ROW][C]37[/C][C]5.57019575459058e-06[/C][C]1.11403915091812e-05[/C][C]0.999994429804245[/C][/ROW]
[ROW][C]38[/C][C]7.65320063196666e-05[/C][C]0.000153064012639333[/C][C]0.99992346799368[/C][/ROW]
[ROW][C]39[/C][C]0.000211910546041816[/C][C]0.000423821092083633[/C][C]0.999788089453958[/C][/ROW]
[ROW][C]40[/C][C]0.000218190187619457[/C][C]0.000436380375238914[/C][C]0.99978180981238[/C][/ROW]
[ROW][C]41[/C][C]0.000151892067994757[/C][C]0.000303784135989513[/C][C]0.999848107932005[/C][/ROW]
[ROW][C]42[/C][C]0.000133674371599451[/C][C]0.000267348743198903[/C][C]0.9998663256284[/C][/ROW]
[ROW][C]43[/C][C]0.000208762582946504[/C][C]0.000417525165893008[/C][C]0.999791237417053[/C][/ROW]
[ROW][C]44[/C][C]0.000257246618288865[/C][C]0.00051449323657773[/C][C]0.999742753381711[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70726&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70726&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.02273041279065660.04546082558131330.977269587209343
170.004874378088524310.009748756177048620.995125621911476
180.0009029882966637780.001805976593327560.999097011703336
190.0001915273584106540.0003830547168213070.99980847264159
203.1542348726219e-056.3084697452438e-050.999968457651274
216.77596979377441e-061.35519395875488e-050.999993224030206
221.20391617748891e-062.40783235497782e-060.999998796083823
231.71334042010777e-073.42668084021554e-070.999999828665958
242.80357057529287e-085.60714115058575e-080.999999971964294
253.47959885367815e-096.95919770735629e-090.999999996520401
261.41771300556696e-092.83542601113392e-090.999999998582287
277.49514847491946e-101.49902969498389e-090.999999999250485
282.10807284421578e-094.21614568843156e-090.999999997891927
296.04637803077696e-101.20927560615539e-090.999999999395362
306.56667615591793e-101.31333523118359e-090.999999999343332
315.57742982365768e-091.11548596473154e-080.99999999442257
324.5712252363196e-099.1424504726392e-090.999999995428775
333.67048921210336e-087.34097842420673e-080.999999963295108
341.22457756438428e-062.44915512876856e-060.999998775422436
351.49831742040249e-062.99663484080497e-060.99999850168258
369.965403572335e-071.993080714467e-060.999999003459643
375.57019575459058e-061.11403915091812e-050.999994429804245
387.65320063196666e-050.0001530640126393330.99992346799368
390.0002119105460418160.0004238210920836330.999788089453958
400.0002181901876194570.0004363803752389140.99978180981238
410.0001518920679947570.0003037841359895130.999848107932005
420.0001336743715994510.0002673487431989030.9998663256284
430.0002087625829465040.0004175251658930080.999791237417053
440.0002572466182888650.000514493236577730.999742753381711







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level280.96551724137931NOK
5% type I error level291NOK
10% type I error level291NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70726&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 level280.96551724137931NOK
5% type I error level291NOK
10% type I error level291NOK



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