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, 19 Nov 2009 09:26:59 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/19/t1258648079on0tefnuvde5zvr.htm/, Retrieved Thu, 25 Apr 2024 09:46:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57808, Retrieved Thu, 25 Apr 2024 09:46:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [M4] [2009-11-19 16:26:59] [2ecea65fec1cd5f6b1ab182881aa2a91] [Current]
Feedback Forum

Post a new message
Dataseries X:
23	2497,84	21	25	19	21
23	2645,64	23	21	25	19
19	2756,76	23	23	21	25
18	2849,27	19	23	23	21
19	2921,44	18	19	23	23
19	2981,85	19	18	19	23
22	3080,58	19	19	18	19
23	3106,22	22	19	19	18
20	3119,31	23	22	19	19
14	3061,26	20	23	22	19
14	3097,31	14	20	23	22
14	3161,69	14	14	20	23
15	3257,16	14	14	14	20
11	3277,01	15	14	14	14
17	3295,32	11	15	14	14
16	3363,99	17	11	15	14
20	3494,17	16	17	11	15
24	3667,03	20	16	17	11
23	3813,06	24	20	16	17
20	3917,96	23	24	20	16
21	3895,51	20	23	24	20
19	3801,06	21	20	23	24
23	3570,12	19	21	20	23
23	3701,61	23	19	21	20
23	3862,27	23	23	19	21
23	3970,1	23	23	23	19
27	4138,52	23	23	23	23
26	4199,75	27	23	23	23
17	4290,89	26	27	23	23
24	4443,91	17	26	27	23
26	4502,64	24	17	26	27
24	4356,98	26	24	17	26
27	4591,27	24	26	24	17
27	4696,96	27	24	26	24
26	4621,4	27	27	24	26
24	4562,84	26	27	27	24
23	4202,52	24	26	27	27
23	4296,49	23	24	26	27
24	4435,23	23	23	24	26
17	4105,18	24	23	23	24
21	4116,68	17	24	23	23
19	3844,49	21	17	24	23
22	3720,98	19	21	17	24
22	3674,4	22	19	21	17
18	3857,62	22	22	19	21
16	3801,06	18	22	22	19
14	3504,37	16	18	22	22
12	3032,6	14	16	18	22
14	3047,03	12	14	16	18
16	2962,34	14	12	14	16
8	2197,82	16	14	12	14
3	2014,45	8	16	14	12
0	1862,83	3	8	16	14
5	1905,41	0	3	8	16
1	1810,99	5	0	3	8
1	1670,07	1	5	0	3
3	1864,44	1	1	5	0




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Consvertr[t] = -0.872484218315952 + 0.00413803755490541Aand[t] + 0.437427745519679Y1[t] -0.0161778421047462Y2[t] -0.0110721431993476Y3[t] + 0.00787373937551976Y4[t] -0.101399226156349t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consvertr[t] =  -0.872484218315952 +  0.00413803755490541Aand[t] +  0.437427745519679Y1[t] -0.0161778421047462Y2[t] -0.0110721431993476Y3[t] +  0.00787373937551976Y4[t] -0.101399226156349t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57808&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consvertr[t] =  -0.872484218315952 +  0.00413803755490541Aand[t] +  0.437427745519679Y1[t] -0.0161778421047462Y2[t] -0.0110721431993476Y3[t] +  0.00787373937551976Y4[t] -0.101399226156349t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57808&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57808&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
Consvertr[t] = -0.872484218315952 + 0.00413803755490541Aand[t] + 0.437427745519679Y1[t] -0.0161778421047462Y2[t] -0.0110721431993476Y3[t] + 0.00787373937551976Y4[t] -0.101399226156349t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-0.8724842183159521.951029-0.44720.6566680.328334
Aand0.004138037554905410.0009414.39825.7e-052.9e-05
Y10.4374277455196790.1385623.15690.0027020.001351
Y2-0.01617784210474620.145394-0.11130.9118480.455924
Y3-0.01107214319934760.145564-0.07610.9396720.469836
Y40.007873739375519760.1231820.06390.9492890.474645
t-0.1013992261563490.02836-3.57550.0007870.000393

