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 computationThu, 17 Dec 2009 07:07:10 -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/17/t1261058903bgkil45jk108ut9.htm/, Retrieved Tue, 30 Apr 2024 02:43:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68900, Retrieved Tue, 30 Apr 2024 02:43:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact143
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]
-    D    [Multiple Regression] [] [2009-11-18 16:22:43] [90f6d58d515a4caed6fb4b8be4e11eaa]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-12-17 13:47:34] [90f6d58d515a4caed6fb4b8be4e11eaa]
-   PD          [Multiple Regression] [Multiple Regressi...] [2009-12-17 14:07:10] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
-   P             [Multiple Regression] [Multiple Regressi...] [2009-12-19 13:47:18] [90f6d58d515a4caed6fb4b8be4e11eaa]
Feedback Forum

Post a new message
Dataseries X:
9.3	4
9.3	3.8
8.7	4.7
8.2	4.3
8.3	3.9
8.5	4
8.6	4.3
8.5	4.8
8.2	4.4
8.1	4.3
7.9	4.7
8.6	4.7
8.7	4.9
8.7	5
8.5	4.2
8.4	4.3
8.5	4.8
8.7	4.8
8.7	4.8
8.6	4.2
8.5	4.6
8.3	4.8
8	4.5
8.2	4.4
8.1	4.3
8.1	3.9
8	3.7
7.9	4
7.9	4.1
8	3.7
8	3.8
7.9	3.8
8	3.8
7.7	3.3
7.2	3.3
7.5	3.3
7.3	3.2
7	3.4
7	4.2
7	4.9
7.2	5.1
7.3	5.5
7.1	5.6
6.8	6.4
6.4	6.1
6.1	7.1
6.5	7.8
7.7	7.9
7.9	7.4
7.5	7.5
6.9	6.8
6.6	5.2
6.9	4.7
7.7	4.1
8	3.9
8	2.6
7.7	2.7
7.3	1.8
7.4	1
8.1	0.3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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
werklh[t] = + 9.65369544559226 -0.140310005125642inflatie[t] + 0.00724839024648894M1[t] -0.109041281500898M2[t] -0.379718553043269M3[t] -0.575651625508257M4[t] -0.409135097153141M5[t] -0.113843369208077M6[t] -0.0361020404429104M7[t] -0.143616512600359M8[t] -0.319906184347756M9[t] -0.559002056197666M10[t] -0.629679327740038M11[t] -0.0293227284576283t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werklh[t] =  +  9.65369544559226 -0.140310005125642inflatie[t] +  0.00724839024648894M1[t] -0.109041281500898M2[t] -0.379718553043269M3[t] -0.575651625508257M4[t] -0.409135097153141M5[t] -0.113843369208077M6[t] -0.0361020404429104M7[t] -0.143616512600359M8[t] -0.319906184347756M9[t] -0.559002056197666M10[t] -0.629679327740038M11[t] -0.0293227284576283t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68900&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werklh[t] =  +  9.65369544559226 -0.140310005125642inflatie[t] +  0.00724839024648894M1[t] -0.109041281500898M2[t] -0.379718553043269M3[t] -0.575651625508257M4[t] -0.409135097153141M5[t] -0.113843369208077M6[t] -0.0361020404429104M7[t] -0.143616512600359M8[t] -0.319906184347756M9[t] -0.559002056197666M10[t] -0.629679327740038M11[t] -0.0293227284576283t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68900&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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
werklh[t] = + 9.65369544559226 -0.140310005125642inflatie[t] + 0.00724839024648894M1[t] -0.109041281500898M2[t] -0.379718553043269M3[t] -0.575651625508257M4[t] -0.409135097153141M5[t] -0.113843369208077M6[t] -0.0361020404429104M7[t] -0.143616512600359M8[t] -0.319906184347756M9[t] -0.559002056197666M10[t] -0.629679327740038M11[t] -0.0293227284576283t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.653695445592260.27124835.5900
inflatie-0.1403100051256420.039035-3.59450.0007890.000395
M10.007248390246488940.2705190.02680.978740.48937
M2-0.1090412815008980.269961-0.40390.6881470.344074
M3-0.3797185530432690.269588-1.40850.1657030.082851
M4-0.5756516255082570.26871-2.14230.0374970.018749
M5-0.4091350971531410.268366-1.52450.134220.06711
M6-0.1138433692080770.267901-0.42490.6728570.336429
M7-0.03610204044291040.267801-0.13480.8933510.446676
M8-0.1436165126003590.267409-0.53710.593810.296905
M9-0.3199061843477560.267218-1.19720.2373730.118686
M10-0.5590020561976660.267058-2.09320.0418750.020938
M11-0.6296793277400380.266998-2.35840.0226610.011331
t-0.02932272845762830.003212-9.127800

