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 computationFri, 17 Dec 2010 11:56:07 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/17/t12925868372nyj7vj77n2vnl3.htm/, Retrieved Wed, 24 Apr 2024 23:04:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111400, Retrieved Wed, 24 Apr 2024 23:04:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact213
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Classical Decomposition] [HPC Retail Sales] [2008-03-02 16:19:32] [74be16979710d4c4e7c6647856088456]
-  M D  [Classical Decomposition] [] [2010-11-26 09:51:05] [7789b9488494790f41ddb7f073cada1b]
- RMPD      [Multiple Regression] [] [2010-12-17 11:56:07] [c05c5ae4ce2db58f67fd725429d7f25c] [Current]
Feedback Forum

Post a new message
Dataseries X:
101.82	107.34	93.63	99.85	101.76
101.68	107.34	93.63	99.91	102.37
101.68	107.34	93.63	99.87	102.38
102.45	107.34	96.13	99.86	102.86
102.45	107.34	96.13	100.10	102.87
102.45	107.34	96.13	100.10	102.92
102.45	107.34	96.13	100.12	102.95
102.45	107.34	96.13	99.95	103.02
102.45	112.60	96.13	99.94	104.08
102.52	112.60	96.13	100.18	104.16
102.52	112.60	96.13	100.31	104.24
102.85	112.60	96.13	100.65	104.33
102.85	112.61	96.13	100.65	104.73
102.85	112.61	96.13	100.69	104.86
103.25	112.61	96.13	101.26	105.03
103.25	112.61	98.73	101.26	105.62
103.25	112.61	98.73	101.38	105.63
103.25	112.61	98.73	101.38	105.63
104.45	112.61	98.73	101.38	105.94
104.45	112.61	98.73	101.44	106.61
104.45	118.65	98.73	101.40	107.69
104.80	118.65	98.73	101.40	107.78
104.80	118.65	98.73	100.58	107.93
105.29	118.65	98.73	100.58	108.48
105.29	114.29	98.73	100.58	108.14
105.29	114.29	98.73	100.59	108.48
105.29	114.29	98.73	100.81	108.48
106.04	114.29	101.67	100.75	108.89
105.94	114.29	101.67	100.75	108.93
105.94	114.29	101.67	100.96	109.21
105.94	114.29	101.67	101.31	109.47
106.28	114.29	101.67	101.64	109.80
106.48	123.33	101.67	101.46	111.73
107.19	123.33	101.67	101.73	111.85
108.14	123.33	101.67	101.73	112.12
108.22	123.33	101.67	101.64	112.15
108.22	123.33	101.67	101.77	112.17
108.61	123.33	101.67	101.74	112.67
108.61	123.33	101.67	101.89	112.80
108.61	123.33	107.94	101.89	113.44
108.61	123.33	107.94	101.93	113.53
109.06	123.33	107.94	101.93	114.53
109.06	123.33	107.94	102.32	114.51
112.93	123.33	107.94	102.41	115.05
115.84	129.03	107.94	103.58	116.67
118.57	128.76	107.94	104.12	117.07
118.57	128.76	107.94	104.10	116.92
118.86	128.76	107.94	104.15	117.00
118.98	128.76	107.94	104.15	117.02
119.27	128.76	107.94	104.16	117.35
119.39	128.76	107.94	102.94	117.36
119.49	128.76	110.30	103.07	117.82
119.59	128.76	110.30	103.04	117.88
120.12	128.76	110.30	103.06	118.24
120.14	128.76	110.30	103.05	118.50
120.14	128.76	110.30	102.95	118.80
120.14	132.63	110.30	102.95	119.76
120.14	132.63	110.30	103.05	120.09




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 6 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111400&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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
vrijetijdsbesteding[t] = + 65.5701318446327 + 0.0934667042792763bios[t] + 0.112234682723702schouwburg[t] + 0.249400535389239eedagsacttractie[t] -0.0908956030942088huurDVD[t] + 0.0138828910919104M1[t] + 0.21346897571974M2[t] + 0.0879754877109333M3[t] -0.430673994391876M4[t] -0.555903351928635M5[t] -0.405997260390775M6[t] -0.421124427936515M7[t] -0.287961409775444M8[t] + 0.155647169325642M9[t] + 0.140501903035055M10[t] + 0.00744480645675077M11[t] + 0.173955632165732t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
vrijetijdsbesteding[t] =  +  65.5701318446327 +  0.0934667042792763bios[t] +  0.112234682723702schouwburg[t] +  0.249400535389239eedagsacttractie[t] -0.0908956030942088huurDVD[t] +  0.0138828910919104M1[t] +  0.21346897571974M2[t] +  0.0879754877109333M3[t] -0.430673994391876M4[t] -0.555903351928635M5[t] -0.405997260390775M6[t] -0.421124427936515M7[t] -0.287961409775444M8[t] +  0.155647169325642M9[t] +  0.140501903035055M10[t] +  0.00744480645675077M11[t] +  0.173955632165732t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]vrijetijdsbesteding[t] =  +  65.5701318446327 +  0.0934667042792763bios[t] +  0.112234682723702schouwburg[t] +  0.249400535389239eedagsacttractie[t] -0.0908956030942088huurDVD[t] +  0.0138828910919104M1[t] +  0.21346897571974M2[t] +  0.0879754877109333M3[t] -0.430673994391876M4[t] -0.555903351928635M5[t] -0.405997260390775M6[t] -0.421124427936515M7[t] -0.287961409775444M8[t] +  0.155647169325642M9[t] +  0.140501903035055M10[t] +  0.00744480645675077M11[t] +  0.173955632165732t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111400&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
vrijetijdsbesteding[t] = + 65.5701318446327 + 0.0934667042792763bios[t] + 0.112234682723702schouwburg[t] + 0.249400535389239eedagsacttractie[t] -0.0908956030942088huurDVD[t] + 0.0138828910919104M1[t] + 0.21346897571974M2[t] + 0.0879754877109333M3[t] -0.430673994391876M4[t] -0.555903351928635M5[t] -0.405997260390775M6[t] -0.421124427936515M7[t] -0.287961409775444M8[t] + 0.155647169325642M9[t] + 0.140501903035055M10[t] + 0.00744480645675077M11[t] + 0.173955632165732t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)65.57013184463277.8132378.392200
bios0.09346670427927630.0209094.47016.1e-053e-05
schouwburg0.1122346827237020.0358743.12850.003230.001615
eedagsacttractie0.2494005353892390.0531454.69283e-051.5e-05
huurDVD-0.09089560309420880.090236-1.00730.3196950.159848
M10.01388289109191040.2039230.06810.9460540.473027
M20.213468975719740.2068381.03210.3080950.154047
M30.08797548771093330.2105910.41780.6783050.339153
M4-0.4306739943918760.270129-1.59430.1185440.059272
M5-0.5559033519286350.269783-2.06060.0457280.022864
M6-0.4059972603907750.269908-1.50420.1401940.070097
M7-0.4211244279365150.271415-1.55160.1284470.064223
M8-0.2879614097754440.272373-1.05720.2965950.148298
M90.1556471693256420.2053080.75810.4527180.226359
M100.1405019030350550.1996810.70360.4856390.242819
M110.007444806456750770.2089530.03560.9717510.485876
t0.1739556321657320.01575611.040600

