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 10:09:33 -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/t1258653210fvc0u7pz2wm3eit.htm/, Retrieved Fri, 26 Apr 2024 11:29:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57853, Retrieved Fri, 26 Apr 2024 11:29:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact172
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:06:21] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [Model 3, seizonal...] [2009-11-19 17:09:33] [154177ed6b2613a730375f7d341441cf] [Current]
-    D        [Multiple Regression] [Model 3, seizonal...] [2009-12-16 14:39:07] [075a06058fde559dd021d126a2b15a40]
Feedback Forum

Post a new message
Dataseries X:
96.8	9.3
114.1	9.3
110.3	8.7
103.9	8.2
101.6	8.3
94.6	8.5
95.9	8.6
104.7	8.5
102.8	8.2
98.1	8.1
113.9	7.9
80.9	8.6
95.7	8.7
113.2	8.7
105.9	8.5
108.8	8.4
102.3	8.5
99	8.7
100.7	8.7
115.5	8.6
100.7	8.5
109.9	8.3
114.6	8
85.4	8.2
100.5	8.1
114.8	8.1
116.5	8
112.9	7.9
102	7.9
106	8
105.3	8
118.8	7.9
106.1	8
109.3	7.7
117.2	7.2
92.5	7.5
104.2	7.3
112.5	7
122.4	7
113.3	7
100	7.2
110.7	7.3
112.8	7.1
109.8	6.8
117.3	6.4
109.1	6.1
115.9	6.5
96	7.7
99.8	7.9
116.8	7.5
115.7	6.9
99.4	6.6
94.3	6.9
91	7.7
93.2	8
103.1	8
94.1	7.7
91.8	7.3
102.7	7.4
82.6	8.1
89.1	8.3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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
tip[t] = + 148.709722845724 -6.73344601992774wrk[t] + 10.8604325507622M1[t] + 25.4657096670195M2[t] + 23.5264393545385M3[t] + 15.8805136440503M4[t] + 9.40395958033748M5[t] + 11.7100879594146M6[t] + 13.5001892937090M7[t] + 21.692939264815M8[t] + 14.3670135543268M9[t] + 12.2570810826429M10[t] + 21.0044999741475M11[t] -0.200763493497329t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
tip[t] =  +  148.709722845724 -6.73344601992774wrk[t] +  10.8604325507622M1[t] +  25.4657096670195M2[t] +  23.5264393545385M3[t] +  15.8805136440503M4[t] +  9.40395958033748M5[t] +  11.7100879594146M6[t] +  13.5001892937090M7[t] +  21.692939264815M8[t] +  14.3670135543268M9[t] +  12.2570810826429M10[t] +  21.0044999741475M11[t] -0.200763493497329t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57853&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]tip[t] =  +  148.709722845724 -6.73344601992774wrk[t] +  10.8604325507622M1[t] +  25.4657096670195M2[t] +  23.5264393545385M3[t] +  15.8805136440503M4[t] +  9.40395958033748M5[t] +  11.7100879594146M6[t] +  13.5001892937090M7[t] +  21.692939264815M8[t] +  14.3670135543268M9[t] +  12.2570810826429M10[t] +  21.0044999741475M11[t] -0.200763493497329t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57853&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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
tip[t] = + 148.709722845724 -6.73344601992774wrk[t] + 10.8604325507622M1[t] + 25.4657096670195M2[t] + 23.5264393545385M3[t] + 15.8805136440503M4[t] + 9.40395958033748M5[t] + 11.7100879594146M6[t] + 13.5001892937090M7[t] + 21.692939264815M8[t] + 14.3670135543268M9[t] + 12.2570810826429M10[t] + 21.0044999741475M11[t] -0.200763493497329t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)148.70972284572415.4596169.619200
wrk-6.733446019927741.681322-4.00490.0002190.00011
M110.86043255076223.4577463.14090.0029120.001456
M225.46570966701953.6368297.002200
M323.52643935453853.6983466.361300
M415.88051364405033.7643674.21860.0001115.6e-05
M59.403959580337483.6921562.5470.0141980.007099
M611.71008795941463.6172353.23730.0022150.001107
M713.50018929370903.6085183.74120.0004980.000249
M821.6929392648153.6153716.000200
M914.36701355432683.6481863.93810.0002710.000135
M1012.25708108264293.7287723.28720.001920.00096
M1121.00449997414753.761365.58431e-061e-06
t-0.2007634934973290.062979-3.18780.0025510.001275

