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 computationTue, 20 Dec 2011 14:25:34 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/20/t1324409229ckxk6w7nlmtb7q2.htm/, Retrieved Fri, 03 May 2024 11:43:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158182, Retrieved Fri, 03 May 2024 11:43:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Decomposition by Loess] [HPC Retail Sales] [2008-03-06 11:35:25] [74be16979710d4c4e7c6647856088456]
-  M D  [Decomposition by Loess] [WS8_births_Loess] [2011-11-28 11:59:50] [2adcc8dcd741502b8a9375c7fd3d7ce3]
- RMP     [Multiple Regression] [WS8_multiple-regr...] [2011-11-29 17:49:10] [2adcc8dcd741502b8a9375c7fd3d7ce3]
-    D        [Multiple Regression] [Paper - Multiple ...] [2011-12-20 19:25:34] [850c8b4f3ff1a893cc2b9e9f060c8f7e] [Current]
Feedback Forum

Post a new message
Dataseries X:
283495
279998
287224
296369
300653
302686
277891
277537
285383
292213
298522
300431
297584
286445
288576
293299
295881
292710
271993
267430
273963
273046
268347
264319
255765
246263
245098
246969
248333
247934
226839
225554
237085
237080
245039
248541
247105
243422
250643
254663
260993
258556
235372
246057
253353
255198
264176
269034
265861
269826
278506
292300
290726
289802
271311
274352
275216
276836
280408
280190




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\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 & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=158182&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]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=158182&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158182&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'Gertrude Mary Cox' @ cox.wessa.net
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Multiple Linear Regression - Estimated Regression Equation
Werkloosheid-Niet-werkende-werkzoekenden-Mannen [t] = + 287731.925 -7194.28263888879M1[t] -11542.4569444444M2[t] -6300.83125000001M3[t] + 832.794444444442M4[t] + 3853.02013888889M5[t] + 3296.44583333333M6[t] -17936.9284722222M7[t] -16009.1027777778M8[t] -8772.07708333333M9[t] -6474.45138888889M10[t] -1627.62569444444M11[t] -423.025694444445t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloosheid-Niet-werkende-werkzoekenden-Mannen
[t] =  +  287731.925 -7194.28263888879M1[t] -11542.4569444444M2[t] -6300.83125000001M3[t] +  832.794444444442M4[t] +  3853.02013888889M5[t] +  3296.44583333333M6[t] -17936.9284722222M7[t] -16009.1027777778M8[t] -8772.07708333333M9[t] -6474.45138888889M10[t] -1627.62569444444M11[t] -423.025694444445t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158182&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloosheid-Niet-werkende-werkzoekenden-Mannen
[t] =  +  287731.925 -7194.28263888879M1[t] -11542.4569444444M2[t] -6300.83125000001M3[t] +  832.794444444442M4[t] +  3853.02013888889M5[t] +  3296.44583333333M6[t] -17936.9284722222M7[t] -16009.1027777778M8[t] -8772.07708333333M9[t] -6474.45138888889M10[t] -1627.62569444444M11[t] -423.025694444445t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158182&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158182&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
Werkloosheid-Niet-werkende-werkzoekenden-Mannen [t] = + 287731.925 -7194.28263888879M1[t] -11542.4569444444M2[t] -6300.83125000001M3[t] + 832.794444444442M4[t] + 3853.02013888889M5[t] + 3296.44583333333M6[t] -17936.9284722222M7[t] -16009.1027777778M8[t] -8772.07708333333M9[t] -6474.45138888889M10[t] -1627.62569444444M11[t] -423.025694444445t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)287731.92510561.91002227.242400
M1-7194.2826388887912849.154646-0.55990.5782040.289102
M2-11542.456944444412829.957008-0.89960.3728940.186447
M3-6300.8312500000112812.562931-0.49180.6251710.312586
M4832.79444444444212796.9797690.06510.9483880.474194
M53853.0201388888912783.2141440.30140.764430.382215
M63296.4458333333312771.2719340.25810.7974460.398723
M7-17936.928472222212761.158259-1.40560.1664230.083211
M8-16009.102777777812752.877467-1.25530.2155640.107782
M9-8772.0770833333312746.433132-0.68820.4947110.247355
M10-6474.4513888888912741.828041-0.50810.6137420.306871
M11-1627.6256944444412739.064186-0.12780.8988790.449439
t-423.025694444445153.216045-2.7610.0081940.004097

