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 computationSat, 19 Dec 2009 06:18:22 -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/19/t1261228815uuv143oi82r7ojy.htm/, Retrieved Thu, 02 May 2024 03:46:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69573, Retrieved Thu, 02 May 2024 03:46:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-20 14:59:01] [898d317f4f946fbfcc4d07699283d43b]
-    D    [Multiple Regression] [] [2009-12-19 13:18:22] [865cd78857e928bd6e7d79509c6cdcc5] [Current]
-    D      [Multiple Regression] [Model 2] [2009-12-20 01:00:02] [a542c511726eba04a1fc2f4bd37a90f8]
Feedback Forum

Post a new message
Dataseries X:
3016	0
2155	0
2172	0
2150	0
2533	0
2058	0
2160	0
2260	0
2498	0
2695	0
2799	0
2946	0
2930	0
2318	0
2540	0
2570	0
2669	0
2450	0
2842	0
3440	0
2678	0
2981	0
2260	0
2844	0
2546	0
2456	0
2295	0
2379	0
2479	0
2057	0
2280	0
2351	0
2276	0
2548	0
2311	1
2201	1
2725	1
2408	1
2139	1
1898	1
2537	1
2068	1
2063	1
2520	1
2434	1
2190	1
2794	1
2070	1
2615	1
2265	1
2139	1
2428	1
2137	1
1823	1
2063	1
1806	1
1758	1
2243	1
1993	1
1932	1
2465	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=69573&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=69573&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69573&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] = + 2590.31836734694 -319.530612244898x[t] + 285.613605442178M1[t] -142.106122448979M2[t] -205.506122448979M3[t] -177.506122448980M4[t] + 8.49387755102065M5[t] -371.306122448979M6[t] -180.906122448979M7[t] + 12.8938775510207M8[t] -133.706122448979M9[t] + 68.8938775510207M10[t] + 32.8000000000003M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  2590.31836734694 -319.530612244898x[t] +  285.613605442178M1[t] -142.106122448979M2[t] -205.506122448979M3[t] -177.506122448980M4[t] +  8.49387755102065M5[t] -371.306122448979M6[t] -180.906122448979M7[t] +  12.8938775510207M8[t] -133.706122448979M9[t] +  68.8938775510207M10[t] +  32.8000000000003M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69573&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  2590.31836734694 -319.530612244898x[t] +  285.613605442178M1[t] -142.106122448979M2[t] -205.506122448979M3[t] -177.506122448980M4[t] +  8.49387755102065M5[t] -371.306122448979M6[t] -180.906122448979M7[t] +  12.8938775510207M8[t] -133.706122448979M9[t] +  68.8938775510207M10[t] +  32.8000000000003M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69573&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69573&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] = + 2590.31836734694 -319.530612244898x[t] + 285.613605442178M1[t] -142.106122448979M2[t] -205.506122448979M3[t] -177.506122448980M4[t] + 8.49387755102065M5[t] -371.306122448979M6[t] -180.906122448979M7[t] + 12.8938775510207M8[t] -133.706122448979M9[t] + 68.8938775510207M10[t] + 32.8000000000003M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2590.31836734694131.59298819.684300
x-319.53061224489872.439556-4.4115.8e-052.9e-05
M1285.613605442178168.3343161.69670.0962290.048115
M2-142.106122448979176.253046-0.80630.4240690.212034
M3-205.506122448979176.253046-1.1660.2493870.124693
M4-177.506122448980176.253046-1.00710.3189320.159466
M58.49387755102065176.2530460.04820.9617640.480882
M6-371.306122448979176.253046-2.10670.0403990.0202
M7-180.906122448979176.253046-1.02640.3098480.154924
M812.8938775510207176.2530460.07320.9419860.470993
M9-133.706122448979176.253046-0.75860.4517990.225899
M1068.8938775510207176.2530460.39090.6976150.348808
M1132.8000000000003175.6565870.18670.8526610.42633

