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 computationWed, 18 Nov 2009 08:59:02 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258560176gm6ac52s0lxjdvb.htm/, Retrieved Sun, 05 May 2024 10:25:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57493, Retrieved Sun, 05 May 2024 10:25:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact141
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 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Multiple regressi...] [2009-11-18 15:59:02] [fe2edc5b0acc9545190e03904e9be55e] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.58	98.2
3.52	98.71
3.45	98.54
3.36	98.2
3.27	96.92
3.21	99.06
3.19	99.65
3.16	99.82
3.12	99.99
3.06	100.33
3.01	99.31
2.98	101.1
2.97	101.1
3.02	100.93
3.07	100.85
3.18	100.93
3.29	99.6
3.43	101.88
3.61	101.81
3.74	102.38
3.87	102.74
3.88	102.82
4.09	101.72
4.19	103.47
4.2	102.98
4.29	102.68
4.37	102.9
4.47	103.03
4.61	101.29
4.65	103.69
4.69	103.68
4.82	104.2
4.86	104.08
4.87	104.16
5.01	103.05
5.03	104.66
5.13	104.46
5.18	104.95
5.21	105.85
5.26	106.23
5.25	104.86
5.2	107.44
5.16	108.23
5.19	108.45
5.39	109.39
5.58	110.15
5.76	109.13
5.89	110.28
5.98	110.17
6.02	109.99
5.62	109.26
4.87	109.11
4.24	107.06
4.02	109.53
3.74	108.92
3.45	109.24
3.34	109.12
3.21	109
3.12	107.23
3.04	109.49




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -37.2929573537109 + 0.411442603756895X[t] + 0.526191233621532M1[t] + 0.587269977018786M2[t] + 0.569629309773834M3[t] + 0.501280183358935M4[t] + 1.10054171525739M5[t] + 0.149656699598763M6[t] + 0.124757345940550M7[t] + 0.0265177342483104M8[t] + 0.0251825793843536M9[t] -0.00874660861197813M10[t] + 0.620510011971564M11[t] -0.0558797256602402t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -37.2929573537109 +  0.411442603756895X[t] +  0.526191233621532M1[t] +  0.587269977018786M2[t] +  0.569629309773834M3[t] +  0.501280183358935M4[t] +  1.10054171525739M5[t] +  0.149656699598763M6[t] +  0.124757345940550M7[t] +  0.0265177342483104M8[t] +  0.0251825793843536M9[t] -0.00874660861197813M10[t] +  0.620510011971564M11[t] -0.0558797256602402t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57493&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -37.2929573537109 +  0.411442603756895X[t] +  0.526191233621532M1[t] +  0.587269977018786M2[t] +  0.569629309773834M3[t] +  0.501280183358935M4[t] +  1.10054171525739M5[t] +  0.149656699598763M6[t] +  0.124757345940550M7[t] +  0.0265177342483104M8[t] +  0.0251825793843536M9[t] -0.00874660861197813M10[t] +  0.620510011971564M11[t] -0.0558797256602402t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57493&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57493&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] = -37.2929573537109 + 0.411442603756895X[t] + 0.526191233621532M1[t] + 0.587269977018786M2[t] + 0.569629309773834M3[t] + 0.501280183358935M4[t] + 1.10054171525739M5[t] + 0.149656699598763M6[t] + 0.124757345940550M7[t] + 0.0265177342483104M8[t] + 0.0251825793843536M9[t] -0.00874660861197813M10[t] + 0.620510011971564M11[t] -0.0558797256602402t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-37.292957353710910.678323-3.49240.0010690.000534
X0.4114426037568950.1087143.78460.0004440.000222
M10.5261912336215320.4850981.08470.2837020.141851
M20.5872699770187860.4849061.21110.2320420.116021
M30.5696293097738340.4856731.17290.2468880.123444
M40.5012801833589350.4874491.02840.3091510.154575
M51.100541715257390.5468842.01240.0500560.025028
M60.1496566995987630.4825950.31010.7578790.37894
M70.1247573459405500.4826570.25850.7971890.398595
M80.02651773424831040.4815970.05510.9563270.478164
M90.02518257938435360.4812580.05230.9584950.479248
M10-0.008746608611978130.481049-0.01820.9855720.492786
M110.6205100119715640.5077461.22210.22790.11395
t-0.05587972566024020.023798-2.34810.0232240.011612