\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) & 287731.925 & 10561.910022 & 27.2424 & 0 & 0 \tabularnewline
M1 & -7194.28263888879 & 12849.154646 & -0.5599 & 0.578204 & 0.289102 \tabularnewline
M2 & -11542.4569444444 & 12829.957008 & -0.8996 & 0.372894 & 0.186447 \tabularnewline
M3 & -6300.83125000001 & 12812.562931 & -0.4918 & 0.625171 & 0.312586 \tabularnewline
M4 & 832.794444444442 & 12796.979769 & 0.0651 & 0.948388 & 0.474194 \tabularnewline
M5 & 3853.02013888889 & 12783.214144 & 0.3014 & 0.76443 & 0.382215 \tabularnewline
M6 & 3296.44583333333 & 12771.271934 & 0.2581 & 0.797446 & 0.398723 \tabularnewline
M7 & -17936.9284722222 & 12761.158259 & -1.4056 & 0.166423 & 0.083211 \tabularnewline
M8 & -16009.1027777778 & 12752.877467 & -1.2553 & 0.215564 & 0.107782 \tabularnewline
M9 & -8772.07708333333 & 12746.433132 & -0.6882 & 0.494711 & 0.247355 \tabularnewline
M10 & -6474.45138888889 & 12741.828041 & -0.5081 & 0.613742 & 0.306871 \tabularnewline
M11 & -1627.62569444444 & 12739.064186 & -0.1278 & 0.898879 & 0.449439 \tabularnewline
t & -423.025694444445 & 153.216045 & -2.761 & 0.008194 & 0.004097 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158182&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]287731.925[/C][C]10561.910022[/C][C]27.2424[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-7194.28263888879[/C][C]12849.154646[/C][C]-0.5599[/C][C]0.578204[/C][C]0.289102[/C][/ROW]
[ROW][C]M2[/C][C]-11542.4569444444[/C][C]12829.957008[/C][C]-0.8996[/C][C]0.372894[/C][C]0.186447[/C][/ROW]
[ROW][C]M3[/C][C]-6300.83125000001[/C][C]12812.562931[/C][C]-0.4918[/C][C]0.625171[/C][C]0.312586[/C][/ROW]
[ROW][C]M4[/C][C]832.794444444442[/C][C]12796.979769[/C][C]0.0651[/C][C]0.948388[/C][C]0.474194[/C][/ROW]
[ROW][C]M5[/C][C]3853.02013888889[/C][C]12783.214144[/C][C]0.3014[/C][C]0.76443[/C][C]0.382215[/C][/ROW]
[ROW][C]M6[/C][C]3296.44583333333[/C][C]12771.271934[/C][C]0.2581[/C][C]0.797446[/C][C]0.398723[/C][/ROW]
[ROW][C]M7[/C][C]-17936.9284722222[/C][C]12761.158259[/C][C]-1.4056[/C][C]0.166423[/C][C]0.083211[/C][/ROW]
[ROW][C]M8[/C][C]-16009.1027777778[/C][C]12752.877467[/C][C]-1.2553[/C][C]0.215564[/C][C]0.107782[/C][/ROW]
[ROW][C]M9[/C][C]-8772.07708333333[/C][C]12746.433132[/C][C]-0.6882[/C][C]0.494711[/C][C]0.247355[/C][/ROW]
[ROW][C]M10[/C][C]-6474.45138888889[/C][C]12741.828041[/C][C]-0.5081[/C][C]0.613742[/C][C]0.306871[/C][/ROW]
[ROW][C]M11[/C][C]-1627.62569444444[/C][C]12739.064186[/C][C]-0.1278[/C][C]0.898879[/C][C]0.449439[/C][/ROW]
[ROW][C]t[/C][C]-423.025694444445[/C][C]153.216045[/C][C]-2.761[/C][C]0.008194[/C][C]0.004097[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158182&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158182&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)287731.92510561.91002227.242400
M1-7194.2826388887912849.154646-0.55990.5782040.289102
M2-11542.456944444412829.957008-0.89960.3728940.186447
M3-6300.8312500000112812.562931-0.49180.6251710.312586
M4832.79444444444212796.9797690.06510.9483880.474194
M53853.0201388888912783.2141440.30140.764430.382215
M63296.4458333333312771.2719340.25810.7974460.398723
M7-17936.928472222212761.158259-1.40560.1664230.083211
M8-16009.102777777812752.877467-1.25530.2155640.107782
M9-8772.0770833333312746.433132-0.68820.4947110.247355
M10-6474.4513888888912741.828041-0.50810.6137420.306871
M11-1627.6256944444412739.064186-0.12780.8988790.449439
t-423.025694444445153.216045-2.7610.0081940.004097







Multiple Linear Regression - Regression Statistics
Multiple R0.488409543700148
R-squared0.238543882377387
Adjusted R-squared0.0441295544737408
F-TEST (value)1.22698715135652
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.293763517923997
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20140.7721543711
Sum Squared Residuals19065583039.7917

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.488409543700148 \tabularnewline
R-squared & 0.238543882377387 \tabularnewline
Adjusted R-squared & 0.0441295544737408 \tabularnewline
F-TEST (value) & 1.22698715135652 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.293763517923997 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 20140.7721543711 \tabularnewline
Sum Squared Residuals & 19065583039.7917 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158182&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.488409543700148[/C][/ROW]
[ROW][C]R-squared[/C][C]0.238543882377387[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0441295544737408[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.22698715135652[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.293763517923997[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]20140.7721543711[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]19065583039.7917[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158182&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158182&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.488409543700148
R-squared0.238543882377387
Adjusted R-squared0.0441295544737408
F-TEST (value)1.22698715135652
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.293763517923997
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20140.7721543711
Sum Squared Residuals19065583039.7917







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1283495280114.6166666663380.38333333372
2279998275343.4166666674654.58333333331
3287224280162.0166666677061.98333333332
4296369286872.6166666679496.38333333332
5300653289469.81666666711183.1833333333
6302686288490.21666666714195.7833333333
7277891266833.81666666711057.1833333333
8277537268338.6166666679198.38333333332
9285383275152.61666666710230.3833333333
10292213277027.21666666715185.7833333333
11298522281451.01666666717070.9833333333
12300431282655.61666666717775.3833333333
13297584275038.30833333322545.6916666666
14286445270267.10833333316177.8916666667
15288576275085.70833333313490.2916666667
16293299281796.30833333311502.6916666667
17295881284393.50833333311487.4916666667
18292710283413.9083333339296.09166666666
19271993261757.50833333310235.4916666667
20267430263262.3083333334167.69166666666
21273963270076.3083333333886.69166666666
22273046271950.9083333331095.09166666666
23268347276374.708333333-8027.70833333334
24264319277579.308333333-13260.3083333333
25255765269962-14197.0000000001
26246263265190.8-18927.8
27245098270009.4-24911.4
28246969276720-29751
29248333279317.2-30984.2
30247934278337.6-30403.6
31226839256681.2-29842.2
32225554258186-32632
33237085265000-27915
34237080266874.6-29794.6
35245039271298.4-26259.4
36248541272503-23962
37247105264885.691666667-17780.6916666668
38243422260114.491666667-16692.4916666667
39250643264933.091666667-14290.0916666667
40254663271643.691666667-16980.6916666667
41260993274240.891666667-13247.8916666667
42258556273261.291666667-14705.2916666667
43235372251604.891666667-16232.8916666667
44246057253109.691666667-7052.69166666666
45253353259923.691666667-6570.69166666666
46255198261798.291666667-6600.29166666666
47264176266222.091666667-2046.09166666666
48269034267426.6916666671607.30833333334
49265861259809.3833333336051.61666666658
50269826255038.18333333314787.8166666667
51278506259856.78333333318649.2166666667
52292300266567.38333333325732.6166666667
53290726269164.58333333321561.4166666667
54289802268184.98333333321617.0166666667
55271311246528.58333333324782.4166666667
56274352248033.38333333326318.6166666667
57275216254847.38333333320368.6166666667
58276836256721.98333333320114.0166666667
59280408261145.78333333319262.2166666667
60280190262350.38333333317839.6166666667

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 283495 & 280114.616666666 & 3380.38333333372 \tabularnewline
2 & 279998 & 275343.416666667 & 4654.58333333331 \tabularnewline
3 & 287224 & 280162.016666667 & 7061.98333333332 \tabularnewline
4 & 296369 & 286872.616666667 & 9496.38333333332 \tabularnewline
5 & 300653 & 289469.816666667 & 11183.1833333333 \tabularnewline
6 & 302686 & 288490.216666667 & 14195.7833333333 \tabularnewline
7 & 277891 & 266833.816666667 & 11057.1833333333 \tabularnewline
8 & 277537 & 268338.616666667 & 9198.38333333332 \tabularnewline
9 & 285383 & 275152.616666667 & 10230.3833333333 \tabularnewline
10 & 292213 & 277027.216666667 & 15185.7833333333 \tabularnewline
11 & 298522 & 281451.016666667 & 17070.9833333333 \tabularnewline
12 & 300431 & 282655.616666667 & 17775.3833333333 \tabularnewline
13 & 297584 & 275038.308333333 & 22545.6916666666 \tabularnewline
14 & 286445 & 270267.108333333 & 16177.8916666667 \tabularnewline
15 & 288576 & 275085.708333333 & 13490.2916666667 \tabularnewline
16 & 293299 & 281796.308333333 & 11502.6916666667 \tabularnewline
17 & 295881 & 284393.508333333 & 11487.4916666667 \tabularnewline
18 & 292710 & 283413.908333333 & 9296.09166666666 \tabularnewline
19 & 271993 & 261757.508333333 & 10235.4916666667 \tabularnewline
20 & 267430 & 263262.308333333 & 4167.69166666666 \tabularnewline
21 & 273963 & 270076.308333333 & 3886.69166666666 \tabularnewline
22 & 273046 & 271950.908333333 & 1095.09166666666 \tabularnewline
23 & 268347 & 276374.708333333 & -8027.70833333334 \tabularnewline
24 & 264319 & 277579.308333333 & -13260.3083333333 \tabularnewline
25 & 255765 & 269962 & -14197.0000000001 \tabularnewline
26 & 246263 & 265190.8 & -18927.8 \tabularnewline
27 & 245098 & 270009.4 & -24911.4 \tabularnewline
28 & 246969 & 276720 & -29751 \tabularnewline
29 & 248333 & 279317.2 & -30984.2 \tabularnewline
30 & 247934 & 278337.6 & -30403.6 \tabularnewline
31 & 226839 & 256681.2 & -29842.2 \tabularnewline
32 & 225554 & 258186 & -32632 \tabularnewline
33 & 237085 & 265000 & -27915 \tabularnewline
34 & 237080 & 266874.6 & -29794.6 \tabularnewline
35 & 245039 & 271298.4 & -26259.4 \tabularnewline
36 & 248541 & 272503 & -23962 \tabularnewline
37 & 247105 & 264885.691666667 & -17780.6916666668 \tabularnewline
38 & 243422 & 260114.491666667 & -16692.4916666667 \tabularnewline
39 & 250643 & 264933.091666667 & -14290.0916666667 \tabularnewline
40 & 254663 & 271643.691666667 & -16980.6916666667 \tabularnewline
41 & 260993 & 274240.891666667 & -13247.8916666667 \tabularnewline
42 & 258556 & 273261.291666667 & -14705.2916666667 \tabularnewline
43 & 235372 & 251604.891666667 & -16232.8916666667 \tabularnewline
44 & 246057 & 253109.691666667 & -7052.69166666666 \tabularnewline
45 & 253353 & 259923.691666667 & -6570.69166666666 \tabularnewline
46 & 255198 & 261798.291666667 & -6600.29166666666 \tabularnewline
47 & 264176 & 266222.091666667 & -2046.09166666666 \tabularnewline
48 & 269034 & 267426.691666667 & 1607.30833333334 \tabularnewline
49 & 265861 & 259809.383333333 & 6051.61666666658 \tabularnewline
50 & 269826 & 255038.183333333 & 14787.8166666667 \tabularnewline
51 & 278506 & 259856.783333333 & 18649.2166666667 \tabularnewline
52 & 292300 & 266567.383333333 & 25732.6166666667 \tabularnewline
53 & 290726 & 269164.583333333 & 21561.4166666667 \tabularnewline
54 & 289802 & 268184.983333333 & 21617.0166666667 \tabularnewline
55 & 271311 & 246528.583333333 & 24782.4166666667 \tabularnewline
56 & 274352 & 248033.383333333 & 26318.6166666667 \tabularnewline
57 & 275216 & 254847.383333333 & 20368.6166666667 \tabularnewline
58 & 276836 & 256721.983333333 & 20114.0166666667 \tabularnewline
59 & 280408 & 261145.783333333 & 19262.2166666667 \tabularnewline
60 & 280190 & 262350.383333333 & 17839.6166666667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158182&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]283495[/C][C]280114.616666666[/C][C]3380.38333333372[/C][/ROW]
[ROW][C]2[/C][C]279998[/C][C]275343.416666667[/C][C]4654.58333333331[/C][/ROW]
[ROW][C]3[/C][C]287224[/C][C]280162.016666667[/C][C]7061.98333333332[/C][/ROW]
[ROW][C]4[/C][C]296369[/C][C]286872.616666667[/C][C]9496.38333333332[/C][/ROW]
[ROW][C]5[/C][C]300653[/C][C]289469.816666667[/C][C]11183.1833333333[/C][/ROW]
[ROW][C]6[/C][C]302686[/C][C]288490.216666667[/C][C]14195.7833333333[/C][/ROW]
[ROW][C]7[/C][C]277891[/C][C]266833.816666667[/C][C]11057.1833333333[/C][/ROW]
[ROW][C]8[/C][C]277537[/C][C]268338.616666667[/C][C]9198.38333333332[/C][/ROW]
[ROW][C]9[/C][C]285383[/C][C]275152.616666667[/C][C]10230.3833333333[/C][/ROW]
[ROW][C]10[/C][C]292213[/C][C]277027.216666667[/C][C]15185.7833333333[/C][/ROW]
[ROW][C]11[/C][C]298522[/C][C]281451.016666667[/C][C]17070.9833333333[/C][/ROW]
[ROW][C]12[/C][C]300431[/C][C]282655.616666667[/C][C]17775.3833333333[/C][/ROW]
[ROW][C]13[/C][C]297584[/C][C]275038.308333333[/C][C]22545.6916666666[/C][/ROW]
[ROW][C]14[/C][C]286445[/C][C]270267.108333333[/C][C]16177.8916666667[/C][/ROW]
[ROW][C]15[/C][C]288576[/C][C]275085.708333333[/C][C]13490.2916666667[/C][/ROW]
[ROW][C]16[/C][C]293299[/C][C]281796.308333333[/C][C]11502.6916666667[/C][/ROW]
[ROW][C]17[/C][C]295881[/C][C]284393.508333333[/C][C]11487.4916666667[/C][/ROW]
[ROW][C]18[/C][C]292710[/C][C]283413.908333333[/C][C]9296.09166666666[/C][/ROW]
[ROW][C]19[/C][C]271993[/C][C]261757.508333333[/C][C]10235.4916666667[/C][/ROW]
[ROW][C]20[/C][C]267430[/C][C]263262.308333333[/C][C]4167.69166666666[/C][/ROW]
[ROW][C]21[/C][C]273963[/C][C]270076.308333333[/C][C]3886.69166666666[/C][/ROW]
[ROW][C]22[/C][C]273046[/C][C]271950.908333333[/C][C]1095.09166666666[/C][/ROW]
[ROW][C]23[/C][C]268347[/C][C]276374.708333333[/C][C]-8027.70833333334[/C][/ROW]
[ROW][C]24[/C][C]264319[/C][C]277579.308333333[/C][C]-13260.3083333333[/C][/ROW]
[ROW][C]25[/C][C]255765[/C][C]269962[/C][C]-14197.0000000001[/C][/ROW]
[ROW][C]26[/C][C]246263[/C][C]265190.8[/C][C]-18927.8[/C][/ROW]
[ROW][C]27[/C][C]245098[/C][C]270009.4[/C][C]-24911.4[/C][/ROW]
[ROW][C]28[/C][C]246969[/C][C]276720[/C][C]-29751[/C][/ROW]
[ROW][C]29[/C][C]248333[/C][C]279317.2[/C][C]-30984.2[/C][/ROW]
[ROW][C]30[/C][C]247934[/C][C]278337.6[/C][C]-30403.6[/C][/ROW]
[ROW][C]31[/C][C]226839[/C][C]256681.2[/C][C]-29842.2[/C][/ROW]
[ROW][C]32[/C][C]225554[/C][C]258186[/C][C]-32632[/C][/ROW]
[ROW][C]33[/C][C]237085[/C][C]265000[/C][C]-27915[/C][/ROW]
[ROW][C]34[/C][C]237080[/C][C]266874.6[/C][C]-29794.6[/C][/ROW]
[ROW][C]35[/C][C]245039[/C][C]271298.4[/C][C]-26259.4[/C][/ROW]
[ROW][C]36[/C][C]248541[/C][C]272503[/C][C]-23962[/C][/ROW]
[ROW][C]37[/C][C]247105[/C][C]264885.691666667[/C][C]-17780.6916666668[/C][/ROW]
[ROW][C]38[/C][C]243422[/C][C]260114.491666667[/C][C]-16692.4916666667[/C][/ROW]
[ROW][C]39[/C][C]250643[/C][C]264933.091666667[/C][C]-14290.0916666667[/C][/ROW]
[ROW][C]40[/C][C]254663[/C][C]271643.691666667[/C][C]-16980.6916666667[/C][/ROW]
[ROW][C]41[/C][C]260993[/C][C]274240.891666667[/C][C]-13247.8916666667[/C][/ROW]
[ROW][C]42[/C][C]258556[/C][C]273261.291666667[/C][C]-14705.2916666667[/C][/ROW]
[ROW][C]43[/C][C]235372[/C][C]251604.891666667[/C][C]-16232.8916666667[/C][/ROW]
[ROW][C]44[/C][C]246057[/C][C]253109.691666667[/C][C]-7052.69166666666[/C][/ROW]
[ROW][C]45[/C][C]253353[/C][C]259923.691666667[/C][C]-6570.69166666666[/C][/ROW]
[ROW][C]46[/C][C]255198[/C][C]261798.291666667[/C][C]-6600.29166666666[/C][/ROW]
[ROW][C]47[/C][C]264176[/C][C]266222.091666667[/C][C]-2046.09166666666[/C][/ROW]
[ROW][C]48[/C][C]269034[/C][C]267426.691666667[/C][C]1607.30833333334[/C][/ROW]
[ROW][C]49[/C][C]265861[/C][C]259809.383333333[/C][C]6051.61666666658[/C][/ROW]
[ROW][C]50[/C][C]269826[/C][C]255038.183333333[/C][C]14787.8166666667[/C][/ROW]
[ROW][C]51[/C][C]278506[/C][C]259856.783333333[/C][C]18649.2166666667[/C][/ROW]
[ROW][C]52[/C][C]292300[/C][C]266567.383333333[/C][C]25732.6166666667[/C][/ROW]
[ROW][C]53[/C][C]290726[/C][C]269164.583333333[/C][C]21561.4166666667[/C][/ROW]
[ROW][C]54[/C][C]289802[/C][C]268184.983333333[/C][C]21617.0166666667[/C][/ROW]
[ROW][C]55[/C][C]271311[/C][C]246528.583333333[/C][C]24782.4166666667[/C][/ROW]
[ROW][C]56[/C][C]274352[/C][C]248033.383333333[/C][C]26318.6166666667[/C][/ROW]
[ROW][C]57[/C][C]275216[/C][C]254847.383333333[/C][C]20368.6166666667[/C][/ROW]
[ROW][C]58[/C][C]276836[/C][C]256721.983333333[/C][C]20114.0166666667[/C][/ROW]
[ROW][C]59[/C][C]280408[/C][C]261145.783333333[/C][C]19262.2166666667[/C][/ROW]
[ROW][C]60[/C][C]280190[/C][C]262350.383333333[/C][C]17839.6166666667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158182&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158182&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
1283495280114.6166666663380.38333333372
2279998275343.4166666674654.58333333331
3287224280162.0166666677061.98333333332
4296369286872.6166666679496.38333333332
5300653289469.81666666711183.1833333333
6302686288490.21666666714195.7833333333
7277891266833.81666666711057.1833333333
8277537268338.6166666679198.38333333332
9285383275152.61666666710230.3833333333
10292213277027.21666666715185.7833333333
11298522281451.01666666717070.9833333333
12300431282655.61666666717775.3833333333
13297584275038.30833333322545.6916666666
14286445270267.10833333316177.8916666667
15288576275085.70833333313490.2916666667
16293299281796.30833333311502.6916666667
17295881284393.50833333311487.4916666667
18292710283413.9083333339296.09166666666
19271993261757.50833333310235.4916666667
20267430263262.3083333334167.69166666666
21273963270076.3083333333886.69166666666
22273046271950.9083333331095.09166666666
23268347276374.708333333-8027.70833333334
24264319277579.308333333-13260.3083333333
25255765269962-14197.0000000001
26246263265190.8-18927.8
27245098270009.4-24911.4
28246969276720-29751
29248333279317.2-30984.2
30247934278337.6-30403.6
31226839256681.2-29842.2
32225554258186-32632
33237085265000-27915
34237080266874.6-29794.6
35245039271298.4-26259.4
36248541272503-23962
37247105264885.691666667-17780.6916666668
38243422260114.491666667-16692.4916666667
39250643264933.091666667-14290.0916666667
40254663271643.691666667-16980.6916666667
41260993274240.891666667-13247.8916666667
42258556273261.291666667-14705.2916666667
43235372251604.891666667-16232.8916666667
44246057253109.691666667-7052.69166666666
45253353259923.691666667-6570.69166666666
46255198261798.291666667-6600.29166666666
47264176266222.091666667-2046.09166666666
48269034267426.6916666671607.30833333334
49265861259809.3833333336051.61666666658
50269826255038.18333333314787.8166666667
51278506259856.78333333318649.2166666667
52292300266567.38333333325732.6166666667
53290726269164.58333333321561.4166666667
54289802268184.98333333321617.0166666667
55271311246528.58333333324782.4166666667
56274352248033.38333333326318.6166666667
57275216254847.38333333320368.6166666667
58276836256721.98333333320114.0166666667
59280408261145.78333333319262.2166666667
60280190262350.38333333317839.6166666667







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02856316417249130.05712632834498270.971436835827509
170.01563128188584520.03126256377169040.984368718114155
180.01529681641301730.03059363282603460.984703183586983
190.009863468596721380.01972693719344280.990136531403279
200.009403680328771920.01880736065754380.990596319671228
210.01301898091271940.02603796182543880.986981019087281
220.05812087428770830.1162417485754170.941879125712292
230.3532432467975490.7064864935950970.646756753202451
240.8515963076377880.2968073847244250.148403692362212
250.9798645172447510.04027096551049830.0201354827552492
260.9965877035281220.006824592943755550.00341229647187777
270.9987536087985730.002492782402854630.00124639120142731
280.9991311314057260.001737737188548530.000868868594274265
290.9992075754960190.001584849007961230.000792424503980616
300.999164036482550.001671927034900670.000835963517450336
310.9989259540686450.002148091862709820.00107404593135491
320.9979886491948890.004022701610221510.00201135080511076
330.9966523668533850.006695266293229420.00334763314661471
340.9943439635248620.01131207295027540.00565603647513771
350.9918383327439610.01632333451207870.00816166725603937
360.9924994345589820.01500113088203670.00750056544101833
370.9897121340229980.02057573195400440.0102878659770022
380.9818948113518690.03621037729626180.0181051886481309
390.9701982738354160.05960345232916750.0298017261645837
400.9745345448305820.05093091033883590.0254654551694179
410.9581705451830540.0836589096338910.0418294548169455
420.9378974867971730.1242050264056550.0621025132028273
430.9681518627575650.06369627448487020.0318481372424351
440.9712116535699150.05757669286017080.0287883464300854

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0285631641724913 & 0.0571263283449827 & 0.971436835827509 \tabularnewline
17 & 0.0156312818858452 & 0.0312625637716904 & 0.984368718114155 \tabularnewline
18 & 0.0152968164130173 & 0.0305936328260346 & 0.984703183586983 \tabularnewline
19 & 0.00986346859672138 & 0.0197269371934428 & 0.990136531403279 \tabularnewline
20 & 0.00940368032877192 & 0.0188073606575438 & 0.990596319671228 \tabularnewline
21 & 0.0130189809127194 & 0.0260379618254388 & 0.986981019087281 \tabularnewline
22 & 0.0581208742877083 & 0.116241748575417 & 0.941879125712292 \tabularnewline
23 & 0.353243246797549 & 0.706486493595097 & 0.646756753202451 \tabularnewline
24 & 0.851596307637788 & 0.296807384724425 & 0.148403692362212 \tabularnewline
25 & 0.979864517244751 & 0.0402709655104983 & 0.0201354827552492 \tabularnewline
26 & 0.996587703528122 & 0.00682459294375555 & 0.00341229647187777 \tabularnewline
27 & 0.998753608798573 & 0.00249278240285463 & 0.00124639120142731 \tabularnewline
28 & 0.999131131405726 & 0.00173773718854853 & 0.000868868594274265 \tabularnewline
29 & 0.999207575496019 & 0.00158484900796123 & 0.000792424503980616 \tabularnewline
30 & 0.99916403648255 & 0.00167192703490067 & 0.000835963517450336 \tabularnewline
31 & 0.998925954068645 & 0.00214809186270982 & 0.00107404593135491 \tabularnewline
32 & 0.997988649194889 & 0.00402270161022151 & 0.00201135080511076 \tabularnewline
33 & 0.996652366853385 & 0.00669526629322942 & 0.00334763314661471 \tabularnewline
34 & 0.994343963524862 & 0.0113120729502754 & 0.00565603647513771 \tabularnewline
35 & 0.991838332743961 & 0.0163233345120787 & 0.00816166725603937 \tabularnewline
36 & 0.992499434558982 & 0.0150011308820367 & 0.00750056544101833 \tabularnewline
37 & 0.989712134022998 & 0.0205757319540044 & 0.0102878659770022 \tabularnewline
38 & 0.981894811351869 & 0.0362103772962618 & 0.0181051886481309 \tabularnewline
39 & 0.970198273835416 & 0.0596034523291675 & 0.0298017261645837 \tabularnewline
40 & 0.974534544830582 & 0.0509309103388359 & 0.0254654551694179 \tabularnewline
41 & 0.958170545183054 & 0.083658909633891 & 0.0418294548169455 \tabularnewline
42 & 0.937897486797173 & 0.124205026405655 & 0.0621025132028273 \tabularnewline
43 & 0.968151862757565 & 0.0636962744848702 & 0.0318481372424351 \tabularnewline
44 & 0.971211653569915 & 0.0575766928601708 & 0.0287883464300854 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158182&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.0285631641724913[/C][C]0.0571263283449827[/C][C]0.971436835827509[/C][/ROW]
[ROW][C]17[/C][C]0.0156312818858452[/C][C]0.0312625637716904[/C][C]0.984368718114155[/C][/ROW]
[ROW][C]18[/C][C]0.0152968164130173[/C][C]0.0305936328260346[/C][C]0.984703183586983[/C][/ROW]
[ROW][C]19[/C][C]0.00986346859672138[/C][C]0.0197269371934428[/C][C]0.990136531403279[/C][/ROW]
[ROW][C]20[/C][C]0.00940368032877192[/C][C]0.0188073606575438[/C][C]0.990596319671228[/C][/ROW]
[ROW][C]21[/C][C]0.0130189809127194[/C][C]0.0260379618254388[/C][C]0.986981019087281[/C][/ROW]
[ROW][C]22[/C][C]0.0581208742877083[/C][C]0.116241748575417[/C][C]0.941879125712292[/C][/ROW]
[ROW][C]23[/C][C]0.353243246797549[/C][C]0.706486493595097[/C][C]0.646756753202451[/C][/ROW]
[ROW][C]24[/C][C]0.851596307637788[/C][C]0.296807384724425[/C][C]0.148403692362212[/C][/ROW]
[ROW][C]25[/C][C]0.979864517244751[/C][C]0.0402709655104983[/C][C]0.0201354827552492[/C][/ROW]
[ROW][C]26[/C][C]0.996587703528122[/C][C]0.00682459294375555[/C][C]0.00341229647187777[/C][/ROW]
[ROW][C]27[/C][C]0.998753608798573[/C][C]0.00249278240285463[/C][C]0.00124639120142731[/C][/ROW]
[ROW][C]28[/C][C]0.999131131405726[/C][C]0.00173773718854853[/C][C]0.000868868594274265[/C][/ROW]
[ROW][C]29[/C][C]0.999207575496019[/C][C]0.00158484900796123[/C][C]0.000792424503980616[/C][/ROW]
[ROW][C]30[/C][C]0.99916403648255[/C][C]0.00167192703490067[/C][C]0.000835963517450336[/C][/ROW]
[ROW][C]31[/C][C]0.998925954068645[/C][C]0.00214809186270982[/C][C]0.00107404593135491[/C][/ROW]
[ROW][C]32[/C][C]0.997988649194889[/C][C]0.00402270161022151[/C][C]0.00201135080511076[/C][/ROW]
[ROW][C]33[/C][C]0.996652366853385[/C][C]0.00669526629322942[/C][C]0.00334763314661471[/C][/ROW]
[ROW][C]34[/C][C]0.994343963524862[/C][C]0.0113120729502754[/C][C]0.00565603647513771[/C][/ROW]
[ROW][C]35[/C][C]0.991838332743961[/C][C]0.0163233345120787[/C][C]0.00816166725603937[/C][/ROW]
[ROW][C]36[/C][C]0.992499434558982[/C][C]0.0150011308820367[/C][C]0.00750056544101833[/C][/ROW]
[ROW][C]37[/C][C]0.989712134022998[/C][C]0.0205757319540044[/C][C]0.0102878659770022[/C][/ROW]
[ROW][C]38[/C][C]0.981894811351869[/C][C]0.0362103772962618[/C][C]0.0181051886481309[/C][/ROW]
[ROW][C]39[/C][C]0.970198273835416[/C][C]0.0596034523291675[/C][C]0.0298017261645837[/C][/ROW]
[ROW][C]40[/C][C]0.974534544830582[/C][C]0.0509309103388359[/C][C]0.0254654551694179[/C][/ROW]
[ROW][C]41[/C][C]0.958170545183054[/C][C]0.083658909633891[/C][C]0.0418294548169455[/C][/ROW]
[ROW][C]42[/C][C]0.937897486797173[/C][C]0.124205026405655[/C][C]0.0621025132028273[/C][/ROW]
[ROW][C]43[/C][C]0.968151862757565[/C][C]0.0636962744848702[/C][C]0.0318481372424351[/C][/ROW]
[ROW][C]44[/C][C]0.971211653569915[/C][C]0.0575766928601708[/C][C]0.0287883464300854[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158182&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02856316417249130.05712632834498270.971436835827509
170.01563128188584520.03126256377169040.984368718114155
180.01529681641301730.03059363282603460.984703183586983
190.009863468596721380.01972693719344280.990136531403279
200.009403680328771920.01880736065754380.990596319671228
210.01301898091271940.02603796182543880.986981019087281
220.05812087428770830.1162417485754170.941879125712292
230.3532432467975490.7064864935950970.646756753202451
240.8515963076377880.2968073847244250.148403692362212
250.9798645172447510.04027096551049830.0201354827552492
260.9965877035281220.006824592943755550.00341229647187777
270.9987536087985730.002492782402854630.00124639120142731
280.9991311314057260.001737737188548530.000868868594274265
290.9992075754960190.001584849007961230.000792424503980616
300.999164036482550.001671927034900670.000835963517450336
310.9989259540686450.002148091862709820.00107404593135491
320.9979886491948890.004022701610221510.00201135080511076
330.9966523668533850.006695266293229420.00334763314661471
340.9943439635248620.01131207295027540.00565603647513771
350.9918383327439610.01632333451207870.00816166725603937
360.9924994345589820.01500113088203670.00750056544101833
370.9897121340229980.02057573195400440.0102878659770022
380.9818948113518690.03621037729626180.0181051886481309
390.9701982738354160.05960345232916750.0298017261645837
400.9745345448305820.05093091033883590.0254654551694179
410.9581705451830540.0836589096338910.0418294548169455
420.9378974867971730.1242050264056550.0621025132028273
430.9681518627575650.06369627448487020.0318481372424351
440.9712116535699150.05757669286017080.0287883464300854







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.275862068965517NOK
5% type I error level190.655172413793103NOK
10% type I error level250.862068965517241NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158182&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 level80.275862068965517NOK
5% type I error level190.655172413793103NOK
10% type I error level250.862068965517241NOK



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