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:03:58 -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/t1261058705c8kxk2cmzjohkel.htm/, Retrieved Tue, 30 Apr 2024 02:17:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68899, Retrieved Tue, 30 Apr 2024 02:17:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
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:03:58] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
werklh[t] = + 8.64886359752554 -0.152636795515909inflatie[t] + 0.337687549130172M1[t] + 0.191582077309546M2[t] -0.108417922690454M3[t] -0.335892545883318M4[t] -0.198945281793636M5[t] + 0.065791038654773M6[t] + 0.114949246385727M7[t] -0.0233671690761815M8[t] -0.229472640896818M9[t] -0.498630848627772M10[t] -0.598630848627772M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werklh[t] =  +  8.64886359752554 -0.152636795515909inflatie[t] +  0.337687549130172M1[t] +  0.191582077309546M2[t] -0.108417922690454M3[t] -0.335892545883318M4[t] -0.198945281793636M5[t] +  0.065791038654773M6[t] +  0.114949246385727M7[t] -0.0233671690761815M8[t] -0.229472640896818M9[t] -0.498630848627772M10[t] -0.598630848627772M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68899&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werklh[t] =  +  8.64886359752554 -0.152636795515909inflatie[t] +  0.337687549130172M1[t] +  0.191582077309546M2[t] -0.108417922690454M3[t] -0.335892545883318M4[t] -0.198945281793636M5[t] +  0.065791038654773M6[t] +  0.114949246385727M7[t] -0.0233671690761815M8[t] -0.229472640896818M9[t] -0.498630848627772M10[t] -0.598630848627772M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68899&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68899&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] = + 8.64886359752554 -0.152636795515909inflatie[t] + 0.337687549130172M1[t] + 0.191582077309546M2[t] -0.108417922690454M3[t] -0.335892545883318M4[t] -0.198945281793636M5[t] + 0.065791038654773M6[t] + 0.114949246385727M7[t] -0.0233671690761815M8[t] -0.229472640896818M9[t] -0.498630848627772M10[t] -0.598630848627772M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.648863597525540.41120821.032800
inflatie-0.1526367955159090.06471-2.35880.0225440.011272
M10.3376875491301720.4446830.75940.4514120.225706
M20.1915820773095460.444450.43110.6683990.3342
M3-0.1084179226904540.44445-0.24390.8083410.40417
M4-0.3358925458833180.443584-0.75720.4526950.226348
M5-0.1989452817936360.443507-0.44860.6558010.3279
M60.0657910386547730.4431760.14850.882620.44131
M70.1149492463857270.4433630.25930.7965620.398281
M8-0.02336716907618150.443023-0.05270.9581590.479079
M9-0.2294726408968180.44294-0.51810.6068410.303421
M10-0.4986308486277720.442843-1.1260.2658920.132946
M11-0.5986308486277720.442843-1.35180.1829130.091456