\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) & -37.2929573537109 & 10.678323 & -3.4924 & 0.001069 & 0.000534 \tabularnewline
X & 0.411442603756895 & 0.108714 & 3.7846 & 0.000444 & 0.000222 \tabularnewline
M1 & 0.526191233621532 & 0.485098 & 1.0847 & 0.283702 & 0.141851 \tabularnewline
M2 & 0.587269977018786 & 0.484906 & 1.2111 & 0.232042 & 0.116021 \tabularnewline
M3 & 0.569629309773834 & 0.485673 & 1.1729 & 0.246888 & 0.123444 \tabularnewline
M4 & 0.501280183358935 & 0.487449 & 1.0284 & 0.309151 & 0.154575 \tabularnewline
M5 & 1.10054171525739 & 0.546884 & 2.0124 & 0.050056 & 0.025028 \tabularnewline
M6 & 0.149656699598763 & 0.482595 & 0.3101 & 0.757879 & 0.37894 \tabularnewline
M7 & 0.124757345940550 & 0.482657 & 0.2585 & 0.797189 & 0.398595 \tabularnewline
M8 & 0.0265177342483104 & 0.481597 & 0.0551 & 0.956327 & 0.478164 \tabularnewline
M9 & 0.0251825793843536 & 0.481258 & 0.0523 & 0.958495 & 0.479248 \tabularnewline
M10 & -0.00874660861197813 & 0.481049 & -0.0182 & 0.985572 & 0.492786 \tabularnewline
M11 & 0.620510011971564 & 0.507746 & 1.2221 & 0.2279 & 0.11395 \tabularnewline
t & -0.0558797256602402 & 0.023798 & -2.3481 & 0.023224 & 0.011612 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57493&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]-37.2929573537109[/C][C]10.678323[/C][C]-3.4924[/C][C]0.001069[/C][C]0.000534[/C][/ROW]
[ROW][C]X[/C][C]0.411442603756895[/C][C]0.108714[/C][C]3.7846[/C][C]0.000444[/C][C]0.000222[/C][/ROW]
[ROW][C]M1[/C][C]0.526191233621532[/C][C]0.485098[/C][C]1.0847[/C][C]0.283702[/C][C]0.141851[/C][/ROW]
[ROW][C]M2[/C][C]0.587269977018786[/C][C]0.484906[/C][C]1.2111[/C][C]0.232042[/C][C]0.116021[/C][/ROW]
[ROW][C]M3[/C][C]0.569629309773834[/C][C]0.485673[/C][C]1.1729[/C][C]0.246888[/C][C]0.123444[/C][/ROW]
[ROW][C]M4[/C][C]0.501280183358935[/C][C]0.487449[/C][C]1.0284[/C][C]0.309151[/C][C]0.154575[/C][/ROW]
[ROW][C]M5[/C][C]1.10054171525739[/C][C]0.546884[/C][C]2.0124[/C][C]0.050056[/C][C]0.025028[/C][/ROW]
[ROW][C]M6[/C][C]0.149656699598763[/C][C]0.482595[/C][C]0.3101[/C][C]0.757879[/C][C]0.37894[/C][/ROW]
[ROW][C]M7[/C][C]0.124757345940550[/C][C]0.482657[/C][C]0.2585[/C][C]0.797189[/C][C]0.398595[/C][/ROW]
[ROW][C]M8[/C][C]0.0265177342483104[/C][C]0.481597[/C][C]0.0551[/C][C]0.956327[/C][C]0.478164[/C][/ROW]
[ROW][C]M9[/C][C]0.0251825793843536[/C][C]0.481258[/C][C]0.0523[/C][C]0.958495[/C][C]0.479248[/C][/ROW]
[ROW][C]M10[/C][C]-0.00874660861197813[/C][C]0.481049[/C][C]-0.0182[/C][C]0.985572[/C][C]0.492786[/C][/ROW]
[ROW][C]M11[/C][C]0.620510011971564[/C][C]0.507746[/C][C]1.2221[/C][C]0.2279[/C][C]0.11395[/C][/ROW]
[ROW][C]t[/C][C]-0.0558797256602402[/C][C]0.023798[/C][C]-2.3481[/C][C]0.023224[/C][C]0.011612[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57493&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57493&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)-37.292957353710910.678323-3.49240.0010690.000534
X0.4114426037568950.1087143.78460.0004440.000222
M10.5261912336215320.4850981.08470.2837020.141851
M20.5872699770187860.4849061.21110.2320420.116021
M30.5696293097738340.4856731.17290.2468880.123444
M40.5012801833589350.4874491.02840.3091510.154575
M51.100541715257390.5468842.01240.0500560.025028
M60.1496566995987630.4825950.31010.7578790.37894
M70.1247573459405500.4826570.25850.7971890.398595
M80.02651773424831040.4815970.05510.9563270.478164
M90.02518257938435360.4812580.05230.9584950.479248
M10-0.008746608611978130.481049-0.01820.9855720.492786
M110.6205100119715640.5077461.22210.22790.11395
t-0.05587972566024020.023798-2.34810.0232240.011612