\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.65369544559226 & 0.271248 & 35.59 & 0 & 0 \tabularnewline
inflatie & -0.140310005125642 & 0.039035 & -3.5945 & 0.000789 & 0.000395 \tabularnewline
M1 & 0.00724839024648894 & 0.270519 & 0.0268 & 0.97874 & 0.48937 \tabularnewline
M2 & -0.109041281500898 & 0.269961 & -0.4039 & 0.688147 & 0.344074 \tabularnewline
M3 & -0.379718553043269 & 0.269588 & -1.4085 & 0.165703 & 0.082851 \tabularnewline
M4 & -0.575651625508257 & 0.26871 & -2.1423 & 0.037497 & 0.018749 \tabularnewline
M5 & -0.409135097153141 & 0.268366 & -1.5245 & 0.13422 & 0.06711 \tabularnewline
M6 & -0.113843369208077 & 0.267901 & -0.4249 & 0.672857 & 0.336429 \tabularnewline
M7 & -0.0361020404429104 & 0.267801 & -0.1348 & 0.893351 & 0.446676 \tabularnewline
M8 & -0.143616512600359 & 0.267409 & -0.5371 & 0.59381 & 0.296905 \tabularnewline
M9 & -0.319906184347756 & 0.267218 & -1.1972 & 0.237373 & 0.118686 \tabularnewline
M10 & -0.559002056197666 & 0.267058 & -2.0932 & 0.041875 & 0.020938 \tabularnewline
M11 & -0.629679327740038 & 0.266998 & -2.3584 & 0.022661 & 0.011331 \tabularnewline
t & -0.0293227284576283 & 0.003212 & -9.1278 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68900&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.65369544559226[/C][C]0.271248[/C][C]35.59[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]inflatie[/C][C]-0.140310005125642[/C][C]0.039035[/C][C]-3.5945[/C][C]0.000789[/C][C]0.000395[/C][/ROW]
[ROW][C]M1[/C][C]0.00724839024648894[/C][C]0.270519[/C][C]0.0268[/C][C]0.97874[/C][C]0.48937[/C][/ROW]
[ROW][C]M2[/C][C]-0.109041281500898[/C][C]0.269961[/C][C]-0.4039[/C][C]0.688147[/C][C]0.344074[/C][/ROW]
[ROW][C]M3[/C][C]-0.379718553043269[/C][C]0.269588[/C][C]-1.4085[/C][C]0.165703[/C][C]0.082851[/C][/ROW]
[ROW][C]M4[/C][C]-0.575651625508257[/C][C]0.26871[/C][C]-2.1423[/C][C]0.037497[/C][C]0.018749[/C][/ROW]
[ROW][C]M5[/C][C]-0.409135097153141[/C][C]0.268366[/C][C]-1.5245[/C][C]0.13422[/C][C]0.06711[/C][/ROW]
[ROW][C]M6[/C][C]-0.113843369208077[/C][C]0.267901[/C][C]-0.4249[/C][C]0.672857[/C][C]0.336429[/C][/ROW]
[ROW][C]M7[/C][C]-0.0361020404429104[/C][C]0.267801[/C][C]-0.1348[/C][C]0.893351[/C][C]0.446676[/C][/ROW]
[ROW][C]M8[/C][C]-0.143616512600359[/C][C]0.267409[/C][C]-0.5371[/C][C]0.59381[/C][C]0.296905[/C][/ROW]
[ROW][C]M9[/C][C]-0.319906184347756[/C][C]0.267218[/C][C]-1.1972[/C][C]0.237373[/C][C]0.118686[/C][/ROW]
[ROW][C]M10[/C][C]-0.559002056197666[/C][C]0.267058[/C][C]-2.0932[/C][C]0.041875[/C][C]0.020938[/C][/ROW]
[ROW][C]M11[/C][C]-0.629679327740038[/C][C]0.266998[/C][C]-2.3584[/C][C]0.022661[/C][C]0.011331[/C][/ROW]
[ROW][C]t[/C][C]-0.0293227284576283[/C][C]0.003212[/C][C]-9.1278[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68900&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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.653695445592260.27124835.5900
inflatie-0.1403100051256420.039035-3.59450.0007890.000395
M10.007248390246488940.2705190.02680.978740.48937
M2-0.1090412815008980.269961-0.40390.6881470.344074
M3-0.3797185530432690.269588-1.40850.1657030.082851
M4-0.5756516255082570.26871-2.14230.0374970.018749
M5-0.4091350971531410.268366-1.52450.134220.06711
M6-0.1138433692080770.267901-0.42490.6728570.336429
M7-0.03610204044291040.267801-0.13480.8933510.446676
M8-0.1436165126003590.267409-0.53710.593810.296905
M9-0.3199061843477560.267218-1.19720.2373730.118686
M10-0.5590020561976660.267058-2.09320.0418750.020938
M11-0.6296793277400380.266998-2.35840.0226610.011331
t-0.02932272845762830.003212-9.127800







Multiple Linear Regression - Regression Statistics
Multiple R0.850310348823393
R-squared0.72302768931616
Adjusted R-squared0.644752905862031
F-TEST (value)9.23704490016092
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value6.05654348895257e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.422038240916151
Sum Squared Residuals8.19334873259757

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.850310348823393 \tabularnewline
R-squared & 0.72302768931616 \tabularnewline
Adjusted R-squared & 0.644752905862031 \tabularnewline
F-TEST (value) & 9.23704490016092 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 6.05654348895257e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.422038240916151 \tabularnewline
Sum Squared Residuals & 8.19334873259757 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68900&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.850310348823393[/C][/ROW]
[ROW][C]R-squared[/C][C]0.72302768931616[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.644752905862031[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.23704490016092[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]6.05654348895257e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.422038240916151[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8.19334873259757[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68900&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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.850310348823393
R-squared0.72302768931616
Adjusted R-squared0.644752905862031
F-TEST (value)9.23704490016092
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value6.05654348895257e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.422038240916151
Sum Squared Residuals8.19334873259757







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.39.070381086878610.229618913121392
29.38.952830687698670.34716931230133
38.78.52655168308560.173448316914407
48.28.35741988421323-0.157419884213233
58.38.55073768616098-0.250737686160978
68.58.80267568513585-0.302675685135848
78.68.8090012839057-0.209001283905695
88.58.6020090807278-0.102009080727797
98.28.45252068257303-0.252520682573029
108.18.19813308277805-0.098133082778054
117.98.0420090807278-0.142009080727796
128.68.6423656800102-0.0423656800102068
138.78.592229340773940.107770659226060
148.78.432585940056360.267414059943641
158.58.244833944156870.255166055843126
168.48.00554714272170.394452857278307
178.58.072585940056360.42741405994364
188.78.33855493954380.361445060456203
198.78.386973539851330.313026460148665
208.68.334322342311640.265677657688357
218.58.072585940056360.42741405994364
228.37.776105338723690.523894661276307
2387.718198340261390.281801659738614
248.28.33258594005636-0.132585940056360
258.18.32454260235778-0.224542602357785
268.18.23505420420303-0.135054204203027
2787.963116205228150.0368837947718451
287.97.695767402767850.204232597232153
297.97.818930202152770.0810697978472305
3088.14102320369046-0.141023203690462
3188.17541080348544-0.175410803485436
327.98.03857360287036-0.138573602870359
3387.832961202665330.167038797334666
347.77.634697604920620.0653023950793838
357.27.53469760492062-0.334697604920617
367.58.13505420420303-0.635054204203026
377.38.12701086650445-0.827010866504452
3877.9533364652743-0.953336465274308
3977.5410884611738-0.541088461173794
4077.21761565666323-0.217615656663229
417.27.32674745553559-0.126747455535588
427.37.53659245297277-0.236592452972767
437.17.57098005276774-0.470980052767741
446.87.32189484805215-0.52189484805215
456.47.15837544938482-0.758375449384817
466.16.74964684395164-0.649646843951637
476.56.55142984036369-0.0514298403636871
487.77.137755439133530.562244560866467
497.97.185836103485220.714163896514785
507.57.026192702767640.473807297232364
516.96.824409706355580.0755902936444153
526.66.823649913634-0.223649913633997
536.97.0309987160943-0.130998716094305
547.77.381153718657130.318846281342874
5587.457634319989790.542365680010207
5687.503200126038050.496799873961950
577.77.283556725320460.416443274679540
587.37.1414171296260.158582870374000
597.47.153665133726510.246334866273486
608.17.852238736596870.247761263403126

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.3 & 9.07038108687861 & 0.229618913121392 \tabularnewline
2 & 9.3 & 8.95283068769867 & 0.34716931230133 \tabularnewline
3 & 8.7 & 8.5265516830856 & 0.173448316914407 \tabularnewline
4 & 8.2 & 8.35741988421323 & -0.157419884213233 \tabularnewline
5 & 8.3 & 8.55073768616098 & -0.250737686160978 \tabularnewline
6 & 8.5 & 8.80267568513585 & -0.302675685135848 \tabularnewline
7 & 8.6 & 8.8090012839057 & -0.209001283905695 \tabularnewline
8 & 8.5 & 8.6020090807278 & -0.102009080727797 \tabularnewline
9 & 8.2 & 8.45252068257303 & -0.252520682573029 \tabularnewline
10 & 8.1 & 8.19813308277805 & -0.098133082778054 \tabularnewline
11 & 7.9 & 8.0420090807278 & -0.142009080727796 \tabularnewline
12 & 8.6 & 8.6423656800102 & -0.0423656800102068 \tabularnewline
13 & 8.7 & 8.59222934077394 & 0.107770659226060 \tabularnewline
14 & 8.7 & 8.43258594005636 & 0.267414059943641 \tabularnewline
15 & 8.5 & 8.24483394415687 & 0.255166055843126 \tabularnewline
16 & 8.4 & 8.0055471427217 & 0.394452857278307 \tabularnewline
17 & 8.5 & 8.07258594005636 & 0.42741405994364 \tabularnewline
18 & 8.7 & 8.3385549395438 & 0.361445060456203 \tabularnewline
19 & 8.7 & 8.38697353985133 & 0.313026460148665 \tabularnewline
20 & 8.6 & 8.33432234231164 & 0.265677657688357 \tabularnewline
21 & 8.5 & 8.07258594005636 & 0.42741405994364 \tabularnewline
22 & 8.3 & 7.77610533872369 & 0.523894661276307 \tabularnewline
23 & 8 & 7.71819834026139 & 0.281801659738614 \tabularnewline
24 & 8.2 & 8.33258594005636 & -0.132585940056360 \tabularnewline
25 & 8.1 & 8.32454260235778 & -0.224542602357785 \tabularnewline
26 & 8.1 & 8.23505420420303 & -0.135054204203027 \tabularnewline
27 & 8 & 7.96311620522815 & 0.0368837947718451 \tabularnewline
28 & 7.9 & 7.69576740276785 & 0.204232597232153 \tabularnewline
29 & 7.9 & 7.81893020215277 & 0.0810697978472305 \tabularnewline
30 & 8 & 8.14102320369046 & -0.141023203690462 \tabularnewline
31 & 8 & 8.17541080348544 & -0.175410803485436 \tabularnewline
32 & 7.9 & 8.03857360287036 & -0.138573602870359 \tabularnewline
33 & 8 & 7.83296120266533 & 0.167038797334666 \tabularnewline
34 & 7.7 & 7.63469760492062 & 0.0653023950793838 \tabularnewline
35 & 7.2 & 7.53469760492062 & -0.334697604920617 \tabularnewline
36 & 7.5 & 8.13505420420303 & -0.635054204203026 \tabularnewline
37 & 7.3 & 8.12701086650445 & -0.827010866504452 \tabularnewline
38 & 7 & 7.9533364652743 & -0.953336465274308 \tabularnewline
39 & 7 & 7.5410884611738 & -0.541088461173794 \tabularnewline
40 & 7 & 7.21761565666323 & -0.217615656663229 \tabularnewline
41 & 7.2 & 7.32674745553559 & -0.126747455535588 \tabularnewline
42 & 7.3 & 7.53659245297277 & -0.236592452972767 \tabularnewline
43 & 7.1 & 7.57098005276774 & -0.470980052767741 \tabularnewline
44 & 6.8 & 7.32189484805215 & -0.52189484805215 \tabularnewline
45 & 6.4 & 7.15837544938482 & -0.758375449384817 \tabularnewline
46 & 6.1 & 6.74964684395164 & -0.649646843951637 \tabularnewline
47 & 6.5 & 6.55142984036369 & -0.0514298403636871 \tabularnewline
48 & 7.7 & 7.13775543913353 & 0.562244560866467 \tabularnewline
49 & 7.9 & 7.18583610348522 & 0.714163896514785 \tabularnewline
50 & 7.5 & 7.02619270276764 & 0.473807297232364 \tabularnewline
51 & 6.9 & 6.82440970635558 & 0.0755902936444153 \tabularnewline
52 & 6.6 & 6.823649913634 & -0.223649913633997 \tabularnewline
53 & 6.9 & 7.0309987160943 & -0.130998716094305 \tabularnewline
54 & 7.7 & 7.38115371865713 & 0.318846281342874 \tabularnewline
55 & 8 & 7.45763431998979 & 0.542365680010207 \tabularnewline
56 & 8 & 7.50320012603805 & 0.496799873961950 \tabularnewline
57 & 7.7 & 7.28355672532046 & 0.416443274679540 \tabularnewline
58 & 7.3 & 7.141417129626 & 0.158582870374000 \tabularnewline
59 & 7.4 & 7.15366513372651 & 0.246334866273486 \tabularnewline
60 & 8.1 & 7.85223873659687 & 0.247761263403126 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68900&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]9.3[/C][C]9.07038108687861[/C][C]0.229618913121392[/C][/ROW]
[ROW][C]2[/C][C]9.3[/C][C]8.95283068769867[/C][C]0.34716931230133[/C][/ROW]
[ROW][C]3[/C][C]8.7[/C][C]8.5265516830856[/C][C]0.173448316914407[/C][/ROW]
[ROW][C]4[/C][C]8.2[/C][C]8.35741988421323[/C][C]-0.157419884213233[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]8.55073768616098[/C][C]-0.250737686160978[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.80267568513585[/C][C]-0.302675685135848[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.8090012839057[/C][C]-0.209001283905695[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.6020090807278[/C][C]-0.102009080727797[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]8.45252068257303[/C][C]-0.252520682573029[/C][/ROW]
[ROW][C]10[/C][C]8.1[/C][C]8.19813308277805[/C][C]-0.098133082778054[/C][/ROW]
[ROW][C]11[/C][C]7.9[/C][C]8.0420090807278[/C][C]-0.142009080727796[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]8.6423656800102[/C][C]-0.0423656800102068[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.59222934077394[/C][C]0.107770659226060[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.43258594005636[/C][C]0.267414059943641[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.24483394415687[/C][C]0.255166055843126[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]8.0055471427217[/C][C]0.394452857278307[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.07258594005636[/C][C]0.42741405994364[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]8.3385549395438[/C][C]0.361445060456203[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.38697353985133[/C][C]0.313026460148665[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]8.33432234231164[/C][C]0.265677657688357[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.07258594005636[/C][C]0.42741405994364[/C][/ROW]
[ROW][C]22[/C][C]8.3[/C][C]7.77610533872369[/C][C]0.523894661276307[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.71819834026139[/C][C]0.281801659738614[/C][/ROW]
[ROW][C]24[/C][C]8.2[/C][C]8.33258594005636[/C][C]-0.132585940056360[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]8.32454260235778[/C][C]-0.224542602357785[/C][/ROW]
[ROW][C]26[/C][C]8.1[/C][C]8.23505420420303[/C][C]-0.135054204203027[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.96311620522815[/C][C]0.0368837947718451[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.69576740276785[/C][C]0.204232597232153[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.81893020215277[/C][C]0.0810697978472305[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.14102320369046[/C][C]-0.141023203690462[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]8.17541080348544[/C][C]-0.175410803485436[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.03857360287036[/C][C]-0.138573602870359[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.83296120266533[/C][C]0.167038797334666[/C][/ROW]
[ROW][C]34[/C][C]7.7[/C][C]7.63469760492062[/C][C]0.0653023950793838[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.53469760492062[/C][C]-0.334697604920617[/C][/ROW]
[ROW][C]36[/C][C]7.5[/C][C]8.13505420420303[/C][C]-0.635054204203026[/C][/ROW]
[ROW][C]37[/C][C]7.3[/C][C]8.12701086650445[/C][C]-0.827010866504452[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.9533364652743[/C][C]-0.953336465274308[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.5410884611738[/C][C]-0.541088461173794[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.21761565666323[/C][C]-0.217615656663229[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.32674745553559[/C][C]-0.126747455535588[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.53659245297277[/C][C]-0.236592452972767[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.57098005276774[/C][C]-0.470980052767741[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.32189484805215[/C][C]-0.52189484805215[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]7.15837544938482[/C][C]-0.758375449384817[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.74964684395164[/C][C]-0.649646843951637[/C][/ROW]
[ROW][C]47[/C][C]6.5[/C][C]6.55142984036369[/C][C]-0.0514298403636871[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.13775543913353[/C][C]0.562244560866467[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]7.18583610348522[/C][C]0.714163896514785[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]7.02619270276764[/C][C]0.473807297232364[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]6.82440970635558[/C][C]0.0755902936444153[/C][/ROW]
[ROW][C]52[/C][C]6.6[/C][C]6.823649913634[/C][C]-0.223649913633997[/C][/ROW]
[ROW][C]53[/C][C]6.9[/C][C]7.0309987160943[/C][C]-0.130998716094305[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.38115371865713[/C][C]0.318846281342874[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]7.45763431998979[/C][C]0.542365680010207[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]7.50320012603805[/C][C]0.496799873961950[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.28355672532046[/C][C]0.416443274679540[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.141417129626[/C][C]0.158582870374000[/C][/ROW]
[ROW][C]59[/C][C]7.4[/C][C]7.15366513372651[/C][C]0.246334866273486[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]7.85223873659687[/C][C]0.247761263403126[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68900&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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
19.39.070381086878610.229618913121392
29.38.952830687698670.34716931230133
38.78.52655168308560.173448316914407
48.28.35741988421323-0.157419884213233
58.38.55073768616098-0.250737686160978
68.58.80267568513585-0.302675685135848
78.68.8090012839057-0.209001283905695
88.58.6020090807278-0.102009080727797
98.28.45252068257303-0.252520682573029
108.18.19813308277805-0.098133082778054
117.98.0420090807278-0.142009080727796
128.68.6423656800102-0.0423656800102068
138.78.592229340773940.107770659226060
148.78.432585940056360.267414059943641
158.58.244833944156870.255166055843126
168.48.00554714272170.394452857278307
178.58.072585940056360.42741405994364
188.78.33855493954380.361445060456203
198.78.386973539851330.313026460148665
208.68.334322342311640.265677657688357
218.58.072585940056360.42741405994364
228.37.776105338723690.523894661276307
2387.718198340261390.281801659738614
248.28.33258594005636-0.132585940056360
258.18.32454260235778-0.224542602357785
268.18.23505420420303-0.135054204203027
2787.963116205228150.0368837947718451
287.97.695767402767850.204232597232153
297.97.818930202152770.0810697978472305
3088.14102320369046-0.141023203690462
3188.17541080348544-0.175410803485436
327.98.03857360287036-0.138573602870359
3387.832961202665330.167038797334666
347.77.634697604920620.0653023950793838
357.27.53469760492062-0.334697604920617
367.58.13505420420303-0.635054204203026
377.38.12701086650445-0.827010866504452
3877.9533364652743-0.953336465274308
3977.5410884611738-0.541088461173794
4077.21761565666323-0.217615656663229
417.27.32674745553559-0.126747455535588
427.37.53659245297277-0.236592452972767
437.17.57098005276774-0.470980052767741
446.87.32189484805215-0.52189484805215
456.47.15837544938482-0.758375449384817
466.16.74964684395164-0.649646843951637
476.56.55142984036369-0.0514298403636871
487.77.137755439133530.562244560866467
497.97.185836103485220.714163896514785
507.57.026192702767640.473807297232364
516.96.824409706355580.0755902936444153
526.66.823649913634-0.223649913633997
536.97.0309987160943-0.130998716094305
547.77.381153718657130.318846281342874
5587.457634319989790.542365680010207
5687.503200126038050.496799873961950
577.77.283556725320460.416443274679540
587.37.1414171296260.158582870374000
597.47.153665133726510.246334866273486
608.17.852238736596870.247761263403126







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2274036612327660.4548073224655330.772596338767234
180.1716758379380980.3433516758761970.828324162061902
190.09688161390874760.1937632278174950.903118386091252
200.04680345745995340.09360691491990680.953196542540047
210.03267748859763170.06535497719526340.967322511402368
220.02422737870530830.04845475741061670.975772621294692
230.012978442832670.025956885665340.98702155716733
240.0128376674730580.0256753349461160.987162332526942
250.04480652928034130.08961305856068250.955193470719659
260.05260454733307190.1052090946661440.947395452666928
270.03647503207994560.07295006415989130.963524967920054
280.02985481427322990.05970962854645970.97014518572677
290.02238758364321340.04477516728642670.977612416356787
300.01306655105269250.02613310210538490.986933448947308
310.007511425638251430.01502285127650290.99248857436175
320.004654682196505210.009309364393010410.995345317803495
330.008504061098512620.01700812219702520.991495938901487
340.03896359040018860.07792718080037720.961036409599811
350.05247328942461010.1049465788492200.94752671057539
360.03659197039582570.07318394079165140.963408029604174
370.06015565662176110.1203113132435220.939844343378239
380.1702109092745670.3404218185491330.829789090725433
390.1666541065931750.333308213186350.833345893406825
400.2224264309629840.4448528619259670.777573569037016
410.5388953489100030.9222093021799950.461104651089997
420.7612352588452630.4775294823094750.238764741154737
430.9100145575533780.1799708848932450.0899854424466224

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.227403661232766 & 0.454807322465533 & 0.772596338767234 \tabularnewline
18 & 0.171675837938098 & 0.343351675876197 & 0.828324162061902 \tabularnewline
19 & 0.0968816139087476 & 0.193763227817495 & 0.903118386091252 \tabularnewline
20 & 0.0468034574599534 & 0.0936069149199068 & 0.953196542540047 \tabularnewline
21 & 0.0326774885976317 & 0.0653549771952634 & 0.967322511402368 \tabularnewline
22 & 0.0242273787053083 & 0.0484547574106167 & 0.975772621294692 \tabularnewline
23 & 0.01297844283267 & 0.02595688566534 & 0.98702155716733 \tabularnewline
24 & 0.012837667473058 & 0.025675334946116 & 0.987162332526942 \tabularnewline
25 & 0.0448065292803413 & 0.0896130585606825 & 0.955193470719659 \tabularnewline
26 & 0.0526045473330719 & 0.105209094666144 & 0.947395452666928 \tabularnewline
27 & 0.0364750320799456 & 0.0729500641598913 & 0.963524967920054 \tabularnewline
28 & 0.0298548142732299 & 0.0597096285464597 & 0.97014518572677 \tabularnewline
29 & 0.0223875836432134 & 0.0447751672864267 & 0.977612416356787 \tabularnewline
30 & 0.0130665510526925 & 0.0261331021053849 & 0.986933448947308 \tabularnewline
31 & 0.00751142563825143 & 0.0150228512765029 & 0.99248857436175 \tabularnewline
32 & 0.00465468219650521 & 0.00930936439301041 & 0.995345317803495 \tabularnewline
33 & 0.00850406109851262 & 0.0170081221970252 & 0.991495938901487 \tabularnewline
34 & 0.0389635904001886 & 0.0779271808003772 & 0.961036409599811 \tabularnewline
35 & 0.0524732894246101 & 0.104946578849220 & 0.94752671057539 \tabularnewline
36 & 0.0365919703958257 & 0.0731839407916514 & 0.963408029604174 \tabularnewline
37 & 0.0601556566217611 & 0.120311313243522 & 0.939844343378239 \tabularnewline
38 & 0.170210909274567 & 0.340421818549133 & 0.829789090725433 \tabularnewline
39 & 0.166654106593175 & 0.33330821318635 & 0.833345893406825 \tabularnewline
40 & 0.222426430962984 & 0.444852861925967 & 0.777573569037016 \tabularnewline
41 & 0.538895348910003 & 0.922209302179995 & 0.461104651089997 \tabularnewline
42 & 0.761235258845263 & 0.477529482309475 & 0.238764741154737 \tabularnewline
43 & 0.910014557553378 & 0.179970884893245 & 0.0899854424466224 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68900&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.227403661232766[/C][C]0.454807322465533[/C][C]0.772596338767234[/C][/ROW]
[ROW][C]18[/C][C]0.171675837938098[/C][C]0.343351675876197[/C][C]0.828324162061902[/C][/ROW]
[ROW][C]19[/C][C]0.0968816139087476[/C][C]0.193763227817495[/C][C]0.903118386091252[/C][/ROW]
[ROW][C]20[/C][C]0.0468034574599534[/C][C]0.0936069149199068[/C][C]0.953196542540047[/C][/ROW]
[ROW][C]21[/C][C]0.0326774885976317[/C][C]0.0653549771952634[/C][C]0.967322511402368[/C][/ROW]
[ROW][C]22[/C][C]0.0242273787053083[/C][C]0.0484547574106167[/C][C]0.975772621294692[/C][/ROW]
[ROW][C]23[/C][C]0.01297844283267[/C][C]0.02595688566534[/C][C]0.98702155716733[/C][/ROW]
[ROW][C]24[/C][C]0.012837667473058[/C][C]0.025675334946116[/C][C]0.987162332526942[/C][/ROW]
[ROW][C]25[/C][C]0.0448065292803413[/C][C]0.0896130585606825[/C][C]0.955193470719659[/C][/ROW]
[ROW][C]26[/C][C]0.0526045473330719[/C][C]0.105209094666144[/C][C]0.947395452666928[/C][/ROW]
[ROW][C]27[/C][C]0.0364750320799456[/C][C]0.0729500641598913[/C][C]0.963524967920054[/C][/ROW]
[ROW][C]28[/C][C]0.0298548142732299[/C][C]0.0597096285464597[/C][C]0.97014518572677[/C][/ROW]
[ROW][C]29[/C][C]0.0223875836432134[/C][C]0.0447751672864267[/C][C]0.977612416356787[/C][/ROW]
[ROW][C]30[/C][C]0.0130665510526925[/C][C]0.0261331021053849[/C][C]0.986933448947308[/C][/ROW]
[ROW][C]31[/C][C]0.00751142563825143[/C][C]0.0150228512765029[/C][C]0.99248857436175[/C][/ROW]
[ROW][C]32[/C][C]0.00465468219650521[/C][C]0.00930936439301041[/C][C]0.995345317803495[/C][/ROW]
[ROW][C]33[/C][C]0.00850406109851262[/C][C]0.0170081221970252[/C][C]0.991495938901487[/C][/ROW]
[ROW][C]34[/C][C]0.0389635904001886[/C][C]0.0779271808003772[/C][C]0.961036409599811[/C][/ROW]
[ROW][C]35[/C][C]0.0524732894246101[/C][C]0.104946578849220[/C][C]0.94752671057539[/C][/ROW]
[ROW][C]36[/C][C]0.0365919703958257[/C][C]0.0731839407916514[/C][C]0.963408029604174[/C][/ROW]
[ROW][C]37[/C][C]0.0601556566217611[/C][C]0.120311313243522[/C][C]0.939844343378239[/C][/ROW]
[ROW][C]38[/C][C]0.170210909274567[/C][C]0.340421818549133[/C][C]0.829789090725433[/C][/ROW]
[ROW][C]39[/C][C]0.166654106593175[/C][C]0.33330821318635[/C][C]0.833345893406825[/C][/ROW]
[ROW][C]40[/C][C]0.222426430962984[/C][C]0.444852861925967[/C][C]0.777573569037016[/C][/ROW]
[ROW][C]41[/C][C]0.538895348910003[/C][C]0.922209302179995[/C][C]0.461104651089997[/C][/ROW]
[ROW][C]42[/C][C]0.761235258845263[/C][C]0.477529482309475[/C][C]0.238764741154737[/C][/ROW]
[ROW][C]43[/C][C]0.910014557553378[/C][C]0.179970884893245[/C][C]0.0899854424466224[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68900&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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.2274036612327660.4548073224655330.772596338767234
180.1716758379380980.3433516758761970.828324162061902
190.09688161390874760.1937632278174950.903118386091252
200.04680345745995340.09360691491990680.953196542540047
210.03267748859763170.06535497719526340.967322511402368
220.02422737870530830.04845475741061670.975772621294692
230.012978442832670.025956885665340.98702155716733
240.0128376674730580.0256753349461160.987162332526942
250.04480652928034130.08961305856068250.955193470719659
260.05260454733307190.1052090946661440.947395452666928
270.03647503207994560.07295006415989130.963524967920054
280.02985481427322990.05970962854645970.97014518572677
290.02238758364321340.04477516728642670.977612416356787
300.01306655105269250.02613310210538490.986933448947308
310.007511425638251430.01502285127650290.99248857436175
320.004654682196505210.009309364393010410.995345317803495
330.008504061098512620.01700812219702520.991495938901487
340.03896359040018860.07792718080037720.961036409599811
350.05247328942461010.1049465788492200.94752671057539
360.03659197039582570.07318394079165140.963408029604174
370.06015565662176110.1203113132435220.939844343378239
380.1702109092745670.3404218185491330.829789090725433
390.1666541065931750.333308213186350.833345893406825
400.2224264309629840.4448528619259670.777573569037016
410.5388953489100030.9222093021799950.461104651089997
420.7612352588452630.4775294823094750.238764741154737
430.9100145575533780.1799708848932450.0899854424466224







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0370370370370370NOK
5% type I error level80.296296296296296NOK
10% type I error level150.555555555555556NOK

\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 & 1 & 0.0370370370370370 & NOK \tabularnewline
5% type I error level & 8 & 0.296296296296296 & NOK \tabularnewline
10% type I error level & 15 & 0.555555555555556 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68900&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]1[/C][C]0.0370370370370370[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]8[/C][C]0.296296296296296[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]15[/C][C]0.555555555555556[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68900&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68900&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 level10.0370370370370370NOK
5% type I error level80.296296296296296NOK
10% type I error level150.555555555555556NOK



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