Free Statistics

of Irreproducible Research!

Author's title

multiple lineair regression aantal werklozen en nationale consumptieprijsin...

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 19 Nov 2009 03:31:14 -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/Nov/19/t12586268359tltg901o59th5o.htm/, Retrieved Fri, 19 Apr 2024 13:37:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57687, Retrieved Fri, 19 Apr 2024 13:37:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact159
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [multiple lineair ...] [2009-11-19 10:31:14] [a5b01ef1969ffd97a40c5fefe56a50d0] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.4	1.8
8.4	1.6
8.4	1.9
8.6	1.7
8.9	1.6
8.8	1.3
8.3	1.1
7.5	1.9
7.2	2.6
7.4	2.3
8.8	2.4
9.3	2.2
9.3	2
8.7	2.9
8.2	2.6
8.3	2.3
8.5	2.3
8.6	2.6
8.5	3.1
8.2	2.8
8.1	2.5
7.9	2.9
8.6	3.1
8.7	3.1
8.7	3.2
8.5	2.5
8.4	2.6
8.5	2.9
8.7	2.6
8.7	2.4
8.6	1.7
8.5	2
8.3	2.2
8	1.9
8.2	1.6
8.1	1.6
8.1	1.2
8	1.2
7.9	1.5
7.9	1.6
8	1.7
8	1.8
7.9	1.8
8	1.8
7.7	1.3
7.2	1.3
7.5	1.4
7.3	1.1
7	1.5
7	2.2
7	2.9
7.2	3.1
7.3	3.5
7.1	3.6
6.8	4.4
6.4	4.2
6.1	5.2
6.5	5.8
7.7	5.9
7.9	5.4
7.5	5.5




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Twk[t] = + 9.32102219883499 -0.0434462039257918Ncp[t] -0.230897994952704M1[t] -0.428452825775995M2[t] -0.532656150570269M3[t] -0.385548716149701M4[t] -0.178441281729133M5[t] -0.192202771387081M6[t] -0.382488564730965M7[t] -0.651036509917819M8[t] -0.855239834712093M9[t] -0.905525628055978M10[t] -0.117549269556894M11[t] -0.0262385103420519t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Twk[t] =  +  9.32102219883499 -0.0434462039257918Ncp[t] -0.230897994952704M1[t] -0.428452825775995M2[t] -0.532656150570269M3[t] -0.385548716149701M4[t] -0.178441281729133M5[t] -0.192202771387081M6[t] -0.382488564730965M7[t] -0.651036509917819M8[t] -0.855239834712093M9[t] -0.905525628055978M10[t] -0.117549269556894M11[t] -0.0262385103420519t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57687&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Twk[t] =  +  9.32102219883499 -0.0434462039257918Ncp[t] -0.230897994952704M1[t] -0.428452825775995M2[t] -0.532656150570269M3[t] -0.385548716149701M4[t] -0.178441281729133M5[t] -0.192202771387081M6[t] -0.382488564730965M7[t] -0.651036509917819M8[t] -0.855239834712093M9[t] -0.905525628055978M10[t] -0.117549269556894M11[t] -0.0262385103420519t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57687&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57687&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
Twk[t] = + 9.32102219883499 -0.0434462039257918Ncp[t] -0.230897994952704M1[t] -0.428452825775995M2[t] -0.532656150570269M3[t] -0.385548716149701M4[t] -0.178441281729133M5[t] -0.192202771387081M6[t] -0.382488564730965M7[t] -0.651036509917819M8[t] -0.855239834712093M9[t] -0.905525628055978M10[t] -0.117549269556894M11[t] -0.0262385103420519t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.321022198834990.26478235.202600
Ncp-0.04344620392579180.059251-0.73330.4670430.233521
M1-0.2308979949527040.287762-0.80240.4263650.213183
M2-0.4284528257759950.30258-1.4160.163370.081685
M3-0.5326561505702690.301729-1.76530.0840020.042001
M4-0.3855487161497010.301396-1.27920.2071030.103552
M5-0.1784412817291330.301105-0.59260.5562760.278138
M6-0.1922027713870810.300892-0.63880.5260690.263034
M7-0.3824885647309650.300586-1.27250.2094630.104732
M8-0.6510365099178190.300331-2.16770.0352770.017639
M9-0.8552398347120930.300351-2.84750.0065150.003258
M10-0.9055256280559780.300363-3.01480.0041370.002069
M11-0.1175492695568940.30033-0.39140.697270.348635
t-0.02623851034205190.00391-6.709800

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 9.32102219883499 & 0.264782 & 35.2026 & 0 & 0 \tabularnewline
Ncp & -0.0434462039257918 & 0.059251 & -0.7333 & 0.467043 & 0.233521 \tabularnewline
M1 & -0.230897994952704 & 0.287762 & -0.8024 & 0.426365 & 0.213183 \tabularnewline
M2 & -0.428452825775995 & 0.30258 & -1.416 & 0.16337 & 0.081685 \tabularnewline
M3 & -0.532656150570269 & 0.301729 & -1.7653 & 0.084002 & 0.042001 \tabularnewline
M4 & -0.385548716149701 & 0.301396 & -1.2792 & 0.207103 & 0.103552 \tabularnewline
M5 & -0.178441281729133 & 0.301105 & -0.5926 & 0.556276 & 0.278138 \tabularnewline
M6 & -0.192202771387081 & 0.300892 & -0.6388 & 0.526069 & 0.263034 \tabularnewline
M7 & -0.382488564730965 & 0.300586 & -1.2725 & 0.209463 & 0.104732 \tabularnewline
M8 & -0.651036509917819 & 0.300331 & -2.1677 & 0.035277 & 0.017639 \tabularnewline
M9 & -0.855239834712093 & 0.300351 & -2.8475 & 0.006515 & 0.003258 \tabularnewline
M10 & -0.905525628055978 & 0.300363 & -3.0148 & 0.004137 & 0.002069 \tabularnewline
M11 & -0.117549269556894 & 0.30033 & -0.3914 & 0.69727 & 0.348635 \tabularnewline
t & -0.0262385103420519 & 0.00391 & -6.7098 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57687&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]9.32102219883499[/C][C]0.264782[/C][C]35.2026[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Ncp[/C][C]-0.0434462039257918[/C][C]0.059251[/C][C]-0.7333[/C][C]0.467043[/C][C]0.233521[/C][/ROW]
[ROW][C]M1[/C][C]-0.230897994952704[/C][C]0.287762[/C][C]-0.8024[/C][C]0.426365[/C][C]0.213183[/C][/ROW]
[ROW][C]M2[/C][C]-0.428452825775995[/C][C]0.30258[/C][C]-1.416[/C][C]0.16337[/C][C]0.081685[/C][/ROW]
[ROW][C]M3[/C][C]-0.532656150570269[/C][C]0.301729[/C][C]-1.7653[/C][C]0.084002[/C][C]0.042001[/C][/ROW]
[ROW][C]M4[/C][C]-0.385548716149701[/C][C]0.301396[/C][C]-1.2792[/C][C]0.207103[/C][C]0.103552[/C][/ROW]
[ROW][C]M5[/C][C]-0.178441281729133[/C][C]0.301105[/C][C]-0.5926[/C][C]0.556276[/C][C]0.278138[/C][/ROW]
[ROW][C]M6[/C][C]-0.192202771387081[/C][C]0.300892[/C][C]-0.6388[/C][C]0.526069[/C][C]0.263034[/C][/ROW]
[ROW][C]M7[/C][C]-0.382488564730965[/C][C]0.300586[/C][C]-1.2725[/C][C]0.209463[/C][C]0.104732[/C][/ROW]
[ROW][C]M8[/C][C]-0.651036509917819[/C][C]0.300331[/C][C]-2.1677[/C][C]0.035277[/C][C]0.017639[/C][/ROW]
[ROW][C]M9[/C][C]-0.855239834712093[/C][C]0.300351[/C][C]-2.8475[/C][C]0.006515[/C][C]0.003258[/C][/ROW]
[ROW][C]M10[/C][C]-0.905525628055978[/C][C]0.300363[/C][C]-3.0148[/C][C]0.004137[/C][C]0.002069[/C][/ROW]
[ROW][C]M11[/C][C]-0.117549269556894[/C][C]0.30033[/C][C]-0.3914[/C][C]0.69727[/C][C]0.348635[/C][/ROW]
[ROW][C]t[/C][C]-0.0262385103420519[/C][C]0.00391[/C][C]-6.7098[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57687&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.321022198834990.26478235.202600
Ncp-0.04344620392579180.059251-0.73330.4670430.233521
M1-0.2308979949527040.287762-0.80240.4263650.213183
M2-0.4284528257759950.30258-1.4160.163370.081685
M3-0.5326561505702690.301729-1.76530.0840020.042001
M4-0.3855487161497010.301396-1.27920.2071030.103552
M5-0.1784412817291330.301105-0.59260.5562760.278138
M6-0.1922027713870810.300892-0.63880.5260690.263034
M7-0.3824885647309650.300586-1.27250.2094630.104732
M8-0.6510365099178190.300331-2.16770.0352770.017639
M9-0.8552398347120930.300351-2.84750.0065150.003258
M10-0.9055256280559780.300363-3.01480.0041370.002069
M11-0.1175492695568940.30033-0.39140.697270.348635
t-0.02623851034205190.00391-6.709800







Multiple Linear Regression - Regression Statistics
Multiple R0.801550717980588
R-squared0.642483553495197
Adjusted R-squared0.543596025738549
F-TEST (value)6.49711412622514
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value7.74234612421765e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.474343937759637
Sum Squared Residuals10.5751020505980

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.801550717980588 \tabularnewline
R-squared & 0.642483553495197 \tabularnewline
Adjusted R-squared & 0.543596025738549 \tabularnewline
F-TEST (value) & 6.49711412622514 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 7.74234612421765e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.474343937759637 \tabularnewline
Sum Squared Residuals & 10.5751020505980 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57687&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.801550717980588[/C][/ROW]
[ROW][C]R-squared[/C][C]0.642483553495197[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.543596025738549[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]6.49711412622514[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]7.74234612421765e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.474343937759637[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]10.5751020505980[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57687&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57687&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.801550717980588
R-squared0.642483553495197
Adjusted R-squared0.543596025738549
F-TEST (value)6.49711412622514
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value7.74234612421765e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.474343937759637
Sum Squared Residuals10.5751020505980







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.48.98568252647378-0.58568252647378
28.48.77057842609363-0.370578426093626
38.48.62710272977956-0.227102729779563
48.68.75666089464324-0.156660894643237
58.98.94187443911433-0.0418744391143314
68.88.91490830029207-0.114908300292068
78.38.7070732373913-0.407073237391291
87.58.37752981872175-0.877529818721754
97.28.11667564083737-0.916675640837373
107.48.05318519832917-0.653185198329174
118.88.81057842609363-0.0105784260936254
129.38.910578426093630.389421573906375
139.38.662131161584030.637868838415972
148.78.399236236885470.300763763114525
158.28.28182826292689-0.0818282629268865
168.38.41573104818314-0.115731048183139
178.58.59659997226166-0.096599972261655
188.68.543566111083920.0564338889160823
198.58.305318705435090.194681294564915
208.28.023566111083920.176433888916082
218.17.806158137125330.293841862874671
227.97.712255351869080.187744648130924
238.68.465303959240950.134696040759050
248.78.55661471845580.143385281544209
258.78.295133592768450.404866407231544
268.58.101752594351170.398247405648832
278.47.966966138822260.433033861177738
288.58.074801201723040.425198798276959
298.78.26870398697930.431296013020705
308.78.237393227764450.462606772235547
318.68.051281266826570.54871873317343
328.57.743460950119930.756539049880073
338.37.504329874198440.795670125801557
3487.440839431690240.559160568309756
358.28.21561114102501-0.0156111410250142
368.18.30692190023986-0.206921900239855
378.18.067163876515420.0328361234845840
3887.843370535350070.156629464649926
397.97.699894839036010.20010516096399
407.97.816419142721950.083580857278053
4187.992943446407880.00705655359211643
4287.94859882601530.0514011739846958
437.97.732074522329370.167925477670632
4487.437288066800460.562711933199538
457.77.228569333627030.471430666372967
467.27.15204502994110.0479549700589036
477.57.90943825770555-0.409438257705548
487.38.01378287809813-0.713782878098128
4977.73926789123306-0.739267891233055
5077.48506220731966-0.485062207319659
5177.32420802943528-0.324208029435278
527.27.43638771272864-0.236387712728636
537.37.59987815523684-0.299878155236835
547.17.55553353484426-0.455533534844256
556.87.30425226801769-0.504252268017686
566.47.01815505327394-0.618155053273939
576.16.74426701421182-0.644267014211822
586.56.64167498817041-0.141674988170410
597.77.399068215934860.300931784065137
607.97.51210207711260.3878979228874
617.57.250620951425260.249379048574735

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.4 & 8.98568252647378 & -0.58568252647378 \tabularnewline
2 & 8.4 & 8.77057842609363 & -0.370578426093626 \tabularnewline
3 & 8.4 & 8.62710272977956 & -0.227102729779563 \tabularnewline
4 & 8.6 & 8.75666089464324 & -0.156660894643237 \tabularnewline
5 & 8.9 & 8.94187443911433 & -0.0418744391143314 \tabularnewline
6 & 8.8 & 8.91490830029207 & -0.114908300292068 \tabularnewline
7 & 8.3 & 8.7070732373913 & -0.407073237391291 \tabularnewline
8 & 7.5 & 8.37752981872175 & -0.877529818721754 \tabularnewline
9 & 7.2 & 8.11667564083737 & -0.916675640837373 \tabularnewline
10 & 7.4 & 8.05318519832917 & -0.653185198329174 \tabularnewline
11 & 8.8 & 8.81057842609363 & -0.0105784260936254 \tabularnewline
12 & 9.3 & 8.91057842609363 & 0.389421573906375 \tabularnewline
13 & 9.3 & 8.66213116158403 & 0.637868838415972 \tabularnewline
14 & 8.7 & 8.39923623688547 & 0.300763763114525 \tabularnewline
15 & 8.2 & 8.28182826292689 & -0.0818282629268865 \tabularnewline
16 & 8.3 & 8.41573104818314 & -0.115731048183139 \tabularnewline
17 & 8.5 & 8.59659997226166 & -0.096599972261655 \tabularnewline
18 & 8.6 & 8.54356611108392 & 0.0564338889160823 \tabularnewline
19 & 8.5 & 8.30531870543509 & 0.194681294564915 \tabularnewline
20 & 8.2 & 8.02356611108392 & 0.176433888916082 \tabularnewline
21 & 8.1 & 7.80615813712533 & 0.293841862874671 \tabularnewline
22 & 7.9 & 7.71225535186908 & 0.187744648130924 \tabularnewline
23 & 8.6 & 8.46530395924095 & 0.134696040759050 \tabularnewline
24 & 8.7 & 8.5566147184558 & 0.143385281544209 \tabularnewline
25 & 8.7 & 8.29513359276845 & 0.404866407231544 \tabularnewline
26 & 8.5 & 8.10175259435117 & 0.398247405648832 \tabularnewline
27 & 8.4 & 7.96696613882226 & 0.433033861177738 \tabularnewline
28 & 8.5 & 8.07480120172304 & 0.425198798276959 \tabularnewline
29 & 8.7 & 8.2687039869793 & 0.431296013020705 \tabularnewline
30 & 8.7 & 8.23739322776445 & 0.462606772235547 \tabularnewline
31 & 8.6 & 8.05128126682657 & 0.54871873317343 \tabularnewline
32 & 8.5 & 7.74346095011993 & 0.756539049880073 \tabularnewline
33 & 8.3 & 7.50432987419844 & 0.795670125801557 \tabularnewline
34 & 8 & 7.44083943169024 & 0.559160568309756 \tabularnewline
35 & 8.2 & 8.21561114102501 & -0.0156111410250142 \tabularnewline
36 & 8.1 & 8.30692190023986 & -0.206921900239855 \tabularnewline
37 & 8.1 & 8.06716387651542 & 0.0328361234845840 \tabularnewline
38 & 8 & 7.84337053535007 & 0.156629464649926 \tabularnewline
39 & 7.9 & 7.69989483903601 & 0.20010516096399 \tabularnewline
40 & 7.9 & 7.81641914272195 & 0.083580857278053 \tabularnewline
41 & 8 & 7.99294344640788 & 0.00705655359211643 \tabularnewline
42 & 8 & 7.9485988260153 & 0.0514011739846958 \tabularnewline
43 & 7.9 & 7.73207452232937 & 0.167925477670632 \tabularnewline
44 & 8 & 7.43728806680046 & 0.562711933199538 \tabularnewline
45 & 7.7 & 7.22856933362703 & 0.471430666372967 \tabularnewline
46 & 7.2 & 7.1520450299411 & 0.0479549700589036 \tabularnewline
47 & 7.5 & 7.90943825770555 & -0.409438257705548 \tabularnewline
48 & 7.3 & 8.01378287809813 & -0.713782878098128 \tabularnewline
49 & 7 & 7.73926789123306 & -0.739267891233055 \tabularnewline
50 & 7 & 7.48506220731966 & -0.485062207319659 \tabularnewline
51 & 7 & 7.32420802943528 & -0.324208029435278 \tabularnewline
52 & 7.2 & 7.43638771272864 & -0.236387712728636 \tabularnewline
53 & 7.3 & 7.59987815523684 & -0.299878155236835 \tabularnewline
54 & 7.1 & 7.55553353484426 & -0.455533534844256 \tabularnewline
55 & 6.8 & 7.30425226801769 & -0.504252268017686 \tabularnewline
56 & 6.4 & 7.01815505327394 & -0.618155053273939 \tabularnewline
57 & 6.1 & 6.74426701421182 & -0.644267014211822 \tabularnewline
58 & 6.5 & 6.64167498817041 & -0.141674988170410 \tabularnewline
59 & 7.7 & 7.39906821593486 & 0.300931784065137 \tabularnewline
60 & 7.9 & 7.5121020771126 & 0.3878979228874 \tabularnewline
61 & 7.5 & 7.25062095142526 & 0.249379048574735 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57687&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]8.4[/C][C]8.98568252647378[/C][C]-0.58568252647378[/C][/ROW]
[ROW][C]2[/C][C]8.4[/C][C]8.77057842609363[/C][C]-0.370578426093626[/C][/ROW]
[ROW][C]3[/C][C]8.4[/C][C]8.62710272977956[/C][C]-0.227102729779563[/C][/ROW]
[ROW][C]4[/C][C]8.6[/C][C]8.75666089464324[/C][C]-0.156660894643237[/C][/ROW]
[ROW][C]5[/C][C]8.9[/C][C]8.94187443911433[/C][C]-0.0418744391143314[/C][/ROW]
[ROW][C]6[/C][C]8.8[/C][C]8.91490830029207[/C][C]-0.114908300292068[/C][/ROW]
[ROW][C]7[/C][C]8.3[/C][C]8.7070732373913[/C][C]-0.407073237391291[/C][/ROW]
[ROW][C]8[/C][C]7.5[/C][C]8.37752981872175[/C][C]-0.877529818721754[/C][/ROW]
[ROW][C]9[/C][C]7.2[/C][C]8.11667564083737[/C][C]-0.916675640837373[/C][/ROW]
[ROW][C]10[/C][C]7.4[/C][C]8.05318519832917[/C][C]-0.653185198329174[/C][/ROW]
[ROW][C]11[/C][C]8.8[/C][C]8.81057842609363[/C][C]-0.0105784260936254[/C][/ROW]
[ROW][C]12[/C][C]9.3[/C][C]8.91057842609363[/C][C]0.389421573906375[/C][/ROW]
[ROW][C]13[/C][C]9.3[/C][C]8.66213116158403[/C][C]0.637868838415972[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.39923623688547[/C][C]0.300763763114525[/C][/ROW]
[ROW][C]15[/C][C]8.2[/C][C]8.28182826292689[/C][C]-0.0818282629268865[/C][/ROW]
[ROW][C]16[/C][C]8.3[/C][C]8.41573104818314[/C][C]-0.115731048183139[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.59659997226166[/C][C]-0.096599972261655[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.54356611108392[/C][C]0.0564338889160823[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.30531870543509[/C][C]0.194681294564915[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]8.02356611108392[/C][C]0.176433888916082[/C][/ROW]
[ROW][C]21[/C][C]8.1[/C][C]7.80615813712533[/C][C]0.293841862874671[/C][/ROW]
[ROW][C]22[/C][C]7.9[/C][C]7.71225535186908[/C][C]0.187744648130924[/C][/ROW]
[ROW][C]23[/C][C]8.6[/C][C]8.46530395924095[/C][C]0.134696040759050[/C][/ROW]
[ROW][C]24[/C][C]8.7[/C][C]8.5566147184558[/C][C]0.143385281544209[/C][/ROW]
[ROW][C]25[/C][C]8.7[/C][C]8.29513359276845[/C][C]0.404866407231544[/C][/ROW]
[ROW][C]26[/C][C]8.5[/C][C]8.10175259435117[/C][C]0.398247405648832[/C][/ROW]
[ROW][C]27[/C][C]8.4[/C][C]7.96696613882226[/C][C]0.433033861177738[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]8.07480120172304[/C][C]0.425198798276959[/C][/ROW]
[ROW][C]29[/C][C]8.7[/C][C]8.2687039869793[/C][C]0.431296013020705[/C][/ROW]
[ROW][C]30[/C][C]8.7[/C][C]8.23739322776445[/C][C]0.462606772235547[/C][/ROW]
[ROW][C]31[/C][C]8.6[/C][C]8.05128126682657[/C][C]0.54871873317343[/C][/ROW]
[ROW][C]32[/C][C]8.5[/C][C]7.74346095011993[/C][C]0.756539049880073[/C][/ROW]
[ROW][C]33[/C][C]8.3[/C][C]7.50432987419844[/C][C]0.795670125801557[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.44083943169024[/C][C]0.559160568309756[/C][/ROW]
[ROW][C]35[/C][C]8.2[/C][C]8.21561114102501[/C][C]-0.0156111410250142[/C][/ROW]
[ROW][C]36[/C][C]8.1[/C][C]8.30692190023986[/C][C]-0.206921900239855[/C][/ROW]
[ROW][C]37[/C][C]8.1[/C][C]8.06716387651542[/C][C]0.0328361234845840[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]7.84337053535007[/C][C]0.156629464649926[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]7.69989483903601[/C][C]0.20010516096399[/C][/ROW]
[ROW][C]40[/C][C]7.9[/C][C]7.81641914272195[/C][C]0.083580857278053[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]7.99294344640788[/C][C]0.00705655359211643[/C][/ROW]
[ROW][C]42[/C][C]8[/C][C]7.9485988260153[/C][C]0.0514011739846958[/C][/ROW]
[ROW][C]43[/C][C]7.9[/C][C]7.73207452232937[/C][C]0.167925477670632[/C][/ROW]
[ROW][C]44[/C][C]8[/C][C]7.43728806680046[/C][C]0.562711933199538[/C][/ROW]
[ROW][C]45[/C][C]7.7[/C][C]7.22856933362703[/C][C]0.471430666372967[/C][/ROW]
[ROW][C]46[/C][C]7.2[/C][C]7.1520450299411[/C][C]0.0479549700589036[/C][/ROW]
[ROW][C]47[/C][C]7.5[/C][C]7.90943825770555[/C][C]-0.409438257705548[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]8.01378287809813[/C][C]-0.713782878098128[/C][/ROW]
[ROW][C]49[/C][C]7[/C][C]7.73926789123306[/C][C]-0.739267891233055[/C][/ROW]
[ROW][C]50[/C][C]7[/C][C]7.48506220731966[/C][C]-0.485062207319659[/C][/ROW]
[ROW][C]51[/C][C]7[/C][C]7.32420802943528[/C][C]-0.324208029435278[/C][/ROW]
[ROW][C]52[/C][C]7.2[/C][C]7.43638771272864[/C][C]-0.236387712728636[/C][/ROW]
[ROW][C]53[/C][C]7.3[/C][C]7.59987815523684[/C][C]-0.299878155236835[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.55553353484426[/C][C]-0.455533534844256[/C][/ROW]
[ROW][C]55[/C][C]6.8[/C][C]7.30425226801769[/C][C]-0.504252268017686[/C][/ROW]
[ROW][C]56[/C][C]6.4[/C][C]7.01815505327394[/C][C]-0.618155053273939[/C][/ROW]
[ROW][C]57[/C][C]6.1[/C][C]6.74426701421182[/C][C]-0.644267014211822[/C][/ROW]
[ROW][C]58[/C][C]6.5[/C][C]6.64167498817041[/C][C]-0.141674988170410[/C][/ROW]
[ROW][C]59[/C][C]7.7[/C][C]7.39906821593486[/C][C]0.300931784065137[/C][/ROW]
[ROW][C]60[/C][C]7.9[/C][C]7.5121020771126[/C][C]0.3878979228874[/C][/ROW]
[ROW][C]61[/C][C]7.5[/C][C]7.25062095142526[/C][C]0.249379048574735[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57687&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57687&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
18.48.98568252647378-0.58568252647378
28.48.77057842609363-0.370578426093626
38.48.62710272977956-0.227102729779563
48.68.75666089464324-0.156660894643237
58.98.94187443911433-0.0418744391143314
68.88.91490830029207-0.114908300292068
78.38.7070732373913-0.407073237391291
87.58.37752981872175-0.877529818721754
97.28.11667564083737-0.916675640837373
107.48.05318519832917-0.653185198329174
118.88.81057842609363-0.0105784260936254
129.38.910578426093630.389421573906375
139.38.662131161584030.637868838415972
148.78.399236236885470.300763763114525
158.28.28182826292689-0.0818282629268865
168.38.41573104818314-0.115731048183139
178.58.59659997226166-0.096599972261655
188.68.543566111083920.0564338889160823
198.58.305318705435090.194681294564915
208.28.023566111083920.176433888916082
218.17.806158137125330.293841862874671
227.97.712255351869080.187744648130924
238.68.465303959240950.134696040759050
248.78.55661471845580.143385281544209
258.78.295133592768450.404866407231544
268.58.101752594351170.398247405648832
278.47.966966138822260.433033861177738
288.58.074801201723040.425198798276959
298.78.26870398697930.431296013020705
308.78.237393227764450.462606772235547
318.68.051281266826570.54871873317343
328.57.743460950119930.756539049880073
338.37.504329874198440.795670125801557
3487.440839431690240.559160568309756
358.28.21561114102501-0.0156111410250142
368.18.30692190023986-0.206921900239855
378.18.067163876515420.0328361234845840
3887.843370535350070.156629464649926
397.97.699894839036010.20010516096399
407.97.816419142721950.083580857278053
4187.992943446407880.00705655359211643
4287.94859882601530.0514011739846958
437.97.732074522329370.167925477670632
4487.437288066800460.562711933199538
457.77.228569333627030.471430666372967
467.27.15204502994110.0479549700589036
477.57.90943825770555-0.409438257705548
487.38.01378287809813-0.713782878098128
4977.73926789123306-0.739267891233055
5077.48506220731966-0.485062207319659
5177.32420802943528-0.324208029435278
527.27.43638771272864-0.236387712728636
537.37.59987815523684-0.299878155236835
547.17.55553353484426-0.455533534844256
556.87.30425226801769-0.504252268017686
566.47.01815505327394-0.618155053273939
576.16.74426701421182-0.644267014211822
586.56.64167498817041-0.141674988170410
597.77.399068215934860.300931784065137
607.97.51210207711260.3878979228874
617.57.250620951425260.249379048574735







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6649560180834720.6700879638330560.335043981916528
180.5102242244390320.9795515511219360.489775775560968
190.4393570033105650.878714006621130.560642996689435
200.4800909809968850.960181961993770.519909019003115
210.4685417682555430.9370835365110850.531458231744457
220.4034933179700340.8069866359400690.596506682029966
230.3941873581967840.7883747163935680.605812641803216
240.4793679718471250.958735943694250.520632028152875
250.4213808060501950.842761612100390.578619193949805
260.3782875145079640.7565750290159290.621712485492036
270.2984008135068590.5968016270137190.701599186493141
280.2315439807884700.4630879615769410.76845601921153
290.1717079297913650.3434158595827310.828292070208635
300.1202741114268560.2405482228537120.879725888573144
310.07742329025502890.1548465805100580.922576709744971
320.05887091830429590.1177418366085920.941129081695704
330.04202664818593710.08405329637187420.957973351814063
340.02462973316572950.0492594663314590.97537026683427
350.05571141833585080.1114228366717020.94428858166415
360.1594659228346100.3189318456692210.84053407716539
370.1843485355473620.3686970710947230.815651464452638
380.1352757819915630.2705515639831260.864724218008437
390.09064635950884420.1812927190176880.909353640491156
400.07152517643010830.1430503528602170.928474823569892
410.06418068522600760.1283613704520150.935819314773992
420.06496120017127130.1299224003425430.935038799828729
430.03806694898109840.07613389796219690.961933051018902
440.01710308433241800.03420616866483600.982896915667582

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.664956018083472 & 0.670087963833056 & 0.335043981916528 \tabularnewline
18 & 0.510224224439032 & 0.979551551121936 & 0.489775775560968 \tabularnewline
19 & 0.439357003310565 & 0.87871400662113 & 0.560642996689435 \tabularnewline
20 & 0.480090980996885 & 0.96018196199377 & 0.519909019003115 \tabularnewline
21 & 0.468541768255543 & 0.937083536511085 & 0.531458231744457 \tabularnewline
22 & 0.403493317970034 & 0.806986635940069 & 0.596506682029966 \tabularnewline
23 & 0.394187358196784 & 0.788374716393568 & 0.605812641803216 \tabularnewline
24 & 0.479367971847125 & 0.95873594369425 & 0.520632028152875 \tabularnewline
25 & 0.421380806050195 & 0.84276161210039 & 0.578619193949805 \tabularnewline
26 & 0.378287514507964 & 0.756575029015929 & 0.621712485492036 \tabularnewline
27 & 0.298400813506859 & 0.596801627013719 & 0.701599186493141 \tabularnewline
28 & 0.231543980788470 & 0.463087961576941 & 0.76845601921153 \tabularnewline
29 & 0.171707929791365 & 0.343415859582731 & 0.828292070208635 \tabularnewline
30 & 0.120274111426856 & 0.240548222853712 & 0.879725888573144 \tabularnewline
31 & 0.0774232902550289 & 0.154846580510058 & 0.922576709744971 \tabularnewline
32 & 0.0588709183042959 & 0.117741836608592 & 0.941129081695704 \tabularnewline
33 & 0.0420266481859371 & 0.0840532963718742 & 0.957973351814063 \tabularnewline
34 & 0.0246297331657295 & 0.049259466331459 & 0.97537026683427 \tabularnewline
35 & 0.0557114183358508 & 0.111422836671702 & 0.94428858166415 \tabularnewline
36 & 0.159465922834610 & 0.318931845669221 & 0.84053407716539 \tabularnewline
37 & 0.184348535547362 & 0.368697071094723 & 0.815651464452638 \tabularnewline
38 & 0.135275781991563 & 0.270551563983126 & 0.864724218008437 \tabularnewline
39 & 0.0906463595088442 & 0.181292719017688 & 0.909353640491156 \tabularnewline
40 & 0.0715251764301083 & 0.143050352860217 & 0.928474823569892 \tabularnewline
41 & 0.0641806852260076 & 0.128361370452015 & 0.935819314773992 \tabularnewline
42 & 0.0649612001712713 & 0.129922400342543 & 0.935038799828729 \tabularnewline
43 & 0.0380669489810984 & 0.0761338979621969 & 0.961933051018902 \tabularnewline
44 & 0.0171030843324180 & 0.0342061686648360 & 0.982896915667582 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57687&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.664956018083472[/C][C]0.670087963833056[/C][C]0.335043981916528[/C][/ROW]
[ROW][C]18[/C][C]0.510224224439032[/C][C]0.979551551121936[/C][C]0.489775775560968[/C][/ROW]
[ROW][C]19[/C][C]0.439357003310565[/C][C]0.87871400662113[/C][C]0.560642996689435[/C][/ROW]
[ROW][C]20[/C][C]0.480090980996885[/C][C]0.96018196199377[/C][C]0.519909019003115[/C][/ROW]
[ROW][C]21[/C][C]0.468541768255543[/C][C]0.937083536511085[/C][C]0.531458231744457[/C][/ROW]
[ROW][C]22[/C][C]0.403493317970034[/C][C]0.806986635940069[/C][C]0.596506682029966[/C][/ROW]
[ROW][C]23[/C][C]0.394187358196784[/C][C]0.788374716393568[/C][C]0.605812641803216[/C][/ROW]
[ROW][C]24[/C][C]0.479367971847125[/C][C]0.95873594369425[/C][C]0.520632028152875[/C][/ROW]
[ROW][C]25[/C][C]0.421380806050195[/C][C]0.84276161210039[/C][C]0.578619193949805[/C][/ROW]
[ROW][C]26[/C][C]0.378287514507964[/C][C]0.756575029015929[/C][C]0.621712485492036[/C][/ROW]
[ROW][C]27[/C][C]0.298400813506859[/C][C]0.596801627013719[/C][C]0.701599186493141[/C][/ROW]
[ROW][C]28[/C][C]0.231543980788470[/C][C]0.463087961576941[/C][C]0.76845601921153[/C][/ROW]
[ROW][C]29[/C][C]0.171707929791365[/C][C]0.343415859582731[/C][C]0.828292070208635[/C][/ROW]
[ROW][C]30[/C][C]0.120274111426856[/C][C]0.240548222853712[/C][C]0.879725888573144[/C][/ROW]
[ROW][C]31[/C][C]0.0774232902550289[/C][C]0.154846580510058[/C][C]0.922576709744971[/C][/ROW]
[ROW][C]32[/C][C]0.0588709183042959[/C][C]0.117741836608592[/C][C]0.941129081695704[/C][/ROW]
[ROW][C]33[/C][C]0.0420266481859371[/C][C]0.0840532963718742[/C][C]0.957973351814063[/C][/ROW]
[ROW][C]34[/C][C]0.0246297331657295[/C][C]0.049259466331459[/C][C]0.97537026683427[/C][/ROW]
[ROW][C]35[/C][C]0.0557114183358508[/C][C]0.111422836671702[/C][C]0.94428858166415[/C][/ROW]
[ROW][C]36[/C][C]0.159465922834610[/C][C]0.318931845669221[/C][C]0.84053407716539[/C][/ROW]
[ROW][C]37[/C][C]0.184348535547362[/C][C]0.368697071094723[/C][C]0.815651464452638[/C][/ROW]
[ROW][C]38[/C][C]0.135275781991563[/C][C]0.270551563983126[/C][C]0.864724218008437[/C][/ROW]
[ROW][C]39[/C][C]0.0906463595088442[/C][C]0.181292719017688[/C][C]0.909353640491156[/C][/ROW]
[ROW][C]40[/C][C]0.0715251764301083[/C][C]0.143050352860217[/C][C]0.928474823569892[/C][/ROW]
[ROW][C]41[/C][C]0.0641806852260076[/C][C]0.128361370452015[/C][C]0.935819314773992[/C][/ROW]
[ROW][C]42[/C][C]0.0649612001712713[/C][C]0.129922400342543[/C][C]0.935038799828729[/C][/ROW]
[ROW][C]43[/C][C]0.0380669489810984[/C][C]0.0761338979621969[/C][C]0.961933051018902[/C][/ROW]
[ROW][C]44[/C][C]0.0171030843324180[/C][C]0.0342061686648360[/C][C]0.982896915667582[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57687&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6649560180834720.6700879638330560.335043981916528
180.5102242244390320.9795515511219360.489775775560968
190.4393570033105650.878714006621130.560642996689435
200.4800909809968850.960181961993770.519909019003115
210.4685417682555430.9370835365110850.531458231744457
220.4034933179700340.8069866359400690.596506682029966
230.3941873581967840.7883747163935680.605812641803216
240.4793679718471250.958735943694250.520632028152875
250.4213808060501950.842761612100390.578619193949805
260.3782875145079640.7565750290159290.621712485492036
270.2984008135068590.5968016270137190.701599186493141
280.2315439807884700.4630879615769410.76845601921153
290.1717079297913650.3434158595827310.828292070208635
300.1202741114268560.2405482228537120.879725888573144
310.07742329025502890.1548465805100580.922576709744971
320.05887091830429590.1177418366085920.941129081695704
330.04202664818593710.08405329637187420.957973351814063
340.02462973316572950.0492594663314590.97537026683427
350.05571141833585080.1114228366717020.94428858166415
360.1594659228346100.3189318456692210.84053407716539
370.1843485355473620.3686970710947230.815651464452638
380.1352757819915630.2705515639831260.864724218008437
390.09064635950884420.1812927190176880.909353640491156
400.07152517643010830.1430503528602170.928474823569892
410.06418068522600760.1283613704520150.935819314773992
420.06496120017127130.1299224003425430.935038799828729
430.03806694898109840.07613389796219690.961933051018902
440.01710308433241800.03420616866483600.982896915667582







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 2 & 0.0714285714285714 & NOK \tabularnewline
10% type I error level & 4 & 0.142857142857143 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57687&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]2[/C][C]0.0714285714285714[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]4[/C][C]0.142857142857143[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57687&T=6

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



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