\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) & 2590.31836734694 & 131.592988 & 19.6843 & 0 & 0 \tabularnewline
x & -319.530612244898 & 72.439556 & -4.411 & 5.8e-05 & 2.9e-05 \tabularnewline
M1 & 285.613605442178 & 168.334316 & 1.6967 & 0.096229 & 0.048115 \tabularnewline
M2 & -142.106122448979 & 176.253046 & -0.8063 & 0.424069 & 0.212034 \tabularnewline
M3 & -205.506122448979 & 176.253046 & -1.166 & 0.249387 & 0.124693 \tabularnewline
M4 & -177.506122448980 & 176.253046 & -1.0071 & 0.318932 & 0.159466 \tabularnewline
M5 & 8.49387755102065 & 176.253046 & 0.0482 & 0.961764 & 0.480882 \tabularnewline
M6 & -371.306122448979 & 176.253046 & -2.1067 & 0.040399 & 0.0202 \tabularnewline
M7 & -180.906122448979 & 176.253046 & -1.0264 & 0.309848 & 0.154924 \tabularnewline
M8 & 12.8938775510207 & 176.253046 & 0.0732 & 0.941986 & 0.470993 \tabularnewline
M9 & -133.706122448979 & 176.253046 & -0.7586 & 0.451799 & 0.225899 \tabularnewline
M10 & 68.8938775510207 & 176.253046 & 0.3909 & 0.697615 & 0.348808 \tabularnewline
M11 & 32.8000000000003 & 175.656587 & 0.1867 & 0.852661 & 0.42633 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69573&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]2590.31836734694[/C][C]131.592988[/C][C]19.6843[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-319.530612244898[/C][C]72.439556[/C][C]-4.411[/C][C]5.8e-05[/C][C]2.9e-05[/C][/ROW]
[ROW][C]M1[/C][C]285.613605442178[/C][C]168.334316[/C][C]1.6967[/C][C]0.096229[/C][C]0.048115[/C][/ROW]
[ROW][C]M2[/C][C]-142.106122448979[/C][C]176.253046[/C][C]-0.8063[/C][C]0.424069[/C][C]0.212034[/C][/ROW]
[ROW][C]M3[/C][C]-205.506122448979[/C][C]176.253046[/C][C]-1.166[/C][C]0.249387[/C][C]0.124693[/C][/ROW]
[ROW][C]M4[/C][C]-177.506122448980[/C][C]176.253046[/C][C]-1.0071[/C][C]0.318932[/C][C]0.159466[/C][/ROW]
[ROW][C]M5[/C][C]8.49387755102065[/C][C]176.253046[/C][C]0.0482[/C][C]0.961764[/C][C]0.480882[/C][/ROW]
[ROW][C]M6[/C][C]-371.306122448979[/C][C]176.253046[/C][C]-2.1067[/C][C]0.040399[/C][C]0.0202[/C][/ROW]
[ROW][C]M7[/C][C]-180.906122448979[/C][C]176.253046[/C][C]-1.0264[/C][C]0.309848[/C][C]0.154924[/C][/ROW]
[ROW][C]M8[/C][C]12.8938775510207[/C][C]176.253046[/C][C]0.0732[/C][C]0.941986[/C][C]0.470993[/C][/ROW]
[ROW][C]M9[/C][C]-133.706122448979[/C][C]176.253046[/C][C]-0.7586[/C][C]0.451799[/C][C]0.225899[/C][/ROW]
[ROW][C]M10[/C][C]68.8938775510207[/C][C]176.253046[/C][C]0.3909[/C][C]0.697615[/C][C]0.348808[/C][/ROW]
[ROW][C]M11[/C][C]32.8000000000003[/C][C]175.656587[/C][C]0.1867[/C][C]0.852661[/C][C]0.42633[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69573&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69573&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)2590.31836734694131.59298819.684300
x-319.53061224489872.439556-4.4115.8e-052.9e-05
M1285.613605442178168.3343161.69670.0962290.048115
M2-142.106122448979176.253046-0.80630.4240690.212034
M3-205.506122448979176.253046-1.1660.2493870.124693
M4-177.506122448980176.253046-1.00710.3189320.159466
M58.49387755102065176.2530460.04820.9617640.480882
M6-371.306122448979176.253046-2.10670.0403990.0202
M7-180.906122448979176.253046-1.02640.3098480.154924
M812.8938775510207176.2530460.07320.9419860.470993
M9-133.706122448979176.253046-0.75860.4517990.225899
M1068.8938775510207176.2530460.39090.6976150.348808
M1132.8000000000003175.6565870.18670.8526610.42633







Multiple Linear Regression - Regression Statistics
Multiple R0.669555775651967
R-squared0.448304936708907
Adjusted R-squared0.310381170886134
F-TEST (value)3.25038207907521
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.0017665818910777
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation277.737450757524
Sum Squared Residuals3702628.39455782

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.669555775651967 \tabularnewline
R-squared & 0.448304936708907 \tabularnewline
Adjusted R-squared & 0.310381170886134 \tabularnewline
F-TEST (value) & 3.25038207907521 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.0017665818910777 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 277.737450757524 \tabularnewline
Sum Squared Residuals & 3702628.39455782 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69573&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.669555775651967[/C][/ROW]
[ROW][C]R-squared[/C][C]0.448304936708907[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.310381170886134[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.25038207907521[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.0017665818910777[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]277.737450757524[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3702628.39455782[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69573&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69573&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.669555775651967
R-squared0.448304936708907
Adjusted R-squared0.310381170886134
F-TEST (value)3.25038207907521
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.0017665818910777
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation277.737450757524
Sum Squared Residuals3702628.39455782







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
130162875.93197278911140.068027210887
221552448.21224489796-293.212244897959
321722384.81224489796-212.812244897959
421502412.81224489796-262.812244897959
525332598.81224489796-65.8122448979597
620582219.01224489796-161.012244897959
721602409.41224489796-249.412244897959
822602603.21224489796-343.212244897959
924982456.6122448979641.3877551020408
1026952659.2122448979635.7877551020407
1127992623.11836734694175.881632653061
1229462590.31836734694355.681632653062
1329302875.9319727891254.0680272108834
1423182448.21224489796-130.212244897959
1525402384.81224489796155.187755102040
1625702412.81224489796157.187755102041
1726692598.8122448979670.1877551020409
1824502219.01224489796230.987755102041
1928422409.41224489796432.587755102041
2034402603.21224489796836.787755102041
2126782456.61224489796221.387755102041
2229812659.21224489796321.787755102041
2322602623.11836734694-363.118367346939
2428442590.31836734694253.681632653061
2525462875.93197278912-329.931972789116
2624562448.212244897967.7877551020408
2722952384.81224489796-89.8122448979594
2823792412.81224489796-33.8122448979592
2924792598.81224489796-119.812244897959
3020572219.01224489796-162.012244897959
3122802409.41224489796-129.412244897959
3223512603.21224489796-252.212244897959
3322762456.61224489796-180.612244897959
3425482659.21224489796-111.212244897959
3523112303.587755102047.41224489795922
3622012270.78775510204-69.7877551020404
3727252556.40136054422168.598639455782
3824082128.68163265306279.318367346939
3921392065.2816326530673.7183673469386
4018982093.28163265306-195.281632653061
4125372279.28163265306257.718367346939
4220681899.48163265306168.518367346939
4320632089.88163265306-26.8816326530611
4425202283.68163265306236.318367346939
4524342137.08163265306296.918367346939
4621902339.68163265306-149.681632653061
4727942303.58775510204490.412244897959
4820702270.78775510204-200.787755102040
4926152556.4013605442258.5986394557816
5022652128.68163265306136.318367346939
5121392065.2816326530673.7183673469386
5224282093.28163265306334.718367346939
5321372279.28163265306-142.281632653061
5418231899.48163265306-76.4816326530613
5520632089.88163265306-26.8816326530611
5618062283.68163265306-477.681632653061
5717582137.08163265306-379.081632653061
5822432339.68163265306-96.6816326530611
5919932303.58775510204-310.587755102041
6019322270.78775510204-338.787755102040
6124652556.40136054422-91.4013605442183

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3016 & 2875.93197278911 & 140.068027210887 \tabularnewline
2 & 2155 & 2448.21224489796 & -293.212244897959 \tabularnewline
3 & 2172 & 2384.81224489796 & -212.812244897959 \tabularnewline
4 & 2150 & 2412.81224489796 & -262.812244897959 \tabularnewline
5 & 2533 & 2598.81224489796 & -65.8122448979597 \tabularnewline
6 & 2058 & 2219.01224489796 & -161.012244897959 \tabularnewline
7 & 2160 & 2409.41224489796 & -249.412244897959 \tabularnewline
8 & 2260 & 2603.21224489796 & -343.212244897959 \tabularnewline
9 & 2498 & 2456.61224489796 & 41.3877551020408 \tabularnewline
10 & 2695 & 2659.21224489796 & 35.7877551020407 \tabularnewline
11 & 2799 & 2623.11836734694 & 175.881632653061 \tabularnewline
12 & 2946 & 2590.31836734694 & 355.681632653062 \tabularnewline
13 & 2930 & 2875.93197278912 & 54.0680272108834 \tabularnewline
14 & 2318 & 2448.21224489796 & -130.212244897959 \tabularnewline
15 & 2540 & 2384.81224489796 & 155.187755102040 \tabularnewline
16 & 2570 & 2412.81224489796 & 157.187755102041 \tabularnewline
17 & 2669 & 2598.81224489796 & 70.1877551020409 \tabularnewline
18 & 2450 & 2219.01224489796 & 230.987755102041 \tabularnewline
19 & 2842 & 2409.41224489796 & 432.587755102041 \tabularnewline
20 & 3440 & 2603.21224489796 & 836.787755102041 \tabularnewline
21 & 2678 & 2456.61224489796 & 221.387755102041 \tabularnewline
22 & 2981 & 2659.21224489796 & 321.787755102041 \tabularnewline
23 & 2260 & 2623.11836734694 & -363.118367346939 \tabularnewline
24 & 2844 & 2590.31836734694 & 253.681632653061 \tabularnewline
25 & 2546 & 2875.93197278912 & -329.931972789116 \tabularnewline
26 & 2456 & 2448.21224489796 & 7.7877551020408 \tabularnewline
27 & 2295 & 2384.81224489796 & -89.8122448979594 \tabularnewline
28 & 2379 & 2412.81224489796 & -33.8122448979592 \tabularnewline
29 & 2479 & 2598.81224489796 & -119.812244897959 \tabularnewline
30 & 2057 & 2219.01224489796 & -162.012244897959 \tabularnewline
31 & 2280 & 2409.41224489796 & -129.412244897959 \tabularnewline
32 & 2351 & 2603.21224489796 & -252.212244897959 \tabularnewline
33 & 2276 & 2456.61224489796 & -180.612244897959 \tabularnewline
34 & 2548 & 2659.21224489796 & -111.212244897959 \tabularnewline
35 & 2311 & 2303.58775510204 & 7.41224489795922 \tabularnewline
36 & 2201 & 2270.78775510204 & -69.7877551020404 \tabularnewline
37 & 2725 & 2556.40136054422 & 168.598639455782 \tabularnewline
38 & 2408 & 2128.68163265306 & 279.318367346939 \tabularnewline
39 & 2139 & 2065.28163265306 & 73.7183673469386 \tabularnewline
40 & 1898 & 2093.28163265306 & -195.281632653061 \tabularnewline
41 & 2537 & 2279.28163265306 & 257.718367346939 \tabularnewline
42 & 2068 & 1899.48163265306 & 168.518367346939 \tabularnewline
43 & 2063 & 2089.88163265306 & -26.8816326530611 \tabularnewline
44 & 2520 & 2283.68163265306 & 236.318367346939 \tabularnewline
45 & 2434 & 2137.08163265306 & 296.918367346939 \tabularnewline
46 & 2190 & 2339.68163265306 & -149.681632653061 \tabularnewline
47 & 2794 & 2303.58775510204 & 490.412244897959 \tabularnewline
48 & 2070 & 2270.78775510204 & -200.787755102040 \tabularnewline
49 & 2615 & 2556.40136054422 & 58.5986394557816 \tabularnewline
50 & 2265 & 2128.68163265306 & 136.318367346939 \tabularnewline
51 & 2139 & 2065.28163265306 & 73.7183673469386 \tabularnewline
52 & 2428 & 2093.28163265306 & 334.718367346939 \tabularnewline
53 & 2137 & 2279.28163265306 & -142.281632653061 \tabularnewline
54 & 1823 & 1899.48163265306 & -76.4816326530613 \tabularnewline
55 & 2063 & 2089.88163265306 & -26.8816326530611 \tabularnewline
56 & 1806 & 2283.68163265306 & -477.681632653061 \tabularnewline
57 & 1758 & 2137.08163265306 & -379.081632653061 \tabularnewline
58 & 2243 & 2339.68163265306 & -96.6816326530611 \tabularnewline
59 & 1993 & 2303.58775510204 & -310.587755102041 \tabularnewline
60 & 1932 & 2270.78775510204 & -338.787755102040 \tabularnewline
61 & 2465 & 2556.40136054422 & -91.4013605442183 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69573&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]3016[/C][C]2875.93197278911[/C][C]140.068027210887[/C][/ROW]
[ROW][C]2[/C][C]2155[/C][C]2448.21224489796[/C][C]-293.212244897959[/C][/ROW]
[ROW][C]3[/C][C]2172[/C][C]2384.81224489796[/C][C]-212.812244897959[/C][/ROW]
[ROW][C]4[/C][C]2150[/C][C]2412.81224489796[/C][C]-262.812244897959[/C][/ROW]
[ROW][C]5[/C][C]2533[/C][C]2598.81224489796[/C][C]-65.8122448979597[/C][/ROW]
[ROW][C]6[/C][C]2058[/C][C]2219.01224489796[/C][C]-161.012244897959[/C][/ROW]
[ROW][C]7[/C][C]2160[/C][C]2409.41224489796[/C][C]-249.412244897959[/C][/ROW]
[ROW][C]8[/C][C]2260[/C][C]2603.21224489796[/C][C]-343.212244897959[/C][/ROW]
[ROW][C]9[/C][C]2498[/C][C]2456.61224489796[/C][C]41.3877551020408[/C][/ROW]
[ROW][C]10[/C][C]2695[/C][C]2659.21224489796[/C][C]35.7877551020407[/C][/ROW]
[ROW][C]11[/C][C]2799[/C][C]2623.11836734694[/C][C]175.881632653061[/C][/ROW]
[ROW][C]12[/C][C]2946[/C][C]2590.31836734694[/C][C]355.681632653062[/C][/ROW]
[ROW][C]13[/C][C]2930[/C][C]2875.93197278912[/C][C]54.0680272108834[/C][/ROW]
[ROW][C]14[/C][C]2318[/C][C]2448.21224489796[/C][C]-130.212244897959[/C][/ROW]
[ROW][C]15[/C][C]2540[/C][C]2384.81224489796[/C][C]155.187755102040[/C][/ROW]
[ROW][C]16[/C][C]2570[/C][C]2412.81224489796[/C][C]157.187755102041[/C][/ROW]
[ROW][C]17[/C][C]2669[/C][C]2598.81224489796[/C][C]70.1877551020409[/C][/ROW]
[ROW][C]18[/C][C]2450[/C][C]2219.01224489796[/C][C]230.987755102041[/C][/ROW]
[ROW][C]19[/C][C]2842[/C][C]2409.41224489796[/C][C]432.587755102041[/C][/ROW]
[ROW][C]20[/C][C]3440[/C][C]2603.21224489796[/C][C]836.787755102041[/C][/ROW]
[ROW][C]21[/C][C]2678[/C][C]2456.61224489796[/C][C]221.387755102041[/C][/ROW]
[ROW][C]22[/C][C]2981[/C][C]2659.21224489796[/C][C]321.787755102041[/C][/ROW]
[ROW][C]23[/C][C]2260[/C][C]2623.11836734694[/C][C]-363.118367346939[/C][/ROW]
[ROW][C]24[/C][C]2844[/C][C]2590.31836734694[/C][C]253.681632653061[/C][/ROW]
[ROW][C]25[/C][C]2546[/C][C]2875.93197278912[/C][C]-329.931972789116[/C][/ROW]
[ROW][C]26[/C][C]2456[/C][C]2448.21224489796[/C][C]7.7877551020408[/C][/ROW]
[ROW][C]27[/C][C]2295[/C][C]2384.81224489796[/C][C]-89.8122448979594[/C][/ROW]
[ROW][C]28[/C][C]2379[/C][C]2412.81224489796[/C][C]-33.8122448979592[/C][/ROW]
[ROW][C]29[/C][C]2479[/C][C]2598.81224489796[/C][C]-119.812244897959[/C][/ROW]
[ROW][C]30[/C][C]2057[/C][C]2219.01224489796[/C][C]-162.012244897959[/C][/ROW]
[ROW][C]31[/C][C]2280[/C][C]2409.41224489796[/C][C]-129.412244897959[/C][/ROW]
[ROW][C]32[/C][C]2351[/C][C]2603.21224489796[/C][C]-252.212244897959[/C][/ROW]
[ROW][C]33[/C][C]2276[/C][C]2456.61224489796[/C][C]-180.612244897959[/C][/ROW]
[ROW][C]34[/C][C]2548[/C][C]2659.21224489796[/C][C]-111.212244897959[/C][/ROW]
[ROW][C]35[/C][C]2311[/C][C]2303.58775510204[/C][C]7.41224489795922[/C][/ROW]
[ROW][C]36[/C][C]2201[/C][C]2270.78775510204[/C][C]-69.7877551020404[/C][/ROW]
[ROW][C]37[/C][C]2725[/C][C]2556.40136054422[/C][C]168.598639455782[/C][/ROW]
[ROW][C]38[/C][C]2408[/C][C]2128.68163265306[/C][C]279.318367346939[/C][/ROW]
[ROW][C]39[/C][C]2139[/C][C]2065.28163265306[/C][C]73.7183673469386[/C][/ROW]
[ROW][C]40[/C][C]1898[/C][C]2093.28163265306[/C][C]-195.281632653061[/C][/ROW]
[ROW][C]41[/C][C]2537[/C][C]2279.28163265306[/C][C]257.718367346939[/C][/ROW]
[ROW][C]42[/C][C]2068[/C][C]1899.48163265306[/C][C]168.518367346939[/C][/ROW]
[ROW][C]43[/C][C]2063[/C][C]2089.88163265306[/C][C]-26.8816326530611[/C][/ROW]
[ROW][C]44[/C][C]2520[/C][C]2283.68163265306[/C][C]236.318367346939[/C][/ROW]
[ROW][C]45[/C][C]2434[/C][C]2137.08163265306[/C][C]296.918367346939[/C][/ROW]
[ROW][C]46[/C][C]2190[/C][C]2339.68163265306[/C][C]-149.681632653061[/C][/ROW]
[ROW][C]47[/C][C]2794[/C][C]2303.58775510204[/C][C]490.412244897959[/C][/ROW]
[ROW][C]48[/C][C]2070[/C][C]2270.78775510204[/C][C]-200.787755102040[/C][/ROW]
[ROW][C]49[/C][C]2615[/C][C]2556.40136054422[/C][C]58.5986394557816[/C][/ROW]
[ROW][C]50[/C][C]2265[/C][C]2128.68163265306[/C][C]136.318367346939[/C][/ROW]
[ROW][C]51[/C][C]2139[/C][C]2065.28163265306[/C][C]73.7183673469386[/C][/ROW]
[ROW][C]52[/C][C]2428[/C][C]2093.28163265306[/C][C]334.718367346939[/C][/ROW]
[ROW][C]53[/C][C]2137[/C][C]2279.28163265306[/C][C]-142.281632653061[/C][/ROW]
[ROW][C]54[/C][C]1823[/C][C]1899.48163265306[/C][C]-76.4816326530613[/C][/ROW]
[ROW][C]55[/C][C]2063[/C][C]2089.88163265306[/C][C]-26.8816326530611[/C][/ROW]
[ROW][C]56[/C][C]1806[/C][C]2283.68163265306[/C][C]-477.681632653061[/C][/ROW]
[ROW][C]57[/C][C]1758[/C][C]2137.08163265306[/C][C]-379.081632653061[/C][/ROW]
[ROW][C]58[/C][C]2243[/C][C]2339.68163265306[/C][C]-96.6816326530611[/C][/ROW]
[ROW][C]59[/C][C]1993[/C][C]2303.58775510204[/C][C]-310.587755102041[/C][/ROW]
[ROW][C]60[/C][C]1932[/C][C]2270.78775510204[/C][C]-338.787755102040[/C][/ROW]
[ROW][C]61[/C][C]2465[/C][C]2556.40136054422[/C][C]-91.4013605442183[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69573&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69573&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
130162875.93197278911140.068027210887
221552448.21224489796-293.212244897959
321722384.81224489796-212.812244897959
421502412.81224489796-262.812244897959
525332598.81224489796-65.8122448979597
620582219.01224489796-161.012244897959
721602409.41224489796-249.412244897959
822602603.21224489796-343.212244897959
924982456.6122448979641.3877551020408
1026952659.2122448979635.7877551020407
1127992623.11836734694175.881632653061
1229462590.31836734694355.681632653062
1329302875.9319727891254.0680272108834
1423182448.21224489796-130.212244897959
1525402384.81224489796155.187755102040
1625702412.81224489796157.187755102041
1726692598.8122448979670.1877551020409
1824502219.01224489796230.987755102041
1928422409.41224489796432.587755102041
2034402603.21224489796836.787755102041
2126782456.61224489796221.387755102041
2229812659.21224489796321.787755102041
2322602623.11836734694-363.118367346939
2428442590.31836734694253.681632653061
2525462875.93197278912-329.931972789116
2624562448.212244897967.7877551020408
2722952384.81224489796-89.8122448979594
2823792412.81224489796-33.8122448979592
2924792598.81224489796-119.812244897959
3020572219.01224489796-162.012244897959
3122802409.41224489796-129.412244897959
3223512603.21224489796-252.212244897959
3322762456.61224489796-180.612244897959
3425482659.21224489796-111.212244897959
3523112303.587755102047.41224489795922
3622012270.78775510204-69.7877551020404
3727252556.40136054422168.598639455782
3824082128.68163265306279.318367346939
3921392065.2816326530673.7183673469386
4018982093.28163265306-195.281632653061
4125372279.28163265306257.718367346939
4220681899.48163265306168.518367346939
4320632089.88163265306-26.8816326530611
4425202283.68163265306236.318367346939
4524342137.08163265306296.918367346939
4621902339.68163265306-149.681632653061
4727942303.58775510204490.412244897959
4820702270.78775510204-200.787755102040
4926152556.4013605442258.5986394557816
5022652128.68163265306136.318367346939
5121392065.2816326530673.7183673469386
5224282093.28163265306334.718367346939
5321372279.28163265306-142.281632653061
5418231899.48163265306-76.4816326530613
5520632089.88163265306-26.8816326530611
5618062283.68163265306-477.681632653061
5717582137.08163265306-379.081632653061
5822432339.68163265306-96.6816326530611
5919932303.58775510204-310.587755102041
6019322270.78775510204-338.787755102040
6124652556.40136054422-91.4013605442183







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.4064447377619180.8128894755238370.593555262238082
170.2583769152357880.5167538304715760.741623084764212
180.2631442796217140.5262885592434270.736855720378286
190.492239694364520.984479388729040.50776030563548
200.9657017921376270.06859641572474520.0342982078623726
210.9531579524670650.093684095065870.046842047532935
220.956637670614740.08672465877052060.0433623293852603
230.9615060479928530.0769879040142950.0384939520071475
240.9722236186386250.05555276272274930.0277763813613746
250.9712706069443240.05745878611135130.0287293930556757
260.955342360634650.08931527873070120.0446576393653506
270.9273883671325460.1452232657349080.072611632867454
280.8870782397127970.2258435205744060.112921760287203
290.8371340743844640.3257318512310720.162865925615536
300.7835985543183260.4328028913633490.216401445681674
310.7193173730273360.5613652539453270.280682626972664
320.704337026281530.5913259474369390.295662973718469
330.6460632170860690.7078735658278620.353936782913931
340.5732793661367310.8534412677265380.426720633863269
350.4761697993848580.9523395987697170.523830200615142
360.4239999459155280.8479998918310560.576000054084472
370.36176086061440.72352172122880.6382391393856
380.3058602301966920.6117204603933840.694139769803308
390.2179580970289520.4359161940579040.782041902971048
400.2226559248977910.4453118497955810.77734407510221
410.1934466453255910.3868932906511810.80655335467441
420.1351103594992350.2702207189984690.864889640500765
430.07910519536682080.1582103907336420.92089480463318
440.1231204329942140.2462408659884280.876879567005786
450.2049505226322070.4099010452644140.795049477367793

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.406444737761918 & 0.812889475523837 & 0.593555262238082 \tabularnewline
17 & 0.258376915235788 & 0.516753830471576 & 0.741623084764212 \tabularnewline
18 & 0.263144279621714 & 0.526288559243427 & 0.736855720378286 \tabularnewline
19 & 0.49223969436452 & 0.98447938872904 & 0.50776030563548 \tabularnewline
20 & 0.965701792137627 & 0.0685964157247452 & 0.0342982078623726 \tabularnewline
21 & 0.953157952467065 & 0.09368409506587 & 0.046842047532935 \tabularnewline
22 & 0.95663767061474 & 0.0867246587705206 & 0.0433623293852603 \tabularnewline
23 & 0.961506047992853 & 0.076987904014295 & 0.0384939520071475 \tabularnewline
24 & 0.972223618638625 & 0.0555527627227493 & 0.0277763813613746 \tabularnewline
25 & 0.971270606944324 & 0.0574587861113513 & 0.0287293930556757 \tabularnewline
26 & 0.95534236063465 & 0.0893152787307012 & 0.0446576393653506 \tabularnewline
27 & 0.927388367132546 & 0.145223265734908 & 0.072611632867454 \tabularnewline
28 & 0.887078239712797 & 0.225843520574406 & 0.112921760287203 \tabularnewline
29 & 0.837134074384464 & 0.325731851231072 & 0.162865925615536 \tabularnewline
30 & 0.783598554318326 & 0.432802891363349 & 0.216401445681674 \tabularnewline
31 & 0.719317373027336 & 0.561365253945327 & 0.280682626972664 \tabularnewline
32 & 0.70433702628153 & 0.591325947436939 & 0.295662973718469 \tabularnewline
33 & 0.646063217086069 & 0.707873565827862 & 0.353936782913931 \tabularnewline
34 & 0.573279366136731 & 0.853441267726538 & 0.426720633863269 \tabularnewline
35 & 0.476169799384858 & 0.952339598769717 & 0.523830200615142 \tabularnewline
36 & 0.423999945915528 & 0.847999891831056 & 0.576000054084472 \tabularnewline
37 & 0.3617608606144 & 0.7235217212288 & 0.6382391393856 \tabularnewline
38 & 0.305860230196692 & 0.611720460393384 & 0.694139769803308 \tabularnewline
39 & 0.217958097028952 & 0.435916194057904 & 0.782041902971048 \tabularnewline
40 & 0.222655924897791 & 0.445311849795581 & 0.77734407510221 \tabularnewline
41 & 0.193446645325591 & 0.386893290651181 & 0.80655335467441 \tabularnewline
42 & 0.135110359499235 & 0.270220718998469 & 0.864889640500765 \tabularnewline
43 & 0.0791051953668208 & 0.158210390733642 & 0.92089480463318 \tabularnewline
44 & 0.123120432994214 & 0.246240865988428 & 0.876879567005786 \tabularnewline
45 & 0.204950522632207 & 0.409901045264414 & 0.795049477367793 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69573&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.406444737761918[/C][C]0.812889475523837[/C][C]0.593555262238082[/C][/ROW]
[ROW][C]17[/C][C]0.258376915235788[/C][C]0.516753830471576[/C][C]0.741623084764212[/C][/ROW]
[ROW][C]18[/C][C]0.263144279621714[/C][C]0.526288559243427[/C][C]0.736855720378286[/C][/ROW]
[ROW][C]19[/C][C]0.49223969436452[/C][C]0.98447938872904[/C][C]0.50776030563548[/C][/ROW]
[ROW][C]20[/C][C]0.965701792137627[/C][C]0.0685964157247452[/C][C]0.0342982078623726[/C][/ROW]
[ROW][C]21[/C][C]0.953157952467065[/C][C]0.09368409506587[/C][C]0.046842047532935[/C][/ROW]
[ROW][C]22[/C][C]0.95663767061474[/C][C]0.0867246587705206[/C][C]0.0433623293852603[/C][/ROW]
[ROW][C]23[/C][C]0.961506047992853[/C][C]0.076987904014295[/C][C]0.0384939520071475[/C][/ROW]
[ROW][C]24[/C][C]0.972223618638625[/C][C]0.0555527627227493[/C][C]0.0277763813613746[/C][/ROW]
[ROW][C]25[/C][C]0.971270606944324[/C][C]0.0574587861113513[/C][C]0.0287293930556757[/C][/ROW]
[ROW][C]26[/C][C]0.95534236063465[/C][C]0.0893152787307012[/C][C]0.0446576393653506[/C][/ROW]
[ROW][C]27[/C][C]0.927388367132546[/C][C]0.145223265734908[/C][C]0.072611632867454[/C][/ROW]
[ROW][C]28[/C][C]0.887078239712797[/C][C]0.225843520574406[/C][C]0.112921760287203[/C][/ROW]
[ROW][C]29[/C][C]0.837134074384464[/C][C]0.325731851231072[/C][C]0.162865925615536[/C][/ROW]
[ROW][C]30[/C][C]0.783598554318326[/C][C]0.432802891363349[/C][C]0.216401445681674[/C][/ROW]
[ROW][C]31[/C][C]0.719317373027336[/C][C]0.561365253945327[/C][C]0.280682626972664[/C][/ROW]
[ROW][C]32[/C][C]0.70433702628153[/C][C]0.591325947436939[/C][C]0.295662973718469[/C][/ROW]
[ROW][C]33[/C][C]0.646063217086069[/C][C]0.707873565827862[/C][C]0.353936782913931[/C][/ROW]
[ROW][C]34[/C][C]0.573279366136731[/C][C]0.853441267726538[/C][C]0.426720633863269[/C][/ROW]
[ROW][C]35[/C][C]0.476169799384858[/C][C]0.952339598769717[/C][C]0.523830200615142[/C][/ROW]
[ROW][C]36[/C][C]0.423999945915528[/C][C]0.847999891831056[/C][C]0.576000054084472[/C][/ROW]
[ROW][C]37[/C][C]0.3617608606144[/C][C]0.7235217212288[/C][C]0.6382391393856[/C][/ROW]
[ROW][C]38[/C][C]0.305860230196692[/C][C]0.611720460393384[/C][C]0.694139769803308[/C][/ROW]
[ROW][C]39[/C][C]0.217958097028952[/C][C]0.435916194057904[/C][C]0.782041902971048[/C][/ROW]
[ROW][C]40[/C][C]0.222655924897791[/C][C]0.445311849795581[/C][C]0.77734407510221[/C][/ROW]
[ROW][C]41[/C][C]0.193446645325591[/C][C]0.386893290651181[/C][C]0.80655335467441[/C][/ROW]
[ROW][C]42[/C][C]0.135110359499235[/C][C]0.270220718998469[/C][C]0.864889640500765[/C][/ROW]
[ROW][C]43[/C][C]0.0791051953668208[/C][C]0.158210390733642[/C][C]0.92089480463318[/C][/ROW]
[ROW][C]44[/C][C]0.123120432994214[/C][C]0.246240865988428[/C][C]0.876879567005786[/C][/ROW]
[ROW][C]45[/C][C]0.204950522632207[/C][C]0.409901045264414[/C][C]0.795049477367793[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69573&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69573&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.4064447377619180.8128894755238370.593555262238082
170.2583769152357880.5167538304715760.741623084764212
180.2631442796217140.5262885592434270.736855720378286
190.492239694364520.984479388729040.50776030563548
200.9657017921376270.06859641572474520.0342982078623726
210.9531579524670650.093684095065870.046842047532935
220.956637670614740.08672465877052060.0433623293852603
230.9615060479928530.0769879040142950.0384939520071475
240.9722236186386250.05555276272274930.0277763813613746
250.9712706069443240.05745878611135130.0287293930556757
260.955342360634650.08931527873070120.0446576393653506
270.9273883671325460.1452232657349080.072611632867454
280.8870782397127970.2258435205744060.112921760287203
290.8371340743844640.3257318512310720.162865925615536
300.7835985543183260.4328028913633490.216401445681674
310.7193173730273360.5613652539453270.280682626972664
320.704337026281530.5913259474369390.295662973718469
330.6460632170860690.7078735658278620.353936782913931
340.5732793661367310.8534412677265380.426720633863269
350.4761697993848580.9523395987697170.523830200615142
360.4239999459155280.8479998918310560.576000054084472
370.36176086061440.72352172122880.6382391393856
380.3058602301966920.6117204603933840.694139769803308
390.2179580970289520.4359161940579040.782041902971048
400.2226559248977910.4453118497955810.77734407510221
410.1934466453255910.3868932906511810.80655335467441
420.1351103594992350.2702207189984690.864889640500765
430.07910519536682080.1582103907336420.92089480463318
440.1231204329942140.2462408659884280.876879567005786
450.2049505226322070.4099010452644140.795049477367793







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

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

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



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