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, 26 Nov 2008 11:25:12 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/26/t1227723952ojt12ys9pek2fni.htm/, Retrieved Sat, 18 May 2024 14:12:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25690, Retrieved Sat, 18 May 2024 14:12:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsMLR
Estimated Impact210
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Multiple Regression] [MLR] [2008-11-26 18:25:12] [962e6c9020896982bc8283b8971710a9] [Current]
- R P     [Multiple Regression] [Multiple Lineair ...] [2008-12-16 16:18:01] [3ffd109c9e040b1ae7e5dbe576d4698c]
-   P       [Multiple Regression] [multiple lineair ...] [2008-12-17 09:54:45] [3ffd109c9e040b1ae7e5dbe576d4698c]
-   P       [Multiple Regression] [Mutliple lineair ...] [2008-12-17 10:07:11] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D        [Multiple Regression] [multiple lineair ...] [2008-12-22 16:07:08] [3ffd109c9e040b1ae7e5dbe576d4698c]
-               [Multiple Regression] [met monthly dummi...] [2008-12-24 11:58:38] [b28ef2aea2cd58ceb5ad90223572c703]
-    D      [Multiple Regression] [] [2008-12-17 10:49:06] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D        [Multiple Regression] [multiple lineair ...] [2008-12-22 16:12:14] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D          [Multiple Regression] [multiple lineair ...] [2008-12-22 16:20:36] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D      [Multiple Regression] [multiple lineair ...] [2008-12-22 16:00:49] [3ffd109c9e040b1ae7e5dbe576d4698c]
-             [Multiple Regression] [monthly dummies e...] [2008-12-24 11:55:22] [b28ef2aea2cd58ceb5ad90223572c703]
Feedback Forum
2008-11-29 16:22:43 [Natalie De Wilde] [reply
Goed
De residuals hebben een duidelijk golvende trend, dit wijst erop dat het nog niet volledig correct is, dat er een aantal variabelen nog niet in rekening zijn gebracht. Aan de meeste grafieken zien we wel dat het model nog niet helemaal correct is en dat er nog verbeteringen nodig zijn.

Post a new message
Dataseries X:
147768	0
137507	0
136919	0
136151	0
133001	0
125554	0
119647	0
114158	0
116193	0
152803	0
161761	0
160942	0
149470	0
139208	0
134588	0
130322	0
126611	0
122401	0
117352	0
112135	0
112879	0
148729	0
157230	0
157221	0
146681	0
136524	0
132111	1
125326	1
122716	1
116615	1
113719	1
110737	1
112093	1
143565	1
149946	1
149147	1
134339	1
122683	1
115614	1
116566	1
111272	1
104609	1
101802	1
94542	1
93051	1
124129	1
130374	1
123946	1
114971	1
105531	1
104919	0
104782	0
101281	0
94545	0
93248	0
84031	0
87486	0
115867	0
120327	0
117008	0
108811	0




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
jonger_dan_25[t] = + 167547.677641278 + 3044.85012285012plan[t] -11542.1457821457M1[t] -20893.5382473383M2[t] -23600.8044226044M3[t] -25048.4705978706M4[t] -27948.5367731368M5[t] -33426.8029484030M6[t] -36264.8691236691M7[t] -41544.7352989353M8[t] -39571.8014742015M9[t] -6140.46764946765M10[t] + 1521.66617526617M11[t] -753.133824733826t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
jonger_dan_25[t] =  +  167547.677641278 +  3044.85012285012plan[t] -11542.1457821457M1[t] -20893.5382473383M2[t] -23600.8044226044M3[t] -25048.4705978706M4[t] -27948.5367731368M5[t] -33426.8029484030M6[t] -36264.8691236691M7[t] -41544.7352989353M8[t] -39571.8014742015M9[t] -6140.46764946765M10[t] +  1521.66617526617M11[t] -753.133824733826t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25690&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]jonger_dan_25[t] =  +  167547.677641278 +  3044.85012285012plan[t] -11542.1457821457M1[t] -20893.5382473383M2[t] -23600.8044226044M3[t] -25048.4705978706M4[t] -27948.5367731368M5[t] -33426.8029484030M6[t] -36264.8691236691M7[t] -41544.7352989353M8[t] -39571.8014742015M9[t] -6140.46764946765M10[t] +  1521.66617526617M11[t] -753.133824733826t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25690&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25690&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
jonger_dan_25[t] = + 167547.677641278 + 3044.85012285012plan[t] -11542.1457821457M1[t] -20893.5382473383M2[t] -23600.8044226044M3[t] -25048.4705978706M4[t] -27948.5367731368M5[t] -33426.8029484030M6[t] -36264.8691236691M7[t] -41544.7352989353M8[t] -39571.8014742015M9[t] -6140.46764946765M10[t] + 1521.66617526617M11[t] -753.133824733826t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)167547.6776412782597.09957664.513400
plan3044.850122850121396.7635742.17990.0343060.017153
M1-11542.14578214573027.959204-3.81194e-042e-04
M2-20893.53824733833181.007092-6.568200
M3-23600.80442260443176.391658-7.430100
M4-25048.47059787063172.256368-7.896100
M5-27948.53677313683168.6031-8.820500
M6-33426.80294840303165.433524-10.559900
M7-36264.86912366913162.749095-11.466200
M8-41544.73529893533160.551047-13.144800
M9-39571.80147420153158.840397-12.527300
M10-6140.467649467653157.617937-1.94470.0578150.028907
M111521.666175266173156.8842340.4820.6320320.316016
t-753.13382473382639.297885-19.164700

