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 computationMon, 24 Nov 2008 11:27:38 -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/2008/Nov/24/t1227551307ax1i3ztjgs7yz9x.htm/, Retrieved Tue, 14 May 2024 04:18:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25482, Retrieved Tue, 14 May 2024 04:18:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [The seatbelt law] [2007-11-19 10:09:20] [179580f635b5f83b2ee77249aac47f19]
F R  D  [Multiple Regression] [] [2008-11-23 13:19:57] [4c8dfb519edec2da3492d7e6be9a5685]
F   PD    [Multiple Regression] [] [2008-11-23 14:06:19] [4c8dfb519edec2da3492d7e6be9a5685]
-    D      [Multiple Regression] [seatbelt law Q3] [2008-11-24 18:20:45] [077ffec662d24c06be4c491541a44245]
-   P           [Multiple Regression] [seatbelt law Q3 t...] [2008-11-24 18:27:38] [3817f5e632a8bfeb1be7b5e8c86bd450] [Current]
F   P             [Multiple Regression] [seatbelt law Q3 d...] [2008-11-24 18:30:03] [077ffec662d24c06be4c491541a44245]
Feedback Forum

Post a new message
Dataseries X:
12300.00	0.00
12092.80	0.00
12380.80	0.00
12196.90	0.00
9455.00	0.00
13168.00	0.00
13427.90	0.00
11980.50	0.00
11884.80	0.00
11691.70	0.00
12233.80	0.00
14341.40	0.00
13130.70	0.00
12421.10	0.00
14285.80	0.00
12864.60	0.00
11160.20	0.00
14316.20	0.00
14388.70	0.00
14013.90	0.00
13419.00	0.00
12769.60	0.00
13315.50	0.00
15332.90	0.00
14243.00	0.00
13824.40	0.00
14962.90	0.00
13202.90	0.00
12199.00	0.00
15508.90	0.00
14199.80	0.00
15169.60	0.00
14058.00	0.00
13786.20	0.00
14147.90	0.00
16541.70	0.00
13587.50	0.00
15582.40	0.00
15802.80	0.00
14130.50	0.00
12923.20	0.00
15612.20	1.00
16033.70	1.00
16036.60	1.00
14037.80	1.00
15330.60	1.00
15038.30	1.00
17401.80	1.00
14992.50	1.00
16043.70	1.00
16929.60	1.00
15921.30	1.00
14417.20	1.00
15961.00	1.00
17851.90	1.00
16483.90	1.00
14215.50	1.00
17429.70	1.00
17839.50	1.00
17629.20	1.00




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 6 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25482&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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
x[t] = + 15270.1496774194 + 2448.12580645161y[t] -2109.03483870968M1[t] -1766.89483870968M2[t] -887.394838709678M3[t] -2096.53483870968M4[t] -3728.85483870968M5[t] -1336.14M6[t] -1069M7[t] -1512.5M8[t] -2726.38M9[t] -2047.84M10[t] -1734.4M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
x[t] =  +  15270.1496774194 +  2448.12580645161y[t] -2109.03483870968M1[t] -1766.89483870968M2[t] -887.394838709678M3[t] -2096.53483870968M4[t] -3728.85483870968M5[t] -1336.14M6[t] -1069M7[t] -1512.5M8[t] -2726.38M9[t] -2047.84M10[t] -1734.4M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]x[t] =  +  15270.1496774194 +  2448.12580645161y[t] -2109.03483870968M1[t] -1766.89483870968M2[t] -887.394838709678M3[t] -2096.53483870968M4[t] -3728.85483870968M5[t] -1336.14M6[t] -1069M7[t] -1512.5M8[t] -2726.38M9[t] -2047.84M10[t] -1734.4M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25482&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
x[t] = + 15270.1496774194 + 2448.12580645161y[t] -2109.03483870968M1[t] -1766.89483870968M2[t] -887.394838709678M3[t] -2096.53483870968M4[t] -3728.85483870968M5[t] -1336.14M6[t] -1069M7[t] -1512.5M8[t] -2726.38M9[t] -2047.84M10[t] -1734.4M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)15270.1496774194510.02037829.940300
y2448.12580645161313.8958447.799200
M1-2109.03483870968701.892445-3.00480.0042530.002126
M2-1766.89483870968701.892445-2.51730.0152930.007646
M3-887.394838709678701.892445-1.26430.212360.10618
M4-2096.53483870968701.892445-2.9870.0044660.002233
M5-3728.85483870968701.892445-5.31263e-061e-06
M6-1336.14699.079237-1.91130.0620770.031038
M7-1069699.079237-1.52920.1329290.066465
M8-1512.5699.079237-2.16360.0356150.017807
M9-2726.38699.079237-3.90.0003050.000152
M10-2047.84699.079237-2.92930.0052260.002613
M11-1734.4699.079237-2.4810.0167380.008369

