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, 27 Nov 2009 03:24:38 -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/27/t12593177669hc5a6okwaqk6qo.htm/, Retrieved Sun, 28 Apr 2024 20:50:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60542, Retrieved Sun, 28 Apr 2024 20:50:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact156
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [Berekening 4 TVD] [2009-11-18 17:29:00] [42ad1186d39724f834063794eac7cea3]
-    D      [Multiple Regression] [Berekening 5 TVD] [2009-11-18 17:46:23] [42ad1186d39724f834063794eac7cea3]
-   P           [Multiple Regression] [review WS 7 2 maa...] [2009-11-27 10:24:38] [51d49d3536f6a59f2486a67bf50b2759] [Current]
Feedback Forum

Post a new message
Dataseries X:
94	0	106.3	101.3
102.8	1	94	106.3
102	1	102.8	94
105.1	1	102	102.8
92.4	0	105.1	102
81.4	0	92.4	105.1
105.8	1	81.4	92.4
120.3	1	105.8	81.4
100.7	1	120.3	105.8
88.8	0	100.7	120.3
94.3	0	88.8	100.7
99.9	0	94.3	88.8
103.4	1	99.9	94.3
103.3	1	103.4	99.9
98.8	0	103.3	103.4
104.2	1	98.8	103.3
91.2	0	104.2	98.8
74.7	0	91.2	104.2
108.5	1	74.7	91.2
114.5	1	108.5	74.7
96.9	0	114.5	108.5
89.6	0	96.9	114.5
97.1	0	89.6	96.9
100.3	1	97.1	89.6
122.6	1	100.3	97.1
115.4	1	122.6	100.3
109	1	115.4	122.6
129.1	1	109	115.4
102.8	1	129.1	109
96.2	0	102.8	129.1
127.7	1	96.2	102.8
128.9	1	127.7	96.2
126.5	1	128.9	127.7
119.8	1	126.5	128.9
113.2	1	119.8	126.5
114.1	1	113.2	119.8
134.1	1	114.1	113.2
130	1	134.1	114.1
121.8	1	130	134.1
132.1	1	121.8	130
105.3	1	132.1	121.8
103	1	105.3	132.1
117.1	1	103	105.3
126.3	1	117.1	103
138.1	1	126.3	117.1
119.5	1	138.1	126.3
138	1	119.5	138.1
135.5	1	138	119.5
178.6	1	135.5	138
162.2	1	178.6	135.5
176.9	1	162.2	178.6
204.9	1	176.9	162.2
132.2	1	204.9	176.9
142.5	1	132.2	204.9
164.3	1	142.5	132.2
174.9	1	164.3	142.5
175.4	1	174.9	164.3
143	1	175.4	174.9




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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Omzet[t] = + 26.1376860921832 -1.44041616513782Uitvoer[t] + 0.314190804274826`Omzet-1`[t] + 0.361312695475143`Omzet-2`[t] + 14.8923044799708M1[t] + 5.18880377075971M2[t] -0.977242744491664M3[t] + 13.8940093239983M4[t] -21.3068427437488M5[t] -22.6258863164955M6[t] + 15.4496362100097M7[t] + 17.2466376332173M8[t] -0.68198202941588M9[t] -18.1300566873355M10[t] -3.72729217804567M11[t] + 0.496577843788959t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Omzet[t] =  +  26.1376860921832 -1.44041616513782Uitvoer[t] +  0.314190804274826`Omzet-1`[t] +  0.361312695475143`Omzet-2`[t] +  14.8923044799708M1[t] +  5.18880377075971M2[t] -0.977242744491664M3[t] +  13.8940093239983M4[t] -21.3068427437488M5[t] -22.6258863164955M6[t] +  15.4496362100097M7[t] +  17.2466376332173M8[t] -0.68198202941588M9[t] -18.1300566873355M10[t] -3.72729217804567M11[t] +  0.496577843788959t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60542&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Omzet[t] =  +  26.1376860921832 -1.44041616513782Uitvoer[t] +  0.314190804274826`Omzet-1`[t] +  0.361312695475143`Omzet-2`[t] +  14.8923044799708M1[t] +  5.18880377075971M2[t] -0.977242744491664M3[t] +  13.8940093239983M4[t] -21.3068427437488M5[t] -22.6258863164955M6[t] +  15.4496362100097M7[t] +  17.2466376332173M8[t] -0.68198202941588M9[t] -18.1300566873355M10[t] -3.72729217804567M11[t] +  0.496577843788959t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60542&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60542&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
Omzet[t] = + 26.1376860921832 -1.44041616513782Uitvoer[t] + 0.314190804274826`Omzet-1`[t] + 0.361312695475143`Omzet-2`[t] + 14.8923044799708M1[t] + 5.18880377075971M2[t] -0.977242744491664M3[t] + 13.8940093239983M4[t] -21.3068427437488M5[t] -22.6258863164955M6[t] + 15.4496362100097M7[t] + 17.2466376332173M8[t] -0.68198202941588M9[t] -18.1300566873355M10[t] -3.72729217804567M11[t] + 0.496577843788959t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)26.137686092183210.9778872.38090.021880.01094
Uitvoer-1.440416165137824.689712-0.30710.7602520.380126
`Omzet-1`0.3141908042748260.1429182.19840.0334830.016742
`Omzet-2`0.3613126954751430.141962.54520.0146840.007342
M114.89230447997087.3216972.0340.04830.02415
M25.188803770759717.739360.67040.5062450.253123
M3-0.9772427444916647.768238-0.12580.9004910.450245
M413.89400932399837.6701381.81140.0772280.038614
M5-21.30684274374887.796212-2.7330.0091450.004572
M6-22.62588631649558.935556-2.53210.0151650.007583
M715.44963621000977.4628692.07020.0446190.022309
M817.24663763321737.6963422.24090.0303780.015189
M9-0.681982029415887.547821-0.09040.9284350.464217
M10-18.13005668733557.774407-2.3320.0245690.012284
M11-3.727292178045678.020094-0.46470.6445150.322258
t0.4965778437889590.1842562.6950.0100770.005039

