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 07:46: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/19/t1261234019w3aeqodpaa36sc7.htm/, Retrieved Mon, 29 Apr 2024 04:51:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69612, Retrieved Mon, 29 Apr 2024 04:51:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
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] [865cd78857e928bd6e7d79509c6cdcc5] [Current]
-    D      [Multiple Regression] [Model 3] [2009-12-20 01:11:18] [a542c511726eba04a1fc2f4bd37a90f8]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing 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=69612&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=69612&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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] = + 2679.26153846154 -165.115384615385x[t] + 275.833974358975M1[t] -161.665384615384M2[t] -220.021153846153M3[t] -186.976923076923M4[t] + 4.06730769230802M5[t] -370.688461538461M6[t] -175.244230769230M7[t] + 23.6000000000004M8[t] -117.955769230769M9[t] + 89.6884615384618M10[t] + 27.7557692307696M11[t] -5.04423076923077t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  2679.26153846154 -165.115384615385x[t] +  275.833974358975M1[t] -161.665384615384M2[t] -220.021153846153M3[t] -186.976923076923M4[t] +  4.06730769230802M5[t] -370.688461538461M6[t] -175.244230769230M7[t] +  23.6000000000004M8[t] -117.955769230769M9[t] +  89.6884615384618M10[t] +  27.7557692307696M11[t] -5.04423076923077t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69612&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  2679.26153846154 -165.115384615385x[t] +  275.833974358975M1[t] -161.665384615384M2[t] -220.021153846153M3[t] -186.976923076923M4[t] +  4.06730769230802M5[t] -370.688461538461M6[t] -175.244230769230M7[t] +  23.6000000000004M8[t] -117.955769230769M9[t] +  89.6884615384618M10[t] +  27.7557692307696M11[t] -5.04423076923077t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69612&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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] = + 2679.26153846154 -165.115384615385x[t] + 275.833974358975M1[t] -161.665384615384M2[t] -220.021153846153M3[t] -186.976923076923M4[t] + 4.06730769230802M5[t] -370.688461538461M6[t] -175.244230769230M7[t] + 23.6000000000004M8[t] -117.955769230769M9[t] + 89.6884615384618M10[t] + 27.7557692307696M11[t] -5.04423076923077t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2679.26153846154149.33963717.940700
x-165.115384615385144.174062-1.14530.2579040.128952
M1275.833974358975167.601271.64580.1064820.053241
M2-161.665384615384176.002309-0.91850.3630260.181513
M3-220.021153846153175.682643-1.25240.2166280.108314
M4-186.976923076923175.457271-1.06570.2920240.146012
M54.06730769230802175.3265590.02320.981590.490795
M6-370.688461538461175.290717-2.11470.0397860.019893
M7-175.244230769230175.349804-0.99940.322720.16136
M823.6000000000004175.5037230.13450.8936050.446803
M9-117.955769230769175.752227-0.67110.5054110.252706
M1089.6884615384618176.0949130.50930.6129120.306456
M1127.7557692307696174.7444320.15880.8744780.437239
t-5.044230769230774.079524-1.23650.2224250.111213

