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 computationFri, 20 Nov 2009 06:11:30 -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/Nov/20/t1258723001c0tkxox6b295540.htm/, Retrieved Thu, 25 Apr 2024 19:52:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58124, Retrieved Thu, 25 Apr 2024 19:52:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 13:11:30] [c88a5f1b97e332c6387d668c465455af] [Current]
Feedback Forum

Post a new message
Dataseries X:
280	1258
557	1199
831	1158
1081	1427
1318	934
1578	709
1859	1186
2141	986
2428	1033
2715	1257
3004	1105
3309	1179
269	1092
537	1092
813	1087
1068	2028
1411	2039
1675	2010
1958	754
2242	760
2524	715
2836	855
3143	971
3522	815
285	915
574	843
865	761
1147	1858
1516	2968
1789	4061
2087	3661
2372	3269
2669	2857
2966	2568
3270	2274
3652	1987
329	683
658	381
988	71
1303	1772
1603	3485
1929	5181
2235	4479
2544	3782
2872	3067
3198	2489
3544	1903
3903	1330
332	736
665	483
1001	242
1329	1334
1639	2423
1975	3523
2304	2986
2640	2462
2992	1908
3330	1575
3690	1237
4063	904




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58124&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58124&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3580.46697505064 + 0.0879589903051959X[t] -3363.86695716855M1[t] -3052.59898369868M2[t] -2739.25415281523M3[t] -2542.97232292653M4[t] -2291.51219027590M5[t] -2063.65837622777M6[t] -1721.72140851618M7[t] -1390.73302941988M8[t] -1051.99640047540M9[t] -725.289657296368M10[t] -382.029542527825M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3580.46697505064 +  0.0879589903051959X[t] -3363.86695716855M1[t] -3052.59898369868M2[t] -2739.25415281523M3[t] -2542.97232292653M4[t] -2291.51219027590M5[t] -2063.65837622777M6[t] -1721.72140851618M7[t] -1390.73302941988M8[t] -1051.99640047540M9[t] -725.289657296368M10[t] -382.029542527825M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58124&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3580.46697505064 +  0.0879589903051959X[t] -3363.86695716855M1[t] -3052.59898369868M2[t] -2739.25415281523M3[t] -2542.97232292653M4[t] -2291.51219027590M5[t] -2063.65837622777M6[t] -1721.72140851618M7[t] -1390.73302941988M8[t] -1051.99640047540M9[t] -725.289657296368M10[t] -382.029542527825M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58124&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58124&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] = + 3580.46697505064 + 0.0879589903051959X[t] -3363.86695716855M1[t] -3052.59898369868M2[t] -2739.25415281523M3[t] -2542.97232292653M4[t] -2291.51219027590M5[t] -2063.65837622777M6[t] -1721.72140851618M7[t] -1390.73302941988M8[t] -1051.99640047540M9[t] -725.289657296368M10[t] -382.029542527825M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3580.4669750506484.02424842.612300
X0.08795899030519590.0260023.38280.0014540.000727
M1-3363.86695716855109.974273-30.587800
M2-3052.59898369868110.289953-27.677900
M3-2739.25415281523110.714779-24.741500
M4-2542.97232292653110.282907-23.058600
M5-2291.51219027590113.531376-20.18400
M6-2063.65837622777119.809846-17.224400
M7-1721.72140851618115.326853-14.929100
M8-1390.73302941988112.778531-12.331500
M9-1051.99640047540111.072832-9.471200
M10-725.289657296368110.471349-6.565400
M11-382.029542527825109.885915-3.47660.0011040.000552