\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) & 26.1376860921832 & 10.977887 & 2.3809 & 0.02188 & 0.01094 \tabularnewline
Uitvoer & -1.44041616513782 & 4.689712 & -0.3071 & 0.760252 & 0.380126 \tabularnewline
`Omzet-1` & 0.314190804274826 & 0.142918 & 2.1984 & 0.033483 & 0.016742 \tabularnewline
`Omzet-2` & 0.361312695475143 & 0.14196 & 2.5452 & 0.014684 & 0.007342 \tabularnewline
M1 & 14.8923044799708 & 7.321697 & 2.034 & 0.0483 & 0.02415 \tabularnewline
M2 & 5.18880377075971 & 7.73936 & 0.6704 & 0.506245 & 0.253123 \tabularnewline
M3 & -0.977242744491664 & 7.768238 & -0.1258 & 0.900491 & 0.450245 \tabularnewline
M4 & 13.8940093239983 & 7.670138 & 1.8114 & 0.077228 & 0.038614 \tabularnewline
M5 & -21.3068427437488 & 7.796212 & -2.733 & 0.009145 & 0.004572 \tabularnewline
M6 & -22.6258863164955 & 8.935556 & -2.5321 & 0.015165 & 0.007583 \tabularnewline
M7 & 15.4496362100097 & 7.462869 & 2.0702 & 0.044619 & 0.022309 \tabularnewline
M8 & 17.2466376332173 & 7.696342 & 2.2409 & 0.030378 & 0.015189 \tabularnewline
M9 & -0.68198202941588 & 7.547821 & -0.0904 & 0.928435 & 0.464217 \tabularnewline
M10 & -18.1300566873355 & 7.774407 & -2.332 & 0.024569 & 0.012284 \tabularnewline
M11 & -3.72729217804567 & 8.020094 & -0.4647 & 0.644515 & 0.322258 \tabularnewline
t & 0.496577843788959 & 0.184256 & 2.695 & 0.010077 & 0.005039 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60542&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]26.1376860921832[/C][C]10.977887[/C][C]2.3809[/C][C]0.02188[/C][C]0.01094[/C][/ROW]
[ROW][C]Uitvoer[/C][C]-1.44041616513782[/C][C]4.689712[/C][C]-0.3071[/C][C]0.760252[/C][C]0.380126[/C][/ROW]
[ROW][C]`Omzet-1`[/C][C]0.314190804274826[/C][C]0.142918[/C][C]2.1984[/C][C]0.033483[/C][C]0.016742[/C][/ROW]
[ROW][C]`Omzet-2`[/C][C]0.361312695475143[/C][C]0.14196[/C][C]2.5452[/C][C]0.014684[/C][C]0.007342[/C][/ROW]
[ROW][C]M1[/C][C]14.8923044799708[/C][C]7.321697[/C][C]2.034[/C][C]0.0483[/C][C]0.02415[/C][/ROW]
[ROW][C]M2[/C][C]5.18880377075971[/C][C]7.73936[/C][C]0.6704[/C][C]0.506245[/C][C]0.253123[/C][/ROW]
[ROW][C]M3[/C][C]-0.977242744491664[/C][C]7.768238[/C][C]-0.1258[/C][C]0.900491[/C][C]0.450245[/C][/ROW]
[ROW][C]M4[/C][C]13.8940093239983[/C][C]7.670138[/C][C]1.8114[/C][C]0.077228[/C][C]0.038614[/C][/ROW]
[ROW][C]M5[/C][C]-21.3068427437488[/C][C]7.796212[/C][C]-2.733[/C][C]0.009145[/C][C]0.004572[/C][/ROW]
[ROW][C]M6[/C][C]-22.6258863164955[/C][C]8.935556[/C][C]-2.5321[/C][C]0.015165[/C][C]0.007583[/C][/ROW]
[ROW][C]M7[/C][C]15.4496362100097[/C][C]7.462869[/C][C]2.0702[/C][C]0.044619[/C][C]0.022309[/C][/ROW]
[ROW][C]M8[/C][C]17.2466376332173[/C][C]7.696342[/C][C]2.2409[/C][C]0.030378[/C][C]0.015189[/C][/ROW]
[ROW][C]M9[/C][C]-0.68198202941588[/C][C]7.547821[/C][C]-0.0904[/C][C]0.928435[/C][C]0.464217[/C][/ROW]
[ROW][C]M10[/C][C]-18.1300566873355[/C][C]7.774407[/C][C]-2.332[/C][C]0.024569[/C][C]0.012284[/C][/ROW]
[ROW][C]M11[/C][C]-3.72729217804567[/C][C]8.020094[/C][C]-0.4647[/C][C]0.644515[/C][C]0.322258[/C][/ROW]
[ROW][C]t[/C][C]0.496577843788959[/C][C]0.184256[/C][C]2.695[/C][C]0.010077[/C][C]0.005039[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60542&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60542&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)26.137686092183210.9778872.38090.021880.01094
Uitvoer-1.440416165137824.689712-0.30710.7602520.380126
`Omzet-1`0.3141908042748260.1429182.19840.0334830.016742
`Omzet-2`0.3613126954751430.141962.54520.0146840.007342
M114.89230447997087.3216972.0340.04830.02415
M25.188803770759717.739360.67040.5062450.253123
M3-0.9772427444916647.768238-0.12580.9004910.450245
M413.89400932399837.6701381.81140.0772280.038614
M5-21.30684274374887.796212-2.7330.0091450.004572
M6-22.62588631649558.935556-2.53210.0151650.007583
M715.44963621000977.4628692.07020.0446190.022309
M817.24663763321737.6963422.24090.0303780.015189
M9-0.681982029415887.547821-0.09040.9284350.464217
M10-18.13005668733557.774407-2.3320.0245690.012284
M11-3.727292178045678.020094-0.46470.6445150.322258
t0.4965778437889590.1842562.6950.0100770.005039







