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, 15 Dec 2011 05:01:59 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/15/t1323943359y5yi5zezhqymx3b.htm/, Retrieved Wed, 15 May 2024 20:23:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=155312, Retrieved Wed, 15 May 2024 20:23:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2010-12-05 18:56:24] [b98453cac15ba1066b407e146608df68]
- R PD    [Multiple Regression] [plc] [2011-12-15 10:01:59] [cfea828c93f35e07cca4521b1fb38047] [Current]
Feedback Forum

Post a new message
Dataseries X:
-14	-20	36	-2	3
-7	-8	24	1	5
-9	-15	22	-1	4
-9	-13	17	-1	-4
-4	-6	8	-2	-1
-3	0	12	-1	3
1	5	5	1	2
-1	-1	6	0	2
-2	-5	5	-2	2
1	4	8	3	6
-3	-3	15	0	6
-2	3	16	0	6
0	8	17	2	6
-2	3	23	3	7
-4	3	24	1	4
-4	7	27	1	3
-7	4	31	0	0
-9	-4	40	1	6
-13	-6	47	-1	3
-8	8	43	2	1
-13	2	60	2	6
-15	-1	64	0	5
-15	-2	65	1	7
-15	0	65	1	4
-10	10	55	3	3
-12	3	57	3	6
-11	6	57	1	6
-11	7	57	1	5
-17	-4	65	-2	2
-18	-5	69	1	3
-19	-7	70	1	-2
-22	-10	71	-1	-4
-24	-21	71	-4	0
-24	-22	73	-2	1
-20	-16	68	-1	4
-25	-25	65	-5	-3
-22	-22	57	-4	-3
-17	-22	41	-5	0
-9	-19	21	0	6
-11	-21	21	-2	-1
-13	-31	17	-4	0
-11	-28	9	-6	-1
-9	-23	11	-2	1
-7	-17	6	-2	-4
-3	-12	-2	-2	-1
-3	-14	0	1	-1
-6	-18	5	-2	0
-4	-16	3	0	3
-8	-22	7	-1	0
-1	-9	4	2	8
-2	-10	8	3	8
-2	-10	9	2	8
-1	0	14	3	8
1	3	12	4	11
2	2	12	5	13
2	4	7	5	5
-1	-3	15	4	12
1	0	14	5	13
-1	-1	19	6	9
-8	-7	39	4	11




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

\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' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155312&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' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155312&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155312&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' @ jenkins.wessa.net