\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) & 2679.26153846154 & 149.339637 & 17.9407 & 0 & 0 \tabularnewline
x & -165.115384615385 & 144.174062 & -1.1453 & 0.257904 & 0.128952 \tabularnewline
M1 & 275.833974358975 & 167.60127 & 1.6458 & 0.106482 & 0.053241 \tabularnewline
M2 & -161.665384615384 & 176.002309 & -0.9185 & 0.363026 & 0.181513 \tabularnewline
M3 & -220.021153846153 & 175.682643 & -1.2524 & 0.216628 & 0.108314 \tabularnewline
M4 & -186.976923076923 & 175.457271 & -1.0657 & 0.292024 & 0.146012 \tabularnewline
M5 & 4.06730769230802 & 175.326559 & 0.0232 & 0.98159 & 0.490795 \tabularnewline
M6 & -370.688461538461 & 175.290717 & -2.1147 & 0.039786 & 0.019893 \tabularnewline
M7 & -175.244230769230 & 175.349804 & -0.9994 & 0.32272 & 0.16136 \tabularnewline
M8 & 23.6000000000004 & 175.503723 & 0.1345 & 0.893605 & 0.446803 \tabularnewline
M9 & -117.955769230769 & 175.752227 & -0.6711 & 0.505411 & 0.252706 \tabularnewline
M10 & 89.6884615384618 & 176.094913 & 0.5093 & 0.612912 & 0.306456 \tabularnewline
M11 & 27.7557692307696 & 174.744432 & 0.1588 & 0.874478 & 0.437239 \tabularnewline
t & -5.04423076923077 & 4.079524 & -1.2365 & 0.222425 & 0.111213 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69612&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]2679.26153846154[/C][C]149.339637[/C][C]17.9407[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-165.115384615385[/C][C]144.174062[/C][C]-1.1453[/C][C]0.257904[/C][C]0.128952[/C][/ROW]
[ROW][C]M1[/C][C]275.833974358975[/C][C]167.60127[/C][C]1.6458[/C][C]0.106482[/C][C]0.053241[/C][/ROW]
[ROW][C]M2[/C][C]-161.665384615384[/C][C]176.002309[/C][C]-0.9185[/C][C]0.363026[/C][C]0.181513[/C][/ROW]
[ROW][C]M3[/C][C]-220.021153846153[/C][C]175.682643[/C][C]-1.2524[/C][C]0.216628[/C][C]0.108314[/C][/ROW]
[ROW][C]M4[/C][C]-186.976923076923[/C][C]175.457271[/C][C]-1.0657[/C][C]0.292024[/C][C]0.146012[/C][/ROW]
[ROW][C]M5[/C][C]4.06730769230802[/C][C]175.326559[/C][C]0.0232[/C][C]0.98159[/C][C]0.490795[/C][/ROW]
[ROW][C]M6[/C][C]-370.688461538461[/C][C]175.290717[/C][C]-2.1147[/C][C]0.039786[/C][C]0.019893[/C][/ROW]
[ROW][C]M7[/C][C]-175.244230769230[/C][C]175.349804[/C][C]-0.9994[/C][C]0.32272[/C][C]0.16136[/C][/ROW]
[ROW][C]M8[/C][C]23.6000000000004[/C][C]175.503723[/C][C]0.1345[/C][C]0.893605[/C][C]0.446803[/C][/ROW]
[ROW][C]M9[/C][C]-117.955769230769[/C][C]175.752227[/C][C]-0.6711[/C][C]0.505411[/C][C]0.252706[/C][/ROW]
[ROW][C]M10[/C][C]89.6884615384618[/C][C]176.094913[/C][C]0.5093[/C][C]0.612912[/C][C]0.306456[/C][/ROW]
[ROW][C]M11[/C][C]27.7557692307696[/C][C]174.744432[/C][C]0.1588[/C][C]0.874478[/C][C]0.437239[/C][/ROW]
[ROW][C]t[/C][C]-5.04423076923077[/C][C]4.079524[/C][C]-1.2365[/C][C]0.222425[/C][C]0.111213[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69612&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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)2679.26153846154149.33963717.940700
x-165.115384615385144.174062-1.14530.2579040.128952
M1275.833974358975167.601271.64580.1064820.053241
M2-161.665384615384176.002309-0.91850.3630260.181513
M3-220.021153846153175.682643-1.25240.2166280.108314
M4-186.976923076923175.457271-1.06570.2920240.146012
M54.06730769230802175.3265590.02320.981590.490795
M6-370.688461538461175.290717-2.11470.0397860.019893
M7-175.244230769230175.349804-0.99940.322720.16136
M823.6000000000004175.5037230.13450.8936050.446803
M9-117.955769230769175.752227-0.67110.5054110.252706
M1089.6884615384618176.0949130.50930.6129120.306456
M1127.7557692307696174.7444320.15880.8744780.437239
t-5.044230769230774.079524-1.23650.2224250.111213







Multiple Linear Regression - Regression Statistics
Multiple R0.682411709466006
R-squared0.465685741216317
Adjusted R-squared0.317896690914447
F-TEST (value)3.15101653515684
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.00192662717812753
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation276.219902592313
Sum Squared Residuals3585979.42564103

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.682411709466006 \tabularnewline
R-squared & 0.465685741216317 \tabularnewline
Adjusted R-squared & 0.317896690914447 \tabularnewline
F-TEST (value) & 3.15101653515684 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00192662717812753 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 276.219902592313 \tabularnewline
Sum Squared Residuals & 3585979.42564103 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69612&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.682411709466006[/C][/ROW]
[ROW][C]R-squared[/C][C]0.465685741216317[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.317896690914447[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.15101653515684[/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.00192662717812753[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]276.219902592313[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3585979.42564103[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69612&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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.682411709466006
R-squared0.465685741216317
Adjusted R-squared0.317896690914447
F-TEST (value)3.15101653515684
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.00192662717812753
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation276.219902592313
Sum Squared Residuals3585979.42564103







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
130162950.0512820512865.9487179487204
221552507.50769230769-352.507692307693
321722444.10769230769-272.107692307692
421502472.10769230769-322.107692307692
525332658.10769230769-125.107692307693
620582278.30769230769-220.307692307692
721602468.70769230769-308.707692307692
822602662.50769230769-402.507692307693
924982515.90769230769-17.9076923076924
1026952718.50769230769-23.5076923076925
1127992651.53076923077147.469230769231
1229462618.73076923077327.269230769231
1329302889.5205128205140.4794871794862
1423182446.97692307692-128.976923076923
1525402383.57692307692156.423076923077
1625702411.57692307692158.423076923077
1726692597.5769230769271.423076923077
1824502217.77692307692232.223076923077
1928422408.17692307692433.823076923077
2034402601.97692307692838.023076923077
2126782455.37692307692222.623076923077
2229812657.97692307692323.023076923077
2322602591-331
2428442558.2285.800000000000
2525462828.98974358974-282.989743589744
2624562386.4461538461569.5538461538461
2722952323.04615384615-28.0461538461541
2823792351.0461538461527.9538461538462
2924792537.04615384615-58.0461538461538
3020572157.24615384615-100.246153846154
3122802347.64615384615-67.6461538461539
3223512541.44615384615-190.446153846154
3322762394.84615384615-118.846153846154
3425482597.44615384615-49.4461538461539
3523112365.35384615385-54.3538461538462
3622012332.55384615385-131.553846153846
3727252603.34358974359121.656410256410
3824082160.8247.2
3921392097.441.5999999999998
4018982125.4-227.4
4125372311.4225.6
4220681931.6136.400000000000
4320632122-59
4425202315.8204.2
4524342169.2264.8
4621902371.8-181.8
4727942304.82307692308489.176923076923
4820702272.02307692308-202.023076923076
4926152542.8128205128272.1871794871788
5022652100.26923076923164.730769230769
5121392036.86923076923102.130769230769
5224282064.86923076923363.130769230769
5321372250.86923076923-113.869230769231
5418231871.06923076923-48.0692307692309
5520632061.469230769231.53076923076924
5618062255.26923076923-449.269230769231
5717582108.66923076923-350.669230769231
5822432311.26923076923-68.2692307692307
5919932244.29230769231-251.292307692308
6019322211.49230769231-279.492307692307
6124652482.28205128205-17.2820512820519

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3016 & 2950.05128205128 & 65.9487179487204 \tabularnewline
2 & 2155 & 2507.50769230769 & -352.507692307693 \tabularnewline
3 & 2172 & 2444.10769230769 & -272.107692307692 \tabularnewline
4 & 2150 & 2472.10769230769 & -322.107692307692 \tabularnewline
5 & 2533 & 2658.10769230769 & -125.107692307693 \tabularnewline
6 & 2058 & 2278.30769230769 & -220.307692307692 \tabularnewline
7 & 2160 & 2468.70769230769 & -308.707692307692 \tabularnewline
8 & 2260 & 2662.50769230769 & -402.507692307693 \tabularnewline
9 & 2498 & 2515.90769230769 & -17.9076923076924 \tabularnewline
10 & 2695 & 2718.50769230769 & -23.5076923076925 \tabularnewline
11 & 2799 & 2651.53076923077 & 147.469230769231 \tabularnewline
12 & 2946 & 2618.73076923077 & 327.269230769231 \tabularnewline
13 & 2930 & 2889.52051282051 & 40.4794871794862 \tabularnewline
14 & 2318 & 2446.97692307692 & -128.976923076923 \tabularnewline
15 & 2540 & 2383.57692307692 & 156.423076923077 \tabularnewline
16 & 2570 & 2411.57692307692 & 158.423076923077 \tabularnewline
17 & 2669 & 2597.57692307692 & 71.423076923077 \tabularnewline
18 & 2450 & 2217.77692307692 & 232.223076923077 \tabularnewline
19 & 2842 & 2408.17692307692 & 433.823076923077 \tabularnewline
20 & 3440 & 2601.97692307692 & 838.023076923077 \tabularnewline
21 & 2678 & 2455.37692307692 & 222.623076923077 \tabularnewline
22 & 2981 & 2657.97692307692 & 323.023076923077 \tabularnewline
23 & 2260 & 2591 & -331 \tabularnewline
24 & 2844 & 2558.2 & 285.800000000000 \tabularnewline
25 & 2546 & 2828.98974358974 & -282.989743589744 \tabularnewline
26 & 2456 & 2386.44615384615 & 69.5538461538461 \tabularnewline
27 & 2295 & 2323.04615384615 & -28.0461538461541 \tabularnewline
28 & 2379 & 2351.04615384615 & 27.9538461538462 \tabularnewline
29 & 2479 & 2537.04615384615 & -58.0461538461538 \tabularnewline
30 & 2057 & 2157.24615384615 & -100.246153846154 \tabularnewline
31 & 2280 & 2347.64615384615 & -67.6461538461539 \tabularnewline
32 & 2351 & 2541.44615384615 & -190.446153846154 \tabularnewline
33 & 2276 & 2394.84615384615 & -118.846153846154 \tabularnewline
34 & 2548 & 2597.44615384615 & -49.4461538461539 \tabularnewline
35 & 2311 & 2365.35384615385 & -54.3538461538462 \tabularnewline
36 & 2201 & 2332.55384615385 & -131.553846153846 \tabularnewline
37 & 2725 & 2603.34358974359 & 121.656410256410 \tabularnewline
38 & 2408 & 2160.8 & 247.2 \tabularnewline
39 & 2139 & 2097.4 & 41.5999999999998 \tabularnewline
40 & 1898 & 2125.4 & -227.4 \tabularnewline
41 & 2537 & 2311.4 & 225.6 \tabularnewline
42 & 2068 & 1931.6 & 136.400000000000 \tabularnewline
43 & 2063 & 2122 & -59 \tabularnewline
44 & 2520 & 2315.8 & 204.2 \tabularnewline
45 & 2434 & 2169.2 & 264.8 \tabularnewline
46 & 2190 & 2371.8 & -181.8 \tabularnewline
47 & 2794 & 2304.82307692308 & 489.176923076923 \tabularnewline
48 & 2070 & 2272.02307692308 & -202.023076923076 \tabularnewline
49 & 2615 & 2542.81282051282 & 72.1871794871788 \tabularnewline
50 & 2265 & 2100.26923076923 & 164.730769230769 \tabularnewline
51 & 2139 & 2036.86923076923 & 102.130769230769 \tabularnewline
52 & 2428 & 2064.86923076923 & 363.130769230769 \tabularnewline
53 & 2137 & 2250.86923076923 & -113.869230769231 \tabularnewline
54 & 1823 & 1871.06923076923 & -48.0692307692309 \tabularnewline
55 & 2063 & 2061.46923076923 & 1.53076923076924 \tabularnewline
56 & 1806 & 2255.26923076923 & -449.269230769231 \tabularnewline
57 & 1758 & 2108.66923076923 & -350.669230769231 \tabularnewline
58 & 2243 & 2311.26923076923 & -68.2692307692307 \tabularnewline
59 & 1993 & 2244.29230769231 & -251.292307692308 \tabularnewline
60 & 1932 & 2211.49230769231 & -279.492307692307 \tabularnewline
61 & 2465 & 2482.28205128205 & -17.2820512820519 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69612&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]2950.05128205128[/C][C]65.9487179487204[/C][/ROW]
[ROW][C]2[/C][C]2155[/C][C]2507.50769230769[/C][C]-352.507692307693[/C][/ROW]
[ROW][C]3[/C][C]2172[/C][C]2444.10769230769[/C][C]-272.107692307692[/C][/ROW]
[ROW][C]4[/C][C]2150[/C][C]2472.10769230769[/C][C]-322.107692307692[/C][/ROW]
[ROW][C]5[/C][C]2533[/C][C]2658.10769230769[/C][C]-125.107692307693[/C][/ROW]
[ROW][C]6[/C][C]2058[/C][C]2278.30769230769[/C][C]-220.307692307692[/C][/ROW]
[ROW][C]7[/C][C]2160[/C][C]2468.70769230769[/C][C]-308.707692307692[/C][/ROW]
[ROW][C]8[/C][C]2260[/C][C]2662.50769230769[/C][C]-402.507692307693[/C][/ROW]
[ROW][C]9[/C][C]2498[/C][C]2515.90769230769[/C][C]-17.9076923076924[/C][/ROW]
[ROW][C]10[/C][C]2695[/C][C]2718.50769230769[/C][C]-23.5076923076925[/C][/ROW]
[ROW][C]11[/C][C]2799[/C][C]2651.53076923077[/C][C]147.469230769231[/C][/ROW]
[ROW][C]12[/C][C]2946[/C][C]2618.73076923077[/C][C]327.269230769231[/C][/ROW]
[ROW][C]13[/C][C]2930[/C][C]2889.52051282051[/C][C]40.4794871794862[/C][/ROW]
[ROW][C]14[/C][C]2318[/C][C]2446.97692307692[/C][C]-128.976923076923[/C][/ROW]
[ROW][C]15[/C][C]2540[/C][C]2383.57692307692[/C][C]156.423076923077[/C][/ROW]
[ROW][C]16[/C][C]2570[/C][C]2411.57692307692[/C][C]158.423076923077[/C][/ROW]
[ROW][C]17[/C][C]2669[/C][C]2597.57692307692[/C][C]71.423076923077[/C][/ROW]
[ROW][C]18[/C][C]2450[/C][C]2217.77692307692[/C][C]232.223076923077[/C][/ROW]
[ROW][C]19[/C][C]2842[/C][C]2408.17692307692[/C][C]433.823076923077[/C][/ROW]
[ROW][C]20[/C][C]3440[/C][C]2601.97692307692[/C][C]838.023076923077[/C][/ROW]
[ROW][C]21[/C][C]2678[/C][C]2455.37692307692[/C][C]222.623076923077[/C][/ROW]
[ROW][C]22[/C][C]2981[/C][C]2657.97692307692[/C][C]323.023076923077[/C][/ROW]
[ROW][C]23[/C][C]2260[/C][C]2591[/C][C]-331[/C][/ROW]
[ROW][C]24[/C][C]2844[/C][C]2558.2[/C][C]285.800000000000[/C][/ROW]
[ROW][C]25[/C][C]2546[/C][C]2828.98974358974[/C][C]-282.989743589744[/C][/ROW]
[ROW][C]26[/C][C]2456[/C][C]2386.44615384615[/C][C]69.5538461538461[/C][/ROW]
[ROW][C]27[/C][C]2295[/C][C]2323.04615384615[/C][C]-28.0461538461541[/C][/ROW]
[ROW][C]28[/C][C]2379[/C][C]2351.04615384615[/C][C]27.9538461538462[/C][/ROW]
[ROW][C]29[/C][C]2479[/C][C]2537.04615384615[/C][C]-58.0461538461538[/C][/ROW]
[ROW][C]30[/C][C]2057[/C][C]2157.24615384615[/C][C]-100.246153846154[/C][/ROW]
[ROW][C]31[/C][C]2280[/C][C]2347.64615384615[/C][C]-67.6461538461539[/C][/ROW]
[ROW][C]32[/C][C]2351[/C][C]2541.44615384615[/C][C]-190.446153846154[/C][/ROW]
[ROW][C]33[/C][C]2276[/C][C]2394.84615384615[/C][C]-118.846153846154[/C][/ROW]
[ROW][C]34[/C][C]2548[/C][C]2597.44615384615[/C][C]-49.4461538461539[/C][/ROW]
[ROW][C]35[/C][C]2311[/C][C]2365.35384615385[/C][C]-54.3538461538462[/C][/ROW]
[ROW][C]36[/C][C]2201[/C][C]2332.55384615385[/C][C]-131.553846153846[/C][/ROW]
[ROW][C]37[/C][C]2725[/C][C]2603.34358974359[/C][C]121.656410256410[/C][/ROW]
[ROW][C]38[/C][C]2408[/C][C]2160.8[/C][C]247.2[/C][/ROW]
[ROW][C]39[/C][C]2139[/C][C]2097.4[/C][C]41.5999999999998[/C][/ROW]
[ROW][C]40[/C][C]1898[/C][C]2125.4[/C][C]-227.4[/C][/ROW]
[ROW][C]41[/C][C]2537[/C][C]2311.4[/C][C]225.6[/C][/ROW]
[ROW][C]42[/C][C]2068[/C][C]1931.6[/C][C]136.400000000000[/C][/ROW]
[ROW][C]43[/C][C]2063[/C][C]2122[/C][C]-59[/C][/ROW]
[ROW][C]44[/C][C]2520[/C][C]2315.8[/C][C]204.2[/C][/ROW]
[ROW][C]45[/C][C]2434[/C][C]2169.2[/C][C]264.8[/C][/ROW]
[ROW][C]46[/C][C]2190[/C][C]2371.8[/C][C]-181.8[/C][/ROW]
[ROW][C]47[/C][C]2794[/C][C]2304.82307692308[/C][C]489.176923076923[/C][/ROW]
[ROW][C]48[/C][C]2070[/C][C]2272.02307692308[/C][C]-202.023076923076[/C][/ROW]
[ROW][C]49[/C][C]2615[/C][C]2542.81282051282[/C][C]72.1871794871788[/C][/ROW]
[ROW][C]50[/C][C]2265[/C][C]2100.26923076923[/C][C]164.730769230769[/C][/ROW]
[ROW][C]51[/C][C]2139[/C][C]2036.86923076923[/C][C]102.130769230769[/C][/ROW]
[ROW][C]52[/C][C]2428[/C][C]2064.86923076923[/C][C]363.130769230769[/C][/ROW]
[ROW][C]53[/C][C]2137[/C][C]2250.86923076923[/C][C]-113.869230769231[/C][/ROW]
[ROW][C]54[/C][C]1823[/C][C]1871.06923076923[/C][C]-48.0692307692309[/C][/ROW]
[ROW][C]55[/C][C]2063[/C][C]2061.46923076923[/C][C]1.53076923076924[/C][/ROW]
[ROW][C]56[/C][C]1806[/C][C]2255.26923076923[/C][C]-449.269230769231[/C][/ROW]
[ROW][C]57[/C][C]1758[/C][C]2108.66923076923[/C][C]-350.669230769231[/C][/ROW]
[ROW][C]58[/C][C]2243[/C][C]2311.26923076923[/C][C]-68.2692307692307[/C][/ROW]
[ROW][C]59[/C][C]1993[/C][C]2244.29230769231[/C][C]-251.292307692308[/C][/ROW]
[ROW][C]60[/C][C]1932[/C][C]2211.49230769231[/C][C]-279.492307692307[/C][/ROW]
[ROW][C]61[/C][C]2465[/C][C]2482.28205128205[/C][C]-17.2820512820519[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69612&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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
130162950.0512820512865.9487179487204
221552507.50769230769-352.507692307693
321722444.10769230769-272.107692307692
421502472.10769230769-322.107692307692
525332658.10769230769-125.107692307693
620582278.30769230769-220.307692307692
721602468.70769230769-308.707692307692
822602662.50769230769-402.507692307693
924982515.90769230769-17.9076923076924
1026952718.50769230769-23.5076923076925
1127992651.53076923077147.469230769231
1229462618.73076923077327.269230769231
1329302889.5205128205140.4794871794862
1423182446.97692307692-128.976923076923
1525402383.57692307692156.423076923077
1625702411.57692307692158.423076923077
1726692597.5769230769271.423076923077
1824502217.77692307692232.223076923077
1928422408.17692307692433.823076923077
2034402601.97692307692838.023076923077
2126782455.37692307692222.623076923077
2229812657.97692307692323.023076923077
2322602591-331
2428442558.2285.800000000000
2525462828.98974358974-282.989743589744
2624562386.4461538461569.5538461538461
2722952323.04615384615-28.0461538461541
2823792351.0461538461527.9538461538462
2924792537.04615384615-58.0461538461538
3020572157.24615384615-100.246153846154
3122802347.64615384615-67.6461538461539
3223512541.44615384615-190.446153846154
3322762394.84615384615-118.846153846154
3425482597.44615384615-49.4461538461539
3523112365.35384615385-54.3538461538462
3622012332.55384615385-131.553846153846
3727252603.34358974359121.656410256410
3824082160.8247.2
3921392097.441.5999999999998
4018982125.4-227.4
4125372311.4225.6
4220681931.6136.400000000000
4320632122-59
4425202315.8204.2
4524342169.2264.8
4621902371.8-181.8
4727942304.82307692308489.176923076923
4820702272.02307692308-202.023076923076
4926152542.8128205128272.1871794871788
5022652100.26923076923164.730769230769
5121392036.86923076923102.130769230769
5224282064.86923076923363.130769230769
5321372250.86923076923-113.869230769231
5418231871.06923076923-48.0692307692309
5520632061.469230769231.53076923076924
5618062255.26923076923-449.269230769231
5717582108.66923076923-350.669230769231
5822432311.26923076923-68.2692307692307
5919932244.29230769231-251.292307692308
6019322211.49230769231-279.492307692307
6124652482.28205128205-17.2820512820519







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2457408549817690.4914817099635380.754259145018231
180.1542550124200600.3085100248401210.84574498757994
190.2420985158214230.4841970316428460.757901484178577
200.83247469338460.3350506132307980.167525306615399
210.7790838585430850.4418322829138310.220916141456915
220.7333254072461910.5333491855076180.266674592753809
230.9295653298854920.1408693402290170.0704346701145083
240.9571543880775360.0856912238449270.0428456119224635
250.9859088385639860.02818232287202880.0140911614360144
260.9740663546847340.05186729063053290.0259336453152665
270.9605560929439020.07888781411219620.0394439070560981
280.93641800764390.1271639847121990.0635819923560996
290.9102760706547720.1794478586904560.0897239293452281
300.88297950454790.2340409909042010.117020495452100
310.8446272138922970.3107455722154060.155372786107703
320.8388644427714950.322271114457010.161135557228505
330.7940337258095790.4119325483808420.205966274190421
340.7293399313503460.5413201372993080.270660068649654
350.6987313128420590.6025373743158820.301268687157941
360.6320188275635290.7359623448729420.367981172436471
370.5577820760799090.8844358478401820.442217923920091
380.4836743148418840.9673486296837670.516325685158116
390.3956235988682670.7912471977365340.604376401131733
400.6699596971540520.6600806056918960.330040302845948
410.5547908140654740.8904183718690520.445209185934526
420.4233893064862490.8467786129724970.576610693513751
430.3810036100620390.7620072201240770.618996389937961
440.3120079667593770.6240159335187540.687992033240623

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.245740854981769 & 0.491481709963538 & 0.754259145018231 \tabularnewline
18 & 0.154255012420060 & 0.308510024840121 & 0.84574498757994 \tabularnewline
19 & 0.242098515821423 & 0.484197031642846 & 0.757901484178577 \tabularnewline
20 & 0.8324746933846 & 0.335050613230798 & 0.167525306615399 \tabularnewline
21 & 0.779083858543085 & 0.441832282913831 & 0.220916141456915 \tabularnewline
22 & 0.733325407246191 & 0.533349185507618 & 0.266674592753809 \tabularnewline
23 & 0.929565329885492 & 0.140869340229017 & 0.0704346701145083 \tabularnewline
24 & 0.957154388077536 & 0.085691223844927 & 0.0428456119224635 \tabularnewline
25 & 0.985908838563986 & 0.0281823228720288 & 0.0140911614360144 \tabularnewline
26 & 0.974066354684734 & 0.0518672906305329 & 0.0259336453152665 \tabularnewline
27 & 0.960556092943902 & 0.0788878141121962 & 0.0394439070560981 \tabularnewline
28 & 0.9364180076439 & 0.127163984712199 & 0.0635819923560996 \tabularnewline
29 & 0.910276070654772 & 0.179447858690456 & 0.0897239293452281 \tabularnewline
30 & 0.8829795045479 & 0.234040990904201 & 0.117020495452100 \tabularnewline
31 & 0.844627213892297 & 0.310745572215406 & 0.155372786107703 \tabularnewline
32 & 0.838864442771495 & 0.32227111445701 & 0.161135557228505 \tabularnewline
33 & 0.794033725809579 & 0.411932548380842 & 0.205966274190421 \tabularnewline
34 & 0.729339931350346 & 0.541320137299308 & 0.270660068649654 \tabularnewline
35 & 0.698731312842059 & 0.602537374315882 & 0.301268687157941 \tabularnewline
36 & 0.632018827563529 & 0.735962344872942 & 0.367981172436471 \tabularnewline
37 & 0.557782076079909 & 0.884435847840182 & 0.442217923920091 \tabularnewline
38 & 0.483674314841884 & 0.967348629683767 & 0.516325685158116 \tabularnewline
39 & 0.395623598868267 & 0.791247197736534 & 0.604376401131733 \tabularnewline
40 & 0.669959697154052 & 0.660080605691896 & 0.330040302845948 \tabularnewline
41 & 0.554790814065474 & 0.890418371869052 & 0.445209185934526 \tabularnewline
42 & 0.423389306486249 & 0.846778612972497 & 0.576610693513751 \tabularnewline
43 & 0.381003610062039 & 0.762007220124077 & 0.618996389937961 \tabularnewline
44 & 0.312007966759377 & 0.624015933518754 & 0.687992033240623 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69612&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.245740854981769[/C][C]0.491481709963538[/C][C]0.754259145018231[/C][/ROW]
[ROW][C]18[/C][C]0.154255012420060[/C][C]0.308510024840121[/C][C]0.84574498757994[/C][/ROW]
[ROW][C]19[/C][C]0.242098515821423[/C][C]0.484197031642846[/C][C]0.757901484178577[/C][/ROW]
[ROW][C]20[/C][C]0.8324746933846[/C][C]0.335050613230798[/C][C]0.167525306615399[/C][/ROW]
[ROW][C]21[/C][C]0.779083858543085[/C][C]0.441832282913831[/C][C]0.220916141456915[/C][/ROW]
[ROW][C]22[/C][C]0.733325407246191[/C][C]0.533349185507618[/C][C]0.266674592753809[/C][/ROW]
[ROW][C]23[/C][C]0.929565329885492[/C][C]0.140869340229017[/C][C]0.0704346701145083[/C][/ROW]
[ROW][C]24[/C][C]0.957154388077536[/C][C]0.085691223844927[/C][C]0.0428456119224635[/C][/ROW]
[ROW][C]25[/C][C]0.985908838563986[/C][C]0.0281823228720288[/C][C]0.0140911614360144[/C][/ROW]
[ROW][C]26[/C][C]0.974066354684734[/C][C]0.0518672906305329[/C][C]0.0259336453152665[/C][/ROW]
[ROW][C]27[/C][C]0.960556092943902[/C][C]0.0788878141121962[/C][C]0.0394439070560981[/C][/ROW]
[ROW][C]28[/C][C]0.9364180076439[/C][C]0.127163984712199[/C][C]0.0635819923560996[/C][/ROW]
[ROW][C]29[/C][C]0.910276070654772[/C][C]0.179447858690456[/C][C]0.0897239293452281[/C][/ROW]
[ROW][C]30[/C][C]0.8829795045479[/C][C]0.234040990904201[/C][C]0.117020495452100[/C][/ROW]
[ROW][C]31[/C][C]0.844627213892297[/C][C]0.310745572215406[/C][C]0.155372786107703[/C][/ROW]
[ROW][C]32[/C][C]0.838864442771495[/C][C]0.32227111445701[/C][C]0.161135557228505[/C][/ROW]
[ROW][C]33[/C][C]0.794033725809579[/C][C]0.411932548380842[/C][C]0.205966274190421[/C][/ROW]
[ROW][C]34[/C][C]0.729339931350346[/C][C]0.541320137299308[/C][C]0.270660068649654[/C][/ROW]
[ROW][C]35[/C][C]0.698731312842059[/C][C]0.602537374315882[/C][C]0.301268687157941[/C][/ROW]
[ROW][C]36[/C][C]0.632018827563529[/C][C]0.735962344872942[/C][C]0.367981172436471[/C][/ROW]
[ROW][C]37[/C][C]0.557782076079909[/C][C]0.884435847840182[/C][C]0.442217923920091[/C][/ROW]
[ROW][C]38[/C][C]0.483674314841884[/C][C]0.967348629683767[/C][C]0.516325685158116[/C][/ROW]
[ROW][C]39[/C][C]0.395623598868267[/C][C]0.791247197736534[/C][C]0.604376401131733[/C][/ROW]
[ROW][C]40[/C][C]0.669959697154052[/C][C]0.660080605691896[/C][C]0.330040302845948[/C][/ROW]
[ROW][C]41[/C][C]0.554790814065474[/C][C]0.890418371869052[/C][C]0.445209185934526[/C][/ROW]
[ROW][C]42[/C][C]0.423389306486249[/C][C]0.846778612972497[/C][C]0.576610693513751[/C][/ROW]
[ROW][C]43[/C][C]0.381003610062039[/C][C]0.762007220124077[/C][C]0.618996389937961[/C][/ROW]
[ROW][C]44[/C][C]0.312007966759377[/C][C]0.624015933518754[/C][C]0.687992033240623[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69612&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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.2457408549817690.4914817099635380.754259145018231
180.1542550124200600.3085100248401210.84574498757994
190.2420985158214230.4841970316428460.757901484178577
200.83247469338460.3350506132307980.167525306615399
210.7790838585430850.4418322829138310.220916141456915
220.7333254072461910.5333491855076180.266674592753809
230.9295653298854920.1408693402290170.0704346701145083
240.9571543880775360.0856912238449270.0428456119224635
250.9859088385639860.02818232287202880.0140911614360144
260.9740663546847340.05186729063053290.0259336453152665
270.9605560929439020.07888781411219620.0394439070560981
280.93641800764390.1271639847121990.0635819923560996
290.9102760706547720.1794478586904560.0897239293452281
300.88297950454790.2340409909042010.117020495452100
310.8446272138922970.3107455722154060.155372786107703
320.8388644427714950.322271114457010.161135557228505
330.7940337258095790.4119325483808420.205966274190421
340.7293399313503460.5413201372993080.270660068649654
350.6987313128420590.6025373743158820.301268687157941
360.6320188275635290.7359623448729420.367981172436471
370.5577820760799090.8844358478401820.442217923920091
380.4836743148418840.9673486296837670.516325685158116
390.3956235988682670.7912471977365340.604376401131733
400.6699596971540520.6600806056918960.330040302845948
410.5547908140654740.8904183718690520.445209185934526
420.4233893064862490.8467786129724970.576610693513751
430.3810036100620390.7620072201240770.618996389937961
440.3120079667593770.6240159335187540.687992033240623







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0357142857142857OK
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 & 1 & 0.0357142857142857 & OK \tabularnewline
10% type I error level & 4 & 0.142857142857143 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69612&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]1[/C][C]0.0357142857142857[/C][C]OK[/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=69612&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69612&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 level10.0357142857142857OK
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')
}