\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) & 8.64886359752554 & 0.411208 & 21.0328 & 0 & 0 \tabularnewline
inflatie & -0.152636795515909 & 0.06471 & -2.3588 & 0.022544 & 0.011272 \tabularnewline
M1 & 0.337687549130172 & 0.444683 & 0.7594 & 0.451412 & 0.225706 \tabularnewline
M2 & 0.191582077309546 & 0.44445 & 0.4311 & 0.668399 & 0.3342 \tabularnewline
M3 & -0.108417922690454 & 0.44445 & -0.2439 & 0.808341 & 0.40417 \tabularnewline
M4 & -0.335892545883318 & 0.443584 & -0.7572 & 0.452695 & 0.226348 \tabularnewline
M5 & -0.198945281793636 & 0.443507 & -0.4486 & 0.655801 & 0.3279 \tabularnewline
M6 & 0.065791038654773 & 0.443176 & 0.1485 & 0.88262 & 0.44131 \tabularnewline
M7 & 0.114949246385727 & 0.443363 & 0.2593 & 0.796562 & 0.398281 \tabularnewline
M8 & -0.0233671690761815 & 0.443023 & -0.0527 & 0.958159 & 0.479079 \tabularnewline
M9 & -0.229472640896818 & 0.44294 & -0.5181 & 0.606841 & 0.303421 \tabularnewline
M10 & -0.498630848627772 & 0.442843 & -1.126 & 0.265892 & 0.132946 \tabularnewline
M11 & -0.598630848627772 & 0.442843 & -1.3518 & 0.182913 & 0.091456 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68899&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]8.64886359752554[/C][C]0.411208[/C][C]21.0328[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]inflatie[/C][C]-0.152636795515909[/C][C]0.06471[/C][C]-2.3588[/C][C]0.022544[/C][C]0.011272[/C][/ROW]
[ROW][C]M1[/C][C]0.337687549130172[/C][C]0.444683[/C][C]0.7594[/C][C]0.451412[/C][C]0.225706[/C][/ROW]
[ROW][C]M2[/C][C]0.191582077309546[/C][C]0.44445[/C][C]0.4311[/C][C]0.668399[/C][C]0.3342[/C][/ROW]
[ROW][C]M3[/C][C]-0.108417922690454[/C][C]0.44445[/C][C]-0.2439[/C][C]0.808341[/C][C]0.40417[/C][/ROW]
[ROW][C]M4[/C][C]-0.335892545883318[/C][C]0.443584[/C][C]-0.7572[/C][C]0.452695[/C][C]0.226348[/C][/ROW]
[ROW][C]M5[/C][C]-0.198945281793636[/C][C]0.443507[/C][C]-0.4486[/C][C]0.655801[/C][C]0.3279[/C][/ROW]
[ROW][C]M6[/C][C]0.065791038654773[/C][C]0.443176[/C][C]0.1485[/C][C]0.88262[/C][C]0.44131[/C][/ROW]
[ROW][C]M7[/C][C]0.114949246385727[/C][C]0.443363[/C][C]0.2593[/C][C]0.796562[/C][C]0.398281[/C][/ROW]
[ROW][C]M8[/C][C]-0.0233671690761815[/C][C]0.443023[/C][C]-0.0527[/C][C]0.958159[/C][C]0.479079[/C][/ROW]
[ROW][C]M9[/C][C]-0.229472640896818[/C][C]0.44294[/C][C]-0.5181[/C][C]0.606841[/C][C]0.303421[/C][/ROW]
[ROW][C]M10[/C][C]-0.498630848627772[/C][C]0.442843[/C][C]-1.126[/C][C]0.265892[/C][C]0.132946[/C][/ROW]
[ROW][C]M11[/C][C]-0.598630848627772[/C][C]0.442843[/C][C]-1.3518[/C][C]0.182913[/C][C]0.091456[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68899&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68899&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)8.648863597525540.41120821.032800
inflatie-0.1526367955159090.06471-2.35880.0225440.011272
M10.3376875491301720.4446830.75940.4514120.225706
M20.1915820773095460.444450.43110.6683990.3342
M3-0.1084179226904540.44445-0.24390.8083410.40417
M4-0.3358925458833180.443584-0.75720.4526950.226348
M5-0.1989452817936360.443507-0.44860.6558010.3279
M60.0657910386547730.4431760.14850.882620.44131
M70.1149492463857270.4433630.25930.7965620.398281
M8-0.02336716907618150.443023-0.05270.9581590.479079
M9-0.2294726408968180.44294-0.51810.6068410.303421
M10-0.4986308486277720.442843-1.1260.2658920.132946
M11-0.5986308486277720.442843-1.35180.1829130.091456