\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) & 65.5701318446327 & 7.813237 & 8.3922 & 0 & 0 \tabularnewline
bios & 0.0934667042792763 & 0.020909 & 4.4701 & 6.1e-05 & 3e-05 \tabularnewline
schouwburg & 0.112234682723702 & 0.035874 & 3.1285 & 0.00323 & 0.001615 \tabularnewline
eedagsacttractie & 0.249400535389239 & 0.053145 & 4.6928 & 3e-05 & 1.5e-05 \tabularnewline
huurDVD & -0.0908956030942088 & 0.090236 & -1.0073 & 0.319695 & 0.159848 \tabularnewline
M1 & 0.0138828910919104 & 0.203923 & 0.0681 & 0.946054 & 0.473027 \tabularnewline
M2 & 0.21346897571974 & 0.206838 & 1.0321 & 0.308095 & 0.154047 \tabularnewline
M3 & 0.0879754877109333 & 0.210591 & 0.4178 & 0.678305 & 0.339153 \tabularnewline
M4 & -0.430673994391876 & 0.270129 & -1.5943 & 0.118544 & 0.059272 \tabularnewline
M5 & -0.555903351928635 & 0.269783 & -2.0606 & 0.045728 & 0.022864 \tabularnewline
M6 & -0.405997260390775 & 0.269908 & -1.5042 & 0.140194 & 0.070097 \tabularnewline
M7 & -0.421124427936515 & 0.271415 & -1.5516 & 0.128447 & 0.064223 \tabularnewline
M8 & -0.287961409775444 & 0.272373 & -1.0572 & 0.296595 & 0.148298 \tabularnewline
M9 & 0.155647169325642 & 0.205308 & 0.7581 & 0.452718 & 0.226359 \tabularnewline
M10 & 0.140501903035055 & 0.199681 & 0.7036 & 0.485639 & 0.242819 \tabularnewline
M11 & 0.00744480645675077 & 0.208953 & 0.0356 & 0.971751 & 0.485876 \tabularnewline
t & 0.173955632165732 & 0.015756 & 11.0406 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&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]65.5701318446327[/C][C]7.813237[/C][C]8.3922[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]bios[/C][C]0.0934667042792763[/C][C]0.020909[/C][C]4.4701[/C][C]6.1e-05[/C][C]3e-05[/C][/ROW]
[ROW][C]schouwburg[/C][C]0.112234682723702[/C][C]0.035874[/C][C]3.1285[/C][C]0.00323[/C][C]0.001615[/C][/ROW]
[ROW][C]eedagsacttractie[/C][C]0.249400535389239[/C][C]0.053145[/C][C]4.6928[/C][C]3e-05[/C][C]1.5e-05[/C][/ROW]
[ROW][C]huurDVD[/C][C]-0.0908956030942088[/C][C]0.090236[/C][C]-1.0073[/C][C]0.319695[/C][C]0.159848[/C][/ROW]
[ROW][C]M1[/C][C]0.0138828910919104[/C][C]0.203923[/C][C]0.0681[/C][C]0.946054[/C][C]0.473027[/C][/ROW]
[ROW][C]M2[/C][C]0.21346897571974[/C][C]0.206838[/C][C]1.0321[/C][C]0.308095[/C][C]0.154047[/C][/ROW]
[ROW][C]M3[/C][C]0.0879754877109333[/C][C]0.210591[/C][C]0.4178[/C][C]0.678305[/C][C]0.339153[/C][/ROW]
[ROW][C]M4[/C][C]-0.430673994391876[/C][C]0.270129[/C][C]-1.5943[/C][C]0.118544[/C][C]0.059272[/C][/ROW]
[ROW][C]M5[/C][C]-0.555903351928635[/C][C]0.269783[/C][C]-2.0606[/C][C]0.045728[/C][C]0.022864[/C][/ROW]
[ROW][C]M6[/C][C]-0.405997260390775[/C][C]0.269908[/C][C]-1.5042[/C][C]0.140194[/C][C]0.070097[/C][/ROW]
[ROW][C]M7[/C][C]-0.421124427936515[/C][C]0.271415[/C][C]-1.5516[/C][C]0.128447[/C][C]0.064223[/C][/ROW]
[ROW][C]M8[/C][C]-0.287961409775444[/C][C]0.272373[/C][C]-1.0572[/C][C]0.296595[/C][C]0.148298[/C][/ROW]
[ROW][C]M9[/C][C]0.155647169325642[/C][C]0.205308[/C][C]0.7581[/C][C]0.452718[/C][C]0.226359[/C][/ROW]
[ROW][C]M10[/C][C]0.140501903035055[/C][C]0.199681[/C][C]0.7036[/C][C]0.485639[/C][C]0.242819[/C][/ROW]
[ROW][C]M11[/C][C]0.00744480645675077[/C][C]0.208953[/C][C]0.0356[/C][C]0.971751[/C][C]0.485876[/C][/ROW]
[ROW][C]t[/C][C]0.173955632165732[/C][C]0.015756[/C][C]11.0406[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111400&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)65.57013184463277.8132378.392200
bios0.09346670427927630.0209094.47016.1e-053e-05
schouwburg0.1122346827237020.0358743.12850.003230.001615
eedagsacttractie0.2494005353892390.0531454.69283e-051.5e-05
huurDVD-0.09089560309420880.090236-1.00730.3196950.159848
M10.01388289109191040.2039230.06810.9460540.473027
M20.213468975719740.2068381.03210.3080950.154047
M30.08797548771093330.2105910.41780.6783050.339153
M4-0.4306739943918760.270129-1.59430.1185440.059272
M5-0.5559033519286350.269783-2.06060.0457280.022864
M6-0.4059972603907750.269908-1.50420.1401940.070097
M7-0.4211244279365150.271415-1.55160.1284470.064223
M8-0.2879614097754440.272373-1.05720.2965950.148298
M90.1556471693256420.2053080.75810.4527180.226359
M100.1405019030350550.1996810.70360.4856390.242819
M110.007444806456750770.2089530.03560.9717510.485876
t0.1739556321657320.01575611.040600







