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 computationTue, 21 Dec 2010 19:11:04 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/21/t129295855517cs0akbb9i9xww.htm/, Retrieved Wed, 15 May 2024 08:18:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=113846, Retrieved Wed, 15 May 2024 08:18:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
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]
- R PD    [Multiple Regression] [Aantal reizigers ...] [2010-11-26 01:03:33] [97ad38b1c3b35a5feca8b85f7bc7b3ff]
-    D      [Multiple Regression] [Aantal reizigers ...] [2010-11-26 01:44:20] [97ad38b1c3b35a5feca8b85f7bc7b3ff]
-    D        [Multiple Regression] [Aantal reizigers ...] [2010-11-26 01:59:36] [97ad38b1c3b35a5feca8b85f7bc7b3ff]
-   PD          [Multiple Regression] [4 vertragingen - Ws8] [2010-11-30 21:32:25] [608064602fec1c42028cf50c6f981c88]
-   PD              [Multiple Regression] [4 vertragingen - ...] [2010-12-21 19:11:04] [8bf9de033bd61652831a8b7489bc3566] [Current]
Feedback Forum

Post a new message
Dataseries X:
25,4	23,4	11,5	9,9	8,1
27,9	25,4	23,4	11,5	9,9
26,1	27,9	25,4	23,4	11,5
18,8	26,1	27,9	25,4	23,4
14,1	18,8	26,1	27,9	25,4
11,5	14,1	18,8	26,1	27,9
15,8	11,5	14,1	18,8	26,1
12,4	15,8	11,5	14,1	18,8
4,5	12,4	15,8	11,5	14,1
-2,2	4,5	12,4	15,8	11,5
-4,2	-2,2	4,5	12,4	15,8
-9,4	-4,2	-2,2	4,5	12,4
-14,5	-9,4	-4,2	-2,2	4,5
-17,9	-14,5	-9,4	-4,2	-2,2
-15,1	-17,9	-14,5	-9,4	-4,2
-15,2	-15,1	-17,9	-14,5	-9,4
-15,7	-15,2	-15,1	-17,9	-14,5
-18	-15,7	-15,2	-15,1	-17,9
-18,1	-18	-15,7	-15,2	-15,1
-13,5	-18,1	-18	-15,7	-15,2
-9,9	-13,5	-18,1	-18	-15,7
-4,8	-9,9	-13,5	-18,1	-18
-1,7	-4,8	-9,9	-13,5	-18,1
-0,1	-1,7	-4,8	-9,9	-13,5
2,2	-0,1	-1,7	-4,8	-9,9
10,2	2,2	-0,1	-1,7	-4,8
7,6	10,2	2,2	-0,1	-1,7
10,8	7,6	10,2	2,2	-0,1
3,8	10,8	7,6	10,2	2,2
11	3,8	10,8	7,6	10,2
10,8	11	3,8	10,8	7,6
20,1	10,8	11	3,8	10,8
14,9	20,1	10,8	11	3,8
13	14,9	20,1	10,8	11
10,9	13	14,9	20,1	10,8
9,6	10,9	13	14,9	20,1
4	9,6	10,9	13	14,9
-1,1	4	9,6	10,9	13
-7,7	-1,1	4	9,6	10,9
-8,9	-7,7	-1,1	4	9,6
-8	-8,9	-7,7	-1,1	4
-7,1	-8	-8,9	-7,7	-1,1
-5,3	-7,1	-8	-8,9	-7,7
-2,5	-5,3	-7,1	-8	-8,9
-2,4	-2,5	-5,3	-7,1	-8
-2,9	-2,4	-2,5	-5,3	-7,1
-4,8	-2,9	-2,4	-2,5	-5,3
-7,2	-4,8	-2,9	-2,4	-2,5
1,7	-7,2	-4,8	-2,9	-2,4
2,2	1,7	-7,2	-4,8	-2,9
13,4	2,2	1,7	-7,2	-4,8
12,3	13,4	2,2	1,7	-7,2
13,7	12,3	13,4	2,2	1,7
4,4	13,7	12,3	13,4	2,2
-2,5	4,4	13,7	12,3	13,4




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 7 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113846&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]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113846&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113846&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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Ye[t] = -1.92302088502385 + 1.17077219512371`Ye-1`[t] + 0.192986133123134`Ye-2`[t] -0.75856833634634`Ye-3`[t] + 0.279150640338026`Ye-4`[t] + 2.42597534885396M1[t] + 2.08414450886024M2[t] + 2.76823136640609M3[t] + 0.787244547575236M4[t] + 0.448669555109071M5[t] + 2.10875014189562M6[t] + 2.54107952782004M7[t] + 3.63619152659933M8[t] -1.4954967014408M9[t] + 0.486246625640009M10[t] + 3.49851150920727M11[t] + 0.00449601425725426t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Ye[t] =  -1.92302088502385 +  1.17077219512371`Ye-1`[t] +  0.192986133123134`Ye-2`[t] -0.75856833634634`Ye-3`[t] +  0.279150640338026`Ye-4`[t] +  2.42597534885396M1[t] +  2.08414450886024M2[t] +  2.76823136640609M3[t] +  0.787244547575236M4[t] +  0.448669555109071M5[t] +  2.10875014189562M6[t] +  2.54107952782004M7[t] +  3.63619152659933M8[t] -1.4954967014408M9[t] +  0.486246625640009M10[t] +  3.49851150920727M11[t] +  0.00449601425725426t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113846&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Ye[t] =  -1.92302088502385 +  1.17077219512371`Ye-1`[t] +  0.192986133123134`Ye-2`[t] -0.75856833634634`Ye-3`[t] +  0.279150640338026`Ye-4`[t] +  2.42597534885396M1[t] +  2.08414450886024M2[t] +  2.76823136640609M3[t] +  0.787244547575236M4[t] +  0.448669555109071M5[t] +  2.10875014189562M6[t] +  2.54107952782004M7[t] +  3.63619152659933M8[t] -1.4954967014408M9[t] +  0.486246625640009M10[t] +  3.49851150920727M11[t] +  0.00449601425725426t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113846&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113846&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
Ye[t] = -1.92302088502385 + 1.17077219512371`Ye-1`[t] + 0.192986133123134`Ye-2`[t] -0.75856833634634`Ye-3`[t] + 0.279150640338026`Ye-4`[t] + 2.42597534885396M1[t] + 2.08414450886024M2[t] + 2.76823136640609M3[t] + 0.787244547575236M4[t] + 0.448669555109071M5[t] + 2.10875014189562M6[t] + 2.54107952782004M7[t] + 3.63619152659933M8[t] -1.4954967014408M9[t] + 0.486246625640009M10[t] + 3.49851150920727M11[t] + 0.00449601425725426t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-1.923020885023852.384285-0.80650.4249510.212475
`Ye-1`1.170772195123710.1459558.021500
`Ye-2`0.1929861331231340.1972420.97840.3340520.167026
`Ye-3`-0.758568336346340.207656-3.6530.0007790.000389
`Ye-4`0.2791506403380260.1542431.80980.0782410.03912
M12.425975348853962.758840.87930.3847410.19237
M22.084144508860242.7641570.7540.4555030.227751
M32.768231366406092.7760540.99720.3249840.162492
M40.7872445475752362.7664620.28460.7775210.38876
M50.4486695551090712.7779230.16150.8725450.436273
M62.108750141895622.7872920.75660.4539790.22699
M72.541079527820042.7480090.92470.3609580.180479
M83.636191526599332.9180061.24610.2203470.110174
M9-1.49549670144082.948789-0.50720.6149760.307488
M100.4862466256400093.0191720.16110.8729050.436452
M113.498511509207273.0245281.15670.254610.127305
t0.004496014257254260.0366840.12260.90310.45155