Multiple Linear Regression - Regression Statistics
Multiple R0.93939025754965
R-squared0.8824540559792
Adjusted R-squared0.840473361686056
F-TEST (value)21.0204731207443
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value8.21565038222616e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.7348292040724
Sum Squared Residuals4839.93543770543

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.93939025754965 \tabularnewline
R-squared & 0.8824540559792 \tabularnewline
Adjusted R-squared & 0.840473361686056 \tabularnewline
F-TEST (value) & 21.0204731207443 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 8.21565038222616e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 10.7348292040724 \tabularnewline
Sum Squared Residuals & 4839.93543770543 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60542&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.93939025754965[/C][/ROW]
[ROW][C]R-squared[/C][C]0.8824540559792[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.840473361686056[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]21.0204731207443[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]8.21565038222616e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]10.7348292040724[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4839.93543770543[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60542&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60542&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.93939025754965
R-squared0.8824540559792
Adjusted R-squared0.840473361686056
F-TEST (value)21.0204731207443
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value8.21565038222616e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.7348292040724
Sum Squared Residuals4839.93543770543







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
194111.526026961989-17.5260269619891
2102.898.82070451622443.97929548377559
310291.471968768036210.5280312319638
4105.1109.767997757077-4.66799775707655
592.477.18908103512815.2109189648720
681.473.4964614478537.90353855214703
7105.8102.5833755734523.21662442654812
8120.3108.56877081452811.7312291854723
9100.7104.508525427262-3.80852542726190
1088.888.0783390988720.72166090112797
1194.392.15708204976762.14291795023239
1299.993.80938041895966.09061958104043
13103.4111.504534906634-8.1045349066338
14103.3105.420630950834-2.12063095083440
1598.8102.424753798245-3.62475379824532
16104.2114.902177656602-10.7021776566022
1791.281.70904281122789.49095718877222
1874.778.753185182263-4.05318518226307
19108.5106.0036560757082.49634392429214
20114.5112.9552250518541.54477494814626
2196.9111.061113330856-14.1611133308561
2289.690.7477345343393-1.14773453433936
2397.196.99438057584940.105619424150556
24100.399.49668278763890.803317212361116
25122.6118.6008209011423.99917909885836
26115.4117.556553596569-2.15655359656862
27109117.682184243423-8.68218424342315
28129.1128.4377416009220.662258399077845
29102.897.73630129184715.0636987081529
3096.297.3534187546496-1.15341875464961
31127.7122.9089197605964.7910802394042
32128.9132.714845572113-3.81484557211349
33126.5127.041182625866-0.541182625866083
34119.8109.76920311604610.0307968839540
35113.2121.696316611343-8.49631661134311
36114.1121.425732265280-7.32573226528043
37134.1134.712722522752-0.612722522751562
38130132.114797168754-2.11479716875361
39121.8132.383400109267-10.5834001092673
40132.1143.693483375045-11.5934833750445
41105.3109.262610332221-3.96261033222091
42103103.741351812092-0.741351812091793
43117.1131.90763309382-14.80763309382
44126.3137.800283501499-11.5002835014988
45138.1128.3533060881839.74669391181748
46119.5118.4333375628661.06666243713393
47138131.7522207630406.24777923696017
48135.5135.0682045281210.431795471878913
49178.6156.35589470748422.2441052925161
50162.2159.7873137676192.41268623238103
51176.9164.53769308102812.3623069189720
52204.9178.59859961035526.3014003896454
53132.2158.002964529576-25.8029645295762
54142.5144.455582803143-1.95558280314255
55164.3159.9964154964244.30358450357553
56174.9172.8608750600062.03912493999372
57175.4166.6358725278338.76412747216665
58143153.671385687877-10.6713856878766

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 94 & 111.526026961989 & -17.5260269619891 \tabularnewline
2 & 102.8 & 98.8207045162244 & 3.97929548377559 \tabularnewline
3 & 102 & 91.4719687680362 & 10.5280312319638 \tabularnewline
4 & 105.1 & 109.767997757077 & -4.66799775707655 \tabularnewline
5 & 92.4 & 77.189081035128 & 15.2109189648720 \tabularnewline
6 & 81.4 & 73.496461447853 & 7.90353855214703 \tabularnewline
7 & 105.8 & 102.583375573452 & 3.21662442654812 \tabularnewline
8 & 120.3 & 108.568770814528 & 11.7312291854723 \tabularnewline
9 & 100.7 & 104.508525427262 & -3.80852542726190 \tabularnewline
10 & 88.8 & 88.078339098872 & 0.72166090112797 \tabularnewline
11 & 94.3 & 92.1570820497676 & 2.14291795023239 \tabularnewline
12 & 99.9 & 93.8093804189596 & 6.09061958104043 \tabularnewline
13 & 103.4 & 111.504534906634 & -8.1045349066338 \tabularnewline
14 & 103.3 & 105.420630950834 & -2.12063095083440 \tabularnewline
15 & 98.8 & 102.424753798245 & -3.62475379824532 \tabularnewline
16 & 104.2 & 114.902177656602 & -10.7021776566022 \tabularnewline
17 & 91.2 & 81.7090428112278 & 9.49095718877222 \tabularnewline
18 & 74.7 & 78.753185182263 & -4.05318518226307 \tabularnewline
19 & 108.5 & 106.003656075708 & 2.49634392429214 \tabularnewline
20 & 114.5 & 112.955225051854 & 1.54477494814626 \tabularnewline
21 & 96.9 & 111.061113330856 & -14.1611133308561 \tabularnewline
22 & 89.6 & 90.7477345343393 & -1.14773453433936 \tabularnewline
23 & 97.1 & 96.9943805758494 & 0.105619424150556 \tabularnewline
24 & 100.3 & 99.4966827876389 & 0.803317212361116 \tabularnewline
25 & 122.6 & 118.600820901142 & 3.99917909885836 \tabularnewline
26 & 115.4 & 117.556553596569 & -2.15655359656862 \tabularnewline
27 & 109 & 117.682184243423 & -8.68218424342315 \tabularnewline
28 & 129.1 & 128.437741600922 & 0.662258399077845 \tabularnewline
29 & 102.8 & 97.7363012918471 & 5.0636987081529 \tabularnewline
30 & 96.2 & 97.3534187546496 & -1.15341875464961 \tabularnewline
31 & 127.7 & 122.908919760596 & 4.7910802394042 \tabularnewline
32 & 128.9 & 132.714845572113 & -3.81484557211349 \tabularnewline
33 & 126.5 & 127.041182625866 & -0.541182625866083 \tabularnewline
34 & 119.8 & 109.769203116046 & 10.0307968839540 \tabularnewline
35 & 113.2 & 121.696316611343 & -8.49631661134311 \tabularnewline
36 & 114.1 & 121.425732265280 & -7.32573226528043 \tabularnewline
37 & 134.1 & 134.712722522752 & -0.612722522751562 \tabularnewline
38 & 130 & 132.114797168754 & -2.11479716875361 \tabularnewline
39 & 121.8 & 132.383400109267 & -10.5834001092673 \tabularnewline
40 & 132.1 & 143.693483375045 & -11.5934833750445 \tabularnewline
41 & 105.3 & 109.262610332221 & -3.96261033222091 \tabularnewline
42 & 103 & 103.741351812092 & -0.741351812091793 \tabularnewline
43 & 117.1 & 131.90763309382 & -14.80763309382 \tabularnewline
44 & 126.3 & 137.800283501499 & -11.5002835014988 \tabularnewline
45 & 138.1 & 128.353306088183 & 9.74669391181748 \tabularnewline
46 & 119.5 & 118.433337562866 & 1.06666243713393 \tabularnewline
47 & 138 & 131.752220763040 & 6.24777923696017 \tabularnewline
48 & 135.5 & 135.068204528121 & 0.431795471878913 \tabularnewline
49 & 178.6 & 156.355894707484 & 22.2441052925161 \tabularnewline
50 & 162.2 & 159.787313767619 & 2.41268623238103 \tabularnewline
51 & 176.9 & 164.537693081028 & 12.3623069189720 \tabularnewline
52 & 204.9 & 178.598599610355 & 26.3014003896454 \tabularnewline
53 & 132.2 & 158.002964529576 & -25.8029645295762 \tabularnewline
54 & 142.5 & 144.455582803143 & -1.95558280314255 \tabularnewline
55 & 164.3 & 159.996415496424 & 4.30358450357553 \tabularnewline
56 & 174.9 & 172.860875060006 & 2.03912493999372 \tabularnewline
57 & 175.4 & 166.635872527833 & 8.76412747216665 \tabularnewline
58 & 143 & 153.671385687877 & -10.6713856878766 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60542&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]94[/C][C]111.526026961989[/C][C]-17.5260269619891[/C][/ROW]
[ROW][C]2[/C][C]102.8[/C][C]98.8207045162244[/C][C]3.97929548377559[/C][/ROW]
[ROW][C]3[/C][C]102[/C][C]91.4719687680362[/C][C]10.5280312319638[/C][/ROW]
[ROW][C]4[/C][C]105.1[/C][C]109.767997757077[/C][C]-4.66799775707655[/C][/ROW]
[ROW][C]5[/C][C]92.4[/C][C]77.189081035128[/C][C]15.2109189648720[/C][/ROW]
[ROW][C]6[/C][C]81.4[/C][C]73.496461447853[/C][C]7.90353855214703[/C][/ROW]
[ROW][C]7[/C][C]105.8[/C][C]102.583375573452[/C][C]3.21662442654812[/C][/ROW]
[ROW][C]8[/C][C]120.3[/C][C]108.568770814528[/C][C]11.7312291854723[/C][/ROW]
[ROW][C]9[/C][C]100.7[/C][C]104.508525427262[/C][C]-3.80852542726190[/C][/ROW]
[ROW][C]10[/C][C]88.8[/C][C]88.078339098872[/C][C]0.72166090112797[/C][/ROW]
[ROW][C]11[/C][C]94.3[/C][C]92.1570820497676[/C][C]2.14291795023239[/C][/ROW]
[ROW][C]12[/C][C]99.9[/C][C]93.8093804189596[/C][C]6.09061958104043[/C][/ROW]
[ROW][C]13[/C][C]103.4[/C][C]111.504534906634[/C][C]-8.1045349066338[/C][/ROW]
[ROW][C]14[/C][C]103.3[/C][C]105.420630950834[/C][C]-2.12063095083440[/C][/ROW]
[ROW][C]15[/C][C]98.8[/C][C]102.424753798245[/C][C]-3.62475379824532[/C][/ROW]
[ROW][C]16[/C][C]104.2[/C][C]114.902177656602[/C][C]-10.7021776566022[/C][/ROW]
[ROW][C]17[/C][C]91.2[/C][C]81.7090428112278[/C][C]9.49095718877222[/C][/ROW]
[ROW][C]18[/C][C]74.7[/C][C]78.753185182263[/C][C]-4.05318518226307[/C][/ROW]
[ROW][C]19[/C][C]108.5[/C][C]106.003656075708[/C][C]2.49634392429214[/C][/ROW]
[ROW][C]20[/C][C]114.5[/C][C]112.955225051854[/C][C]1.54477494814626[/C][/ROW]
[ROW][C]21[/C][C]96.9[/C][C]111.061113330856[/C][C]-14.1611133308561[/C][/ROW]
[ROW][C]22[/C][C]89.6[/C][C]90.7477345343393[/C][C]-1.14773453433936[/C][/ROW]
[ROW][C]23[/C][C]97.1[/C][C]96.9943805758494[/C][C]0.105619424150556[/C][/ROW]
[ROW][C]24[/C][C]100.3[/C][C]99.4966827876389[/C][C]0.803317212361116[/C][/ROW]
[ROW][C]25[/C][C]122.6[/C][C]118.600820901142[/C][C]3.99917909885836[/C][/ROW]
[ROW][C]26[/C][C]115.4[/C][C]117.556553596569[/C][C]-2.15655359656862[/C][/ROW]
[ROW][C]27[/C][C]109[/C][C]117.682184243423[/C][C]-8.68218424342315[/C][/ROW]
[ROW][C]28[/C][C]129.1[/C][C]128.437741600922[/C][C]0.662258399077845[/C][/ROW]
[ROW][C]29[/C][C]102.8[/C][C]97.7363012918471[/C][C]5.0636987081529[/C][/ROW]
[ROW][C]30[/C][C]96.2[/C][C]97.3534187546496[/C][C]-1.15341875464961[/C][/ROW]
[ROW][C]31[/C][C]127.7[/C][C]122.908919760596[/C][C]4.7910802394042[/C][/ROW]
[ROW][C]32[/C][C]128.9[/C][C]132.714845572113[/C][C]-3.81484557211349[/C][/ROW]
[ROW][C]33[/C][C]126.5[/C][C]127.041182625866[/C][C]-0.541182625866083[/C][/ROW]
[ROW][C]34[/C][C]119.8[/C][C]109.769203116046[/C][C]10.0307968839540[/C][/ROW]
[ROW][C]35[/C][C]113.2[/C][C]121.696316611343[/C][C]-8.49631661134311[/C][/ROW]
[ROW][C]36[/C][C]114.1[/C][C]121.425732265280[/C][C]-7.32573226528043[/C][/ROW]
[ROW][C]37[/C][C]134.1[/C][C]134.712722522752[/C][C]-0.612722522751562[/C][/ROW]
[ROW][C]38[/C][C]130[/C][C]132.114797168754[/C][C]-2.11479716875361[/C][/ROW]
[ROW][C]39[/C][C]121.8[/C][C]132.383400109267[/C][C]-10.5834001092673[/C][/ROW]
[ROW][C]40[/C][C]132.1[/C][C]143.693483375045[/C][C]-11.5934833750445[/C][/ROW]
[ROW][C]41[/C][C]105.3[/C][C]109.262610332221[/C][C]-3.96261033222091[/C][/ROW]
[ROW][C]42[/C][C]103[/C][C]103.741351812092[/C][C]-0.741351812091793[/C][/ROW]
[ROW][C]43[/C][C]117.1[/C][C]131.90763309382[/C][C]-14.80763309382[/C][/ROW]
[ROW][C]44[/C][C]126.3[/C][C]137.800283501499[/C][C]-11.5002835014988[/C][/ROW]
[ROW][C]45[/C][C]138.1[/C][C]128.353306088183[/C][C]9.74669391181748[/C][/ROW]
[ROW][C]46[/C][C]119.5[/C][C]118.433337562866[/C][C]1.06666243713393[/C][/ROW]
[ROW][C]47[/C][C]138[/C][C]131.752220763040[/C][C]6.24777923696017[/C][/ROW]
[ROW][C]48[/C][C]135.5[/C][C]135.068204528121[/C][C]0.431795471878913[/C][/ROW]
[ROW][C]49[/C][C]178.6[/C][C]156.355894707484[/C][C]22.2441052925161[/C][/ROW]
[ROW][C]50[/C][C]162.2[/C][C]159.787313767619[/C][C]2.41268623238103[/C][/ROW]
[ROW][C]51[/C][C]176.9[/C][C]164.537693081028[/C][C]12.3623069189720[/C][/ROW]
[ROW][C]52[/C][C]204.9[/C][C]178.598599610355[/C][C]26.3014003896454[/C][/ROW]
[ROW][C]53[/C][C]132.2[/C][C]158.002964529576[/C][C]-25.8029645295762[/C][/ROW]
[ROW][C]54[/C][C]142.5[/C][C]144.455582803143[/C][C]-1.95558280314255[/C][/ROW]
[ROW][C]55[/C][C]164.3[/C][C]159.996415496424[/C][C]4.30358450357553[/C][/ROW]
[ROW][C]56[/C][C]174.9[/C][C]172.860875060006[/C][C]2.03912493999372[/C][/ROW]
[ROW][C]57[/C][C]175.4[/C][C]166.635872527833[/C][C]8.76412747216665[/C][/ROW]
[ROW][C]58[/C][C]143[/C][C]153.671385687877[/C][C]-10.6713856878766[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60542&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60542&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
194111.526026961989-17.5260269619891
2102.898.82070451622443.97929548377559
310291.471968768036210.5280312319638
4105.1109.767997757077-4.66799775707655
592.477.18908103512815.2109189648720
681.473.4964614478537.90353855214703
7105.8102.5833755734523.21662442654812
8120.3108.56877081452811.7312291854723
9100.7104.508525427262-3.80852542726190
1088.888.0783390988720.72166090112797
1194.392.15708204976762.14291795023239
1299.993.80938041895966.09061958104043
13103.4111.504534906634-8.1045349066338
14103.3105.420630950834-2.12063095083440
1598.8102.424753798245-3.62475379824532
16104.2114.902177656602-10.7021776566022
1791.281.70904281122789.49095718877222
1874.778.753185182263-4.05318518226307
19108.5106.0036560757082.49634392429214
20114.5112.9552250518541.54477494814626
2196.9111.061113330856-14.1611133308561
2289.690.7477345343393-1.14773453433936
2397.196.99438057584940.105619424150556
24100.399.49668278763890.803317212361116
25122.6118.6008209011423.99917909885836
26115.4117.556553596569-2.15655359656862
27109117.682184243423-8.68218424342315
28129.1128.4377416009220.662258399077845
29102.897.73630129184715.0636987081529
3096.297.3534187546496-1.15341875464961
31127.7122.9089197605964.7910802394042
32128.9132.714845572113-3.81484557211349
33126.5127.041182625866-0.541182625866083
34119.8109.76920311604610.0307968839540
35113.2121.696316611343-8.49631661134311
36114.1121.425732265280-7.32573226528043
37134.1134.712722522752-0.612722522751562
38130132.114797168754-2.11479716875361
39121.8132.383400109267-10.5834001092673
40132.1143.693483375045-11.5934833750445
41105.3109.262610332221-3.96261033222091
42103103.741351812092-0.741351812091793
43117.1131.90763309382-14.80763309382
44126.3137.800283501499-11.5002835014988
45138.1128.3533060881839.74669391181748
46119.5118.4333375628661.06666243713393
47138131.7522207630406.24777923696017
48135.5135.0682045281210.431795471878913
49178.6156.35589470748422.2441052925161
50162.2159.7873137676192.41268623238103
51176.9164.53769308102812.3623069189720
52204.9178.59859961035526.3014003896454
53132.2158.002964529576-25.8029645295762
54142.5144.455582803143-1.95558280314255
55164.3159.9964154964244.30358450357553
56174.9172.8608750600062.03912493999372
57175.4166.6358725278338.76412747216665
58143153.671385687877-10.6713856878766







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.03893191292266280.07786382584532550.961068087077337
200.01267647748781790.02535295497563580.987323522512182
210.004657020709763270.009314041419526540.995342979290237
220.001135506477402090.002271012954804190.998864493522598
230.0003682445207174360.0007364890414348720.999631755479283
240.0001071481149616780.0002142962299233550.999892851885038
250.01166783492383690.02333566984767370.988332165076163
260.008474934147777610.01694986829555520.991525065852222
270.004557551967921090.009115103935842190.995442448032079
280.01001929200119020.02003858400238040.98998070799881
290.01008511570763890.02017023141527790.98991488429236
300.004949811671904230.009899623343808460.995050188328096
310.004954121560912790.009908243121825570.995045878439087
320.002485556322214380.004971112644428760.997514443677786
330.001715363978784570.003430727957569150.998284636021215
340.01158811010116080.02317622020232170.98841188989884
350.008962959507469450.01792591901493890.99103704049253
360.01753350687069130.03506701374138250.982466493129309
370.01170240506896040.02340481013792070.98829759493104
380.02110179114412810.04220358228825620.978898208855872
390.01151629888483050.02303259776966090.98848370111517

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0389319129226628 & 0.0778638258453255 & 0.961068087077337 \tabularnewline
20 & 0.0126764774878179 & 0.0253529549756358 & 0.987323522512182 \tabularnewline
21 & 0.00465702070976327 & 0.00931404141952654 & 0.995342979290237 \tabularnewline
22 & 0.00113550647740209 & 0.00227101295480419 & 0.998864493522598 \tabularnewline
23 & 0.000368244520717436 & 0.000736489041434872 & 0.999631755479283 \tabularnewline
24 & 0.000107148114961678 & 0.000214296229923355 & 0.999892851885038 \tabularnewline
25 & 0.0116678349238369 & 0.0233356698476737 & 0.988332165076163 \tabularnewline
26 & 0.00847493414777761 & 0.0169498682955552 & 0.991525065852222 \tabularnewline
27 & 0.00455755196792109 & 0.00911510393584219 & 0.995442448032079 \tabularnewline
28 & 0.0100192920011902 & 0.0200385840023804 & 0.98998070799881 \tabularnewline
29 & 0.0100851157076389 & 0.0201702314152779 & 0.98991488429236 \tabularnewline
30 & 0.00494981167190423 & 0.00989962334380846 & 0.995050188328096 \tabularnewline
31 & 0.00495412156091279 & 0.00990824312182557 & 0.995045878439087 \tabularnewline
32 & 0.00248555632221438 & 0.00497111264442876 & 0.997514443677786 \tabularnewline
33 & 0.00171536397878457 & 0.00343072795756915 & 0.998284636021215 \tabularnewline
34 & 0.0115881101011608 & 0.0231762202023217 & 0.98841188989884 \tabularnewline
35 & 0.00896295950746945 & 0.0179259190149389 & 0.99103704049253 \tabularnewline
36 & 0.0175335068706913 & 0.0350670137413825 & 0.982466493129309 \tabularnewline
37 & 0.0117024050689604 & 0.0234048101379207 & 0.98829759493104 \tabularnewline
38 & 0.0211017911441281 & 0.0422035822882562 & 0.978898208855872 \tabularnewline
39 & 0.0115162988848305 & 0.0230325977696609 & 0.98848370111517 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60542&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]19[/C][C]0.0389319129226628[/C][C]0.0778638258453255[/C][C]0.961068087077337[/C][/ROW]
[ROW][C]20[/C][C]0.0126764774878179[/C][C]0.0253529549756358[/C][C]0.987323522512182[/C][/ROW]
[ROW][C]21[/C][C]0.00465702070976327[/C][C]0.00931404141952654[/C][C]0.995342979290237[/C][/ROW]
[ROW][C]22[/C][C]0.00113550647740209[/C][C]0.00227101295480419[/C][C]0.998864493522598[/C][/ROW]
[ROW][C]23[/C][C]0.000368244520717436[/C][C]0.000736489041434872[/C][C]0.999631755479283[/C][/ROW]
[ROW][C]24[/C][C]0.000107148114961678[/C][C]0.000214296229923355[/C][C]0.999892851885038[/C][/ROW]
[ROW][C]25[/C][C]0.0116678349238369[/C][C]0.0233356698476737[/C][C]0.988332165076163[/C][/ROW]
[ROW][C]26[/C][C]0.00847493414777761[/C][C]0.0169498682955552[/C][C]0.991525065852222[/C][/ROW]
[ROW][C]27[/C][C]0.00455755196792109[/C][C]0.00911510393584219[/C][C]0.995442448032079[/C][/ROW]
[ROW][C]28[/C][C]0.0100192920011902[/C][C]0.0200385840023804[/C][C]0.98998070799881[/C][/ROW]
[ROW][C]29[/C][C]0.0100851157076389[/C][C]0.0201702314152779[/C][C]0.98991488429236[/C][/ROW]
[ROW][C]30[/C][C]0.00494981167190423[/C][C]0.00989962334380846[/C][C]0.995050188328096[/C][/ROW]
[ROW][C]31[/C][C]0.00495412156091279[/C][C]0.00990824312182557[/C][C]0.995045878439087[/C][/ROW]
[ROW][C]32[/C][C]0.00248555632221438[/C][C]0.00497111264442876[/C][C]0.997514443677786[/C][/ROW]
[ROW][C]33[/C][C]0.00171536397878457[/C][C]0.00343072795756915[/C][C]0.998284636021215[/C][/ROW]
[ROW][C]34[/C][C]0.0115881101011608[/C][C]0.0231762202023217[/C][C]0.98841188989884[/C][/ROW]
[ROW][C]35[/C][C]0.00896295950746945[/C][C]0.0179259190149389[/C][C]0.99103704049253[/C][/ROW]
[ROW][C]36[/C][C]0.0175335068706913[/C][C]0.0350670137413825[/C][C]0.982466493129309[/C][/ROW]
[ROW][C]37[/C][C]0.0117024050689604[/C][C]0.0234048101379207[/C][C]0.98829759493104[/C][/ROW]
[ROW][C]38[/C][C]0.0211017911441281[/C][C]0.0422035822882562[/C][C]0.978898208855872[/C][/ROW]
[ROW][C]39[/C][C]0.0115162988848305[/C][C]0.0230325977696609[/C][C]0.98848370111517[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60542&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60542&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
190.03893191292266280.07786382584532550.961068087077337
200.01267647748781790.02535295497563580.987323522512182
210.004657020709763270.009314041419526540.995342979290237
220.001135506477402090.002271012954804190.998864493522598
230.0003682445207174360.0007364890414348720.999631755479283
240.0001071481149616780.0002142962299233550.999892851885038
250.01166783492383690.02333566984767370.988332165076163
260.008474934147777610.01694986829555520.991525065852222
270.004557551967921090.009115103935842190.995442448032079
280.01001929200119020.02003858400238040.98998070799881
290.01008511570763890.02017023141527790.98991488429236
300.004949811671904230.009899623343808460.995050188328096
310.004954121560912790.009908243121825570.995045878439087
320.002485556322214380.004971112644428760.997514443677786
330.001715363978784570.003430727957569150.998284636021215
340.01158811010116080.02317622020232170.98841188989884
350.008962959507469450.01792591901493890.99103704049253
360.01753350687069130.03506701374138250.982466493129309
370.01170240506896040.02340481013792070.98829759493104
380.02110179114412810.04220358228825620.978898208855872
390.01151629888483050.02303259776966090.98848370111517







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.428571428571429NOK
5% type I error level200.952380952380952NOK
10% type I error level211NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60542&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.428571428571429NOK
5% type I error level200.952380952380952NOK
10% type I error level211NOK



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')
}