Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 15 Dec 2009 11:57: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/15/t12609035010ac0u9a6yx4de5q.htm/, Retrieved Thu, 02 May 2024 22:18:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68076, Retrieved Thu, 02 May 2024 22:18:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact150
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] [model 4] [2009-11-19 08:47:36] [3445d50c581a74ea3ff7b84cc82fcfeb]
- R  D        [Multiple Regression] [] [2009-12-15 18:57:25] [c60887983b0820a525cba943a935572d] [Current]
Feedback Forum

Post a new message
Dataseries X:
139	0	149
135	0	139
130	0	135
127	0	130
122	0	127
117	0	122
112	0	117
113	0	112
149	0	113
157	0	149
157	0	157
147	0	157
137	0	147
132	0	137
125	0	132
123	0	125
117	0	123
114	0	117
111	0	114
112	0	111
144	0	112
150	0	144
149	0	150
134	0	149
123	0	134
116	0	123
117	0	116
111	0	117
105	0	111
102	0	105
95	0	102
93	0	95
124	0	93
130	0	124
124	0	130
115	0	124
106	0	115
105	0	106
105	0	105
101	0	105
95	0	101
93	0	95
84	0	93
87	0	84
116	0	87
120	0	116
117	1	120
109	1	117
105	1	109
107	1	105
109	1	107
109	1	109
108	1	109
107	1	108
99	1	107
103	1	99
131	1	103
137	1	131
135	1	137




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=68076&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=68076&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68076&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
WLH[t] = + 9.04393654328443 + 4.53773313169803X[t] + 0.875770345031125`Y(t-1)`[t] + 0.572726124650886M1[t] + 5.40250397789863M2[t] + 6.35281382996584M3[t] + 5.05219926799572M4[t] + 3.00250912006294M5[t] + 4.52920559318618M6[t] + 0.704361376247183M7[t] + 7.83229040142024M8[t] + 37.9292107353505M9[t] + 16.7281747873532M10[t] + 8.2890049078007M11[t] -0.122998816973845t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WLH[t] =  +  9.04393654328443 +  4.53773313169803X[t] +  0.875770345031125`Y(t-1)`[t] +  0.572726124650886M1[t] +  5.40250397789863M2[t] +  6.35281382996584M3[t] +  5.05219926799572M4[t] +  3.00250912006294M5[t] +  4.52920559318618M6[t] +  0.704361376247183M7[t] +  7.83229040142024M8[t] +  37.9292107353505M9[t] +  16.7281747873532M10[t] +  8.2890049078007M11[t] -0.122998816973845t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68076&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WLH[t] =  +  9.04393654328443 +  4.53773313169803X[t] +  0.875770345031125`Y(t-1)`[t] +  0.572726124650886M1[t] +  5.40250397789863M2[t] +  6.35281382996584M3[t] +  5.05219926799572M4[t] +  3.00250912006294M5[t] +  4.52920559318618M6[t] +  0.704361376247183M7[t] +  7.83229040142024M8[t] +  37.9292107353505M9[t] +  16.7281747873532M10[t] +  8.2890049078007M11[t] -0.122998816973845t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68076&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68076&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
WLH[t] = + 9.04393654328443 + 4.53773313169803X[t] + 0.875770345031125`Y(t-1)`[t] + 0.572726124650886M1[t] + 5.40250397789863M2[t] + 6.35281382996584M3[t] + 5.05219926799572M4[t] + 3.00250912006294M5[t] + 4.52920559318618M6[t] + 0.704361376247183M7[t] + 7.83229040142024M8[t] + 37.9292107353505M9[t] + 16.7281747873532M10[t] + 8.2890049078007M11[t] -0.122998816973845t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.043936543284438.2956151.09020.2815570.140778
X4.537733131698031.3029173.48280.0011340.000567
`Y(t-1)`0.8757703450311250.05172916.929900
M10.5727261246508861.6659960.34380.7326540.366327
M25.402503977898631.8283252.95490.0050090.002504
M36.352813829965841.8852663.36970.0015740.000787
M45.052199267995721.9122272.64210.0113680.005684
M53.002509120062941.9766941.5190.1359270.067964
M64.529205593186182.1054132.15120.0369890.018495
M70.7043613762471832.1741170.3240.7474910.373746
M87.832290401420242.3805743.29010.0019770.000989
M937.92921073535052.29732616.510200
M1016.72817478735321.59710610.474100
M118.28900490780071.608315.15396e-063e-06
t-0.1229988169738450.050641-2.42880.0193020.009651

