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, 16 Dec 2009 07:06:25 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/16/t1260972475mt69azug668qrmw.htm/, Retrieved Tue, 30 Apr 2024 19:33:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68356, Retrieved Tue, 30 Apr 2024 19:33:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [] [2009-12-16 14:06:25] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
20366	0
22782	0
19169	0
13807	0
29743	0
25591	0
29096	0
26482	0
22405	0
27044	0
17970	0
18730	0
19684	0
19785	0
18479	0
10698	0
31956	0
29506	0
34506	0
27165	0
26736	0
23691	0
18157	0
17328	0
18205	0
20995	0
17382	0
9367	0
31124	0
26551	0
30651	0
25859	0
25100	0
25778	0
20418	0
18688	0
20424	0
24776	0
19814	0
12738	0
31566	0
30111	0
30019	0
31934	1
25826	1
26835	1
20205	1
17789	1
20520	1
22518	1
15572	1
11509	1
25447	1
24090	1
27786	1
26195	1
20516	1
22759	1
19028	1
16971	1




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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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] = + 18182.6675136116 -1149.48457350272X[t] + 1763.19168179067M1[t] + 4089.63817301875M2[t] -3.31533575318088M3[t] -6467.66884452512M4[t] + 11870.7776467030M5[t] + 9068.42413793104M6[t] + 12305.2706291591M7[t] + 9645.6140350877M8[t] + 6230.26052631579M9[t] + 7330.10701754386M10[t] + 1259.35350877193M11[t] + 4.95350877192993t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  18182.6675136116 -1149.48457350272X[t] +  1763.19168179067M1[t] +  4089.63817301875M2[t] -3.31533575318088M3[t] -6467.66884452512M4[t] +  11870.7776467030M5[t] +  9068.42413793104M6[t] +  12305.2706291591M7[t] +  9645.6140350877M8[t] +  6230.26052631579M9[t] +  7330.10701754386M10[t] +  1259.35350877193M11[t] +  4.95350877192993t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68356&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  18182.6675136116 -1149.48457350272X[t] +  1763.19168179067M1[t] +  4089.63817301875M2[t] -3.31533575318088M3[t] -6467.66884452512M4[t] +  11870.7776467030M5[t] +  9068.42413793104M6[t] +  12305.2706291591M7[t] +  9645.6140350877M8[t] +  6230.26052631579M9[t] +  7330.10701754386M10[t] +  1259.35350877193M11[t] +  4.95350877192993t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68356&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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] = + 18182.6675136116 -1149.48457350272X[t] + 1763.19168179067M1[t] + 4089.63817301875M2[t] -3.31533575318088M3[t] -6467.66884452512M4[t] + 11870.7776467030M5[t] + 9068.42413793104M6[t] + 12305.2706291591M7[t] + 9645.6140350877M8[t] + 6230.26052631579M9[t] + 7330.10701754386M10[t] + 1259.35350877193M11[t] + 4.95350877192993t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)18182.66751361161091.67470716.655800
X-1149.48457350272933.248488-1.23170.224320.11216
M11763.191681790671275.9532261.38190.1736880.086844
M24089.638173018751273.8895673.21040.0024190.00121
M3-3.315335753180881272.282185-0.00260.9979320.498966
M4-6467.668844525121271.13281-5.08817e-063e-06
M511870.77764670301270.4426869.343800
M69068.424137931041270.2125627.139300
M712305.27062915911270.4426869.685800
M89645.61403508771268.4654297.604200
M96230.260526315791266.8511644.91791.2e-056e-06
M107330.107017543861265.6968585.79141e-060
M111259.353508771931265.0037680.99550.3246850.162343
t4.9535087719299324.1798960.20490.8385850.419292