Multiple Linear Regression - Estimated Regression Equation
Spaarvermogen[t] = + 0.0493435035166254 + 3.52319756708551consumentenvertrouwen[t] -0.910838516689858economie[t] + 0.892399758910741Werkloosheid[t] -0.621014432131373`Financiën`[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Spaarvermogen[t] =  +  0.0493435035166254 +  3.52319756708551consumentenvertrouwen[t] -0.910838516689858economie[t] +  0.892399758910741Werkloosheid[t] -0.621014432131373`Financiën`[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155312&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Spaarvermogen[t] =  +  0.0493435035166254 +  3.52319756708551consumentenvertrouwen[t] -0.910838516689858economie[t] +  0.892399758910741Werkloosheid[t] -0.621014432131373`Financiën`[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155312&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155312&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
Spaarvermogen[t] = + 0.0493435035166254 + 3.52319756708551consumentenvertrouwen[t] -0.910838516689858economie[t] + 0.892399758910741Werkloosheid[t] -0.621014432131373`Financiën`[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.04934350351662540.3874840.12730.8991330.449567
consumentenvertrouwen3.523197567085510.23779114.816300
economie-0.9108385166898580.062362-14.605700
Werkloosheid0.8923997589107410.06072614.695600
`Financiën`-0.6210144321313730.161446-3.84660.0003140.000157

\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.0493435035166254 & 0.387484 & 0.1273 & 0.899133 & 0.449567 \tabularnewline
consumentenvertrouwen & 3.52319756708551 & 0.237791 & 14.8163 & 0 & 0 \tabularnewline
economie & -0.910838516689858 & 0.062362 & -14.6057 & 0 & 0 \tabularnewline
Werkloosheid & 0.892399758910741 & 0.060726 & 14.6956 & 0 & 0 \tabularnewline
`Financiën` & -0.621014432131373 & 0.161446 & -3.8466 & 0.000314 & 0.000157 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155312&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.0493435035166254[/C][C]0.387484[/C][C]0.1273[/C][C]0.899133[/C][C]0.449567[/C][/ROW]
[ROW][C]consumentenvertrouwen[/C][C]3.52319756708551[/C][C]0.237791[/C][C]14.8163[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]economie[/C][C]-0.910838516689858[/C][C]0.062362[/C][C]-14.6057[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Werkloosheid[/C][C]0.892399758910741[/C][C]0.060726[/C][C]14.6956[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Financiën`[/C][C]-0.621014432131373[/C][C]0.161446[/C][C]-3.8466[/C][C]0.000314[/C][C]0.000157[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155312&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155312&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.04934350351662540.3874840.12730.8991330.449567
consumentenvertrouwen3.523197567085510.23779114.816300
economie-0.9108385166898580.062362-14.605700
Werkloosheid0.8923997589107410.06072614.695600
`Financiën`-0.6210144321313730.161446-3.84660.0003140.000157







Multiple Linear Regression - Regression Statistics
Multiple R0.960440364793394
R-squared0.922445694324467
Adjusted R-squared0.916805381184428
F-TEST (value)163.545120886343
F-TEST (DF numerator)4
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.21964691016139
Sum Squared Residuals81.8146222006423

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.960440364793394 \tabularnewline
R-squared & 0.922445694324467 \tabularnewline
Adjusted R-squared & 0.916805381184428 \tabularnewline
F-TEST (value) & 163.545120886343 \tabularnewline
F-TEST (DF numerator) & 4 \tabularnewline
F-TEST (DF denominator) & 55 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.21964691016139 \tabularnewline
Sum Squared Residuals & 81.8146222006423 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155312&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.960440364793394[/C][/ROW]
[ROW][C]R-squared[/C][C]0.922445694324467[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.916805381184428[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]163.545120886343[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]4[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]55[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.21964691016139[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]81.8146222006423[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155312&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155312&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.960440364793394
R-squared0.922445694324467
Adjusted R-squared0.916805381184428
F-TEST (value)163.545120886343
F-TEST (DF numerator)4
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.21964691016139
Sum Squared Residuals81.8146222006423







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
132.309768083166010.690231916833993
253.470248449163331.52975155083667
342.256952278262571.74304772173743
4-4-4.026723549670850.0267235496708508
5-1-0.197188729137606-0.802811270862394
630.8095623413203462.19043765867965
722.85933284957516-0.859332849575165
822.79138300658541-0.79138300658541
923.26116861161133-1.26116861161133
1065.20534177873450.7946582212655
1165.598262735990770.401737264009231
1264.548828961847871.45117103815213
1366.69140240721759-0.691402407217595
1478.93258397782894-1.93258397782894
1544.0206174668314-0.0206174668314011
1633.05446267680419-0.0544626768041895
170-0.5920010066084280.592001006608428
1867.05889539080471-1.05889539080471
1932.276609332480320.72339066751968
2011.70821560221277-0.708215602212771
2164.728054768406971.27194523159303
2255.22580308421123-0.225803084211227
2376.408026927680450.591973072319546
2444.58634989430074-0.586349894300737
2532.927926109459550.0720738905404486
2664.042200109939021.95779989006098
2766.0749109912177-0.0749109912177023
2855.16407247452785-0.164072474527846
2923.04635212328327-1.04635212328327
3032.140548812136470.859451187863533
31-21.33142803734141-3.33142803734141
32-4-4.371220490672060.371220490672056
3300.46465135513948-0.46465135513948
3411.91826052538808-0.918260525388075
3545.46300646690589-1.46300646690589
36-3-4.148576266519671.14857626651967
37-3-4.071711618750011.07171161875001
380-0.1131054937629450.113105493762945
3964.386892153979891.61310784602011
40-10.404202917451327-1.40420291745133
4100.13862277879867-0.13862277879867
42-1-1.444666844123060.444666844123062
4310.3482774958946610.651722504105339
44-4-2.53235726462717-1.46764273537283
45-1-0.132957651020351-0.867042348979649
46-11.61047560378673-2.61047560378673
4701.00927906023745-1.00927906023745
4833.20716877894453-0.207168778944528
490-1.229976921484031.22997692148403
5087.051262758020050.948737241979949
5187.387488311135980.612511688864015
5288.9009025021781-0.900902502178098
5387.156699264787360.843300735212639
54119.064764898935951.93523510106405
551312.87778655057990.122213449420052
5656.59411072264653-1.59411072264653
571210.16060014163631.8393998583637
581312.96106553469560.0389344653043674
59910.6664932796368-1.6664932796368
601110.55916545265490.440834547345061

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 3 & 2.30976808316601 & 0.690231916833993 \tabularnewline
2 & 5 & 3.47024844916333 & 1.52975155083667 \tabularnewline
3 & 4 & 2.25695227826257 & 1.74304772173743 \tabularnewline
4 & -4 & -4.02672354967085 & 0.0267235496708508 \tabularnewline
5 & -1 & -0.197188729137606 & -0.802811270862394 \tabularnewline
6 & 3 & 0.809562341320346 & 2.19043765867965 \tabularnewline
7 & 2 & 2.85933284957516 & -0.859332849575165 \tabularnewline
8 & 2 & 2.79138300658541 & -0.79138300658541 \tabularnewline
9 & 2 & 3.26116861161133 & -1.26116861161133 \tabularnewline
10 & 6 & 5.2053417787345 & 0.7946582212655 \tabularnewline
11 & 6 & 5.59826273599077 & 0.401737264009231 \tabularnewline
12 & 6 & 4.54882896184787 & 1.45117103815213 \tabularnewline
13 & 6 & 6.69140240721759 & -0.691402407217595 \tabularnewline
14 & 7 & 8.93258397782894 & -1.93258397782894 \tabularnewline
15 & 4 & 4.0206174668314 & -0.0206174668314011 \tabularnewline
16 & 3 & 3.05446267680419 & -0.0544626768041895 \tabularnewline
17 & 0 & -0.592001006608428 & 0.592001006608428 \tabularnewline
18 & 6 & 7.05889539080471 & -1.05889539080471 \tabularnewline
19 & 3 & 2.27660933248032 & 0.72339066751968 \tabularnewline
20 & 1 & 1.70821560221277 & -0.708215602212771 \tabularnewline
21 & 6 & 4.72805476840697 & 1.27194523159303 \tabularnewline
22 & 5 & 5.22580308421123 & -0.225803084211227 \tabularnewline
23 & 7 & 6.40802692768045 & 0.591973072319546 \tabularnewline
24 & 4 & 4.58634989430074 & -0.586349894300737 \tabularnewline
25 & 3 & 2.92792610945955 & 0.0720738905404486 \tabularnewline
26 & 6 & 4.04220010993902 & 1.95779989006098 \tabularnewline
27 & 6 & 6.0749109912177 & -0.0749109912177023 \tabularnewline
28 & 5 & 5.16407247452785 & -0.164072474527846 \tabularnewline
29 & 2 & 3.04635212328327 & -1.04635212328327 \tabularnewline
30 & 3 & 2.14054881213647 & 0.859451187863533 \tabularnewline
31 & -2 & 1.33142803734141 & -3.33142803734141 \tabularnewline
32 & -4 & -4.37122049067206 & 0.371220490672056 \tabularnewline
33 & 0 & 0.46465135513948 & -0.46465135513948 \tabularnewline
34 & 1 & 1.91826052538808 & -0.918260525388075 \tabularnewline
35 & 4 & 5.46300646690589 & -1.46300646690589 \tabularnewline
36 & -3 & -4.14857626651967 & 1.14857626651967 \tabularnewline
37 & -3 & -4.07171161875001 & 1.07171161875001 \tabularnewline
38 & 0 & -0.113105493762945 & 0.113105493762945 \tabularnewline
39 & 6 & 4.38689215397989 & 1.61310784602011 \tabularnewline
40 & -1 & 0.404202917451327 & -1.40420291745133 \tabularnewline
41 & 0 & 0.13862277879867 & -0.13862277879867 \tabularnewline
42 & -1 & -1.44466684412306 & 0.444666844123062 \tabularnewline
43 & 1 & 0.348277495894661 & 0.651722504105339 \tabularnewline
44 & -4 & -2.53235726462717 & -1.46764273537283 \tabularnewline
45 & -1 & -0.132957651020351 & -0.867042348979649 \tabularnewline
46 & -1 & 1.61047560378673 & -2.61047560378673 \tabularnewline
47 & 0 & 1.00927906023745 & -1.00927906023745 \tabularnewline
48 & 3 & 3.20716877894453 & -0.207168778944528 \tabularnewline
49 & 0 & -1.22997692148403 & 1.22997692148403 \tabularnewline
50 & 8 & 7.05126275802005 & 0.948737241979949 \tabularnewline
51 & 8 & 7.38748831113598 & 0.612511688864015 \tabularnewline
52 & 8 & 8.9009025021781 & -0.900902502178098 \tabularnewline
53 & 8 & 7.15669926478736 & 0.843300735212639 \tabularnewline
54 & 11 & 9.06476489893595 & 1.93523510106405 \tabularnewline
55 & 13 & 12.8777865505799 & 0.122213449420052 \tabularnewline
56 & 5 & 6.59411072264653 & -1.59411072264653 \tabularnewline
57 & 12 & 10.1606001416363 & 1.8393998583637 \tabularnewline
58 & 13 & 12.9610655346956 & 0.0389344653043674 \tabularnewline
59 & 9 & 10.6664932796368 & -1.6664932796368 \tabularnewline
60 & 11 & 10.5591654526549 & 0.440834547345061 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155312&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]3[/C][C]2.30976808316601[/C][C]0.690231916833993[/C][/ROW]
[ROW][C]2[/C][C]5[/C][C]3.47024844916333[/C][C]1.52975155083667[/C][/ROW]
[ROW][C]3[/C][C]4[/C][C]2.25695227826257[/C][C]1.74304772173743[/C][/ROW]
[ROW][C]4[/C][C]-4[/C][C]-4.02672354967085[/C][C]0.0267235496708508[/C][/ROW]
[ROW][C]5[/C][C]-1[/C][C]-0.197188729137606[/C][C]-0.802811270862394[/C][/ROW]
[ROW][C]6[/C][C]3[/C][C]0.809562341320346[/C][C]2.19043765867965[/C][/ROW]
[ROW][C]7[/C][C]2[/C][C]2.85933284957516[/C][C]-0.859332849575165[/C][/ROW]
[ROW][C]8[/C][C]2[/C][C]2.79138300658541[/C][C]-0.79138300658541[/C][/ROW]
[ROW][C]9[/C][C]2[/C][C]3.26116861161133[/C][C]-1.26116861161133[/C][/ROW]
[ROW][C]10[/C][C]6[/C][C]5.2053417787345[/C][C]0.7946582212655[/C][/ROW]
[ROW][C]11[/C][C]6[/C][C]5.59826273599077[/C][C]0.401737264009231[/C][/ROW]
[ROW][C]12[/C][C]6[/C][C]4.54882896184787[/C][C]1.45117103815213[/C][/ROW]
[ROW][C]13[/C][C]6[/C][C]6.69140240721759[/C][C]-0.691402407217595[/C][/ROW]
[ROW][C]14[/C][C]7[/C][C]8.93258397782894[/C][C]-1.93258397782894[/C][/ROW]
[ROW][C]15[/C][C]4[/C][C]4.0206174668314[/C][C]-0.0206174668314011[/C][/ROW]
[ROW][C]16[/C][C]3[/C][C]3.05446267680419[/C][C]-0.0544626768041895[/C][/ROW]
[ROW][C]17[/C][C]0[/C][C]-0.592001006608428[/C][C]0.592001006608428[/C][/ROW]
[ROW][C]18[/C][C]6[/C][C]7.05889539080471[/C][C]-1.05889539080471[/C][/ROW]
[ROW][C]19[/C][C]3[/C][C]2.27660933248032[/C][C]0.72339066751968[/C][/ROW]
[ROW][C]20[/C][C]1[/C][C]1.70821560221277[/C][C]-0.708215602212771[/C][/ROW]
[ROW][C]21[/C][C]6[/C][C]4.72805476840697[/C][C]1.27194523159303[/C][/ROW]
[ROW][C]22[/C][C]5[/C][C]5.22580308421123[/C][C]-0.225803084211227[/C][/ROW]
[ROW][C]23[/C][C]7[/C][C]6.40802692768045[/C][C]0.591973072319546[/C][/ROW]
[ROW][C]24[/C][C]4[/C][C]4.58634989430074[/C][C]-0.586349894300737[/C][/ROW]
[ROW][C]25[/C][C]3[/C][C]2.92792610945955[/C][C]0.0720738905404486[/C][/ROW]
[ROW][C]26[/C][C]6[/C][C]4.04220010993902[/C][C]1.95779989006098[/C][/ROW]
[ROW][C]27[/C][C]6[/C][C]6.0749109912177[/C][C]-0.0749109912177023[/C][/ROW]
[ROW][C]28[/C][C]5[/C][C]5.16407247452785[/C][C]-0.164072474527846[/C][/ROW]
[ROW][C]29[/C][C]2[/C][C]3.04635212328327[/C][C]-1.04635212328327[/C][/ROW]
[ROW][C]30[/C][C]3[/C][C]2.14054881213647[/C][C]0.859451187863533[/C][/ROW]
[ROW][C]31[/C][C]-2[/C][C]1.33142803734141[/C][C]-3.33142803734141[/C][/ROW]
[ROW][C]32[/C][C]-4[/C][C]-4.37122049067206[/C][C]0.371220490672056[/C][/ROW]
[ROW][C]33[/C][C]0[/C][C]0.46465135513948[/C][C]-0.46465135513948[/C][/ROW]
[ROW][C]34[/C][C]1[/C][C]1.91826052538808[/C][C]-0.918260525388075[/C][/ROW]
[ROW][C]35[/C][C]4[/C][C]5.46300646690589[/C][C]-1.46300646690589[/C][/ROW]
[ROW][C]36[/C][C]-3[/C][C]-4.14857626651967[/C][C]1.14857626651967[/C][/ROW]
[ROW][C]37[/C][C]-3[/C][C]-4.07171161875001[/C][C]1.07171161875001[/C][/ROW]
[ROW][C]38[/C][C]0[/C][C]-0.113105493762945[/C][C]0.113105493762945[/C][/ROW]
[ROW][C]39[/C][C]6[/C][C]4.38689215397989[/C][C]1.61310784602011[/C][/ROW]
[ROW][C]40[/C][C]-1[/C][C]0.404202917451327[/C][C]-1.40420291745133[/C][/ROW]
[ROW][C]41[/C][C]0[/C][C]0.13862277879867[/C][C]-0.13862277879867[/C][/ROW]
[ROW][C]42[/C][C]-1[/C][C]-1.44466684412306[/C][C]0.444666844123062[/C][/ROW]
[ROW][C]43[/C][C]1[/C][C]0.348277495894661[/C][C]0.651722504105339[/C][/ROW]
[ROW][C]44[/C][C]-4[/C][C]-2.53235726462717[/C][C]-1.46764273537283[/C][/ROW]
[ROW][C]45[/C][C]-1[/C][C]-0.132957651020351[/C][C]-0.867042348979649[/C][/ROW]
[ROW][C]46[/C][C]-1[/C][C]1.61047560378673[/C][C]-2.61047560378673[/C][/ROW]
[ROW][C]47[/C][C]0[/C][C]1.00927906023745[/C][C]-1.00927906023745[/C][/ROW]
[ROW][C]48[/C][C]3[/C][C]3.20716877894453[/C][C]-0.207168778944528[/C][/ROW]
[ROW][C]49[/C][C]0[/C][C]-1.22997692148403[/C][C]1.22997692148403[/C][/ROW]
[ROW][C]50[/C][C]8[/C][C]7.05126275802005[/C][C]0.948737241979949[/C][/ROW]
[ROW][C]51[/C][C]8[/C][C]7.38748831113598[/C][C]0.612511688864015[/C][/ROW]
[ROW][C]52[/C][C]8[/C][C]8.9009025021781[/C][C]-0.900902502178098[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]7.15669926478736[/C][C]0.843300735212639[/C][/ROW]
[ROW][C]54[/C][C]11[/C][C]9.06476489893595[/C][C]1.93523510106405[/C][/ROW]
[ROW][C]55[/C][C]13[/C][C]12.8777865505799[/C][C]0.122213449420052[/C][/ROW]
[ROW][C]56[/C][C]5[/C][C]6.59411072264653[/C][C]-1.59411072264653[/C][/ROW]
[ROW][C]57[/C][C]12[/C][C]10.1606001416363[/C][C]1.8393998583637[/C][/ROW]
[ROW][C]58[/C][C]13[/C][C]12.9610655346956[/C][C]0.0389344653043674[/C][/ROW]
[ROW][C]59[/C][C]9[/C][C]10.6664932796368[/C][C]-1.6664932796368[/C][/ROW]
[ROW][C]60[/C][C]11[/C][C]10.5591654526549[/C][C]0.440834547345061[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155312&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155312&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
132.309768083166010.690231916833993
253.470248449163331.52975155083667
342.256952278262571.74304772173743
4-4-4.026723549670850.0267235496708508
5-1-0.197188729137606-0.802811270862394
630.8095623413203462.19043765867965
722.85933284957516-0.859332849575165
822.79138300658541-0.79138300658541
923.26116861161133-1.26116861161133
1065.20534177873450.7946582212655
1165.598262735990770.401737264009231
1264.548828961847871.45117103815213
1366.69140240721759-0.691402407217595
1478.93258397782894-1.93258397782894
1544.0206174668314-0.0206174668314011
1633.05446267680419-0.0544626768041895
170-0.5920010066084280.592001006608428
1867.05889539080471-1.05889539080471
1932.276609332480320.72339066751968
2011.70821560221277-0.708215602212771
2164.728054768406971.27194523159303
2255.22580308421123-0.225803084211227
2376.408026927680450.591973072319546
2444.58634989430074-0.586349894300737
2532.927926109459550.0720738905404486
2664.042200109939021.95779989006098
2766.0749109912177-0.0749109912177023
2855.16407247452785-0.164072474527846
2923.04635212328327-1.04635212328327
3032.140548812136470.859451187863533
31-21.33142803734141-3.33142803734141
32-4-4.371220490672060.371220490672056
3300.46465135513948-0.46465135513948
3411.91826052538808-0.918260525388075
3545.46300646690589-1.46300646690589
36-3-4.148576266519671.14857626651967
37-3-4.071711618750011.07171161875001
380-0.1131054937629450.113105493762945
3964.386892153979891.61310784602011
40-10.404202917451327-1.40420291745133
4100.13862277879867-0.13862277879867
42-1-1.444666844123060.444666844123062
4310.3482774958946610.651722504105339
44-4-2.53235726462717-1.46764273537283
45-1-0.132957651020351-0.867042348979649
46-11.61047560378673-2.61047560378673
4701.00927906023745-1.00927906023745
4833.20716877894453-0.207168778944528
490-1.229976921484031.22997692148403
5087.051262758020050.948737241979949
5187.387488311135980.612511688864015
5288.9009025021781-0.900902502178098
5387.156699264787360.843300735212639
54119.064764898935951.93523510106405
551312.87778655057990.122213449420052
5656.59411072264653-1.59411072264653
571210.16060014163631.8393998583637
581312.96106553469560.0389344653043674
59910.6664932796368-1.6664932796368
601110.55916545265490.440834547345061







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.7756803143287860.4486393713424270.224319685671214
90.6523066266386950.695386746722610.347693373361305
100.531224900894560.9375501982108810.46877509910544
110.3970150645681720.7940301291363430.602984935431828
120.296910397473190.5938207949463790.70308960252681
130.4946287858189310.9892575716378620.505371214181069
140.7235632633920050.5528734732159910.276436736607995
150.6532905286356020.6934189427287970.346709471364398
160.5758836914555320.8482326170889360.424116308544468
170.4882500732217790.9765001464435590.511749926778221
180.487394241422690.9747884828453790.51260575857731
190.4050257045998440.8100514091996890.594974295400156
200.3616775693413780.7233551386827550.638322430658622
210.3430726829806470.6861453659612940.656927317019353
220.2793256118672150.558651223734430.720674388132785
230.2182163471381620.4364326942763240.781783652861838
240.1858180625787770.3716361251575530.814181937421223
250.1349982774781270.2699965549562550.865001722521872
260.1985128182324620.3970256364649250.801487181767538
270.1460319362972130.2920638725944250.853968063702787
280.1042312727997860.2084625455995710.895768727200214
290.09628886067089920.1925777213417980.903711139329101
300.0798081138772630.1596162277545260.920191886122737
310.5131763542582640.9736472914834730.486823645741736
320.450142561989070.900285123978140.54985743801093
330.3852109525381620.7704219050763240.614789047461838
340.3599128129581270.7198256259162540.640087187041873
350.5130774409741650.9738451180516690.486922559025835
360.4591980250327090.9183960500654170.540801974967291
370.418438069744480.8368761394889590.58156193025552
380.3490767969944430.6981535939888860.650923203005557
390.3760343038599210.7520686077198420.623965696140079
400.4220750540489790.8441501080979580.577924945951021
410.3518657917267710.7037315834535420.648134208273229
420.2791593646559350.5583187293118690.720840635344065
430.2232928415380950.4465856830761910.776707158461905
440.224472354904280.448944709808560.77552764509572
450.2010534899840550.402106979968110.798946510015945
460.3257294877065230.6514589754130460.674270512293477
470.5112282251091270.9775435497817460.488771774890873
480.4953933852251370.9907867704502750.504606614774863
490.4043063523835380.8086127047670760.595693647616462
500.310556012051860.6211120241037210.68944398794814
510.4587445995687710.9174891991375410.541255400431229
520.5654997148851130.8690005702297740.434500285114887

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
8 & 0.775680314328786 & 0.448639371342427 & 0.224319685671214 \tabularnewline
9 & 0.652306626638695 & 0.69538674672261 & 0.347693373361305 \tabularnewline
10 & 0.53122490089456 & 0.937550198210881 & 0.46877509910544 \tabularnewline
11 & 0.397015064568172 & 0.794030129136343 & 0.602984935431828 \tabularnewline
12 & 0.29691039747319 & 0.593820794946379 & 0.70308960252681 \tabularnewline
13 & 0.494628785818931 & 0.989257571637862 & 0.505371214181069 \tabularnewline
14 & 0.723563263392005 & 0.552873473215991 & 0.276436736607995 \tabularnewline
15 & 0.653290528635602 & 0.693418942728797 & 0.346709471364398 \tabularnewline
16 & 0.575883691455532 & 0.848232617088936 & 0.424116308544468 \tabularnewline
17 & 0.488250073221779 & 0.976500146443559 & 0.511749926778221 \tabularnewline
18 & 0.48739424142269 & 0.974788482845379 & 0.51260575857731 \tabularnewline
19 & 0.405025704599844 & 0.810051409199689 & 0.594974295400156 \tabularnewline
20 & 0.361677569341378 & 0.723355138682755 & 0.638322430658622 \tabularnewline
21 & 0.343072682980647 & 0.686145365961294 & 0.656927317019353 \tabularnewline
22 & 0.279325611867215 & 0.55865122373443 & 0.720674388132785 \tabularnewline
23 & 0.218216347138162 & 0.436432694276324 & 0.781783652861838 \tabularnewline
24 & 0.185818062578777 & 0.371636125157553 & 0.814181937421223 \tabularnewline
25 & 0.134998277478127 & 0.269996554956255 & 0.865001722521872 \tabularnewline
26 & 0.198512818232462 & 0.397025636464925 & 0.801487181767538 \tabularnewline
27 & 0.146031936297213 & 0.292063872594425 & 0.853968063702787 \tabularnewline
28 & 0.104231272799786 & 0.208462545599571 & 0.895768727200214 \tabularnewline
29 & 0.0962888606708992 & 0.192577721341798 & 0.903711139329101 \tabularnewline
30 & 0.079808113877263 & 0.159616227754526 & 0.920191886122737 \tabularnewline
31 & 0.513176354258264 & 0.973647291483473 & 0.486823645741736 \tabularnewline
32 & 0.45014256198907 & 0.90028512397814 & 0.54985743801093 \tabularnewline
33 & 0.385210952538162 & 0.770421905076324 & 0.614789047461838 \tabularnewline
34 & 0.359912812958127 & 0.719825625916254 & 0.640087187041873 \tabularnewline
35 & 0.513077440974165 & 0.973845118051669 & 0.486922559025835 \tabularnewline
36 & 0.459198025032709 & 0.918396050065417 & 0.540801974967291 \tabularnewline
37 & 0.41843806974448 & 0.836876139488959 & 0.58156193025552 \tabularnewline
38 & 0.349076796994443 & 0.698153593988886 & 0.650923203005557 \tabularnewline
39 & 0.376034303859921 & 0.752068607719842 & 0.623965696140079 \tabularnewline
40 & 0.422075054048979 & 0.844150108097958 & 0.577924945951021 \tabularnewline
41 & 0.351865791726771 & 0.703731583453542 & 0.648134208273229 \tabularnewline
42 & 0.279159364655935 & 0.558318729311869 & 0.720840635344065 \tabularnewline
43 & 0.223292841538095 & 0.446585683076191 & 0.776707158461905 \tabularnewline
44 & 0.22447235490428 & 0.44894470980856 & 0.77552764509572 \tabularnewline
45 & 0.201053489984055 & 0.40210697996811 & 0.798946510015945 \tabularnewline
46 & 0.325729487706523 & 0.651458975413046 & 0.674270512293477 \tabularnewline
47 & 0.511228225109127 & 0.977543549781746 & 0.488771774890873 \tabularnewline
48 & 0.495393385225137 & 0.990786770450275 & 0.504606614774863 \tabularnewline
49 & 0.404306352383538 & 0.808612704767076 & 0.595693647616462 \tabularnewline
50 & 0.31055601205186 & 0.621112024103721 & 0.68944398794814 \tabularnewline
51 & 0.458744599568771 & 0.917489199137541 & 0.541255400431229 \tabularnewline
52 & 0.565499714885113 & 0.869000570229774 & 0.434500285114887 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155312&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]8[/C][C]0.775680314328786[/C][C]0.448639371342427[/C][C]0.224319685671214[/C][/ROW]
[ROW][C]9[/C][C]0.652306626638695[/C][C]0.69538674672261[/C][C]0.347693373361305[/C][/ROW]
[ROW][C]10[/C][C]0.53122490089456[/C][C]0.937550198210881[/C][C]0.46877509910544[/C][/ROW]
[ROW][C]11[/C][C]0.397015064568172[/C][C]0.794030129136343[/C][C]0.602984935431828[/C][/ROW]
[ROW][C]12[/C][C]0.29691039747319[/C][C]0.593820794946379[/C][C]0.70308960252681[/C][/ROW]
[ROW][C]13[/C][C]0.494628785818931[/C][C]0.989257571637862[/C][C]0.505371214181069[/C][/ROW]
[ROW][C]14[/C][C]0.723563263392005[/C][C]0.552873473215991[/C][C]0.276436736607995[/C][/ROW]
[ROW][C]15[/C][C]0.653290528635602[/C][C]0.693418942728797[/C][C]0.346709471364398[/C][/ROW]
[ROW][C]16[/C][C]0.575883691455532[/C][C]0.848232617088936[/C][C]0.424116308544468[/C][/ROW]
[ROW][C]17[/C][C]0.488250073221779[/C][C]0.976500146443559[/C][C]0.511749926778221[/C][/ROW]
[ROW][C]18[/C][C]0.48739424142269[/C][C]0.974788482845379[/C][C]0.51260575857731[/C][/ROW]
[ROW][C]19[/C][C]0.405025704599844[/C][C]0.810051409199689[/C][C]0.594974295400156[/C][/ROW]
[ROW][C]20[/C][C]0.361677569341378[/C][C]0.723355138682755[/C][C]0.638322430658622[/C][/ROW]
[ROW][C]21[/C][C]0.343072682980647[/C][C]0.686145365961294[/C][C]0.656927317019353[/C][/ROW]
[ROW][C]22[/C][C]0.279325611867215[/C][C]0.55865122373443[/C][C]0.720674388132785[/C][/ROW]
[ROW][C]23[/C][C]0.218216347138162[/C][C]0.436432694276324[/C][C]0.781783652861838[/C][/ROW]
[ROW][C]24[/C][C]0.185818062578777[/C][C]0.371636125157553[/C][C]0.814181937421223[/C][/ROW]
[ROW][C]25[/C][C]0.134998277478127[/C][C]0.269996554956255[/C][C]0.865001722521872[/C][/ROW]
[ROW][C]26[/C][C]0.198512818232462[/C][C]0.397025636464925[/C][C]0.801487181767538[/C][/ROW]
[ROW][C]27[/C][C]0.146031936297213[/C][C]0.292063872594425[/C][C]0.853968063702787[/C][/ROW]
[ROW][C]28[/C][C]0.104231272799786[/C][C]0.208462545599571[/C][C]0.895768727200214[/C][/ROW]
[ROW][C]29[/C][C]0.0962888606708992[/C][C]0.192577721341798[/C][C]0.903711139329101[/C][/ROW]
[ROW][C]30[/C][C]0.079808113877263[/C][C]0.159616227754526[/C][C]0.920191886122737[/C][/ROW]
[ROW][C]31[/C][C]0.513176354258264[/C][C]0.973647291483473[/C][C]0.486823645741736[/C][/ROW]
[ROW][C]32[/C][C]0.45014256198907[/C][C]0.90028512397814[/C][C]0.54985743801093[/C][/ROW]
[ROW][C]33[/C][C]0.385210952538162[/C][C]0.770421905076324[/C][C]0.614789047461838[/C][/ROW]
[ROW][C]34[/C][C]0.359912812958127[/C][C]0.719825625916254[/C][C]0.640087187041873[/C][/ROW]
[ROW][C]35[/C][C]0.513077440974165[/C][C]0.973845118051669[/C][C]0.486922559025835[/C][/ROW]
[ROW][C]36[/C][C]0.459198025032709[/C][C]0.918396050065417[/C][C]0.540801974967291[/C][/ROW]
[ROW][C]37[/C][C]0.41843806974448[/C][C]0.836876139488959[/C][C]0.58156193025552[/C][/ROW]
[ROW][C]38[/C][C]0.349076796994443[/C][C]0.698153593988886[/C][C]0.650923203005557[/C][/ROW]
[ROW][C]39[/C][C]0.376034303859921[/C][C]0.752068607719842[/C][C]0.623965696140079[/C][/ROW]
[ROW][C]40[/C][C]0.422075054048979[/C][C]0.844150108097958[/C][C]0.577924945951021[/C][/ROW]
[ROW][C]41[/C][C]0.351865791726771[/C][C]0.703731583453542[/C][C]0.648134208273229[/C][/ROW]
[ROW][C]42[/C][C]0.279159364655935[/C][C]0.558318729311869[/C][C]0.720840635344065[/C][/ROW]
[ROW][C]43[/C][C]0.223292841538095[/C][C]0.446585683076191[/C][C]0.776707158461905[/C][/ROW]
[ROW][C]44[/C][C]0.22447235490428[/C][C]0.44894470980856[/C][C]0.77552764509572[/C][/ROW]
[ROW][C]45[/C][C]0.201053489984055[/C][C]0.40210697996811[/C][C]0.798946510015945[/C][/ROW]
[ROW][C]46[/C][C]0.325729487706523[/C][C]0.651458975413046[/C][C]0.674270512293477[/C][/ROW]
[ROW][C]47[/C][C]0.511228225109127[/C][C]0.977543549781746[/C][C]0.488771774890873[/C][/ROW]
[ROW][C]48[/C][C]0.495393385225137[/C][C]0.990786770450275[/C][C]0.504606614774863[/C][/ROW]
[ROW][C]49[/C][C]0.404306352383538[/C][C]0.808612704767076[/C][C]0.595693647616462[/C][/ROW]
[ROW][C]50[/C][C]0.31055601205186[/C][C]0.621112024103721[/C][C]0.68944398794814[/C][/ROW]
[ROW][C]51[/C][C]0.458744599568771[/C][C]0.917489199137541[/C][C]0.541255400431229[/C][/ROW]
[ROW][C]52[/C][C]0.565499714885113[/C][C]0.869000570229774[/C][C]0.434500285114887[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155312&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155312&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
80.7756803143287860.4486393713424270.224319685671214
90.6523066266386950.695386746722610.347693373361305
100.531224900894560.9375501982108810.46877509910544
110.3970150645681720.7940301291363430.602984935431828
120.296910397473190.5938207949463790.70308960252681
130.4946287858189310.9892575716378620.505371214181069
140.7235632633920050.5528734732159910.276436736607995
150.6532905286356020.6934189427287970.346709471364398
160.5758836914555320.8482326170889360.424116308544468
170.4882500732217790.9765001464435590.511749926778221
180.487394241422690.9747884828453790.51260575857731
190.4050257045998440.8100514091996890.594974295400156
200.3616775693413780.7233551386827550.638322430658622
210.3430726829806470.6861453659612940.656927317019353
220.2793256118672150.558651223734430.720674388132785
230.2182163471381620.4364326942763240.781783652861838
240.1858180625787770.3716361251575530.814181937421223
250.1349982774781270.2699965549562550.865001722521872
260.1985128182324620.3970256364649250.801487181767538
270.1460319362972130.2920638725944250.853968063702787
280.1042312727997860.2084625455995710.895768727200214
290.09628886067089920.1925777213417980.903711139329101
300.0798081138772630.1596162277545260.920191886122737
310.5131763542582640.9736472914834730.486823645741736
320.450142561989070.900285123978140.54985743801093
330.3852109525381620.7704219050763240.614789047461838
340.3599128129581270.7198256259162540.640087187041873
350.5130774409741650.9738451180516690.486922559025835
360.4591980250327090.9183960500654170.540801974967291
370.418438069744480.8368761394889590.58156193025552
380.3490767969944430.6981535939888860.650923203005557
390.3760343038599210.7520686077198420.623965696140079
400.4220750540489790.8441501080979580.577924945951021
410.3518657917267710.7037315834535420.648134208273229
420.2791593646559350.5583187293118690.720840635344065
430.2232928415380950.4465856830761910.776707158461905
440.224472354904280.448944709808560.77552764509572
450.2010534899840550.402106979968110.798946510015945
460.3257294877065230.6514589754130460.674270512293477
470.5112282251091270.9775435497817460.488771774890873
480.4953933852251370.9907867704502750.504606614774863
490.4043063523835380.8086127047670760.595693647616462
500.310556012051860.6211120241037210.68944398794814
510.4587445995687710.9174891991375410.541255400431229
520.5654997148851130.8690005702297740.434500285114887







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=155312&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=155312&T=6

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