\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) & -1.92302088502385 & 2.384285 & -0.8065 & 0.424951 & 0.212475 \tabularnewline
`Ye-1` & 1.17077219512371 & 0.145955 & 8.0215 & 0 & 0 \tabularnewline
`Ye-2` & 0.192986133123134 & 0.197242 & 0.9784 & 0.334052 & 0.167026 \tabularnewline
`Ye-3` & -0.75856833634634 & 0.207656 & -3.653 & 0.000779 & 0.000389 \tabularnewline
`Ye-4` & 0.279150640338026 & 0.154243 & 1.8098 & 0.078241 & 0.03912 \tabularnewline
M1 & 2.42597534885396 & 2.75884 & 0.8793 & 0.384741 & 0.19237 \tabularnewline
M2 & 2.08414450886024 & 2.764157 & 0.754 & 0.455503 & 0.227751 \tabularnewline
M3 & 2.76823136640609 & 2.776054 & 0.9972 & 0.324984 & 0.162492 \tabularnewline
M4 & 0.787244547575236 & 2.766462 & 0.2846 & 0.777521 & 0.38876 \tabularnewline
M5 & 0.448669555109071 & 2.777923 & 0.1615 & 0.872545 & 0.436273 \tabularnewline
M6 & 2.10875014189562 & 2.787292 & 0.7566 & 0.453979 & 0.22699 \tabularnewline
M7 & 2.54107952782004 & 2.748009 & 0.9247 & 0.360958 & 0.180479 \tabularnewline
M8 & 3.63619152659933 & 2.918006 & 1.2461 & 0.220347 & 0.110174 \tabularnewline
M9 & -1.4954967014408 & 2.948789 & -0.5072 & 0.614976 & 0.307488 \tabularnewline
M10 & 0.486246625640009 & 3.019172 & 0.1611 & 0.872905 & 0.436452 \tabularnewline
M11 & 3.49851150920727 & 3.024528 & 1.1567 & 0.25461 & 0.127305 \tabularnewline
t & 0.00449601425725426 & 0.036684 & 0.1226 & 0.9031 & 0.45155 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113846&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]-1.92302088502385[/C][C]2.384285[/C][C]-0.8065[/C][C]0.424951[/C][C]0.212475[/C][/ROW]
[ROW][C]`Ye-1`[/C][C]1.17077219512371[/C][C]0.145955[/C][C]8.0215[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Ye-2`[/C][C]0.192986133123134[/C][C]0.197242[/C][C]0.9784[/C][C]0.334052[/C][C]0.167026[/C][/ROW]
[ROW][C]`Ye-3`[/C][C]-0.75856833634634[/C][C]0.207656[/C][C]-3.653[/C][C]0.000779[/C][C]0.000389[/C][/ROW]
[ROW][C]`Ye-4`[/C][C]0.279150640338026[/C][C]0.154243[/C][C]1.8098[/C][C]0.078241[/C][C]0.03912[/C][/ROW]
[ROW][C]M1[/C][C]2.42597534885396[/C][C]2.75884[/C][C]0.8793[/C][C]0.384741[/C][C]0.19237[/C][/ROW]
[ROW][C]M2[/C][C]2.08414450886024[/C][C]2.764157[/C][C]0.754[/C][C]0.455503[/C][C]0.227751[/C][/ROW]
[ROW][C]M3[/C][C]2.76823136640609[/C][C]2.776054[/C][C]0.9972[/C][C]0.324984[/C][C]0.162492[/C][/ROW]
[ROW][C]M4[/C][C]0.787244547575236[/C][C]2.766462[/C][C]0.2846[/C][C]0.777521[/C][C]0.38876[/C][/ROW]
[ROW][C]M5[/C][C]0.448669555109071[/C][C]2.777923[/C][C]0.1615[/C][C]0.872545[/C][C]0.436273[/C][/ROW]
[ROW][C]M6[/C][C]2.10875014189562[/C][C]2.787292[/C][C]0.7566[/C][C]0.453979[/C][C]0.22699[/C][/ROW]
[ROW][C]M7[/C][C]2.54107952782004[/C][C]2.748009[/C][C]0.9247[/C][C]0.360958[/C][C]0.180479[/C][/ROW]
[ROW][C]M8[/C][C]3.63619152659933[/C][C]2.918006[/C][C]1.2461[/C][C]0.220347[/C][C]0.110174[/C][/ROW]
[ROW][C]M9[/C][C]-1.4954967014408[/C][C]2.948789[/C][C]-0.5072[/C][C]0.614976[/C][C]0.307488[/C][/ROW]
[ROW][C]M10[/C][C]0.486246625640009[/C][C]3.019172[/C][C]0.1611[/C][C]0.872905[/C][C]0.436452[/C][/ROW]
[ROW][C]M11[/C][C]3.49851150920727[/C][C]3.024528[/C][C]1.1567[/C][C]0.25461[/C][C]0.127305[/C][/ROW]
[ROW][C]t[/C][C]0.00449601425725426[/C][C]0.036684[/C][C]0.1226[/C][C]0.9031[/C][C]0.45155[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113846&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113846&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)-1.923020885023852.384285-0.80650.4249510.212475
`Ye-1`1.170772195123710.1459558.021500
`Ye-2`0.1929861331231340.1972420.97840.3340520.167026
`Ye-3`-0.758568336346340.207656-3.6530.0007790.000389
`Ye-4`0.2791506403380260.1542431.80980.0782410.03912
M12.425975348853962.758840.87930.3847410.19237
M22.084144508860242.7641570.7540.4555030.227751
M32.768231366406092.7760540.99720.3249840.162492
M40.7872445475752362.7664620.28460.7775210.38876
M50.4486695551090712.7779230.16150.8725450.436273
M62.108750141895622.7872920.75660.4539790.22699
M72.541079527820042.7480090.92470.3609580.180479
M83.636191526599332.9180061.24610.2203470.110174
M9-1.49549670144082.948789-0.50720.6149760.307488
M100.4862466256400093.0191720.16110.8729050.436452
M113.498511509207273.0245281.15670.254610.127305
t0.004496014257254260.0366840.12260.90310.45155







Multiple Linear Regression - Regression Statistics
Multiple R0.958437215457925
R-squared0.91860189597474
Adjusted R-squared0.884329010069368
F-TEST (value)26.8025837833150
F-TEST (DF numerator)16
F-TEST (DF denominator)38
p-value7.7715611723761e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.08094165586762
Sum Squared Residuals632.855222346631

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.958437215457925 \tabularnewline
R-squared & 0.91860189597474 \tabularnewline
Adjusted R-squared & 0.884329010069368 \tabularnewline
F-TEST (value) & 26.8025837833150 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 7.7715611723761e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.08094165586762 \tabularnewline
Sum Squared Residuals & 632.855222346631 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113846&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.958437215457925[/C][/ROW]
[ROW][C]R-squared[/C][C]0.91860189597474[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.884329010069368[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]26.8025837833150[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]7.7715611723761e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.08094165586762[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]632.855222346631[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113846&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113846&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.958437215457925
R-squared0.91860189597474
Adjusted R-squared0.884329010069368
F-TEST (value)26.8025837833150
F-TEST (DF numerator)16
F-TEST (DF denominator)38
p-value7.7715611723761e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.08094165586762
Sum Squared Residuals632.855222346631







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
125.424.87415403180740.525845968192608
227.928.4636603949380-0.563660394937972
326.123.8848238428162.215176157184
418.822.0881643671574-3.28816436715739
514.111.5219537647342.57804623526601
611.58.338401883165963.16159811683404
715.89.85926245306715.9407375469329
812.417.0188984653756-4.61889846537564
94.59.4011908255134-4.9011908255134
10-2.2-2.505458538412610.305458538412611
11-4.2-5.077981702558630.877981702558626
12-9.4-7.16297099969426-2.23702900030574
13-14.5-8.32936952262253-6.17063047737747
14-17.9-15.9943430533023-1.90565694669772
15-15.1-16.88436085552291.78436085552286
16-15.2-13.8217271807602-1.37827281923985
17-15.7-12.5770581278830-3.12294187211697
18-18-14.5902697566324-3.40973024336757
19-18.1-16.0852348452157-2.01476515478426
20-13.5-15.19520305373541.69520305373541
21-9.9-13.35100992983403.45100992983398
22-4.8-6.828444112826992.02844411282699
23-1.7-0.66332435185525-1.03667564814475
24-0.1-0.9904698282856890.890469828285689
252.21.047737849555741.15226215044426
2610.22.784063308651107.4159366913489
277.612.9343494945208-5.3343494945208
2810.88.15967389855492.6403261014451
293.85.64380178062845-1.84380178062845
30113.936011439005037.06398856099497
3110.88.298283371028292.50171662897171
3220.116.75649750703273.34350249296727
3314.915.0631429772159-0.163142977215866
341314.9177362196589-1.91773621965886
3510.97.595986398419473.30401360158053
369.67.817331944920331.78266805507967
3748.31022508411245-4.31022508411245
38-1.12.22829128230821-3.32829128230821
39-7.7-3.73486389396875-3.96513610603125
40-8.9-10.53759361418671.63759361418674
41-8-11.24485277568343.2448527756834
42-7.1-5.17528180461411-1.92471819538589
43-5.3-4.44318613162565-0.856813868374348
44-2.5-2.08019291867295-0.419807081327048
45-2.4-4.013323872895281.61332387289528
46-2.9-2.48383356841926-0.416166431580736
47-4.8-1.65468034400559-3.14531965599441
48-7.2-6.76389111694038-0.436108883059623
491.7-7.102747442853048.80274744285305
502.23.81832806740499-1.61832806740499
5113.48.100051412154815.29994858784519
5212.311.91148252923460.388517470765397
5313.714.556155358204-0.856155358203993
544.49.29113823907555-4.89113823907555
55-2.53.07087515274601-5.57087515274601

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25.4 & 24.8741540318074 & 0.525845968192608 \tabularnewline
2 & 27.9 & 28.4636603949380 & -0.563660394937972 \tabularnewline
3 & 26.1 & 23.884823842816 & 2.215176157184 \tabularnewline
4 & 18.8 & 22.0881643671574 & -3.28816436715739 \tabularnewline
5 & 14.1 & 11.521953764734 & 2.57804623526601 \tabularnewline
6 & 11.5 & 8.33840188316596 & 3.16159811683404 \tabularnewline
7 & 15.8 & 9.8592624530671 & 5.9407375469329 \tabularnewline
8 & 12.4 & 17.0188984653756 & -4.61889846537564 \tabularnewline
9 & 4.5 & 9.4011908255134 & -4.9011908255134 \tabularnewline
10 & -2.2 & -2.50545853841261 & 0.305458538412611 \tabularnewline
11 & -4.2 & -5.07798170255863 & 0.877981702558626 \tabularnewline
12 & -9.4 & -7.16297099969426 & -2.23702900030574 \tabularnewline
13 & -14.5 & -8.32936952262253 & -6.17063047737747 \tabularnewline
14 & -17.9 & -15.9943430533023 & -1.90565694669772 \tabularnewline
15 & -15.1 & -16.8843608555229 & 1.78436085552286 \tabularnewline
16 & -15.2 & -13.8217271807602 & -1.37827281923985 \tabularnewline
17 & -15.7 & -12.5770581278830 & -3.12294187211697 \tabularnewline
18 & -18 & -14.5902697566324 & -3.40973024336757 \tabularnewline
19 & -18.1 & -16.0852348452157 & -2.01476515478426 \tabularnewline
20 & -13.5 & -15.1952030537354 & 1.69520305373541 \tabularnewline
21 & -9.9 & -13.3510099298340 & 3.45100992983398 \tabularnewline
22 & -4.8 & -6.82844411282699 & 2.02844411282699 \tabularnewline
23 & -1.7 & -0.66332435185525 & -1.03667564814475 \tabularnewline
24 & -0.1 & -0.990469828285689 & 0.890469828285689 \tabularnewline
25 & 2.2 & 1.04773784955574 & 1.15226215044426 \tabularnewline
26 & 10.2 & 2.78406330865110 & 7.4159366913489 \tabularnewline
27 & 7.6 & 12.9343494945208 & -5.3343494945208 \tabularnewline
28 & 10.8 & 8.1596738985549 & 2.6403261014451 \tabularnewline
29 & 3.8 & 5.64380178062845 & -1.84380178062845 \tabularnewline
30 & 11 & 3.93601143900503 & 7.06398856099497 \tabularnewline
31 & 10.8 & 8.29828337102829 & 2.50171662897171 \tabularnewline
32 & 20.1 & 16.7564975070327 & 3.34350249296727 \tabularnewline
33 & 14.9 & 15.0631429772159 & -0.163142977215866 \tabularnewline
34 & 13 & 14.9177362196589 & -1.91773621965886 \tabularnewline
35 & 10.9 & 7.59598639841947 & 3.30401360158053 \tabularnewline
36 & 9.6 & 7.81733194492033 & 1.78266805507967 \tabularnewline
37 & 4 & 8.31022508411245 & -4.31022508411245 \tabularnewline
38 & -1.1 & 2.22829128230821 & -3.32829128230821 \tabularnewline
39 & -7.7 & -3.73486389396875 & -3.96513610603125 \tabularnewline
40 & -8.9 & -10.5375936141867 & 1.63759361418674 \tabularnewline
41 & -8 & -11.2448527756834 & 3.2448527756834 \tabularnewline
42 & -7.1 & -5.17528180461411 & -1.92471819538589 \tabularnewline
43 & -5.3 & -4.44318613162565 & -0.856813868374348 \tabularnewline
44 & -2.5 & -2.08019291867295 & -0.419807081327048 \tabularnewline
45 & -2.4 & -4.01332387289528 & 1.61332387289528 \tabularnewline
46 & -2.9 & -2.48383356841926 & -0.416166431580736 \tabularnewline
47 & -4.8 & -1.65468034400559 & -3.14531965599441 \tabularnewline
48 & -7.2 & -6.76389111694038 & -0.436108883059623 \tabularnewline
49 & 1.7 & -7.10274744285304 & 8.80274744285305 \tabularnewline
50 & 2.2 & 3.81832806740499 & -1.61832806740499 \tabularnewline
51 & 13.4 & 8.10005141215481 & 5.29994858784519 \tabularnewline
52 & 12.3 & 11.9114825292346 & 0.388517470765397 \tabularnewline
53 & 13.7 & 14.556155358204 & -0.856155358203993 \tabularnewline
54 & 4.4 & 9.29113823907555 & -4.89113823907555 \tabularnewline
55 & -2.5 & 3.07087515274601 & -5.57087515274601 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113846&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]25.4[/C][C]24.8741540318074[/C][C]0.525845968192608[/C][/ROW]
[ROW][C]2[/C][C]27.9[/C][C]28.4636603949380[/C][C]-0.563660394937972[/C][/ROW]
[ROW][C]3[/C][C]26.1[/C][C]23.884823842816[/C][C]2.215176157184[/C][/ROW]
[ROW][C]4[/C][C]18.8[/C][C]22.0881643671574[/C][C]-3.28816436715739[/C][/ROW]
[ROW][C]5[/C][C]14.1[/C][C]11.521953764734[/C][C]2.57804623526601[/C][/ROW]
[ROW][C]6[/C][C]11.5[/C][C]8.33840188316596[/C][C]3.16159811683404[/C][/ROW]
[ROW][C]7[/C][C]15.8[/C][C]9.8592624530671[/C][C]5.9407375469329[/C][/ROW]
[ROW][C]8[/C][C]12.4[/C][C]17.0188984653756[/C][C]-4.61889846537564[/C][/ROW]
[ROW][C]9[/C][C]4.5[/C][C]9.4011908255134[/C][C]-4.9011908255134[/C][/ROW]
[ROW][C]10[/C][C]-2.2[/C][C]-2.50545853841261[/C][C]0.305458538412611[/C][/ROW]
[ROW][C]11[/C][C]-4.2[/C][C]-5.07798170255863[/C][C]0.877981702558626[/C][/ROW]
[ROW][C]12[/C][C]-9.4[/C][C]-7.16297099969426[/C][C]-2.23702900030574[/C][/ROW]
[ROW][C]13[/C][C]-14.5[/C][C]-8.32936952262253[/C][C]-6.17063047737747[/C][/ROW]
[ROW][C]14[/C][C]-17.9[/C][C]-15.9943430533023[/C][C]-1.90565694669772[/C][/ROW]
[ROW][C]15[/C][C]-15.1[/C][C]-16.8843608555229[/C][C]1.78436085552286[/C][/ROW]
[ROW][C]16[/C][C]-15.2[/C][C]-13.8217271807602[/C][C]-1.37827281923985[/C][/ROW]
[ROW][C]17[/C][C]-15.7[/C][C]-12.5770581278830[/C][C]-3.12294187211697[/C][/ROW]
[ROW][C]18[/C][C]-18[/C][C]-14.5902697566324[/C][C]-3.40973024336757[/C][/ROW]
[ROW][C]19[/C][C]-18.1[/C][C]-16.0852348452157[/C][C]-2.01476515478426[/C][/ROW]
[ROW][C]20[/C][C]-13.5[/C][C]-15.1952030537354[/C][C]1.69520305373541[/C][/ROW]
[ROW][C]21[/C][C]-9.9[/C][C]-13.3510099298340[/C][C]3.45100992983398[/C][/ROW]
[ROW][C]22[/C][C]-4.8[/C][C]-6.82844411282699[/C][C]2.02844411282699[/C][/ROW]
[ROW][C]23[/C][C]-1.7[/C][C]-0.66332435185525[/C][C]-1.03667564814475[/C][/ROW]
[ROW][C]24[/C][C]-0.1[/C][C]-0.990469828285689[/C][C]0.890469828285689[/C][/ROW]
[ROW][C]25[/C][C]2.2[/C][C]1.04773784955574[/C][C]1.15226215044426[/C][/ROW]
[ROW][C]26[/C][C]10.2[/C][C]2.78406330865110[/C][C]7.4159366913489[/C][/ROW]
[ROW][C]27[/C][C]7.6[/C][C]12.9343494945208[/C][C]-5.3343494945208[/C][/ROW]
[ROW][C]28[/C][C]10.8[/C][C]8.1596738985549[/C][C]2.6403261014451[/C][/ROW]
[ROW][C]29[/C][C]3.8[/C][C]5.64380178062845[/C][C]-1.84380178062845[/C][/ROW]
[ROW][C]30[/C][C]11[/C][C]3.93601143900503[/C][C]7.06398856099497[/C][/ROW]
[ROW][C]31[/C][C]10.8[/C][C]8.29828337102829[/C][C]2.50171662897171[/C][/ROW]
[ROW][C]32[/C][C]20.1[/C][C]16.7564975070327[/C][C]3.34350249296727[/C][/ROW]
[ROW][C]33[/C][C]14.9[/C][C]15.0631429772159[/C][C]-0.163142977215866[/C][/ROW]
[ROW][C]34[/C][C]13[/C][C]14.9177362196589[/C][C]-1.91773621965886[/C][/ROW]
[ROW][C]35[/C][C]10.9[/C][C]7.59598639841947[/C][C]3.30401360158053[/C][/ROW]
[ROW][C]36[/C][C]9.6[/C][C]7.81733194492033[/C][C]1.78266805507967[/C][/ROW]
[ROW][C]37[/C][C]4[/C][C]8.31022508411245[/C][C]-4.31022508411245[/C][/ROW]
[ROW][C]38[/C][C]-1.1[/C][C]2.22829128230821[/C][C]-3.32829128230821[/C][/ROW]
[ROW][C]39[/C][C]-7.7[/C][C]-3.73486389396875[/C][C]-3.96513610603125[/C][/ROW]
[ROW][C]40[/C][C]-8.9[/C][C]-10.5375936141867[/C][C]1.63759361418674[/C][/ROW]
[ROW][C]41[/C][C]-8[/C][C]-11.2448527756834[/C][C]3.2448527756834[/C][/ROW]
[ROW][C]42[/C][C]-7.1[/C][C]-5.17528180461411[/C][C]-1.92471819538589[/C][/ROW]
[ROW][C]43[/C][C]-5.3[/C][C]-4.44318613162565[/C][C]-0.856813868374348[/C][/ROW]
[ROW][C]44[/C][C]-2.5[/C][C]-2.08019291867295[/C][C]-0.419807081327048[/C][/ROW]
[ROW][C]45[/C][C]-2.4[/C][C]-4.01332387289528[/C][C]1.61332387289528[/C][/ROW]
[ROW][C]46[/C][C]-2.9[/C][C]-2.48383356841926[/C][C]-0.416166431580736[/C][/ROW]
[ROW][C]47[/C][C]-4.8[/C][C]-1.65468034400559[/C][C]-3.14531965599441[/C][/ROW]
[ROW][C]48[/C][C]-7.2[/C][C]-6.76389111694038[/C][C]-0.436108883059623[/C][/ROW]
[ROW][C]49[/C][C]1.7[/C][C]-7.10274744285304[/C][C]8.80274744285305[/C][/ROW]
[ROW][C]50[/C][C]2.2[/C][C]3.81832806740499[/C][C]-1.61832806740499[/C][/ROW]
[ROW][C]51[/C][C]13.4[/C][C]8.10005141215481[/C][C]5.29994858784519[/C][/ROW]
[ROW][C]52[/C][C]12.3[/C][C]11.9114825292346[/C][C]0.388517470765397[/C][/ROW]
[ROW][C]53[/C][C]13.7[/C][C]14.556155358204[/C][C]-0.856155358203993[/C][/ROW]
[ROW][C]54[/C][C]4.4[/C][C]9.29113823907555[/C][C]-4.89113823907555[/C][/ROW]
[ROW][C]55[/C][C]-2.5[/C][C]3.07087515274601[/C][C]-5.57087515274601[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113846&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113846&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
125.424.87415403180740.525845968192608
227.928.4636603949380-0.563660394937972
326.123.8848238428162.215176157184
418.822.0881643671574-3.28816436715739
514.111.5219537647342.57804623526601
611.58.338401883165963.16159811683404
715.89.85926245306715.9407375469329
812.417.0188984653756-4.61889846537564
94.59.4011908255134-4.9011908255134
10-2.2-2.505458538412610.305458538412611
11-4.2-5.077981702558630.877981702558626
12-9.4-7.16297099969426-2.23702900030574
13-14.5-8.32936952262253-6.17063047737747
14-17.9-15.9943430533023-1.90565694669772
15-15.1-16.88436085552291.78436085552286
16-15.2-13.8217271807602-1.37827281923985
17-15.7-12.5770581278830-3.12294187211697
18-18-14.5902697566324-3.40973024336757
19-18.1-16.0852348452157-2.01476515478426
20-13.5-15.19520305373541.69520305373541
21-9.9-13.35100992983403.45100992983398
22-4.8-6.828444112826992.02844411282699
23-1.7-0.66332435185525-1.03667564814475
24-0.1-0.9904698282856890.890469828285689
252.21.047737849555741.15226215044426
2610.22.784063308651107.4159366913489
277.612.9343494945208-5.3343494945208
2810.88.15967389855492.6403261014451
293.85.64380178062845-1.84380178062845
30113.936011439005037.06398856099497
3110.88.298283371028292.50171662897171
3220.116.75649750703273.34350249296727
3314.915.0631429772159-0.163142977215866
341314.9177362196589-1.91773621965886
3510.97.595986398419473.30401360158053
369.67.817331944920331.78266805507967
3748.31022508411245-4.31022508411245
38-1.12.22829128230821-3.32829128230821
39-7.7-3.73486389396875-3.96513610603125
40-8.9-10.53759361418671.63759361418674
41-8-11.24485277568343.2448527756834
42-7.1-5.17528180461411-1.92471819538589
43-5.3-4.44318613162565-0.856813868374348
44-2.5-2.08019291867295-0.419807081327048
45-2.4-4.013323872895281.61332387289528
46-2.9-2.48383356841926-0.416166431580736
47-4.8-1.65468034400559-3.14531965599441
48-7.2-6.76389111694038-0.436108883059623
491.7-7.102747442853048.80274744285305
502.23.81832806740499-1.61832806740499
5113.48.100051412154815.29994858784519
5212.311.91148252923460.388517470765397
5313.714.556155358204-0.856155358203993
544.49.29113823907555-4.89113823907555
55-2.53.07087515274601-5.57087515274601







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.3603609158401070.7207218316802140.639639084159893
210.6314246926873060.7371506146253870.368575307312694
220.474942644451930.949885288903860.52505735554807
230.3663543872175760.7327087744351520.633645612782424
240.280524832546350.56104966509270.71947516745365
250.1986894850015700.3973789700031400.80131051499843
260.1501046111474600.3002092222949200.84989538885254
270.4357718077196710.8715436154393420.564228192280329
280.3976655993478740.7953311986957480.602334400652126
290.4362287954715710.8724575909431420.563771204528429
300.4671469950142290.9342939900284590.532853004985771
310.3909964870731940.7819929741463870.609003512926806
320.3138384536472950.6276769072945890.686161546352705
330.2044972564657040.4089945129314070.795502743534296
340.1364913226181470.2729826452362950.863508677381853
350.2245317900617760.4490635801235520.775468209938224

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.360360915840107 & 0.720721831680214 & 0.639639084159893 \tabularnewline
21 & 0.631424692687306 & 0.737150614625387 & 0.368575307312694 \tabularnewline
22 & 0.47494264445193 & 0.94988528890386 & 0.52505735554807 \tabularnewline
23 & 0.366354387217576 & 0.732708774435152 & 0.633645612782424 \tabularnewline
24 & 0.28052483254635 & 0.5610496650927 & 0.71947516745365 \tabularnewline
25 & 0.198689485001570 & 0.397378970003140 & 0.80131051499843 \tabularnewline
26 & 0.150104611147460 & 0.300209222294920 & 0.84989538885254 \tabularnewline
27 & 0.435771807719671 & 0.871543615439342 & 0.564228192280329 \tabularnewline
28 & 0.397665599347874 & 0.795331198695748 & 0.602334400652126 \tabularnewline
29 & 0.436228795471571 & 0.872457590943142 & 0.563771204528429 \tabularnewline
30 & 0.467146995014229 & 0.934293990028459 & 0.532853004985771 \tabularnewline
31 & 0.390996487073194 & 0.781992974146387 & 0.609003512926806 \tabularnewline
32 & 0.313838453647295 & 0.627676907294589 & 0.686161546352705 \tabularnewline
33 & 0.204497256465704 & 0.408994512931407 & 0.795502743534296 \tabularnewline
34 & 0.136491322618147 & 0.272982645236295 & 0.863508677381853 \tabularnewline
35 & 0.224531790061776 & 0.449063580123552 & 0.775468209938224 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113846&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]20[/C][C]0.360360915840107[/C][C]0.720721831680214[/C][C]0.639639084159893[/C][/ROW]
[ROW][C]21[/C][C]0.631424692687306[/C][C]0.737150614625387[/C][C]0.368575307312694[/C][/ROW]
[ROW][C]22[/C][C]0.47494264445193[/C][C]0.94988528890386[/C][C]0.52505735554807[/C][/ROW]
[ROW][C]23[/C][C]0.366354387217576[/C][C]0.732708774435152[/C][C]0.633645612782424[/C][/ROW]
[ROW][C]24[/C][C]0.28052483254635[/C][C]0.5610496650927[/C][C]0.71947516745365[/C][/ROW]
[ROW][C]25[/C][C]0.198689485001570[/C][C]0.397378970003140[/C][C]0.80131051499843[/C][/ROW]
[ROW][C]26[/C][C]0.150104611147460[/C][C]0.300209222294920[/C][C]0.84989538885254[/C][/ROW]
[ROW][C]27[/C][C]0.435771807719671[/C][C]0.871543615439342[/C][C]0.564228192280329[/C][/ROW]
[ROW][C]28[/C][C]0.397665599347874[/C][C]0.795331198695748[/C][C]0.602334400652126[/C][/ROW]
[ROW][C]29[/C][C]0.436228795471571[/C][C]0.872457590943142[/C][C]0.563771204528429[/C][/ROW]
[ROW][C]30[/C][C]0.467146995014229[/C][C]0.934293990028459[/C][C]0.532853004985771[/C][/ROW]
[ROW][C]31[/C][C]0.390996487073194[/C][C]0.781992974146387[/C][C]0.609003512926806[/C][/ROW]
[ROW][C]32[/C][C]0.313838453647295[/C][C]0.627676907294589[/C][C]0.686161546352705[/C][/ROW]
[ROW][C]33[/C][C]0.204497256465704[/C][C]0.408994512931407[/C][C]0.795502743534296[/C][/ROW]
[ROW][C]34[/C][C]0.136491322618147[/C][C]0.272982645236295[/C][C]0.863508677381853[/C][/ROW]
[ROW][C]35[/C][C]0.224531790061776[/C][C]0.449063580123552[/C][C]0.775468209938224[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113846&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.3603609158401070.7207218316802140.639639084159893
210.6314246926873060.7371506146253870.368575307312694
220.474942644451930.949885288903860.52505735554807
230.3663543872175760.7327087744351520.633645612782424
240.280524832546350.56104966509270.71947516745365
250.1986894850015700.3973789700031400.80131051499843
260.1501046111474600.3002092222949200.84989538885254
270.4357718077196710.8715436154393420.564228192280329
280.3976655993478740.7953311986957480.602334400652126
290.4362287954715710.8724575909431420.563771204528429
300.4671469950142290.9342939900284590.532853004985771
310.3909964870731940.7819929741463870.609003512926806
320.3138384536472950.6276769072945890.686161546352705
330.2044972564657040.4089945129314070.795502743534296
340.1364913226181470.2729826452362950.863508677381853
350.2245317900617760.4490635801235520.775468209938224







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 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')
}