\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) & 18182.6675136116 & 1091.674707 & 16.6558 & 0 & 0 \tabularnewline
X & -1149.48457350272 & 933.248488 & -1.2317 & 0.22432 & 0.11216 \tabularnewline
M1 & 1763.19168179067 & 1275.953226 & 1.3819 & 0.173688 & 0.086844 \tabularnewline
M2 & 4089.63817301875 & 1273.889567 & 3.2104 & 0.002419 & 0.00121 \tabularnewline
M3 & -3.31533575318088 & 1272.282185 & -0.0026 & 0.997932 & 0.498966 \tabularnewline
M4 & -6467.66884452512 & 1271.13281 & -5.0881 & 7e-06 & 3e-06 \tabularnewline
M5 & 11870.7776467030 & 1270.442686 & 9.3438 & 0 & 0 \tabularnewline
M6 & 9068.42413793104 & 1270.212562 & 7.1393 & 0 & 0 \tabularnewline
M7 & 12305.2706291591 & 1270.442686 & 9.6858 & 0 & 0 \tabularnewline
M8 & 9645.6140350877 & 1268.465429 & 7.6042 & 0 & 0 \tabularnewline
M9 & 6230.26052631579 & 1266.851164 & 4.9179 & 1.2e-05 & 6e-06 \tabularnewline
M10 & 7330.10701754386 & 1265.696858 & 5.7914 & 1e-06 & 0 \tabularnewline
M11 & 1259.35350877193 & 1265.003768 & 0.9955 & 0.324685 & 0.162343 \tabularnewline
t & 4.95350877192993 & 24.179896 & 0.2049 & 0.838585 & 0.419292 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68356&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]18182.6675136116[/C][C]1091.674707[/C][C]16.6558[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1149.48457350272[/C][C]933.248488[/C][C]-1.2317[/C][C]0.22432[/C][C]0.11216[/C][/ROW]
[ROW][C]M1[/C][C]1763.19168179067[/C][C]1275.953226[/C][C]1.3819[/C][C]0.173688[/C][C]0.086844[/C][/ROW]
[ROW][C]M2[/C][C]4089.63817301875[/C][C]1273.889567[/C][C]3.2104[/C][C]0.002419[/C][C]0.00121[/C][/ROW]
[ROW][C]M3[/C][C]-3.31533575318088[/C][C]1272.282185[/C][C]-0.0026[/C][C]0.997932[/C][C]0.498966[/C][/ROW]
[ROW][C]M4[/C][C]-6467.66884452512[/C][C]1271.13281[/C][C]-5.0881[/C][C]7e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M5[/C][C]11870.7776467030[/C][C]1270.442686[/C][C]9.3438[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]9068.42413793104[/C][C]1270.212562[/C][C]7.1393[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]12305.2706291591[/C][C]1270.442686[/C][C]9.6858[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]9645.6140350877[/C][C]1268.465429[/C][C]7.6042[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]6230.26052631579[/C][C]1266.851164[/C][C]4.9179[/C][C]1.2e-05[/C][C]6e-06[/C][/ROW]
[ROW][C]M10[/C][C]7330.10701754386[/C][C]1265.696858[/C][C]5.7914[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]1259.35350877193[/C][C]1265.003768[/C][C]0.9955[/C][C]0.324685[/C][C]0.162343[/C][/ROW]
[ROW][C]t[/C][C]4.95350877192993[/C][C]24.179896[/C][C]0.2049[/C][C]0.838585[/C][C]0.419292[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68356&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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)18182.66751361161091.67470716.655800
X-1149.48457350272933.248488-1.23170.224320.11216
M11763.191681790671275.9532261.38190.1736880.086844
M24089.638173018751273.8895673.21040.0024190.00121
M3-3.315335753180881272.282185-0.00260.9979320.498966
M4-6467.668844525121271.13281-5.08817e-063e-06
M511870.77764670301270.4426869.343800
M69068.424137931041270.2125627.139300
M712305.27062915911270.4426869.685800
M89645.61403508771268.4654297.604200
M96230.260526315791266.8511644.91791.2e-056e-06
M107330.107017543861265.6968585.79141e-060
M111259.353508771931265.0037680.99550.3246850.162343
t4.9535087719299324.1798960.20490.8385850.419292







Multiple Linear Regression - Regression Statistics
Multiple R0.951798276886878
R-squared0.905919959884831
Adjusted R-squared0.879332122460979
F-TEST (value)34.0727207498314
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1999.78115458550
Sum Squared Residuals183959734.646824

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.951798276886878 \tabularnewline
R-squared & 0.905919959884831 \tabularnewline
Adjusted R-squared & 0.879332122460979 \tabularnewline
F-TEST (value) & 34.0727207498314 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1999.78115458550 \tabularnewline
Sum Squared Residuals & 183959734.646824 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68356&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.951798276886878[/C][/ROW]
[ROW][C]R-squared[/C][C]0.905919959884831[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.879332122460979[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]34.0727207498314[/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[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1999.78115458550[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]183959734.646824[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68356&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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.951798276886878
R-squared0.905919959884831
Adjusted R-squared0.879332122460979
F-TEST (value)34.0727207498314
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1999.78115458550
Sum Squared Residuals183959734.646824







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12036619950.8127041743415.187295825736
22278222282.2127041742499.787295825769
31916918194.2127041742974.787295825774
41380711734.81270417422072.18729582577
52974330078.2127041742-335.212704174221
62559127280.8127041742-1689.81270417421
72909630522.6127041742-1426.61270417423
82648227867.9096188748-1385.90961887478
92240524457.5096188748-2052.50961887477
102704425562.30961887481481.69038112524
111797019496.5096188748-1526.50961887477
121873018242.1096188748487.890381125225
131968420010.2548094374-326.254809437375
141978522341.6548094374-2556.65480943739
151847918253.6548094374225.345190562615
161069811794.2548094374-1096.25480943738
173195630137.65480943741818.34519056261
182950627340.25480943742165.74519056261
193450630582.05480943743923.94519056261
202716527927.3517241379-762.351724137928
212673624516.95172413792219.04827586207
222369125621.7517241379-1930.75172413793
231815719555.9517241379-1398.95172413793
241732818301.5517241379-973.551724137934
251820520069.6969147005-1864.69691470053
262099522401.0969147005-1406.09691470054
271738218313.0969147005-931.096914700544
28936711853.6969147005-2486.69691470054
293112430197.0969147005926.903085299456
302655127399.6969147006-848.69691470055
313065130641.49691470059.50308529945833
322585927986.7938294011-2127.79382940109
332510024576.3938294011523.60617059891
342577825681.193829401196.8061705989072
352041819615.3938294011802.606170598909
361868818360.9938294011327.006170598908
372042420129.1390199637294.860980036307
382477622460.53901996372315.46098003630
391981418372.53901996371441.46098003630
401273811913.1390199637824.860980036297
413156630256.53901996371309.46098003629
423011127459.13901996372651.86098003629
433001930700.9390199637-681.939019963701
443193426896.75136116155037.24863883848
452582623486.35136116152339.64863883848
462683524591.15136116152243.84863883847
472020518525.35136116151679.64863883848
481778917270.9513611615518.048638838473
492052019039.09655172411480.90344827587
502251821370.49655172411147.50344827586
511557217282.4965517241-1710.49655172414
521150910823.0965517241685.903448275864
532544729166.4965517241-3719.49655172414
542409026369.0965517241-2279.09655172415
552778629610.8965517241-1824.89655172414
562619526956.1934664247-761.193466424679
572051623545.7934664247-3029.79346642468
582275924650.5934664247-1891.59346642468
591902818584.7934664247443.206533575316
601697117330.3934664247-359.393466424685

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 20366 & 19950.8127041743 & 415.187295825736 \tabularnewline
2 & 22782 & 22282.2127041742 & 499.787295825769 \tabularnewline
3 & 19169 & 18194.2127041742 & 974.787295825774 \tabularnewline
4 & 13807 & 11734.8127041742 & 2072.18729582577 \tabularnewline
5 & 29743 & 30078.2127041742 & -335.212704174221 \tabularnewline
6 & 25591 & 27280.8127041742 & -1689.81270417421 \tabularnewline
7 & 29096 & 30522.6127041742 & -1426.61270417423 \tabularnewline
8 & 26482 & 27867.9096188748 & -1385.90961887478 \tabularnewline
9 & 22405 & 24457.5096188748 & -2052.50961887477 \tabularnewline
10 & 27044 & 25562.3096188748 & 1481.69038112524 \tabularnewline
11 & 17970 & 19496.5096188748 & -1526.50961887477 \tabularnewline
12 & 18730 & 18242.1096188748 & 487.890381125225 \tabularnewline
13 & 19684 & 20010.2548094374 & -326.254809437375 \tabularnewline
14 & 19785 & 22341.6548094374 & -2556.65480943739 \tabularnewline
15 & 18479 & 18253.6548094374 & 225.345190562615 \tabularnewline
16 & 10698 & 11794.2548094374 & -1096.25480943738 \tabularnewline
17 & 31956 & 30137.6548094374 & 1818.34519056261 \tabularnewline
18 & 29506 & 27340.2548094374 & 2165.74519056261 \tabularnewline
19 & 34506 & 30582.0548094374 & 3923.94519056261 \tabularnewline
20 & 27165 & 27927.3517241379 & -762.351724137928 \tabularnewline
21 & 26736 & 24516.9517241379 & 2219.04827586207 \tabularnewline
22 & 23691 & 25621.7517241379 & -1930.75172413793 \tabularnewline
23 & 18157 & 19555.9517241379 & -1398.95172413793 \tabularnewline
24 & 17328 & 18301.5517241379 & -973.551724137934 \tabularnewline
25 & 18205 & 20069.6969147005 & -1864.69691470053 \tabularnewline
26 & 20995 & 22401.0969147005 & -1406.09691470054 \tabularnewline
27 & 17382 & 18313.0969147005 & -931.096914700544 \tabularnewline
28 & 9367 & 11853.6969147005 & -2486.69691470054 \tabularnewline
29 & 31124 & 30197.0969147005 & 926.903085299456 \tabularnewline
30 & 26551 & 27399.6969147006 & -848.69691470055 \tabularnewline
31 & 30651 & 30641.4969147005 & 9.50308529945833 \tabularnewline
32 & 25859 & 27986.7938294011 & -2127.79382940109 \tabularnewline
33 & 25100 & 24576.3938294011 & 523.60617059891 \tabularnewline
34 & 25778 & 25681.1938294011 & 96.8061705989072 \tabularnewline
35 & 20418 & 19615.3938294011 & 802.606170598909 \tabularnewline
36 & 18688 & 18360.9938294011 & 327.006170598908 \tabularnewline
37 & 20424 & 20129.1390199637 & 294.860980036307 \tabularnewline
38 & 24776 & 22460.5390199637 & 2315.46098003630 \tabularnewline
39 & 19814 & 18372.5390199637 & 1441.46098003630 \tabularnewline
40 & 12738 & 11913.1390199637 & 824.860980036297 \tabularnewline
41 & 31566 & 30256.5390199637 & 1309.46098003629 \tabularnewline
42 & 30111 & 27459.1390199637 & 2651.86098003629 \tabularnewline
43 & 30019 & 30700.9390199637 & -681.939019963701 \tabularnewline
44 & 31934 & 26896.7513611615 & 5037.24863883848 \tabularnewline
45 & 25826 & 23486.3513611615 & 2339.64863883848 \tabularnewline
46 & 26835 & 24591.1513611615 & 2243.84863883847 \tabularnewline
47 & 20205 & 18525.3513611615 & 1679.64863883848 \tabularnewline
48 & 17789 & 17270.9513611615 & 518.048638838473 \tabularnewline
49 & 20520 & 19039.0965517241 & 1480.90344827587 \tabularnewline
50 & 22518 & 21370.4965517241 & 1147.50344827586 \tabularnewline
51 & 15572 & 17282.4965517241 & -1710.49655172414 \tabularnewline
52 & 11509 & 10823.0965517241 & 685.903448275864 \tabularnewline
53 & 25447 & 29166.4965517241 & -3719.49655172414 \tabularnewline
54 & 24090 & 26369.0965517241 & -2279.09655172415 \tabularnewline
55 & 27786 & 29610.8965517241 & -1824.89655172414 \tabularnewline
56 & 26195 & 26956.1934664247 & -761.193466424679 \tabularnewline
57 & 20516 & 23545.7934664247 & -3029.79346642468 \tabularnewline
58 & 22759 & 24650.5934664247 & -1891.59346642468 \tabularnewline
59 & 19028 & 18584.7934664247 & 443.206533575316 \tabularnewline
60 & 16971 & 17330.3934664247 & -359.393466424685 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68356&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]20366[/C][C]19950.8127041743[/C][C]415.187295825736[/C][/ROW]
[ROW][C]2[/C][C]22782[/C][C]22282.2127041742[/C][C]499.787295825769[/C][/ROW]
[ROW][C]3[/C][C]19169[/C][C]18194.2127041742[/C][C]974.787295825774[/C][/ROW]
[ROW][C]4[/C][C]13807[/C][C]11734.8127041742[/C][C]2072.18729582577[/C][/ROW]
[ROW][C]5[/C][C]29743[/C][C]30078.2127041742[/C][C]-335.212704174221[/C][/ROW]
[ROW][C]6[/C][C]25591[/C][C]27280.8127041742[/C][C]-1689.81270417421[/C][/ROW]
[ROW][C]7[/C][C]29096[/C][C]30522.6127041742[/C][C]-1426.61270417423[/C][/ROW]
[ROW][C]8[/C][C]26482[/C][C]27867.9096188748[/C][C]-1385.90961887478[/C][/ROW]
[ROW][C]9[/C][C]22405[/C][C]24457.5096188748[/C][C]-2052.50961887477[/C][/ROW]
[ROW][C]10[/C][C]27044[/C][C]25562.3096188748[/C][C]1481.69038112524[/C][/ROW]
[ROW][C]11[/C][C]17970[/C][C]19496.5096188748[/C][C]-1526.50961887477[/C][/ROW]
[ROW][C]12[/C][C]18730[/C][C]18242.1096188748[/C][C]487.890381125225[/C][/ROW]
[ROW][C]13[/C][C]19684[/C][C]20010.2548094374[/C][C]-326.254809437375[/C][/ROW]
[ROW][C]14[/C][C]19785[/C][C]22341.6548094374[/C][C]-2556.65480943739[/C][/ROW]
[ROW][C]15[/C][C]18479[/C][C]18253.6548094374[/C][C]225.345190562615[/C][/ROW]
[ROW][C]16[/C][C]10698[/C][C]11794.2548094374[/C][C]-1096.25480943738[/C][/ROW]
[ROW][C]17[/C][C]31956[/C][C]30137.6548094374[/C][C]1818.34519056261[/C][/ROW]
[ROW][C]18[/C][C]29506[/C][C]27340.2548094374[/C][C]2165.74519056261[/C][/ROW]
[ROW][C]19[/C][C]34506[/C][C]30582.0548094374[/C][C]3923.94519056261[/C][/ROW]
[ROW][C]20[/C][C]27165[/C][C]27927.3517241379[/C][C]-762.351724137928[/C][/ROW]
[ROW][C]21[/C][C]26736[/C][C]24516.9517241379[/C][C]2219.04827586207[/C][/ROW]
[ROW][C]22[/C][C]23691[/C][C]25621.7517241379[/C][C]-1930.75172413793[/C][/ROW]
[ROW][C]23[/C][C]18157[/C][C]19555.9517241379[/C][C]-1398.95172413793[/C][/ROW]
[ROW][C]24[/C][C]17328[/C][C]18301.5517241379[/C][C]-973.551724137934[/C][/ROW]
[ROW][C]25[/C][C]18205[/C][C]20069.6969147005[/C][C]-1864.69691470053[/C][/ROW]
[ROW][C]26[/C][C]20995[/C][C]22401.0969147005[/C][C]-1406.09691470054[/C][/ROW]
[ROW][C]27[/C][C]17382[/C][C]18313.0969147005[/C][C]-931.096914700544[/C][/ROW]
[ROW][C]28[/C][C]9367[/C][C]11853.6969147005[/C][C]-2486.69691470054[/C][/ROW]
[ROW][C]29[/C][C]31124[/C][C]30197.0969147005[/C][C]926.903085299456[/C][/ROW]
[ROW][C]30[/C][C]26551[/C][C]27399.6969147006[/C][C]-848.69691470055[/C][/ROW]
[ROW][C]31[/C][C]30651[/C][C]30641.4969147005[/C][C]9.50308529945833[/C][/ROW]
[ROW][C]32[/C][C]25859[/C][C]27986.7938294011[/C][C]-2127.79382940109[/C][/ROW]
[ROW][C]33[/C][C]25100[/C][C]24576.3938294011[/C][C]523.60617059891[/C][/ROW]
[ROW][C]34[/C][C]25778[/C][C]25681.1938294011[/C][C]96.8061705989072[/C][/ROW]
[ROW][C]35[/C][C]20418[/C][C]19615.3938294011[/C][C]802.606170598909[/C][/ROW]
[ROW][C]36[/C][C]18688[/C][C]18360.9938294011[/C][C]327.006170598908[/C][/ROW]
[ROW][C]37[/C][C]20424[/C][C]20129.1390199637[/C][C]294.860980036307[/C][/ROW]
[ROW][C]38[/C][C]24776[/C][C]22460.5390199637[/C][C]2315.46098003630[/C][/ROW]
[ROW][C]39[/C][C]19814[/C][C]18372.5390199637[/C][C]1441.46098003630[/C][/ROW]
[ROW][C]40[/C][C]12738[/C][C]11913.1390199637[/C][C]824.860980036297[/C][/ROW]
[ROW][C]41[/C][C]31566[/C][C]30256.5390199637[/C][C]1309.46098003629[/C][/ROW]
[ROW][C]42[/C][C]30111[/C][C]27459.1390199637[/C][C]2651.86098003629[/C][/ROW]
[ROW][C]43[/C][C]30019[/C][C]30700.9390199637[/C][C]-681.939019963701[/C][/ROW]
[ROW][C]44[/C][C]31934[/C][C]26896.7513611615[/C][C]5037.24863883848[/C][/ROW]
[ROW][C]45[/C][C]25826[/C][C]23486.3513611615[/C][C]2339.64863883848[/C][/ROW]
[ROW][C]46[/C][C]26835[/C][C]24591.1513611615[/C][C]2243.84863883847[/C][/ROW]
[ROW][C]47[/C][C]20205[/C][C]18525.3513611615[/C][C]1679.64863883848[/C][/ROW]
[ROW][C]48[/C][C]17789[/C][C]17270.9513611615[/C][C]518.048638838473[/C][/ROW]
[ROW][C]49[/C][C]20520[/C][C]19039.0965517241[/C][C]1480.90344827587[/C][/ROW]
[ROW][C]50[/C][C]22518[/C][C]21370.4965517241[/C][C]1147.50344827586[/C][/ROW]
[ROW][C]51[/C][C]15572[/C][C]17282.4965517241[/C][C]-1710.49655172414[/C][/ROW]
[ROW][C]52[/C][C]11509[/C][C]10823.0965517241[/C][C]685.903448275864[/C][/ROW]
[ROW][C]53[/C][C]25447[/C][C]29166.4965517241[/C][C]-3719.49655172414[/C][/ROW]
[ROW][C]54[/C][C]24090[/C][C]26369.0965517241[/C][C]-2279.09655172415[/C][/ROW]
[ROW][C]55[/C][C]27786[/C][C]29610.8965517241[/C][C]-1824.89655172414[/C][/ROW]
[ROW][C]56[/C][C]26195[/C][C]26956.1934664247[/C][C]-761.193466424679[/C][/ROW]
[ROW][C]57[/C][C]20516[/C][C]23545.7934664247[/C][C]-3029.79346642468[/C][/ROW]
[ROW][C]58[/C][C]22759[/C][C]24650.5934664247[/C][C]-1891.59346642468[/C][/ROW]
[ROW][C]59[/C][C]19028[/C][C]18584.7934664247[/C][C]443.206533575316[/C][/ROW]
[ROW][C]60[/C][C]16971[/C][C]17330.3934664247[/C][C]-359.393466424685[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68356&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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
12036619950.8127041743415.187295825736
22278222282.2127041742499.787295825769
31916918194.2127041742974.787295825774
41380711734.81270417422072.18729582577
52974330078.2127041742-335.212704174221
62559127280.8127041742-1689.81270417421
72909630522.6127041742-1426.61270417423
82648227867.9096188748-1385.90961887478
92240524457.5096188748-2052.50961887477
102704425562.30961887481481.69038112524
111797019496.5096188748-1526.50961887477
121873018242.1096188748487.890381125225
131968420010.2548094374-326.254809437375
141978522341.6548094374-2556.65480943739
151847918253.6548094374225.345190562615
161069811794.2548094374-1096.25480943738
173195630137.65480943741818.34519056261
182950627340.25480943742165.74519056261
193450630582.05480943743923.94519056261
202716527927.3517241379-762.351724137928
212673624516.95172413792219.04827586207
222369125621.7517241379-1930.75172413793
231815719555.9517241379-1398.95172413793
241732818301.5517241379-973.551724137934
251820520069.6969147005-1864.69691470053
262099522401.0969147005-1406.09691470054
271738218313.0969147005-931.096914700544
28936711853.6969147005-2486.69691470054
293112430197.0969147005926.903085299456
302655127399.6969147006-848.69691470055
313065130641.49691470059.50308529945833
322585927986.7938294011-2127.79382940109
332510024576.3938294011523.60617059891
342577825681.193829401196.8061705989072
352041819615.3938294011802.606170598909
361868818360.9938294011327.006170598908
372042420129.1390199637294.860980036307
382477622460.53901996372315.46098003630
391981418372.53901996371441.46098003630
401273811913.1390199637824.860980036297
413156630256.53901996371309.46098003629
423011127459.13901996372651.86098003629
433001930700.9390199637-681.939019963701
443193426896.75136116155037.24863883848
452582623486.35136116152339.64863883848
462683524591.15136116152243.84863883847
472020518525.35136116151679.64863883848
481778917270.9513611615518.048638838473
492052019039.09655172411480.90344827587
502251821370.49655172411147.50344827586
511557217282.4965517241-1710.49655172414
521150910823.0965517241685.903448275864
532544729166.4965517241-3719.49655172414
542409026369.0965517241-2279.09655172415
552778629610.8965517241-1824.89655172414
562619526956.1934664247-761.193466424679
572051623545.7934664247-3029.79346642468
582275924650.5934664247-1891.59346642468
591902818584.7934664247443.206533575316
601697117330.3934664247-359.393466424685







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4079736654275010.8159473308550030.592026334572499
180.571851142513970.8562977149720610.428148857486031
190.7671093498331350.465781300333730.232890650166865
200.6581668358489720.6836663283020560.341833164151028
210.6664531940056170.6670936119887650.333546805994383
220.6927935544981370.6144128910037260.307206445501863
230.6123631776074810.7752736447850380.387636822392519
240.5371101143365260.9257797713269480.462889885663474
250.5190618863139340.9618762273721320.480938113686066
260.4926441878373960.9852883756747920.507355812162604
270.4245198181971290.8490396363942580.575480181802871
280.5162561017060970.9674877965878050.483743898293903
290.4202714136163920.8405428272327850.579728586383608
300.3828365968951440.7656731937902890.617163403104856
310.2980442888300490.5960885776600970.701955711169951
320.5095609888106940.980878022378610.490439011189305
330.4321898354992590.8643796709985180.567810164500741
340.4038120244050070.8076240488100140.596187975594993
350.4784505093718110.9569010187436220.521549490628189
360.5328225747315860.9343548505368270.467177425268414
370.6046225002068960.7907549995862080.395377499793104
380.6106146013440630.7787707973118750.389385398655937
390.4977845859492710.9955691718985420.502215414050729
400.5376317466050260.9247365067899480.462368253394974
410.4486856801980240.8973713603960480.551314319801976
420.4770050798219450.954010159643890.522994920178055
430.326912412342750.65382482468550.67308758765725

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.407973665427501 & 0.815947330855003 & 0.592026334572499 \tabularnewline
18 & 0.57185114251397 & 0.856297714972061 & 0.428148857486031 \tabularnewline
19 & 0.767109349833135 & 0.46578130033373 & 0.232890650166865 \tabularnewline
20 & 0.658166835848972 & 0.683666328302056 & 0.341833164151028 \tabularnewline
21 & 0.666453194005617 & 0.667093611988765 & 0.333546805994383 \tabularnewline
22 & 0.692793554498137 & 0.614412891003726 & 0.307206445501863 \tabularnewline
23 & 0.612363177607481 & 0.775273644785038 & 0.387636822392519 \tabularnewline
24 & 0.537110114336526 & 0.925779771326948 & 0.462889885663474 \tabularnewline
25 & 0.519061886313934 & 0.961876227372132 & 0.480938113686066 \tabularnewline
26 & 0.492644187837396 & 0.985288375674792 & 0.507355812162604 \tabularnewline
27 & 0.424519818197129 & 0.849039636394258 & 0.575480181802871 \tabularnewline
28 & 0.516256101706097 & 0.967487796587805 & 0.483743898293903 \tabularnewline
29 & 0.420271413616392 & 0.840542827232785 & 0.579728586383608 \tabularnewline
30 & 0.382836596895144 & 0.765673193790289 & 0.617163403104856 \tabularnewline
31 & 0.298044288830049 & 0.596088577660097 & 0.701955711169951 \tabularnewline
32 & 0.509560988810694 & 0.98087802237861 & 0.490439011189305 \tabularnewline
33 & 0.432189835499259 & 0.864379670998518 & 0.567810164500741 \tabularnewline
34 & 0.403812024405007 & 0.807624048810014 & 0.596187975594993 \tabularnewline
35 & 0.478450509371811 & 0.956901018743622 & 0.521549490628189 \tabularnewline
36 & 0.532822574731586 & 0.934354850536827 & 0.467177425268414 \tabularnewline
37 & 0.604622500206896 & 0.790754999586208 & 0.395377499793104 \tabularnewline
38 & 0.610614601344063 & 0.778770797311875 & 0.389385398655937 \tabularnewline
39 & 0.497784585949271 & 0.995569171898542 & 0.502215414050729 \tabularnewline
40 & 0.537631746605026 & 0.924736506789948 & 0.462368253394974 \tabularnewline
41 & 0.448685680198024 & 0.897371360396048 & 0.551314319801976 \tabularnewline
42 & 0.477005079821945 & 0.95401015964389 & 0.522994920178055 \tabularnewline
43 & 0.32691241234275 & 0.6538248246855 & 0.67308758765725 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68356&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.407973665427501[/C][C]0.815947330855003[/C][C]0.592026334572499[/C][/ROW]
[ROW][C]18[/C][C]0.57185114251397[/C][C]0.856297714972061[/C][C]0.428148857486031[/C][/ROW]
[ROW][C]19[/C][C]0.767109349833135[/C][C]0.46578130033373[/C][C]0.232890650166865[/C][/ROW]
[ROW][C]20[/C][C]0.658166835848972[/C][C]0.683666328302056[/C][C]0.341833164151028[/C][/ROW]
[ROW][C]21[/C][C]0.666453194005617[/C][C]0.667093611988765[/C][C]0.333546805994383[/C][/ROW]
[ROW][C]22[/C][C]0.692793554498137[/C][C]0.614412891003726[/C][C]0.307206445501863[/C][/ROW]
[ROW][C]23[/C][C]0.612363177607481[/C][C]0.775273644785038[/C][C]0.387636822392519[/C][/ROW]
[ROW][C]24[/C][C]0.537110114336526[/C][C]0.925779771326948[/C][C]0.462889885663474[/C][/ROW]
[ROW][C]25[/C][C]0.519061886313934[/C][C]0.961876227372132[/C][C]0.480938113686066[/C][/ROW]
[ROW][C]26[/C][C]0.492644187837396[/C][C]0.985288375674792[/C][C]0.507355812162604[/C][/ROW]
[ROW][C]27[/C][C]0.424519818197129[/C][C]0.849039636394258[/C][C]0.575480181802871[/C][/ROW]
[ROW][C]28[/C][C]0.516256101706097[/C][C]0.967487796587805[/C][C]0.483743898293903[/C][/ROW]
[ROW][C]29[/C][C]0.420271413616392[/C][C]0.840542827232785[/C][C]0.579728586383608[/C][/ROW]
[ROW][C]30[/C][C]0.382836596895144[/C][C]0.765673193790289[/C][C]0.617163403104856[/C][/ROW]
[ROW][C]31[/C][C]0.298044288830049[/C][C]0.596088577660097[/C][C]0.701955711169951[/C][/ROW]
[ROW][C]32[/C][C]0.509560988810694[/C][C]0.98087802237861[/C][C]0.490439011189305[/C][/ROW]
[ROW][C]33[/C][C]0.432189835499259[/C][C]0.864379670998518[/C][C]0.567810164500741[/C][/ROW]
[ROW][C]34[/C][C]0.403812024405007[/C][C]0.807624048810014[/C][C]0.596187975594993[/C][/ROW]
[ROW][C]35[/C][C]0.478450509371811[/C][C]0.956901018743622[/C][C]0.521549490628189[/C][/ROW]
[ROW][C]36[/C][C]0.532822574731586[/C][C]0.934354850536827[/C][C]0.467177425268414[/C][/ROW]
[ROW][C]37[/C][C]0.604622500206896[/C][C]0.790754999586208[/C][C]0.395377499793104[/C][/ROW]
[ROW][C]38[/C][C]0.610614601344063[/C][C]0.778770797311875[/C][C]0.389385398655937[/C][/ROW]
[ROW][C]39[/C][C]0.497784585949271[/C][C]0.995569171898542[/C][C]0.502215414050729[/C][/ROW]
[ROW][C]40[/C][C]0.537631746605026[/C][C]0.924736506789948[/C][C]0.462368253394974[/C][/ROW]
[ROW][C]41[/C][C]0.448685680198024[/C][C]0.897371360396048[/C][C]0.551314319801976[/C][/ROW]
[ROW][C]42[/C][C]0.477005079821945[/C][C]0.95401015964389[/C][C]0.522994920178055[/C][/ROW]
[ROW][C]43[/C][C]0.32691241234275[/C][C]0.6538248246855[/C][C]0.67308758765725[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68356&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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.4079736654275010.8159473308550030.592026334572499
180.571851142513970.8562977149720610.428148857486031
190.7671093498331350.465781300333730.232890650166865
200.6581668358489720.6836663283020560.341833164151028
210.6664531940056170.6670936119887650.333546805994383
220.6927935544981370.6144128910037260.307206445501863
230.6123631776074810.7752736447850380.387636822392519
240.5371101143365260.9257797713269480.462889885663474
250.5190618863139340.9618762273721320.480938113686066
260.4926441878373960.9852883756747920.507355812162604
270.4245198181971290.8490396363942580.575480181802871
280.5162561017060970.9674877965878050.483743898293903
290.4202714136163920.8405428272327850.579728586383608
300.3828365968951440.7656731937902890.617163403104856
310.2980442888300490.5960885776600970.701955711169951
320.5095609888106940.980878022378610.490439011189305
330.4321898354992590.8643796709985180.567810164500741
340.4038120244050070.8076240488100140.596187975594993
350.4784505093718110.9569010187436220.521549490628189
360.5328225747315860.9343548505368270.467177425268414
370.6046225002068960.7907549995862080.395377499793104
380.6106146013440630.7787707973118750.389385398655937
390.4977845859492710.9955691718985420.502215414050729
400.5376317466050260.9247365067899480.462368253394974
410.4486856801980240.8973713603960480.551314319801976
420.4770050798219450.954010159643890.522994920178055
430.326912412342750.65382482468550.67308758765725







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=68356&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=68356&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68356&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 = 0 ; par2 = 36 ;
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')
}