\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) & 148.709722845724 & 15.459616 & 9.6192 & 0 & 0 \tabularnewline
wrk & -6.73344601992774 & 1.681322 & -4.0049 & 0.000219 & 0.00011 \tabularnewline
M1 & 10.8604325507622 & 3.457746 & 3.1409 & 0.002912 & 0.001456 \tabularnewline
M2 & 25.4657096670195 & 3.636829 & 7.0022 & 0 & 0 \tabularnewline
M3 & 23.5264393545385 & 3.698346 & 6.3613 & 0 & 0 \tabularnewline
M4 & 15.8805136440503 & 3.764367 & 4.2186 & 0.000111 & 5.6e-05 \tabularnewline
M5 & 9.40395958033748 & 3.692156 & 2.547 & 0.014198 & 0.007099 \tabularnewline
M6 & 11.7100879594146 & 3.617235 & 3.2373 & 0.002215 & 0.001107 \tabularnewline
M7 & 13.5001892937090 & 3.608518 & 3.7412 & 0.000498 & 0.000249 \tabularnewline
M8 & 21.692939264815 & 3.615371 & 6.0002 & 0 & 0 \tabularnewline
M9 & 14.3670135543268 & 3.648186 & 3.9381 & 0.000271 & 0.000135 \tabularnewline
M10 & 12.2570810826429 & 3.728772 & 3.2872 & 0.00192 & 0.00096 \tabularnewline
M11 & 21.0044999741475 & 3.76136 & 5.5843 & 1e-06 & 1e-06 \tabularnewline
t & -0.200763493497329 & 0.062979 & -3.1878 & 0.002551 & 0.001275 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57853&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]148.709722845724[/C][C]15.459616[/C][C]9.6192[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]wrk[/C][C]-6.73344601992774[/C][C]1.681322[/C][C]-4.0049[/C][C]0.000219[/C][C]0.00011[/C][/ROW]
[ROW][C]M1[/C][C]10.8604325507622[/C][C]3.457746[/C][C]3.1409[/C][C]0.002912[/C][C]0.001456[/C][/ROW]
[ROW][C]M2[/C][C]25.4657096670195[/C][C]3.636829[/C][C]7.0022[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]23.5264393545385[/C][C]3.698346[/C][C]6.3613[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]15.8805136440503[/C][C]3.764367[/C][C]4.2186[/C][C]0.000111[/C][C]5.6e-05[/C][/ROW]
[ROW][C]M5[/C][C]9.40395958033748[/C][C]3.692156[/C][C]2.547[/C][C]0.014198[/C][C]0.007099[/C][/ROW]
[ROW][C]M6[/C][C]11.7100879594146[/C][C]3.617235[/C][C]3.2373[/C][C]0.002215[/C][C]0.001107[/C][/ROW]
[ROW][C]M7[/C][C]13.5001892937090[/C][C]3.608518[/C][C]3.7412[/C][C]0.000498[/C][C]0.000249[/C][/ROW]
[ROW][C]M8[/C][C]21.692939264815[/C][C]3.615371[/C][C]6.0002[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]14.3670135543268[/C][C]3.648186[/C][C]3.9381[/C][C]0.000271[/C][C]0.000135[/C][/ROW]
[ROW][C]M10[/C][C]12.2570810826429[/C][C]3.728772[/C][C]3.2872[/C][C]0.00192[/C][C]0.00096[/C][/ROW]
[ROW][C]M11[/C][C]21.0044999741475[/C][C]3.76136[/C][C]5.5843[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]t[/C][C]-0.200763493497329[/C][C]0.062979[/C][C]-3.1878[/C][C]0.002551[/C][C]0.001275[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57853&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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)148.70972284572415.4596169.619200
wrk-6.733446019927741.681322-4.00490.0002190.00011
M110.86043255076223.4577463.14090.0029120.001456
M225.46570966701953.6368297.002200
M323.52643935453853.6983466.361300
M415.88051364405033.7643674.21860.0001115.6e-05
M59.403959580337483.6921562.5470.0141980.007099
M611.71008795941463.6172353.23730.0022150.001107
M713.50018929370903.6085183.74120.0004980.000249
M821.6929392648153.6153716.000200
M914.36701355432683.6481863.93810.0002710.000135
M1012.25708108264293.7287723.28720.001920.00096
M1121.00449997414753.761365.58431e-061e-06
t-0.2007634934973290.062979-3.18780.0025510.001275