\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) & 3580.46697505064 & 84.024248 & 42.6123 & 0 & 0 \tabularnewline
X & 0.0879589903051959 & 0.026002 & 3.3828 & 0.001454 & 0.000727 \tabularnewline
M1 & -3363.86695716855 & 109.974273 & -30.5878 & 0 & 0 \tabularnewline
M2 & -3052.59898369868 & 110.289953 & -27.6779 & 0 & 0 \tabularnewline
M3 & -2739.25415281523 & 110.714779 & -24.7415 & 0 & 0 \tabularnewline
M4 & -2542.97232292653 & 110.282907 & -23.0586 & 0 & 0 \tabularnewline
M5 & -2291.51219027590 & 113.531376 & -20.184 & 0 & 0 \tabularnewline
M6 & -2063.65837622777 & 119.809846 & -17.2244 & 0 & 0 \tabularnewline
M7 & -1721.72140851618 & 115.326853 & -14.9291 & 0 & 0 \tabularnewline
M8 & -1390.73302941988 & 112.778531 & -12.3315 & 0 & 0 \tabularnewline
M9 & -1051.99640047540 & 111.072832 & -9.4712 & 0 & 0 \tabularnewline
M10 & -725.289657296368 & 110.471349 & -6.5654 & 0 & 0 \tabularnewline
M11 & -382.029542527825 & 109.885915 & -3.4766 & 0.001104 & 0.000552 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58124&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]3580.46697505064[/C][C]84.024248[/C][C]42.6123[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.0879589903051959[/C][C]0.026002[/C][C]3.3828[/C][C]0.001454[/C][C]0.000727[/C][/ROW]
[ROW][C]M1[/C][C]-3363.86695716855[/C][C]109.974273[/C][C]-30.5878[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]-3052.59898369868[/C][C]110.289953[/C][C]-27.6779[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-2739.25415281523[/C][C]110.714779[/C][C]-24.7415[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-2542.97232292653[/C][C]110.282907[/C][C]-23.0586[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-2291.51219027590[/C][C]113.531376[/C][C]-20.184[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-2063.65837622777[/C][C]119.809846[/C][C]-17.2244[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-1721.72140851618[/C][C]115.326853[/C][C]-14.9291[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-1390.73302941988[/C][C]112.778531[/C][C]-12.3315[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-1051.99640047540[/C][C]111.072832[/C][C]-9.4712[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-725.289657296368[/C][C]110.471349[/C][C]-6.5654[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-382.029542527825[/C][C]109.885915[/C][C]-3.4766[/C][C]0.001104[/C][C]0.000552[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58124&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58124&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)3580.4669750506484.02424842.612300
X0.08795899030519590.0260023.38280.0014540.000727
M1-3363.86695716855109.974273-30.587800
M2-3052.59898369868110.289953-27.677900
M3-2739.25415281523110.714779-24.741500
M4-2542.97232292653110.282907-23.058600
M5-2291.51219027590113.531376-20.18400
M6-2063.65837622777119.809846-17.224400
M7-1721.72140851618115.326853-14.929100
M8-1390.73302941988112.778531-12.331500
M9-1051.99640047540111.072832-9.471200
M10-725.289657296368110.471349-6.565400
M11-382.029542527825109.885915-3.47660.0011040.000552







Multiple Linear Regression - Regression Statistics
Multiple R0.989585570274023
R-squared0.979279600894564
Adjusted R-squared0.973989286229346
F-TEST (value)185.108006397625
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation173.428308377894
Sum Squared Residuals1413636.77290044

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.989585570274023 \tabularnewline
R-squared & 0.979279600894564 \tabularnewline
Adjusted R-squared & 0.973989286229346 \tabularnewline
F-TEST (value) & 185.108006397625 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 173.428308377894 \tabularnewline
Sum Squared Residuals & 1413636.77290044 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58124&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.989585570274023[/C][/ROW]
[ROW][C]R-squared[/C][C]0.979279600894564[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.973989286229346[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]185.108006397625[/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[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]173.428308377894[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1413636.77290044[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58124&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58124&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.989585570274023
R-squared0.979279600894564
Adjusted R-squared0.973989286229346
F-TEST (value)185.108006397625
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation173.428308377894
Sum Squared Residuals1413636.77290044







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1280327.252427686036-47.2524276860357
2557633.330820727895-76.3308207278947
3831943.069333008828-112.069333008828
410811163.01213128962-82.0121312896247
513181371.1084817198-53.1084817198011
615781579.17152294925-1.17152294925396
718591963.06492903642-104.064929036423
821412276.46151007168-135.461510071683
924282619.33221156051-191.332211560512
1027152965.74176856790-250.741768567903
1130043295.63211681006-291.632116810059
1233093684.17062462047-375.170624620467
13269312.651235295365-43.6512352953646
14537623.919208765239-86.9192087652394
15813936.82424469716-123.824244697159
1610681215.87548446305-147.875484463049
1714111468.30316600704-57.3031660070411
1816751693.60616933631-18.6061693363131
1919581925.0666452245832.9333547754197
2022422256.58277826271-14.5827782627088
2125242591.36125264346-67.3612526434598
2228362930.38225446522-94.3822544652162
2331433283.84561210916-140.845612109162
2435223652.15355214938-130.153552149377
25285297.082494011345-12.0824940113451
26574602.017420179246-28.0174201792459
27865908.149613857665-43.1496138576647
2811471200.92245611117-53.9224561111655
2915161550.01706800057-34.0170680005679
3017891874.01005845227-85.0100584522696
3120872180.76343004178-93.7634300417844
3223722477.27188493845-105.271884938445
3326692779.76940987719-110.769409877189
3429663081.05600485802-115.056004858017
3532703398.45617647683-128.456176476832
3636523755.24148878707-103.241488787066
37329276.67600826054052.3239917394605
38658561.38036665824596.6196333417547
39988847.45791054708140.54208945292
4013031193.35798294492109.642017055082
4116031595.491865988357.50813401164582
4219291972.52412759409-43.5241275940891
4322352252.71388411143-17.7138841114348
4425442522.3948469650121.6051530349895
4528722798.2407978412873.7592021587195
4631983074.10724462391123.892755376094
4735443365.82339107360178.176608926396
4839033697.45243215655205.547567843448
49332281.33783474671550.662165253285
50665570.35218366937594.6478163306251
511001862.498897889269138.501102110731
5213291154.83194519124174.168054808757
5316391502.07941828424136.920581715764
5419751826.68812166807148.311878331926
5523042121.39111158578182.608888414223
5626402406.28897976215233.711020237847
5729922696.29632807756295.703671922442
5833302993.71272748496336.287272515043
5936903307.24270353034382.757296469656
6040633659.98190228654403.018097713461

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 280 & 327.252427686036 & -47.2524276860357 \tabularnewline
2 & 557 & 633.330820727895 & -76.3308207278947 \tabularnewline
3 & 831 & 943.069333008828 & -112.069333008828 \tabularnewline
4 & 1081 & 1163.01213128962 & -82.0121312896247 \tabularnewline
5 & 1318 & 1371.1084817198 & -53.1084817198011 \tabularnewline
6 & 1578 & 1579.17152294925 & -1.17152294925396 \tabularnewline
7 & 1859 & 1963.06492903642 & -104.064929036423 \tabularnewline
8 & 2141 & 2276.46151007168 & -135.461510071683 \tabularnewline
9 & 2428 & 2619.33221156051 & -191.332211560512 \tabularnewline
10 & 2715 & 2965.74176856790 & -250.741768567903 \tabularnewline
11 & 3004 & 3295.63211681006 & -291.632116810059 \tabularnewline
12 & 3309 & 3684.17062462047 & -375.170624620467 \tabularnewline
13 & 269 & 312.651235295365 & -43.6512352953646 \tabularnewline
14 & 537 & 623.919208765239 & -86.9192087652394 \tabularnewline
15 & 813 & 936.82424469716 & -123.824244697159 \tabularnewline
16 & 1068 & 1215.87548446305 & -147.875484463049 \tabularnewline
17 & 1411 & 1468.30316600704 & -57.3031660070411 \tabularnewline
18 & 1675 & 1693.60616933631 & -18.6061693363131 \tabularnewline
19 & 1958 & 1925.06664522458 & 32.9333547754197 \tabularnewline
20 & 2242 & 2256.58277826271 & -14.5827782627088 \tabularnewline
21 & 2524 & 2591.36125264346 & -67.3612526434598 \tabularnewline
22 & 2836 & 2930.38225446522 & -94.3822544652162 \tabularnewline
23 & 3143 & 3283.84561210916 & -140.845612109162 \tabularnewline
24 & 3522 & 3652.15355214938 & -130.153552149377 \tabularnewline
25 & 285 & 297.082494011345 & -12.0824940113451 \tabularnewline
26 & 574 & 602.017420179246 & -28.0174201792459 \tabularnewline
27 & 865 & 908.149613857665 & -43.1496138576647 \tabularnewline
28 & 1147 & 1200.92245611117 & -53.9224561111655 \tabularnewline
29 & 1516 & 1550.01706800057 & -34.0170680005679 \tabularnewline
30 & 1789 & 1874.01005845227 & -85.0100584522696 \tabularnewline
31 & 2087 & 2180.76343004178 & -93.7634300417844 \tabularnewline
32 & 2372 & 2477.27188493845 & -105.271884938445 \tabularnewline
33 & 2669 & 2779.76940987719 & -110.769409877189 \tabularnewline
34 & 2966 & 3081.05600485802 & -115.056004858017 \tabularnewline
35 & 3270 & 3398.45617647683 & -128.456176476832 \tabularnewline
36 & 3652 & 3755.24148878707 & -103.241488787066 \tabularnewline
37 & 329 & 276.676008260540 & 52.3239917394605 \tabularnewline
38 & 658 & 561.380366658245 & 96.6196333417547 \tabularnewline
39 & 988 & 847.45791054708 & 140.54208945292 \tabularnewline
40 & 1303 & 1193.35798294492 & 109.642017055082 \tabularnewline
41 & 1603 & 1595.49186598835 & 7.50813401164582 \tabularnewline
42 & 1929 & 1972.52412759409 & -43.5241275940891 \tabularnewline
43 & 2235 & 2252.71388411143 & -17.7138841114348 \tabularnewline
44 & 2544 & 2522.39484696501 & 21.6051530349895 \tabularnewline
45 & 2872 & 2798.24079784128 & 73.7592021587195 \tabularnewline
46 & 3198 & 3074.10724462391 & 123.892755376094 \tabularnewline
47 & 3544 & 3365.82339107360 & 178.176608926396 \tabularnewline
48 & 3903 & 3697.45243215655 & 205.547567843448 \tabularnewline
49 & 332 & 281.337834746715 & 50.662165253285 \tabularnewline
50 & 665 & 570.352183669375 & 94.6478163306251 \tabularnewline
51 & 1001 & 862.498897889269 & 138.501102110731 \tabularnewline
52 & 1329 & 1154.83194519124 & 174.168054808757 \tabularnewline
53 & 1639 & 1502.07941828424 & 136.920581715764 \tabularnewline
54 & 1975 & 1826.68812166807 & 148.311878331926 \tabularnewline
55 & 2304 & 2121.39111158578 & 182.608888414223 \tabularnewline
56 & 2640 & 2406.28897976215 & 233.711020237847 \tabularnewline
57 & 2992 & 2696.29632807756 & 295.703671922442 \tabularnewline
58 & 3330 & 2993.71272748496 & 336.287272515043 \tabularnewline
59 & 3690 & 3307.24270353034 & 382.757296469656 \tabularnewline
60 & 4063 & 3659.98190228654 & 403.018097713461 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58124&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]280[/C][C]327.252427686036[/C][C]-47.2524276860357[/C][/ROW]
[ROW][C]2[/C][C]557[/C][C]633.330820727895[/C][C]-76.3308207278947[/C][/ROW]
[ROW][C]3[/C][C]831[/C][C]943.069333008828[/C][C]-112.069333008828[/C][/ROW]
[ROW][C]4[/C][C]1081[/C][C]1163.01213128962[/C][C]-82.0121312896247[/C][/ROW]
[ROW][C]5[/C][C]1318[/C][C]1371.1084817198[/C][C]-53.1084817198011[/C][/ROW]
[ROW][C]6[/C][C]1578[/C][C]1579.17152294925[/C][C]-1.17152294925396[/C][/ROW]
[ROW][C]7[/C][C]1859[/C][C]1963.06492903642[/C][C]-104.064929036423[/C][/ROW]
[ROW][C]8[/C][C]2141[/C][C]2276.46151007168[/C][C]-135.461510071683[/C][/ROW]
[ROW][C]9[/C][C]2428[/C][C]2619.33221156051[/C][C]-191.332211560512[/C][/ROW]
[ROW][C]10[/C][C]2715[/C][C]2965.74176856790[/C][C]-250.741768567903[/C][/ROW]
[ROW][C]11[/C][C]3004[/C][C]3295.63211681006[/C][C]-291.632116810059[/C][/ROW]
[ROW][C]12[/C][C]3309[/C][C]3684.17062462047[/C][C]-375.170624620467[/C][/ROW]
[ROW][C]13[/C][C]269[/C][C]312.651235295365[/C][C]-43.6512352953646[/C][/ROW]
[ROW][C]14[/C][C]537[/C][C]623.919208765239[/C][C]-86.9192087652394[/C][/ROW]
[ROW][C]15[/C][C]813[/C][C]936.82424469716[/C][C]-123.824244697159[/C][/ROW]
[ROW][C]16[/C][C]1068[/C][C]1215.87548446305[/C][C]-147.875484463049[/C][/ROW]
[ROW][C]17[/C][C]1411[/C][C]1468.30316600704[/C][C]-57.3031660070411[/C][/ROW]
[ROW][C]18[/C][C]1675[/C][C]1693.60616933631[/C][C]-18.6061693363131[/C][/ROW]
[ROW][C]19[/C][C]1958[/C][C]1925.06664522458[/C][C]32.9333547754197[/C][/ROW]
[ROW][C]20[/C][C]2242[/C][C]2256.58277826271[/C][C]-14.5827782627088[/C][/ROW]
[ROW][C]21[/C][C]2524[/C][C]2591.36125264346[/C][C]-67.3612526434598[/C][/ROW]
[ROW][C]22[/C][C]2836[/C][C]2930.38225446522[/C][C]-94.3822544652162[/C][/ROW]
[ROW][C]23[/C][C]3143[/C][C]3283.84561210916[/C][C]-140.845612109162[/C][/ROW]
[ROW][C]24[/C][C]3522[/C][C]3652.15355214938[/C][C]-130.153552149377[/C][/ROW]
[ROW][C]25[/C][C]285[/C][C]297.082494011345[/C][C]-12.0824940113451[/C][/ROW]
[ROW][C]26[/C][C]574[/C][C]602.017420179246[/C][C]-28.0174201792459[/C][/ROW]
[ROW][C]27[/C][C]865[/C][C]908.149613857665[/C][C]-43.1496138576647[/C][/ROW]
[ROW][C]28[/C][C]1147[/C][C]1200.92245611117[/C][C]-53.9224561111655[/C][/ROW]
[ROW][C]29[/C][C]1516[/C][C]1550.01706800057[/C][C]-34.0170680005679[/C][/ROW]
[ROW][C]30[/C][C]1789[/C][C]1874.01005845227[/C][C]-85.0100584522696[/C][/ROW]
[ROW][C]31[/C][C]2087[/C][C]2180.76343004178[/C][C]-93.7634300417844[/C][/ROW]
[ROW][C]32[/C][C]2372[/C][C]2477.27188493845[/C][C]-105.271884938445[/C][/ROW]
[ROW][C]33[/C][C]2669[/C][C]2779.76940987719[/C][C]-110.769409877189[/C][/ROW]
[ROW][C]34[/C][C]2966[/C][C]3081.05600485802[/C][C]-115.056004858017[/C][/ROW]
[ROW][C]35[/C][C]3270[/C][C]3398.45617647683[/C][C]-128.456176476832[/C][/ROW]
[ROW][C]36[/C][C]3652[/C][C]3755.24148878707[/C][C]-103.241488787066[/C][/ROW]
[ROW][C]37[/C][C]329[/C][C]276.676008260540[/C][C]52.3239917394605[/C][/ROW]
[ROW][C]38[/C][C]658[/C][C]561.380366658245[/C][C]96.6196333417547[/C][/ROW]
[ROW][C]39[/C][C]988[/C][C]847.45791054708[/C][C]140.54208945292[/C][/ROW]
[ROW][C]40[/C][C]1303[/C][C]1193.35798294492[/C][C]109.642017055082[/C][/ROW]
[ROW][C]41[/C][C]1603[/C][C]1595.49186598835[/C][C]7.50813401164582[/C][/ROW]
[ROW][C]42[/C][C]1929[/C][C]1972.52412759409[/C][C]-43.5241275940891[/C][/ROW]
[ROW][C]43[/C][C]2235[/C][C]2252.71388411143[/C][C]-17.7138841114348[/C][/ROW]
[ROW][C]44[/C][C]2544[/C][C]2522.39484696501[/C][C]21.6051530349895[/C][/ROW]
[ROW][C]45[/C][C]2872[/C][C]2798.24079784128[/C][C]73.7592021587195[/C][/ROW]
[ROW][C]46[/C][C]3198[/C][C]3074.10724462391[/C][C]123.892755376094[/C][/ROW]
[ROW][C]47[/C][C]3544[/C][C]3365.82339107360[/C][C]178.176608926396[/C][/ROW]
[ROW][C]48[/C][C]3903[/C][C]3697.45243215655[/C][C]205.547567843448[/C][/ROW]
[ROW][C]49[/C][C]332[/C][C]281.337834746715[/C][C]50.662165253285[/C][/ROW]
[ROW][C]50[/C][C]665[/C][C]570.352183669375[/C][C]94.6478163306251[/C][/ROW]
[ROW][C]51[/C][C]1001[/C][C]862.498897889269[/C][C]138.501102110731[/C][/ROW]
[ROW][C]52[/C][C]1329[/C][C]1154.83194519124[/C][C]174.168054808757[/C][/ROW]
[ROW][C]53[/C][C]1639[/C][C]1502.07941828424[/C][C]136.920581715764[/C][/ROW]
[ROW][C]54[/C][C]1975[/C][C]1826.68812166807[/C][C]148.311878331926[/C][/ROW]
[ROW][C]55[/C][C]2304[/C][C]2121.39111158578[/C][C]182.608888414223[/C][/ROW]
[ROW][C]56[/C][C]2640[/C][C]2406.28897976215[/C][C]233.711020237847[/C][/ROW]
[ROW][C]57[/C][C]2992[/C][C]2696.29632807756[/C][C]295.703671922442[/C][/ROW]
[ROW][C]58[/C][C]3330[/C][C]2993.71272748496[/C][C]336.287272515043[/C][/ROW]
[ROW][C]59[/C][C]3690[/C][C]3307.24270353034[/C][C]382.757296469656[/C][/ROW]
[ROW][C]60[/C][C]4063[/C][C]3659.98190228654[/C][C]403.018097713461[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58124&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58124&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
1280327.252427686036-47.2524276860357
2557633.330820727895-76.3308207278947
3831943.069333008828-112.069333008828
410811163.01213128962-82.0121312896247
513181371.1084817198-53.1084817198011
615781579.17152294925-1.17152294925396
718591963.06492903642-104.064929036423
821412276.46151007168-135.461510071683
924282619.33221156051-191.332211560512
1027152965.74176856790-250.741768567903
1130043295.63211681006-291.632116810059
1233093684.17062462047-375.170624620467
13269312.651235295365-43.6512352953646
14537623.919208765239-86.9192087652394
15813936.82424469716-123.824244697159
1610681215.87548446305-147.875484463049
1714111468.30316600704-57.3031660070411
1816751693.60616933631-18.6061693363131
1919581925.0666452245832.9333547754197
2022422256.58277826271-14.5827782627088
2125242591.36125264346-67.3612526434598
2228362930.38225446522-94.3822544652162
2331433283.84561210916-140.845612109162
2435223652.15355214938-130.153552149377
25285297.082494011345-12.0824940113451
26574602.017420179246-28.0174201792459
27865908.149613857665-43.1496138576647
2811471200.92245611117-53.9224561111655
2915161550.01706800057-34.0170680005679
3017891874.01005845227-85.0100584522696
3120872180.76343004178-93.7634300417844
3223722477.27188493845-105.271884938445
3326692779.76940987719-110.769409877189
3429663081.05600485802-115.056004858017
3532703398.45617647683-128.456176476832
3636523755.24148878707-103.241488787066
37329276.67600826054052.3239917394605
38658561.38036665824596.6196333417547
39988847.45791054708140.54208945292
4013031193.35798294492109.642017055082
4116031595.491865988357.50813401164582
4219291972.52412759409-43.5241275940891
4322352252.71388411143-17.7138841114348
4425442522.3948469650121.6051530349895
4528722798.2407978412873.7592021587195
4631983074.10724462391123.892755376094
4735443365.82339107360178.176608926396
4839033697.45243215655205.547567843448
49332281.33783474671550.662165253285
50665570.35218366937594.6478163306251
511001862.498897889269138.501102110731
5213291154.83194519124174.168054808757
5316391502.07941828424136.920581715764
5419751826.68812166807148.311878331926
5523042121.39111158578182.608888414223
5626402406.28897976215233.711020237847
5729922696.29632807756295.703671922442
5833302993.71272748496336.287272515043
5936903307.24270353034382.757296469656
6040633659.98190228654403.018097713461







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.0006912374518456480.001382474903691300.999308762548154
170.0005341592911292490.001068318582258500.99946584070887
186.29723796259271e-050.0001259447592518540.999937027620374
190.0008356457354519270.001671291470903850.999164354264548
200.001026460152240990.002052920304481970.99897353984776
210.001239359264329100.002478718528658200.99876064073567
220.002905860070593660.005811720141187330.997094139929406
230.01059381907959290.02118763815918580.989406180920407
240.1027346805656590.2054693611313170.897265319434341
250.0615969106297880.1231938212595760.938403089370212
260.0359829154864020.0719658309728040.964017084513598
270.02113808327051900.04227616654103790.97886191672948
280.01672815911234910.03345631822469820.98327184088765
290.01925565069320930.03851130138641860.98074434930679
300.01861405167273570.03722810334547140.981385948327264
310.01796073692532050.03592147385064100.98203926307468
320.02005891110669340.04011782221338670.979941088893307
330.03133403863819790.06266807727639580.968665961361802
340.07443447263666980.1488689452733400.92556552736333
350.3425731103104030.6851462206208050.657426889689597
360.954246287469620.09150742506075850.0457537125303792
370.9289002694347350.1421994611305300.0710997305652651
380.9165093318133830.1669813363732350.0834906681866174
390.9225671638330260.1548656723339490.0774328361669743
400.9057702969304530.1884594061390950.0942297030695473
410.8538473700260870.2923052599478260.146152629973913
420.8429566096854920.3140867806290170.157043390314508
430.8315639520405140.3368720959189720.168436047959486
440.8069601831010050.386079633797990.193039816898995

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.000691237451845648 & 0.00138247490369130 & 0.999308762548154 \tabularnewline
17 & 0.000534159291129249 & 0.00106831858225850 & 0.99946584070887 \tabularnewline
18 & 6.29723796259271e-05 & 0.000125944759251854 & 0.999937027620374 \tabularnewline
19 & 0.000835645735451927 & 0.00167129147090385 & 0.999164354264548 \tabularnewline
20 & 0.00102646015224099 & 0.00205292030448197 & 0.99897353984776 \tabularnewline
21 & 0.00123935926432910 & 0.00247871852865820 & 0.99876064073567 \tabularnewline
22 & 0.00290586007059366 & 0.00581172014118733 & 0.997094139929406 \tabularnewline
23 & 0.0105938190795929 & 0.0211876381591858 & 0.989406180920407 \tabularnewline
24 & 0.102734680565659 & 0.205469361131317 & 0.897265319434341 \tabularnewline
25 & 0.061596910629788 & 0.123193821259576 & 0.938403089370212 \tabularnewline
26 & 0.035982915486402 & 0.071965830972804 & 0.964017084513598 \tabularnewline
27 & 0.0211380832705190 & 0.0422761665410379 & 0.97886191672948 \tabularnewline
28 & 0.0167281591123491 & 0.0334563182246982 & 0.98327184088765 \tabularnewline
29 & 0.0192556506932093 & 0.0385113013864186 & 0.98074434930679 \tabularnewline
30 & 0.0186140516727357 & 0.0372281033454714 & 0.981385948327264 \tabularnewline
31 & 0.0179607369253205 & 0.0359214738506410 & 0.98203926307468 \tabularnewline
32 & 0.0200589111066934 & 0.0401178222133867 & 0.979941088893307 \tabularnewline
33 & 0.0313340386381979 & 0.0626680772763958 & 0.968665961361802 \tabularnewline
34 & 0.0744344726366698 & 0.148868945273340 & 0.92556552736333 \tabularnewline
35 & 0.342573110310403 & 0.685146220620805 & 0.657426889689597 \tabularnewline
36 & 0.95424628746962 & 0.0915074250607585 & 0.0457537125303792 \tabularnewline
37 & 0.928900269434735 & 0.142199461130530 & 0.0710997305652651 \tabularnewline
38 & 0.916509331813383 & 0.166981336373235 & 0.0834906681866174 \tabularnewline
39 & 0.922567163833026 & 0.154865672333949 & 0.0774328361669743 \tabularnewline
40 & 0.905770296930453 & 0.188459406139095 & 0.0942297030695473 \tabularnewline
41 & 0.853847370026087 & 0.292305259947826 & 0.146152629973913 \tabularnewline
42 & 0.842956609685492 & 0.314086780629017 & 0.157043390314508 \tabularnewline
43 & 0.831563952040514 & 0.336872095918972 & 0.168436047959486 \tabularnewline
44 & 0.806960183101005 & 0.38607963379799 & 0.193039816898995 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58124&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.000691237451845648[/C][C]0.00138247490369130[/C][C]0.999308762548154[/C][/ROW]
[ROW][C]17[/C][C]0.000534159291129249[/C][C]0.00106831858225850[/C][C]0.99946584070887[/C][/ROW]
[ROW][C]18[/C][C]6.29723796259271e-05[/C][C]0.000125944759251854[/C][C]0.999937027620374[/C][/ROW]
[ROW][C]19[/C][C]0.000835645735451927[/C][C]0.00167129147090385[/C][C]0.999164354264548[/C][/ROW]
[ROW][C]20[/C][C]0.00102646015224099[/C][C]0.00205292030448197[/C][C]0.99897353984776[/C][/ROW]
[ROW][C]21[/C][C]0.00123935926432910[/C][C]0.00247871852865820[/C][C]0.99876064073567[/C][/ROW]
[ROW][C]22[/C][C]0.00290586007059366[/C][C]0.00581172014118733[/C][C]0.997094139929406[/C][/ROW]
[ROW][C]23[/C][C]0.0105938190795929[/C][C]0.0211876381591858[/C][C]0.989406180920407[/C][/ROW]
[ROW][C]24[/C][C]0.102734680565659[/C][C]0.205469361131317[/C][C]0.897265319434341[/C][/ROW]
[ROW][C]25[/C][C]0.061596910629788[/C][C]0.123193821259576[/C][C]0.938403089370212[/C][/ROW]
[ROW][C]26[/C][C]0.035982915486402[/C][C]0.071965830972804[/C][C]0.964017084513598[/C][/ROW]
[ROW][C]27[/C][C]0.0211380832705190[/C][C]0.0422761665410379[/C][C]0.97886191672948[/C][/ROW]
[ROW][C]28[/C][C]0.0167281591123491[/C][C]0.0334563182246982[/C][C]0.98327184088765[/C][/ROW]
[ROW][C]29[/C][C]0.0192556506932093[/C][C]0.0385113013864186[/C][C]0.98074434930679[/C][/ROW]
[ROW][C]30[/C][C]0.0186140516727357[/C][C]0.0372281033454714[/C][C]0.981385948327264[/C][/ROW]
[ROW][C]31[/C][C]0.0179607369253205[/C][C]0.0359214738506410[/C][C]0.98203926307468[/C][/ROW]
[ROW][C]32[/C][C]0.0200589111066934[/C][C]0.0401178222133867[/C][C]0.979941088893307[/C][/ROW]
[ROW][C]33[/C][C]0.0313340386381979[/C][C]0.0626680772763958[/C][C]0.968665961361802[/C][/ROW]
[ROW][C]34[/C][C]0.0744344726366698[/C][C]0.148868945273340[/C][C]0.92556552736333[/C][/ROW]
[ROW][C]35[/C][C]0.342573110310403[/C][C]0.685146220620805[/C][C]0.657426889689597[/C][/ROW]
[ROW][C]36[/C][C]0.95424628746962[/C][C]0.0915074250607585[/C][C]0.0457537125303792[/C][/ROW]
[ROW][C]37[/C][C]0.928900269434735[/C][C]0.142199461130530[/C][C]0.0710997305652651[/C][/ROW]
[ROW][C]38[/C][C]0.916509331813383[/C][C]0.166981336373235[/C][C]0.0834906681866174[/C][/ROW]
[ROW][C]39[/C][C]0.922567163833026[/C][C]0.154865672333949[/C][C]0.0774328361669743[/C][/ROW]
[ROW][C]40[/C][C]0.905770296930453[/C][C]0.188459406139095[/C][C]0.0942297030695473[/C][/ROW]
[ROW][C]41[/C][C]0.853847370026087[/C][C]0.292305259947826[/C][C]0.146152629973913[/C][/ROW]
[ROW][C]42[/C][C]0.842956609685492[/C][C]0.314086780629017[/C][C]0.157043390314508[/C][/ROW]
[ROW][C]43[/C][C]0.831563952040514[/C][C]0.336872095918972[/C][C]0.168436047959486[/C][/ROW]
[ROW][C]44[/C][C]0.806960183101005[/C][C]0.38607963379799[/C][C]0.193039816898995[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58124&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58124&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.0006912374518456480.001382474903691300.999308762548154
170.0005341592911292490.001068318582258500.99946584070887
186.29723796259271e-050.0001259447592518540.999937027620374
190.0008356457354519270.001671291470903850.999164354264548
200.001026460152240990.002052920304481970.99897353984776
210.001239359264329100.002478718528658200.99876064073567
220.002905860070593660.005811720141187330.997094139929406
230.01059381907959290.02118763815918580.989406180920407
240.1027346805656590.2054693611313170.897265319434341
250.0615969106297880.1231938212595760.938403089370212
260.0359829154864020.0719658309728040.964017084513598
270.02113808327051900.04227616654103790.97886191672948
280.01672815911234910.03345631822469820.98327184088765
290.01925565069320930.03851130138641860.98074434930679
300.01861405167273570.03722810334547140.981385948327264
310.01796073692532050.03592147385064100.98203926307468
320.02005891110669340.04011782221338670.979941088893307
330.03133403863819790.06266807727639580.968665961361802
340.07443447263666980.1488689452733400.92556552736333
350.3425731103104030.6851462206208050.657426889689597
360.954246287469620.09150742506075850.0457537125303792
370.9289002694347350.1421994611305300.0710997305652651
380.9165093318133830.1669813363732350.0834906681866174
390.9225671638330260.1548656723339490.0774328361669743
400.9057702969304530.1884594061390950.0942297030695473
410.8538473700260870.2923052599478260.146152629973913
420.8429566096854920.3140867806290170.157043390314508
430.8315639520405140.3368720959189720.168436047959486
440.8069601831010050.386079633797990.193039816898995







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.241379310344828NOK
5% type I error level140.482758620689655NOK
10% type I error level170.586206896551724NOK

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

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



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