Multiple Linear Regression - Regression Statistics
Multiple R0.704343237440981
R-squared0.496099396128842
Adjusted R-squared0.353692703730472
F-TEST (value)3.48368035078749
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000849393191327819
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.76025094302965
Sum Squared Residuals26.5871488333637

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.704343237440981 \tabularnewline
R-squared & 0.496099396128842 \tabularnewline
Adjusted R-squared & 0.353692703730472 \tabularnewline
F-TEST (value) & 3.48368035078749 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.000849393191327819 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.76025094302965 \tabularnewline
Sum Squared Residuals & 26.5871488333637 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57493&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.704343237440981[/C][/ROW]
[ROW][C]R-squared[/C][C]0.496099396128842[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.353692703730472[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.48368035078749[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.000849393191327819[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.76025094302965[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]26.5871488333637[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57493&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57493&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.704343237440981
R-squared0.496099396128842
Adjusted R-squared0.353692703730472
F-TEST (value)3.48368035078749
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000849393191327819
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.76025094302965
Sum Squared Residuals26.5871488333637







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13.583.58101784317753-0.00101784317752654
23.523.79605258883056-0.276052588830565
33.453.65258695328670-0.202586953286704
43.363.38846761593422-0.0284676159342199
53.273.40520288936361-0.135202889363610
63.213.2789253200845-0.0689253200844969
73.193.44089737698261-0.250897376982613
83.163.3567232822688-0.196723282268801
93.123.36945364438328-0.249453644383277
103.063.41953521600405-0.359535216004051
113.013.57324065509532-0.56324065509532
122.983.63333317818836-0.653333178188356
132.974.10364468614965-1.13364468614965
143.024.03889846124799-1.01889846124799
153.073.93246266004224-0.862462660042245
163.183.84114921626766-0.661149216267663
173.293.83731235950920-0.547312359509204
183.433.76863675475606-0.338636754756057
193.613.65905669317462-0.0490566931746234
203.743.739459639963570.000540360036429222
213.873.830364096791860.0396359032081438
223.883.773470591435840.106529408564165
234.093.894260622226550.195739377773446
244.193.937895441169320.252104558830683
254.24.20660007328973-0.00660007328973208
264.294.088366309899680.201633690100321
274.374.1053632898210.264636710178997
284.474.034621976234260.435378023765741
294.613.862093651935480.747906348064521
304.653.842791159633160.807208840366845
314.693.757897654277140.932102345722864
324.823.817728470878241.00227152912176
334.863.711140477903211.14885952209679
344.873.654246972547191.21575302745281
355.013.770922577300341.23907742269966
365.033.756955431717141.27304456828286
375.134.144978418927050.98502158107295
385.184.351784312504950.828215687495052
395.214.648562262980960.561437737019043
405.264.680681600333440.579318399666558
415.254.660387039424710.58961296057529
425.24.715144215798630.48485578420137
435.164.959404793448130.200595206551874
445.194.895802828922160.294197171077837
455.395.225343995929450.164656004070553
465.585.448231461128120.131768538871883
475.765.601936900219380.158063099780618
485.895.398706156908010.49129384309199
495.985.823758978456040.156241021543957
506.025.754898327516810.265101672483186
515.625.381024833869090.238975166130909
524.875.19507959123042-0.325079591230416
534.244.895004059767-0.655004059766998
544.024.90450254972766-0.88450254972766
553.744.5727434821175-0.8327434821175
563.454.55028577796722-1.10028577796722
573.344.4436977849922-1.10369778499221
583.214.3045157588848-1.09451575888480
593.124.1496392451584-1.02963924515840
603.044.40310979201718-1.36310979201718

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3.58 & 3.58101784317753 & -0.00101784317752654 \tabularnewline
2 & 3.52 & 3.79605258883056 & -0.276052588830565 \tabularnewline
3 & 3.45 & 3.65258695328670 & -0.202586953286704 \tabularnewline
4 & 3.36 & 3.38846761593422 & -0.0284676159342199 \tabularnewline
5 & 3.27 & 3.40520288936361 & -0.135202889363610 \tabularnewline
6 & 3.21 & 3.2789253200845 & -0.0689253200844969 \tabularnewline
7 & 3.19 & 3.44089737698261 & -0.250897376982613 \tabularnewline
8 & 3.16 & 3.3567232822688 & -0.196723282268801 \tabularnewline
9 & 3.12 & 3.36945364438328 & -0.249453644383277 \tabularnewline
10 & 3.06 & 3.41953521600405 & -0.359535216004051 \tabularnewline
11 & 3.01 & 3.57324065509532 & -0.56324065509532 \tabularnewline
12 & 2.98 & 3.63333317818836 & -0.653333178188356 \tabularnewline
13 & 2.97 & 4.10364468614965 & -1.13364468614965 \tabularnewline
14 & 3.02 & 4.03889846124799 & -1.01889846124799 \tabularnewline
15 & 3.07 & 3.93246266004224 & -0.862462660042245 \tabularnewline
16 & 3.18 & 3.84114921626766 & -0.661149216267663 \tabularnewline
17 & 3.29 & 3.83731235950920 & -0.547312359509204 \tabularnewline
18 & 3.43 & 3.76863675475606 & -0.338636754756057 \tabularnewline
19 & 3.61 & 3.65905669317462 & -0.0490566931746234 \tabularnewline
20 & 3.74 & 3.73945963996357 & 0.000540360036429222 \tabularnewline
21 & 3.87 & 3.83036409679186 & 0.0396359032081438 \tabularnewline
22 & 3.88 & 3.77347059143584 & 0.106529408564165 \tabularnewline
23 & 4.09 & 3.89426062222655 & 0.195739377773446 \tabularnewline
24 & 4.19 & 3.93789544116932 & 0.252104558830683 \tabularnewline
25 & 4.2 & 4.20660007328973 & -0.00660007328973208 \tabularnewline
26 & 4.29 & 4.08836630989968 & 0.201633690100321 \tabularnewline
27 & 4.37 & 4.105363289821 & 0.264636710178997 \tabularnewline
28 & 4.47 & 4.03462197623426 & 0.435378023765741 \tabularnewline
29 & 4.61 & 3.86209365193548 & 0.747906348064521 \tabularnewline
30 & 4.65 & 3.84279115963316 & 0.807208840366845 \tabularnewline
31 & 4.69 & 3.75789765427714 & 0.932102345722864 \tabularnewline
32 & 4.82 & 3.81772847087824 & 1.00227152912176 \tabularnewline
33 & 4.86 & 3.71114047790321 & 1.14885952209679 \tabularnewline
34 & 4.87 & 3.65424697254719 & 1.21575302745281 \tabularnewline
35 & 5.01 & 3.77092257730034 & 1.23907742269966 \tabularnewline
36 & 5.03 & 3.75695543171714 & 1.27304456828286 \tabularnewline
37 & 5.13 & 4.14497841892705 & 0.98502158107295 \tabularnewline
38 & 5.18 & 4.35178431250495 & 0.828215687495052 \tabularnewline
39 & 5.21 & 4.64856226298096 & 0.561437737019043 \tabularnewline
40 & 5.26 & 4.68068160033344 & 0.579318399666558 \tabularnewline
41 & 5.25 & 4.66038703942471 & 0.58961296057529 \tabularnewline
42 & 5.2 & 4.71514421579863 & 0.48485578420137 \tabularnewline
43 & 5.16 & 4.95940479344813 & 0.200595206551874 \tabularnewline
44 & 5.19 & 4.89580282892216 & 0.294197171077837 \tabularnewline
45 & 5.39 & 5.22534399592945 & 0.164656004070553 \tabularnewline
46 & 5.58 & 5.44823146112812 & 0.131768538871883 \tabularnewline
47 & 5.76 & 5.60193690021938 & 0.158063099780618 \tabularnewline
48 & 5.89 & 5.39870615690801 & 0.49129384309199 \tabularnewline
49 & 5.98 & 5.82375897845604 & 0.156241021543957 \tabularnewline
50 & 6.02 & 5.75489832751681 & 0.265101672483186 \tabularnewline
51 & 5.62 & 5.38102483386909 & 0.238975166130909 \tabularnewline
52 & 4.87 & 5.19507959123042 & -0.325079591230416 \tabularnewline
53 & 4.24 & 4.895004059767 & -0.655004059766998 \tabularnewline
54 & 4.02 & 4.90450254972766 & -0.88450254972766 \tabularnewline
55 & 3.74 & 4.5727434821175 & -0.8327434821175 \tabularnewline
56 & 3.45 & 4.55028577796722 & -1.10028577796722 \tabularnewline
57 & 3.34 & 4.4436977849922 & -1.10369778499221 \tabularnewline
58 & 3.21 & 4.3045157588848 & -1.09451575888480 \tabularnewline
59 & 3.12 & 4.1496392451584 & -1.02963924515840 \tabularnewline
60 & 3.04 & 4.40310979201718 & -1.36310979201718 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57493&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]3.58[/C][C]3.58101784317753[/C][C]-0.00101784317752654[/C][/ROW]
[ROW][C]2[/C][C]3.52[/C][C]3.79605258883056[/C][C]-0.276052588830565[/C][/ROW]
[ROW][C]3[/C][C]3.45[/C][C]3.65258695328670[/C][C]-0.202586953286704[/C][/ROW]
[ROW][C]4[/C][C]3.36[/C][C]3.38846761593422[/C][C]-0.0284676159342199[/C][/ROW]
[ROW][C]5[/C][C]3.27[/C][C]3.40520288936361[/C][C]-0.135202889363610[/C][/ROW]
[ROW][C]6[/C][C]3.21[/C][C]3.2789253200845[/C][C]-0.0689253200844969[/C][/ROW]
[ROW][C]7[/C][C]3.19[/C][C]3.44089737698261[/C][C]-0.250897376982613[/C][/ROW]
[ROW][C]8[/C][C]3.16[/C][C]3.3567232822688[/C][C]-0.196723282268801[/C][/ROW]
[ROW][C]9[/C][C]3.12[/C][C]3.36945364438328[/C][C]-0.249453644383277[/C][/ROW]
[ROW][C]10[/C][C]3.06[/C][C]3.41953521600405[/C][C]-0.359535216004051[/C][/ROW]
[ROW][C]11[/C][C]3.01[/C][C]3.57324065509532[/C][C]-0.56324065509532[/C][/ROW]
[ROW][C]12[/C][C]2.98[/C][C]3.63333317818836[/C][C]-0.653333178188356[/C][/ROW]
[ROW][C]13[/C][C]2.97[/C][C]4.10364468614965[/C][C]-1.13364468614965[/C][/ROW]
[ROW][C]14[/C][C]3.02[/C][C]4.03889846124799[/C][C]-1.01889846124799[/C][/ROW]
[ROW][C]15[/C][C]3.07[/C][C]3.93246266004224[/C][C]-0.862462660042245[/C][/ROW]
[ROW][C]16[/C][C]3.18[/C][C]3.84114921626766[/C][C]-0.661149216267663[/C][/ROW]
[ROW][C]17[/C][C]3.29[/C][C]3.83731235950920[/C][C]-0.547312359509204[/C][/ROW]
[ROW][C]18[/C][C]3.43[/C][C]3.76863675475606[/C][C]-0.338636754756057[/C][/ROW]
[ROW][C]19[/C][C]3.61[/C][C]3.65905669317462[/C][C]-0.0490566931746234[/C][/ROW]
[ROW][C]20[/C][C]3.74[/C][C]3.73945963996357[/C][C]0.000540360036429222[/C][/ROW]
[ROW][C]21[/C][C]3.87[/C][C]3.83036409679186[/C][C]0.0396359032081438[/C][/ROW]
[ROW][C]22[/C][C]3.88[/C][C]3.77347059143584[/C][C]0.106529408564165[/C][/ROW]
[ROW][C]23[/C][C]4.09[/C][C]3.89426062222655[/C][C]0.195739377773446[/C][/ROW]
[ROW][C]24[/C][C]4.19[/C][C]3.93789544116932[/C][C]0.252104558830683[/C][/ROW]
[ROW][C]25[/C][C]4.2[/C][C]4.20660007328973[/C][C]-0.00660007328973208[/C][/ROW]
[ROW][C]26[/C][C]4.29[/C][C]4.08836630989968[/C][C]0.201633690100321[/C][/ROW]
[ROW][C]27[/C][C]4.37[/C][C]4.105363289821[/C][C]0.264636710178997[/C][/ROW]
[ROW][C]28[/C][C]4.47[/C][C]4.03462197623426[/C][C]0.435378023765741[/C][/ROW]
[ROW][C]29[/C][C]4.61[/C][C]3.86209365193548[/C][C]0.747906348064521[/C][/ROW]
[ROW][C]30[/C][C]4.65[/C][C]3.84279115963316[/C][C]0.807208840366845[/C][/ROW]
[ROW][C]31[/C][C]4.69[/C][C]3.75789765427714[/C][C]0.932102345722864[/C][/ROW]
[ROW][C]32[/C][C]4.82[/C][C]3.81772847087824[/C][C]1.00227152912176[/C][/ROW]
[ROW][C]33[/C][C]4.86[/C][C]3.71114047790321[/C][C]1.14885952209679[/C][/ROW]
[ROW][C]34[/C][C]4.87[/C][C]3.65424697254719[/C][C]1.21575302745281[/C][/ROW]
[ROW][C]35[/C][C]5.01[/C][C]3.77092257730034[/C][C]1.23907742269966[/C][/ROW]
[ROW][C]36[/C][C]5.03[/C][C]3.75695543171714[/C][C]1.27304456828286[/C][/ROW]
[ROW][C]37[/C][C]5.13[/C][C]4.14497841892705[/C][C]0.98502158107295[/C][/ROW]
[ROW][C]38[/C][C]5.18[/C][C]4.35178431250495[/C][C]0.828215687495052[/C][/ROW]
[ROW][C]39[/C][C]5.21[/C][C]4.64856226298096[/C][C]0.561437737019043[/C][/ROW]
[ROW][C]40[/C][C]5.26[/C][C]4.68068160033344[/C][C]0.579318399666558[/C][/ROW]
[ROW][C]41[/C][C]5.25[/C][C]4.66038703942471[/C][C]0.58961296057529[/C][/ROW]
[ROW][C]42[/C][C]5.2[/C][C]4.71514421579863[/C][C]0.48485578420137[/C][/ROW]
[ROW][C]43[/C][C]5.16[/C][C]4.95940479344813[/C][C]0.200595206551874[/C][/ROW]
[ROW][C]44[/C][C]5.19[/C][C]4.89580282892216[/C][C]0.294197171077837[/C][/ROW]
[ROW][C]45[/C][C]5.39[/C][C]5.22534399592945[/C][C]0.164656004070553[/C][/ROW]
[ROW][C]46[/C][C]5.58[/C][C]5.44823146112812[/C][C]0.131768538871883[/C][/ROW]
[ROW][C]47[/C][C]5.76[/C][C]5.60193690021938[/C][C]0.158063099780618[/C][/ROW]
[ROW][C]48[/C][C]5.89[/C][C]5.39870615690801[/C][C]0.49129384309199[/C][/ROW]
[ROW][C]49[/C][C]5.98[/C][C]5.82375897845604[/C][C]0.156241021543957[/C][/ROW]
[ROW][C]50[/C][C]6.02[/C][C]5.75489832751681[/C][C]0.265101672483186[/C][/ROW]
[ROW][C]51[/C][C]5.62[/C][C]5.38102483386909[/C][C]0.238975166130909[/C][/ROW]
[ROW][C]52[/C][C]4.87[/C][C]5.19507959123042[/C][C]-0.325079591230416[/C][/ROW]
[ROW][C]53[/C][C]4.24[/C][C]4.895004059767[/C][C]-0.655004059766998[/C][/ROW]
[ROW][C]54[/C][C]4.02[/C][C]4.90450254972766[/C][C]-0.88450254972766[/C][/ROW]
[ROW][C]55[/C][C]3.74[/C][C]4.5727434821175[/C][C]-0.8327434821175[/C][/ROW]
[ROW][C]56[/C][C]3.45[/C][C]4.55028577796722[/C][C]-1.10028577796722[/C][/ROW]
[ROW][C]57[/C][C]3.34[/C][C]4.4436977849922[/C][C]-1.10369778499221[/C][/ROW]
[ROW][C]58[/C][C]3.21[/C][C]4.3045157588848[/C][C]-1.09451575888480[/C][/ROW]
[ROW][C]59[/C][C]3.12[/C][C]4.1496392451584[/C][C]-1.02963924515840[/C][/ROW]
[ROW][C]60[/C][C]3.04[/C][C]4.40310979201718[/C][C]-1.36310979201718[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57493&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57493&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
13.583.58101784317753-0.00101784317752654
23.523.79605258883056-0.276052588830565
33.453.65258695328670-0.202586953286704
43.363.38846761593422-0.0284676159342199
53.273.40520288936361-0.135202889363610
63.213.2789253200845-0.0689253200844969
73.193.44089737698261-0.250897376982613
83.163.3567232822688-0.196723282268801
93.123.36945364438328-0.249453644383277
103.063.41953521600405-0.359535216004051
113.013.57324065509532-0.56324065509532
122.983.63333317818836-0.653333178188356
132.974.10364468614965-1.13364468614965
143.024.03889846124799-1.01889846124799
153.073.93246266004224-0.862462660042245
163.183.84114921626766-0.661149216267663
173.293.83731235950920-0.547312359509204
183.433.76863675475606-0.338636754756057
193.613.65905669317462-0.0490566931746234
203.743.739459639963570.000540360036429222
213.873.830364096791860.0396359032081438
223.883.773470591435840.106529408564165
234.093.894260622226550.195739377773446
244.193.937895441169320.252104558830683
254.24.20660007328973-0.00660007328973208
264.294.088366309899680.201633690100321
274.374.1053632898210.264636710178997
284.474.034621976234260.435378023765741
294.613.862093651935480.747906348064521
304.653.842791159633160.807208840366845
314.693.757897654277140.932102345722864
324.823.817728470878241.00227152912176
334.863.711140477903211.14885952209679
344.873.654246972547191.21575302745281
355.013.770922577300341.23907742269966
365.033.756955431717141.27304456828286
375.134.144978418927050.98502158107295
385.184.351784312504950.828215687495052
395.214.648562262980960.561437737019043
405.264.680681600333440.579318399666558
415.254.660387039424710.58961296057529
425.24.715144215798630.48485578420137
435.164.959404793448130.200595206551874
445.194.895802828922160.294197171077837
455.395.225343995929450.164656004070553
465.585.448231461128120.131768538871883
475.765.601936900219380.158063099780618
485.895.398706156908010.49129384309199
495.985.823758978456040.156241021543957
506.025.754898327516810.265101672483186
515.625.381024833869090.238975166130909
524.875.19507959123042-0.325079591230416
534.244.895004059767-0.655004059766998
544.024.90450254972766-0.88450254972766
553.744.5727434821175-0.8327434821175
563.454.55028577796722-1.10028577796722
573.344.4436977849922-1.10369778499221
583.214.3045157588848-1.09451575888480
593.124.1496392451584-1.02963924515840
603.044.40310979201718-1.36310979201718







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.03423929329123690.06847858658247380.965760706708763
180.02764791298313190.05529582596626370.972352087016868
190.04009487144343820.08018974288687650.959905128556562
200.05096055317792460.1019211063558490.949039446822075
210.07231547935310140.1446309587062030.927684520646899
220.0951073457882250.190214691576450.904892654211775
230.1604750684866060.3209501369732130.839524931513394
240.2711386531964030.5422773063928050.728861346803597
250.3948007681408520.7896015362817040.605199231859148
260.5692727327865920.8614545344268160.430727267213408
270.8364629062126310.3270741875747380.163537093787369
280.9670560119394940.06588797612101280.0329439880605064
290.9855430645848470.02891387083030680.0144569354151534
300.990874760630190.01825047873961810.00912523936980903
310.9874518297514380.02509634049712430.0125481702485622
320.9799600444464510.04007991110709730.0200399555535486
330.9637838056930830.07243238861383440.0362161943069172
340.9459571945931360.1080856108137280.054042805406864
350.9203850509508720.1592298980982560.0796149490491282
360.9119370230447030.1761259539105930.0880629769552965
370.8801788756048960.2396422487902090.119821124395104
380.8108341437699310.3783317124601380.189165856230069
390.941704464329130.1165910713417380.0582955356708691
400.942446778792180.1151064424156410.0575532212078205
410.8922445368199760.2155109263600470.107755463180024
420.8019311472906570.3961377054186870.198068852709343
430.7557598240210960.4884803519578080.244240175978904

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0342392932912369 & 0.0684785865824738 & 0.965760706708763 \tabularnewline
18 & 0.0276479129831319 & 0.0552958259662637 & 0.972352087016868 \tabularnewline
19 & 0.0400948714434382 & 0.0801897428868765 & 0.959905128556562 \tabularnewline
20 & 0.0509605531779246 & 0.101921106355849 & 0.949039446822075 \tabularnewline
21 & 0.0723154793531014 & 0.144630958706203 & 0.927684520646899 \tabularnewline
22 & 0.095107345788225 & 0.19021469157645 & 0.904892654211775 \tabularnewline
23 & 0.160475068486606 & 0.320950136973213 & 0.839524931513394 \tabularnewline
24 & 0.271138653196403 & 0.542277306392805 & 0.728861346803597 \tabularnewline
25 & 0.394800768140852 & 0.789601536281704 & 0.605199231859148 \tabularnewline
26 & 0.569272732786592 & 0.861454534426816 & 0.430727267213408 \tabularnewline
27 & 0.836462906212631 & 0.327074187574738 & 0.163537093787369 \tabularnewline
28 & 0.967056011939494 & 0.0658879761210128 & 0.0329439880605064 \tabularnewline
29 & 0.985543064584847 & 0.0289138708303068 & 0.0144569354151534 \tabularnewline
30 & 0.99087476063019 & 0.0182504787396181 & 0.00912523936980903 \tabularnewline
31 & 0.987451829751438 & 0.0250963404971243 & 0.0125481702485622 \tabularnewline
32 & 0.979960044446451 & 0.0400799111070973 & 0.0200399555535486 \tabularnewline
33 & 0.963783805693083 & 0.0724323886138344 & 0.0362161943069172 \tabularnewline
34 & 0.945957194593136 & 0.108085610813728 & 0.054042805406864 \tabularnewline
35 & 0.920385050950872 & 0.159229898098256 & 0.0796149490491282 \tabularnewline
36 & 0.911937023044703 & 0.176125953910593 & 0.0880629769552965 \tabularnewline
37 & 0.880178875604896 & 0.239642248790209 & 0.119821124395104 \tabularnewline
38 & 0.810834143769931 & 0.378331712460138 & 0.189165856230069 \tabularnewline
39 & 0.94170446432913 & 0.116591071341738 & 0.0582955356708691 \tabularnewline
40 & 0.94244677879218 & 0.115106442415641 & 0.0575532212078205 \tabularnewline
41 & 0.892244536819976 & 0.215510926360047 & 0.107755463180024 \tabularnewline
42 & 0.801931147290657 & 0.396137705418687 & 0.198068852709343 \tabularnewline
43 & 0.755759824021096 & 0.488480351957808 & 0.244240175978904 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57493&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0342392932912369[/C][C]0.0684785865824738[/C][C]0.965760706708763[/C][/ROW]
[ROW][C]18[/C][C]0.0276479129831319[/C][C]0.0552958259662637[/C][C]0.972352087016868[/C][/ROW]
[ROW][C]19[/C][C]0.0400948714434382[/C][C]0.0801897428868765[/C][C]0.959905128556562[/C][/ROW]
[ROW][C]20[/C][C]0.0509605531779246[/C][C]0.101921106355849[/C][C]0.949039446822075[/C][/ROW]
[ROW][C]21[/C][C]0.0723154793531014[/C][C]0.144630958706203[/C][C]0.927684520646899[/C][/ROW]
[ROW][C]22[/C][C]0.095107345788225[/C][C]0.19021469157645[/C][C]0.904892654211775[/C][/ROW]
[ROW][C]23[/C][C]0.160475068486606[/C][C]0.320950136973213[/C][C]0.839524931513394[/C][/ROW]
[ROW][C]24[/C][C]0.271138653196403[/C][C]0.542277306392805[/C][C]0.728861346803597[/C][/ROW]
[ROW][C]25[/C][C]0.394800768140852[/C][C]0.789601536281704[/C][C]0.605199231859148[/C][/ROW]
[ROW][C]26[/C][C]0.569272732786592[/C][C]0.861454534426816[/C][C]0.430727267213408[/C][/ROW]
[ROW][C]27[/C][C]0.836462906212631[/C][C]0.327074187574738[/C][C]0.163537093787369[/C][/ROW]
[ROW][C]28[/C][C]0.967056011939494[/C][C]0.0658879761210128[/C][C]0.0329439880605064[/C][/ROW]
[ROW][C]29[/C][C]0.985543064584847[/C][C]0.0289138708303068[/C][C]0.0144569354151534[/C][/ROW]
[ROW][C]30[/C][C]0.99087476063019[/C][C]0.0182504787396181[/C][C]0.00912523936980903[/C][/ROW]
[ROW][C]31[/C][C]0.987451829751438[/C][C]0.0250963404971243[/C][C]0.0125481702485622[/C][/ROW]
[ROW][C]32[/C][C]0.979960044446451[/C][C]0.0400799111070973[/C][C]0.0200399555535486[/C][/ROW]
[ROW][C]33[/C][C]0.963783805693083[/C][C]0.0724323886138344[/C][C]0.0362161943069172[/C][/ROW]
[ROW][C]34[/C][C]0.945957194593136[/C][C]0.108085610813728[/C][C]0.054042805406864[/C][/ROW]
[ROW][C]35[/C][C]0.920385050950872[/C][C]0.159229898098256[/C][C]0.0796149490491282[/C][/ROW]
[ROW][C]36[/C][C]0.911937023044703[/C][C]0.176125953910593[/C][C]0.0880629769552965[/C][/ROW]
[ROW][C]37[/C][C]0.880178875604896[/C][C]0.239642248790209[/C][C]0.119821124395104[/C][/ROW]
[ROW][C]38[/C][C]0.810834143769931[/C][C]0.378331712460138[/C][C]0.189165856230069[/C][/ROW]
[ROW][C]39[/C][C]0.94170446432913[/C][C]0.116591071341738[/C][C]0.0582955356708691[/C][/ROW]
[ROW][C]40[/C][C]0.94244677879218[/C][C]0.115106442415641[/C][C]0.0575532212078205[/C][/ROW]
[ROW][C]41[/C][C]0.892244536819976[/C][C]0.215510926360047[/C][C]0.107755463180024[/C][/ROW]
[ROW][C]42[/C][C]0.801931147290657[/C][C]0.396137705418687[/C][C]0.198068852709343[/C][/ROW]
[ROW][C]43[/C][C]0.755759824021096[/C][C]0.488480351957808[/C][C]0.244240175978904[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57493&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.03423929329123690.06847858658247380.965760706708763
180.02764791298313190.05529582596626370.972352087016868
190.04009487144343820.08018974288687650.959905128556562
200.05096055317792460.1019211063558490.949039446822075
210.07231547935310140.1446309587062030.927684520646899
220.0951073457882250.190214691576450.904892654211775
230.1604750684866060.3209501369732130.839524931513394
240.2711386531964030.5422773063928050.728861346803597
250.3948007681408520.7896015362817040.605199231859148
260.5692727327865920.8614545344268160.430727267213408
270.8364629062126310.3270741875747380.163537093787369
280.9670560119394940.06588797612101280.0329439880605064
290.9855430645848470.02891387083030680.0144569354151534
300.990874760630190.01825047873961810.00912523936980903
310.9874518297514380.02509634049712430.0125481702485622
320.9799600444464510.04007991110709730.0200399555535486
330.9637838056930830.07243238861383440.0362161943069172
340.9459571945931360.1080856108137280.054042805406864
350.9203850509508720.1592298980982560.0796149490491282
360.9119370230447030.1761259539105930.0880629769552965
370.8801788756048960.2396422487902090.119821124395104
380.8108341437699310.3783317124601380.189165856230069
390.941704464329130.1165910713417380.0582955356708691
400.942446778792180.1151064424156410.0575532212078205
410.8922445368199760.2155109263600470.107755463180024
420.8019311472906570.3961377054186870.198068852709343
430.7557598240210960.4884803519578080.244240175978904







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

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

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



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