Multiple Linear Regression - Regression Statistics
Multiple R0.85112026922121
R-squared0.724405712679186
Adjusted R-squared0.648177505547897
F-TEST (value)9.50311885771538
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value3.17124770887744e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.69196778054146
Sum Squared Residuals1522.72936909194

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.85112026922121 \tabularnewline
R-squared & 0.724405712679186 \tabularnewline
Adjusted R-squared & 0.648177505547897 \tabularnewline
F-TEST (value) & 9.50311885771538 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 3.17124770887744e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.69196778054146 \tabularnewline
Sum Squared Residuals & 1522.72936909194 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57853&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.85112026922121[/C][/ROW]
[ROW][C]R-squared[/C][C]0.724405712679186[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.648177505547897[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.50311885771538[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]3.17124770887744e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.69196778054146[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1522.72936909194[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57853&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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.85112026922121
R-squared0.724405712679186
Adjusted R-squared0.648177505547897
F-TEST (value)9.50311885771538
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value3.17124770887744e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.69196778054146
Sum Squared Residuals1522.72936909194







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
196.896.74834391766150.0516560823385169
2114.1111.1528575404212.94714245957885
3110.3113.052891346400-2.7528913463995
4103.9108.572925152378-4.67292515237781
5101.6101.2222629931750.377737006825067
694.6101.980938674769-7.38093867476915
795.9102.896931913573-6.99693191357347
8104.7111.562262993175-6.86226299317491
9102.8106.055607595168-3.25560759516771
1098.1104.418256231979-6.31825623197926
11113.9114.311600833972-0.411600833972023
1280.988.3929251523778-7.49292515237782
1395.798.3792496076499-2.67924960764985
14113.2112.7837632304100.416236769590139
15105.9111.990418628417-6.09041862841709
16108.8104.8170740264243.98292597357569
17102.397.46641186722144.83358813277858
189998.22508754881570.774912451184354
19100.799.81442538961280.885574610387246
20115.5108.4797564692147.0202435307858
21100.7101.626411867221-0.926411867221417
22109.9100.6624051060269.23759489397426
23114.6111.2290943100113.37090568998868
2485.488.677141638381-3.27714163838096
25100.5100.0101552976390.489844702361455
26114.8114.4146689203990.385331079601439
27116.5112.9479797164133.55202028358699
28112.9105.7746351144207.12536488557977
2910299.09731755721012.90268244278989
30106100.5293378407975.4706621592029
31105.3102.1186756815943.18132431840578
32118.8110.7840067611968.01599323880433
33106.1102.5839729552173.51602704478266
34109.3102.2933107960147.00668920398555
35117.2114.2066892039862.99331079601445
3692.590.98139193036241.51860806963758
37104.2102.9877501916131.21224980838722
38112.5119.412297620351-6.91229762035112
39122.4117.2722638143735.12773618562722
40113.3109.4255746103873.87442538961275
41100101.401567849192-1.40156784919158
42110.7102.8335881327797.86641186722143
43112.8105.7696151775617.03038482243877
44109.8115.781635461148-5.98163546114823
45117.3110.9483246651346.35167533486623
46109.1110.657662505931-1.55766250593089
47115.9116.510939495967-0.610939495967005
489687.2255408044098.77445919559107
4999.896.53852065768823.26147934231181
50116.8113.6364126884193.16358731158070
51115.7115.5364464943980.163553505602383
5299.4109.709791096390-10.3097910963904
5394.3101.012439733202-6.71243973320195
549197.7310478028395-6.73104780283953
5593.297.3003518376583-4.10035183765832
56103.1105.292338315267-2.19233831526699
5794.199.7856829172598-5.68568291725976
5891.8100.168365360050-8.36836536004965
59102.7108.041676156064-5.3416761560641
6082.682.12300047446990.47699952553011
6189.191.4359803277491-2.33598032774915

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 96.8 & 96.7483439176615 & 0.0516560823385169 \tabularnewline
2 & 114.1 & 111.152857540421 & 2.94714245957885 \tabularnewline
3 & 110.3 & 113.052891346400 & -2.7528913463995 \tabularnewline
4 & 103.9 & 108.572925152378 & -4.67292515237781 \tabularnewline
5 & 101.6 & 101.222262993175 & 0.377737006825067 \tabularnewline
6 & 94.6 & 101.980938674769 & -7.38093867476915 \tabularnewline
7 & 95.9 & 102.896931913573 & -6.99693191357347 \tabularnewline
8 & 104.7 & 111.562262993175 & -6.86226299317491 \tabularnewline
9 & 102.8 & 106.055607595168 & -3.25560759516771 \tabularnewline
10 & 98.1 & 104.418256231979 & -6.31825623197926 \tabularnewline
11 & 113.9 & 114.311600833972 & -0.411600833972023 \tabularnewline
12 & 80.9 & 88.3929251523778 & -7.49292515237782 \tabularnewline
13 & 95.7 & 98.3792496076499 & -2.67924960764985 \tabularnewline
14 & 113.2 & 112.783763230410 & 0.416236769590139 \tabularnewline
15 & 105.9 & 111.990418628417 & -6.09041862841709 \tabularnewline
16 & 108.8 & 104.817074026424 & 3.98292597357569 \tabularnewline
17 & 102.3 & 97.4664118672214 & 4.83358813277858 \tabularnewline
18 & 99 & 98.2250875488157 & 0.774912451184354 \tabularnewline
19 & 100.7 & 99.8144253896128 & 0.885574610387246 \tabularnewline
20 & 115.5 & 108.479756469214 & 7.0202435307858 \tabularnewline
21 & 100.7 & 101.626411867221 & -0.926411867221417 \tabularnewline
22 & 109.9 & 100.662405106026 & 9.23759489397426 \tabularnewline
23 & 114.6 & 111.229094310011 & 3.37090568998868 \tabularnewline
24 & 85.4 & 88.677141638381 & -3.27714163838096 \tabularnewline
25 & 100.5 & 100.010155297639 & 0.489844702361455 \tabularnewline
26 & 114.8 & 114.414668920399 & 0.385331079601439 \tabularnewline
27 & 116.5 & 112.947979716413 & 3.55202028358699 \tabularnewline
28 & 112.9 & 105.774635114420 & 7.12536488557977 \tabularnewline
29 & 102 & 99.0973175572101 & 2.90268244278989 \tabularnewline
30 & 106 & 100.529337840797 & 5.4706621592029 \tabularnewline
31 & 105.3 & 102.118675681594 & 3.18132431840578 \tabularnewline
32 & 118.8 & 110.784006761196 & 8.01599323880433 \tabularnewline
33 & 106.1 & 102.583972955217 & 3.51602704478266 \tabularnewline
34 & 109.3 & 102.293310796014 & 7.00668920398555 \tabularnewline
35 & 117.2 & 114.206689203986 & 2.99331079601445 \tabularnewline
36 & 92.5 & 90.9813919303624 & 1.51860806963758 \tabularnewline
37 & 104.2 & 102.987750191613 & 1.21224980838722 \tabularnewline
38 & 112.5 & 119.412297620351 & -6.91229762035112 \tabularnewline
39 & 122.4 & 117.272263814373 & 5.12773618562722 \tabularnewline
40 & 113.3 & 109.425574610387 & 3.87442538961275 \tabularnewline
41 & 100 & 101.401567849192 & -1.40156784919158 \tabularnewline
42 & 110.7 & 102.833588132779 & 7.86641186722143 \tabularnewline
43 & 112.8 & 105.769615177561 & 7.03038482243877 \tabularnewline
44 & 109.8 & 115.781635461148 & -5.98163546114823 \tabularnewline
45 & 117.3 & 110.948324665134 & 6.35167533486623 \tabularnewline
46 & 109.1 & 110.657662505931 & -1.55766250593089 \tabularnewline
47 & 115.9 & 116.510939495967 & -0.610939495967005 \tabularnewline
48 & 96 & 87.225540804409 & 8.77445919559107 \tabularnewline
49 & 99.8 & 96.5385206576882 & 3.26147934231181 \tabularnewline
50 & 116.8 & 113.636412688419 & 3.16358731158070 \tabularnewline
51 & 115.7 & 115.536446494398 & 0.163553505602383 \tabularnewline
52 & 99.4 & 109.709791096390 & -10.3097910963904 \tabularnewline
53 & 94.3 & 101.012439733202 & -6.71243973320195 \tabularnewline
54 & 91 & 97.7310478028395 & -6.73104780283953 \tabularnewline
55 & 93.2 & 97.3003518376583 & -4.10035183765832 \tabularnewline
56 & 103.1 & 105.292338315267 & -2.19233831526699 \tabularnewline
57 & 94.1 & 99.7856829172598 & -5.68568291725976 \tabularnewline
58 & 91.8 & 100.168365360050 & -8.36836536004965 \tabularnewline
59 & 102.7 & 108.041676156064 & -5.3416761560641 \tabularnewline
60 & 82.6 & 82.1230004744699 & 0.47699952553011 \tabularnewline
61 & 89.1 & 91.4359803277491 & -2.33598032774915 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57853&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]96.8[/C][C]96.7483439176615[/C][C]0.0516560823385169[/C][/ROW]
[ROW][C]2[/C][C]114.1[/C][C]111.152857540421[/C][C]2.94714245957885[/C][/ROW]
[ROW][C]3[/C][C]110.3[/C][C]113.052891346400[/C][C]-2.7528913463995[/C][/ROW]
[ROW][C]4[/C][C]103.9[/C][C]108.572925152378[/C][C]-4.67292515237781[/C][/ROW]
[ROW][C]5[/C][C]101.6[/C][C]101.222262993175[/C][C]0.377737006825067[/C][/ROW]
[ROW][C]6[/C][C]94.6[/C][C]101.980938674769[/C][C]-7.38093867476915[/C][/ROW]
[ROW][C]7[/C][C]95.9[/C][C]102.896931913573[/C][C]-6.99693191357347[/C][/ROW]
[ROW][C]8[/C][C]104.7[/C][C]111.562262993175[/C][C]-6.86226299317491[/C][/ROW]
[ROW][C]9[/C][C]102.8[/C][C]106.055607595168[/C][C]-3.25560759516771[/C][/ROW]
[ROW][C]10[/C][C]98.1[/C][C]104.418256231979[/C][C]-6.31825623197926[/C][/ROW]
[ROW][C]11[/C][C]113.9[/C][C]114.311600833972[/C][C]-0.411600833972023[/C][/ROW]
[ROW][C]12[/C][C]80.9[/C][C]88.3929251523778[/C][C]-7.49292515237782[/C][/ROW]
[ROW][C]13[/C][C]95.7[/C][C]98.3792496076499[/C][C]-2.67924960764985[/C][/ROW]
[ROW][C]14[/C][C]113.2[/C][C]112.783763230410[/C][C]0.416236769590139[/C][/ROW]
[ROW][C]15[/C][C]105.9[/C][C]111.990418628417[/C][C]-6.09041862841709[/C][/ROW]
[ROW][C]16[/C][C]108.8[/C][C]104.817074026424[/C][C]3.98292597357569[/C][/ROW]
[ROW][C]17[/C][C]102.3[/C][C]97.4664118672214[/C][C]4.83358813277858[/C][/ROW]
[ROW][C]18[/C][C]99[/C][C]98.2250875488157[/C][C]0.774912451184354[/C][/ROW]
[ROW][C]19[/C][C]100.7[/C][C]99.8144253896128[/C][C]0.885574610387246[/C][/ROW]
[ROW][C]20[/C][C]115.5[/C][C]108.479756469214[/C][C]7.0202435307858[/C][/ROW]
[ROW][C]21[/C][C]100.7[/C][C]101.626411867221[/C][C]-0.926411867221417[/C][/ROW]
[ROW][C]22[/C][C]109.9[/C][C]100.662405106026[/C][C]9.23759489397426[/C][/ROW]
[ROW][C]23[/C][C]114.6[/C][C]111.229094310011[/C][C]3.37090568998868[/C][/ROW]
[ROW][C]24[/C][C]85.4[/C][C]88.677141638381[/C][C]-3.27714163838096[/C][/ROW]
[ROW][C]25[/C][C]100.5[/C][C]100.010155297639[/C][C]0.489844702361455[/C][/ROW]
[ROW][C]26[/C][C]114.8[/C][C]114.414668920399[/C][C]0.385331079601439[/C][/ROW]
[ROW][C]27[/C][C]116.5[/C][C]112.947979716413[/C][C]3.55202028358699[/C][/ROW]
[ROW][C]28[/C][C]112.9[/C][C]105.774635114420[/C][C]7.12536488557977[/C][/ROW]
[ROW][C]29[/C][C]102[/C][C]99.0973175572101[/C][C]2.90268244278989[/C][/ROW]
[ROW][C]30[/C][C]106[/C][C]100.529337840797[/C][C]5.4706621592029[/C][/ROW]
[ROW][C]31[/C][C]105.3[/C][C]102.118675681594[/C][C]3.18132431840578[/C][/ROW]
[ROW][C]32[/C][C]118.8[/C][C]110.784006761196[/C][C]8.01599323880433[/C][/ROW]
[ROW][C]33[/C][C]106.1[/C][C]102.583972955217[/C][C]3.51602704478266[/C][/ROW]
[ROW][C]34[/C][C]109.3[/C][C]102.293310796014[/C][C]7.00668920398555[/C][/ROW]
[ROW][C]35[/C][C]117.2[/C][C]114.206689203986[/C][C]2.99331079601445[/C][/ROW]
[ROW][C]36[/C][C]92.5[/C][C]90.9813919303624[/C][C]1.51860806963758[/C][/ROW]
[ROW][C]37[/C][C]104.2[/C][C]102.987750191613[/C][C]1.21224980838722[/C][/ROW]
[ROW][C]38[/C][C]112.5[/C][C]119.412297620351[/C][C]-6.91229762035112[/C][/ROW]
[ROW][C]39[/C][C]122.4[/C][C]117.272263814373[/C][C]5.12773618562722[/C][/ROW]
[ROW][C]40[/C][C]113.3[/C][C]109.425574610387[/C][C]3.87442538961275[/C][/ROW]
[ROW][C]41[/C][C]100[/C][C]101.401567849192[/C][C]-1.40156784919158[/C][/ROW]
[ROW][C]42[/C][C]110.7[/C][C]102.833588132779[/C][C]7.86641186722143[/C][/ROW]
[ROW][C]43[/C][C]112.8[/C][C]105.769615177561[/C][C]7.03038482243877[/C][/ROW]
[ROW][C]44[/C][C]109.8[/C][C]115.781635461148[/C][C]-5.98163546114823[/C][/ROW]
[ROW][C]45[/C][C]117.3[/C][C]110.948324665134[/C][C]6.35167533486623[/C][/ROW]
[ROW][C]46[/C][C]109.1[/C][C]110.657662505931[/C][C]-1.55766250593089[/C][/ROW]
[ROW][C]47[/C][C]115.9[/C][C]116.510939495967[/C][C]-0.610939495967005[/C][/ROW]
[ROW][C]48[/C][C]96[/C][C]87.225540804409[/C][C]8.77445919559107[/C][/ROW]
[ROW][C]49[/C][C]99.8[/C][C]96.5385206576882[/C][C]3.26147934231181[/C][/ROW]
[ROW][C]50[/C][C]116.8[/C][C]113.636412688419[/C][C]3.16358731158070[/C][/ROW]
[ROW][C]51[/C][C]115.7[/C][C]115.536446494398[/C][C]0.163553505602383[/C][/ROW]
[ROW][C]52[/C][C]99.4[/C][C]109.709791096390[/C][C]-10.3097910963904[/C][/ROW]
[ROW][C]53[/C][C]94.3[/C][C]101.012439733202[/C][C]-6.71243973320195[/C][/ROW]
[ROW][C]54[/C][C]91[/C][C]97.7310478028395[/C][C]-6.73104780283953[/C][/ROW]
[ROW][C]55[/C][C]93.2[/C][C]97.3003518376583[/C][C]-4.10035183765832[/C][/ROW]
[ROW][C]56[/C][C]103.1[/C][C]105.292338315267[/C][C]-2.19233831526699[/C][/ROW]
[ROW][C]57[/C][C]94.1[/C][C]99.7856829172598[/C][C]-5.68568291725976[/C][/ROW]
[ROW][C]58[/C][C]91.8[/C][C]100.168365360050[/C][C]-8.36836536004965[/C][/ROW]
[ROW][C]59[/C][C]102.7[/C][C]108.041676156064[/C][C]-5.3416761560641[/C][/ROW]
[ROW][C]60[/C][C]82.6[/C][C]82.1230004744699[/C][C]0.47699952553011[/C][/ROW]
[ROW][C]61[/C][C]89.1[/C][C]91.4359803277491[/C][C]-2.33598032774915[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57853&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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
196.896.74834391766150.0516560823385169
2114.1111.1528575404212.94714245957885
3110.3113.052891346400-2.7528913463995
4103.9108.572925152378-4.67292515237781
5101.6101.2222629931750.377737006825067
694.6101.980938674769-7.38093867476915
795.9102.896931913573-6.99693191357347
8104.7111.562262993175-6.86226299317491
9102.8106.055607595168-3.25560759516771
1098.1104.418256231979-6.31825623197926
11113.9114.311600833972-0.411600833972023
1280.988.3929251523778-7.49292515237782
1395.798.3792496076499-2.67924960764985
14113.2112.7837632304100.416236769590139
15105.9111.990418628417-6.09041862841709
16108.8104.8170740264243.98292597357569
17102.397.46641186722144.83358813277858
189998.22508754881570.774912451184354
19100.799.81442538961280.885574610387246
20115.5108.4797564692147.0202435307858
21100.7101.626411867221-0.926411867221417
22109.9100.6624051060269.23759489397426
23114.6111.2290943100113.37090568998868
2485.488.677141638381-3.27714163838096
25100.5100.0101552976390.489844702361455
26114.8114.4146689203990.385331079601439
27116.5112.9479797164133.55202028358699
28112.9105.7746351144207.12536488557977
2910299.09731755721012.90268244278989
30106100.5293378407975.4706621592029
31105.3102.1186756815943.18132431840578
32118.8110.7840067611968.01599323880433
33106.1102.5839729552173.51602704478266
34109.3102.2933107960147.00668920398555
35117.2114.2066892039862.99331079601445
3692.590.98139193036241.51860806963758
37104.2102.9877501916131.21224980838722
38112.5119.412297620351-6.91229762035112
39122.4117.2722638143735.12773618562722
40113.3109.4255746103873.87442538961275
41100101.401567849192-1.40156784919158
42110.7102.8335881327797.86641186722143
43112.8105.7696151775617.03038482243877
44109.8115.781635461148-5.98163546114823
45117.3110.9483246651346.35167533486623
46109.1110.657662505931-1.55766250593089
47115.9116.510939495967-0.610939495967005
489687.2255408044098.77445919559107
4999.896.53852065768823.26147934231181
50116.8113.6364126884193.16358731158070
51115.7115.5364464943980.163553505602383
5299.4109.709791096390-10.3097910963904
5394.3101.012439733202-6.71243973320195
549197.7310478028395-6.73104780283953
5593.297.3003518376583-4.10035183765832
56103.1105.292338315267-2.19233831526699
5794.199.7856829172598-5.68568291725976
5891.8100.168365360050-8.36836536004965
59102.7108.041676156064-5.3416761560641
6082.682.12300047446990.47699952553011
6189.191.4359803277491-2.33598032774915







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1036447113023950.2072894226047890.896355288697605
180.04932841383670710.09865682767341430.950671586163293
190.02608968765261050.0521793753052210.97391031234739
200.07357922315570390.1471584463114080.926420776844296
210.1039619210224820.2079238420449640.896038078977518
220.1467571771358120.2935143542716240.853242822864188
230.09639035340036950.1927807068007390.90360964659963
240.1293399447784010.2586798895568010.8706600552216
250.1219483498309860.2438966996619710.878051650169015
260.08071584290448320.1614316858089660.919284157095517
270.09028579515909340.1805715903181870.909714204840907
280.06115012886165750.1223002577233150.938849871138343
290.04674656138251240.09349312276502480.953253438617488
300.04382849664185030.08765699328370060.95617150335815
310.03434804224456600.06869608448913190.965651957755434
320.02964060396800560.05928120793601120.970359396031994
330.01976962359776070.03953924719552150.98023037640224
340.01190303507494870.02380607014989740.988096964925051
350.006218449855374580.01243689971074920.993781550144625
360.01359631460896990.02719262921793970.98640368539103
370.01350847785386050.02701695570772100.98649152214614
380.2136322448125310.4272644896250610.78636775518747
390.2397675712370160.4795351424740330.760232428762984
400.1976966097673240.3953932195346490.802303390232675
410.2379475971611310.4758951943222610.76205240283887
420.2704678945355830.5409357890711660.729532105464417
430.2755920631168830.5511841262337660.724407936883117
440.8135167997603140.3729664004793710.186483200239686

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.103644711302395 & 0.207289422604789 & 0.896355288697605 \tabularnewline
18 & 0.0493284138367071 & 0.0986568276734143 & 0.950671586163293 \tabularnewline
19 & 0.0260896876526105 & 0.052179375305221 & 0.97391031234739 \tabularnewline
20 & 0.0735792231557039 & 0.147158446311408 & 0.926420776844296 \tabularnewline
21 & 0.103961921022482 & 0.207923842044964 & 0.896038078977518 \tabularnewline
22 & 0.146757177135812 & 0.293514354271624 & 0.853242822864188 \tabularnewline
23 & 0.0963903534003695 & 0.192780706800739 & 0.90360964659963 \tabularnewline
24 & 0.129339944778401 & 0.258679889556801 & 0.8706600552216 \tabularnewline
25 & 0.121948349830986 & 0.243896699661971 & 0.878051650169015 \tabularnewline
26 & 0.0807158429044832 & 0.161431685808966 & 0.919284157095517 \tabularnewline
27 & 0.0902857951590934 & 0.180571590318187 & 0.909714204840907 \tabularnewline
28 & 0.0611501288616575 & 0.122300257723315 & 0.938849871138343 \tabularnewline
29 & 0.0467465613825124 & 0.0934931227650248 & 0.953253438617488 \tabularnewline
30 & 0.0438284966418503 & 0.0876569932837006 & 0.95617150335815 \tabularnewline
31 & 0.0343480422445660 & 0.0686960844891319 & 0.965651957755434 \tabularnewline
32 & 0.0296406039680056 & 0.0592812079360112 & 0.970359396031994 \tabularnewline
33 & 0.0197696235977607 & 0.0395392471955215 & 0.98023037640224 \tabularnewline
34 & 0.0119030350749487 & 0.0238060701498974 & 0.988096964925051 \tabularnewline
35 & 0.00621844985537458 & 0.0124368997107492 & 0.993781550144625 \tabularnewline
36 & 0.0135963146089699 & 0.0271926292179397 & 0.98640368539103 \tabularnewline
37 & 0.0135084778538605 & 0.0270169557077210 & 0.98649152214614 \tabularnewline
38 & 0.213632244812531 & 0.427264489625061 & 0.78636775518747 \tabularnewline
39 & 0.239767571237016 & 0.479535142474033 & 0.760232428762984 \tabularnewline
40 & 0.197696609767324 & 0.395393219534649 & 0.802303390232675 \tabularnewline
41 & 0.237947597161131 & 0.475895194322261 & 0.76205240283887 \tabularnewline
42 & 0.270467894535583 & 0.540935789071166 & 0.729532105464417 \tabularnewline
43 & 0.275592063116883 & 0.551184126233766 & 0.724407936883117 \tabularnewline
44 & 0.813516799760314 & 0.372966400479371 & 0.186483200239686 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57853&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]17[/C][C]0.103644711302395[/C][C]0.207289422604789[/C][C]0.896355288697605[/C][/ROW]
[ROW][C]18[/C][C]0.0493284138367071[/C][C]0.0986568276734143[/C][C]0.950671586163293[/C][/ROW]
[ROW][C]19[/C][C]0.0260896876526105[/C][C]0.052179375305221[/C][C]0.97391031234739[/C][/ROW]
[ROW][C]20[/C][C]0.0735792231557039[/C][C]0.147158446311408[/C][C]0.926420776844296[/C][/ROW]
[ROW][C]21[/C][C]0.103961921022482[/C][C]0.207923842044964[/C][C]0.896038078977518[/C][/ROW]
[ROW][C]22[/C][C]0.146757177135812[/C][C]0.293514354271624[/C][C]0.853242822864188[/C][/ROW]
[ROW][C]23[/C][C]0.0963903534003695[/C][C]0.192780706800739[/C][C]0.90360964659963[/C][/ROW]
[ROW][C]24[/C][C]0.129339944778401[/C][C]0.258679889556801[/C][C]0.8706600552216[/C][/ROW]
[ROW][C]25[/C][C]0.121948349830986[/C][C]0.243896699661971[/C][C]0.878051650169015[/C][/ROW]
[ROW][C]26[/C][C]0.0807158429044832[/C][C]0.161431685808966[/C][C]0.919284157095517[/C][/ROW]
[ROW][C]27[/C][C]0.0902857951590934[/C][C]0.180571590318187[/C][C]0.909714204840907[/C][/ROW]
[ROW][C]28[/C][C]0.0611501288616575[/C][C]0.122300257723315[/C][C]0.938849871138343[/C][/ROW]
[ROW][C]29[/C][C]0.0467465613825124[/C][C]0.0934931227650248[/C][C]0.953253438617488[/C][/ROW]
[ROW][C]30[/C][C]0.0438284966418503[/C][C]0.0876569932837006[/C][C]0.95617150335815[/C][/ROW]
[ROW][C]31[/C][C]0.0343480422445660[/C][C]0.0686960844891319[/C][C]0.965651957755434[/C][/ROW]
[ROW][C]32[/C][C]0.0296406039680056[/C][C]0.0592812079360112[/C][C]0.970359396031994[/C][/ROW]
[ROW][C]33[/C][C]0.0197696235977607[/C][C]0.0395392471955215[/C][C]0.98023037640224[/C][/ROW]
[ROW][C]34[/C][C]0.0119030350749487[/C][C]0.0238060701498974[/C][C]0.988096964925051[/C][/ROW]
[ROW][C]35[/C][C]0.00621844985537458[/C][C]0.0124368997107492[/C][C]0.993781550144625[/C][/ROW]
[ROW][C]36[/C][C]0.0135963146089699[/C][C]0.0271926292179397[/C][C]0.98640368539103[/C][/ROW]
[ROW][C]37[/C][C]0.0135084778538605[/C][C]0.0270169557077210[/C][C]0.98649152214614[/C][/ROW]
[ROW][C]38[/C][C]0.213632244812531[/C][C]0.427264489625061[/C][C]0.78636775518747[/C][/ROW]
[ROW][C]39[/C][C]0.239767571237016[/C][C]0.479535142474033[/C][C]0.760232428762984[/C][/ROW]
[ROW][C]40[/C][C]0.197696609767324[/C][C]0.395393219534649[/C][C]0.802303390232675[/C][/ROW]
[ROW][C]41[/C][C]0.237947597161131[/C][C]0.475895194322261[/C][C]0.76205240283887[/C][/ROW]
[ROW][C]42[/C][C]0.270467894535583[/C][C]0.540935789071166[/C][C]0.729532105464417[/C][/ROW]
[ROW][C]43[/C][C]0.275592063116883[/C][C]0.551184126233766[/C][C]0.724407936883117[/C][/ROW]
[ROW][C]44[/C][C]0.813516799760314[/C][C]0.372966400479371[/C][C]0.186483200239686[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57853&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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
170.1036447113023950.2072894226047890.896355288697605
180.04932841383670710.09865682767341430.950671586163293
190.02608968765261050.0521793753052210.97391031234739
200.07357922315570390.1471584463114080.926420776844296
210.1039619210224820.2079238420449640.896038078977518
220.1467571771358120.2935143542716240.853242822864188
230.09639035340036950.1927807068007390.90360964659963
240.1293399447784010.2586798895568010.8706600552216
250.1219483498309860.2438966996619710.878051650169015
260.08071584290448320.1614316858089660.919284157095517
270.09028579515909340.1805715903181870.909714204840907
280.06115012886165750.1223002577233150.938849871138343
290.04674656138251240.09349312276502480.953253438617488
300.04382849664185030.08765699328370060.95617150335815
310.03434804224456600.06869608448913190.965651957755434
320.02964060396800560.05928120793601120.970359396031994
330.01976962359776070.03953924719552150.98023037640224
340.01190303507494870.02380607014989740.988096964925051
350.006218449855374580.01243689971074920.993781550144625
360.01359631460896990.02719262921793970.98640368539103
370.01350847785386050.02701695570772100.98649152214614
380.2136322448125310.4272644896250610.78636775518747
390.2397675712370160.4795351424740330.760232428762984
400.1976966097673240.3953932195346490.802303390232675
410.2379475971611310.4758951943222610.76205240283887
420.2704678945355830.5409357890711660.729532105464417
430.2755920631168830.5511841262337660.724407936883117
440.8135167997603140.3729664004793710.186483200239686







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57853&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 level50.178571428571429NOK
10% type I error level110.392857142857143NOK



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