\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.872484218315952 & 1.951029 & -0.4472 & 0.656668 & 0.328334 \tabularnewline
Aand & 0.00413803755490541 & 0.000941 & 4.3982 & 5.7e-05 & 2.9e-05 \tabularnewline
Y1 & 0.437427745519679 & 0.138562 & 3.1569 & 0.002702 & 0.001351 \tabularnewline
Y2 & -0.0161778421047462 & 0.145394 & -0.1113 & 0.911848 & 0.455924 \tabularnewline
Y3 & -0.0110721431993476 & 0.145564 & -0.0761 & 0.939672 & 0.469836 \tabularnewline
Y4 & 0.00787373937551976 & 0.123182 & 0.0639 & 0.949289 & 0.474645 \tabularnewline
t & -0.101399226156349 & 0.02836 & -3.5755 & 0.000787 & 0.000393 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57808&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.872484218315952[/C][C]1.951029[/C][C]-0.4472[/C][C]0.656668[/C][C]0.328334[/C][/ROW]
[ROW][C]Aand[/C][C]0.00413803755490541[/C][C]0.000941[/C][C]4.3982[/C][C]5.7e-05[/C][C]2.9e-05[/C][/ROW]
[ROW][C]Y1[/C][C]0.437427745519679[/C][C]0.138562[/C][C]3.1569[/C][C]0.002702[/C][C]0.001351[/C][/ROW]
[ROW][C]Y2[/C][C]-0.0161778421047462[/C][C]0.145394[/C][C]-0.1113[/C][C]0.911848[/C][C]0.455924[/C][/ROW]
[ROW][C]Y3[/C][C]-0.0110721431993476[/C][C]0.145564[/C][C]-0.0761[/C][C]0.939672[/C][C]0.469836[/C][/ROW]
[ROW][C]Y4[/C][C]0.00787373937551976[/C][C]0.123182[/C][C]0.0639[/C][C]0.949289[/C][C]0.474645[/C][/ROW]
[ROW][C]t[/C][C]-0.101399226156349[/C][C]0.02836[/C][C]-3.5755[/C][C]0.000787[/C][C]0.000393[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57808&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57808&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.8724842183159521.951029-0.44720.6566680.328334
Aand0.004138037554905410.0009414.39825.7e-052.9e-05
Y10.4374277455196790.1385623.15690.0027020.001351
Y2-0.01617784210474620.145394-0.11130.9118480.455924
Y3-0.01107214319934760.145564-0.07610.9396720.469836
Y40.007873739375519760.1231820.06390.9492890.474645
t-0.1013992261563490.02836-3.57550.0007870.000393







Multiple Linear Regression - Regression Statistics
Multiple R0.924194193330778
R-squared0.854134906986328
Adjusted R-squared0.836631095824687
F-TEST (value)48.7970819096901
F-TEST (DF numerator)6
F-TEST (DF denominator)50
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.83563052198185
Sum Squared Residuals402.040022859754

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.924194193330778 \tabularnewline
R-squared & 0.854134906986328 \tabularnewline
Adjusted R-squared & 0.836631095824687 \tabularnewline
F-TEST (value) & 48.7970819096901 \tabularnewline
F-TEST (DF numerator) & 6 \tabularnewline
F-TEST (DF denominator) & 50 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.83563052198185 \tabularnewline
Sum Squared Residuals & 402.040022859754 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57808&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.924194193330778[/C][/ROW]
[ROW][C]R-squared[/C][C]0.854134906986328[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.836631095824687[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]48.7970819096901[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]6[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]50[/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]2.83563052198185[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]402.040022859754[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57808&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57808&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.924194193330778
R-squared0.854134906986328
Adjusted R-squared0.836631095824687
F-TEST (value)48.7970819096901
F-TEST (DF numerator)6
F-TEST (DF denominator)50
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.83563052198185
Sum Squared Residuals402.040022859754







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12318.09878669106564.90121330893445
22319.46637593703543.53362406296457
31919.8839707688212-0.88397076882118
41818.3620311708896-0.362031170889643
51918.20230521672120.797694783278835
61918.84877899967850.151221000321536
72219.11932756491042.88067243508955
82320.41736497564602.58263502435396
92020.7669006196644-0.766900619664364
101419.0636108051839-5.06361080518393
111416.5479039610053-2.5479039610053
121416.8510688142358-2.8510688142358
131517.1875396745158-2.18753967451580
141117.5584658030909-6.55846580309088
151715.76694522038141.23305477961861
161618.6279107314581-2.6279107314581
172018.58286874822411.41713125177591
182420.8647317012943.13526829870601
192323.1109242923927-0.110924292392672
202022.8893037796343-2.88930377963433
212121.3861066006207-0.38610660062075
221921.4223980999389-2.42239809993893
232319.49966983793113.50033016206886
242321.68975447483161.31024552516839
252322.21847901960160.78152098039841
262322.50324833144230.49675166855774
272723.13027234778523.86972765221484
282625.03195614319440.968043856805617
291724.8055585458534-7.80555854585345
302421.37240138597902.62759861402103
312624.76419100370411.23580899629589
322424.913431373025-0.91343137302498
332724.72595313358352.27404686641654
342726.43951390660350.560486093396464
352626.0148028016340-0.0148028016340279
362425.1846884423937-1.18468844239366
372322.75721509364570.242784906354258
382322.6506673384130.349332661586988
392423.15382783175220.84617216824784
401722.1194217205673-5.11942172056727
412118.97956412617432.02043587382568
421919.6037161915609-0.603716191560853
432218.13703982931073.86296017068925
442219.08812498618942.91187501381059
451819.7500027184294-1.75000271842936
461617.6158811977398-1.61588119773976
471415.5002447049247-1.50024470492471
481212.6484322674582-0.648432267458164
491411.75489444528592.24510555471415
501612.21665280150113.78334719849893
5189.80053771834596-1.80053771834596
5235.37067713222995-2.37067713222995
5302.57775585359076-2.57775585359076
5451.525484864832803.4745151351672
5513.26141518764749-2.26141518764749
5610.7401312493718680.259868750628132
5731.428771817058171.57122818294183

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 23 & 18.0987866910656 & 4.90121330893445 \tabularnewline
2 & 23 & 19.4663759370354 & 3.53362406296457 \tabularnewline
3 & 19 & 19.8839707688212 & -0.88397076882118 \tabularnewline
4 & 18 & 18.3620311708896 & -0.362031170889643 \tabularnewline
5 & 19 & 18.2023052167212 & 0.797694783278835 \tabularnewline
6 & 19 & 18.8487789996785 & 0.151221000321536 \tabularnewline
7 & 22 & 19.1193275649104 & 2.88067243508955 \tabularnewline
8 & 23 & 20.4173649756460 & 2.58263502435396 \tabularnewline
9 & 20 & 20.7669006196644 & -0.766900619664364 \tabularnewline
10 & 14 & 19.0636108051839 & -5.06361080518393 \tabularnewline
11 & 14 & 16.5479039610053 & -2.5479039610053 \tabularnewline
12 & 14 & 16.8510688142358 & -2.8510688142358 \tabularnewline
13 & 15 & 17.1875396745158 & -2.18753967451580 \tabularnewline
14 & 11 & 17.5584658030909 & -6.55846580309088 \tabularnewline
15 & 17 & 15.7669452203814 & 1.23305477961861 \tabularnewline
16 & 16 & 18.6279107314581 & -2.6279107314581 \tabularnewline
17 & 20 & 18.5828687482241 & 1.41713125177591 \tabularnewline
18 & 24 & 20.864731701294 & 3.13526829870601 \tabularnewline
19 & 23 & 23.1109242923927 & -0.110924292392672 \tabularnewline
20 & 20 & 22.8893037796343 & -2.88930377963433 \tabularnewline
21 & 21 & 21.3861066006207 & -0.38610660062075 \tabularnewline
22 & 19 & 21.4223980999389 & -2.42239809993893 \tabularnewline
23 & 23 & 19.4996698379311 & 3.50033016206886 \tabularnewline
24 & 23 & 21.6897544748316 & 1.31024552516839 \tabularnewline
25 & 23 & 22.2184790196016 & 0.78152098039841 \tabularnewline
26 & 23 & 22.5032483314423 & 0.49675166855774 \tabularnewline
27 & 27 & 23.1302723477852 & 3.86972765221484 \tabularnewline
28 & 26 & 25.0319561431944 & 0.968043856805617 \tabularnewline
29 & 17 & 24.8055585458534 & -7.80555854585345 \tabularnewline
30 & 24 & 21.3724013859790 & 2.62759861402103 \tabularnewline
31 & 26 & 24.7641910037041 & 1.23580899629589 \tabularnewline
32 & 24 & 24.913431373025 & -0.91343137302498 \tabularnewline
33 & 27 & 24.7259531335835 & 2.27404686641654 \tabularnewline
34 & 27 & 26.4395139066035 & 0.560486093396464 \tabularnewline
35 & 26 & 26.0148028016340 & -0.0148028016340279 \tabularnewline
36 & 24 & 25.1846884423937 & -1.18468844239366 \tabularnewline
37 & 23 & 22.7572150936457 & 0.242784906354258 \tabularnewline
38 & 23 & 22.650667338413 & 0.349332661586988 \tabularnewline
39 & 24 & 23.1538278317522 & 0.84617216824784 \tabularnewline
40 & 17 & 22.1194217205673 & -5.11942172056727 \tabularnewline
41 & 21 & 18.9795641261743 & 2.02043587382568 \tabularnewline
42 & 19 & 19.6037161915609 & -0.603716191560853 \tabularnewline
43 & 22 & 18.1370398293107 & 3.86296017068925 \tabularnewline
44 & 22 & 19.0881249861894 & 2.91187501381059 \tabularnewline
45 & 18 & 19.7500027184294 & -1.75000271842936 \tabularnewline
46 & 16 & 17.6158811977398 & -1.61588119773976 \tabularnewline
47 & 14 & 15.5002447049247 & -1.50024470492471 \tabularnewline
48 & 12 & 12.6484322674582 & -0.648432267458164 \tabularnewline
49 & 14 & 11.7548944452859 & 2.24510555471415 \tabularnewline
50 & 16 & 12.2166528015011 & 3.78334719849893 \tabularnewline
51 & 8 & 9.80053771834596 & -1.80053771834596 \tabularnewline
52 & 3 & 5.37067713222995 & -2.37067713222995 \tabularnewline
53 & 0 & 2.57775585359076 & -2.57775585359076 \tabularnewline
54 & 5 & 1.52548486483280 & 3.4745151351672 \tabularnewline
55 & 1 & 3.26141518764749 & -2.26141518764749 \tabularnewline
56 & 1 & 0.740131249371868 & 0.259868750628132 \tabularnewline
57 & 3 & 1.42877181705817 & 1.57122818294183 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57808&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]23[/C][C]18.0987866910656[/C][C]4.90121330893445[/C][/ROW]
[ROW][C]2[/C][C]23[/C][C]19.4663759370354[/C][C]3.53362406296457[/C][/ROW]
[ROW][C]3[/C][C]19[/C][C]19.8839707688212[/C][C]-0.88397076882118[/C][/ROW]
[ROW][C]4[/C][C]18[/C][C]18.3620311708896[/C][C]-0.362031170889643[/C][/ROW]
[ROW][C]5[/C][C]19[/C][C]18.2023052167212[/C][C]0.797694783278835[/C][/ROW]
[ROW][C]6[/C][C]19[/C][C]18.8487789996785[/C][C]0.151221000321536[/C][/ROW]
[ROW][C]7[/C][C]22[/C][C]19.1193275649104[/C][C]2.88067243508955[/C][/ROW]
[ROW][C]8[/C][C]23[/C][C]20.4173649756460[/C][C]2.58263502435396[/C][/ROW]
[ROW][C]9[/C][C]20[/C][C]20.7669006196644[/C][C]-0.766900619664364[/C][/ROW]
[ROW][C]10[/C][C]14[/C][C]19.0636108051839[/C][C]-5.06361080518393[/C][/ROW]
[ROW][C]11[/C][C]14[/C][C]16.5479039610053[/C][C]-2.5479039610053[/C][/ROW]
[ROW][C]12[/C][C]14[/C][C]16.8510688142358[/C][C]-2.8510688142358[/C][/ROW]
[ROW][C]13[/C][C]15[/C][C]17.1875396745158[/C][C]-2.18753967451580[/C][/ROW]
[ROW][C]14[/C][C]11[/C][C]17.5584658030909[/C][C]-6.55846580309088[/C][/ROW]
[ROW][C]15[/C][C]17[/C][C]15.7669452203814[/C][C]1.23305477961861[/C][/ROW]
[ROW][C]16[/C][C]16[/C][C]18.6279107314581[/C][C]-2.6279107314581[/C][/ROW]
[ROW][C]17[/C][C]20[/C][C]18.5828687482241[/C][C]1.41713125177591[/C][/ROW]
[ROW][C]18[/C][C]24[/C][C]20.864731701294[/C][C]3.13526829870601[/C][/ROW]
[ROW][C]19[/C][C]23[/C][C]23.1109242923927[/C][C]-0.110924292392672[/C][/ROW]
[ROW][C]20[/C][C]20[/C][C]22.8893037796343[/C][C]-2.88930377963433[/C][/ROW]
[ROW][C]21[/C][C]21[/C][C]21.3861066006207[/C][C]-0.38610660062075[/C][/ROW]
[ROW][C]22[/C][C]19[/C][C]21.4223980999389[/C][C]-2.42239809993893[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]19.4996698379311[/C][C]3.50033016206886[/C][/ROW]
[ROW][C]24[/C][C]23[/C][C]21.6897544748316[/C][C]1.31024552516839[/C][/ROW]
[ROW][C]25[/C][C]23[/C][C]22.2184790196016[/C][C]0.78152098039841[/C][/ROW]
[ROW][C]26[/C][C]23[/C][C]22.5032483314423[/C][C]0.49675166855774[/C][/ROW]
[ROW][C]27[/C][C]27[/C][C]23.1302723477852[/C][C]3.86972765221484[/C][/ROW]
[ROW][C]28[/C][C]26[/C][C]25.0319561431944[/C][C]0.968043856805617[/C][/ROW]
[ROW][C]29[/C][C]17[/C][C]24.8055585458534[/C][C]-7.80555854585345[/C][/ROW]
[ROW][C]30[/C][C]24[/C][C]21.3724013859790[/C][C]2.62759861402103[/C][/ROW]
[ROW][C]31[/C][C]26[/C][C]24.7641910037041[/C][C]1.23580899629589[/C][/ROW]
[ROW][C]32[/C][C]24[/C][C]24.913431373025[/C][C]-0.91343137302498[/C][/ROW]
[ROW][C]33[/C][C]27[/C][C]24.7259531335835[/C][C]2.27404686641654[/C][/ROW]
[ROW][C]34[/C][C]27[/C][C]26.4395139066035[/C][C]0.560486093396464[/C][/ROW]
[ROW][C]35[/C][C]26[/C][C]26.0148028016340[/C][C]-0.0148028016340279[/C][/ROW]
[ROW][C]36[/C][C]24[/C][C]25.1846884423937[/C][C]-1.18468844239366[/C][/ROW]
[ROW][C]37[/C][C]23[/C][C]22.7572150936457[/C][C]0.242784906354258[/C][/ROW]
[ROW][C]38[/C][C]23[/C][C]22.650667338413[/C][C]0.349332661586988[/C][/ROW]
[ROW][C]39[/C][C]24[/C][C]23.1538278317522[/C][C]0.84617216824784[/C][/ROW]
[ROW][C]40[/C][C]17[/C][C]22.1194217205673[/C][C]-5.11942172056727[/C][/ROW]
[ROW][C]41[/C][C]21[/C][C]18.9795641261743[/C][C]2.02043587382568[/C][/ROW]
[ROW][C]42[/C][C]19[/C][C]19.6037161915609[/C][C]-0.603716191560853[/C][/ROW]
[ROW][C]43[/C][C]22[/C][C]18.1370398293107[/C][C]3.86296017068925[/C][/ROW]
[ROW][C]44[/C][C]22[/C][C]19.0881249861894[/C][C]2.91187501381059[/C][/ROW]
[ROW][C]45[/C][C]18[/C][C]19.7500027184294[/C][C]-1.75000271842936[/C][/ROW]
[ROW][C]46[/C][C]16[/C][C]17.6158811977398[/C][C]-1.61588119773976[/C][/ROW]
[ROW][C]47[/C][C]14[/C][C]15.5002447049247[/C][C]-1.50024470492471[/C][/ROW]
[ROW][C]48[/C][C]12[/C][C]12.6484322674582[/C][C]-0.648432267458164[/C][/ROW]
[ROW][C]49[/C][C]14[/C][C]11.7548944452859[/C][C]2.24510555471415[/C][/ROW]
[ROW][C]50[/C][C]16[/C][C]12.2166528015011[/C][C]3.78334719849893[/C][/ROW]
[ROW][C]51[/C][C]8[/C][C]9.80053771834596[/C][C]-1.80053771834596[/C][/ROW]
[ROW][C]52[/C][C]3[/C][C]5.37067713222995[/C][C]-2.37067713222995[/C][/ROW]
[ROW][C]53[/C][C]0[/C][C]2.57775585359076[/C][C]-2.57775585359076[/C][/ROW]
[ROW][C]54[/C][C]5[/C][C]1.52548486483280[/C][C]3.4745151351672[/C][/ROW]
[ROW][C]55[/C][C]1[/C][C]3.26141518764749[/C][C]-2.26141518764749[/C][/ROW]
[ROW][C]56[/C][C]1[/C][C]0.740131249371868[/C][C]0.259868750628132[/C][/ROW]
[ROW][C]57[/C][C]3[/C][C]1.42877181705817[/C][C]1.57122818294183[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57808&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57808&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
12318.09878669106564.90121330893445
22319.46637593703543.53362406296457
31919.8839707688212-0.88397076882118
41818.3620311708896-0.362031170889643
51918.20230521672120.797694783278835
61918.84877899967850.151221000321536
72219.11932756491042.88067243508955
82320.41736497564602.58263502435396
92020.7669006196644-0.766900619664364
101419.0636108051839-5.06361080518393
111416.5479039610053-2.5479039610053
121416.8510688142358-2.8510688142358
131517.1875396745158-2.18753967451580
141117.5584658030909-6.55846580309088
151715.76694522038141.23305477961861
161618.6279107314581-2.6279107314581
172018.58286874822411.41713125177591
182420.8647317012943.13526829870601
192323.1109242923927-0.110924292392672
202022.8893037796343-2.88930377963433
212121.3861066006207-0.38610660062075
221921.4223980999389-2.42239809993893
232319.49966983793113.50033016206886
242321.68975447483161.31024552516839
252322.21847901960160.78152098039841
262322.50324833144230.49675166855774
272723.13027234778523.86972765221484
282625.03195614319440.968043856805617
291724.8055585458534-7.80555854585345
302421.37240138597902.62759861402103
312624.76419100370411.23580899629589
322424.913431373025-0.91343137302498
332724.72595313358352.27404686641654
342726.43951390660350.560486093396464
352626.0148028016340-0.0148028016340279
362425.1846884423937-1.18468844239366
372322.75721509364570.242784906354258
382322.6506673384130.349332661586988
392423.15382783175220.84617216824784
401722.1194217205673-5.11942172056727
412118.97956412617432.02043587382568
421919.6037161915609-0.603716191560853
432218.13703982931073.86296017068925
442219.08812498618942.91187501381059
451819.7500027184294-1.75000271842936
461617.6158811977398-1.61588119773976
471415.5002447049247-1.50024470492471
481212.6484322674582-0.648432267458164
491411.75489444528592.24510555471415
501612.21665280150113.78334719849893
5189.80053771834596-1.80053771834596
5235.37067713222995-2.37067713222995
5302.57775585359076-2.57775585359076
5451.525484864832803.4745151351672
5513.26141518764749-2.26141518764749
5610.7401312493718680.259868750628132
5731.428771817058171.57122818294183







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.08722176066104570.1744435213220910.912778239338954
110.1250066434938690.2500132869877390.87499335650613
120.08831644712514330.1766328942502870.911683552874857
130.1048942033382860.2097884066765720.895105796661714
140.5558896232190170.8882207535619660.444110376780983
150.651532803588540.6969343928229190.348467196411459
160.6205916869630950.758816626073810.379408313036905
170.6999043088771530.6001913822456940.300095691122847
180.7682851477965660.4634297044068670.231714852203434
190.6959865824446380.6080268351107230.304013417555362
200.6639580782326830.6720838435346340.336041921767317
210.6951879175260520.6096241649478960.304812082473948
220.7291773662304620.5416452675390760.270822633769538
230.8421986565045360.3156026869909280.157801343495464
240.790254073263710.4194918534725790.209745926736290
250.7251472194995110.5497055610009780.274852780500489
260.6525216972686290.6949566054627410.347478302731371
270.7632219674605480.4735560650789030.236778032539452
280.7665002774925330.4669994450149340.233499722507467
290.9678091316168080.06438173676638460.0321908683831923
300.9688739167842510.06225216643149760.0311260832157488
310.953925647886370.09214870422726020.0460743521136301
320.9385687750698460.1228624498603080.0614312249301541
330.92057537118190.1588492576362010.0794246288181007
340.8815110665015820.2369778669968370.118488933498418
350.8285361629277290.3429276741445420.171463837072271
360.7718355518040060.4563288963919880.228164448195994
370.702527067539040.594945864921920.29747293246096
380.614574713352840.770850573294320.38542528664716
390.5179659527595740.9640680944808520.482034047240426
400.7621956169702360.4756087660595280.237804383029764
410.6925719488549670.6148561022900660.307428051145033
420.6865366959317440.6269266081365110.313463304068256
430.6139404443410060.7721191113179880.386059555658994
440.903184900629560.1936301987408800.0968150993704402
450.833687163318320.3326256733633610.166312836681680
460.7185769861413550.5628460277172890.281423013858645
470.8841327447675330.2317345104649350.115867255232467

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
10 & 0.0872217606610457 & 0.174443521322091 & 0.912778239338954 \tabularnewline
11 & 0.125006643493869 & 0.250013286987739 & 0.87499335650613 \tabularnewline
12 & 0.0883164471251433 & 0.176632894250287 & 0.911683552874857 \tabularnewline
13 & 0.104894203338286 & 0.209788406676572 & 0.895105796661714 \tabularnewline
14 & 0.555889623219017 & 0.888220753561966 & 0.444110376780983 \tabularnewline
15 & 0.65153280358854 & 0.696934392822919 & 0.348467196411459 \tabularnewline
16 & 0.620591686963095 & 0.75881662607381 & 0.379408313036905 \tabularnewline
17 & 0.699904308877153 & 0.600191382245694 & 0.300095691122847 \tabularnewline
18 & 0.768285147796566 & 0.463429704406867 & 0.231714852203434 \tabularnewline
19 & 0.695986582444638 & 0.608026835110723 & 0.304013417555362 \tabularnewline
20 & 0.663958078232683 & 0.672083843534634 & 0.336041921767317 \tabularnewline
21 & 0.695187917526052 & 0.609624164947896 & 0.304812082473948 \tabularnewline
22 & 0.729177366230462 & 0.541645267539076 & 0.270822633769538 \tabularnewline
23 & 0.842198656504536 & 0.315602686990928 & 0.157801343495464 \tabularnewline
24 & 0.79025407326371 & 0.419491853472579 & 0.209745926736290 \tabularnewline
25 & 0.725147219499511 & 0.549705561000978 & 0.274852780500489 \tabularnewline
26 & 0.652521697268629 & 0.694956605462741 & 0.347478302731371 \tabularnewline
27 & 0.763221967460548 & 0.473556065078903 & 0.236778032539452 \tabularnewline
28 & 0.766500277492533 & 0.466999445014934 & 0.233499722507467 \tabularnewline
29 & 0.967809131616808 & 0.0643817367663846 & 0.0321908683831923 \tabularnewline
30 & 0.968873916784251 & 0.0622521664314976 & 0.0311260832157488 \tabularnewline
31 & 0.95392564788637 & 0.0921487042272602 & 0.0460743521136301 \tabularnewline
32 & 0.938568775069846 & 0.122862449860308 & 0.0614312249301541 \tabularnewline
33 & 0.9205753711819 & 0.158849257636201 & 0.0794246288181007 \tabularnewline
34 & 0.881511066501582 & 0.236977866996837 & 0.118488933498418 \tabularnewline
35 & 0.828536162927729 & 0.342927674144542 & 0.171463837072271 \tabularnewline
36 & 0.771835551804006 & 0.456328896391988 & 0.228164448195994 \tabularnewline
37 & 0.70252706753904 & 0.59494586492192 & 0.29747293246096 \tabularnewline
38 & 0.61457471335284 & 0.77085057329432 & 0.38542528664716 \tabularnewline
39 & 0.517965952759574 & 0.964068094480852 & 0.482034047240426 \tabularnewline
40 & 0.762195616970236 & 0.475608766059528 & 0.237804383029764 \tabularnewline
41 & 0.692571948854967 & 0.614856102290066 & 0.307428051145033 \tabularnewline
42 & 0.686536695931744 & 0.626926608136511 & 0.313463304068256 \tabularnewline
43 & 0.613940444341006 & 0.772119111317988 & 0.386059555658994 \tabularnewline
44 & 0.90318490062956 & 0.193630198740880 & 0.0968150993704402 \tabularnewline
45 & 0.83368716331832 & 0.332625673363361 & 0.166312836681680 \tabularnewline
46 & 0.718576986141355 & 0.562846027717289 & 0.281423013858645 \tabularnewline
47 & 0.884132744767533 & 0.231734510464935 & 0.115867255232467 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57808&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]10[/C][C]0.0872217606610457[/C][C]0.174443521322091[/C][C]0.912778239338954[/C][/ROW]
[ROW][C]11[/C][C]0.125006643493869[/C][C]0.250013286987739[/C][C]0.87499335650613[/C][/ROW]
[ROW][C]12[/C][C]0.0883164471251433[/C][C]0.176632894250287[/C][C]0.911683552874857[/C][/ROW]
[ROW][C]13[/C][C]0.104894203338286[/C][C]0.209788406676572[/C][C]0.895105796661714[/C][/ROW]
[ROW][C]14[/C][C]0.555889623219017[/C][C]0.888220753561966[/C][C]0.444110376780983[/C][/ROW]
[ROW][C]15[/C][C]0.65153280358854[/C][C]0.696934392822919[/C][C]0.348467196411459[/C][/ROW]
[ROW][C]16[/C][C]0.620591686963095[/C][C]0.75881662607381[/C][C]0.379408313036905[/C][/ROW]
[ROW][C]17[/C][C]0.699904308877153[/C][C]0.600191382245694[/C][C]0.300095691122847[/C][/ROW]
[ROW][C]18[/C][C]0.768285147796566[/C][C]0.463429704406867[/C][C]0.231714852203434[/C][/ROW]
[ROW][C]19[/C][C]0.695986582444638[/C][C]0.608026835110723[/C][C]0.304013417555362[/C][/ROW]
[ROW][C]20[/C][C]0.663958078232683[/C][C]0.672083843534634[/C][C]0.336041921767317[/C][/ROW]
[ROW][C]21[/C][C]0.695187917526052[/C][C]0.609624164947896[/C][C]0.304812082473948[/C][/ROW]
[ROW][C]22[/C][C]0.729177366230462[/C][C]0.541645267539076[/C][C]0.270822633769538[/C][/ROW]
[ROW][C]23[/C][C]0.842198656504536[/C][C]0.315602686990928[/C][C]0.157801343495464[/C][/ROW]
[ROW][C]24[/C][C]0.79025407326371[/C][C]0.419491853472579[/C][C]0.209745926736290[/C][/ROW]
[ROW][C]25[/C][C]0.725147219499511[/C][C]0.549705561000978[/C][C]0.274852780500489[/C][/ROW]
[ROW][C]26[/C][C]0.652521697268629[/C][C]0.694956605462741[/C][C]0.347478302731371[/C][/ROW]
[ROW][C]27[/C][C]0.763221967460548[/C][C]0.473556065078903[/C][C]0.236778032539452[/C][/ROW]
[ROW][C]28[/C][C]0.766500277492533[/C][C]0.466999445014934[/C][C]0.233499722507467[/C][/ROW]
[ROW][C]29[/C][C]0.967809131616808[/C][C]0.0643817367663846[/C][C]0.0321908683831923[/C][/ROW]
[ROW][C]30[/C][C]0.968873916784251[/C][C]0.0622521664314976[/C][C]0.0311260832157488[/C][/ROW]
[ROW][C]31[/C][C]0.95392564788637[/C][C]0.0921487042272602[/C][C]0.0460743521136301[/C][/ROW]
[ROW][C]32[/C][C]0.938568775069846[/C][C]0.122862449860308[/C][C]0.0614312249301541[/C][/ROW]
[ROW][C]33[/C][C]0.9205753711819[/C][C]0.158849257636201[/C][C]0.0794246288181007[/C][/ROW]
[ROW][C]34[/C][C]0.881511066501582[/C][C]0.236977866996837[/C][C]0.118488933498418[/C][/ROW]
[ROW][C]35[/C][C]0.828536162927729[/C][C]0.342927674144542[/C][C]0.171463837072271[/C][/ROW]
[ROW][C]36[/C][C]0.771835551804006[/C][C]0.456328896391988[/C][C]0.228164448195994[/C][/ROW]
[ROW][C]37[/C][C]0.70252706753904[/C][C]0.59494586492192[/C][C]0.29747293246096[/C][/ROW]
[ROW][C]38[/C][C]0.61457471335284[/C][C]0.77085057329432[/C][C]0.38542528664716[/C][/ROW]
[ROW][C]39[/C][C]0.517965952759574[/C][C]0.964068094480852[/C][C]0.482034047240426[/C][/ROW]
[ROW][C]40[/C][C]0.762195616970236[/C][C]0.475608766059528[/C][C]0.237804383029764[/C][/ROW]
[ROW][C]41[/C][C]0.692571948854967[/C][C]0.614856102290066[/C][C]0.307428051145033[/C][/ROW]
[ROW][C]42[/C][C]0.686536695931744[/C][C]0.626926608136511[/C][C]0.313463304068256[/C][/ROW]
[ROW][C]43[/C][C]0.613940444341006[/C][C]0.772119111317988[/C][C]0.386059555658994[/C][/ROW]
[ROW][C]44[/C][C]0.90318490062956[/C][C]0.193630198740880[/C][C]0.0968150993704402[/C][/ROW]
[ROW][C]45[/C][C]0.83368716331832[/C][C]0.332625673363361[/C][C]0.166312836681680[/C][/ROW]
[ROW][C]46[/C][C]0.718576986141355[/C][C]0.562846027717289[/C][C]0.281423013858645[/C][/ROW]
[ROW][C]47[/C][C]0.884132744767533[/C][C]0.231734510464935[/C][C]0.115867255232467[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57808&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57808&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
100.08722176066104570.1744435213220910.912778239338954
110.1250066434938690.2500132869877390.87499335650613
120.08831644712514330.1766328942502870.911683552874857
130.1048942033382860.2097884066765720.895105796661714
140.5558896232190170.8882207535619660.444110376780983
150.651532803588540.6969343928229190.348467196411459
160.6205916869630950.758816626073810.379408313036905
170.6999043088771530.6001913822456940.300095691122847
180.7682851477965660.4634297044068670.231714852203434
190.6959865824446380.6080268351107230.304013417555362
200.6639580782326830.6720838435346340.336041921767317
210.6951879175260520.6096241649478960.304812082473948
220.7291773662304620.5416452675390760.270822633769538
230.8421986565045360.3156026869909280.157801343495464
240.790254073263710.4194918534725790.209745926736290
250.7251472194995110.5497055610009780.274852780500489
260.6525216972686290.6949566054627410.347478302731371
270.7632219674605480.4735560650789030.236778032539452
280.7665002774925330.4669994450149340.233499722507467
290.9678091316168080.06438173676638460.0321908683831923
300.9688739167842510.06225216643149760.0311260832157488
310.953925647886370.09214870422726020.0460743521136301
320.9385687750698460.1228624498603080.0614312249301541
330.92057537118190.1588492576362010.0794246288181007
340.8815110665015820.2369778669968370.118488933498418
350.8285361629277290.3429276741445420.171463837072271
360.7718355518040060.4563288963919880.228164448195994
370.702527067539040.594945864921920.29747293246096
380.614574713352840.770850573294320.38542528664716
390.5179659527595740.9640680944808520.482034047240426
400.7621956169702360.4756087660595280.237804383029764
410.6925719488549670.6148561022900660.307428051145033
420.6865366959317440.6269266081365110.313463304068256
430.6139404443410060.7721191113179880.386059555658994
440.903184900629560.1936301987408800.0968150993704402
450.833687163318320.3326256733633610.166312836681680
460.7185769861413550.5628460277172890.281423013858645
470.8841327447675330.2317345104649350.115867255232467







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 level30.0789473684210526OK

\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 & 3 & 0.0789473684210526 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57808&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]3[/C][C]0.0789473684210526[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57808&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57808&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 level30.0789473684210526OK



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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')
}