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, 26 Nov 2009 09:27:42 -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/26/t1259252944djz8zhgtzc5ewpu.htm/, Retrieved Sun, 28 Apr 2024 23:19:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60162, Retrieved Sun, 28 Apr 2024 23:19:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsW7 review
Estimated Impact157
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] [WS7 Multiple Regr...] [2009-11-20 19:11:09] [8733f8ed033058987ec00f5e71b74854]
-   P       [Multiple Regression] [WS7 Multiple Regr...] [2009-11-20 19:53:18] [8733f8ed033058987ec00f5e71b74854]
-   P         [Multiple Regression] [WS7 Multiple Regr...] [2009-11-20 20:25:38] [8733f8ed033058987ec00f5e71b74854]
-    D            [Multiple Regression] [W7 review ] [2009-11-26 16:27:42] [950726a732ba3ca782ecb1a5307d0f6f] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.3	2.0	1.9	2.3	2.7	0
2.8	2.3	2.0	1.9	2.3	0
2.4	2.8	2.3	2.0	1.9	0
2.3	2.4	2.8	2.3	2.0	0
2.7	2.3	2.4	2.8	2.3	0
2.7	2.7	2.3	2.4	2.8	0
2.9	2.7	2.7	2.3	2.4	0
3.0	2.9	2.7	2.7	2.3	0
2.2	3.0	2.9	2.7	2.7	0
2.3	2.2	3.0	2.9	2.7	0
2.8	2.3	2.2	3.0	2.9	0
2.8	2.8	2.3	2.2	3.0	0
2.8	2.8	2.8	2.3	2.2	0
2.2	2.8	2.8	2.8	2.3	0
2.6	2.2	2.8	2.8	2.8	0
2.8	2.6	2.2	2.8	2.8	0
2.5	2.8	2.6	2.2	2.8	0
2.4	2.5	2.8	2.6	2.2	0
2.3	2.4	2.5	2.8	2.6	0
1.9	2.3	2.4	2.5	2.8	0
1.7	1.9	2.3	2.4	2.5	0
2.0	1.7	1.9	2.3	2.4	0
2.1	2.0	1.7	1.9	2.3	0
1.7	2.1	2.0	1.7	1.9	0
1.8	1.7	2.1	2.0	1.7	0
1.8	1.8	1.7	2.1	2.0	0
1.8	1.8	1.8	1.7	2.1	0
1.3	1.8	1.8	1.8	1.7	0
1.3	1.3	1.8	1.8	1.8	0
1.3	1.3	1.3	1.8	1.8	0
1.2	1.3	1.3	1.3	1.8	1
1.4	1.2	1.3	1.3	1.3	1
2.2	1.4	1.2	1.3	1.3	1
2.9	2.2	1.4	1.2	1.3	1
3.1	2.9	2.2	1.4	1.2	1
3.5	3.1	2.9	2.2	1.4	1
3.6	3.5	3.1	2.9	2.2	1
4.4	3.6	3.5	3.1	2.9	1
4.1	4.4	3.6	3.5	3.1	1
5.1	4.1	4.4	3.6	3.5	1
5.8	5.1	4.1	4.4	3.6	1
5.9	5.8	5.1	4.1	4.4	1
5.4	5.9	5.8	5.1	4.1	1
5.5	5.4	5.9	5.8	5.1	1
4.8	5.5	5.4	5.9	5.8	1
3.2	4.8	5.5	5.4	5.9	1
2.7	3.2	4.8	5.5	5.4	1
2.1	2.7	3.2	4.8	5.5	1
1.9	2.1	2.7	3.2	4.8	1
0.6	1.9	2.1	2.7	3.2	1
0.7	0.6	1.9	2.1	2.7	1
-0.2	0.7	0.6	1.9	2.1	1
-1.0	-0.2	0.7	0.6	1.9	1
-1.7	-1.0	-0.2	0.7	0.6	1
-0.7	-1.7	-1.0	-0.2	0.7	1
-1.0	-0.7	-1.7	-1.0	-0.2	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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
Inflatie[t] = + 0.543937208204278 + 1.03190587642702`yt-1`[t] + 0.00311594207492439`yt-2`[t] + 0.0625948070164088`yt-3`[t] -0.223419091554451`yt-4`[t] + 0.55477286988978Kredietcrisis[t] + 0.138013235580985M1[t] -0.0633444684359386M2[t] + 0.0412969737820374M3[t] + 0.0160581190123575M4[t] + 0.118222226316890M5[t] -0.0266887211638146M6[t] + 0.120851047017496M7[t] -0.0360998595273063M8[t] -0.136471275857123M9[t] -0.00225950808331554M10[t] + 0.193711021693291M11[t] -0.0192085947006778t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Inflatie[t] =  +  0.543937208204278 +  1.03190587642702`yt-1`[t] +  0.00311594207492439`yt-2`[t] +  0.0625948070164088`yt-3`[t] -0.223419091554451`yt-4`[t] +  0.55477286988978Kredietcrisis[t] +  0.138013235580985M1[t] -0.0633444684359386M2[t] +  0.0412969737820374M3[t] +  0.0160581190123575M4[t] +  0.118222226316890M5[t] -0.0266887211638146M6[t] +  0.120851047017496M7[t] -0.0360998595273063M8[t] -0.136471275857123M9[t] -0.00225950808331554M10[t] +  0.193711021693291M11[t] -0.0192085947006778t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60162&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Inflatie[t] =  +  0.543937208204278 +  1.03190587642702`yt-1`[t] +  0.00311594207492439`yt-2`[t] +  0.0625948070164088`yt-3`[t] -0.223419091554451`yt-4`[t] +  0.55477286988978Kredietcrisis[t] +  0.138013235580985M1[t] -0.0633444684359386M2[t] +  0.0412969737820374M3[t] +  0.0160581190123575M4[t] +  0.118222226316890M5[t] -0.0266887211638146M6[t] +  0.120851047017496M7[t] -0.0360998595273063M8[t] -0.136471275857123M9[t] -0.00225950808331554M10[t] +  0.193711021693291M11[t] -0.0192085947006778t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60162&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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
Inflatie[t] = + 0.543937208204278 + 1.03190587642702`yt-1`[t] + 0.00311594207492439`yt-2`[t] + 0.0625948070164088`yt-3`[t] -0.223419091554451`yt-4`[t] + 0.55477286988978Kredietcrisis[t] + 0.138013235580985M1[t] -0.0633444684359386M2[t] + 0.0412969737820374M3[t] + 0.0160581190123575M4[t] + 0.118222226316890M5[t] -0.0266887211638146M6[t] + 0.120851047017496M7[t] -0.0360998595273063M8[t] -0.136471275857123M9[t] -0.00225950808331554M10[t] + 0.193711021693291M11[t] -0.0192085947006778t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.5439372082042780.381081.42740.1616440.080822
`yt-1`1.031905876427020.1608286.416200
`yt-2`0.003115942074924390.2428290.01280.9898290.494915
`yt-3`0.06259480701640880.2566660.24390.8086380.404319
`yt-4`-0.2234190915544510.17637-1.26680.212950.106475
Kredietcrisis0.554772869889780.3342141.65990.1051590.052579
M10.1380132355809850.3689670.37410.7104440.355222
M2-0.06334446843593860.368265-0.1720.8643440.432172
M30.04129697378203740.3703950.11150.9118110.455906
M40.01605811901235750.3712670.04330.9657270.482863
M50.1182222263168900.3689930.32040.7504270.375213
M6-0.02668872116381460.370597-0.0720.9429670.471484
M70.1208510470174960.3735980.32350.7481060.374053
M8-0.03609985952730630.371068-0.09730.923010.461505
M9-0.1364712758571230.388445-0.35130.7272830.363642
M10-0.002259508083315540.390185-0.00580.995410.497705
M110.1937110216932910.389660.49710.6219630.310981
t-0.01920859470067780.010719-1.7920.0811010.040551