\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) & 15270.1496774194 & 510.020378 & 29.9403 & 0 & 0 \tabularnewline
y & 2448.12580645161 & 313.895844 & 7.7992 & 0 & 0 \tabularnewline
M1 & -2109.03483870968 & 701.892445 & -3.0048 & 0.004253 & 0.002126 \tabularnewline
M2 & -1766.89483870968 & 701.892445 & -2.5173 & 0.015293 & 0.007646 \tabularnewline
M3 & -887.394838709678 & 701.892445 & -1.2643 & 0.21236 & 0.10618 \tabularnewline
M4 & -2096.53483870968 & 701.892445 & -2.987 & 0.004466 & 0.002233 \tabularnewline
M5 & -3728.85483870968 & 701.892445 & -5.3126 & 3e-06 & 1e-06 \tabularnewline
M6 & -1336.14 & 699.079237 & -1.9113 & 0.062077 & 0.031038 \tabularnewline
M7 & -1069 & 699.079237 & -1.5292 & 0.132929 & 0.066465 \tabularnewline
M8 & -1512.5 & 699.079237 & -2.1636 & 0.035615 & 0.017807 \tabularnewline
M9 & -2726.38 & 699.079237 & -3.9 & 0.000305 & 0.000152 \tabularnewline
M10 & -2047.84 & 699.079237 & -2.9293 & 0.005226 & 0.002613 \tabularnewline
M11 & -1734.4 & 699.079237 & -2.481 & 0.016738 & 0.008369 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&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]15270.1496774194[/C][C]510.020378[/C][C]29.9403[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]y[/C][C]2448.12580645161[/C][C]313.895844[/C][C]7.7992[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-2109.03483870968[/C][C]701.892445[/C][C]-3.0048[/C][C]0.004253[/C][C]0.002126[/C][/ROW]
[ROW][C]M2[/C][C]-1766.89483870968[/C][C]701.892445[/C][C]-2.5173[/C][C]0.015293[/C][C]0.007646[/C][/ROW]
[ROW][C]M3[/C][C]-887.394838709678[/C][C]701.892445[/C][C]-1.2643[/C][C]0.21236[/C][C]0.10618[/C][/ROW]
[ROW][C]M4[/C][C]-2096.53483870968[/C][C]701.892445[/C][C]-2.987[/C][C]0.004466[/C][C]0.002233[/C][/ROW]
[ROW][C]M5[/C][C]-3728.85483870968[/C][C]701.892445[/C][C]-5.3126[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M6[/C][C]-1336.14[/C][C]699.079237[/C][C]-1.9113[/C][C]0.062077[/C][C]0.031038[/C][/ROW]
[ROW][C]M7[/C][C]-1069[/C][C]699.079237[/C][C]-1.5292[/C][C]0.132929[/C][C]0.066465[/C][/ROW]
[ROW][C]M8[/C][C]-1512.5[/C][C]699.079237[/C][C]-2.1636[/C][C]0.035615[/C][C]0.017807[/C][/ROW]
[ROW][C]M9[/C][C]-2726.38[/C][C]699.079237[/C][C]-3.9[/C][C]0.000305[/C][C]0.000152[/C][/ROW]
[ROW][C]M10[/C][C]-2047.84[/C][C]699.079237[/C][C]-2.9293[/C][C]0.005226[/C][C]0.002613[/C][/ROW]
[ROW][C]M11[/C][C]-1734.4[/C][C]699.079237[/C][C]-2.481[/C][C]0.016738[/C][C]0.008369[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25482&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)15270.1496774194510.02037829.940300
y2448.12580645161313.8958447.799200
M1-2109.03483870968701.892445-3.00480.0042530.002126
M2-1766.89483870968701.892445-2.51730.0152930.007646
M3-887.394838709678701.892445-1.26430.212360.10618
M4-2096.53483870968701.892445-2.9870.0044660.002233
M5-3728.85483870968701.892445-5.31263e-061e-06
M6-1336.14699.079237-1.91130.0620770.031038
M7-1069699.079237-1.52920.1329290.066465
M8-1512.5699.079237-2.16360.0356150.017807
M9-2726.38699.079237-3.90.0003050.000152
M10-2047.84699.079237-2.92930.0052260.002613
M11-1734.4699.079237-2.4810.0167380.008369







Multiple Linear Regression - Regression Statistics
Multiple R0.837890900854055
R-squared0.70206116173402
Adjusted R-squared0.625991671112919
F-TEST (value)9.2292081358998
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value8.83679984742258e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1105.34132769833
Sum Squared Residuals57423634.183742

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.837890900854055 \tabularnewline
R-squared & 0.70206116173402 \tabularnewline
Adjusted R-squared & 0.625991671112919 \tabularnewline
F-TEST (value) & 9.2292081358998 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 8.83679984742258e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1105.34132769833 \tabularnewline
Sum Squared Residuals & 57423634.183742 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.837890900854055[/C][/ROW]
[ROW][C]R-squared[/C][C]0.70206116173402[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.625991671112919[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.2292081358998[/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]8.83679984742258e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1105.34132769833[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]57423634.183742[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25482&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.837890900854055
R-squared0.70206116173402
Adjusted R-squared0.625991671112919
F-TEST (value)9.2292081358998
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value8.83679984742258e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1105.34132769833
Sum Squared Residuals57423634.183742







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11230013161.1148387097-861.11483870969
212092.813503.2548387097-1410.45483870968
312380.814382.7548387097-2001.95483870968
412196.913173.6148387097-976.714838709676
5945511541.2948387097-2086.29483870968
61316813934.0096774194-766.009677419355
713427.914201.1496774194-773.249677419354
811980.513757.6496774194-1777.14967741935
911884.812543.7696774194-658.969677419356
1011691.713222.3096774194-1530.60967741935
1112233.813535.7496774194-1301.94967741936
1214341.415270.1496774194-928.749677419354
1313130.713161.1148387097-30.4148387096743
1412421.113503.2548387097-1082.15483870968
1514285.814382.7548387097-96.9548387096768
1612864.613173.6148387097-309.014838709677
1711160.211541.2948387097-381.094838709677
1814316.213934.0096774194382.190322580646
1914388.714201.1496774194187.550322580646
2014013.913757.6496774194256.250322580645
211341912543.7696774194875.230322580646
2212769.613222.3096774194-452.709677419355
2313315.513535.7496774194-220.249677419354
2415332.915270.149677419462.7503225806451
251424313161.11483870971081.88516129033
2613824.413503.2548387097321.145161290322
2714962.914382.7548387097580.145161290324
2813202.913173.614838709729.2851612903226
291219911541.2948387097657.705161290322
3015508.913934.00967741941574.89032258064
3114199.814201.1496774194-1.34967741935603
3215169.613757.64967741941411.95032258065
331405812543.76967741941514.23032258065
3413786.213222.3096774194563.890322580645
3514147.913535.7496774194612.150322580645
3616541.715270.14967741941271.55032258065
3713587.513161.1148387097426.385161290326
3815582.413503.25483870972079.14516129032
3915802.814382.75483870971420.04516129032
4014130.513173.6148387097956.885161290322
4112923.211541.29483870971381.90516129032
4215612.216382.1354838710-769.935483870967
4316033.716649.2754838710-615.575483870968
4416036.616205.7754838710-169.175483870968
4514037.814991.8954838710-954.095483870968
4615330.615670.4354838710-339.835483870968
4715038.315983.8754838710-945.575483870969
4817401.817718.2754838710-316.475483870969
4914992.515609.2406451613-616.740645161288
5016043.715951.380645161392.31935483871
5116929.616830.880645161398.7193548387086
5215921.315621.7406451613299.559354838709
5314417.213989.4206451613427.77935483871
541596116382.1354838710-421.135483870968
5517851.916649.27548387101202.62451612903
5616483.916205.7754838710278.124516129033
5714215.514991.8954838710-776.395483870968
5817429.715670.43548387101759.26451612903
5917839.515983.87548387101855.62451612903
6017629.217718.2754838710-89.0754838709673

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 12300 & 13161.1148387097 & -861.11483870969 \tabularnewline
2 & 12092.8 & 13503.2548387097 & -1410.45483870968 \tabularnewline
3 & 12380.8 & 14382.7548387097 & -2001.95483870968 \tabularnewline
4 & 12196.9 & 13173.6148387097 & -976.714838709676 \tabularnewline
5 & 9455 & 11541.2948387097 & -2086.29483870968 \tabularnewline
6 & 13168 & 13934.0096774194 & -766.009677419355 \tabularnewline
7 & 13427.9 & 14201.1496774194 & -773.249677419354 \tabularnewline
8 & 11980.5 & 13757.6496774194 & -1777.14967741935 \tabularnewline
9 & 11884.8 & 12543.7696774194 & -658.969677419356 \tabularnewline
10 & 11691.7 & 13222.3096774194 & -1530.60967741935 \tabularnewline
11 & 12233.8 & 13535.7496774194 & -1301.94967741936 \tabularnewline
12 & 14341.4 & 15270.1496774194 & -928.749677419354 \tabularnewline
13 & 13130.7 & 13161.1148387097 & -30.4148387096743 \tabularnewline
14 & 12421.1 & 13503.2548387097 & -1082.15483870968 \tabularnewline
15 & 14285.8 & 14382.7548387097 & -96.9548387096768 \tabularnewline
16 & 12864.6 & 13173.6148387097 & -309.014838709677 \tabularnewline
17 & 11160.2 & 11541.2948387097 & -381.094838709677 \tabularnewline
18 & 14316.2 & 13934.0096774194 & 382.190322580646 \tabularnewline
19 & 14388.7 & 14201.1496774194 & 187.550322580646 \tabularnewline
20 & 14013.9 & 13757.6496774194 & 256.250322580645 \tabularnewline
21 & 13419 & 12543.7696774194 & 875.230322580646 \tabularnewline
22 & 12769.6 & 13222.3096774194 & -452.709677419355 \tabularnewline
23 & 13315.5 & 13535.7496774194 & -220.249677419354 \tabularnewline
24 & 15332.9 & 15270.1496774194 & 62.7503225806451 \tabularnewline
25 & 14243 & 13161.1148387097 & 1081.88516129033 \tabularnewline
26 & 13824.4 & 13503.2548387097 & 321.145161290322 \tabularnewline
27 & 14962.9 & 14382.7548387097 & 580.145161290324 \tabularnewline
28 & 13202.9 & 13173.6148387097 & 29.2851612903226 \tabularnewline
29 & 12199 & 11541.2948387097 & 657.705161290322 \tabularnewline
30 & 15508.9 & 13934.0096774194 & 1574.89032258064 \tabularnewline
31 & 14199.8 & 14201.1496774194 & -1.34967741935603 \tabularnewline
32 & 15169.6 & 13757.6496774194 & 1411.95032258065 \tabularnewline
33 & 14058 & 12543.7696774194 & 1514.23032258065 \tabularnewline
34 & 13786.2 & 13222.3096774194 & 563.890322580645 \tabularnewline
35 & 14147.9 & 13535.7496774194 & 612.150322580645 \tabularnewline
36 & 16541.7 & 15270.1496774194 & 1271.55032258065 \tabularnewline
37 & 13587.5 & 13161.1148387097 & 426.385161290326 \tabularnewline
38 & 15582.4 & 13503.2548387097 & 2079.14516129032 \tabularnewline
39 & 15802.8 & 14382.7548387097 & 1420.04516129032 \tabularnewline
40 & 14130.5 & 13173.6148387097 & 956.885161290322 \tabularnewline
41 & 12923.2 & 11541.2948387097 & 1381.90516129032 \tabularnewline
42 & 15612.2 & 16382.1354838710 & -769.935483870967 \tabularnewline
43 & 16033.7 & 16649.2754838710 & -615.575483870968 \tabularnewline
44 & 16036.6 & 16205.7754838710 & -169.175483870968 \tabularnewline
45 & 14037.8 & 14991.8954838710 & -954.095483870968 \tabularnewline
46 & 15330.6 & 15670.4354838710 & -339.835483870968 \tabularnewline
47 & 15038.3 & 15983.8754838710 & -945.575483870969 \tabularnewline
48 & 17401.8 & 17718.2754838710 & -316.475483870969 \tabularnewline
49 & 14992.5 & 15609.2406451613 & -616.740645161288 \tabularnewline
50 & 16043.7 & 15951.3806451613 & 92.31935483871 \tabularnewline
51 & 16929.6 & 16830.8806451613 & 98.7193548387086 \tabularnewline
52 & 15921.3 & 15621.7406451613 & 299.559354838709 \tabularnewline
53 & 14417.2 & 13989.4206451613 & 427.77935483871 \tabularnewline
54 & 15961 & 16382.1354838710 & -421.135483870968 \tabularnewline
55 & 17851.9 & 16649.2754838710 & 1202.62451612903 \tabularnewline
56 & 16483.9 & 16205.7754838710 & 278.124516129033 \tabularnewline
57 & 14215.5 & 14991.8954838710 & -776.395483870968 \tabularnewline
58 & 17429.7 & 15670.4354838710 & 1759.26451612903 \tabularnewline
59 & 17839.5 & 15983.8754838710 & 1855.62451612903 \tabularnewline
60 & 17629.2 & 17718.2754838710 & -89.0754838709673 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&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]12300[/C][C]13161.1148387097[/C][C]-861.11483870969[/C][/ROW]
[ROW][C]2[/C][C]12092.8[/C][C]13503.2548387097[/C][C]-1410.45483870968[/C][/ROW]
[ROW][C]3[/C][C]12380.8[/C][C]14382.7548387097[/C][C]-2001.95483870968[/C][/ROW]
[ROW][C]4[/C][C]12196.9[/C][C]13173.6148387097[/C][C]-976.714838709676[/C][/ROW]
[ROW][C]5[/C][C]9455[/C][C]11541.2948387097[/C][C]-2086.29483870968[/C][/ROW]
[ROW][C]6[/C][C]13168[/C][C]13934.0096774194[/C][C]-766.009677419355[/C][/ROW]
[ROW][C]7[/C][C]13427.9[/C][C]14201.1496774194[/C][C]-773.249677419354[/C][/ROW]
[ROW][C]8[/C][C]11980.5[/C][C]13757.6496774194[/C][C]-1777.14967741935[/C][/ROW]
[ROW][C]9[/C][C]11884.8[/C][C]12543.7696774194[/C][C]-658.969677419356[/C][/ROW]
[ROW][C]10[/C][C]11691.7[/C][C]13222.3096774194[/C][C]-1530.60967741935[/C][/ROW]
[ROW][C]11[/C][C]12233.8[/C][C]13535.7496774194[/C][C]-1301.94967741936[/C][/ROW]
[ROW][C]12[/C][C]14341.4[/C][C]15270.1496774194[/C][C]-928.749677419354[/C][/ROW]
[ROW][C]13[/C][C]13130.7[/C][C]13161.1148387097[/C][C]-30.4148387096743[/C][/ROW]
[ROW][C]14[/C][C]12421.1[/C][C]13503.2548387097[/C][C]-1082.15483870968[/C][/ROW]
[ROW][C]15[/C][C]14285.8[/C][C]14382.7548387097[/C][C]-96.9548387096768[/C][/ROW]
[ROW][C]16[/C][C]12864.6[/C][C]13173.6148387097[/C][C]-309.014838709677[/C][/ROW]
[ROW][C]17[/C][C]11160.2[/C][C]11541.2948387097[/C][C]-381.094838709677[/C][/ROW]
[ROW][C]18[/C][C]14316.2[/C][C]13934.0096774194[/C][C]382.190322580646[/C][/ROW]
[ROW][C]19[/C][C]14388.7[/C][C]14201.1496774194[/C][C]187.550322580646[/C][/ROW]
[ROW][C]20[/C][C]14013.9[/C][C]13757.6496774194[/C][C]256.250322580645[/C][/ROW]
[ROW][C]21[/C][C]13419[/C][C]12543.7696774194[/C][C]875.230322580646[/C][/ROW]
[ROW][C]22[/C][C]12769.6[/C][C]13222.3096774194[/C][C]-452.709677419355[/C][/ROW]
[ROW][C]23[/C][C]13315.5[/C][C]13535.7496774194[/C][C]-220.249677419354[/C][/ROW]
[ROW][C]24[/C][C]15332.9[/C][C]15270.1496774194[/C][C]62.7503225806451[/C][/ROW]
[ROW][C]25[/C][C]14243[/C][C]13161.1148387097[/C][C]1081.88516129033[/C][/ROW]
[ROW][C]26[/C][C]13824.4[/C][C]13503.2548387097[/C][C]321.145161290322[/C][/ROW]
[ROW][C]27[/C][C]14962.9[/C][C]14382.7548387097[/C][C]580.145161290324[/C][/ROW]
[ROW][C]28[/C][C]13202.9[/C][C]13173.6148387097[/C][C]29.2851612903226[/C][/ROW]
[ROW][C]29[/C][C]12199[/C][C]11541.2948387097[/C][C]657.705161290322[/C][/ROW]
[ROW][C]30[/C][C]15508.9[/C][C]13934.0096774194[/C][C]1574.89032258064[/C][/ROW]
[ROW][C]31[/C][C]14199.8[/C][C]14201.1496774194[/C][C]-1.34967741935603[/C][/ROW]
[ROW][C]32[/C][C]15169.6[/C][C]13757.6496774194[/C][C]1411.95032258065[/C][/ROW]
[ROW][C]33[/C][C]14058[/C][C]12543.7696774194[/C][C]1514.23032258065[/C][/ROW]
[ROW][C]34[/C][C]13786.2[/C][C]13222.3096774194[/C][C]563.890322580645[/C][/ROW]
[ROW][C]35[/C][C]14147.9[/C][C]13535.7496774194[/C][C]612.150322580645[/C][/ROW]
[ROW][C]36[/C][C]16541.7[/C][C]15270.1496774194[/C][C]1271.55032258065[/C][/ROW]
[ROW][C]37[/C][C]13587.5[/C][C]13161.1148387097[/C][C]426.385161290326[/C][/ROW]
[ROW][C]38[/C][C]15582.4[/C][C]13503.2548387097[/C][C]2079.14516129032[/C][/ROW]
[ROW][C]39[/C][C]15802.8[/C][C]14382.7548387097[/C][C]1420.04516129032[/C][/ROW]
[ROW][C]40[/C][C]14130.5[/C][C]13173.6148387097[/C][C]956.885161290322[/C][/ROW]
[ROW][C]41[/C][C]12923.2[/C][C]11541.2948387097[/C][C]1381.90516129032[/C][/ROW]
[ROW][C]42[/C][C]15612.2[/C][C]16382.1354838710[/C][C]-769.935483870967[/C][/ROW]
[ROW][C]43[/C][C]16033.7[/C][C]16649.2754838710[/C][C]-615.575483870968[/C][/ROW]
[ROW][C]44[/C][C]16036.6[/C][C]16205.7754838710[/C][C]-169.175483870968[/C][/ROW]
[ROW][C]45[/C][C]14037.8[/C][C]14991.8954838710[/C][C]-954.095483870968[/C][/ROW]
[ROW][C]46[/C][C]15330.6[/C][C]15670.4354838710[/C][C]-339.835483870968[/C][/ROW]
[ROW][C]47[/C][C]15038.3[/C][C]15983.8754838710[/C][C]-945.575483870969[/C][/ROW]
[ROW][C]48[/C][C]17401.8[/C][C]17718.2754838710[/C][C]-316.475483870969[/C][/ROW]
[ROW][C]49[/C][C]14992.5[/C][C]15609.2406451613[/C][C]-616.740645161288[/C][/ROW]
[ROW][C]50[/C][C]16043.7[/C][C]15951.3806451613[/C][C]92.31935483871[/C][/ROW]
[ROW][C]51[/C][C]16929.6[/C][C]16830.8806451613[/C][C]98.7193548387086[/C][/ROW]
[ROW][C]52[/C][C]15921.3[/C][C]15621.7406451613[/C][C]299.559354838709[/C][/ROW]
[ROW][C]53[/C][C]14417.2[/C][C]13989.4206451613[/C][C]427.77935483871[/C][/ROW]
[ROW][C]54[/C][C]15961[/C][C]16382.1354838710[/C][C]-421.135483870968[/C][/ROW]
[ROW][C]55[/C][C]17851.9[/C][C]16649.2754838710[/C][C]1202.62451612903[/C][/ROW]
[ROW][C]56[/C][C]16483.9[/C][C]16205.7754838710[/C][C]278.124516129033[/C][/ROW]
[ROW][C]57[/C][C]14215.5[/C][C]14991.8954838710[/C][C]-776.395483870968[/C][/ROW]
[ROW][C]58[/C][C]17429.7[/C][C]15670.4354838710[/C][C]1759.26451612903[/C][/ROW]
[ROW][C]59[/C][C]17839.5[/C][C]15983.8754838710[/C][C]1855.62451612903[/C][/ROW]
[ROW][C]60[/C][C]17629.2[/C][C]17718.2754838710[/C][C]-89.0754838709673[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25482&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
11230013161.1148387097-861.11483870969
212092.813503.2548387097-1410.45483870968
312380.814382.7548387097-2001.95483870968
412196.913173.6148387097-976.714838709676
5945511541.2948387097-2086.29483870968
61316813934.0096774194-766.009677419355
713427.914201.1496774194-773.249677419354
811980.513757.6496774194-1777.14967741935
911884.812543.7696774194-658.969677419356
1011691.713222.3096774194-1530.60967741935
1112233.813535.7496774194-1301.94967741936
1214341.415270.1496774194-928.749677419354
1313130.713161.1148387097-30.4148387096743
1412421.113503.2548387097-1082.15483870968
1514285.814382.7548387097-96.9548387096768
1612864.613173.6148387097-309.014838709677
1711160.211541.2948387097-381.094838709677
1814316.213934.0096774194382.190322580646
1914388.714201.1496774194187.550322580646
2014013.913757.6496774194256.250322580645
211341912543.7696774194875.230322580646
2212769.613222.3096774194-452.709677419355
2313315.513535.7496774194-220.249677419354
2415332.915270.149677419462.7503225806451
251424313161.11483870971081.88516129033
2613824.413503.2548387097321.145161290322
2714962.914382.7548387097580.145161290324
2813202.913173.614838709729.2851612903226
291219911541.2948387097657.705161290322
3015508.913934.00967741941574.89032258064
3114199.814201.1496774194-1.34967741935603
3215169.613757.64967741941411.95032258065
331405812543.76967741941514.23032258065
3413786.213222.3096774194563.890322580645
3514147.913535.7496774194612.150322580645
3616541.715270.14967741941271.55032258065
3713587.513161.1148387097426.385161290326
3815582.413503.25483870972079.14516129032
3915802.814382.75483870971420.04516129032
4014130.513173.6148387097956.885161290322
4112923.211541.29483870971381.90516129032
4215612.216382.1354838710-769.935483870967
4316033.716649.2754838710-615.575483870968
4416036.616205.7754838710-169.175483870968
4514037.814991.8954838710-954.095483870968
4615330.615670.4354838710-339.835483870968
4715038.315983.8754838710-945.575483870969
4817401.817718.2754838710-316.475483870969
4914992.515609.2406451613-616.740645161288
5016043.715951.380645161392.31935483871
5116929.616830.880645161398.7193548387086
5215921.315621.7406451613299.559354838709
5314417.213989.4206451613427.77935483871
541596116382.1354838710-421.135483870968
5517851.916649.27548387101202.62451612903
5616483.916205.7754838710278.124516129033
5714215.514991.8954838710-776.395483870968
5817429.715670.43548387101759.26451612903
5917839.515983.87548387101855.62451612903
6017629.217718.2754838710-89.0754838709673







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.6470593194744880.7058813610510250.352940680525512
170.7429578760715620.5140842478568760.257042123928438
180.6965940845199630.6068118309600750.303405915480037
190.6316363010491390.7367273979017220.368363698950861
200.7343390758054150.531321848389170.265660924194585
210.7308522301982740.5382955396034530.269147769801726
220.741384574591450.51723085081710.25861542540855
230.7362553574459960.5274892851080080.263744642554004
240.7001409851484080.5997180297031830.299859014851592
250.7233313047496080.5533373905007830.276668695250392
260.7690048850420320.4619902299159360.230995114957968
270.7823737446179980.4352525107640030.217626255382002
280.7540571591208010.4918856817583980.245942840879199
290.7864399501740940.4271200996518110.213560049825906
300.8179485716115030.3641028567769930.182051428388497
310.8051140951003370.3897718097993250.194885904899663
320.8181100872806190.3637798254387620.181889912719381
330.8406024325335950.318795134932810.159397567466405
340.8463487721571410.3073024556857180.153651227842859
350.8362451213070310.3275097573859370.163754878692969
360.7994427884129880.4011144231740240.200557211587012
370.7155764352238240.5688471295523530.284423564776176
380.7501364686994320.4997270626011360.249863531300568
390.6973760179643830.6052479640712330.302623982035617
400.6048943717887510.7902112564224980.395105628211249
410.5192857647399030.9614284705201950.480714235260097
420.386488300664620.772976601329240.61351169933538
430.369828966995770.739657933991540.63017103300423
440.2344662071904640.4689324143809280.765533792809536

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.647059319474488 & 0.705881361051025 & 0.352940680525512 \tabularnewline
17 & 0.742957876071562 & 0.514084247856876 & 0.257042123928438 \tabularnewline
18 & 0.696594084519963 & 0.606811830960075 & 0.303405915480037 \tabularnewline
19 & 0.631636301049139 & 0.736727397901722 & 0.368363698950861 \tabularnewline
20 & 0.734339075805415 & 0.53132184838917 & 0.265660924194585 \tabularnewline
21 & 0.730852230198274 & 0.538295539603453 & 0.269147769801726 \tabularnewline
22 & 0.74138457459145 & 0.5172308508171 & 0.25861542540855 \tabularnewline
23 & 0.736255357445996 & 0.527489285108008 & 0.263744642554004 \tabularnewline
24 & 0.700140985148408 & 0.599718029703183 & 0.299859014851592 \tabularnewline
25 & 0.723331304749608 & 0.553337390500783 & 0.276668695250392 \tabularnewline
26 & 0.769004885042032 & 0.461990229915936 & 0.230995114957968 \tabularnewline
27 & 0.782373744617998 & 0.435252510764003 & 0.217626255382002 \tabularnewline
28 & 0.754057159120801 & 0.491885681758398 & 0.245942840879199 \tabularnewline
29 & 0.786439950174094 & 0.427120099651811 & 0.213560049825906 \tabularnewline
30 & 0.817948571611503 & 0.364102856776993 & 0.182051428388497 \tabularnewline
31 & 0.805114095100337 & 0.389771809799325 & 0.194885904899663 \tabularnewline
32 & 0.818110087280619 & 0.363779825438762 & 0.181889912719381 \tabularnewline
33 & 0.840602432533595 & 0.31879513493281 & 0.159397567466405 \tabularnewline
34 & 0.846348772157141 & 0.307302455685718 & 0.153651227842859 \tabularnewline
35 & 0.836245121307031 & 0.327509757385937 & 0.163754878692969 \tabularnewline
36 & 0.799442788412988 & 0.401114423174024 & 0.200557211587012 \tabularnewline
37 & 0.715576435223824 & 0.568847129552353 & 0.284423564776176 \tabularnewline
38 & 0.750136468699432 & 0.499727062601136 & 0.249863531300568 \tabularnewline
39 & 0.697376017964383 & 0.605247964071233 & 0.302623982035617 \tabularnewline
40 & 0.604894371788751 & 0.790211256422498 & 0.395105628211249 \tabularnewline
41 & 0.519285764739903 & 0.961428470520195 & 0.480714235260097 \tabularnewline
42 & 0.38648830066462 & 0.77297660132924 & 0.61351169933538 \tabularnewline
43 & 0.36982896699577 & 0.73965793399154 & 0.63017103300423 \tabularnewline
44 & 0.234466207190464 & 0.468932414380928 & 0.765533792809536 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&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.647059319474488[/C][C]0.705881361051025[/C][C]0.352940680525512[/C][/ROW]
[ROW][C]17[/C][C]0.742957876071562[/C][C]0.514084247856876[/C][C]0.257042123928438[/C][/ROW]
[ROW][C]18[/C][C]0.696594084519963[/C][C]0.606811830960075[/C][C]0.303405915480037[/C][/ROW]
[ROW][C]19[/C][C]0.631636301049139[/C][C]0.736727397901722[/C][C]0.368363698950861[/C][/ROW]
[ROW][C]20[/C][C]0.734339075805415[/C][C]0.53132184838917[/C][C]0.265660924194585[/C][/ROW]
[ROW][C]21[/C][C]0.730852230198274[/C][C]0.538295539603453[/C][C]0.269147769801726[/C][/ROW]
[ROW][C]22[/C][C]0.74138457459145[/C][C]0.5172308508171[/C][C]0.25861542540855[/C][/ROW]
[ROW][C]23[/C][C]0.736255357445996[/C][C]0.527489285108008[/C][C]0.263744642554004[/C][/ROW]
[ROW][C]24[/C][C]0.700140985148408[/C][C]0.599718029703183[/C][C]0.299859014851592[/C][/ROW]
[ROW][C]25[/C][C]0.723331304749608[/C][C]0.553337390500783[/C][C]0.276668695250392[/C][/ROW]
[ROW][C]26[/C][C]0.769004885042032[/C][C]0.461990229915936[/C][C]0.230995114957968[/C][/ROW]
[ROW][C]27[/C][C]0.782373744617998[/C][C]0.435252510764003[/C][C]0.217626255382002[/C][/ROW]
[ROW][C]28[/C][C]0.754057159120801[/C][C]0.491885681758398[/C][C]0.245942840879199[/C][/ROW]
[ROW][C]29[/C][C]0.786439950174094[/C][C]0.427120099651811[/C][C]0.213560049825906[/C][/ROW]
[ROW][C]30[/C][C]0.817948571611503[/C][C]0.364102856776993[/C][C]0.182051428388497[/C][/ROW]
[ROW][C]31[/C][C]0.805114095100337[/C][C]0.389771809799325[/C][C]0.194885904899663[/C][/ROW]
[ROW][C]32[/C][C]0.818110087280619[/C][C]0.363779825438762[/C][C]0.181889912719381[/C][/ROW]
[ROW][C]33[/C][C]0.840602432533595[/C][C]0.31879513493281[/C][C]0.159397567466405[/C][/ROW]
[ROW][C]34[/C][C]0.846348772157141[/C][C]0.307302455685718[/C][C]0.153651227842859[/C][/ROW]
[ROW][C]35[/C][C]0.836245121307031[/C][C]0.327509757385937[/C][C]0.163754878692969[/C][/ROW]
[ROW][C]36[/C][C]0.799442788412988[/C][C]0.401114423174024[/C][C]0.200557211587012[/C][/ROW]
[ROW][C]37[/C][C]0.715576435223824[/C][C]0.568847129552353[/C][C]0.284423564776176[/C][/ROW]
[ROW][C]38[/C][C]0.750136468699432[/C][C]0.499727062601136[/C][C]0.249863531300568[/C][/ROW]
[ROW][C]39[/C][C]0.697376017964383[/C][C]0.605247964071233[/C][C]0.302623982035617[/C][/ROW]
[ROW][C]40[/C][C]0.604894371788751[/C][C]0.790211256422498[/C][C]0.395105628211249[/C][/ROW]
[ROW][C]41[/C][C]0.519285764739903[/C][C]0.961428470520195[/C][C]0.480714235260097[/C][/ROW]
[ROW][C]42[/C][C]0.38648830066462[/C][C]0.77297660132924[/C][C]0.61351169933538[/C][/ROW]
[ROW][C]43[/C][C]0.36982896699577[/C][C]0.73965793399154[/C][C]0.63017103300423[/C][/ROW]
[ROW][C]44[/C][C]0.234466207190464[/C][C]0.468932414380928[/C][C]0.765533792809536[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25482&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.6470593194744880.7058813610510250.352940680525512
170.7429578760715620.5140842478568760.257042123928438
180.6965940845199630.6068118309600750.303405915480037
190.6316363010491390.7367273979017220.368363698950861
200.7343390758054150.531321848389170.265660924194585
210.7308522301982740.5382955396034530.269147769801726
220.741384574591450.51723085081710.25861542540855
230.7362553574459960.5274892851080080.263744642554004
240.7001409851484080.5997180297031830.299859014851592
250.7233313047496080.5533373905007830.276668695250392
260.7690048850420320.4619902299159360.230995114957968
270.7823737446179980.4352525107640030.217626255382002
280.7540571591208010.4918856817583980.245942840879199
290.7864399501740940.4271200996518110.213560049825906
300.8179485716115030.3641028567769930.182051428388497
310.8051140951003370.3897718097993250.194885904899663
320.8181100872806190.3637798254387620.181889912719381
330.8406024325335950.318795134932810.159397567466405
340.8463487721571410.3073024556857180.153651227842859
350.8362451213070310.3275097573859370.163754878692969
360.7994427884129880.4011144231740240.200557211587012
370.7155764352238240.5688471295523530.284423564776176
380.7501364686994320.4997270626011360.249863531300568
390.6973760179643830.6052479640712330.302623982035617
400.6048943717887510.7902112564224980.395105628211249
410.5192857647399030.9614284705201950.480714235260097
420.386488300664620.772976601329240.61351169933538
430.369828966995770.739657933991540.63017103300423
440.2344662071904640.4689324143809280.765533792809536







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25482&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25482&T=6

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

As an alternative you can also use a QR Code:  

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

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



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