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 18:00:02 -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/20/t12612708496t4ifxlqkvwvbj6.htm/, Retrieved Sat, 27 Apr 2024 05:30:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69767, Retrieved Sat, 27 Apr 2024 05:30:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact190
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] [a542c511726eba04a1fc2f4bd37a90f8]
-    D      [Multiple Regression] [Model 2] [2009-12-20 01:00:02] [865cd78857e928bd6e7d79509c6cdcc5] [Current]
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	1
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 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=69767&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=69767&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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
y[t] = + 2589.64081632653 -318.401360544218x[t] + 285.726530612245M1[t] -141.880272108844M2[t] -205.280272108843M3[t] -177.280272108844M4[t] + 8.71972789115645M5[t] -371.080272108844M6[t] -180.680272108843M7[t] + 13.1197278911563M8[t] -133.480272108844M9[t] + 132.800000000000M10[t] + 32.7999999999998M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  2589.64081632653 -318.401360544218x[t] +  285.726530612245M1[t] -141.880272108844M2[t] -205.280272108843M3[t] -177.280272108844M4[t] +  8.71972789115645M5[t] -371.080272108844M6[t] -180.680272108843M7[t] +  13.1197278911563M8[t] -133.480272108844M9[t] +  132.800000000000M10[t] +  32.7999999999998M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69767&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  2589.64081632653 -318.401360544218x[t] +  285.726530612245M1[t] -141.880272108844M2[t] -205.280272108843M3[t] -177.280272108844M4[t] +  8.71972789115645M5[t] -371.080272108844M6[t] -180.680272108843M7[t] +  13.1197278911563M8[t] -133.480272108844M9[t] +  132.800000000000M10[t] +  32.7999999999998M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69767&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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] = + 2589.64081632653 -318.401360544218x[t] + 285.726530612245M1[t] -141.880272108844M2[t] -205.280272108843M3[t] -177.280272108844M4[t] + 8.71972789115645M5[t] -371.080272108844M6[t] -180.680272108843M7[t] + 13.1197278911563M8[t] -133.480272108844M9[t] + 132.800000000000M10[t] + 32.7999999999998M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2589.64081632653131.78103419.651100
x-318.40136054421872.543072-4.38916.2e-053.1e-05
M1285.726530612245168.5748651.6950.0965630.048282
M2-141.880272108844176.504911-0.80380.4254570.212729
M3-205.280272108843176.504911-1.1630.2505670.125284
M4-177.280272108844176.504911-1.00440.3202260.160113
M58.71972789115645176.5049110.04940.9608040.480402
M6-371.080272108844176.504911-2.10240.0407910.020395
M7-180.680272108843176.504911-1.02370.3111290.155565
M813.1197278911563176.5049110.07430.9410560.470528
M9-133.480272108844176.504911-0.75620.45320.2266
M10132.800000000000175.90760.75490.4539720.226986
M1132.7999999999998175.90760.18650.8528690.426434