\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) & 167547.677641278 & 2597.099576 & 64.5134 & 0 & 0 \tabularnewline
plan & 3044.85012285012 & 1396.763574 & 2.1799 & 0.034306 & 0.017153 \tabularnewline
M1 & -11542.1457821457 & 3027.959204 & -3.8119 & 4e-04 & 2e-04 \tabularnewline
M2 & -20893.5382473383 & 3181.007092 & -6.5682 & 0 & 0 \tabularnewline
M3 & -23600.8044226044 & 3176.391658 & -7.4301 & 0 & 0 \tabularnewline
M4 & -25048.4705978706 & 3172.256368 & -7.8961 & 0 & 0 \tabularnewline
M5 & -27948.5367731368 & 3168.6031 & -8.8205 & 0 & 0 \tabularnewline
M6 & -33426.8029484030 & 3165.433524 & -10.5599 & 0 & 0 \tabularnewline
M7 & -36264.8691236691 & 3162.749095 & -11.4662 & 0 & 0 \tabularnewline
M8 & -41544.7352989353 & 3160.551047 & -13.1448 & 0 & 0 \tabularnewline
M9 & -39571.8014742015 & 3158.840397 & -12.5273 & 0 & 0 \tabularnewline
M10 & -6140.46764946765 & 3157.617937 & -1.9447 & 0.057815 & 0.028907 \tabularnewline
M11 & 1521.66617526617 & 3156.884234 & 0.482 & 0.632032 & 0.316016 \tabularnewline
t & -753.133824733826 & 39.297885 & -19.1647 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25690&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]167547.677641278[/C][C]2597.099576[/C][C]64.5134[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]plan[/C][C]3044.85012285012[/C][C]1396.763574[/C][C]2.1799[/C][C]0.034306[/C][C]0.017153[/C][/ROW]
[ROW][C]M1[/C][C]-11542.1457821457[/C][C]3027.959204[/C][C]-3.8119[/C][C]4e-04[/C][C]2e-04[/C][/ROW]
[ROW][C]M2[/C][C]-20893.5382473383[/C][C]3181.007092[/C][C]-6.5682[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-23600.8044226044[/C][C]3176.391658[/C][C]-7.4301[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-25048.4705978706[/C][C]3172.256368[/C][C]-7.8961[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-27948.5367731368[/C][C]3168.6031[/C][C]-8.8205[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-33426.8029484030[/C][C]3165.433524[/C][C]-10.5599[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-36264.8691236691[/C][C]3162.749095[/C][C]-11.4662[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-41544.7352989353[/C][C]3160.551047[/C][C]-13.1448[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-39571.8014742015[/C][C]3158.840397[/C][C]-12.5273[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-6140.46764946765[/C][C]3157.617937[/C][C]-1.9447[/C][C]0.057815[/C][C]0.028907[/C][/ROW]
[ROW][C]M11[/C][C]1521.66617526617[/C][C]3156.884234[/C][C]0.482[/C][C]0.632032[/C][C]0.316016[/C][/ROW]
[ROW][C]t[/C][C]-753.133824733826[/C][C]39.297885[/C][C]-19.1647[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25690&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25690&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)167547.6776412782597.09957664.513400
plan3044.850122850121396.7635742.17990.0343060.017153
M1-11542.14578214573027.959204-3.81194e-042e-04
M2-20893.53824733833181.007092-6.568200
M3-23600.80442260443176.391658-7.430100
M4-25048.47059787063172.256368-7.896100
M5-27948.53677313683168.6031-8.820500
M6-33426.80294840303165.433524-10.559900
M7-36264.86912366913162.749095-11.466200
M8-41544.73529893533160.551047-13.144800
M9-39571.80147420153158.840397-12.527300
M10-6140.467649467653157.617937-1.94470.0578150.028907
M111521.666175266173156.8842340.4820.6320320.316016
t-753.13382473382639.297885-19.164700







Multiple Linear Regression - Regression Statistics
Multiple R0.972916930982472
R-squared0.946567354592352
Adjusted R-squared0.931788112245556
F-TEST (value)64.0470825486901
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4991.08548841622
Sum Squared Residuals1170813914.57591

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.972916930982472 \tabularnewline
R-squared & 0.946567354592352 \tabularnewline
Adjusted R-squared & 0.931788112245556 \tabularnewline
F-TEST (value) & 64.0470825486901 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4991.08548841622 \tabularnewline
Sum Squared Residuals & 1170813914.57591 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25690&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.972916930982472[/C][/ROW]
[ROW][C]R-squared[/C][C]0.946567354592352[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.931788112245556[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]64.0470825486901[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4991.08548841622[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1170813914.57591[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25690&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25690&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.972916930982472
R-squared0.946567354592352
Adjusted R-squared0.931788112245556
F-TEST (value)64.0470825486901
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4991.08548841622
Sum Squared Residuals1170813914.57591







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768155252.398034398-7484.39803439766
2137507145147.871744472-7640.87174447174
3136919141687.471744472-4768.47174447178
4136151139486.671744472-3335.67174447176
5133001135833.471744472-2832.47174447177
6125554129602.071744472-4048.0717444718
7119647126010.871744472-6363.8717444717
8114158119977.871744472-5819.87174447178
9116193121197.671744472-5004.67174447175
10152803153875.871744472-1072.87174447176
11161761160784.871744472976.128255528244
12160942158510.0717444722431.92825552822
13149470146214.7921375923255.20786240776
14139208136110.2658476663097.73415233414
15134588132649.8658476661938.13415233414
16130322130449.065847666-127.06584766586
17126611126795.865847666-184.865847665857
18122401120564.4658476661836.53415233415
19117352116973.265847666378.734152334127
20112135110940.2658476661194.73415233415
21112879112160.065847666718.934152334142
22148729144838.2658476663890.73415233414
23157230151747.2658476665482.73415233414
24157221149472.4658476667748.53415233414
25146681137177.1862407869503.81375921367
26136524127072.659950869451.34004914004
27132111126657.110073715453.88992628993
28125326124456.31007371869.689926289923
29122716120803.110073711912.88992628993
30116615114571.710073712043.28992628994
31113719110980.510073712738.48992628991
32110737104947.510073715789.48992628993
33112093106167.310073715925.68992628993
34143565138845.510073714719.48992628993
35149946145754.510073714191.48992628993
36149147143479.710073715667.28992628993
37134339131184.4304668313154.56953316946
38122683121079.9041769041603.09582309583
39115614117619.504176904-2005.50417690416
40116566115418.7041769041147.29582309583
41111272111765.504176904-493.504176904163
42104609105534.104176904-925.104176904158
43101802101942.904176904-140.904176904178
449454295909.9041769042-1367.90417690416
459305197129.7041769042-4078.70417690417
46124129129807.904176904-5678.90417690417
47130374136716.904176904-6342.90417690417
48123946134442.104176904-10496.1041769042
49114971122146.824570025-7175.82457002464
50105531112042.298280098-6511.29828009826
51104919105537.048157248-618.04815724813
52104782103336.2481572481445.75184275186
5310128199683.04815724811597.95184275186
549454593451.64815724811093.35184275187
559324889860.44815724813387.55184275185
568403183827.4481572481203.551842751858
578748685047.24815724812438.75184275185
58115867117725.448157248-1858.44815724815
59120327124634.448157248-4307.44815724814
60117008122359.648157248-5351.64815724814
61108811110064.368550369-1253.36855036860

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 155252.398034398 & -7484.39803439766 \tabularnewline
2 & 137507 & 145147.871744472 & -7640.87174447174 \tabularnewline
3 & 136919 & 141687.471744472 & -4768.47174447178 \tabularnewline
4 & 136151 & 139486.671744472 & -3335.67174447176 \tabularnewline
5 & 133001 & 135833.471744472 & -2832.47174447177 \tabularnewline
6 & 125554 & 129602.071744472 & -4048.0717444718 \tabularnewline
7 & 119647 & 126010.871744472 & -6363.8717444717 \tabularnewline
8 & 114158 & 119977.871744472 & -5819.87174447178 \tabularnewline
9 & 116193 & 121197.671744472 & -5004.67174447175 \tabularnewline
10 & 152803 & 153875.871744472 & -1072.87174447176 \tabularnewline
11 & 161761 & 160784.871744472 & 976.128255528244 \tabularnewline
12 & 160942 & 158510.071744472 & 2431.92825552822 \tabularnewline
13 & 149470 & 146214.792137592 & 3255.20786240776 \tabularnewline
14 & 139208 & 136110.265847666 & 3097.73415233414 \tabularnewline
15 & 134588 & 132649.865847666 & 1938.13415233414 \tabularnewline
16 & 130322 & 130449.065847666 & -127.06584766586 \tabularnewline
17 & 126611 & 126795.865847666 & -184.865847665857 \tabularnewline
18 & 122401 & 120564.465847666 & 1836.53415233415 \tabularnewline
19 & 117352 & 116973.265847666 & 378.734152334127 \tabularnewline
20 & 112135 & 110940.265847666 & 1194.73415233415 \tabularnewline
21 & 112879 & 112160.065847666 & 718.934152334142 \tabularnewline
22 & 148729 & 144838.265847666 & 3890.73415233414 \tabularnewline
23 & 157230 & 151747.265847666 & 5482.73415233414 \tabularnewline
24 & 157221 & 149472.465847666 & 7748.53415233414 \tabularnewline
25 & 146681 & 137177.186240786 & 9503.81375921367 \tabularnewline
26 & 136524 & 127072.65995086 & 9451.34004914004 \tabularnewline
27 & 132111 & 126657.11007371 & 5453.88992628993 \tabularnewline
28 & 125326 & 124456.31007371 & 869.689926289923 \tabularnewline
29 & 122716 & 120803.11007371 & 1912.88992628993 \tabularnewline
30 & 116615 & 114571.71007371 & 2043.28992628994 \tabularnewline
31 & 113719 & 110980.51007371 & 2738.48992628991 \tabularnewline
32 & 110737 & 104947.51007371 & 5789.48992628993 \tabularnewline
33 & 112093 & 106167.31007371 & 5925.68992628993 \tabularnewline
34 & 143565 & 138845.51007371 & 4719.48992628993 \tabularnewline
35 & 149946 & 145754.51007371 & 4191.48992628993 \tabularnewline
36 & 149147 & 143479.71007371 & 5667.28992628993 \tabularnewline
37 & 134339 & 131184.430466831 & 3154.56953316946 \tabularnewline
38 & 122683 & 121079.904176904 & 1603.09582309583 \tabularnewline
39 & 115614 & 117619.504176904 & -2005.50417690416 \tabularnewline
40 & 116566 & 115418.704176904 & 1147.29582309583 \tabularnewline
41 & 111272 & 111765.504176904 & -493.504176904163 \tabularnewline
42 & 104609 & 105534.104176904 & -925.104176904158 \tabularnewline
43 & 101802 & 101942.904176904 & -140.904176904178 \tabularnewline
44 & 94542 & 95909.9041769042 & -1367.90417690416 \tabularnewline
45 & 93051 & 97129.7041769042 & -4078.70417690417 \tabularnewline
46 & 124129 & 129807.904176904 & -5678.90417690417 \tabularnewline
47 & 130374 & 136716.904176904 & -6342.90417690417 \tabularnewline
48 & 123946 & 134442.104176904 & -10496.1041769042 \tabularnewline
49 & 114971 & 122146.824570025 & -7175.82457002464 \tabularnewline
50 & 105531 & 112042.298280098 & -6511.29828009826 \tabularnewline
51 & 104919 & 105537.048157248 & -618.04815724813 \tabularnewline
52 & 104782 & 103336.248157248 & 1445.75184275186 \tabularnewline
53 & 101281 & 99683.0481572481 & 1597.95184275186 \tabularnewline
54 & 94545 & 93451.6481572481 & 1093.35184275187 \tabularnewline
55 & 93248 & 89860.4481572481 & 3387.55184275185 \tabularnewline
56 & 84031 & 83827.4481572481 & 203.551842751858 \tabularnewline
57 & 87486 & 85047.2481572481 & 2438.75184275185 \tabularnewline
58 & 115867 & 117725.448157248 & -1858.44815724815 \tabularnewline
59 & 120327 & 124634.448157248 & -4307.44815724814 \tabularnewline
60 & 117008 & 122359.648157248 & -5351.64815724814 \tabularnewline
61 & 108811 & 110064.368550369 & -1253.36855036860 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25690&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]147768[/C][C]155252.398034398[/C][C]-7484.39803439766[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]145147.871744472[/C][C]-7640.87174447174[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]141687.471744472[/C][C]-4768.47174447178[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]139486.671744472[/C][C]-3335.67174447176[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]135833.471744472[/C][C]-2832.47174447177[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]129602.071744472[/C][C]-4048.0717444718[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]126010.871744472[/C][C]-6363.8717444717[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]119977.871744472[/C][C]-5819.87174447178[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]121197.671744472[/C][C]-5004.67174447175[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]153875.871744472[/C][C]-1072.87174447176[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]160784.871744472[/C][C]976.128255528244[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]158510.071744472[/C][C]2431.92825552822[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]146214.792137592[/C][C]3255.20786240776[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]136110.265847666[/C][C]3097.73415233414[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]132649.865847666[/C][C]1938.13415233414[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]130449.065847666[/C][C]-127.06584766586[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]126795.865847666[/C][C]-184.865847665857[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]120564.465847666[/C][C]1836.53415233415[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]116973.265847666[/C][C]378.734152334127[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]110940.265847666[/C][C]1194.73415233415[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]112160.065847666[/C][C]718.934152334142[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]144838.265847666[/C][C]3890.73415233414[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]151747.265847666[/C][C]5482.73415233414[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]149472.465847666[/C][C]7748.53415233414[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]137177.186240786[/C][C]9503.81375921367[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]127072.65995086[/C][C]9451.34004914004[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]126657.11007371[/C][C]5453.88992628993[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]124456.31007371[/C][C]869.689926289923[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]120803.11007371[/C][C]1912.88992628993[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]114571.71007371[/C][C]2043.28992628994[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]110980.51007371[/C][C]2738.48992628991[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]104947.51007371[/C][C]5789.48992628993[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]106167.31007371[/C][C]5925.68992628993[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]138845.51007371[/C][C]4719.48992628993[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]145754.51007371[/C][C]4191.48992628993[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]143479.71007371[/C][C]5667.28992628993[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]131184.430466831[/C][C]3154.56953316946[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]121079.904176904[/C][C]1603.09582309583[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]117619.504176904[/C][C]-2005.50417690416[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]115418.704176904[/C][C]1147.29582309583[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]111765.504176904[/C][C]-493.504176904163[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]105534.104176904[/C][C]-925.104176904158[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]101942.904176904[/C][C]-140.904176904178[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]95909.9041769042[/C][C]-1367.90417690416[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]97129.7041769042[/C][C]-4078.70417690417[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]129807.904176904[/C][C]-5678.90417690417[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]136716.904176904[/C][C]-6342.90417690417[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]134442.104176904[/C][C]-10496.1041769042[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]122146.824570025[/C][C]-7175.82457002464[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]112042.298280098[/C][C]-6511.29828009826[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]105537.048157248[/C][C]-618.04815724813[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]103336.248157248[/C][C]1445.75184275186[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]99683.0481572481[/C][C]1597.95184275186[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]93451.6481572481[/C][C]1093.35184275187[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]89860.4481572481[/C][C]3387.55184275185[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]83827.4481572481[/C][C]203.551842751858[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]85047.2481572481[/C][C]2438.75184275185[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]117725.448157248[/C][C]-1858.44815724815[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]124634.448157248[/C][C]-4307.44815724814[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]122359.648157248[/C][C]-5351.64815724814[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]110064.368550369[/C][C]-1253.36855036860[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25690&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25690&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
1147768155252.398034398-7484.39803439766
2137507145147.871744472-7640.87174447174
3136919141687.471744472-4768.47174447178
4136151139486.671744472-3335.67174447176
5133001135833.471744472-2832.47174447177
6125554129602.071744472-4048.0717444718
7119647126010.871744472-6363.8717444717
8114158119977.871744472-5819.87174447178
9116193121197.671744472-5004.67174447175
10152803153875.871744472-1072.87174447176
11161761160784.871744472976.128255528244
12160942158510.0717444722431.92825552822
13149470146214.7921375923255.20786240776
14139208136110.2658476663097.73415233414
15134588132649.8658476661938.13415233414
16130322130449.065847666-127.06584766586
17126611126795.865847666-184.865847665857
18122401120564.4658476661836.53415233415
19117352116973.265847666378.734152334127
20112135110940.2658476661194.73415233415
21112879112160.065847666718.934152334142
22148729144838.2658476663890.73415233414
23157230151747.2658476665482.73415233414
24157221149472.4658476667748.53415233414
25146681137177.1862407869503.81375921367
26136524127072.659950869451.34004914004
27132111126657.110073715453.88992628993
28125326124456.31007371869.689926289923
29122716120803.110073711912.88992628993
30116615114571.710073712043.28992628994
31113719110980.510073712738.48992628991
32110737104947.510073715789.48992628993
33112093106167.310073715925.68992628993
34143565138845.510073714719.48992628993
35149946145754.510073714191.48992628993
36149147143479.710073715667.28992628993
37134339131184.4304668313154.56953316946
38122683121079.9041769041603.09582309583
39115614117619.504176904-2005.50417690416
40116566115418.7041769041147.29582309583
41111272111765.504176904-493.504176904163
42104609105534.104176904-925.104176904158
43101802101942.904176904-140.904176904178
449454295909.9041769042-1367.90417690416
459305197129.7041769042-4078.70417690417
46124129129807.904176904-5678.90417690417
47130374136716.904176904-6342.90417690417
48123946134442.104176904-10496.1041769042
49114971122146.824570025-7175.82457002464
50105531112042.298280098-6511.29828009826
51104919105537.048157248-618.04815724813
52104782103336.2481572481445.75184275186
5310128199683.04815724811597.95184275186
549454593451.64815724811093.35184275187
559324889860.44815724813387.55184275185
568403183827.4481572481203.551842751858
578748685047.24815724812438.75184275185
58115867117725.448157248-1858.44815724815
59120327124634.448157248-4307.44815724814
60117008122359.648157248-5351.64815724814
61108811110064.368550369-1253.36855036860







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3919642781923480.7839285563846950.608035721807652
180.247916158836840.495832317673680.75208384116316
190.1738045351952910.3476090703905820.826195464804709
200.1314525612297530.2629051224595050.868547438770247
210.1467875796198120.2935751592396240.853212420380188
220.1356753615311100.2713507230622200.86432463846889
230.1218944146225210.2437888292450420.878105585377479
240.08307395494357250.1661479098871450.916926045056428
250.07985658065826540.1597131613165310.920143419341735
260.1030837295618330.2061674591236660.896916270438167
270.06339331825983890.1267866365196780.936606681740161
280.1276887719325740.2553775438651470.872311228067426
290.1505654420207360.3011308840414720.849434557979264
300.1970841887640350.394168377528070.802915811235965
310.495203354113820.990406708227640.50479664588618
320.571860097787430.856279804425140.42813990221257
330.6073348054678660.7853303890642670.392665194532133
340.5471202536058510.9057594927882990.452879746394149
350.5572255472316980.8855489055366040.442774452768302
360.8933623782830610.2132752434338790.106637621716939
370.920176268938060.159647462123880.07982373106194
380.9329037390652330.1341925218695330.0670962609347665
390.9736177486284620.05276450274307630.0263822513715381
400.9802376354219830.0395247291560340.019762364578017
410.9729546285396880.05409074292062430.0270453714603121
420.9632438979594470.07351220408110520.0367561020405526
430.9176282223717830.1647435552564340.0823717776282168
440.9102242595372020.1795514809255960.0897757404627982

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.391964278192348 & 0.783928556384695 & 0.608035721807652 \tabularnewline
18 & 0.24791615883684 & 0.49583231767368 & 0.75208384116316 \tabularnewline
19 & 0.173804535195291 & 0.347609070390582 & 0.826195464804709 \tabularnewline
20 & 0.131452561229753 & 0.262905122459505 & 0.868547438770247 \tabularnewline
21 & 0.146787579619812 & 0.293575159239624 & 0.853212420380188 \tabularnewline
22 & 0.135675361531110 & 0.271350723062220 & 0.86432463846889 \tabularnewline
23 & 0.121894414622521 & 0.243788829245042 & 0.878105585377479 \tabularnewline
24 & 0.0830739549435725 & 0.166147909887145 & 0.916926045056428 \tabularnewline
25 & 0.0798565806582654 & 0.159713161316531 & 0.920143419341735 \tabularnewline
26 & 0.103083729561833 & 0.206167459123666 & 0.896916270438167 \tabularnewline
27 & 0.0633933182598389 & 0.126786636519678 & 0.936606681740161 \tabularnewline
28 & 0.127688771932574 & 0.255377543865147 & 0.872311228067426 \tabularnewline
29 & 0.150565442020736 & 0.301130884041472 & 0.849434557979264 \tabularnewline
30 & 0.197084188764035 & 0.39416837752807 & 0.802915811235965 \tabularnewline
31 & 0.49520335411382 & 0.99040670822764 & 0.50479664588618 \tabularnewline
32 & 0.57186009778743 & 0.85627980442514 & 0.42813990221257 \tabularnewline
33 & 0.607334805467866 & 0.785330389064267 & 0.392665194532133 \tabularnewline
34 & 0.547120253605851 & 0.905759492788299 & 0.452879746394149 \tabularnewline
35 & 0.557225547231698 & 0.885548905536604 & 0.442774452768302 \tabularnewline
36 & 0.893362378283061 & 0.213275243433879 & 0.106637621716939 \tabularnewline
37 & 0.92017626893806 & 0.15964746212388 & 0.07982373106194 \tabularnewline
38 & 0.932903739065233 & 0.134192521869533 & 0.0670962609347665 \tabularnewline
39 & 0.973617748628462 & 0.0527645027430763 & 0.0263822513715381 \tabularnewline
40 & 0.980237635421983 & 0.039524729156034 & 0.019762364578017 \tabularnewline
41 & 0.972954628539688 & 0.0540907429206243 & 0.0270453714603121 \tabularnewline
42 & 0.963243897959447 & 0.0735122040811052 & 0.0367561020405526 \tabularnewline
43 & 0.917628222371783 & 0.164743555256434 & 0.0823717776282168 \tabularnewline
44 & 0.910224259537202 & 0.179551480925596 & 0.0897757404627982 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25690&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.391964278192348[/C][C]0.783928556384695[/C][C]0.608035721807652[/C][/ROW]
[ROW][C]18[/C][C]0.24791615883684[/C][C]0.49583231767368[/C][C]0.75208384116316[/C][/ROW]
[ROW][C]19[/C][C]0.173804535195291[/C][C]0.347609070390582[/C][C]0.826195464804709[/C][/ROW]
[ROW][C]20[/C][C]0.131452561229753[/C][C]0.262905122459505[/C][C]0.868547438770247[/C][/ROW]
[ROW][C]21[/C][C]0.146787579619812[/C][C]0.293575159239624[/C][C]0.853212420380188[/C][/ROW]
[ROW][C]22[/C][C]0.135675361531110[/C][C]0.271350723062220[/C][C]0.86432463846889[/C][/ROW]
[ROW][C]23[/C][C]0.121894414622521[/C][C]0.243788829245042[/C][C]0.878105585377479[/C][/ROW]
[ROW][C]24[/C][C]0.0830739549435725[/C][C]0.166147909887145[/C][C]0.916926045056428[/C][/ROW]
[ROW][C]25[/C][C]0.0798565806582654[/C][C]0.159713161316531[/C][C]0.920143419341735[/C][/ROW]
[ROW][C]26[/C][C]0.103083729561833[/C][C]0.206167459123666[/C][C]0.896916270438167[/C][/ROW]
[ROW][C]27[/C][C]0.0633933182598389[/C][C]0.126786636519678[/C][C]0.936606681740161[/C][/ROW]
[ROW][C]28[/C][C]0.127688771932574[/C][C]0.255377543865147[/C][C]0.872311228067426[/C][/ROW]
[ROW][C]29[/C][C]0.150565442020736[/C][C]0.301130884041472[/C][C]0.849434557979264[/C][/ROW]
[ROW][C]30[/C][C]0.197084188764035[/C][C]0.39416837752807[/C][C]0.802915811235965[/C][/ROW]
[ROW][C]31[/C][C]0.49520335411382[/C][C]0.99040670822764[/C][C]0.50479664588618[/C][/ROW]
[ROW][C]32[/C][C]0.57186009778743[/C][C]0.85627980442514[/C][C]0.42813990221257[/C][/ROW]
[ROW][C]33[/C][C]0.607334805467866[/C][C]0.785330389064267[/C][C]0.392665194532133[/C][/ROW]
[ROW][C]34[/C][C]0.547120253605851[/C][C]0.905759492788299[/C][C]0.452879746394149[/C][/ROW]
[ROW][C]35[/C][C]0.557225547231698[/C][C]0.885548905536604[/C][C]0.442774452768302[/C][/ROW]
[ROW][C]36[/C][C]0.893362378283061[/C][C]0.213275243433879[/C][C]0.106637621716939[/C][/ROW]
[ROW][C]37[/C][C]0.92017626893806[/C][C]0.15964746212388[/C][C]0.07982373106194[/C][/ROW]
[ROW][C]38[/C][C]0.932903739065233[/C][C]0.134192521869533[/C][C]0.0670962609347665[/C][/ROW]
[ROW][C]39[/C][C]0.973617748628462[/C][C]0.0527645027430763[/C][C]0.0263822513715381[/C][/ROW]
[ROW][C]40[/C][C]0.980237635421983[/C][C]0.039524729156034[/C][C]0.019762364578017[/C][/ROW]
[ROW][C]41[/C][C]0.972954628539688[/C][C]0.0540907429206243[/C][C]0.0270453714603121[/C][/ROW]
[ROW][C]42[/C][C]0.963243897959447[/C][C]0.0735122040811052[/C][C]0.0367561020405526[/C][/ROW]
[ROW][C]43[/C][C]0.917628222371783[/C][C]0.164743555256434[/C][C]0.0823717776282168[/C][/ROW]
[ROW][C]44[/C][C]0.910224259537202[/C][C]0.179551480925596[/C][C]0.0897757404627982[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25690&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25690&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.3919642781923480.7839285563846950.608035721807652
180.247916158836840.495832317673680.75208384116316
190.1738045351952910.3476090703905820.826195464804709
200.1314525612297530.2629051224595050.868547438770247
210.1467875796198120.2935751592396240.853212420380188
220.1356753615311100.2713507230622200.86432463846889
230.1218944146225210.2437888292450420.878105585377479
240.08307395494357250.1661479098871450.916926045056428
250.07985658065826540.1597131613165310.920143419341735
260.1030837295618330.2061674591236660.896916270438167
270.06339331825983890.1267866365196780.936606681740161
280.1276887719325740.2553775438651470.872311228067426
290.1505654420207360.3011308840414720.849434557979264
300.1970841887640350.394168377528070.802915811235965
310.495203354113820.990406708227640.50479664588618
320.571860097787430.856279804425140.42813990221257
330.6073348054678660.7853303890642670.392665194532133
340.5471202536058510.9057594927882990.452879746394149
350.5572255472316980.8855489055366040.442774452768302
360.8933623782830610.2132752434338790.106637621716939
370.920176268938060.159647462123880.07982373106194
380.9329037390652330.1341925218695330.0670962609347665
390.9736177486284620.05276450274307630.0263822513715381
400.9802376354219830.0395247291560340.019762364578017
410.9729546285396880.05409074292062430.0270453714603121
420.9632438979594470.07351220408110520.0367561020405526
430.9176282223717830.1647435552564340.0823717776282168
440.9102242595372020.1795514809255960.0897757404627982







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25690&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 level10.0357142857142857OK
10% type I error level40.142857142857143NOK



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