\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) & 9.04393654328443 & 8.295615 & 1.0902 & 0.281557 & 0.140778 \tabularnewline
X & 4.53773313169803 & 1.302917 & 3.4828 & 0.001134 & 0.000567 \tabularnewline
`Y(t-1)` & 0.875770345031125 & 0.051729 & 16.9299 & 0 & 0 \tabularnewline
M1 & 0.572726124650886 & 1.665996 & 0.3438 & 0.732654 & 0.366327 \tabularnewline
M2 & 5.40250397789863 & 1.828325 & 2.9549 & 0.005009 & 0.002504 \tabularnewline
M3 & 6.35281382996584 & 1.885266 & 3.3697 & 0.001574 & 0.000787 \tabularnewline
M4 & 5.05219926799572 & 1.912227 & 2.6421 & 0.011368 & 0.005684 \tabularnewline
M5 & 3.00250912006294 & 1.976694 & 1.519 & 0.135927 & 0.067964 \tabularnewline
M6 & 4.52920559318618 & 2.105413 & 2.1512 & 0.036989 & 0.018495 \tabularnewline
M7 & 0.704361376247183 & 2.174117 & 0.324 & 0.747491 & 0.373746 \tabularnewline
M8 & 7.83229040142024 & 2.380574 & 3.2901 & 0.001977 & 0.000989 \tabularnewline
M9 & 37.9292107353505 & 2.297326 & 16.5102 & 0 & 0 \tabularnewline
M10 & 16.7281747873532 & 1.597106 & 10.4741 & 0 & 0 \tabularnewline
M11 & 8.2890049078007 & 1.60831 & 5.1539 & 6e-06 & 3e-06 \tabularnewline
t & -0.122998816973845 & 0.050641 & -2.4288 & 0.019302 & 0.009651 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68076&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]9.04393654328443[/C][C]8.295615[/C][C]1.0902[/C][C]0.281557[/C][C]0.140778[/C][/ROW]
[ROW][C]X[/C][C]4.53773313169803[/C][C]1.302917[/C][C]3.4828[/C][C]0.001134[/C][C]0.000567[/C][/ROW]
[ROW][C]`Y(t-1)`[/C][C]0.875770345031125[/C][C]0.051729[/C][C]16.9299[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.572726124650886[/C][C]1.665996[/C][C]0.3438[/C][C]0.732654[/C][C]0.366327[/C][/ROW]
[ROW][C]M2[/C][C]5.40250397789863[/C][C]1.828325[/C][C]2.9549[/C][C]0.005009[/C][C]0.002504[/C][/ROW]
[ROW][C]M3[/C][C]6.35281382996584[/C][C]1.885266[/C][C]3.3697[/C][C]0.001574[/C][C]0.000787[/C][/ROW]
[ROW][C]M4[/C][C]5.05219926799572[/C][C]1.912227[/C][C]2.6421[/C][C]0.011368[/C][C]0.005684[/C][/ROW]
[ROW][C]M5[/C][C]3.00250912006294[/C][C]1.976694[/C][C]1.519[/C][C]0.135927[/C][C]0.067964[/C][/ROW]
[ROW][C]M6[/C][C]4.52920559318618[/C][C]2.105413[/C][C]2.1512[/C][C]0.036989[/C][C]0.018495[/C][/ROW]
[ROW][C]M7[/C][C]0.704361376247183[/C][C]2.174117[/C][C]0.324[/C][C]0.747491[/C][C]0.373746[/C][/ROW]
[ROW][C]M8[/C][C]7.83229040142024[/C][C]2.380574[/C][C]3.2901[/C][C]0.001977[/C][C]0.000989[/C][/ROW]
[ROW][C]M9[/C][C]37.9292107353505[/C][C]2.297326[/C][C]16.5102[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]16.7281747873532[/C][C]1.597106[/C][C]10.4741[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]8.2890049078007[/C][C]1.60831[/C][C]5.1539[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]t[/C][C]-0.122998816973845[/C][C]0.050641[/C][C]-2.4288[/C][C]0.019302[/C][C]0.009651[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68076&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68076&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)9.043936543284438.2956151.09020.2815570.140778
X4.537733131698031.3029173.48280.0011340.000567
`Y(t-1)`0.8757703450311250.05172916.929900
M10.5727261246508861.6659960.34380.7326540.366327
M25.402503977898631.8283252.95490.0050090.002504
M36.352813829965841.8852663.36970.0015740.000787
M45.052199267995721.9122272.64210.0113680.005684
M53.002509120062941.9766941.5190.1359270.067964
M64.529205593186182.1054132.15120.0369890.018495
M70.7043613762471832.1741170.3240.7474910.373746
M87.832290401420242.3805743.29010.0019770.000989
M937.92921073535052.29732616.510200
M1016.72817478735321.59710610.474100
M118.28900490780071.608315.15396e-063e-06
t-0.1229988169738450.050641-2.42880.0193020.009651







Multiple Linear Regression - Regression Statistics
Multiple R0.992953343119385
R-squared0.985956341611964
Adjusted R-squared0.981487904852134
F-TEST (value)220.649053484545
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.37014623783598
Sum Squared Residuals247.174100304034

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.992953343119385 \tabularnewline
R-squared & 0.985956341611964 \tabularnewline
Adjusted R-squared & 0.981487904852134 \tabularnewline
F-TEST (value) & 220.649053484545 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.37014623783598 \tabularnewline
Sum Squared Residuals & 247.174100304034 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68076&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.992953343119385[/C][/ROW]
[ROW][C]R-squared[/C][C]0.985956341611964[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.981487904852134[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]220.649053484545[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/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]2.37014623783598[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]247.174100304034[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68076&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68076&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.992953343119385
R-squared0.985956341611964
Adjusted R-squared0.981487904852134
F-TEST (value)220.649053484545
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.37014623783598
Sum Squared Residuals247.174100304034







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1139139.983445260599-0.983445260599118
2135135.932520846562-0.93252084656179
3130133.256750501531-3.25675050153071
4127127.454285397431-0.454285397431072
5122122.654285397431-0.654285397431074
6117119.679131328425-2.67913132842486
7112111.3524365693560.647563430643625
8113113.9785150524-0.978515052399952
9149144.8282069143874.17179308561251
10157155.0319045705371.9680954294631
11157153.4758986342603.52410136574045
12147145.0638949094851.93610509051501
13137136.7559187668510.244081233149242
14132132.704994352813-0.704994352813419
15125129.153453662751-4.15345366275116
16123121.5994478685891.40055213141069
17117117.675218213620-0.675218213620437
18114113.8242937995830.175706200416914
19111107.2491397305773.75086026942314
20112111.6267589036830.373241096317314
21144142.4764507656701.52354923432977
22150149.1770670416950.822932958304861
23149145.8695204153563.13047958464447
24134136.581746345550-2.58174634554986
25123123.89491847776-0.894918477760012
26116118.968223718692-2.96822371869152
27117113.6651423385673.33485766143299
28111113.117299304654-2.11729930465417
29105105.689988269561-0.689988269560793
30102101.8390638555230.160936144476559
319595.2639097865172-0.263909786517211
329396.1384475794985-3.13844757949854
33124124.360828406393-0.360828406392718
34130130.185674337386-0.185674337386484
35124126.878127711047-2.87812771104688
36115113.2115019160861.78849808391442
37106105.7792961184820.220703881517516
38105102.6041420494762.39585795052375
39105102.5556827395382.44431726046151
40101101.132069360595-0.132069360594526
419595.4562990155634-0.456299015563395
429391.6053746015261.39462539847396
438485.905990877551-1.90599087755094
448785.028987980471.97101201952998
45116117.630220532520-1.63022053251982
46120121.703525773451-1.70352577345134
47117121.182171588748-4.18217158874752
48109110.142856828880-1.14285682887959
49105103.5864213763081.41357862369237
50107104.7901190324572.20988096754298
51109107.3689707576131.63102924238736
52109107.6968980687311.30310193126908
53108105.5242091038242.47579089617570
54107106.0521364149430.947863585057428
5599101.228523035999-2.22852303599861
56103101.2272904839491.77270951605119
57131134.704293381030-3.70429338102974
58137137.901828276930-0.90182827693013
59135134.5942816505910.405718349409481

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 139 & 139.983445260599 & -0.983445260599118 \tabularnewline
2 & 135 & 135.932520846562 & -0.93252084656179 \tabularnewline
3 & 130 & 133.256750501531 & -3.25675050153071 \tabularnewline
4 & 127 & 127.454285397431 & -0.454285397431072 \tabularnewline
5 & 122 & 122.654285397431 & -0.654285397431074 \tabularnewline
6 & 117 & 119.679131328425 & -2.67913132842486 \tabularnewline
7 & 112 & 111.352436569356 & 0.647563430643625 \tabularnewline
8 & 113 & 113.9785150524 & -0.978515052399952 \tabularnewline
9 & 149 & 144.828206914387 & 4.17179308561251 \tabularnewline
10 & 157 & 155.031904570537 & 1.9680954294631 \tabularnewline
11 & 157 & 153.475898634260 & 3.52410136574045 \tabularnewline
12 & 147 & 145.063894909485 & 1.93610509051501 \tabularnewline
13 & 137 & 136.755918766851 & 0.244081233149242 \tabularnewline
14 & 132 & 132.704994352813 & -0.704994352813419 \tabularnewline
15 & 125 & 129.153453662751 & -4.15345366275116 \tabularnewline
16 & 123 & 121.599447868589 & 1.40055213141069 \tabularnewline
17 & 117 & 117.675218213620 & -0.675218213620437 \tabularnewline
18 & 114 & 113.824293799583 & 0.175706200416914 \tabularnewline
19 & 111 & 107.249139730577 & 3.75086026942314 \tabularnewline
20 & 112 & 111.626758903683 & 0.373241096317314 \tabularnewline
21 & 144 & 142.476450765670 & 1.52354923432977 \tabularnewline
22 & 150 & 149.177067041695 & 0.822932958304861 \tabularnewline
23 & 149 & 145.869520415356 & 3.13047958464447 \tabularnewline
24 & 134 & 136.581746345550 & -2.58174634554986 \tabularnewline
25 & 123 & 123.89491847776 & -0.894918477760012 \tabularnewline
26 & 116 & 118.968223718692 & -2.96822371869152 \tabularnewline
27 & 117 & 113.665142338567 & 3.33485766143299 \tabularnewline
28 & 111 & 113.117299304654 & -2.11729930465417 \tabularnewline
29 & 105 & 105.689988269561 & -0.689988269560793 \tabularnewline
30 & 102 & 101.839063855523 & 0.160936144476559 \tabularnewline
31 & 95 & 95.2639097865172 & -0.263909786517211 \tabularnewline
32 & 93 & 96.1384475794985 & -3.13844757949854 \tabularnewline
33 & 124 & 124.360828406393 & -0.360828406392718 \tabularnewline
34 & 130 & 130.185674337386 & -0.185674337386484 \tabularnewline
35 & 124 & 126.878127711047 & -2.87812771104688 \tabularnewline
36 & 115 & 113.211501916086 & 1.78849808391442 \tabularnewline
37 & 106 & 105.779296118482 & 0.220703881517516 \tabularnewline
38 & 105 & 102.604142049476 & 2.39585795052375 \tabularnewline
39 & 105 & 102.555682739538 & 2.44431726046151 \tabularnewline
40 & 101 & 101.132069360595 & -0.132069360594526 \tabularnewline
41 & 95 & 95.4562990155634 & -0.456299015563395 \tabularnewline
42 & 93 & 91.605374601526 & 1.39462539847396 \tabularnewline
43 & 84 & 85.905990877551 & -1.90599087755094 \tabularnewline
44 & 87 & 85.02898798047 & 1.97101201952998 \tabularnewline
45 & 116 & 117.630220532520 & -1.63022053251982 \tabularnewline
46 & 120 & 121.703525773451 & -1.70352577345134 \tabularnewline
47 & 117 & 121.182171588748 & -4.18217158874752 \tabularnewline
48 & 109 & 110.142856828880 & -1.14285682887959 \tabularnewline
49 & 105 & 103.586421376308 & 1.41357862369237 \tabularnewline
50 & 107 & 104.790119032457 & 2.20988096754298 \tabularnewline
51 & 109 & 107.368970757613 & 1.63102924238736 \tabularnewline
52 & 109 & 107.696898068731 & 1.30310193126908 \tabularnewline
53 & 108 & 105.524209103824 & 2.47579089617570 \tabularnewline
54 & 107 & 106.052136414943 & 0.947863585057428 \tabularnewline
55 & 99 & 101.228523035999 & -2.22852303599861 \tabularnewline
56 & 103 & 101.227290483949 & 1.77270951605119 \tabularnewline
57 & 131 & 134.704293381030 & -3.70429338102974 \tabularnewline
58 & 137 & 137.901828276930 & -0.90182827693013 \tabularnewline
59 & 135 & 134.594281650591 & 0.405718349409481 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68076&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]139[/C][C]139.983445260599[/C][C]-0.983445260599118[/C][/ROW]
[ROW][C]2[/C][C]135[/C][C]135.932520846562[/C][C]-0.93252084656179[/C][/ROW]
[ROW][C]3[/C][C]130[/C][C]133.256750501531[/C][C]-3.25675050153071[/C][/ROW]
[ROW][C]4[/C][C]127[/C][C]127.454285397431[/C][C]-0.454285397431072[/C][/ROW]
[ROW][C]5[/C][C]122[/C][C]122.654285397431[/C][C]-0.654285397431074[/C][/ROW]
[ROW][C]6[/C][C]117[/C][C]119.679131328425[/C][C]-2.67913132842486[/C][/ROW]
[ROW][C]7[/C][C]112[/C][C]111.352436569356[/C][C]0.647563430643625[/C][/ROW]
[ROW][C]8[/C][C]113[/C][C]113.9785150524[/C][C]-0.978515052399952[/C][/ROW]
[ROW][C]9[/C][C]149[/C][C]144.828206914387[/C][C]4.17179308561251[/C][/ROW]
[ROW][C]10[/C][C]157[/C][C]155.031904570537[/C][C]1.9680954294631[/C][/ROW]
[ROW][C]11[/C][C]157[/C][C]153.475898634260[/C][C]3.52410136574045[/C][/ROW]
[ROW][C]12[/C][C]147[/C][C]145.063894909485[/C][C]1.93610509051501[/C][/ROW]
[ROW][C]13[/C][C]137[/C][C]136.755918766851[/C][C]0.244081233149242[/C][/ROW]
[ROW][C]14[/C][C]132[/C][C]132.704994352813[/C][C]-0.704994352813419[/C][/ROW]
[ROW][C]15[/C][C]125[/C][C]129.153453662751[/C][C]-4.15345366275116[/C][/ROW]
[ROW][C]16[/C][C]123[/C][C]121.599447868589[/C][C]1.40055213141069[/C][/ROW]
[ROW][C]17[/C][C]117[/C][C]117.675218213620[/C][C]-0.675218213620437[/C][/ROW]
[ROW][C]18[/C][C]114[/C][C]113.824293799583[/C][C]0.175706200416914[/C][/ROW]
[ROW][C]19[/C][C]111[/C][C]107.249139730577[/C][C]3.75086026942314[/C][/ROW]
[ROW][C]20[/C][C]112[/C][C]111.626758903683[/C][C]0.373241096317314[/C][/ROW]
[ROW][C]21[/C][C]144[/C][C]142.476450765670[/C][C]1.52354923432977[/C][/ROW]
[ROW][C]22[/C][C]150[/C][C]149.177067041695[/C][C]0.822932958304861[/C][/ROW]
[ROW][C]23[/C][C]149[/C][C]145.869520415356[/C][C]3.13047958464447[/C][/ROW]
[ROW][C]24[/C][C]134[/C][C]136.581746345550[/C][C]-2.58174634554986[/C][/ROW]
[ROW][C]25[/C][C]123[/C][C]123.89491847776[/C][C]-0.894918477760012[/C][/ROW]
[ROW][C]26[/C][C]116[/C][C]118.968223718692[/C][C]-2.96822371869152[/C][/ROW]
[ROW][C]27[/C][C]117[/C][C]113.665142338567[/C][C]3.33485766143299[/C][/ROW]
[ROW][C]28[/C][C]111[/C][C]113.117299304654[/C][C]-2.11729930465417[/C][/ROW]
[ROW][C]29[/C][C]105[/C][C]105.689988269561[/C][C]-0.689988269560793[/C][/ROW]
[ROW][C]30[/C][C]102[/C][C]101.839063855523[/C][C]0.160936144476559[/C][/ROW]
[ROW][C]31[/C][C]95[/C][C]95.2639097865172[/C][C]-0.263909786517211[/C][/ROW]
[ROW][C]32[/C][C]93[/C][C]96.1384475794985[/C][C]-3.13844757949854[/C][/ROW]
[ROW][C]33[/C][C]124[/C][C]124.360828406393[/C][C]-0.360828406392718[/C][/ROW]
[ROW][C]34[/C][C]130[/C][C]130.185674337386[/C][C]-0.185674337386484[/C][/ROW]
[ROW][C]35[/C][C]124[/C][C]126.878127711047[/C][C]-2.87812771104688[/C][/ROW]
[ROW][C]36[/C][C]115[/C][C]113.211501916086[/C][C]1.78849808391442[/C][/ROW]
[ROW][C]37[/C][C]106[/C][C]105.779296118482[/C][C]0.220703881517516[/C][/ROW]
[ROW][C]38[/C][C]105[/C][C]102.604142049476[/C][C]2.39585795052375[/C][/ROW]
[ROW][C]39[/C][C]105[/C][C]102.555682739538[/C][C]2.44431726046151[/C][/ROW]
[ROW][C]40[/C][C]101[/C][C]101.132069360595[/C][C]-0.132069360594526[/C][/ROW]
[ROW][C]41[/C][C]95[/C][C]95.4562990155634[/C][C]-0.456299015563395[/C][/ROW]
[ROW][C]42[/C][C]93[/C][C]91.605374601526[/C][C]1.39462539847396[/C][/ROW]
[ROW][C]43[/C][C]84[/C][C]85.905990877551[/C][C]-1.90599087755094[/C][/ROW]
[ROW][C]44[/C][C]87[/C][C]85.02898798047[/C][C]1.97101201952998[/C][/ROW]
[ROW][C]45[/C][C]116[/C][C]117.630220532520[/C][C]-1.63022053251982[/C][/ROW]
[ROW][C]46[/C][C]120[/C][C]121.703525773451[/C][C]-1.70352577345134[/C][/ROW]
[ROW][C]47[/C][C]117[/C][C]121.182171588748[/C][C]-4.18217158874752[/C][/ROW]
[ROW][C]48[/C][C]109[/C][C]110.142856828880[/C][C]-1.14285682887959[/C][/ROW]
[ROW][C]49[/C][C]105[/C][C]103.586421376308[/C][C]1.41357862369237[/C][/ROW]
[ROW][C]50[/C][C]107[/C][C]104.790119032457[/C][C]2.20988096754298[/C][/ROW]
[ROW][C]51[/C][C]109[/C][C]107.368970757613[/C][C]1.63102924238736[/C][/ROW]
[ROW][C]52[/C][C]109[/C][C]107.696898068731[/C][C]1.30310193126908[/C][/ROW]
[ROW][C]53[/C][C]108[/C][C]105.524209103824[/C][C]2.47579089617570[/C][/ROW]
[ROW][C]54[/C][C]107[/C][C]106.052136414943[/C][C]0.947863585057428[/C][/ROW]
[ROW][C]55[/C][C]99[/C][C]101.228523035999[/C][C]-2.22852303599861[/C][/ROW]
[ROW][C]56[/C][C]103[/C][C]101.227290483949[/C][C]1.77270951605119[/C][/ROW]
[ROW][C]57[/C][C]131[/C][C]134.704293381030[/C][C]-3.70429338102974[/C][/ROW]
[ROW][C]58[/C][C]137[/C][C]137.901828276930[/C][C]-0.90182827693013[/C][/ROW]
[ROW][C]59[/C][C]135[/C][C]134.594281650591[/C][C]0.405718349409481[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68076&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68076&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
1139139.983445260599-0.983445260599118
2135135.932520846562-0.93252084656179
3130133.256750501531-3.25675050153071
4127127.454285397431-0.454285397431072
5122122.654285397431-0.654285397431074
6117119.679131328425-2.67913132842486
7112111.3524365693560.647563430643625
8113113.9785150524-0.978515052399952
9149144.8282069143874.17179308561251
10157155.0319045705371.9680954294631
11157153.4758986342603.52410136574045
12147145.0638949094851.93610509051501
13137136.7559187668510.244081233149242
14132132.704994352813-0.704994352813419
15125129.153453662751-4.15345366275116
16123121.5994478685891.40055213141069
17117117.675218213620-0.675218213620437
18114113.8242937995830.175706200416914
19111107.2491397305773.75086026942314
20112111.6267589036830.373241096317314
21144142.4764507656701.52354923432977
22150149.1770670416950.822932958304861
23149145.8695204153563.13047958464447
24134136.581746345550-2.58174634554986
25123123.89491847776-0.894918477760012
26116118.968223718692-2.96822371869152
27117113.6651423385673.33485766143299
28111113.117299304654-2.11729930465417
29105105.689988269561-0.689988269560793
30102101.8390638555230.160936144476559
319595.2639097865172-0.263909786517211
329396.1384475794985-3.13844757949854
33124124.360828406393-0.360828406392718
34130130.185674337386-0.185674337386484
35124126.878127711047-2.87812771104688
36115113.2115019160861.78849808391442
37106105.7792961184820.220703881517516
38105102.6041420494762.39585795052375
39105102.5556827395382.44431726046151
40101101.132069360595-0.132069360594526
419595.4562990155634-0.456299015563395
429391.6053746015261.39462539847396
438485.905990877551-1.90599087755094
448785.028987980471.97101201952998
45116117.630220532520-1.63022053251982
46120121.703525773451-1.70352577345134
47117121.182171588748-4.18217158874752
48109110.142856828880-1.14285682887959
49105103.5864213763081.41357862369237
50107104.7901190324572.20988096754298
51109107.3689707576131.63102924238736
52109107.6968980687311.30310193126908
53108105.5242091038242.47579089617570
54107106.0521364149430.947863585057428
5599101.228523035999-2.22852303599861
56103101.2272904839491.77270951605119
57131134.704293381030-3.70429338102974
58137137.901828276930-0.90182827693013
59135134.5942816505910.405718349409481







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.1109591512419210.2219183024838420.889040848758079
190.1367608048436200.2735216096872400.86323919515638
200.07110407777593390.1422081555518680.928895922224066
210.1091399500394610.2182799000789220.890860049960539
220.1328749722757920.2657499445515840.867125027724208
230.2562211169785360.5124422339570710.743778883021464
240.4302239698808250.860447939761650.569776030119175
250.3388803298519450.677760659703890.661119670148055
260.3837418522936470.7674837045872940.616258147706353
270.8588138047416920.2823723905166160.141186195258308
280.8647517060656310.2704965878687380.135248293934369
290.8091437502255870.3817124995488250.190856249774413
300.7319172257794010.5361655484411980.268082774220599
310.7603854888325350.479229022334930.239614511167465
320.9115378567551530.1769242864896940.0884621432448469
330.9404335697758670.1191328604482650.0595664302241325
340.9698886043709890.06022279125802240.0301113956290112
350.9646311516640080.0707376966719830.0353688483359915
360.990065057023620.01986988595276170.00993494297638086
370.9772172172518740.04556556549625230.0227827827481262
380.9684926298578460.06301474028430840.0315073701421542
390.9855880944905180.0288238110189650.0144119055094825
400.9858552795602220.02828944087955670.0141447204397784
410.9502182705403480.09956345891930430.0497817294596522

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.110959151241921 & 0.221918302483842 & 0.889040848758079 \tabularnewline
19 & 0.136760804843620 & 0.273521609687240 & 0.86323919515638 \tabularnewline
20 & 0.0711040777759339 & 0.142208155551868 & 0.928895922224066 \tabularnewline
21 & 0.109139950039461 & 0.218279900078922 & 0.890860049960539 \tabularnewline
22 & 0.132874972275792 & 0.265749944551584 & 0.867125027724208 \tabularnewline
23 & 0.256221116978536 & 0.512442233957071 & 0.743778883021464 \tabularnewline
24 & 0.430223969880825 & 0.86044793976165 & 0.569776030119175 \tabularnewline
25 & 0.338880329851945 & 0.67776065970389 & 0.661119670148055 \tabularnewline
26 & 0.383741852293647 & 0.767483704587294 & 0.616258147706353 \tabularnewline
27 & 0.858813804741692 & 0.282372390516616 & 0.141186195258308 \tabularnewline
28 & 0.864751706065631 & 0.270496587868738 & 0.135248293934369 \tabularnewline
29 & 0.809143750225587 & 0.381712499548825 & 0.190856249774413 \tabularnewline
30 & 0.731917225779401 & 0.536165548441198 & 0.268082774220599 \tabularnewline
31 & 0.760385488832535 & 0.47922902233493 & 0.239614511167465 \tabularnewline
32 & 0.911537856755153 & 0.176924286489694 & 0.0884621432448469 \tabularnewline
33 & 0.940433569775867 & 0.119132860448265 & 0.0595664302241325 \tabularnewline
34 & 0.969888604370989 & 0.0602227912580224 & 0.0301113956290112 \tabularnewline
35 & 0.964631151664008 & 0.070737696671983 & 0.0353688483359915 \tabularnewline
36 & 0.99006505702362 & 0.0198698859527617 & 0.00993494297638086 \tabularnewline
37 & 0.977217217251874 & 0.0455655654962523 & 0.0227827827481262 \tabularnewline
38 & 0.968492629857846 & 0.0630147402843084 & 0.0315073701421542 \tabularnewline
39 & 0.985588094490518 & 0.028823811018965 & 0.0144119055094825 \tabularnewline
40 & 0.985855279560222 & 0.0282894408795567 & 0.0141447204397784 \tabularnewline
41 & 0.950218270540348 & 0.0995634589193043 & 0.0497817294596522 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68076&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]18[/C][C]0.110959151241921[/C][C]0.221918302483842[/C][C]0.889040848758079[/C][/ROW]
[ROW][C]19[/C][C]0.136760804843620[/C][C]0.273521609687240[/C][C]0.86323919515638[/C][/ROW]
[ROW][C]20[/C][C]0.0711040777759339[/C][C]0.142208155551868[/C][C]0.928895922224066[/C][/ROW]
[ROW][C]21[/C][C]0.109139950039461[/C][C]0.218279900078922[/C][C]0.890860049960539[/C][/ROW]
[ROW][C]22[/C][C]0.132874972275792[/C][C]0.265749944551584[/C][C]0.867125027724208[/C][/ROW]
[ROW][C]23[/C][C]0.256221116978536[/C][C]0.512442233957071[/C][C]0.743778883021464[/C][/ROW]
[ROW][C]24[/C][C]0.430223969880825[/C][C]0.86044793976165[/C][C]0.569776030119175[/C][/ROW]
[ROW][C]25[/C][C]0.338880329851945[/C][C]0.67776065970389[/C][C]0.661119670148055[/C][/ROW]
[ROW][C]26[/C][C]0.383741852293647[/C][C]0.767483704587294[/C][C]0.616258147706353[/C][/ROW]
[ROW][C]27[/C][C]0.858813804741692[/C][C]0.282372390516616[/C][C]0.141186195258308[/C][/ROW]
[ROW][C]28[/C][C]0.864751706065631[/C][C]0.270496587868738[/C][C]0.135248293934369[/C][/ROW]
[ROW][C]29[/C][C]0.809143750225587[/C][C]0.381712499548825[/C][C]0.190856249774413[/C][/ROW]
[ROW][C]30[/C][C]0.731917225779401[/C][C]0.536165548441198[/C][C]0.268082774220599[/C][/ROW]
[ROW][C]31[/C][C]0.760385488832535[/C][C]0.47922902233493[/C][C]0.239614511167465[/C][/ROW]
[ROW][C]32[/C][C]0.911537856755153[/C][C]0.176924286489694[/C][C]0.0884621432448469[/C][/ROW]
[ROW][C]33[/C][C]0.940433569775867[/C][C]0.119132860448265[/C][C]0.0595664302241325[/C][/ROW]
[ROW][C]34[/C][C]0.969888604370989[/C][C]0.0602227912580224[/C][C]0.0301113956290112[/C][/ROW]
[ROW][C]35[/C][C]0.964631151664008[/C][C]0.070737696671983[/C][C]0.0353688483359915[/C][/ROW]
[ROW][C]36[/C][C]0.99006505702362[/C][C]0.0198698859527617[/C][C]0.00993494297638086[/C][/ROW]
[ROW][C]37[/C][C]0.977217217251874[/C][C]0.0455655654962523[/C][C]0.0227827827481262[/C][/ROW]
[ROW][C]38[/C][C]0.968492629857846[/C][C]0.0630147402843084[/C][C]0.0315073701421542[/C][/ROW]
[ROW][C]39[/C][C]0.985588094490518[/C][C]0.028823811018965[/C][C]0.0144119055094825[/C][/ROW]
[ROW][C]40[/C][C]0.985855279560222[/C][C]0.0282894408795567[/C][C]0.0141447204397784[/C][/ROW]
[ROW][C]41[/C][C]0.950218270540348[/C][C]0.0995634589193043[/C][C]0.0497817294596522[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68076&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68076&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
180.1109591512419210.2219183024838420.889040848758079
190.1367608048436200.2735216096872400.86323919515638
200.07110407777593390.1422081555518680.928895922224066
210.1091399500394610.2182799000789220.890860049960539
220.1328749722757920.2657499445515840.867125027724208
230.2562211169785360.5124422339570710.743778883021464
240.4302239698808250.860447939761650.569776030119175
250.3388803298519450.677760659703890.661119670148055
260.3837418522936470.7674837045872940.616258147706353
270.8588138047416920.2823723905166160.141186195258308
280.8647517060656310.2704965878687380.135248293934369
290.8091437502255870.3817124995488250.190856249774413
300.7319172257794010.5361655484411980.268082774220599
310.7603854888325350.479229022334930.239614511167465
320.9115378567551530.1769242864896940.0884621432448469
330.9404335697758670.1191328604482650.0595664302241325
340.9698886043709890.06022279125802240.0301113956290112
350.9646311516640080.0707376966719830.0353688483359915
360.990065057023620.01986988595276170.00993494297638086
370.9772172172518740.04556556549625230.0227827827481262
380.9684926298578460.06301474028430840.0315073701421542
390.9855880944905180.0288238110189650.0144119055094825
400.9858552795602220.02828944087955670.0141447204397784
410.9502182705403480.09956345891930430.0497817294596522







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.166666666666667NOK
10% type I error level80.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.166666666666667 & NOK \tabularnewline
10% type I error level & 8 & 0.333333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68076&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.166666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]8[/C][C]0.333333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68076&T=6

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



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