\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) & 2589.64081632653 & 131.781034 & 19.6511 & 0 & 0 \tabularnewline
x & -318.401360544218 & 72.543072 & -4.3891 & 6.2e-05 & 3.1e-05 \tabularnewline
M1 & 285.726530612245 & 168.574865 & 1.695 & 0.096563 & 0.048282 \tabularnewline
M2 & -141.880272108844 & 176.504911 & -0.8038 & 0.425457 & 0.212729 \tabularnewline
M3 & -205.280272108843 & 176.504911 & -1.163 & 0.250567 & 0.125284 \tabularnewline
M4 & -177.280272108844 & 176.504911 & -1.0044 & 0.320226 & 0.160113 \tabularnewline
M5 & 8.71972789115645 & 176.504911 & 0.0494 & 0.960804 & 0.480402 \tabularnewline
M6 & -371.080272108844 & 176.504911 & -2.1024 & 0.040791 & 0.020395 \tabularnewline
M7 & -180.680272108843 & 176.504911 & -1.0237 & 0.311129 & 0.155565 \tabularnewline
M8 & 13.1197278911563 & 176.504911 & 0.0743 & 0.941056 & 0.470528 \tabularnewline
M9 & -133.480272108844 & 176.504911 & -0.7562 & 0.4532 & 0.2266 \tabularnewline
M10 & 132.800000000000 & 175.9076 & 0.7549 & 0.453972 & 0.226986 \tabularnewline
M11 & 32.7999999999998 & 175.9076 & 0.1865 & 0.852869 & 0.426434 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69767&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]2589.64081632653[/C][C]131.781034[/C][C]19.6511[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-318.401360544218[/C][C]72.543072[/C][C]-4.3891[/C][C]6.2e-05[/C][C]3.1e-05[/C][/ROW]
[ROW][C]M1[/C][C]285.726530612245[/C][C]168.574865[/C][C]1.695[/C][C]0.096563[/C][C]0.048282[/C][/ROW]
[ROW][C]M2[/C][C]-141.880272108844[/C][C]176.504911[/C][C]-0.8038[/C][C]0.425457[/C][C]0.212729[/C][/ROW]
[ROW][C]M3[/C][C]-205.280272108843[/C][C]176.504911[/C][C]-1.163[/C][C]0.250567[/C][C]0.125284[/C][/ROW]
[ROW][C]M4[/C][C]-177.280272108844[/C][C]176.504911[/C][C]-1.0044[/C][C]0.320226[/C][C]0.160113[/C][/ROW]
[ROW][C]M5[/C][C]8.71972789115645[/C][C]176.504911[/C][C]0.0494[/C][C]0.960804[/C][C]0.480402[/C][/ROW]
[ROW][C]M6[/C][C]-371.080272108844[/C][C]176.504911[/C][C]-2.1024[/C][C]0.040791[/C][C]0.020395[/C][/ROW]
[ROW][C]M7[/C][C]-180.680272108843[/C][C]176.504911[/C][C]-1.0237[/C][C]0.311129[/C][C]0.155565[/C][/ROW]
[ROW][C]M8[/C][C]13.1197278911563[/C][C]176.504911[/C][C]0.0743[/C][C]0.941056[/C][C]0.470528[/C][/ROW]
[ROW][C]M9[/C][C]-133.480272108844[/C][C]176.504911[/C][C]-0.7562[/C][C]0.4532[/C][C]0.2266[/C][/ROW]
[ROW][C]M10[/C][C]132.800000000000[/C][C]175.9076[/C][C]0.7549[/C][C]0.453972[/C][C]0.226986[/C][/ROW]
[ROW][C]M11[/C][C]32.7999999999998[/C][C]175.9076[/C][C]0.1865[/C][C]0.852869[/C][C]0.426434[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69767&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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)2589.64081632653131.78103419.651100
x-318.40136054421872.543072-4.38916.2e-053.1e-05
M1285.726530612245168.5748651.6950.0965630.048282
M2-141.880272108844176.504911-0.80380.4254570.212729
M3-205.280272108843176.504911-1.1630.2505670.125284
M4-177.280272108844176.504911-1.00440.3202260.160113
M58.71972789115645176.5049110.04940.9608040.480402
M6-371.080272108844176.504911-2.10240.0407910.020395
M7-180.680272108843176.504911-1.02370.3111290.155565
M813.1197278911563176.5049110.07430.9410560.470528
M9-133.480272108844176.504911-0.75620.45320.2266
M10132.800000000000175.90760.75490.4539720.226986
M1132.7999999999998175.90760.18650.8528690.426434







Multiple Linear Regression - Regression Statistics
Multiple R0.668376440301656
R-squared0.446727065950313
Adjusted R-squared0.308408832437891
F-TEST (value)3.22970482348008
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00186216208043333
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation278.134337495171
Sum Squared Residuals3713218.06530612

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.668376440301656 \tabularnewline
R-squared & 0.446727065950313 \tabularnewline
Adjusted R-squared & 0.308408832437891 \tabularnewline
F-TEST (value) & 3.22970482348008 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.00186216208043333 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 278.134337495171 \tabularnewline
Sum Squared Residuals & 3713218.06530612 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69767&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.668376440301656[/C][/ROW]
[ROW][C]R-squared[/C][C]0.446727065950313[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.308408832437891[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.22970482348008[/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.00186216208043333[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]278.134337495171[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3713218.06530612[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69767&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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.668376440301656
R-squared0.446727065950313
Adjusted R-squared0.308408832437891
F-TEST (value)3.22970482348008
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00186216208043333
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation278.134337495171
Sum Squared Residuals3713218.06530612







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
130162875.36734693877140.632653061227
221552447.76054421769-292.760544217687
321722384.36054421769-212.360544217686
421502412.36054421769-262.360544217687
525332598.36054421769-65.3605442176871
620582218.56054421769-160.560544217687
721602408.96054421769-248.960544217687
822602602.76054421769-342.760544217687
924982456.1605442176941.8394557823126
1026952722.44081632653-27.4408163265305
1127992622.44081632653176.559183673469
1229462589.64081632653356.359183673469
1329302875.3673469387854.6326530612238
1423182447.76054421769-129.760544217687
1525402384.36054421769155.639455782313
1625702412.36054421769157.639455782313
1726692598.3605442176970.6394557823127
1824502218.56054421769231.439455782313
1928422408.96054421769433.039455782313
2034402602.76054421769837.239455782313
2126782456.16054421769221.839455782313
2229812722.44081632653258.559183673469
2322602622.44081632653-362.440816326531
2428442589.64081632653254.359183673469
2525462875.36734693878-329.367346938776
2624562447.760544217698.23945578231283
2722952384.36054421769-89.3605442176873
2823792412.36054421769-33.3605442176871
2924792598.36054421769-119.360544217687
3020572218.56054421769-161.560544217687
3122802408.96054421769-128.960544217687
3223512602.76054421769-251.760544217687
3322762456.16054421769-180.160544217687
3425482404.03945578231143.960544217687
3523112304.039455782316.96054421768714
3622012271.23945578231-70.239455782313
3727252556.96598639456168.034013605442
3824082129.35918367347278.640816326531
3921392065.9591836734773.0408163265305
4018982093.95918367347-195.959183673469
4125372279.95918367347257.040816326531
4220681900.15918367347167.840816326531
4320632090.55918367347-27.5591836734693
4425202284.35918367347235.640816326531
4524342137.75918367347296.240816326531
4621902404.03945578231-214.039455782313
4727942304.03945578231489.960544217687
4820702271.23945578231-201.239455782313
4926152556.9659863945658.0340136054416
5022652129.35918367347135.640816326531
5121392065.9591836734773.0408163265305
5224282093.95918367347334.040816326531
5321372279.95918367347-142.959183673469
5418231900.15918367347-77.1591836734694
5520632090.55918367347-27.5591836734693
5618062284.35918367347-478.359183673469
5717582137.75918367347-379.759183673469
5822432404.03945578231-161.039455782313
5919932304.03945578231-311.039455782313
6019322271.23945578231-339.239455782313
6124652556.96598639456-91.9659863945585

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3016 & 2875.36734693877 & 140.632653061227 \tabularnewline
2 & 2155 & 2447.76054421769 & -292.760544217687 \tabularnewline
3 & 2172 & 2384.36054421769 & -212.360544217686 \tabularnewline
4 & 2150 & 2412.36054421769 & -262.360544217687 \tabularnewline
5 & 2533 & 2598.36054421769 & -65.3605442176871 \tabularnewline
6 & 2058 & 2218.56054421769 & -160.560544217687 \tabularnewline
7 & 2160 & 2408.96054421769 & -248.960544217687 \tabularnewline
8 & 2260 & 2602.76054421769 & -342.760544217687 \tabularnewline
9 & 2498 & 2456.16054421769 & 41.8394557823126 \tabularnewline
10 & 2695 & 2722.44081632653 & -27.4408163265305 \tabularnewline
11 & 2799 & 2622.44081632653 & 176.559183673469 \tabularnewline
12 & 2946 & 2589.64081632653 & 356.359183673469 \tabularnewline
13 & 2930 & 2875.36734693878 & 54.6326530612238 \tabularnewline
14 & 2318 & 2447.76054421769 & -129.760544217687 \tabularnewline
15 & 2540 & 2384.36054421769 & 155.639455782313 \tabularnewline
16 & 2570 & 2412.36054421769 & 157.639455782313 \tabularnewline
17 & 2669 & 2598.36054421769 & 70.6394557823127 \tabularnewline
18 & 2450 & 2218.56054421769 & 231.439455782313 \tabularnewline
19 & 2842 & 2408.96054421769 & 433.039455782313 \tabularnewline
20 & 3440 & 2602.76054421769 & 837.239455782313 \tabularnewline
21 & 2678 & 2456.16054421769 & 221.839455782313 \tabularnewline
22 & 2981 & 2722.44081632653 & 258.559183673469 \tabularnewline
23 & 2260 & 2622.44081632653 & -362.440816326531 \tabularnewline
24 & 2844 & 2589.64081632653 & 254.359183673469 \tabularnewline
25 & 2546 & 2875.36734693878 & -329.367346938776 \tabularnewline
26 & 2456 & 2447.76054421769 & 8.23945578231283 \tabularnewline
27 & 2295 & 2384.36054421769 & -89.3605442176873 \tabularnewline
28 & 2379 & 2412.36054421769 & -33.3605442176871 \tabularnewline
29 & 2479 & 2598.36054421769 & -119.360544217687 \tabularnewline
30 & 2057 & 2218.56054421769 & -161.560544217687 \tabularnewline
31 & 2280 & 2408.96054421769 & -128.960544217687 \tabularnewline
32 & 2351 & 2602.76054421769 & -251.760544217687 \tabularnewline
33 & 2276 & 2456.16054421769 & -180.160544217687 \tabularnewline
34 & 2548 & 2404.03945578231 & 143.960544217687 \tabularnewline
35 & 2311 & 2304.03945578231 & 6.96054421768714 \tabularnewline
36 & 2201 & 2271.23945578231 & -70.239455782313 \tabularnewline
37 & 2725 & 2556.96598639456 & 168.034013605442 \tabularnewline
38 & 2408 & 2129.35918367347 & 278.640816326531 \tabularnewline
39 & 2139 & 2065.95918367347 & 73.0408163265305 \tabularnewline
40 & 1898 & 2093.95918367347 & -195.959183673469 \tabularnewline
41 & 2537 & 2279.95918367347 & 257.040816326531 \tabularnewline
42 & 2068 & 1900.15918367347 & 167.840816326531 \tabularnewline
43 & 2063 & 2090.55918367347 & -27.5591836734693 \tabularnewline
44 & 2520 & 2284.35918367347 & 235.640816326531 \tabularnewline
45 & 2434 & 2137.75918367347 & 296.240816326531 \tabularnewline
46 & 2190 & 2404.03945578231 & -214.039455782313 \tabularnewline
47 & 2794 & 2304.03945578231 & 489.960544217687 \tabularnewline
48 & 2070 & 2271.23945578231 & -201.239455782313 \tabularnewline
49 & 2615 & 2556.96598639456 & 58.0340136054416 \tabularnewline
50 & 2265 & 2129.35918367347 & 135.640816326531 \tabularnewline
51 & 2139 & 2065.95918367347 & 73.0408163265305 \tabularnewline
52 & 2428 & 2093.95918367347 & 334.040816326531 \tabularnewline
53 & 2137 & 2279.95918367347 & -142.959183673469 \tabularnewline
54 & 1823 & 1900.15918367347 & -77.1591836734694 \tabularnewline
55 & 2063 & 2090.55918367347 & -27.5591836734693 \tabularnewline
56 & 1806 & 2284.35918367347 & -478.359183673469 \tabularnewline
57 & 1758 & 2137.75918367347 & -379.759183673469 \tabularnewline
58 & 2243 & 2404.03945578231 & -161.039455782313 \tabularnewline
59 & 1993 & 2304.03945578231 & -311.039455782313 \tabularnewline
60 & 1932 & 2271.23945578231 & -339.239455782313 \tabularnewline
61 & 2465 & 2556.96598639456 & -91.9659863945585 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69767&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.36734693877[/C][C]140.632653061227[/C][/ROW]
[ROW][C]2[/C][C]2155[/C][C]2447.76054421769[/C][C]-292.760544217687[/C][/ROW]
[ROW][C]3[/C][C]2172[/C][C]2384.36054421769[/C][C]-212.360544217686[/C][/ROW]
[ROW][C]4[/C][C]2150[/C][C]2412.36054421769[/C][C]-262.360544217687[/C][/ROW]
[ROW][C]5[/C][C]2533[/C][C]2598.36054421769[/C][C]-65.3605442176871[/C][/ROW]
[ROW][C]6[/C][C]2058[/C][C]2218.56054421769[/C][C]-160.560544217687[/C][/ROW]
[ROW][C]7[/C][C]2160[/C][C]2408.96054421769[/C][C]-248.960544217687[/C][/ROW]
[ROW][C]8[/C][C]2260[/C][C]2602.76054421769[/C][C]-342.760544217687[/C][/ROW]
[ROW][C]9[/C][C]2498[/C][C]2456.16054421769[/C][C]41.8394557823126[/C][/ROW]
[ROW][C]10[/C][C]2695[/C][C]2722.44081632653[/C][C]-27.4408163265305[/C][/ROW]
[ROW][C]11[/C][C]2799[/C][C]2622.44081632653[/C][C]176.559183673469[/C][/ROW]
[ROW][C]12[/C][C]2946[/C][C]2589.64081632653[/C][C]356.359183673469[/C][/ROW]
[ROW][C]13[/C][C]2930[/C][C]2875.36734693878[/C][C]54.6326530612238[/C][/ROW]
[ROW][C]14[/C][C]2318[/C][C]2447.76054421769[/C][C]-129.760544217687[/C][/ROW]
[ROW][C]15[/C][C]2540[/C][C]2384.36054421769[/C][C]155.639455782313[/C][/ROW]
[ROW][C]16[/C][C]2570[/C][C]2412.36054421769[/C][C]157.639455782313[/C][/ROW]
[ROW][C]17[/C][C]2669[/C][C]2598.36054421769[/C][C]70.6394557823127[/C][/ROW]
[ROW][C]18[/C][C]2450[/C][C]2218.56054421769[/C][C]231.439455782313[/C][/ROW]
[ROW][C]19[/C][C]2842[/C][C]2408.96054421769[/C][C]433.039455782313[/C][/ROW]
[ROW][C]20[/C][C]3440[/C][C]2602.76054421769[/C][C]837.239455782313[/C][/ROW]
[ROW][C]21[/C][C]2678[/C][C]2456.16054421769[/C][C]221.839455782313[/C][/ROW]
[ROW][C]22[/C][C]2981[/C][C]2722.44081632653[/C][C]258.559183673469[/C][/ROW]
[ROW][C]23[/C][C]2260[/C][C]2622.44081632653[/C][C]-362.440816326531[/C][/ROW]
[ROW][C]24[/C][C]2844[/C][C]2589.64081632653[/C][C]254.359183673469[/C][/ROW]
[ROW][C]25[/C][C]2546[/C][C]2875.36734693878[/C][C]-329.367346938776[/C][/ROW]
[ROW][C]26[/C][C]2456[/C][C]2447.76054421769[/C][C]8.23945578231283[/C][/ROW]
[ROW][C]27[/C][C]2295[/C][C]2384.36054421769[/C][C]-89.3605442176873[/C][/ROW]
[ROW][C]28[/C][C]2379[/C][C]2412.36054421769[/C][C]-33.3605442176871[/C][/ROW]
[ROW][C]29[/C][C]2479[/C][C]2598.36054421769[/C][C]-119.360544217687[/C][/ROW]
[ROW][C]30[/C][C]2057[/C][C]2218.56054421769[/C][C]-161.560544217687[/C][/ROW]
[ROW][C]31[/C][C]2280[/C][C]2408.96054421769[/C][C]-128.960544217687[/C][/ROW]
[ROW][C]32[/C][C]2351[/C][C]2602.76054421769[/C][C]-251.760544217687[/C][/ROW]
[ROW][C]33[/C][C]2276[/C][C]2456.16054421769[/C][C]-180.160544217687[/C][/ROW]
[ROW][C]34[/C][C]2548[/C][C]2404.03945578231[/C][C]143.960544217687[/C][/ROW]
[ROW][C]35[/C][C]2311[/C][C]2304.03945578231[/C][C]6.96054421768714[/C][/ROW]
[ROW][C]36[/C][C]2201[/C][C]2271.23945578231[/C][C]-70.239455782313[/C][/ROW]
[ROW][C]37[/C][C]2725[/C][C]2556.96598639456[/C][C]168.034013605442[/C][/ROW]
[ROW][C]38[/C][C]2408[/C][C]2129.35918367347[/C][C]278.640816326531[/C][/ROW]
[ROW][C]39[/C][C]2139[/C][C]2065.95918367347[/C][C]73.0408163265305[/C][/ROW]
[ROW][C]40[/C][C]1898[/C][C]2093.95918367347[/C][C]-195.959183673469[/C][/ROW]
[ROW][C]41[/C][C]2537[/C][C]2279.95918367347[/C][C]257.040816326531[/C][/ROW]
[ROW][C]42[/C][C]2068[/C][C]1900.15918367347[/C][C]167.840816326531[/C][/ROW]
[ROW][C]43[/C][C]2063[/C][C]2090.55918367347[/C][C]-27.5591836734693[/C][/ROW]
[ROW][C]44[/C][C]2520[/C][C]2284.35918367347[/C][C]235.640816326531[/C][/ROW]
[ROW][C]45[/C][C]2434[/C][C]2137.75918367347[/C][C]296.240816326531[/C][/ROW]
[ROW][C]46[/C][C]2190[/C][C]2404.03945578231[/C][C]-214.039455782313[/C][/ROW]
[ROW][C]47[/C][C]2794[/C][C]2304.03945578231[/C][C]489.960544217687[/C][/ROW]
[ROW][C]48[/C][C]2070[/C][C]2271.23945578231[/C][C]-201.239455782313[/C][/ROW]
[ROW][C]49[/C][C]2615[/C][C]2556.96598639456[/C][C]58.0340136054416[/C][/ROW]
[ROW][C]50[/C][C]2265[/C][C]2129.35918367347[/C][C]135.640816326531[/C][/ROW]
[ROW][C]51[/C][C]2139[/C][C]2065.95918367347[/C][C]73.0408163265305[/C][/ROW]
[ROW][C]52[/C][C]2428[/C][C]2093.95918367347[/C][C]334.040816326531[/C][/ROW]
[ROW][C]53[/C][C]2137[/C][C]2279.95918367347[/C][C]-142.959183673469[/C][/ROW]
[ROW][C]54[/C][C]1823[/C][C]1900.15918367347[/C][C]-77.1591836734694[/C][/ROW]
[ROW][C]55[/C][C]2063[/C][C]2090.55918367347[/C][C]-27.5591836734693[/C][/ROW]
[ROW][C]56[/C][C]1806[/C][C]2284.35918367347[/C][C]-478.359183673469[/C][/ROW]
[ROW][C]57[/C][C]1758[/C][C]2137.75918367347[/C][C]-379.759183673469[/C][/ROW]
[ROW][C]58[/C][C]2243[/C][C]2404.03945578231[/C][C]-161.039455782313[/C][/ROW]
[ROW][C]59[/C][C]1993[/C][C]2304.03945578231[/C][C]-311.039455782313[/C][/ROW]
[ROW][C]60[/C][C]1932[/C][C]2271.23945578231[/C][C]-339.239455782313[/C][/ROW]
[ROW][C]61[/C][C]2465[/C][C]2556.96598639456[/C][C]-91.9659863945585[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69767&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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.36734693877140.632653061227
221552447.76054421769-292.760544217687
321722384.36054421769-212.360544217686
421502412.36054421769-262.360544217687
525332598.36054421769-65.3605442176871
620582218.56054421769-160.560544217687
721602408.96054421769-248.960544217687
822602602.76054421769-342.760544217687
924982456.1605442176941.8394557823126
1026952722.44081632653-27.4408163265305
1127992622.44081632653176.559183673469
1229462589.64081632653356.359183673469
1329302875.3673469387854.6326530612238
1423182447.76054421769-129.760544217687
1525402384.36054421769155.639455782313
1625702412.36054421769157.639455782313
1726692598.3605442176970.6394557823127
1824502218.56054421769231.439455782313
1928422408.96054421769433.039455782313
2034402602.76054421769837.239455782313
2126782456.16054421769221.839455782313
2229812722.44081632653258.559183673469
2322602622.44081632653-362.440816326531
2428442589.64081632653254.359183673469
2525462875.36734693878-329.367346938776
2624562447.760544217698.23945578231283
2722952384.36054421769-89.3605442176873
2823792412.36054421769-33.3605442176871
2924792598.36054421769-119.360544217687
3020572218.56054421769-161.560544217687
3122802408.96054421769-128.960544217687
3223512602.76054421769-251.760544217687
3322762456.16054421769-180.160544217687
3425482404.03945578231143.960544217687
3523112304.039455782316.96054421768714
3622012271.23945578231-70.239455782313
3727252556.96598639456168.034013605442
3824082129.35918367347278.640816326531
3921392065.9591836734773.0408163265305
4018982093.95918367347-195.959183673469
4125372279.95918367347257.040816326531
4220681900.15918367347167.840816326531
4320632090.55918367347-27.5591836734693
4425202284.35918367347235.640816326531
4524342137.75918367347296.240816326531
4621902404.03945578231-214.039455782313
4727942304.03945578231489.960544217687
4820702271.23945578231-201.239455782313
4926152556.9659863945658.0340136054416
5022652129.35918367347135.640816326531
5121392065.9591836734773.0408163265305
5224282093.95918367347334.040816326531
5321372279.95918367347-142.959183673469
5418231900.15918367347-77.1591836734694
5520632090.55918367347-27.5591836734693
5618062284.35918367347-478.359183673469
5717582137.75918367347-379.759183673469
5822432404.03945578231-161.039455782313
5919932304.03945578231-311.039455782313
6019322271.23945578231-339.239455782313
6124652556.96598639456-91.9659863945585







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.4050712790188840.8101425580377690.594928720981116
170.2571287815948000.5142575631895990.7428712184052
180.2615867756691380.5231735513382760.738413224330862
190.4895012918439670.9790025836879340.510498708156033
200.9646476633588680.07070467328226450.0353523366411322
210.9516937506546950.09661249869060910.0483062493453046
220.949309254193210.1013814916135800.0506907458067902
230.9536884529976320.09262309400473520.0463115470023676
240.9663628321170880.06727433576582420.0336371678829121
250.9642103954918950.07157920901620930.0357896045081047
260.9449812432237330.1100375135525340.0550187567762668
270.9121414727899580.1757170544200840.0878585272100422
280.8665591258264770.2668817483470470.133440874173523
290.8102612251704780.3794775496590440.189738774829522
300.7496624023318940.5006751953362130.250337597668106
310.6810618255014750.637876348997050.318938174498525
320.664212738323090.6715745233538220.335787261676911
330.5982903041300070.8034193917399850.401709695869993
340.5496814249488080.9006371501023840.450318575051192
350.4532379613032980.9064759226065950.546762038696702
360.406826032154760.813652064309520.59317396784524
370.3419172191043400.6838344382086810.65808278089566
380.2891542465471230.5783084930942470.710845753452877
390.2042762113290970.4085524226581950.795723788670903
400.2088098956617520.4176197913235040.791190104338248
410.1817506023058410.3635012046116830.818249397694159
420.126332261340030.252664522680060.87366773865997
430.07318348079067370.1463669615813470.926816519209326
440.1157643486010260.2315286972020510.884235651398974
450.1965246798524740.3930493597049490.803475320147526

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.405071279018884 & 0.810142558037769 & 0.594928720981116 \tabularnewline
17 & 0.257128781594800 & 0.514257563189599 & 0.7428712184052 \tabularnewline
18 & 0.261586775669138 & 0.523173551338276 & 0.738413224330862 \tabularnewline
19 & 0.489501291843967 & 0.979002583687934 & 0.510498708156033 \tabularnewline
20 & 0.964647663358868 & 0.0707046732822645 & 0.0353523366411322 \tabularnewline
21 & 0.951693750654695 & 0.0966124986906091 & 0.0483062493453046 \tabularnewline
22 & 0.94930925419321 & 0.101381491613580 & 0.0506907458067902 \tabularnewline
23 & 0.953688452997632 & 0.0926230940047352 & 0.0463115470023676 \tabularnewline
24 & 0.966362832117088 & 0.0672743357658242 & 0.0336371678829121 \tabularnewline
25 & 0.964210395491895 & 0.0715792090162093 & 0.0357896045081047 \tabularnewline
26 & 0.944981243223733 & 0.110037513552534 & 0.0550187567762668 \tabularnewline
27 & 0.912141472789958 & 0.175717054420084 & 0.0878585272100422 \tabularnewline
28 & 0.866559125826477 & 0.266881748347047 & 0.133440874173523 \tabularnewline
29 & 0.810261225170478 & 0.379477549659044 & 0.189738774829522 \tabularnewline
30 & 0.749662402331894 & 0.500675195336213 & 0.250337597668106 \tabularnewline
31 & 0.681061825501475 & 0.63787634899705 & 0.318938174498525 \tabularnewline
32 & 0.66421273832309 & 0.671574523353822 & 0.335787261676911 \tabularnewline
33 & 0.598290304130007 & 0.803419391739985 & 0.401709695869993 \tabularnewline
34 & 0.549681424948808 & 0.900637150102384 & 0.450318575051192 \tabularnewline
35 & 0.453237961303298 & 0.906475922606595 & 0.546762038696702 \tabularnewline
36 & 0.40682603215476 & 0.81365206430952 & 0.59317396784524 \tabularnewline
37 & 0.341917219104340 & 0.683834438208681 & 0.65808278089566 \tabularnewline
38 & 0.289154246547123 & 0.578308493094247 & 0.710845753452877 \tabularnewline
39 & 0.204276211329097 & 0.408552422658195 & 0.795723788670903 \tabularnewline
40 & 0.208809895661752 & 0.417619791323504 & 0.791190104338248 \tabularnewline
41 & 0.181750602305841 & 0.363501204611683 & 0.818249397694159 \tabularnewline
42 & 0.12633226134003 & 0.25266452268006 & 0.87366773865997 \tabularnewline
43 & 0.0731834807906737 & 0.146366961581347 & 0.926816519209326 \tabularnewline
44 & 0.115764348601026 & 0.231528697202051 & 0.884235651398974 \tabularnewline
45 & 0.196524679852474 & 0.393049359704949 & 0.803475320147526 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69767&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.405071279018884[/C][C]0.810142558037769[/C][C]0.594928720981116[/C][/ROW]
[ROW][C]17[/C][C]0.257128781594800[/C][C]0.514257563189599[/C][C]0.7428712184052[/C][/ROW]
[ROW][C]18[/C][C]0.261586775669138[/C][C]0.523173551338276[/C][C]0.738413224330862[/C][/ROW]
[ROW][C]19[/C][C]0.489501291843967[/C][C]0.979002583687934[/C][C]0.510498708156033[/C][/ROW]
[ROW][C]20[/C][C]0.964647663358868[/C][C]0.0707046732822645[/C][C]0.0353523366411322[/C][/ROW]
[ROW][C]21[/C][C]0.951693750654695[/C][C]0.0966124986906091[/C][C]0.0483062493453046[/C][/ROW]
[ROW][C]22[/C][C]0.94930925419321[/C][C]0.101381491613580[/C][C]0.0506907458067902[/C][/ROW]
[ROW][C]23[/C][C]0.953688452997632[/C][C]0.0926230940047352[/C][C]0.0463115470023676[/C][/ROW]
[ROW][C]24[/C][C]0.966362832117088[/C][C]0.0672743357658242[/C][C]0.0336371678829121[/C][/ROW]
[ROW][C]25[/C][C]0.964210395491895[/C][C]0.0715792090162093[/C][C]0.0357896045081047[/C][/ROW]
[ROW][C]26[/C][C]0.944981243223733[/C][C]0.110037513552534[/C][C]0.0550187567762668[/C][/ROW]
[ROW][C]27[/C][C]0.912141472789958[/C][C]0.175717054420084[/C][C]0.0878585272100422[/C][/ROW]
[ROW][C]28[/C][C]0.866559125826477[/C][C]0.266881748347047[/C][C]0.133440874173523[/C][/ROW]
[ROW][C]29[/C][C]0.810261225170478[/C][C]0.379477549659044[/C][C]0.189738774829522[/C][/ROW]
[ROW][C]30[/C][C]0.749662402331894[/C][C]0.500675195336213[/C][C]0.250337597668106[/C][/ROW]
[ROW][C]31[/C][C]0.681061825501475[/C][C]0.63787634899705[/C][C]0.318938174498525[/C][/ROW]
[ROW][C]32[/C][C]0.66421273832309[/C][C]0.671574523353822[/C][C]0.335787261676911[/C][/ROW]
[ROW][C]33[/C][C]0.598290304130007[/C][C]0.803419391739985[/C][C]0.401709695869993[/C][/ROW]
[ROW][C]34[/C][C]0.549681424948808[/C][C]0.900637150102384[/C][C]0.450318575051192[/C][/ROW]
[ROW][C]35[/C][C]0.453237961303298[/C][C]0.906475922606595[/C][C]0.546762038696702[/C][/ROW]
[ROW][C]36[/C][C]0.40682603215476[/C][C]0.81365206430952[/C][C]0.59317396784524[/C][/ROW]
[ROW][C]37[/C][C]0.341917219104340[/C][C]0.683834438208681[/C][C]0.65808278089566[/C][/ROW]
[ROW][C]38[/C][C]0.289154246547123[/C][C]0.578308493094247[/C][C]0.710845753452877[/C][/ROW]
[ROW][C]39[/C][C]0.204276211329097[/C][C]0.408552422658195[/C][C]0.795723788670903[/C][/ROW]
[ROW][C]40[/C][C]0.208809895661752[/C][C]0.417619791323504[/C][C]0.791190104338248[/C][/ROW]
[ROW][C]41[/C][C]0.181750602305841[/C][C]0.363501204611683[/C][C]0.818249397694159[/C][/ROW]
[ROW][C]42[/C][C]0.12633226134003[/C][C]0.25266452268006[/C][C]0.87366773865997[/C][/ROW]
[ROW][C]43[/C][C]0.0731834807906737[/C][C]0.146366961581347[/C][C]0.926816519209326[/C][/ROW]
[ROW][C]44[/C][C]0.115764348601026[/C][C]0.231528697202051[/C][C]0.884235651398974[/C][/ROW]
[ROW][C]45[/C][C]0.196524679852474[/C][C]0.393049359704949[/C][C]0.803475320147526[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69767&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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.4050712790188840.8101425580377690.594928720981116
170.2571287815948000.5142575631895990.7428712184052
180.2615867756691380.5231735513382760.738413224330862
190.4895012918439670.9790025836879340.510498708156033
200.9646476633588680.07070467328226450.0353523366411322
210.9516937506546950.09661249869060910.0483062493453046
220.949309254193210.1013814916135800.0506907458067902
230.9536884529976320.09262309400473520.0463115470023676
240.9663628321170880.06727433576582420.0336371678829121
250.9642103954918950.07157920901620930.0357896045081047
260.9449812432237330.1100375135525340.0550187567762668
270.9121414727899580.1757170544200840.0878585272100422
280.8665591258264770.2668817483470470.133440874173523
290.8102612251704780.3794775496590440.189738774829522
300.7496624023318940.5006751953362130.250337597668106
310.6810618255014750.637876348997050.318938174498525
320.664212738323090.6715745233538220.335787261676911
330.5982903041300070.8034193917399850.401709695869993
340.5496814249488080.9006371501023840.450318575051192
350.4532379613032980.9064759226065950.546762038696702
360.406826032154760.813652064309520.59317396784524
370.3419172191043400.6838344382086810.65808278089566
380.2891542465471230.5783084930942470.710845753452877
390.2042762113290970.4085524226581950.795723788670903
400.2088098956617520.4176197913235040.791190104338248
410.1817506023058410.3635012046116830.818249397694159
420.126332261340030.252664522680060.87366773865997
430.07318348079067370.1463669615813470.926816519209326
440.1157643486010260.2315286972020510.884235651398974
450.1965246798524740.3930493597049490.803475320147526







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 level50.166666666666667NOK

\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 & 5 & 0.166666666666667 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69767&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]5[/C][C]0.166666666666667[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69767&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69767&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 level50.166666666666667NOK



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