Multiple Linear Regression - Regression Statistics
Multiple R0.99899740753351
R-squared0.997995820258674
Adjusted R-squared0.99721370133523
F-TEST (value)1276.01543747808
F-TEST (DF numerator)16
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.294272762981154
Sum Squared Residuals3.55045482033506

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99899740753351 \tabularnewline
R-squared & 0.997995820258674 \tabularnewline
Adjusted R-squared & 0.99721370133523 \tabularnewline
F-TEST (value) & 1276.01543747808 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.294272762981154 \tabularnewline
Sum Squared Residuals & 3.55045482033506 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99899740753351[/C][/ROW]
[ROW][C]R-squared[/C][C]0.997995820258674[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.99721370133523[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1276.01543747808[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/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]0.294272762981154[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3.55045482033506[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111400&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.99899740753351
R-squared0.997995820258674
Adjusted R-squared0.99721370133523
F-TEST (value)1276.01543747808
F-TEST (DF numerator)16
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.294272762981154
Sum Squared Residuals3.55045482033506







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1101.76101.5974672007060.162532799293738
2102.37101.9524698427150.417530157285066
3102.38102.0045678109960.375432189004368
4102.86102.3562536178580.503746382142368
5102.87102.3831649477440.486835052256009
6102.92102.7070266714480.212973328552414
7102.95102.8640372240060.0859627759943083
8103.02103.186608126859-0.166608126858517
9104.08104.395435725283-0.315435725282948
10104.16104.538973815715-0.378973815715032
11104.24104.5680559229-0.328055922900215
12104.33104.734506255969-0.404506255969322
13104.73104.923467126054-0.193467126054197
14104.86105.293373018724-0.433373018723994
15105.03105.327411350829-0.29741135082893
16105.62105.631158892904-0.0111588929038721
17105.63105.668977695162-0.0389776951615503
18105.63105.992839418865-0.362839418865142
19105.94106.26382792862-0.323827928620263
20106.61106.5654928427610.0445071572385886
21107.69107.864590361803-0.174590361803161
22107.78108.056114074176-0.276114074176048
23107.93108.171547004301-0.241547004300722
24108.48108.3838565151070.0961434848934477
25108.14108.0823518216890.0576481783111435
26108.48108.4549845824510.0250154175485287
27108.48108.483449693928-0.00344969392767098
28108.89108.94754718243-0.057547182430068
29108.93108.986926786631-0.0569267866311065
30109.21109.291700433685-0.0817004336849282
31109.47109.4187154372220.0512845627780594
32109.8109.7276172179830.0723827820173901
33111.73111.3948375104850.335162489515496
34111.85111.5954674235620.254532576437494
35112.12111.7251593282150.394840671784764
36112.15111.9073280945450.242671905454962
37112.17112.08335018940.086649810599563
38112.67112.4960707889560.173929211044258
39112.8112.5308985926490.26910140735146
40113.44113.749946099602-0.309946099601988
41113.53113.795036550107-0.265036550107189
42114.53114.1609582907360.369041709263545
43114.51114.284337470150.225662529850298
44115.05114.9449916617590.105008338241167
45116.67116.3679338183830.30206618161678
46117.07116.7025212969350.367478703065479
47116.92116.7452377445840.174762255416174
48117116.9343091343790.0656908656209122
49117.02117.13336366215-0.113363662150248
50117.35117.533101767154-0.183101767153859
51117.36117.703672551599-0.343672551599227
52117.82117.945094207206-0.125094207206439
53117.88118.005894020356-0.125894020356163
54118.24118.377475185266-0.137475185265889
55118.5118.539081940002-0.0390819400024026
56118.8118.855290150639-0.0552901506386285
57119.76119.907202584046-0.147202584046167
58120.09120.0569233896120.033076610388107

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 101.76 & 101.597467200706 & 0.162532799293738 \tabularnewline
2 & 102.37 & 101.952469842715 & 0.417530157285066 \tabularnewline
3 & 102.38 & 102.004567810996 & 0.375432189004368 \tabularnewline
4 & 102.86 & 102.356253617858 & 0.503746382142368 \tabularnewline
5 & 102.87 & 102.383164947744 & 0.486835052256009 \tabularnewline
6 & 102.92 & 102.707026671448 & 0.212973328552414 \tabularnewline
7 & 102.95 & 102.864037224006 & 0.0859627759943083 \tabularnewline
8 & 103.02 & 103.186608126859 & -0.166608126858517 \tabularnewline
9 & 104.08 & 104.395435725283 & -0.315435725282948 \tabularnewline
10 & 104.16 & 104.538973815715 & -0.378973815715032 \tabularnewline
11 & 104.24 & 104.5680559229 & -0.328055922900215 \tabularnewline
12 & 104.33 & 104.734506255969 & -0.404506255969322 \tabularnewline
13 & 104.73 & 104.923467126054 & -0.193467126054197 \tabularnewline
14 & 104.86 & 105.293373018724 & -0.433373018723994 \tabularnewline
15 & 105.03 & 105.327411350829 & -0.29741135082893 \tabularnewline
16 & 105.62 & 105.631158892904 & -0.0111588929038721 \tabularnewline
17 & 105.63 & 105.668977695162 & -0.0389776951615503 \tabularnewline
18 & 105.63 & 105.992839418865 & -0.362839418865142 \tabularnewline
19 & 105.94 & 106.26382792862 & -0.323827928620263 \tabularnewline
20 & 106.61 & 106.565492842761 & 0.0445071572385886 \tabularnewline
21 & 107.69 & 107.864590361803 & -0.174590361803161 \tabularnewline
22 & 107.78 & 108.056114074176 & -0.276114074176048 \tabularnewline
23 & 107.93 & 108.171547004301 & -0.241547004300722 \tabularnewline
24 & 108.48 & 108.383856515107 & 0.0961434848934477 \tabularnewline
25 & 108.14 & 108.082351821689 & 0.0576481783111435 \tabularnewline
26 & 108.48 & 108.454984582451 & 0.0250154175485287 \tabularnewline
27 & 108.48 & 108.483449693928 & -0.00344969392767098 \tabularnewline
28 & 108.89 & 108.94754718243 & -0.057547182430068 \tabularnewline
29 & 108.93 & 108.986926786631 & -0.0569267866311065 \tabularnewline
30 & 109.21 & 109.291700433685 & -0.0817004336849282 \tabularnewline
31 & 109.47 & 109.418715437222 & 0.0512845627780594 \tabularnewline
32 & 109.8 & 109.727617217983 & 0.0723827820173901 \tabularnewline
33 & 111.73 & 111.394837510485 & 0.335162489515496 \tabularnewline
34 & 111.85 & 111.595467423562 & 0.254532576437494 \tabularnewline
35 & 112.12 & 111.725159328215 & 0.394840671784764 \tabularnewline
36 & 112.15 & 111.907328094545 & 0.242671905454962 \tabularnewline
37 & 112.17 & 112.0833501894 & 0.086649810599563 \tabularnewline
38 & 112.67 & 112.496070788956 & 0.173929211044258 \tabularnewline
39 & 112.8 & 112.530898592649 & 0.26910140735146 \tabularnewline
40 & 113.44 & 113.749946099602 & -0.309946099601988 \tabularnewline
41 & 113.53 & 113.795036550107 & -0.265036550107189 \tabularnewline
42 & 114.53 & 114.160958290736 & 0.369041709263545 \tabularnewline
43 & 114.51 & 114.28433747015 & 0.225662529850298 \tabularnewline
44 & 115.05 & 114.944991661759 & 0.105008338241167 \tabularnewline
45 & 116.67 & 116.367933818383 & 0.30206618161678 \tabularnewline
46 & 117.07 & 116.702521296935 & 0.367478703065479 \tabularnewline
47 & 116.92 & 116.745237744584 & 0.174762255416174 \tabularnewline
48 & 117 & 116.934309134379 & 0.0656908656209122 \tabularnewline
49 & 117.02 & 117.13336366215 & -0.113363662150248 \tabularnewline
50 & 117.35 & 117.533101767154 & -0.183101767153859 \tabularnewline
51 & 117.36 & 117.703672551599 & -0.343672551599227 \tabularnewline
52 & 117.82 & 117.945094207206 & -0.125094207206439 \tabularnewline
53 & 117.88 & 118.005894020356 & -0.125894020356163 \tabularnewline
54 & 118.24 & 118.377475185266 & -0.137475185265889 \tabularnewline
55 & 118.5 & 118.539081940002 & -0.0390819400024026 \tabularnewline
56 & 118.8 & 118.855290150639 & -0.0552901506386285 \tabularnewline
57 & 119.76 & 119.907202584046 & -0.147202584046167 \tabularnewline
58 & 120.09 & 120.056923389612 & 0.033076610388107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&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]101.76[/C][C]101.597467200706[/C][C]0.162532799293738[/C][/ROW]
[ROW][C]2[/C][C]102.37[/C][C]101.952469842715[/C][C]0.417530157285066[/C][/ROW]
[ROW][C]3[/C][C]102.38[/C][C]102.004567810996[/C][C]0.375432189004368[/C][/ROW]
[ROW][C]4[/C][C]102.86[/C][C]102.356253617858[/C][C]0.503746382142368[/C][/ROW]
[ROW][C]5[/C][C]102.87[/C][C]102.383164947744[/C][C]0.486835052256009[/C][/ROW]
[ROW][C]6[/C][C]102.92[/C][C]102.707026671448[/C][C]0.212973328552414[/C][/ROW]
[ROW][C]7[/C][C]102.95[/C][C]102.864037224006[/C][C]0.0859627759943083[/C][/ROW]
[ROW][C]8[/C][C]103.02[/C][C]103.186608126859[/C][C]-0.166608126858517[/C][/ROW]
[ROW][C]9[/C][C]104.08[/C][C]104.395435725283[/C][C]-0.315435725282948[/C][/ROW]
[ROW][C]10[/C][C]104.16[/C][C]104.538973815715[/C][C]-0.378973815715032[/C][/ROW]
[ROW][C]11[/C][C]104.24[/C][C]104.5680559229[/C][C]-0.328055922900215[/C][/ROW]
[ROW][C]12[/C][C]104.33[/C][C]104.734506255969[/C][C]-0.404506255969322[/C][/ROW]
[ROW][C]13[/C][C]104.73[/C][C]104.923467126054[/C][C]-0.193467126054197[/C][/ROW]
[ROW][C]14[/C][C]104.86[/C][C]105.293373018724[/C][C]-0.433373018723994[/C][/ROW]
[ROW][C]15[/C][C]105.03[/C][C]105.327411350829[/C][C]-0.29741135082893[/C][/ROW]
[ROW][C]16[/C][C]105.62[/C][C]105.631158892904[/C][C]-0.0111588929038721[/C][/ROW]
[ROW][C]17[/C][C]105.63[/C][C]105.668977695162[/C][C]-0.0389776951615503[/C][/ROW]
[ROW][C]18[/C][C]105.63[/C][C]105.992839418865[/C][C]-0.362839418865142[/C][/ROW]
[ROW][C]19[/C][C]105.94[/C][C]106.26382792862[/C][C]-0.323827928620263[/C][/ROW]
[ROW][C]20[/C][C]106.61[/C][C]106.565492842761[/C][C]0.0445071572385886[/C][/ROW]
[ROW][C]21[/C][C]107.69[/C][C]107.864590361803[/C][C]-0.174590361803161[/C][/ROW]
[ROW][C]22[/C][C]107.78[/C][C]108.056114074176[/C][C]-0.276114074176048[/C][/ROW]
[ROW][C]23[/C][C]107.93[/C][C]108.171547004301[/C][C]-0.241547004300722[/C][/ROW]
[ROW][C]24[/C][C]108.48[/C][C]108.383856515107[/C][C]0.0961434848934477[/C][/ROW]
[ROW][C]25[/C][C]108.14[/C][C]108.082351821689[/C][C]0.0576481783111435[/C][/ROW]
[ROW][C]26[/C][C]108.48[/C][C]108.454984582451[/C][C]0.0250154175485287[/C][/ROW]
[ROW][C]27[/C][C]108.48[/C][C]108.483449693928[/C][C]-0.00344969392767098[/C][/ROW]
[ROW][C]28[/C][C]108.89[/C][C]108.94754718243[/C][C]-0.057547182430068[/C][/ROW]
[ROW][C]29[/C][C]108.93[/C][C]108.986926786631[/C][C]-0.0569267866311065[/C][/ROW]
[ROW][C]30[/C][C]109.21[/C][C]109.291700433685[/C][C]-0.0817004336849282[/C][/ROW]
[ROW][C]31[/C][C]109.47[/C][C]109.418715437222[/C][C]0.0512845627780594[/C][/ROW]
[ROW][C]32[/C][C]109.8[/C][C]109.727617217983[/C][C]0.0723827820173901[/C][/ROW]
[ROW][C]33[/C][C]111.73[/C][C]111.394837510485[/C][C]0.335162489515496[/C][/ROW]
[ROW][C]34[/C][C]111.85[/C][C]111.595467423562[/C][C]0.254532576437494[/C][/ROW]
[ROW][C]35[/C][C]112.12[/C][C]111.725159328215[/C][C]0.394840671784764[/C][/ROW]
[ROW][C]36[/C][C]112.15[/C][C]111.907328094545[/C][C]0.242671905454962[/C][/ROW]
[ROW][C]37[/C][C]112.17[/C][C]112.0833501894[/C][C]0.086649810599563[/C][/ROW]
[ROW][C]38[/C][C]112.67[/C][C]112.496070788956[/C][C]0.173929211044258[/C][/ROW]
[ROW][C]39[/C][C]112.8[/C][C]112.530898592649[/C][C]0.26910140735146[/C][/ROW]
[ROW][C]40[/C][C]113.44[/C][C]113.749946099602[/C][C]-0.309946099601988[/C][/ROW]
[ROW][C]41[/C][C]113.53[/C][C]113.795036550107[/C][C]-0.265036550107189[/C][/ROW]
[ROW][C]42[/C][C]114.53[/C][C]114.160958290736[/C][C]0.369041709263545[/C][/ROW]
[ROW][C]43[/C][C]114.51[/C][C]114.28433747015[/C][C]0.225662529850298[/C][/ROW]
[ROW][C]44[/C][C]115.05[/C][C]114.944991661759[/C][C]0.105008338241167[/C][/ROW]
[ROW][C]45[/C][C]116.67[/C][C]116.367933818383[/C][C]0.30206618161678[/C][/ROW]
[ROW][C]46[/C][C]117.07[/C][C]116.702521296935[/C][C]0.367478703065479[/C][/ROW]
[ROW][C]47[/C][C]116.92[/C][C]116.745237744584[/C][C]0.174762255416174[/C][/ROW]
[ROW][C]48[/C][C]117[/C][C]116.934309134379[/C][C]0.0656908656209122[/C][/ROW]
[ROW][C]49[/C][C]117.02[/C][C]117.13336366215[/C][C]-0.113363662150248[/C][/ROW]
[ROW][C]50[/C][C]117.35[/C][C]117.533101767154[/C][C]-0.183101767153859[/C][/ROW]
[ROW][C]51[/C][C]117.36[/C][C]117.703672551599[/C][C]-0.343672551599227[/C][/ROW]
[ROW][C]52[/C][C]117.82[/C][C]117.945094207206[/C][C]-0.125094207206439[/C][/ROW]
[ROW][C]53[/C][C]117.88[/C][C]118.005894020356[/C][C]-0.125894020356163[/C][/ROW]
[ROW][C]54[/C][C]118.24[/C][C]118.377475185266[/C][C]-0.137475185265889[/C][/ROW]
[ROW][C]55[/C][C]118.5[/C][C]118.539081940002[/C][C]-0.0390819400024026[/C][/ROW]
[ROW][C]56[/C][C]118.8[/C][C]118.855290150639[/C][C]-0.0552901506386285[/C][/ROW]
[ROW][C]57[/C][C]119.76[/C][C]119.907202584046[/C][C]-0.147202584046167[/C][/ROW]
[ROW][C]58[/C][C]120.09[/C][C]120.056923389612[/C][C]0.033076610388107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111400&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
1101.76101.5974672007060.162532799293738
2102.37101.9524698427150.417530157285066
3102.38102.0045678109960.375432189004368
4102.86102.3562536178580.503746382142368
5102.87102.3831649477440.486835052256009
6102.92102.7070266714480.212973328552414
7102.95102.8640372240060.0859627759943083
8103.02103.186608126859-0.166608126858517
9104.08104.395435725283-0.315435725282948
10104.16104.538973815715-0.378973815715032
11104.24104.5680559229-0.328055922900215
12104.33104.734506255969-0.404506255969322
13104.73104.923467126054-0.193467126054197
14104.86105.293373018724-0.433373018723994
15105.03105.327411350829-0.29741135082893
16105.62105.631158892904-0.0111588929038721
17105.63105.668977695162-0.0389776951615503
18105.63105.992839418865-0.362839418865142
19105.94106.26382792862-0.323827928620263
20106.61106.5654928427610.0445071572385886
21107.69107.864590361803-0.174590361803161
22107.78108.056114074176-0.276114074176048
23107.93108.171547004301-0.241547004300722
24108.48108.3838565151070.0961434848934477
25108.14108.0823518216890.0576481783111435
26108.48108.4549845824510.0250154175485287
27108.48108.483449693928-0.00344969392767098
28108.89108.94754718243-0.057547182430068
29108.93108.986926786631-0.0569267866311065
30109.21109.291700433685-0.0817004336849282
31109.47109.4187154372220.0512845627780594
32109.8109.7276172179830.0723827820173901
33111.73111.3948375104850.335162489515496
34111.85111.5954674235620.254532576437494
35112.12111.7251593282150.394840671784764
36112.15111.9073280945450.242671905454962
37112.17112.08335018940.086649810599563
38112.67112.4960707889560.173929211044258
39112.8112.5308985926490.26910140735146
40113.44113.749946099602-0.309946099601988
41113.53113.795036550107-0.265036550107189
42114.53114.1609582907360.369041709263545
43114.51114.284337470150.225662529850298
44115.05114.9449916617590.105008338241167
45116.67116.3679338183830.30206618161678
46117.07116.7025212969350.367478703065479
47116.92116.7452377445840.174762255416174
48117116.9343091343790.0656908656209122
49117.02117.13336366215-0.113363662150248
50117.35117.533101767154-0.183101767153859
51117.36117.703672551599-0.343672551599227
52117.82117.945094207206-0.125094207206439
53117.88118.005894020356-0.125894020356163
54118.24118.377475185266-0.137475185265889
55118.5118.539081940002-0.0390819400024026
56118.8118.855290150639-0.0552901506386285
57119.76119.907202584046-0.147202584046167
58120.09120.0569233896120.033076610388107







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.7783701607323790.4432596785352430.221629839267621
210.655249222084130.6895015558317410.34475077791587
220.6596850254556130.6806299490887750.340314974544387
230.7235366946774970.5529266106450060.276463305322503
240.7307035369891230.5385929260217540.269296463010877
250.685176642343410.629646715313180.31482335765659
260.5964204432906290.8071591134187420.403579556709371
270.4925392125688660.9850784251377320.507460787431134
280.7843620954302750.4312758091394490.215637904569725
290.8103585177748080.3792829644503840.189641482225192
300.75522295830160.4895540833968010.2447770416984
310.8459621444699590.3080757110600830.154037855530041
320.790227844469690.4195443110606180.209772155530309
330.7857011485365380.4285977029269230.214298851463462
340.8524912178694160.2950175642611680.147508782130584
350.7614122539420130.4771754921159740.238587746057987
360.6531771166538540.6936457666922910.346822883346146
370.5701943367593610.8596113264812780.429805663240639
380.4422443817703680.8844887635407360.557755618229632

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.778370160732379 & 0.443259678535243 & 0.221629839267621 \tabularnewline
21 & 0.65524922208413 & 0.689501555831741 & 0.34475077791587 \tabularnewline
22 & 0.659685025455613 & 0.680629949088775 & 0.340314974544387 \tabularnewline
23 & 0.723536694677497 & 0.552926610645006 & 0.276463305322503 \tabularnewline
24 & 0.730703536989123 & 0.538592926021754 & 0.269296463010877 \tabularnewline
25 & 0.68517664234341 & 0.62964671531318 & 0.31482335765659 \tabularnewline
26 & 0.596420443290629 & 0.807159113418742 & 0.403579556709371 \tabularnewline
27 & 0.492539212568866 & 0.985078425137732 & 0.507460787431134 \tabularnewline
28 & 0.784362095430275 & 0.431275809139449 & 0.215637904569725 \tabularnewline
29 & 0.810358517774808 & 0.379282964450384 & 0.189641482225192 \tabularnewline
30 & 0.7552229583016 & 0.489554083396801 & 0.2447770416984 \tabularnewline
31 & 0.845962144469959 & 0.308075711060083 & 0.154037855530041 \tabularnewline
32 & 0.79022784446969 & 0.419544311060618 & 0.209772155530309 \tabularnewline
33 & 0.785701148536538 & 0.428597702926923 & 0.214298851463462 \tabularnewline
34 & 0.852491217869416 & 0.295017564261168 & 0.147508782130584 \tabularnewline
35 & 0.761412253942013 & 0.477175492115974 & 0.238587746057987 \tabularnewline
36 & 0.653177116653854 & 0.693645766692291 & 0.346822883346146 \tabularnewline
37 & 0.570194336759361 & 0.859611326481278 & 0.429805663240639 \tabularnewline
38 & 0.442244381770368 & 0.884488763540736 & 0.557755618229632 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&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]20[/C][C]0.778370160732379[/C][C]0.443259678535243[/C][C]0.221629839267621[/C][/ROW]
[ROW][C]21[/C][C]0.65524922208413[/C][C]0.689501555831741[/C][C]0.34475077791587[/C][/ROW]
[ROW][C]22[/C][C]0.659685025455613[/C][C]0.680629949088775[/C][C]0.340314974544387[/C][/ROW]
[ROW][C]23[/C][C]0.723536694677497[/C][C]0.552926610645006[/C][C]0.276463305322503[/C][/ROW]
[ROW][C]24[/C][C]0.730703536989123[/C][C]0.538592926021754[/C][C]0.269296463010877[/C][/ROW]
[ROW][C]25[/C][C]0.68517664234341[/C][C]0.62964671531318[/C][C]0.31482335765659[/C][/ROW]
[ROW][C]26[/C][C]0.596420443290629[/C][C]0.807159113418742[/C][C]0.403579556709371[/C][/ROW]
[ROW][C]27[/C][C]0.492539212568866[/C][C]0.985078425137732[/C][C]0.507460787431134[/C][/ROW]
[ROW][C]28[/C][C]0.784362095430275[/C][C]0.431275809139449[/C][C]0.215637904569725[/C][/ROW]
[ROW][C]29[/C][C]0.810358517774808[/C][C]0.379282964450384[/C][C]0.189641482225192[/C][/ROW]
[ROW][C]30[/C][C]0.7552229583016[/C][C]0.489554083396801[/C][C]0.2447770416984[/C][/ROW]
[ROW][C]31[/C][C]0.845962144469959[/C][C]0.308075711060083[/C][C]0.154037855530041[/C][/ROW]
[ROW][C]32[/C][C]0.79022784446969[/C][C]0.419544311060618[/C][C]0.209772155530309[/C][/ROW]
[ROW][C]33[/C][C]0.785701148536538[/C][C]0.428597702926923[/C][C]0.214298851463462[/C][/ROW]
[ROW][C]34[/C][C]0.852491217869416[/C][C]0.295017564261168[/C][C]0.147508782130584[/C][/ROW]
[ROW][C]35[/C][C]0.761412253942013[/C][C]0.477175492115974[/C][C]0.238587746057987[/C][/ROW]
[ROW][C]36[/C][C]0.653177116653854[/C][C]0.693645766692291[/C][C]0.346822883346146[/C][/ROW]
[ROW][C]37[/C][C]0.570194336759361[/C][C]0.859611326481278[/C][C]0.429805663240639[/C][/ROW]
[ROW][C]38[/C][C]0.442244381770368[/C][C]0.884488763540736[/C][C]0.557755618229632[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111400&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
200.7783701607323790.4432596785352430.221629839267621
210.655249222084130.6895015558317410.34475077791587
220.6596850254556130.6806299490887750.340314974544387
230.7235366946774970.5529266106450060.276463305322503
240.7307035369891230.5385929260217540.269296463010877
250.685176642343410.629646715313180.31482335765659
260.5964204432906290.8071591134187420.403579556709371
270.4925392125688660.9850784251377320.507460787431134
280.7843620954302750.4312758091394490.215637904569725
290.8103585177748080.3792829644503840.189641482225192
300.75522295830160.4895540833968010.2447770416984
310.8459621444699590.3080757110600830.154037855530041
320.790227844469690.4195443110606180.209772155530309
330.7857011485365380.4285977029269230.214298851463462
340.8524912178694160.2950175642611680.147508782130584
350.7614122539420130.4771754921159740.238587746057987
360.6531771166538540.6936457666922910.346822883346146
370.5701943367593610.8596113264812780.429805663240639
380.4422443817703680.8844887635407360.557755618229632







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111400&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111400&T=6

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ; par4 = no ;
Parameters (R input):
par1 = 5 ; 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')
}