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:11:18 -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/t1261271524xbylxgx6luogcws.htm/, Retrieved Sat, 27 Apr 2024 06:52:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69771, Retrieved Sat, 27 Apr 2024 06:52:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact156
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-20 15:12:04] [898d317f4f946fbfcc4d07699283d43b]
-    D  [Multiple Regression] [Model 3] [2009-12-19 14:46:02] [a542c511726eba04a1fc2f4bd37a90f8]
-    D      [Multiple Regression] [Model 3] [2009-12-20 01:11:18] [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=69771&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=69771&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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] = + 2680.53846153846 -160.592948717948x[t] + 275.731997863248M1[t] -161.869337606838M2[t] -220.114262820513M3[t] -186.959188034188M4[t] + 4.1958867521367M5[t] -370.449038461539M6[t] -174.893963675214M7[t] + 24.061111111111M8[t] -117.383814102564M9[t] + 122.489850427350M10[t] + 27.644925213675M11[t] -5.1550747863248t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  2680.53846153846 -160.592948717948x[t] +  275.731997863248M1[t] -161.869337606838M2[t] -220.114262820513M3[t] -186.959188034188M4[t] +  4.1958867521367M5[t] -370.449038461539M6[t] -174.893963675214M7[t] +  24.061111111111M8[t] -117.383814102564M9[t] +  122.489850427350M10[t] +  27.644925213675M11[t] -5.1550747863248t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69771&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  2680.53846153846 -160.592948717948x[t] +  275.731997863248M1[t] -161.869337606838M2[t] -220.114262820513M3[t] -186.959188034188M4[t] +  4.1958867521367M5[t] -370.449038461539M6[t] -174.893963675214M7[t] +  24.061111111111M8[t] -117.383814102564M9[t] +  122.489850427350M10[t] +  27.644925213675M11[t] -5.1550747863248t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69771&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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] = + 2680.53846153846 -160.592948717948x[t] + 275.731997863248M1[t] -161.869337606838M2[t] -220.114262820513M3[t] -186.959188034188M4[t] + 4.1958867521367M5[t] -370.449038461539M6[t] -174.893963675214M7[t] + 24.061111111111M8[t] -117.383814102564M9[t] + 122.489850427350M10[t] + 27.644925213675M11[t] -5.1550747863248t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2680.53846153846149.45217717.935800
x-160.592948717948144.28271-1.1130.271350.135675
M1275.731997863248167.7275731.64390.1068650.053432
M2-161.869337606838176.134943-0.9190.3627840.181392
M3-220.114262820513175.815035-1.2520.2167770.108389
M4-186.959188034188175.589494-1.06480.2924280.146214
M54.1958867521367175.4586830.02390.9810230.490511
M6-370.449038461539175.422814-2.11170.0400520.020026
M7-174.893963675214175.481946-0.99660.3240380.162019
M824.061111111111175.6359810.1370.8916210.44581
M9-117.383814102564175.884672-0.66740.5077860.253893
M10122.489850427350175.0190250.69990.4874610.24373
M1127.644925213675174.8761170.15810.8750690.437534
t-5.15507478632484.082598-1.26270.2129280.106464