Multiple Linear Regression - Regression Statistics
Multiple R0.470499971547118
R-squared0.221370223225839
Adjusted R-squared0.0225711312835001
F-TEST (value)1.11353739628774
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.372158752790684
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.700050093722839
Sum Squared Residuals23.0332962849037

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.470499971547118 \tabularnewline
R-squared & 0.221370223225839 \tabularnewline
Adjusted R-squared & 0.0225711312835001 \tabularnewline
F-TEST (value) & 1.11353739628774 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.372158752790684 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.700050093722839 \tabularnewline
Sum Squared Residuals & 23.0332962849037 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68899&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.470499971547118[/C][/ROW]
[ROW][C]R-squared[/C][C]0.221370223225839[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0225711312835001[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.11353739628774[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.372158752790684[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.700050093722839[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]23.0332962849037[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68899&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68899&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.470499971547118
R-squared0.221370223225839
Adjusted R-squared0.0225711312835001
F-TEST (value)1.11353739628774
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.372158752790684
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.700050093722839
Sum Squared Residuals23.0332962849037







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.38.376003964592130.923996035407869
29.38.260425851874641.03957414812536
38.77.823052735910320.876947264089681
48.27.656632830923820.543367169076181
58.37.854634813219860.445365186780136
68.58.104107454116680.395892545883319
78.68.107474623192860.492525376807137
88.57.8928398099730.607160190027
98.27.747789056358730.452210943641272
108.17.493894528179360.606105471820636
117.97.3328398099730.567160190027
128.67.931470658600770.668529341399227
138.78.238630848627760.461369151372237
148.78.077261697255550.622738302744454
158.57.899371133668270.600628866331727
168.47.656632830923820.743367169076182
178.57.717261697255550.782738302744454
188.77.981998017703950.718001982296045
198.78.031156225434910.66884377456509
208.67.984421887282550.615578112717454
218.57.717261697255550.782738302744455
228.37.417576130421410.882423869578592
2387.363367169076180.636632830923818
248.27.977261697255550.222738302744454
258.18.3302129259373-0.230212925937309
268.18.24516217232305-0.145162172323046
2787.975689531426230.0243104685737725
287.97.702423869578590.197576130421409
297.97.824107454116680.075892545883318
3088.14989849277145-0.149898492771455
3188.18379302095082-0.183793020950818
327.98.04547660548891-0.145476605488909
3387.839371133668270.160628866331727
347.77.646531323695270.0534686763047275
357.27.54653132369527-0.346531323695273
367.58.14516217232305-0.645162172323045
377.38.49811340100481-1.19811340100481
3878.321480570081-1.321480570081
3977.89937113366827-0.899371133668273
4077.56505075361427-0.565050753614273
417.27.67147065860077-0.471470658600773
427.37.87515226084282-0.575152260842818
437.17.90904678902218-0.809046789022182
446.87.64862093714754-0.848620937147545
456.47.48830650398168-1.08830650398168
466.17.06651150073482-0.966511500734817
476.56.85966574387368-0.359665743873681
487.77.443032912949860.256967087050138
497.97.857038859837990.0429611401620114
507.57.69566970846577-0.195669708465772
516.97.5025154653269-0.602515465326908
526.67.5192597149595-0.9192597149595
536.97.73252537680714-0.832525376807136
547.78.08884377456509-0.388843774565091
5588.16852934139923-0.168529341399227
5688.228640760108-0.228640760108001
577.78.00727160873577-0.307271608735773
587.37.87548651696914-0.575486516969137
597.47.89759595338186-0.497595953381864
608.18.60307255887077-0.503072558870774

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.3 & 8.37600396459213 & 0.923996035407869 \tabularnewline
2 & 9.3 & 8.26042585187464 & 1.03957414812536 \tabularnewline
3 & 8.7 & 7.82305273591032 & 0.876947264089681 \tabularnewline
4 & 8.2 & 7.65663283092382 & 0.543367169076181 \tabularnewline
5 & 8.3 & 7.85463481321986 & 0.445365186780136 \tabularnewline
6 & 8.5 & 8.10410745411668 & 0.395892545883319 \tabularnewline
7 & 8.6 & 8.10747462319286 & 0.492525376807137 \tabularnewline
8 & 8.5 & 7.892839809973 & 0.607160190027 \tabularnewline
9 & 8.2 & 7.74778905635873 & 0.452210943641272 \tabularnewline
10 & 8.1 & 7.49389452817936 & 0.606105471820636 \tabularnewline
11 & 7.9 & 7.332839809973 & 0.567160190027 \tabularnewline
12 & 8.6 & 7.93147065860077 & 0.668529341399227 \tabularnewline
13 & 8.7 & 8.23863084862776 & 0.461369151372237 \tabularnewline
14 & 8.7 & 8.07726169725555 & 0.622738302744454 \tabularnewline
15 & 8.5 & 7.89937113366827 & 0.600628866331727 \tabularnewline
16 & 8.4 & 7.65663283092382 & 0.743367169076182 \tabularnewline
17 & 8.5 & 7.71726169725555 & 0.782738302744454 \tabularnewline
18 & 8.7 & 7.98199801770395 & 0.718001982296045 \tabularnewline
19 & 8.7 & 8.03115622543491 & 0.66884377456509 \tabularnewline
20 & 8.6 & 7.98442188728255 & 0.615578112717454 \tabularnewline
21 & 8.5 & 7.71726169725555 & 0.782738302744455 \tabularnewline
22 & 8.3 & 7.41757613042141 & 0.882423869578592 \tabularnewline
23 & 8 & 7.36336716907618 & 0.636632830923818 \tabularnewline
24 & 8.2 & 7.97726169725555 & 0.222738302744454 \tabularnewline
25 & 8.1 & 8.3302129259373 & -0.230212925937309 \tabularnewline
26 & 8.1 & 8.24516217232305 & -0.145162172323046 \tabularnewline
27 & 8 & 7.97568953142623 & 0.0243104685737725 \tabularnewline
28 & 7.9 & 7.70242386957859 & 0.197576130421409 \tabularnewline
29 & 7.9 & 7.82410745411668 & 0.075892545883318 \tabularnewline
30 & 8 & 8.14989849277145 & -0.149898492771455 \tabularnewline
31 & 8 & 8.18379302095082 & -0.183793020950818 \tabularnewline
32 & 7.9 & 8.04547660548891 & -0.145476605488909 \tabularnewline
33 & 8 & 7.83937113366827 & 0.160628866331727 \tabularnewline
34 & 7.7 & 7.64653132369527 & 0.0534686763047275 \tabularnewline
35 & 7.2 & 7.54653132369527 & -0.346531323695273 \tabularnewline
36 & 7.5 & 8.14516217232305 & -0.645162172323045 \tabularnewline
37 & 7.3 & 8.49811340100481 & -1.19811340100481 \tabularnewline
38 & 7 & 8.321480570081 & -1.321480570081 \tabularnewline
39 & 7 & 7.89937113366827 & -0.899371133668273 \tabularnewline
40 & 7 & 7.56505075361427 & -0.565050753614273 \tabularnewline
41 & 7.2 & 7.67147065860077 & -0.471470658600773 \tabularnewline
42 & 7.3 & 7.87515226084282 & -0.575152260842818 \tabularnewline
43 & 7.1 & 7.90904678902218 & -0.809046789022182 \tabularnewline
44 & 6.8 & 7.64862093714754 & -0.848620937147545 \tabularnewline
45 & 6.4 & 7.48830650398168 & -1.08830650398168 \tabularnewline
46 & 6.1 & 7.06651150073482 & -0.966511500734817 \tabularnewline
47 & 6.5 & 6.85966574387368 & -0.359665743873681 \tabularnewline
48 & 7.7 & 7.44303291294986 & 0.256967087050138 \tabularnewline
49 & 7.9 & 7.85703885983799 & 0.0429611401620114 \tabularnewline
50 & 7.5 & 7.69566970846577 & -0.195669708465772 \tabularnewline
51 & 6.9 & 7.5025154653269 & -0.602515465326908 \tabularnewline
52 & 6.6 & 7.5192597149595 & -0.9192597149595 \tabularnewline
53 & 6.9 & 7.73252537680714 & -0.832525376807136 \tabularnewline
54 & 7.7 & 8.08884377456509 & -0.388843774565091 \tabularnewline
55 & 8 & 8.16852934139923 & -0.168529341399227 \tabularnewline
56 & 8 & 8.228640760108 & -0.228640760108001 \tabularnewline
57 & 7.7 & 8.00727160873577 & -0.307271608735773 \tabularnewline
58 & 7.3 & 7.87548651696914 & -0.575486516969137 \tabularnewline
59 & 7.4 & 7.89759595338186 & -0.497595953381864 \tabularnewline
60 & 8.1 & 8.60307255887077 & -0.503072558870774 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68899&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]8.37600396459213[/C][C]0.923996035407869[/C][/ROW]
[ROW][C]2[/C][C]9.3[/C][C]8.26042585187464[/C][C]1.03957414812536[/C][/ROW]
[ROW][C]3[/C][C]8.7[/C][C]7.82305273591032[/C][C]0.876947264089681[/C][/ROW]
[ROW][C]4[/C][C]8.2[/C][C]7.65663283092382[/C][C]0.543367169076181[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]7.85463481321986[/C][C]0.445365186780136[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.10410745411668[/C][C]0.395892545883319[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.10747462319286[/C][C]0.492525376807137[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]7.892839809973[/C][C]0.607160190027[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]7.74778905635873[/C][C]0.452210943641272[/C][/ROW]
[ROW][C]10[/C][C]8.1[/C][C]7.49389452817936[/C][C]0.606105471820636[/C][/ROW]
[ROW][C]11[/C][C]7.9[/C][C]7.332839809973[/C][C]0.567160190027[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]7.93147065860077[/C][C]0.668529341399227[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.23863084862776[/C][C]0.461369151372237[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.07726169725555[/C][C]0.622738302744454[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]7.89937113366827[/C][C]0.600628866331727[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]7.65663283092382[/C][C]0.743367169076182[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]7.71726169725555[/C][C]0.782738302744454[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]7.98199801770395[/C][C]0.718001982296045[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.03115622543491[/C][C]0.66884377456509[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]7.98442188728255[/C][C]0.615578112717454[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]7.71726169725555[/C][C]0.782738302744455[/C][/ROW]
[ROW][C]22[/C][C]8.3[/C][C]7.41757613042141[/C][C]0.882423869578592[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.36336716907618[/C][C]0.636632830923818[/C][/ROW]
[ROW][C]24[/C][C]8.2[/C][C]7.97726169725555[/C][C]0.222738302744454[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]8.3302129259373[/C][C]-0.230212925937309[/C][/ROW]
[ROW][C]26[/C][C]8.1[/C][C]8.24516217232305[/C][C]-0.145162172323046[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.97568953142623[/C][C]0.0243104685737725[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.70242386957859[/C][C]0.197576130421409[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.82410745411668[/C][C]0.075892545883318[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.14989849277145[/C][C]-0.149898492771455[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]8.18379302095082[/C][C]-0.183793020950818[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.04547660548891[/C][C]-0.145476605488909[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.83937113366827[/C][C]0.160628866331727[/C][/ROW]
[ROW][C]34[/C][C]7.7[/C][C]7.64653132369527[/C][C]0.0534686763047275[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.54653132369527[/C][C]-0.346531323695273[/C][/ROW]
[ROW][C]36[/C][C]7.5[/C][C]8.14516217232305[/C][C]-0.645162172323045[/C][/ROW]
[ROW][C]37[/C][C]7.3[/C][C]8.49811340100481[/C][C]-1.19811340100481[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]8.321480570081[/C][C]-1.321480570081[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.89937113366827[/C][C]-0.899371133668273[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.56505075361427[/C][C]-0.565050753614273[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.67147065860077[/C][C]-0.471470658600773[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.87515226084282[/C][C]-0.575152260842818[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.90904678902218[/C][C]-0.809046789022182[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.64862093714754[/C][C]-0.848620937147545[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]7.48830650398168[/C][C]-1.08830650398168[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]7.06651150073482[/C][C]-0.966511500734817[/C][/ROW]
[ROW][C]47[/C][C]6.5[/C][C]6.85966574387368[/C][C]-0.359665743873681[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.44303291294986[/C][C]0.256967087050138[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]7.85703885983799[/C][C]0.0429611401620114[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]7.69566970846577[/C][C]-0.195669708465772[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.5025154653269[/C][C]-0.602515465326908[/C][/ROW]
[ROW][C]52[/C][C]6.6[/C][C]7.5192597149595[/C][C]-0.9192597149595[/C][/ROW]
[ROW][C]53[/C][C]6.9[/C][C]7.73252537680714[/C][C]-0.832525376807136[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]8.08884377456509[/C][C]-0.388843774565091[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]8.16852934139923[/C][C]-0.168529341399227[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]8.228640760108[/C][C]-0.228640760108001[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]8.00727160873577[/C][C]-0.307271608735773[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.87548651696914[/C][C]-0.575486516969137[/C][/ROW]
[ROW][C]59[/C][C]7.4[/C][C]7.89759595338186[/C][C]-0.497595953381864[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]8.60307255887077[/C][C]-0.503072558870774[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68899&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68899&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.38.376003964592130.923996035407869
29.38.260425851874641.03957414812536
38.77.823052735910320.876947264089681
48.27.656632830923820.543367169076181
58.37.854634813219860.445365186780136
68.58.104107454116680.395892545883319
78.68.107474623192860.492525376807137
88.57.8928398099730.607160190027
98.27.747789056358730.452210943641272
108.17.493894528179360.606105471820636
117.97.3328398099730.567160190027
128.67.931470658600770.668529341399227
138.78.238630848627760.461369151372237
148.78.077261697255550.622738302744454
158.57.899371133668270.600628866331727
168.47.656632830923820.743367169076182
178.57.717261697255550.782738302744454
188.77.981998017703950.718001982296045
198.78.031156225434910.66884377456509
208.67.984421887282550.615578112717454
218.57.717261697255550.782738302744455
228.37.417576130421410.882423869578592
2387.363367169076180.636632830923818
248.27.977261697255550.222738302744454
258.18.3302129259373-0.230212925937309
268.18.24516217232305-0.145162172323046
2787.975689531426230.0243104685737725
287.97.702423869578590.197576130421409
297.97.824107454116680.075892545883318
3088.14989849277145-0.149898492771455
3188.18379302095082-0.183793020950818
327.98.04547660548891-0.145476605488909
3387.839371133668270.160628866331727
347.77.646531323695270.0534686763047275
357.27.54653132369527-0.346531323695273
367.58.14516217232305-0.645162172323045
377.38.49811340100481-1.19811340100481
3878.321480570081-1.321480570081
3977.89937113366827-0.899371133668273
4077.56505075361427-0.565050753614273
417.27.67147065860077-0.471470658600773
427.37.87515226084282-0.575152260842818
437.17.90904678902218-0.809046789022182
446.87.64862093714754-0.848620937147545
456.47.48830650398168-1.08830650398168
466.17.06651150073482-0.966511500734817
476.56.85966574387368-0.359665743873681
487.77.443032912949860.256967087050138
497.97.857038859837990.0429611401620114
507.57.69566970846577-0.195669708465772
516.97.5025154653269-0.602515465326908
526.67.5192597149595-0.9192597149595
536.97.73252537680714-0.832525376807136
547.78.08884377456509-0.388843774565091
5588.16852934139923-0.168529341399227
5688.228640760108-0.228640760108001
577.78.00727160873577-0.307271608735773
587.37.87548651696914-0.575486516969137
597.47.89759595338186-0.497595953381864
608.18.60307255887077-0.503072558870774







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04416014401230170.08832028802460340.955839855987698
170.05128939897961710.1025787979592340.948710601020383
180.03624675866971530.07249351733943060.963753241330285
190.01863093163810730.03726186327621460.981369068361893
200.008526845876972170.01705369175394430.991473154123028
210.00715821244528370.01431642489056740.992841787554716
220.00723330486163480.01446660972326960.992766695138365
230.004793437017282090.009586874034564180.995206562982718
240.004835082835692280.009670165671384570.995164917164308
250.03761947831864760.07523895663729520.962380521681352
260.1026226405754440.2052452811508870.897377359424556
270.1200700942934790.2401401885869580.879929905706521
280.1377053970278210.2754107940556430.862294602972179
290.1512904658201740.3025809316403480.848709534179826
300.1331115775932640.2662231551865290.866888422406736
310.1136217675531900.2272435351063800.88637823244681
320.09741691051479650.1948338210295930.902583089485203
330.1086780479560710.2173560959121420.891321952043929
340.1296518804048030.2593037608096060.870348119595197
350.0900585395158170.1801170790316340.909941460484183
360.08031030247605150.1606206049521030.919689697523949
370.2215601292116510.4431202584233010.77843987078835
380.5924159098770440.8151681802459120.407584090122956
390.6932139427839290.6135721144321420.306786057216071
400.7581415732503940.4837168534992110.241858426749606
410.7600924080031120.4798151839937770.239907591996888
420.7256887958152370.5486224083695260.274311204184763
430.7332903788034130.5334192423931730.266709621196587
440.7148114947831570.5703770104336870.285188505216843

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0441601440123017 & 0.0883202880246034 & 0.955839855987698 \tabularnewline
17 & 0.0512893989796171 & 0.102578797959234 & 0.948710601020383 \tabularnewline
18 & 0.0362467586697153 & 0.0724935173394306 & 0.963753241330285 \tabularnewline
19 & 0.0186309316381073 & 0.0372618632762146 & 0.981369068361893 \tabularnewline
20 & 0.00852684587697217 & 0.0170536917539443 & 0.991473154123028 \tabularnewline
21 & 0.0071582124452837 & 0.0143164248905674 & 0.992841787554716 \tabularnewline
22 & 0.0072333048616348 & 0.0144666097232696 & 0.992766695138365 \tabularnewline
23 & 0.00479343701728209 & 0.00958687403456418 & 0.995206562982718 \tabularnewline
24 & 0.00483508283569228 & 0.00967016567138457 & 0.995164917164308 \tabularnewline
25 & 0.0376194783186476 & 0.0752389566372952 & 0.962380521681352 \tabularnewline
26 & 0.102622640575444 & 0.205245281150887 & 0.897377359424556 \tabularnewline
27 & 0.120070094293479 & 0.240140188586958 & 0.879929905706521 \tabularnewline
28 & 0.137705397027821 & 0.275410794055643 & 0.862294602972179 \tabularnewline
29 & 0.151290465820174 & 0.302580931640348 & 0.848709534179826 \tabularnewline
30 & 0.133111577593264 & 0.266223155186529 & 0.866888422406736 \tabularnewline
31 & 0.113621767553190 & 0.227243535106380 & 0.88637823244681 \tabularnewline
32 & 0.0974169105147965 & 0.194833821029593 & 0.902583089485203 \tabularnewline
33 & 0.108678047956071 & 0.217356095912142 & 0.891321952043929 \tabularnewline
34 & 0.129651880404803 & 0.259303760809606 & 0.870348119595197 \tabularnewline
35 & 0.090058539515817 & 0.180117079031634 & 0.909941460484183 \tabularnewline
36 & 0.0803103024760515 & 0.160620604952103 & 0.919689697523949 \tabularnewline
37 & 0.221560129211651 & 0.443120258423301 & 0.77843987078835 \tabularnewline
38 & 0.592415909877044 & 0.815168180245912 & 0.407584090122956 \tabularnewline
39 & 0.693213942783929 & 0.613572114432142 & 0.306786057216071 \tabularnewline
40 & 0.758141573250394 & 0.483716853499211 & 0.241858426749606 \tabularnewline
41 & 0.760092408003112 & 0.479815183993777 & 0.239907591996888 \tabularnewline
42 & 0.725688795815237 & 0.548622408369526 & 0.274311204184763 \tabularnewline
43 & 0.733290378803413 & 0.533419242393173 & 0.266709621196587 \tabularnewline
44 & 0.714811494783157 & 0.570377010433687 & 0.285188505216843 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68899&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]16[/C][C]0.0441601440123017[/C][C]0.0883202880246034[/C][C]0.955839855987698[/C][/ROW]
[ROW][C]17[/C][C]0.0512893989796171[/C][C]0.102578797959234[/C][C]0.948710601020383[/C][/ROW]
[ROW][C]18[/C][C]0.0362467586697153[/C][C]0.0724935173394306[/C][C]0.963753241330285[/C][/ROW]
[ROW][C]19[/C][C]0.0186309316381073[/C][C]0.0372618632762146[/C][C]0.981369068361893[/C][/ROW]
[ROW][C]20[/C][C]0.00852684587697217[/C][C]0.0170536917539443[/C][C]0.991473154123028[/C][/ROW]
[ROW][C]21[/C][C]0.0071582124452837[/C][C]0.0143164248905674[/C][C]0.992841787554716[/C][/ROW]
[ROW][C]22[/C][C]0.0072333048616348[/C][C]0.0144666097232696[/C][C]0.992766695138365[/C][/ROW]
[ROW][C]23[/C][C]0.00479343701728209[/C][C]0.00958687403456418[/C][C]0.995206562982718[/C][/ROW]
[ROW][C]24[/C][C]0.00483508283569228[/C][C]0.00967016567138457[/C][C]0.995164917164308[/C][/ROW]
[ROW][C]25[/C][C]0.0376194783186476[/C][C]0.0752389566372952[/C][C]0.962380521681352[/C][/ROW]
[ROW][C]26[/C][C]0.102622640575444[/C][C]0.205245281150887[/C][C]0.897377359424556[/C][/ROW]
[ROW][C]27[/C][C]0.120070094293479[/C][C]0.240140188586958[/C][C]0.879929905706521[/C][/ROW]
[ROW][C]28[/C][C]0.137705397027821[/C][C]0.275410794055643[/C][C]0.862294602972179[/C][/ROW]
[ROW][C]29[/C][C]0.151290465820174[/C][C]0.302580931640348[/C][C]0.848709534179826[/C][/ROW]
[ROW][C]30[/C][C]0.133111577593264[/C][C]0.266223155186529[/C][C]0.866888422406736[/C][/ROW]
[ROW][C]31[/C][C]0.113621767553190[/C][C]0.227243535106380[/C][C]0.88637823244681[/C][/ROW]
[ROW][C]32[/C][C]0.0974169105147965[/C][C]0.194833821029593[/C][C]0.902583089485203[/C][/ROW]
[ROW][C]33[/C][C]0.108678047956071[/C][C]0.217356095912142[/C][C]0.891321952043929[/C][/ROW]
[ROW][C]34[/C][C]0.129651880404803[/C][C]0.259303760809606[/C][C]0.870348119595197[/C][/ROW]
[ROW][C]35[/C][C]0.090058539515817[/C][C]0.180117079031634[/C][C]0.909941460484183[/C][/ROW]
[ROW][C]36[/C][C]0.0803103024760515[/C][C]0.160620604952103[/C][C]0.919689697523949[/C][/ROW]
[ROW][C]37[/C][C]0.221560129211651[/C][C]0.443120258423301[/C][C]0.77843987078835[/C][/ROW]
[ROW][C]38[/C][C]0.592415909877044[/C][C]0.815168180245912[/C][C]0.407584090122956[/C][/ROW]
[ROW][C]39[/C][C]0.693213942783929[/C][C]0.613572114432142[/C][C]0.306786057216071[/C][/ROW]
[ROW][C]40[/C][C]0.758141573250394[/C][C]0.483716853499211[/C][C]0.241858426749606[/C][/ROW]
[ROW][C]41[/C][C]0.760092408003112[/C][C]0.479815183993777[/C][C]0.239907591996888[/C][/ROW]
[ROW][C]42[/C][C]0.725688795815237[/C][C]0.548622408369526[/C][C]0.274311204184763[/C][/ROW]
[ROW][C]43[/C][C]0.733290378803413[/C][C]0.533419242393173[/C][C]0.266709621196587[/C][/ROW]
[ROW][C]44[/C][C]0.714811494783157[/C][C]0.570377010433687[/C][C]0.285188505216843[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68899&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68899&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
160.04416014401230170.08832028802460340.955839855987698
170.05128939897961710.1025787979592340.948710601020383
180.03624675866971530.07249351733943060.963753241330285
190.01863093163810730.03726186327621460.981369068361893
200.008526845876972170.01705369175394430.991473154123028
210.00715821244528370.01431642489056740.992841787554716
220.00723330486163480.01446660972326960.992766695138365
230.004793437017282090.009586874034564180.995206562982718
240.004835082835692280.009670165671384570.995164917164308
250.03761947831864760.07523895663729520.962380521681352
260.1026226405754440.2052452811508870.897377359424556
270.1200700942934790.2401401885869580.879929905706521
280.1377053970278210.2754107940556430.862294602972179
290.1512904658201740.3025809316403480.848709534179826
300.1331115775932640.2662231551865290.866888422406736
310.1136217675531900.2272435351063800.88637823244681
320.09741691051479650.1948338210295930.902583089485203
330.1086780479560710.2173560959121420.891321952043929
340.1296518804048030.2593037608096060.870348119595197
350.0900585395158170.1801170790316340.909941460484183
360.08031030247605150.1606206049521030.919689697523949
370.2215601292116510.4431202584233010.77843987078835
380.5924159098770440.8151681802459120.407584090122956
390.6932139427839290.6135721144321420.306786057216071
400.7581415732503940.4837168534992110.241858426749606
410.7600924080031120.4798151839937770.239907591996888
420.7256887958152370.5486224083695260.274311204184763
430.7332903788034130.5334192423931730.266709621196587
440.7148114947831570.5703770104336870.285188505216843







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0689655172413793NOK
5% type I error level60.206896551724138NOK
10% type I error level90.310344827586207NOK

\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 & 2 & 0.0689655172413793 & NOK \tabularnewline
5% type I error level & 6 & 0.206896551724138 & NOK \tabularnewline
10% type I error level & 9 & 0.310344827586207 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68899&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]2[/C][C]0.0689655172413793[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]6[/C][C]0.206896551724138[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]9[/C][C]0.310344827586207[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68899&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68899&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 level20.0689655172413793NOK
5% type I error level60.206896551724138NOK
10% type I error level90.310344827586207NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}