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 computationFri, 19 Dec 2008 13:37:22 -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/2008/Dec/19/t1229720857z9ntw17n0zr6cbf.htm/, Retrieved Wed, 15 May 2024 00:22:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=35263, Retrieved Wed, 15 May 2024 00:22:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact202
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]
F    D  [Multiple Regression] [Seatbelt law: q1] [2008-11-24 23:03:38] [8d78428855b119373cac369316c08983]
- R PD      [Multiple Regression] [Multiple lineair ...] [2008-12-19 20:37:22] [d6e9f26c3644bfc30f06303d9993b878] [Current]
- RMPD        [Standard Deviation-Mean Plot] [smp] [2008-12-19 21:43:48] [8d78428855b119373cac369316c08983]
-    D          [Standard Deviation-Mean Plot] [smp] [2008-12-19 21:48:16] [8d78428855b119373cac369316c08983]
Feedback Forum

Post a new message
Dataseries X:
2174.56	0
2196.72	0
2350.44	0
2440.25	0
2408.64	0
2472.81	0
2407.6	0
2454.62	0
2448.05	0
2497.84	0
2645.64	0
2756.76	0
2849.27	0
2921.44	0
2981.85	0
3080.58	0
3106.22	0
3119.31	0
3061.26	0
3097.31	0
3161.69	0
3257.16	0
3277.01	0
3295.32	0
3363.99	0
3494.17	0
3667.03	0
3813.06	0
3917.96	0
3895.51	0
3801.06	0
3570.12	0
3701.61	0
3862.27	0
3970.1	0
4138.52	0
4199.75	0
4290.89	0
4443.91	0
4502.64	0
4356.98	0
4591.27	0
4696.96	0
4621.4	0
4562.84	0
4202.52	0
4296.49	0
4435.23	0
4105.18	0
4116.68	0
3844.49	0
3720.98	0
3674.4	0
3857.62	0
3801.06	0
3504.37	1
3032.6	1
3047.03	1
2962.34	1
2197.82	1
2014.45	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 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 & 5 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&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]5 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=35263&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Bel_20[t] = + 3490.528 -697.426333333333dummy[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Bel_20[t] =  +  3490.528 -697.426333333333dummy[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Bel_20[t] =  +  3490.528 -697.426333333333dummy[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35263&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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
Bel_20[t] = + 3490.528 -697.426333333333dummy[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3490.52897.50935735.796900
dummy-697.426333333333310.910641-2.24320.0286540.014327

\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) & 3490.528 & 97.509357 & 35.7969 & 0 & 0 \tabularnewline
dummy & -697.426333333333 & 310.910641 & -2.2432 & 0.028654 & 0.014327 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&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]3490.528[/C][C]97.509357[/C][C]35.7969[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummy[/C][C]-697.426333333333[/C][C]310.910641[/C][C]-2.2432[/C][C]0.028654[/C][C]0.014327[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35263&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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)3490.52897.50935735.796900
dummy-697.426333333333310.910641-2.24320.0286540.014327







Multiple Linear Regression - Regression Statistics
Multiple R0.280326926902796
R-squared0.0785831859467657
Adjusted R-squared0.0629659518102702
F-TEST (value)5.031824794323
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.0286544189394422
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation723.148747651468
Sum Squared Residuals30853702.5625633

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.280326926902796 \tabularnewline
R-squared & 0.0785831859467657 \tabularnewline
Adjusted R-squared & 0.0629659518102702 \tabularnewline
F-TEST (value) & 5.031824794323 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.0286544189394422 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 723.148747651468 \tabularnewline
Sum Squared Residuals & 30853702.5625633 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.280326926902796[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0785831859467657[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0629659518102702[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.031824794323[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]0.0286544189394422[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]723.148747651468[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]30853702.5625633[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35263&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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.280326926902796
R-squared0.0785831859467657
Adjusted R-squared0.0629659518102702
F-TEST (value)5.031824794323
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.0286544189394422
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation723.148747651468
Sum Squared Residuals30853702.5625633







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12174.563490.52799999999-1315.96800000000
22196.723490.528-1293.808
32350.443490.528-1140.088
42440.253490.528-1050.278
52408.643490.528-1081.888
62472.813490.528-1017.718
72407.63490.528-1082.928
82454.623490.528-1035.908
92448.053490.528-1042.478
102497.843490.528-992.688
112645.643490.528-844.888
122756.763490.528-733.768
132849.273490.528-641.258
142921.443490.528-569.088
152981.853490.528-508.678
163080.583490.528-409.948
173106.223490.528-384.308
183119.313490.528-371.218
193061.263490.528-429.268
203097.313490.528-393.218
213161.693490.528-328.838
223257.163490.528-233.368
233277.013490.528-213.518
243295.323490.528-195.208
253363.993490.528-126.538000000000
263494.173490.5283.64200000000000
273667.033490.528176.502
283813.063490.528322.532
293917.963490.528427.432
303895.513490.528404.982
313801.063490.528310.532
323570.123490.52879.5919999999998
333701.613490.528211.082
343862.273490.528371.742
353970.13490.528479.572
364138.523490.528647.992
374199.753490.528709.222
384290.893490.528800.362
394443.913490.528953.382
404502.643490.5281012.112
414356.983490.528866.452
424591.273490.5281100.742
434696.963490.5281206.432
444621.43490.5281130.872
454562.843490.5281072.312
464202.523490.528711.992
474296.493490.528805.962
484435.233490.528944.702
494105.183490.528614.652
504116.683490.528626.152
513844.493490.528353.962
523720.983490.528230.452
533674.43490.528183.872
543857.623490.528367.092
553801.063490.528310.532
563504.372793.10166666667711.268333333333
573032.62793.10166666667239.498333333333
583047.032793.10166666667253.928333333334
592962.342793.10166666667169.238333333334
602197.822793.10166666667-595.281666666666
612014.452793.10166666667-778.651666666666

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2174.56 & 3490.52799999999 & -1315.96800000000 \tabularnewline
2 & 2196.72 & 3490.528 & -1293.808 \tabularnewline
3 & 2350.44 & 3490.528 & -1140.088 \tabularnewline
4 & 2440.25 & 3490.528 & -1050.278 \tabularnewline
5 & 2408.64 & 3490.528 & -1081.888 \tabularnewline
6 & 2472.81 & 3490.528 & -1017.718 \tabularnewline
7 & 2407.6 & 3490.528 & -1082.928 \tabularnewline
8 & 2454.62 & 3490.528 & -1035.908 \tabularnewline
9 & 2448.05 & 3490.528 & -1042.478 \tabularnewline
10 & 2497.84 & 3490.528 & -992.688 \tabularnewline
11 & 2645.64 & 3490.528 & -844.888 \tabularnewline
12 & 2756.76 & 3490.528 & -733.768 \tabularnewline
13 & 2849.27 & 3490.528 & -641.258 \tabularnewline
14 & 2921.44 & 3490.528 & -569.088 \tabularnewline
15 & 2981.85 & 3490.528 & -508.678 \tabularnewline
16 & 3080.58 & 3490.528 & -409.948 \tabularnewline
17 & 3106.22 & 3490.528 & -384.308 \tabularnewline
18 & 3119.31 & 3490.528 & -371.218 \tabularnewline
19 & 3061.26 & 3490.528 & -429.268 \tabularnewline
20 & 3097.31 & 3490.528 & -393.218 \tabularnewline
21 & 3161.69 & 3490.528 & -328.838 \tabularnewline
22 & 3257.16 & 3490.528 & -233.368 \tabularnewline
23 & 3277.01 & 3490.528 & -213.518 \tabularnewline
24 & 3295.32 & 3490.528 & -195.208 \tabularnewline
25 & 3363.99 & 3490.528 & -126.538000000000 \tabularnewline
26 & 3494.17 & 3490.528 & 3.64200000000000 \tabularnewline
27 & 3667.03 & 3490.528 & 176.502 \tabularnewline
28 & 3813.06 & 3490.528 & 322.532 \tabularnewline
29 & 3917.96 & 3490.528 & 427.432 \tabularnewline
30 & 3895.51 & 3490.528 & 404.982 \tabularnewline
31 & 3801.06 & 3490.528 & 310.532 \tabularnewline
32 & 3570.12 & 3490.528 & 79.5919999999998 \tabularnewline
33 & 3701.61 & 3490.528 & 211.082 \tabularnewline
34 & 3862.27 & 3490.528 & 371.742 \tabularnewline
35 & 3970.1 & 3490.528 & 479.572 \tabularnewline
36 & 4138.52 & 3490.528 & 647.992 \tabularnewline
37 & 4199.75 & 3490.528 & 709.222 \tabularnewline
38 & 4290.89 & 3490.528 & 800.362 \tabularnewline
39 & 4443.91 & 3490.528 & 953.382 \tabularnewline
40 & 4502.64 & 3490.528 & 1012.112 \tabularnewline
41 & 4356.98 & 3490.528 & 866.452 \tabularnewline
42 & 4591.27 & 3490.528 & 1100.742 \tabularnewline
43 & 4696.96 & 3490.528 & 1206.432 \tabularnewline
44 & 4621.4 & 3490.528 & 1130.872 \tabularnewline
45 & 4562.84 & 3490.528 & 1072.312 \tabularnewline
46 & 4202.52 & 3490.528 & 711.992 \tabularnewline
47 & 4296.49 & 3490.528 & 805.962 \tabularnewline
48 & 4435.23 & 3490.528 & 944.702 \tabularnewline
49 & 4105.18 & 3490.528 & 614.652 \tabularnewline
50 & 4116.68 & 3490.528 & 626.152 \tabularnewline
51 & 3844.49 & 3490.528 & 353.962 \tabularnewline
52 & 3720.98 & 3490.528 & 230.452 \tabularnewline
53 & 3674.4 & 3490.528 & 183.872 \tabularnewline
54 & 3857.62 & 3490.528 & 367.092 \tabularnewline
55 & 3801.06 & 3490.528 & 310.532 \tabularnewline
56 & 3504.37 & 2793.10166666667 & 711.268333333333 \tabularnewline
57 & 3032.6 & 2793.10166666667 & 239.498333333333 \tabularnewline
58 & 3047.03 & 2793.10166666667 & 253.928333333334 \tabularnewline
59 & 2962.34 & 2793.10166666667 & 169.238333333334 \tabularnewline
60 & 2197.82 & 2793.10166666667 & -595.281666666666 \tabularnewline
61 & 2014.45 & 2793.10166666667 & -778.651666666666 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&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]2174.56[/C][C]3490.52799999999[/C][C]-1315.96800000000[/C][/ROW]
[ROW][C]2[/C][C]2196.72[/C][C]3490.528[/C][C]-1293.808[/C][/ROW]
[ROW][C]3[/C][C]2350.44[/C][C]3490.528[/C][C]-1140.088[/C][/ROW]
[ROW][C]4[/C][C]2440.25[/C][C]3490.528[/C][C]-1050.278[/C][/ROW]
[ROW][C]5[/C][C]2408.64[/C][C]3490.528[/C][C]-1081.888[/C][/ROW]
[ROW][C]6[/C][C]2472.81[/C][C]3490.528[/C][C]-1017.718[/C][/ROW]
[ROW][C]7[/C][C]2407.6[/C][C]3490.528[/C][C]-1082.928[/C][/ROW]
[ROW][C]8[/C][C]2454.62[/C][C]3490.528[/C][C]-1035.908[/C][/ROW]
[ROW][C]9[/C][C]2448.05[/C][C]3490.528[/C][C]-1042.478[/C][/ROW]
[ROW][C]10[/C][C]2497.84[/C][C]3490.528[/C][C]-992.688[/C][/ROW]
[ROW][C]11[/C][C]2645.64[/C][C]3490.528[/C][C]-844.888[/C][/ROW]
[ROW][C]12[/C][C]2756.76[/C][C]3490.528[/C][C]-733.768[/C][/ROW]
[ROW][C]13[/C][C]2849.27[/C][C]3490.528[/C][C]-641.258[/C][/ROW]
[ROW][C]14[/C][C]2921.44[/C][C]3490.528[/C][C]-569.088[/C][/ROW]
[ROW][C]15[/C][C]2981.85[/C][C]3490.528[/C][C]-508.678[/C][/ROW]
[ROW][C]16[/C][C]3080.58[/C][C]3490.528[/C][C]-409.948[/C][/ROW]
[ROW][C]17[/C][C]3106.22[/C][C]3490.528[/C][C]-384.308[/C][/ROW]
[ROW][C]18[/C][C]3119.31[/C][C]3490.528[/C][C]-371.218[/C][/ROW]
[ROW][C]19[/C][C]3061.26[/C][C]3490.528[/C][C]-429.268[/C][/ROW]
[ROW][C]20[/C][C]3097.31[/C][C]3490.528[/C][C]-393.218[/C][/ROW]
[ROW][C]21[/C][C]3161.69[/C][C]3490.528[/C][C]-328.838[/C][/ROW]
[ROW][C]22[/C][C]3257.16[/C][C]3490.528[/C][C]-233.368[/C][/ROW]
[ROW][C]23[/C][C]3277.01[/C][C]3490.528[/C][C]-213.518[/C][/ROW]
[ROW][C]24[/C][C]3295.32[/C][C]3490.528[/C][C]-195.208[/C][/ROW]
[ROW][C]25[/C][C]3363.99[/C][C]3490.528[/C][C]-126.538000000000[/C][/ROW]
[ROW][C]26[/C][C]3494.17[/C][C]3490.528[/C][C]3.64200000000000[/C][/ROW]
[ROW][C]27[/C][C]3667.03[/C][C]3490.528[/C][C]176.502[/C][/ROW]
[ROW][C]28[/C][C]3813.06[/C][C]3490.528[/C][C]322.532[/C][/ROW]
[ROW][C]29[/C][C]3917.96[/C][C]3490.528[/C][C]427.432[/C][/ROW]
[ROW][C]30[/C][C]3895.51[/C][C]3490.528[/C][C]404.982[/C][/ROW]
[ROW][C]31[/C][C]3801.06[/C][C]3490.528[/C][C]310.532[/C][/ROW]
[ROW][C]32[/C][C]3570.12[/C][C]3490.528[/C][C]79.5919999999998[/C][/ROW]
[ROW][C]33[/C][C]3701.61[/C][C]3490.528[/C][C]211.082[/C][/ROW]
[ROW][C]34[/C][C]3862.27[/C][C]3490.528[/C][C]371.742[/C][/ROW]
[ROW][C]35[/C][C]3970.1[/C][C]3490.528[/C][C]479.572[/C][/ROW]
[ROW][C]36[/C][C]4138.52[/C][C]3490.528[/C][C]647.992[/C][/ROW]
[ROW][C]37[/C][C]4199.75[/C][C]3490.528[/C][C]709.222[/C][/ROW]
[ROW][C]38[/C][C]4290.89[/C][C]3490.528[/C][C]800.362[/C][/ROW]
[ROW][C]39[/C][C]4443.91[/C][C]3490.528[/C][C]953.382[/C][/ROW]
[ROW][C]40[/C][C]4502.64[/C][C]3490.528[/C][C]1012.112[/C][/ROW]
[ROW][C]41[/C][C]4356.98[/C][C]3490.528[/C][C]866.452[/C][/ROW]
[ROW][C]42[/C][C]4591.27[/C][C]3490.528[/C][C]1100.742[/C][/ROW]
[ROW][C]43[/C][C]4696.96[/C][C]3490.528[/C][C]1206.432[/C][/ROW]
[ROW][C]44[/C][C]4621.4[/C][C]3490.528[/C][C]1130.872[/C][/ROW]
[ROW][C]45[/C][C]4562.84[/C][C]3490.528[/C][C]1072.312[/C][/ROW]
[ROW][C]46[/C][C]4202.52[/C][C]3490.528[/C][C]711.992[/C][/ROW]
[ROW][C]47[/C][C]4296.49[/C][C]3490.528[/C][C]805.962[/C][/ROW]
[ROW][C]48[/C][C]4435.23[/C][C]3490.528[/C][C]944.702[/C][/ROW]
[ROW][C]49[/C][C]4105.18[/C][C]3490.528[/C][C]614.652[/C][/ROW]
[ROW][C]50[/C][C]4116.68[/C][C]3490.528[/C][C]626.152[/C][/ROW]
[ROW][C]51[/C][C]3844.49[/C][C]3490.528[/C][C]353.962[/C][/ROW]
[ROW][C]52[/C][C]3720.98[/C][C]3490.528[/C][C]230.452[/C][/ROW]
[ROW][C]53[/C][C]3674.4[/C][C]3490.528[/C][C]183.872[/C][/ROW]
[ROW][C]54[/C][C]3857.62[/C][C]3490.528[/C][C]367.092[/C][/ROW]
[ROW][C]55[/C][C]3801.06[/C][C]3490.528[/C][C]310.532[/C][/ROW]
[ROW][C]56[/C][C]3504.37[/C][C]2793.10166666667[/C][C]711.268333333333[/C][/ROW]
[ROW][C]57[/C][C]3032.6[/C][C]2793.10166666667[/C][C]239.498333333333[/C][/ROW]
[ROW][C]58[/C][C]3047.03[/C][C]2793.10166666667[/C][C]253.928333333334[/C][/ROW]
[ROW][C]59[/C][C]2962.34[/C][C]2793.10166666667[/C][C]169.238333333334[/C][/ROW]
[ROW][C]60[/C][C]2197.82[/C][C]2793.10166666667[/C][C]-595.281666666666[/C][/ROW]
[ROW][C]61[/C][C]2014.45[/C][C]2793.10166666667[/C][C]-778.651666666666[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35263&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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
12174.563490.52799999999-1315.96800000000
22196.723490.528-1293.808
32350.443490.528-1140.088
42440.253490.528-1050.278
52408.643490.528-1081.888
62472.813490.528-1017.718
72407.63490.528-1082.928
82454.623490.528-1035.908
92448.053490.528-1042.478
102497.843490.528-992.688
112645.643490.528-844.888
122756.763490.528-733.768
132849.273490.528-641.258
142921.443490.528-569.088
152981.853490.528-508.678
163080.583490.528-409.948
173106.223490.528-384.308
183119.313490.528-371.218
193061.263490.528-429.268
203097.313490.528-393.218
213161.693490.528-328.838
223257.163490.528-233.368
233277.013490.528-213.518
243295.323490.528-195.208
253363.993490.528-126.538000000000
263494.173490.5283.64200000000000
273667.033490.528176.502
283813.063490.528322.532
293917.963490.528427.432
303895.513490.528404.982
313801.063490.528310.532
323570.123490.52879.5919999999998
333701.613490.528211.082
343862.273490.528371.742
353970.13490.528479.572
364138.523490.528647.992
374199.753490.528709.222
384290.893490.528800.362
394443.913490.528953.382
404502.643490.5281012.112
414356.983490.528866.452
424591.273490.5281100.742
434696.963490.5281206.432
444621.43490.5281130.872
454562.843490.5281072.312
464202.523490.528711.992
474296.493490.528805.962
484435.233490.528944.702
494105.183490.528614.652
504116.683490.528626.152
513844.493490.528353.962
523720.983490.528230.452
533674.43490.528183.872
543857.623490.528367.092
553801.063490.528310.532
563504.372793.10166666667711.268333333333
573032.62793.10166666667239.498333333333
583047.032793.10166666667253.928333333334
592962.342793.10166666667169.238333333334
602197.822793.10166666667-595.281666666666
612014.452793.10166666667-778.651666666666







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.01329235745613590.02658471491227180.986707642543864
60.004595937413731350.00919187482746270.995404062586269
70.001130302772967220.002260605545934430.998869697227033
80.0003427528236203390.0006855056472406780.99965724717638
90.0001033539831414200.0002067079662828410.999896646016859
104.40662603938418e-058.81325207876836e-050.999955933739606
117.46402386683225e-050.0001492804773366450.999925359761332
120.0002310121132656650.000462024226531330.999768987886734
130.000765357044457960.001530714088915920.999234642955542
140.002198401013972610.004396802027945220.997801598986027
150.005422542172019060.01084508434403810.99457745782798
160.01378389556735600.02756779113471200.986216104432644
170.02718589862264570.05437179724529140.972814101377354
180.04551447061963530.09102894123927070.954485529380365
190.06402359098848820.1280471819769760.935976409011512
200.09211824383803290.1842364876760660.907881756161967
210.1367646575466820.2735293150933650.863235342453318
220.2070128659094230.4140257318188460.792987134090577
230.2945570903522040.5891141807044080.705442909647796
240.3989760986365460.7979521972730930.601023901363454
250.5194074982243750.961185003551250.480592501775625
260.6454941844588520.7090116310822960.354505815541148
270.7622039300085490.4755921399829030.237796069991451
280.8509328329675880.2981343340648250.149067167032412
290.9072875248298120.1854249503403770.0927124751701883
300.9342935150388120.1314129699223760.0657064849611878
310.9470495695721320.1059008608557350.0529504304278676
320.9596698011795620.08066039764087510.0403301988204376
330.967574395311050.06485120937790140.0324256046889507
340.9721756304403330.05564873911933410.0278243695596671
350.9749976321299170.05000473574016660.0250023678700833
360.9775602338661960.04487953226760790.0224397661338039
370.9788607851030830.04227842979383420.0211392148969171
380.9799715455481310.04005690890373690.0200284544518684
390.9829937577146260.03401248457074730.0170062422853737
400.9856078706449370.02878425871012580.0143921293550629
410.983624324601910.03275135079617850.0163756753980892
420.986617990342460.02676401931507790.0133820096575389
430.99144002787770.01711994424459850.00855997212229925
440.9936125406568920.01277491868621540.00638745934310771
450.9948052045168410.01038959096631700.00519479548315852
460.991491463846070.01701707230786110.00850853615393053
470.9881212990783220.02375740184335590.0118787009216780
480.9885732237851290.02285355242974300.0114267762148715
490.9806952627070680.03860947458586480.0193047372929324
500.9697168096808260.06056638063834810.0302831903191740
510.942703959728410.1145920805431780.057296040271589
520.895840617732150.20831876453570.10415938226785
530.824112831410410.3517743371791780.175887168589589
540.7172038776386740.5655922447226530.282796122361327
550.5736330538535150.852733892292970.426366946146485
560.6039653837777110.7920692324445780.396034616222289

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0132923574561359 & 0.0265847149122718 & 0.986707642543864 \tabularnewline
6 & 0.00459593741373135 & 0.0091918748274627 & 0.995404062586269 \tabularnewline
7 & 0.00113030277296722 & 0.00226060554593443 & 0.998869697227033 \tabularnewline
8 & 0.000342752823620339 & 0.000685505647240678 & 0.99965724717638 \tabularnewline
9 & 0.000103353983141420 & 0.000206707966282841 & 0.999896646016859 \tabularnewline
10 & 4.40662603938418e-05 & 8.81325207876836e-05 & 0.999955933739606 \tabularnewline
11 & 7.46402386683225e-05 & 0.000149280477336645 & 0.999925359761332 \tabularnewline
12 & 0.000231012113265665 & 0.00046202422653133 & 0.999768987886734 \tabularnewline
13 & 0.00076535704445796 & 0.00153071408891592 & 0.999234642955542 \tabularnewline
14 & 0.00219840101397261 & 0.00439680202794522 & 0.997801598986027 \tabularnewline
15 & 0.00542254217201906 & 0.0108450843440381 & 0.99457745782798 \tabularnewline
16 & 0.0137838955673560 & 0.0275677911347120 & 0.986216104432644 \tabularnewline
17 & 0.0271858986226457 & 0.0543717972452914 & 0.972814101377354 \tabularnewline
18 & 0.0455144706196353 & 0.0910289412392707 & 0.954485529380365 \tabularnewline
19 & 0.0640235909884882 & 0.128047181976976 & 0.935976409011512 \tabularnewline
20 & 0.0921182438380329 & 0.184236487676066 & 0.907881756161967 \tabularnewline
21 & 0.136764657546682 & 0.273529315093365 & 0.863235342453318 \tabularnewline
22 & 0.207012865909423 & 0.414025731818846 & 0.792987134090577 \tabularnewline
23 & 0.294557090352204 & 0.589114180704408 & 0.705442909647796 \tabularnewline
24 & 0.398976098636546 & 0.797952197273093 & 0.601023901363454 \tabularnewline
25 & 0.519407498224375 & 0.96118500355125 & 0.480592501775625 \tabularnewline
26 & 0.645494184458852 & 0.709011631082296 & 0.354505815541148 \tabularnewline
27 & 0.762203930008549 & 0.475592139982903 & 0.237796069991451 \tabularnewline
28 & 0.850932832967588 & 0.298134334064825 & 0.149067167032412 \tabularnewline
29 & 0.907287524829812 & 0.185424950340377 & 0.0927124751701883 \tabularnewline
30 & 0.934293515038812 & 0.131412969922376 & 0.0657064849611878 \tabularnewline
31 & 0.947049569572132 & 0.105900860855735 & 0.0529504304278676 \tabularnewline
32 & 0.959669801179562 & 0.0806603976408751 & 0.0403301988204376 \tabularnewline
33 & 0.96757439531105 & 0.0648512093779014 & 0.0324256046889507 \tabularnewline
34 & 0.972175630440333 & 0.0556487391193341 & 0.0278243695596671 \tabularnewline
35 & 0.974997632129917 & 0.0500047357401666 & 0.0250023678700833 \tabularnewline
36 & 0.977560233866196 & 0.0448795322676079 & 0.0224397661338039 \tabularnewline
37 & 0.978860785103083 & 0.0422784297938342 & 0.0211392148969171 \tabularnewline
38 & 0.979971545548131 & 0.0400569089037369 & 0.0200284544518684 \tabularnewline
39 & 0.982993757714626 & 0.0340124845707473 & 0.0170062422853737 \tabularnewline
40 & 0.985607870644937 & 0.0287842587101258 & 0.0143921293550629 \tabularnewline
41 & 0.98362432460191 & 0.0327513507961785 & 0.0163756753980892 \tabularnewline
42 & 0.98661799034246 & 0.0267640193150779 & 0.0133820096575389 \tabularnewline
43 & 0.9914400278777 & 0.0171199442445985 & 0.00855997212229925 \tabularnewline
44 & 0.993612540656892 & 0.0127749186862154 & 0.00638745934310771 \tabularnewline
45 & 0.994805204516841 & 0.0103895909663170 & 0.00519479548315852 \tabularnewline
46 & 0.99149146384607 & 0.0170170723078611 & 0.00850853615393053 \tabularnewline
47 & 0.988121299078322 & 0.0237574018433559 & 0.0118787009216780 \tabularnewline
48 & 0.988573223785129 & 0.0228535524297430 & 0.0114267762148715 \tabularnewline
49 & 0.980695262707068 & 0.0386094745858648 & 0.0193047372929324 \tabularnewline
50 & 0.969716809680826 & 0.0605663806383481 & 0.0302831903191740 \tabularnewline
51 & 0.94270395972841 & 0.114592080543178 & 0.057296040271589 \tabularnewline
52 & 0.89584061773215 & 0.2083187645357 & 0.10415938226785 \tabularnewline
53 & 0.82411283141041 & 0.351774337179178 & 0.175887168589589 \tabularnewline
54 & 0.717203877638674 & 0.565592244722653 & 0.282796122361327 \tabularnewline
55 & 0.573633053853515 & 0.85273389229297 & 0.426366946146485 \tabularnewline
56 & 0.603965383777711 & 0.792069232444578 & 0.396034616222289 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&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]5[/C][C]0.0132923574561359[/C][C]0.0265847149122718[/C][C]0.986707642543864[/C][/ROW]
[ROW][C]6[/C][C]0.00459593741373135[/C][C]0.0091918748274627[/C][C]0.995404062586269[/C][/ROW]
[ROW][C]7[/C][C]0.00113030277296722[/C][C]0.00226060554593443[/C][C]0.998869697227033[/C][/ROW]
[ROW][C]8[/C][C]0.000342752823620339[/C][C]0.000685505647240678[/C][C]0.99965724717638[/C][/ROW]
[ROW][C]9[/C][C]0.000103353983141420[/C][C]0.000206707966282841[/C][C]0.999896646016859[/C][/ROW]
[ROW][C]10[/C][C]4.40662603938418e-05[/C][C]8.81325207876836e-05[/C][C]0.999955933739606[/C][/ROW]
[ROW][C]11[/C][C]7.46402386683225e-05[/C][C]0.000149280477336645[/C][C]0.999925359761332[/C][/ROW]
[ROW][C]12[/C][C]0.000231012113265665[/C][C]0.00046202422653133[/C][C]0.999768987886734[/C][/ROW]
[ROW][C]13[/C][C]0.00076535704445796[/C][C]0.00153071408891592[/C][C]0.999234642955542[/C][/ROW]
[ROW][C]14[/C][C]0.00219840101397261[/C][C]0.00439680202794522[/C][C]0.997801598986027[/C][/ROW]
[ROW][C]15[/C][C]0.00542254217201906[/C][C]0.0108450843440381[/C][C]0.99457745782798[/C][/ROW]
[ROW][C]16[/C][C]0.0137838955673560[/C][C]0.0275677911347120[/C][C]0.986216104432644[/C][/ROW]
[ROW][C]17[/C][C]0.0271858986226457[/C][C]0.0543717972452914[/C][C]0.972814101377354[/C][/ROW]
[ROW][C]18[/C][C]0.0455144706196353[/C][C]0.0910289412392707[/C][C]0.954485529380365[/C][/ROW]
[ROW][C]19[/C][C]0.0640235909884882[/C][C]0.128047181976976[/C][C]0.935976409011512[/C][/ROW]
[ROW][C]20[/C][C]0.0921182438380329[/C][C]0.184236487676066[/C][C]0.907881756161967[/C][/ROW]
[ROW][C]21[/C][C]0.136764657546682[/C][C]0.273529315093365[/C][C]0.863235342453318[/C][/ROW]
[ROW][C]22[/C][C]0.207012865909423[/C][C]0.414025731818846[/C][C]0.792987134090577[/C][/ROW]
[ROW][C]23[/C][C]0.294557090352204[/C][C]0.589114180704408[/C][C]0.705442909647796[/C][/ROW]
[ROW][C]24[/C][C]0.398976098636546[/C][C]0.797952197273093[/C][C]0.601023901363454[/C][/ROW]
[ROW][C]25[/C][C]0.519407498224375[/C][C]0.96118500355125[/C][C]0.480592501775625[/C][/ROW]
[ROW][C]26[/C][C]0.645494184458852[/C][C]0.709011631082296[/C][C]0.354505815541148[/C][/ROW]
[ROW][C]27[/C][C]0.762203930008549[/C][C]0.475592139982903[/C][C]0.237796069991451[/C][/ROW]
[ROW][C]28[/C][C]0.850932832967588[/C][C]0.298134334064825[/C][C]0.149067167032412[/C][/ROW]
[ROW][C]29[/C][C]0.907287524829812[/C][C]0.185424950340377[/C][C]0.0927124751701883[/C][/ROW]
[ROW][C]30[/C][C]0.934293515038812[/C][C]0.131412969922376[/C][C]0.0657064849611878[/C][/ROW]
[ROW][C]31[/C][C]0.947049569572132[/C][C]0.105900860855735[/C][C]0.0529504304278676[/C][/ROW]
[ROW][C]32[/C][C]0.959669801179562[/C][C]0.0806603976408751[/C][C]0.0403301988204376[/C][/ROW]
[ROW][C]33[/C][C]0.96757439531105[/C][C]0.0648512093779014[/C][C]0.0324256046889507[/C][/ROW]
[ROW][C]34[/C][C]0.972175630440333[/C][C]0.0556487391193341[/C][C]0.0278243695596671[/C][/ROW]
[ROW][C]35[/C][C]0.974997632129917[/C][C]0.0500047357401666[/C][C]0.0250023678700833[/C][/ROW]
[ROW][C]36[/C][C]0.977560233866196[/C][C]0.0448795322676079[/C][C]0.0224397661338039[/C][/ROW]
[ROW][C]37[/C][C]0.978860785103083[/C][C]0.0422784297938342[/C][C]0.0211392148969171[/C][/ROW]
[ROW][C]38[/C][C]0.979971545548131[/C][C]0.0400569089037369[/C][C]0.0200284544518684[/C][/ROW]
[ROW][C]39[/C][C]0.982993757714626[/C][C]0.0340124845707473[/C][C]0.0170062422853737[/C][/ROW]
[ROW][C]40[/C][C]0.985607870644937[/C][C]0.0287842587101258[/C][C]0.0143921293550629[/C][/ROW]
[ROW][C]41[/C][C]0.98362432460191[/C][C]0.0327513507961785[/C][C]0.0163756753980892[/C][/ROW]
[ROW][C]42[/C][C]0.98661799034246[/C][C]0.0267640193150779[/C][C]0.0133820096575389[/C][/ROW]
[ROW][C]43[/C][C]0.9914400278777[/C][C]0.0171199442445985[/C][C]0.00855997212229925[/C][/ROW]
[ROW][C]44[/C][C]0.993612540656892[/C][C]0.0127749186862154[/C][C]0.00638745934310771[/C][/ROW]
[ROW][C]45[/C][C]0.994805204516841[/C][C]0.0103895909663170[/C][C]0.00519479548315852[/C][/ROW]
[ROW][C]46[/C][C]0.99149146384607[/C][C]0.0170170723078611[/C][C]0.00850853615393053[/C][/ROW]
[ROW][C]47[/C][C]0.988121299078322[/C][C]0.0237574018433559[/C][C]0.0118787009216780[/C][/ROW]
[ROW][C]48[/C][C]0.988573223785129[/C][C]0.0228535524297430[/C][C]0.0114267762148715[/C][/ROW]
[ROW][C]49[/C][C]0.980695262707068[/C][C]0.0386094745858648[/C][C]0.0193047372929324[/C][/ROW]
[ROW][C]50[/C][C]0.969716809680826[/C][C]0.0605663806383481[/C][C]0.0302831903191740[/C][/ROW]
[ROW][C]51[/C][C]0.94270395972841[/C][C]0.114592080543178[/C][C]0.057296040271589[/C][/ROW]
[ROW][C]52[/C][C]0.89584061773215[/C][C]0.2083187645357[/C][C]0.10415938226785[/C][/ROW]
[ROW][C]53[/C][C]0.82411283141041[/C][C]0.351774337179178[/C][C]0.175887168589589[/C][/ROW]
[ROW][C]54[/C][C]0.717203877638674[/C][C]0.565592244722653[/C][C]0.282796122361327[/C][/ROW]
[ROW][C]55[/C][C]0.573633053853515[/C][C]0.85273389229297[/C][C]0.426366946146485[/C][/ROW]
[ROW][C]56[/C][C]0.603965383777711[/C][C]0.792069232444578[/C][C]0.396034616222289[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35263&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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
50.01329235745613590.02658471491227180.986707642543864
60.004595937413731350.00919187482746270.995404062586269
70.001130302772967220.002260605545934430.998869697227033
80.0003427528236203390.0006855056472406780.99965724717638
90.0001033539831414200.0002067079662828410.999896646016859
104.40662603938418e-058.81325207876836e-050.999955933739606
117.46402386683225e-050.0001492804773366450.999925359761332
120.0002310121132656650.000462024226531330.999768987886734
130.000765357044457960.001530714088915920.999234642955542
140.002198401013972610.004396802027945220.997801598986027
150.005422542172019060.01084508434403810.99457745782798
160.01378389556735600.02756779113471200.986216104432644
170.02718589862264570.05437179724529140.972814101377354
180.04551447061963530.09102894123927070.954485529380365
190.06402359098848820.1280471819769760.935976409011512
200.09211824383803290.1842364876760660.907881756161967
210.1367646575466820.2735293150933650.863235342453318
220.2070128659094230.4140257318188460.792987134090577
230.2945570903522040.5891141807044080.705442909647796
240.3989760986365460.7979521972730930.601023901363454
250.5194074982243750.961185003551250.480592501775625
260.6454941844588520.7090116310822960.354505815541148
270.7622039300085490.4755921399829030.237796069991451
280.8509328329675880.2981343340648250.149067167032412
290.9072875248298120.1854249503403770.0927124751701883
300.9342935150388120.1314129699223760.0657064849611878
310.9470495695721320.1059008608557350.0529504304278676
320.9596698011795620.08066039764087510.0403301988204376
330.967574395311050.06485120937790140.0324256046889507
340.9721756304403330.05564873911933410.0278243695596671
350.9749976321299170.05000473574016660.0250023678700833
360.9775602338661960.04487953226760790.0224397661338039
370.9788607851030830.04227842979383420.0211392148969171
380.9799715455481310.04005690890373690.0200284544518684
390.9829937577146260.03401248457074730.0170062422853737
400.9856078706449370.02878425871012580.0143921293550629
410.983624324601910.03275135079617850.0163756753980892
420.986617990342460.02676401931507790.0133820096575389
430.99144002787770.01711994424459850.00855997212229925
440.9936125406568920.01277491868621540.00638745934310771
450.9948052045168410.01038959096631700.00519479548315852
460.991491463846070.01701707230786110.00850853615393053
470.9881212990783220.02375740184335590.0118787009216780
480.9885732237851290.02285355242974300.0114267762148715
490.9806952627070680.03860947458586480.0193047372929324
500.9697168096808260.06056638063834810.0302831903191740
510.942703959728410.1145920805431780.057296040271589
520.895840617732150.20831876453570.10415938226785
530.824112831410410.3517743371791780.175887168589589
540.7172038776386740.5655922447226530.282796122361327
550.5736330538535150.852733892292970.426366946146485
560.6039653837777110.7920692324445780.396034616222289







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.173076923076923NOK
5% type I error level260.5NOK
10% type I error level330.634615384615385NOK

\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 & 9 & 0.173076923076923 & NOK \tabularnewline
5% type I error level & 26 & 0.5 & NOK \tabularnewline
10% type I error level & 33 & 0.634615384615385 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35263&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]9[/C][C]0.173076923076923[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]26[/C][C]0.5[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]33[/C][C]0.634615384615385[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35263&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35263&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 level90.173076923076923NOK
5% type I error level260.5NOK
10% type I error level330.634615384615385NOK



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