\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) & 0.543937208204278 & 0.38108 & 1.4274 & 0.161644 & 0.080822 \tabularnewline
`yt-1` & 1.03190587642702 & 0.160828 & 6.4162 & 0 & 0 \tabularnewline
`yt-2` & 0.00311594207492439 & 0.242829 & 0.0128 & 0.989829 & 0.494915 \tabularnewline
`yt-3` & 0.0625948070164088 & 0.256666 & 0.2439 & 0.808638 & 0.404319 \tabularnewline
`yt-4` & -0.223419091554451 & 0.17637 & -1.2668 & 0.21295 & 0.106475 \tabularnewline
Kredietcrisis & 0.55477286988978 & 0.334214 & 1.6599 & 0.105159 & 0.052579 \tabularnewline
M1 & 0.138013235580985 & 0.368967 & 0.3741 & 0.710444 & 0.355222 \tabularnewline
M2 & -0.0633444684359386 & 0.368265 & -0.172 & 0.864344 & 0.432172 \tabularnewline
M3 & 0.0412969737820374 & 0.370395 & 0.1115 & 0.911811 & 0.455906 \tabularnewline
M4 & 0.0160581190123575 & 0.371267 & 0.0433 & 0.965727 & 0.482863 \tabularnewline
M5 & 0.118222226316890 & 0.368993 & 0.3204 & 0.750427 & 0.375213 \tabularnewline
M6 & -0.0266887211638146 & 0.370597 & -0.072 & 0.942967 & 0.471484 \tabularnewline
M7 & 0.120851047017496 & 0.373598 & 0.3235 & 0.748106 & 0.374053 \tabularnewline
M8 & -0.0360998595273063 & 0.371068 & -0.0973 & 0.92301 & 0.461505 \tabularnewline
M9 & -0.136471275857123 & 0.388445 & -0.3513 & 0.727283 & 0.363642 \tabularnewline
M10 & -0.00225950808331554 & 0.390185 & -0.0058 & 0.99541 & 0.497705 \tabularnewline
M11 & 0.193711021693291 & 0.38966 & 0.4971 & 0.621963 & 0.310981 \tabularnewline
t & -0.0192085947006778 & 0.010719 & -1.792 & 0.081101 & 0.040551 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60162&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]0.543937208204278[/C][C]0.38108[/C][C]1.4274[/C][C]0.161644[/C][C]0.080822[/C][/ROW]
[ROW][C]`yt-1`[/C][C]1.03190587642702[/C][C]0.160828[/C][C]6.4162[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`yt-2`[/C][C]0.00311594207492439[/C][C]0.242829[/C][C]0.0128[/C][C]0.989829[/C][C]0.494915[/C][/ROW]
[ROW][C]`yt-3`[/C][C]0.0625948070164088[/C][C]0.256666[/C][C]0.2439[/C][C]0.808638[/C][C]0.404319[/C][/ROW]
[ROW][C]`yt-4`[/C][C]-0.223419091554451[/C][C]0.17637[/C][C]-1.2668[/C][C]0.21295[/C][C]0.106475[/C][/ROW]
[ROW][C]Kredietcrisis[/C][C]0.55477286988978[/C][C]0.334214[/C][C]1.6599[/C][C]0.105159[/C][C]0.052579[/C][/ROW]
[ROW][C]M1[/C][C]0.138013235580985[/C][C]0.368967[/C][C]0.3741[/C][C]0.710444[/C][C]0.355222[/C][/ROW]
[ROW][C]M2[/C][C]-0.0633444684359386[/C][C]0.368265[/C][C]-0.172[/C][C]0.864344[/C][C]0.432172[/C][/ROW]
[ROW][C]M3[/C][C]0.0412969737820374[/C][C]0.370395[/C][C]0.1115[/C][C]0.911811[/C][C]0.455906[/C][/ROW]
[ROW][C]M4[/C][C]0.0160581190123575[/C][C]0.371267[/C][C]0.0433[/C][C]0.965727[/C][C]0.482863[/C][/ROW]
[ROW][C]M5[/C][C]0.118222226316890[/C][C]0.368993[/C][C]0.3204[/C][C]0.750427[/C][C]0.375213[/C][/ROW]
[ROW][C]M6[/C][C]-0.0266887211638146[/C][C]0.370597[/C][C]-0.072[/C][C]0.942967[/C][C]0.471484[/C][/ROW]
[ROW][C]M7[/C][C]0.120851047017496[/C][C]0.373598[/C][C]0.3235[/C][C]0.748106[/C][C]0.374053[/C][/ROW]
[ROW][C]M8[/C][C]-0.0360998595273063[/C][C]0.371068[/C][C]-0.0973[/C][C]0.92301[/C][C]0.461505[/C][/ROW]
[ROW][C]M9[/C][C]-0.136471275857123[/C][C]0.388445[/C][C]-0.3513[/C][C]0.727283[/C][C]0.363642[/C][/ROW]
[ROW][C]M10[/C][C]-0.00225950808331554[/C][C]0.390185[/C][C]-0.0058[/C][C]0.99541[/C][C]0.497705[/C][/ROW]
[ROW][C]M11[/C][C]0.193711021693291[/C][C]0.38966[/C][C]0.4971[/C][C]0.621963[/C][C]0.310981[/C][/ROW]
[ROW][C]t[/C][C]-0.0192085947006778[/C][C]0.010719[/C][C]-1.792[/C][C]0.081101[/C][C]0.040551[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60162&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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)0.5439372082042780.381081.42740.1616440.080822
`yt-1`1.031905876427020.1608286.416200
`yt-2`0.003115942074924390.2428290.01280.9898290.494915
`yt-3`0.06259480701640880.2566660.24390.8086380.404319
`yt-4`-0.2234190915544510.17637-1.26680.212950.106475
Kredietcrisis0.554772869889780.3342141.65990.1051590.052579
M10.1380132355809850.3689670.37410.7104440.355222
M2-0.06334446843593860.368265-0.1720.8643440.432172
M30.04129697378203740.3703950.11150.9118110.455906
M40.01605811901235750.3712670.04330.9657270.482863
M50.1182222263168900.3689930.32040.7504270.375213
M6-0.02668872116381460.370597-0.0720.9429670.471484
M70.1208510470174960.3735980.32350.7481060.374053
M8-0.03609985952730630.371068-0.09730.923010.461505
M9-0.1364712758571230.388445-0.35130.7272830.363642
M10-0.002259508083315540.390185-0.00580.995410.497705
M110.1937110216932910.389660.49710.6219630.310981
t-0.01920859470067780.010719-1.7920.0811010.040551







Multiple Linear Regression - Regression Statistics
Multiple R0.95872572457677
R-squared0.919155014965253
Adjusted R-squared0.882987521660234
F-TEST (value)25.4138435089642
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value1.11022302462516e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.545063925154349
Sum Squared Residuals11.2895979351773

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.95872572457677 \tabularnewline
R-squared & 0.919155014965253 \tabularnewline
Adjusted R-squared & 0.882987521660234 \tabularnewline
F-TEST (value) & 25.4138435089642 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 1.11022302462516e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.545063925154349 \tabularnewline
Sum Squared Residuals & 11.2895979351773 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60162&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.95872572457677[/C][/ROW]
[ROW][C]R-squared[/C][C]0.919155014965253[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.882987521660234[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]25.4138435089642[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]1.11022302462516e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.545063925154349[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]11.2895979351773[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60162&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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.95872572457677
R-squared0.919155014965253
Adjusted R-squared0.882987521660234
F-TEST (value)25.4138435089642
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value1.11022302462516e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.545063925154349
Sum Squared Residuals11.2895979351773







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12.32.273210400821700.0267895991782954
22.82.426857173054920.373142826945083
32.43.12480485873162-0.724804858731624
42.32.6655895626774-0.365589562677398
52.72.608379786850450.09162021314955
62.72.71996353244859-0.0199635324485925
72.92.93264923867934-0.0326492386793361
833.01025074468127-0.0102507446812690
92.22.90511687308668-0.705116873086679
102.32.207425900628970.0925740993710305
112.82.446461332078410.353538667921589
122.82.677388493336870.122611506663128
132.82.98274585919984-0.182745859199843
142.22.771135054835-0.571135054835001
152.62.125714830718860.474285169281138
162.82.492160166574360.307839833425642
172.52.74518634708374-0.245186347083740
182.42.43120760812847-0.0312076081284717
192.32.37856473612543-0.0785647361254265
201.92.03544079261394-0.135440792613939
211.71.563553083569840.136446916430161
2221.48701113298140.5129888670186
232.11.970025628919330.129974371080669
241.71.93808005800904-0.23808005800904
251.81.707896202941840.0921037970581553
261.81.528507868272280.271492131727719
271.81.566872478035060.233127521964937
281.31.61805214588813-0.318052145888126
291.31.162712811123030.137287188876974
301.30.9970352979041830.302964702095818
311.21.64884193776639-0.448841937766391
321.41.48120139465543-0.0812013946554349
332.21.567690964702850.632309035297149
342.92.502582546630940.397417453369059
353.13.43903221942445-0.339032219424449
363.53.440066965070570.0599330349294315
373.63.83733823660459-0.237338236604593
384.43.577334499674830.82266550032517
394.14.46895774703691-0.36895774703691
405.14.034323132378251.06567686762175
415.85.175983675244320.624016324755676
425.95.53980047328830.360199526711704
435.45.90312392834682-0.503123928346822
445.55.031720356452360.468279643547639
454.84.86363907864063-0.0636390786406308
463.24.20298041975869-1.00298041975869
472.72.84448081957781-0.144480819577808
482.12.044464483583520.0555355164164808
491.91.598809300432010.301190699567986
500.61.49616540416297-0.896165404162971
510.70.3136500854775400.386349914522460
52-0.20.489874992481871-0.689874992481871
53-1-0.392262620301541-0.607737379698459
54-1.7-1.08800691176954-0.611993088230457
55-0.7-1.763179840917981.06317984091798
56-1-0.758613288403004-0.241386711596996

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2.3 & 2.27321040082170 & 0.0267895991782954 \tabularnewline
2 & 2.8 & 2.42685717305492 & 0.373142826945083 \tabularnewline
3 & 2.4 & 3.12480485873162 & -0.724804858731624 \tabularnewline
4 & 2.3 & 2.6655895626774 & -0.365589562677398 \tabularnewline
5 & 2.7 & 2.60837978685045 & 0.09162021314955 \tabularnewline
6 & 2.7 & 2.71996353244859 & -0.0199635324485925 \tabularnewline
7 & 2.9 & 2.93264923867934 & -0.0326492386793361 \tabularnewline
8 & 3 & 3.01025074468127 & -0.0102507446812690 \tabularnewline
9 & 2.2 & 2.90511687308668 & -0.705116873086679 \tabularnewline
10 & 2.3 & 2.20742590062897 & 0.0925740993710305 \tabularnewline
11 & 2.8 & 2.44646133207841 & 0.353538667921589 \tabularnewline
12 & 2.8 & 2.67738849333687 & 0.122611506663128 \tabularnewline
13 & 2.8 & 2.98274585919984 & -0.182745859199843 \tabularnewline
14 & 2.2 & 2.771135054835 & -0.571135054835001 \tabularnewline
15 & 2.6 & 2.12571483071886 & 0.474285169281138 \tabularnewline
16 & 2.8 & 2.49216016657436 & 0.307839833425642 \tabularnewline
17 & 2.5 & 2.74518634708374 & -0.245186347083740 \tabularnewline
18 & 2.4 & 2.43120760812847 & -0.0312076081284717 \tabularnewline
19 & 2.3 & 2.37856473612543 & -0.0785647361254265 \tabularnewline
20 & 1.9 & 2.03544079261394 & -0.135440792613939 \tabularnewline
21 & 1.7 & 1.56355308356984 & 0.136446916430161 \tabularnewline
22 & 2 & 1.4870111329814 & 0.5129888670186 \tabularnewline
23 & 2.1 & 1.97002562891933 & 0.129974371080669 \tabularnewline
24 & 1.7 & 1.93808005800904 & -0.23808005800904 \tabularnewline
25 & 1.8 & 1.70789620294184 & 0.0921037970581553 \tabularnewline
26 & 1.8 & 1.52850786827228 & 0.271492131727719 \tabularnewline
27 & 1.8 & 1.56687247803506 & 0.233127521964937 \tabularnewline
28 & 1.3 & 1.61805214588813 & -0.318052145888126 \tabularnewline
29 & 1.3 & 1.16271281112303 & 0.137287188876974 \tabularnewline
30 & 1.3 & 0.997035297904183 & 0.302964702095818 \tabularnewline
31 & 1.2 & 1.64884193776639 & -0.448841937766391 \tabularnewline
32 & 1.4 & 1.48120139465543 & -0.0812013946554349 \tabularnewline
33 & 2.2 & 1.56769096470285 & 0.632309035297149 \tabularnewline
34 & 2.9 & 2.50258254663094 & 0.397417453369059 \tabularnewline
35 & 3.1 & 3.43903221942445 & -0.339032219424449 \tabularnewline
36 & 3.5 & 3.44006696507057 & 0.0599330349294315 \tabularnewline
37 & 3.6 & 3.83733823660459 & -0.237338236604593 \tabularnewline
38 & 4.4 & 3.57733449967483 & 0.82266550032517 \tabularnewline
39 & 4.1 & 4.46895774703691 & -0.36895774703691 \tabularnewline
40 & 5.1 & 4.03432313237825 & 1.06567686762175 \tabularnewline
41 & 5.8 & 5.17598367524432 & 0.624016324755676 \tabularnewline
42 & 5.9 & 5.5398004732883 & 0.360199526711704 \tabularnewline
43 & 5.4 & 5.90312392834682 & -0.503123928346822 \tabularnewline
44 & 5.5 & 5.03172035645236 & 0.468279643547639 \tabularnewline
45 & 4.8 & 4.86363907864063 & -0.0636390786406308 \tabularnewline
46 & 3.2 & 4.20298041975869 & -1.00298041975869 \tabularnewline
47 & 2.7 & 2.84448081957781 & -0.144480819577808 \tabularnewline
48 & 2.1 & 2.04446448358352 & 0.0555355164164808 \tabularnewline
49 & 1.9 & 1.59880930043201 & 0.301190699567986 \tabularnewline
50 & 0.6 & 1.49616540416297 & -0.896165404162971 \tabularnewline
51 & 0.7 & 0.313650085477540 & 0.386349914522460 \tabularnewline
52 & -0.2 & 0.489874992481871 & -0.689874992481871 \tabularnewline
53 & -1 & -0.392262620301541 & -0.607737379698459 \tabularnewline
54 & -1.7 & -1.08800691176954 & -0.611993088230457 \tabularnewline
55 & -0.7 & -1.76317984091798 & 1.06317984091798 \tabularnewline
56 & -1 & -0.758613288403004 & -0.241386711596996 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60162&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]2.3[/C][C]2.27321040082170[/C][C]0.0267895991782954[/C][/ROW]
[ROW][C]2[/C][C]2.8[/C][C]2.42685717305492[/C][C]0.373142826945083[/C][/ROW]
[ROW][C]3[/C][C]2.4[/C][C]3.12480485873162[/C][C]-0.724804858731624[/C][/ROW]
[ROW][C]4[/C][C]2.3[/C][C]2.6655895626774[/C][C]-0.365589562677398[/C][/ROW]
[ROW][C]5[/C][C]2.7[/C][C]2.60837978685045[/C][C]0.09162021314955[/C][/ROW]
[ROW][C]6[/C][C]2.7[/C][C]2.71996353244859[/C][C]-0.0199635324485925[/C][/ROW]
[ROW][C]7[/C][C]2.9[/C][C]2.93264923867934[/C][C]-0.0326492386793361[/C][/ROW]
[ROW][C]8[/C][C]3[/C][C]3.01025074468127[/C][C]-0.0102507446812690[/C][/ROW]
[ROW][C]9[/C][C]2.2[/C][C]2.90511687308668[/C][C]-0.705116873086679[/C][/ROW]
[ROW][C]10[/C][C]2.3[/C][C]2.20742590062897[/C][C]0.0925740993710305[/C][/ROW]
[ROW][C]11[/C][C]2.8[/C][C]2.44646133207841[/C][C]0.353538667921589[/C][/ROW]
[ROW][C]12[/C][C]2.8[/C][C]2.67738849333687[/C][C]0.122611506663128[/C][/ROW]
[ROW][C]13[/C][C]2.8[/C][C]2.98274585919984[/C][C]-0.182745859199843[/C][/ROW]
[ROW][C]14[/C][C]2.2[/C][C]2.771135054835[/C][C]-0.571135054835001[/C][/ROW]
[ROW][C]15[/C][C]2.6[/C][C]2.12571483071886[/C][C]0.474285169281138[/C][/ROW]
[ROW][C]16[/C][C]2.8[/C][C]2.49216016657436[/C][C]0.307839833425642[/C][/ROW]
[ROW][C]17[/C][C]2.5[/C][C]2.74518634708374[/C][C]-0.245186347083740[/C][/ROW]
[ROW][C]18[/C][C]2.4[/C][C]2.43120760812847[/C][C]-0.0312076081284717[/C][/ROW]
[ROW][C]19[/C][C]2.3[/C][C]2.37856473612543[/C][C]-0.0785647361254265[/C][/ROW]
[ROW][C]20[/C][C]1.9[/C][C]2.03544079261394[/C][C]-0.135440792613939[/C][/ROW]
[ROW][C]21[/C][C]1.7[/C][C]1.56355308356984[/C][C]0.136446916430161[/C][/ROW]
[ROW][C]22[/C][C]2[/C][C]1.4870111329814[/C][C]0.5129888670186[/C][/ROW]
[ROW][C]23[/C][C]2.1[/C][C]1.97002562891933[/C][C]0.129974371080669[/C][/ROW]
[ROW][C]24[/C][C]1.7[/C][C]1.93808005800904[/C][C]-0.23808005800904[/C][/ROW]
[ROW][C]25[/C][C]1.8[/C][C]1.70789620294184[/C][C]0.0921037970581553[/C][/ROW]
[ROW][C]26[/C][C]1.8[/C][C]1.52850786827228[/C][C]0.271492131727719[/C][/ROW]
[ROW][C]27[/C][C]1.8[/C][C]1.56687247803506[/C][C]0.233127521964937[/C][/ROW]
[ROW][C]28[/C][C]1.3[/C][C]1.61805214588813[/C][C]-0.318052145888126[/C][/ROW]
[ROW][C]29[/C][C]1.3[/C][C]1.16271281112303[/C][C]0.137287188876974[/C][/ROW]
[ROW][C]30[/C][C]1.3[/C][C]0.997035297904183[/C][C]0.302964702095818[/C][/ROW]
[ROW][C]31[/C][C]1.2[/C][C]1.64884193776639[/C][C]-0.448841937766391[/C][/ROW]
[ROW][C]32[/C][C]1.4[/C][C]1.48120139465543[/C][C]-0.0812013946554349[/C][/ROW]
[ROW][C]33[/C][C]2.2[/C][C]1.56769096470285[/C][C]0.632309035297149[/C][/ROW]
[ROW][C]34[/C][C]2.9[/C][C]2.50258254663094[/C][C]0.397417453369059[/C][/ROW]
[ROW][C]35[/C][C]3.1[/C][C]3.43903221942445[/C][C]-0.339032219424449[/C][/ROW]
[ROW][C]36[/C][C]3.5[/C][C]3.44006696507057[/C][C]0.0599330349294315[/C][/ROW]
[ROW][C]37[/C][C]3.6[/C][C]3.83733823660459[/C][C]-0.237338236604593[/C][/ROW]
[ROW][C]38[/C][C]4.4[/C][C]3.57733449967483[/C][C]0.82266550032517[/C][/ROW]
[ROW][C]39[/C][C]4.1[/C][C]4.46895774703691[/C][C]-0.36895774703691[/C][/ROW]
[ROW][C]40[/C][C]5.1[/C][C]4.03432313237825[/C][C]1.06567686762175[/C][/ROW]
[ROW][C]41[/C][C]5.8[/C][C]5.17598367524432[/C][C]0.624016324755676[/C][/ROW]
[ROW][C]42[/C][C]5.9[/C][C]5.5398004732883[/C][C]0.360199526711704[/C][/ROW]
[ROW][C]43[/C][C]5.4[/C][C]5.90312392834682[/C][C]-0.503123928346822[/C][/ROW]
[ROW][C]44[/C][C]5.5[/C][C]5.03172035645236[/C][C]0.468279643547639[/C][/ROW]
[ROW][C]45[/C][C]4.8[/C][C]4.86363907864063[/C][C]-0.0636390786406308[/C][/ROW]
[ROW][C]46[/C][C]3.2[/C][C]4.20298041975869[/C][C]-1.00298041975869[/C][/ROW]
[ROW][C]47[/C][C]2.7[/C][C]2.84448081957781[/C][C]-0.144480819577808[/C][/ROW]
[ROW][C]48[/C][C]2.1[/C][C]2.04446448358352[/C][C]0.0555355164164808[/C][/ROW]
[ROW][C]49[/C][C]1.9[/C][C]1.59880930043201[/C][C]0.301190699567986[/C][/ROW]
[ROW][C]50[/C][C]0.6[/C][C]1.49616540416297[/C][C]-0.896165404162971[/C][/ROW]
[ROW][C]51[/C][C]0.7[/C][C]0.313650085477540[/C][C]0.386349914522460[/C][/ROW]
[ROW][C]52[/C][C]-0.2[/C][C]0.489874992481871[/C][C]-0.689874992481871[/C][/ROW]
[ROW][C]53[/C][C]-1[/C][C]-0.392262620301541[/C][C]-0.607737379698459[/C][/ROW]
[ROW][C]54[/C][C]-1.7[/C][C]-1.08800691176954[/C][C]-0.611993088230457[/C][/ROW]
[ROW][C]55[/C][C]-0.7[/C][C]-1.76317984091798[/C][C]1.06317984091798[/C][/ROW]
[ROW][C]56[/C][C]-1[/C][C]-0.758613288403004[/C][C]-0.241386711596996[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60162&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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
12.32.273210400821700.0267895991782954
22.82.426857173054920.373142826945083
32.43.12480485873162-0.724804858731624
42.32.6655895626774-0.365589562677398
52.72.608379786850450.09162021314955
62.72.71996353244859-0.0199635324485925
72.92.93264923867934-0.0326492386793361
833.01025074468127-0.0102507446812690
92.22.90511687308668-0.705116873086679
102.32.207425900628970.0925740993710305
112.82.446461332078410.353538667921589
122.82.677388493336870.122611506663128
132.82.98274585919984-0.182745859199843
142.22.771135054835-0.571135054835001
152.62.125714830718860.474285169281138
162.82.492160166574360.307839833425642
172.52.74518634708374-0.245186347083740
182.42.43120760812847-0.0312076081284717
192.32.37856473612543-0.0785647361254265
201.92.03544079261394-0.135440792613939
211.71.563553083569840.136446916430161
2221.48701113298140.5129888670186
232.11.970025628919330.129974371080669
241.71.93808005800904-0.23808005800904
251.81.707896202941840.0921037970581553
261.81.528507868272280.271492131727719
271.81.566872478035060.233127521964937
281.31.61805214588813-0.318052145888126
291.31.162712811123030.137287188876974
301.30.9970352979041830.302964702095818
311.21.64884193776639-0.448841937766391
321.41.48120139465543-0.0812013946554349
332.21.567690964702850.632309035297149
342.92.502582546630940.397417453369059
353.13.43903221942445-0.339032219424449
363.53.440066965070570.0599330349294315
373.63.83733823660459-0.237338236604593
384.43.577334499674830.82266550032517
394.14.46895774703691-0.36895774703691
405.14.034323132378251.06567686762175
415.85.175983675244320.624016324755676
425.95.53980047328830.360199526711704
435.45.90312392834682-0.503123928346822
445.55.031720356452360.468279643547639
454.84.86363907864063-0.0636390786406308
463.24.20298041975869-1.00298041975869
472.72.84448081957781-0.144480819577808
482.12.044464483583520.0555355164164808
491.91.598809300432010.301190699567986
500.61.49616540416297-0.896165404162971
510.70.3136500854775400.386349914522460
52-0.20.489874992481871-0.689874992481871
53-1-0.392262620301541-0.607737379698459
54-1.7-1.08800691176954-0.611993088230457
55-0.7-1.763179840917981.06317984091798
56-1-0.758613288403004-0.241386711596996







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.3864767542070490.7729535084140970.613523245792951
220.2364679531948600.4729359063897210.76353204680514
230.1283087376496250.256617475299250.871691262350375
240.07072077916591670.1414415583318330.929279220834083
250.03204733243431460.06409466486862910.967952667565685
260.01321012216976830.02642024433953660.986789877830232
270.004933305023192320.009866610046384630.995066694976808
280.002753140536783240.005506281073566490.997246859463217
290.0009502511940114560.001900502388022910.999049748805989
300.0002836343945802520.0005672687891605030.99971636560542
310.0001984476905839840.0003968953811679680.999801552309416
320.0009441302855862640.001888260571172530.999055869714414
330.01155416144914850.02310832289829700.988445838550851
340.005702774731591270.01140554946318250.994297225268409
350.004246165095202940.008492330190405880.995753834904797

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.386476754207049 & 0.772953508414097 & 0.613523245792951 \tabularnewline
22 & 0.236467953194860 & 0.472935906389721 & 0.76353204680514 \tabularnewline
23 & 0.128308737649625 & 0.25661747529925 & 0.871691262350375 \tabularnewline
24 & 0.0707207791659167 & 0.141441558331833 & 0.929279220834083 \tabularnewline
25 & 0.0320473324343146 & 0.0640946648686291 & 0.967952667565685 \tabularnewline
26 & 0.0132101221697683 & 0.0264202443395366 & 0.986789877830232 \tabularnewline
27 & 0.00493330502319232 & 0.00986661004638463 & 0.995066694976808 \tabularnewline
28 & 0.00275314053678324 & 0.00550628107356649 & 0.997246859463217 \tabularnewline
29 & 0.000950251194011456 & 0.00190050238802291 & 0.999049748805989 \tabularnewline
30 & 0.000283634394580252 & 0.000567268789160503 & 0.99971636560542 \tabularnewline
31 & 0.000198447690583984 & 0.000396895381167968 & 0.999801552309416 \tabularnewline
32 & 0.000944130285586264 & 0.00188826057117253 & 0.999055869714414 \tabularnewline
33 & 0.0115541614491485 & 0.0231083228982970 & 0.988445838550851 \tabularnewline
34 & 0.00570277473159127 & 0.0114055494631825 & 0.994297225268409 \tabularnewline
35 & 0.00424616509520294 & 0.00849233019040588 & 0.995753834904797 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60162&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]21[/C][C]0.386476754207049[/C][C]0.772953508414097[/C][C]0.613523245792951[/C][/ROW]
[ROW][C]22[/C][C]0.236467953194860[/C][C]0.472935906389721[/C][C]0.76353204680514[/C][/ROW]
[ROW][C]23[/C][C]0.128308737649625[/C][C]0.25661747529925[/C][C]0.871691262350375[/C][/ROW]
[ROW][C]24[/C][C]0.0707207791659167[/C][C]0.141441558331833[/C][C]0.929279220834083[/C][/ROW]
[ROW][C]25[/C][C]0.0320473324343146[/C][C]0.0640946648686291[/C][C]0.967952667565685[/C][/ROW]
[ROW][C]26[/C][C]0.0132101221697683[/C][C]0.0264202443395366[/C][C]0.986789877830232[/C][/ROW]
[ROW][C]27[/C][C]0.00493330502319232[/C][C]0.00986661004638463[/C][C]0.995066694976808[/C][/ROW]
[ROW][C]28[/C][C]0.00275314053678324[/C][C]0.00550628107356649[/C][C]0.997246859463217[/C][/ROW]
[ROW][C]29[/C][C]0.000950251194011456[/C][C]0.00190050238802291[/C][C]0.999049748805989[/C][/ROW]
[ROW][C]30[/C][C]0.000283634394580252[/C][C]0.000567268789160503[/C][C]0.99971636560542[/C][/ROW]
[ROW][C]31[/C][C]0.000198447690583984[/C][C]0.000396895381167968[/C][C]0.999801552309416[/C][/ROW]
[ROW][C]32[/C][C]0.000944130285586264[/C][C]0.00188826057117253[/C][C]0.999055869714414[/C][/ROW]
[ROW][C]33[/C][C]0.0115541614491485[/C][C]0.0231083228982970[/C][C]0.988445838550851[/C][/ROW]
[ROW][C]34[/C][C]0.00570277473159127[/C][C]0.0114055494631825[/C][C]0.994297225268409[/C][/ROW]
[ROW][C]35[/C][C]0.00424616509520294[/C][C]0.00849233019040588[/C][C]0.995753834904797[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60162&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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
210.3864767542070490.7729535084140970.613523245792951
220.2364679531948600.4729359063897210.76353204680514
230.1283087376496250.256617475299250.871691262350375
240.07072077916591670.1414415583318330.929279220834083
250.03204733243431460.06409466486862910.967952667565685
260.01321012216976830.02642024433953660.986789877830232
270.004933305023192320.009866610046384630.995066694976808
280.002753140536783240.005506281073566490.997246859463217
290.0009502511940114560.001900502388022910.999049748805989
300.0002836343945802520.0005672687891605030.99971636560542
310.0001984476905839840.0003968953811679680.999801552309416
320.0009441302855862640.001888260571172530.999055869714414
330.01155416144914850.02310832289829700.988445838550851
340.005702774731591270.01140554946318250.994297225268409
350.004246165095202940.008492330190405880.995753834904797







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.466666666666667NOK
5% type I error level100.666666666666667NOK
10% type I error level110.733333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60162&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 level70.466666666666667NOK
5% type I error level100.666666666666667NOK
10% type I error level110.733333333333333NOK



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