\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) & 2680.53846153846 & 149.452177 & 17.9358 & 0 & 0 \tabularnewline
x & -160.592948717948 & 144.28271 & -1.113 & 0.27135 & 0.135675 \tabularnewline
M1 & 275.731997863248 & 167.727573 & 1.6439 & 0.106865 & 0.053432 \tabularnewline
M2 & -161.869337606838 & 176.134943 & -0.919 & 0.362784 & 0.181392 \tabularnewline
M3 & -220.114262820513 & 175.815035 & -1.252 & 0.216777 & 0.108389 \tabularnewline
M4 & -186.959188034188 & 175.589494 & -1.0648 & 0.292428 & 0.146214 \tabularnewline
M5 & 4.1958867521367 & 175.458683 & 0.0239 & 0.981023 & 0.490511 \tabularnewline
M6 & -370.449038461539 & 175.422814 & -2.1117 & 0.040052 & 0.020026 \tabularnewline
M7 & -174.893963675214 & 175.481946 & -0.9966 & 0.324038 & 0.162019 \tabularnewline
M8 & 24.061111111111 & 175.635981 & 0.137 & 0.891621 & 0.44581 \tabularnewline
M9 & -117.383814102564 & 175.884672 & -0.6674 & 0.507786 & 0.253893 \tabularnewline
M10 & 122.489850427350 & 175.019025 & 0.6999 & 0.487461 & 0.24373 \tabularnewline
M11 & 27.644925213675 & 174.876117 & 0.1581 & 0.875069 & 0.437534 \tabularnewline
t & -5.1550747863248 & 4.082598 & -1.2627 & 0.212928 & 0.106464 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69771&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]2680.53846153846[/C][C]149.452177[/C][C]17.9358[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-160.592948717948[/C][C]144.28271[/C][C]-1.113[/C][C]0.27135[/C][C]0.135675[/C][/ROW]
[ROW][C]M1[/C][C]275.731997863248[/C][C]167.727573[/C][C]1.6439[/C][C]0.106865[/C][C]0.053432[/C][/ROW]
[ROW][C]M2[/C][C]-161.869337606838[/C][C]176.134943[/C][C]-0.919[/C][C]0.362784[/C][C]0.181392[/C][/ROW]
[ROW][C]M3[/C][C]-220.114262820513[/C][C]175.815035[/C][C]-1.252[/C][C]0.216777[/C][C]0.108389[/C][/ROW]
[ROW][C]M4[/C][C]-186.959188034188[/C][C]175.589494[/C][C]-1.0648[/C][C]0.292428[/C][C]0.146214[/C][/ROW]
[ROW][C]M5[/C][C]4.1958867521367[/C][C]175.458683[/C][C]0.0239[/C][C]0.981023[/C][C]0.490511[/C][/ROW]
[ROW][C]M6[/C][C]-370.449038461539[/C][C]175.422814[/C][C]-2.1117[/C][C]0.040052[/C][C]0.020026[/C][/ROW]
[ROW][C]M7[/C][C]-174.893963675214[/C][C]175.481946[/C][C]-0.9966[/C][C]0.324038[/C][C]0.162019[/C][/ROW]
[ROW][C]M8[/C][C]24.061111111111[/C][C]175.635981[/C][C]0.137[/C][C]0.891621[/C][C]0.44581[/C][/ROW]
[ROW][C]M9[/C][C]-117.383814102564[/C][C]175.884672[/C][C]-0.6674[/C][C]0.507786[/C][C]0.253893[/C][/ROW]
[ROW][C]M10[/C][C]122.489850427350[/C][C]175.019025[/C][C]0.6999[/C][C]0.487461[/C][C]0.24373[/C][/ROW]
[ROW][C]M11[/C][C]27.644925213675[/C][C]174.876117[/C][C]0.1581[/C][C]0.875069[/C][C]0.437534[/C][/ROW]
[ROW][C]t[/C][C]-5.1550747863248[/C][C]4.082598[/C][C]-1.2627[/C][C]0.212928[/C][C]0.106464[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69771&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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)2680.53846153846149.45217717.935800
x-160.592948717948144.28271-1.1130.271350.135675
M1275.731997863248167.7275731.64390.1068650.053432
M2-161.869337606838176.134943-0.9190.3627840.181392
M3-220.114262820513175.815035-1.2520.2167770.108389
M4-186.959188034188175.589494-1.06480.2924280.146214
M54.1958867521367175.4586830.02390.9810230.490511
M6-370.449038461539175.422814-2.11170.0400520.020026
M7-174.893963675214175.481946-0.99660.3240380.162019
M824.061111111111175.6359810.1370.8916210.44581
M9-117.383814102564175.884672-0.66740.5077860.253893
M10122.489850427350175.0190250.69990.4874610.24373
M1127.644925213675174.8761170.15810.8750690.437534
t-5.15507478632484.082598-1.26270.2129280.106464







Multiple Linear Regression - Regression Statistics
Multiple R0.681821185658193
R-squared0.464880129212344
Adjusted R-squared0.316868250058311
F-TEST (value)3.14082985682895
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.00197903783503728
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation276.428059356235
Sum Squared Residuals3591386.18397436

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.681821185658193 \tabularnewline
R-squared & 0.464880129212344 \tabularnewline
Adjusted R-squared & 0.316868250058311 \tabularnewline
F-TEST (value) & 3.14082985682895 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00197903783503728 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 276.428059356235 \tabularnewline
Sum Squared Residuals & 3591386.18397436 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69771&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.681821185658193[/C][/ROW]
[ROW][C]R-squared[/C][C]0.464880129212344[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.316868250058311[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.14082985682895[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.00197903783503728[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]276.428059356235[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3591386.18397436[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69771&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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.681821185658193
R-squared0.464880129212344
Adjusted R-squared0.316868250058311
F-TEST (value)3.14082985682895
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.00197903783503728
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation276.428059356235
Sum Squared Residuals3591386.18397436







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
130162951.1153846153864.8846153846178
221552508.35897435897-353.358974358975
321722444.95897435897-272.958974358973
421502472.95897435897-322.958974358975
525332658.95897435897-125.958974358975
620582279.15897435897-221.158974358974
721602469.55897435897-309.558974358974
822602663.35897435897-403.358974358974
924982516.75897435897-18.7589743589748
1026952751.47756410256-56.4775641025641
1127992651.47756410256147.522435897436
1229462618.67756410256327.322435897436
1329302889.2544871794940.745512820512
1423182446.49807692308-128.498076923077
1525402383.09807692308156.901923076923
1625702411.09807692308158.901923076923
1726692597.0980769230871.9019230769229
1824502217.29807692308232.701923076923
1928422407.69807692308434.301923076923
2034402601.49807692308838.501923076923
2126782454.89807692308223.101923076923
2229812689.61666666667291.383333333333
2322602589.61666666667-329.616666666667
2428442556.81666666667287.183333333333
2525462827.39358974359-281.393589743590
2624562384.6371794871871.3628205128206
2722952321.23717948718-26.2371794871795
2823792349.2371794871829.7628205128207
2924792535.23717948718-56.2371794871795
3020572155.43717948718-98.4371794871793
3122802345.83717948718-65.8371794871794
3223512539.63717948718-188.637179487179
3322762393.03717948718-117.037179487179
3425482467.1628205128280.8371794871794
3523112367.16282051282-56.1628205128206
3622012334.36282051282-133.362820512821
3727252604.93974358974120.060256410256
3824082162.18333333333245.816666666667
3921392098.7833333333340.2166666666665
4018982126.78333333333-228.783333333333
4125372312.78333333333224.216666666666
4220681932.98333333333135.016666666667
4320632123.38333333333-60.3833333333333
4425202317.18333333333202.816666666667
4524342170.58333333333263.416666666667
4621902405.30192307692-215.301923076923
4727942305.30192307692488.698076923077
4820702272.50192307692-202.501923076923
4926152543.0788461538571.9211538461533
5022652100.32243589744164.677564102564
5121392036.92243589744102.077564102564
5224282064.92243589744363.077564102564
5321372250.92243589744-113.922435897436
5418231871.12243589744-48.1224358974356
5520632061.522435897441.47756410256428
5618062255.32243589744-449.322435897436
5717582108.72243589744-350.722435897436
5822432343.44102564103-100.441025641025
5919932243.44102564103-250.441025641025
6019322210.64102564103-278.641025641025
6124652481.21794871795-16.2179487179491

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3016 & 2951.11538461538 & 64.8846153846178 \tabularnewline
2 & 2155 & 2508.35897435897 & -353.358974358975 \tabularnewline
3 & 2172 & 2444.95897435897 & -272.958974358973 \tabularnewline
4 & 2150 & 2472.95897435897 & -322.958974358975 \tabularnewline
5 & 2533 & 2658.95897435897 & -125.958974358975 \tabularnewline
6 & 2058 & 2279.15897435897 & -221.158974358974 \tabularnewline
7 & 2160 & 2469.55897435897 & -309.558974358974 \tabularnewline
8 & 2260 & 2663.35897435897 & -403.358974358974 \tabularnewline
9 & 2498 & 2516.75897435897 & -18.7589743589748 \tabularnewline
10 & 2695 & 2751.47756410256 & -56.4775641025641 \tabularnewline
11 & 2799 & 2651.47756410256 & 147.522435897436 \tabularnewline
12 & 2946 & 2618.67756410256 & 327.322435897436 \tabularnewline
13 & 2930 & 2889.25448717949 & 40.745512820512 \tabularnewline
14 & 2318 & 2446.49807692308 & -128.498076923077 \tabularnewline
15 & 2540 & 2383.09807692308 & 156.901923076923 \tabularnewline
16 & 2570 & 2411.09807692308 & 158.901923076923 \tabularnewline
17 & 2669 & 2597.09807692308 & 71.9019230769229 \tabularnewline
18 & 2450 & 2217.29807692308 & 232.701923076923 \tabularnewline
19 & 2842 & 2407.69807692308 & 434.301923076923 \tabularnewline
20 & 3440 & 2601.49807692308 & 838.501923076923 \tabularnewline
21 & 2678 & 2454.89807692308 & 223.101923076923 \tabularnewline
22 & 2981 & 2689.61666666667 & 291.383333333333 \tabularnewline
23 & 2260 & 2589.61666666667 & -329.616666666667 \tabularnewline
24 & 2844 & 2556.81666666667 & 287.183333333333 \tabularnewline
25 & 2546 & 2827.39358974359 & -281.393589743590 \tabularnewline
26 & 2456 & 2384.63717948718 & 71.3628205128206 \tabularnewline
27 & 2295 & 2321.23717948718 & -26.2371794871795 \tabularnewline
28 & 2379 & 2349.23717948718 & 29.7628205128207 \tabularnewline
29 & 2479 & 2535.23717948718 & -56.2371794871795 \tabularnewline
30 & 2057 & 2155.43717948718 & -98.4371794871793 \tabularnewline
31 & 2280 & 2345.83717948718 & -65.8371794871794 \tabularnewline
32 & 2351 & 2539.63717948718 & -188.637179487179 \tabularnewline
33 & 2276 & 2393.03717948718 & -117.037179487179 \tabularnewline
34 & 2548 & 2467.16282051282 & 80.8371794871794 \tabularnewline
35 & 2311 & 2367.16282051282 & -56.1628205128206 \tabularnewline
36 & 2201 & 2334.36282051282 & -133.362820512821 \tabularnewline
37 & 2725 & 2604.93974358974 & 120.060256410256 \tabularnewline
38 & 2408 & 2162.18333333333 & 245.816666666667 \tabularnewline
39 & 2139 & 2098.78333333333 & 40.2166666666665 \tabularnewline
40 & 1898 & 2126.78333333333 & -228.783333333333 \tabularnewline
41 & 2537 & 2312.78333333333 & 224.216666666666 \tabularnewline
42 & 2068 & 1932.98333333333 & 135.016666666667 \tabularnewline
43 & 2063 & 2123.38333333333 & -60.3833333333333 \tabularnewline
44 & 2520 & 2317.18333333333 & 202.816666666667 \tabularnewline
45 & 2434 & 2170.58333333333 & 263.416666666667 \tabularnewline
46 & 2190 & 2405.30192307692 & -215.301923076923 \tabularnewline
47 & 2794 & 2305.30192307692 & 488.698076923077 \tabularnewline
48 & 2070 & 2272.50192307692 & -202.501923076923 \tabularnewline
49 & 2615 & 2543.07884615385 & 71.9211538461533 \tabularnewline
50 & 2265 & 2100.32243589744 & 164.677564102564 \tabularnewline
51 & 2139 & 2036.92243589744 & 102.077564102564 \tabularnewline
52 & 2428 & 2064.92243589744 & 363.077564102564 \tabularnewline
53 & 2137 & 2250.92243589744 & -113.922435897436 \tabularnewline
54 & 1823 & 1871.12243589744 & -48.1224358974356 \tabularnewline
55 & 2063 & 2061.52243589744 & 1.47756410256428 \tabularnewline
56 & 1806 & 2255.32243589744 & -449.322435897436 \tabularnewline
57 & 1758 & 2108.72243589744 & -350.722435897436 \tabularnewline
58 & 2243 & 2343.44102564103 & -100.441025641025 \tabularnewline
59 & 1993 & 2243.44102564103 & -250.441025641025 \tabularnewline
60 & 1932 & 2210.64102564103 & -278.641025641025 \tabularnewline
61 & 2465 & 2481.21794871795 & -16.2179487179491 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69771&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]2951.11538461538[/C][C]64.8846153846178[/C][/ROW]
[ROW][C]2[/C][C]2155[/C][C]2508.35897435897[/C][C]-353.358974358975[/C][/ROW]
[ROW][C]3[/C][C]2172[/C][C]2444.95897435897[/C][C]-272.958974358973[/C][/ROW]
[ROW][C]4[/C][C]2150[/C][C]2472.95897435897[/C][C]-322.958974358975[/C][/ROW]
[ROW][C]5[/C][C]2533[/C][C]2658.95897435897[/C][C]-125.958974358975[/C][/ROW]
[ROW][C]6[/C][C]2058[/C][C]2279.15897435897[/C][C]-221.158974358974[/C][/ROW]
[ROW][C]7[/C][C]2160[/C][C]2469.55897435897[/C][C]-309.558974358974[/C][/ROW]
[ROW][C]8[/C][C]2260[/C][C]2663.35897435897[/C][C]-403.358974358974[/C][/ROW]
[ROW][C]9[/C][C]2498[/C][C]2516.75897435897[/C][C]-18.7589743589748[/C][/ROW]
[ROW][C]10[/C][C]2695[/C][C]2751.47756410256[/C][C]-56.4775641025641[/C][/ROW]
[ROW][C]11[/C][C]2799[/C][C]2651.47756410256[/C][C]147.522435897436[/C][/ROW]
[ROW][C]12[/C][C]2946[/C][C]2618.67756410256[/C][C]327.322435897436[/C][/ROW]
[ROW][C]13[/C][C]2930[/C][C]2889.25448717949[/C][C]40.745512820512[/C][/ROW]
[ROW][C]14[/C][C]2318[/C][C]2446.49807692308[/C][C]-128.498076923077[/C][/ROW]
[ROW][C]15[/C][C]2540[/C][C]2383.09807692308[/C][C]156.901923076923[/C][/ROW]
[ROW][C]16[/C][C]2570[/C][C]2411.09807692308[/C][C]158.901923076923[/C][/ROW]
[ROW][C]17[/C][C]2669[/C][C]2597.09807692308[/C][C]71.9019230769229[/C][/ROW]
[ROW][C]18[/C][C]2450[/C][C]2217.29807692308[/C][C]232.701923076923[/C][/ROW]
[ROW][C]19[/C][C]2842[/C][C]2407.69807692308[/C][C]434.301923076923[/C][/ROW]
[ROW][C]20[/C][C]3440[/C][C]2601.49807692308[/C][C]838.501923076923[/C][/ROW]
[ROW][C]21[/C][C]2678[/C][C]2454.89807692308[/C][C]223.101923076923[/C][/ROW]
[ROW][C]22[/C][C]2981[/C][C]2689.61666666667[/C][C]291.383333333333[/C][/ROW]
[ROW][C]23[/C][C]2260[/C][C]2589.61666666667[/C][C]-329.616666666667[/C][/ROW]
[ROW][C]24[/C][C]2844[/C][C]2556.81666666667[/C][C]287.183333333333[/C][/ROW]
[ROW][C]25[/C][C]2546[/C][C]2827.39358974359[/C][C]-281.393589743590[/C][/ROW]
[ROW][C]26[/C][C]2456[/C][C]2384.63717948718[/C][C]71.3628205128206[/C][/ROW]
[ROW][C]27[/C][C]2295[/C][C]2321.23717948718[/C][C]-26.2371794871795[/C][/ROW]
[ROW][C]28[/C][C]2379[/C][C]2349.23717948718[/C][C]29.7628205128207[/C][/ROW]
[ROW][C]29[/C][C]2479[/C][C]2535.23717948718[/C][C]-56.2371794871795[/C][/ROW]
[ROW][C]30[/C][C]2057[/C][C]2155.43717948718[/C][C]-98.4371794871793[/C][/ROW]
[ROW][C]31[/C][C]2280[/C][C]2345.83717948718[/C][C]-65.8371794871794[/C][/ROW]
[ROW][C]32[/C][C]2351[/C][C]2539.63717948718[/C][C]-188.637179487179[/C][/ROW]
[ROW][C]33[/C][C]2276[/C][C]2393.03717948718[/C][C]-117.037179487179[/C][/ROW]
[ROW][C]34[/C][C]2548[/C][C]2467.16282051282[/C][C]80.8371794871794[/C][/ROW]
[ROW][C]35[/C][C]2311[/C][C]2367.16282051282[/C][C]-56.1628205128206[/C][/ROW]
[ROW][C]36[/C][C]2201[/C][C]2334.36282051282[/C][C]-133.362820512821[/C][/ROW]
[ROW][C]37[/C][C]2725[/C][C]2604.93974358974[/C][C]120.060256410256[/C][/ROW]
[ROW][C]38[/C][C]2408[/C][C]2162.18333333333[/C][C]245.816666666667[/C][/ROW]
[ROW][C]39[/C][C]2139[/C][C]2098.78333333333[/C][C]40.2166666666665[/C][/ROW]
[ROW][C]40[/C][C]1898[/C][C]2126.78333333333[/C][C]-228.783333333333[/C][/ROW]
[ROW][C]41[/C][C]2537[/C][C]2312.78333333333[/C][C]224.216666666666[/C][/ROW]
[ROW][C]42[/C][C]2068[/C][C]1932.98333333333[/C][C]135.016666666667[/C][/ROW]
[ROW][C]43[/C][C]2063[/C][C]2123.38333333333[/C][C]-60.3833333333333[/C][/ROW]
[ROW][C]44[/C][C]2520[/C][C]2317.18333333333[/C][C]202.816666666667[/C][/ROW]
[ROW][C]45[/C][C]2434[/C][C]2170.58333333333[/C][C]263.416666666667[/C][/ROW]
[ROW][C]46[/C][C]2190[/C][C]2405.30192307692[/C][C]-215.301923076923[/C][/ROW]
[ROW][C]47[/C][C]2794[/C][C]2305.30192307692[/C][C]488.698076923077[/C][/ROW]
[ROW][C]48[/C][C]2070[/C][C]2272.50192307692[/C][C]-202.501923076923[/C][/ROW]
[ROW][C]49[/C][C]2615[/C][C]2543.07884615385[/C][C]71.9211538461533[/C][/ROW]
[ROW][C]50[/C][C]2265[/C][C]2100.32243589744[/C][C]164.677564102564[/C][/ROW]
[ROW][C]51[/C][C]2139[/C][C]2036.92243589744[/C][C]102.077564102564[/C][/ROW]
[ROW][C]52[/C][C]2428[/C][C]2064.92243589744[/C][C]363.077564102564[/C][/ROW]
[ROW][C]53[/C][C]2137[/C][C]2250.92243589744[/C][C]-113.922435897436[/C][/ROW]
[ROW][C]54[/C][C]1823[/C][C]1871.12243589744[/C][C]-48.1224358974356[/C][/ROW]
[ROW][C]55[/C][C]2063[/C][C]2061.52243589744[/C][C]1.47756410256428[/C][/ROW]
[ROW][C]56[/C][C]1806[/C][C]2255.32243589744[/C][C]-449.322435897436[/C][/ROW]
[ROW][C]57[/C][C]1758[/C][C]2108.72243589744[/C][C]-350.722435897436[/C][/ROW]
[ROW][C]58[/C][C]2243[/C][C]2343.44102564103[/C][C]-100.441025641025[/C][/ROW]
[ROW][C]59[/C][C]1993[/C][C]2243.44102564103[/C][C]-250.441025641025[/C][/ROW]
[ROW][C]60[/C][C]1932[/C][C]2210.64102564103[/C][C]-278.641025641025[/C][/ROW]
[ROW][C]61[/C][C]2465[/C][C]2481.21794871795[/C][C]-16.2179487179491[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69771&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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
130162951.1153846153864.8846153846178
221552508.35897435897-353.358974358975
321722444.95897435897-272.958974358973
421502472.95897435897-322.958974358975
525332658.95897435897-125.958974358975
620582279.15897435897-221.158974358974
721602469.55897435897-309.558974358974
822602663.35897435897-403.358974358974
924982516.75897435897-18.7589743589748
1026952751.47756410256-56.4775641025641
1127992651.47756410256147.522435897436
1229462618.67756410256327.322435897436
1329302889.2544871794940.745512820512
1423182446.49807692308-128.498076923077
1525402383.09807692308156.901923076923
1625702411.09807692308158.901923076923
1726692597.0980769230871.9019230769229
1824502217.29807692308232.701923076923
1928422407.69807692308434.301923076923
2034402601.49807692308838.501923076923
2126782454.89807692308223.101923076923
2229812689.61666666667291.383333333333
2322602589.61666666667-329.616666666667
2428442556.81666666667287.183333333333
2525462827.39358974359-281.393589743590
2624562384.6371794871871.3628205128206
2722952321.23717948718-26.2371794871795
2823792349.2371794871829.7628205128207
2924792535.23717948718-56.2371794871795
3020572155.43717948718-98.4371794871793
3122802345.83717948718-65.8371794871794
3223512539.63717948718-188.637179487179
3322762393.03717948718-117.037179487179
3425482467.1628205128280.8371794871794
3523112367.16282051282-56.1628205128206
3622012334.36282051282-133.362820512821
3727252604.93974358974120.060256410256
3824082162.18333333333245.816666666667
3921392098.7833333333340.2166666666665
4018982126.78333333333-228.783333333333
4125372312.78333333333224.216666666666
4220681932.98333333333135.016666666667
4320632123.38333333333-60.3833333333333
4425202317.18333333333202.816666666667
4524342170.58333333333263.416666666667
4621902405.30192307692-215.301923076923
4727942305.30192307692488.698076923077
4820702272.50192307692-202.501923076923
4926152543.0788461538571.9211538461533
5022652100.32243589744164.677564102564
5121392036.92243589744102.077564102564
5224282064.92243589744363.077564102564
5321372250.92243589744-113.922435897436
5418231871.12243589744-48.1224358974356
5520632061.522435897441.47756410256428
5618062255.32243589744-449.322435897436
5717582108.72243589744-350.722435897436
5822432343.44102564103-100.441025641025
5919932243.44102564103-250.441025641025
6019322210.64102564103-278.641025641025
6124652481.21794871795-16.2179487179491







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2442320660862290.4884641321724580.755767933913771
180.1530333260996880.3060666521993770.846966673900312
190.2404377900379190.4808755800758380.759562209962081
200.8313459773594910.3373080452810170.168654022640509
210.7780515472964240.4438969054071530.221948452703576
220.7393619056543880.5212761886912250.260638094345612
230.931226559694590.1375468806108200.0687734403054099
240.9602807041955960.07943859160880790.0397192958044039
250.9867346360891420.0265307278217150.0132653639108575
260.9752697244235030.04946055115299320.0247302755764966
270.9621143129978420.0757713740043150.0378856870021575
280.9389814670136180.1220370659727640.0610185329863818
290.9130201101300580.1739597797398840.086979889869942
300.8846530221857750.2306939556284490.115346977814225
310.846834416946980.3063311661060420.153165583053021
320.8400344414953710.3199311170092580.159965558504629
330.7906691391503190.4186617216993620.209330860849681
340.7121820567103310.5756358865793380.287817943289669
350.6816508265167730.6366983469664530.318349173483227
360.6184409619367790.7631180761264420.381559038063221
370.5392839148243370.9214321703513260.460716085175663
380.4662730523690940.9325461047381870.533726947630906
390.3793226290362240.7586452580724490.620677370963776
400.6561446553267020.6877106893465960.343855344673298
410.5408075476553070.9183849046893870.459192452344693
420.4102980042349440.8205960084698880.589701995765056
430.3690941758353930.7381883516707860.630905824164607
440.3020464400158240.6040928800316470.697953559984176

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.244232066086229 & 0.488464132172458 & 0.755767933913771 \tabularnewline
18 & 0.153033326099688 & 0.306066652199377 & 0.846966673900312 \tabularnewline
19 & 0.240437790037919 & 0.480875580075838 & 0.759562209962081 \tabularnewline
20 & 0.831345977359491 & 0.337308045281017 & 0.168654022640509 \tabularnewline
21 & 0.778051547296424 & 0.443896905407153 & 0.221948452703576 \tabularnewline
22 & 0.739361905654388 & 0.521276188691225 & 0.260638094345612 \tabularnewline
23 & 0.93122655969459 & 0.137546880610820 & 0.0687734403054099 \tabularnewline
24 & 0.960280704195596 & 0.0794385916088079 & 0.0397192958044039 \tabularnewline
25 & 0.986734636089142 & 0.026530727821715 & 0.0132653639108575 \tabularnewline
26 & 0.975269724423503 & 0.0494605511529932 & 0.0247302755764966 \tabularnewline
27 & 0.962114312997842 & 0.075771374004315 & 0.0378856870021575 \tabularnewline
28 & 0.938981467013618 & 0.122037065972764 & 0.0610185329863818 \tabularnewline
29 & 0.913020110130058 & 0.173959779739884 & 0.086979889869942 \tabularnewline
30 & 0.884653022185775 & 0.230693955628449 & 0.115346977814225 \tabularnewline
31 & 0.84683441694698 & 0.306331166106042 & 0.153165583053021 \tabularnewline
32 & 0.840034441495371 & 0.319931117009258 & 0.159965558504629 \tabularnewline
33 & 0.790669139150319 & 0.418661721699362 & 0.209330860849681 \tabularnewline
34 & 0.712182056710331 & 0.575635886579338 & 0.287817943289669 \tabularnewline
35 & 0.681650826516773 & 0.636698346966453 & 0.318349173483227 \tabularnewline
36 & 0.618440961936779 & 0.763118076126442 & 0.381559038063221 \tabularnewline
37 & 0.539283914824337 & 0.921432170351326 & 0.460716085175663 \tabularnewline
38 & 0.466273052369094 & 0.932546104738187 & 0.533726947630906 \tabularnewline
39 & 0.379322629036224 & 0.758645258072449 & 0.620677370963776 \tabularnewline
40 & 0.656144655326702 & 0.687710689346596 & 0.343855344673298 \tabularnewline
41 & 0.540807547655307 & 0.918384904689387 & 0.459192452344693 \tabularnewline
42 & 0.410298004234944 & 0.820596008469888 & 0.589701995765056 \tabularnewline
43 & 0.369094175835393 & 0.738188351670786 & 0.630905824164607 \tabularnewline
44 & 0.302046440015824 & 0.604092880031647 & 0.697953559984176 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69771&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.244232066086229[/C][C]0.488464132172458[/C][C]0.755767933913771[/C][/ROW]
[ROW][C]18[/C][C]0.153033326099688[/C][C]0.306066652199377[/C][C]0.846966673900312[/C][/ROW]
[ROW][C]19[/C][C]0.240437790037919[/C][C]0.480875580075838[/C][C]0.759562209962081[/C][/ROW]
[ROW][C]20[/C][C]0.831345977359491[/C][C]0.337308045281017[/C][C]0.168654022640509[/C][/ROW]
[ROW][C]21[/C][C]0.778051547296424[/C][C]0.443896905407153[/C][C]0.221948452703576[/C][/ROW]
[ROW][C]22[/C][C]0.739361905654388[/C][C]0.521276188691225[/C][C]0.260638094345612[/C][/ROW]
[ROW][C]23[/C][C]0.93122655969459[/C][C]0.137546880610820[/C][C]0.0687734403054099[/C][/ROW]
[ROW][C]24[/C][C]0.960280704195596[/C][C]0.0794385916088079[/C][C]0.0397192958044039[/C][/ROW]
[ROW][C]25[/C][C]0.986734636089142[/C][C]0.026530727821715[/C][C]0.0132653639108575[/C][/ROW]
[ROW][C]26[/C][C]0.975269724423503[/C][C]0.0494605511529932[/C][C]0.0247302755764966[/C][/ROW]
[ROW][C]27[/C][C]0.962114312997842[/C][C]0.075771374004315[/C][C]0.0378856870021575[/C][/ROW]
[ROW][C]28[/C][C]0.938981467013618[/C][C]0.122037065972764[/C][C]0.0610185329863818[/C][/ROW]
[ROW][C]29[/C][C]0.913020110130058[/C][C]0.173959779739884[/C][C]0.086979889869942[/C][/ROW]
[ROW][C]30[/C][C]0.884653022185775[/C][C]0.230693955628449[/C][C]0.115346977814225[/C][/ROW]
[ROW][C]31[/C][C]0.84683441694698[/C][C]0.306331166106042[/C][C]0.153165583053021[/C][/ROW]
[ROW][C]32[/C][C]0.840034441495371[/C][C]0.319931117009258[/C][C]0.159965558504629[/C][/ROW]
[ROW][C]33[/C][C]0.790669139150319[/C][C]0.418661721699362[/C][C]0.209330860849681[/C][/ROW]
[ROW][C]34[/C][C]0.712182056710331[/C][C]0.575635886579338[/C][C]0.287817943289669[/C][/ROW]
[ROW][C]35[/C][C]0.681650826516773[/C][C]0.636698346966453[/C][C]0.318349173483227[/C][/ROW]
[ROW][C]36[/C][C]0.618440961936779[/C][C]0.763118076126442[/C][C]0.381559038063221[/C][/ROW]
[ROW][C]37[/C][C]0.539283914824337[/C][C]0.921432170351326[/C][C]0.460716085175663[/C][/ROW]
[ROW][C]38[/C][C]0.466273052369094[/C][C]0.932546104738187[/C][C]0.533726947630906[/C][/ROW]
[ROW][C]39[/C][C]0.379322629036224[/C][C]0.758645258072449[/C][C]0.620677370963776[/C][/ROW]
[ROW][C]40[/C][C]0.656144655326702[/C][C]0.687710689346596[/C][C]0.343855344673298[/C][/ROW]
[ROW][C]41[/C][C]0.540807547655307[/C][C]0.918384904689387[/C][C]0.459192452344693[/C][/ROW]
[ROW][C]42[/C][C]0.410298004234944[/C][C]0.820596008469888[/C][C]0.589701995765056[/C][/ROW]
[ROW][C]43[/C][C]0.369094175835393[/C][C]0.738188351670786[/C][C]0.630905824164607[/C][/ROW]
[ROW][C]44[/C][C]0.302046440015824[/C][C]0.604092880031647[/C][C]0.697953559984176[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69771&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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
170.2442320660862290.4884641321724580.755767933913771
180.1530333260996880.3060666521993770.846966673900312
190.2404377900379190.4808755800758380.759562209962081
200.8313459773594910.3373080452810170.168654022640509
210.7780515472964240.4438969054071530.221948452703576
220.7393619056543880.5212761886912250.260638094345612
230.931226559694590.1375468806108200.0687734403054099
240.9602807041955960.07943859160880790.0397192958044039
250.9867346360891420.0265307278217150.0132653639108575
260.9752697244235030.04946055115299320.0247302755764966
270.9621143129978420.0757713740043150.0378856870021575
280.9389814670136180.1220370659727640.0610185329863818
290.9130201101300580.1739597797398840.086979889869942
300.8846530221857750.2306939556284490.115346977814225
310.846834416946980.3063311661060420.153165583053021
320.8400344414953710.3199311170092580.159965558504629
330.7906691391503190.4186617216993620.209330860849681
340.7121820567103310.5756358865793380.287817943289669
350.6816508265167730.6366983469664530.318349173483227
360.6184409619367790.7631180761264420.381559038063221
370.5392839148243370.9214321703513260.460716085175663
380.4662730523690940.9325461047381870.533726947630906
390.3793226290362240.7586452580724490.620677370963776
400.6561446553267020.6877106893465960.343855344673298
410.5408075476553070.9183849046893870.459192452344693
420.4102980042349440.8205960084698880.589701995765056
430.3690941758353930.7381883516707860.630905824164607
440.3020464400158240.6040928800316470.697953559984176







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69771&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 level20.0714285714285714NOK
10% type I error level40.142857142857143NOK



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