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 computationMon, 21 Dec 2009 04:47:07 -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/Dec/21/t1261396102grgn1yclaphgf24.htm/, Retrieved Sun, 05 May 2024 17:20:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70113, Retrieved Sun, 05 May 2024 17:20:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
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:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-21 11:47:07] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
19169	0	20366
13807	0	22782
29743	0	19169
25591	0	13807
29096	0	29743
26482	0	25591
22405	0	29096
27044	0	26482
17970	0	22405
18730	0	27044
19684	0	17970
19785	0	18730
18479	0	19684
10698	0	19785
31956	0	18479
29506	0	10698
34506	0	31956
27165	0	29506
26736	0	34506
23691	0	27165
18157	0	26736
17328	0	23691
18205	0	18157
20995	0	17328
17382	0	18205
9367	0	20995
31124	0	17382
26551	0	9367
30651	0	31124
25859	0	26551
25100	0	30651
25778	0	25859
20418	0	25100
18688	0	25778
20424	0	20418
24776	0	18688
19814	0	20424
12738	0	24776
31566	0	19814
30111	0	12738
30019	0	31566
31934	1	30111
25826	1	30019
26835	1	31934
20205	1	25826
17789	1	26835
20520	1	20205
22518	1	17789
15572	1	20520
11509	1	22518
25447	1	15572
24090	1	11509
27786	1	25447
26195	1	24090
20516	1	27786
22759	1	26195
19028	1	20516
16971	1	22759




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70113&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
Y[t] = + 12622.3004248372 -964.441332928536X[t] + 0.511778704714425Y2[t] -4797.16832219451M1[t] -12461.6239550917M2[t] + 7962.03262905486M3[t] + 8458.52123356123M4[t] + 2300.66498077665M5[t] + 1028.70823520450M6[t] -4052.67073046471M7[t] -1483.48863957148M8[t] -5815.81330573939M9[t] -7647.52117943388M10[t] -2837.64204936683M11[t] + 11.8947607259918t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  12622.3004248372 -964.441332928536X[t] +  0.511778704714425Y2[t] -4797.16832219451M1[t] -12461.6239550917M2[t] +  7962.03262905486M3[t] +  8458.52123356123M4[t] +  2300.66498077665M5[t] +  1028.70823520450M6[t] -4052.67073046471M7[t] -1483.48863957148M8[t] -5815.81330573939M9[t] -7647.52117943388M10[t] -2837.64204936683M11[t] +  11.8947607259918t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70113&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  12622.3004248372 -964.441332928536X[t] +  0.511778704714425Y2[t] -4797.16832219451M1[t] -12461.6239550917M2[t] +  7962.03262905486M3[t] +  8458.52123356123M4[t] +  2300.66498077665M5[t] +  1028.70823520450M6[t] -4052.67073046471M7[t] -1483.48863957148M8[t] -5815.81330573939M9[t] -7647.52117943388M10[t] -2837.64204936683M11[t] +  11.8947607259918t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70113&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70113&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
Y[t] = + 12622.3004248372 -964.441332928536X[t] + 0.511778704714425Y2[t] -4797.16832219451M1[t] -12461.6239550917M2[t] + 7962.03262905486M3[t] + 8458.52123356123M4[t] + 2300.66498077665M5[t] + 1028.70823520450M6[t] -4052.67073046471M7[t] -1483.48863957148M8[t] -5815.81330573939M9[t] -7647.52117943388M10[t] -2837.64204936683M11[t] + 11.8947607259918t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)12622.30042483722589.1926354.8751.5e-058e-06
X-964.441332928536846.849829-1.13890.2610680.130534
Y20.5117787047144250.1286063.97940.0002610.000131
M1-4797.168322194511205.962828-3.97790.0002620.000131
M2-12461.62395509171291.873158-9.646200
M37962.032629054861185.0902716.718500
M48458.521233561231453.5151655.81941e-060
M52300.664980776651925.1991831.1950.2386260.119313
M61028.708235204501671.0087890.61560.541390.270695
M7-4052.670730464711985.499802-2.04110.0474050.023703
M8-1483.488639571481702.747711-0.87120.3884660.194233
M9-5815.813305739391421.664046-4.09080.0001859.3e-05
M10-7647.521179433881504.749652-5.08238e-064e-06
M11-2837.642049366831255.725187-2.25980.0289580.014479
t11.894760725991822.7638090.52250.6039840.301992

\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) & 12622.3004248372 & 2589.192635 & 4.875 & 1.5e-05 & 8e-06 \tabularnewline
X & -964.441332928536 & 846.849829 & -1.1389 & 0.261068 & 0.130534 \tabularnewline
Y2 & 0.511778704714425 & 0.128606 & 3.9794 & 0.000261 & 0.000131 \tabularnewline
M1 & -4797.16832219451 & 1205.962828 & -3.9779 & 0.000262 & 0.000131 \tabularnewline
M2 & -12461.6239550917 & 1291.873158 & -9.6462 & 0 & 0 \tabularnewline
M3 & 7962.03262905486 & 1185.090271 & 6.7185 & 0 & 0 \tabularnewline
M4 & 8458.52123356123 & 1453.515165 & 5.8194 & 1e-06 & 0 \tabularnewline
M5 & 2300.66498077665 & 1925.199183 & 1.195 & 0.238626 & 0.119313 \tabularnewline
M6 & 1028.70823520450 & 1671.008789 & 0.6156 & 0.54139 & 0.270695 \tabularnewline
M7 & -4052.67073046471 & 1985.499802 & -2.0411 & 0.047405 & 0.023703 \tabularnewline
M8 & -1483.48863957148 & 1702.747711 & -0.8712 & 0.388466 & 0.194233 \tabularnewline
M9 & -5815.81330573939 & 1421.664046 & -4.0908 & 0.000185 & 9.3e-05 \tabularnewline
M10 & -7647.52117943388 & 1504.749652 & -5.0823 & 8e-06 & 4e-06 \tabularnewline
M11 & -2837.64204936683 & 1255.725187 & -2.2598 & 0.028958 & 0.014479 \tabularnewline
t & 11.8947607259918 & 22.763809 & 0.5225 & 0.603984 & 0.301992 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70113&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]12622.3004248372[/C][C]2589.192635[/C][C]4.875[/C][C]1.5e-05[/C][C]8e-06[/C][/ROW]
[ROW][C]X[/C][C]-964.441332928536[/C][C]846.849829[/C][C]-1.1389[/C][C]0.261068[/C][C]0.130534[/C][/ROW]
[ROW][C]Y2[/C][C]0.511778704714425[/C][C]0.128606[/C][C]3.9794[/C][C]0.000261[/C][C]0.000131[/C][/ROW]
[ROW][C]M1[/C][C]-4797.16832219451[/C][C]1205.962828[/C][C]-3.9779[/C][C]0.000262[/C][C]0.000131[/C][/ROW]
[ROW][C]M2[/C][C]-12461.6239550917[/C][C]1291.873158[/C][C]-9.6462[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]7962.03262905486[/C][C]1185.090271[/C][C]6.7185[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]8458.52123356123[/C][C]1453.515165[/C][C]5.8194[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]2300.66498077665[/C][C]1925.199183[/C][C]1.195[/C][C]0.238626[/C][C]0.119313[/C][/ROW]
[ROW][C]M6[/C][C]1028.70823520450[/C][C]1671.008789[/C][C]0.6156[/C][C]0.54139[/C][C]0.270695[/C][/ROW]
[ROW][C]M7[/C][C]-4052.67073046471[/C][C]1985.499802[/C][C]-2.0411[/C][C]0.047405[/C][C]0.023703[/C][/ROW]
[ROW][C]M8[/C][C]-1483.48863957148[/C][C]1702.747711[/C][C]-0.8712[/C][C]0.388466[/C][C]0.194233[/C][/ROW]
[ROW][C]M9[/C][C]-5815.81330573939[/C][C]1421.664046[/C][C]-4.0908[/C][C]0.000185[/C][C]9.3e-05[/C][/ROW]
[ROW][C]M10[/C][C]-7647.52117943388[/C][C]1504.749652[/C][C]-5.0823[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M11[/C][C]-2837.64204936683[/C][C]1255.725187[/C][C]-2.2598[/C][C]0.028958[/C][C]0.014479[/C][/ROW]
[ROW][C]t[/C][C]11.8947607259918[/C][C]22.763809[/C][C]0.5225[/C][C]0.603984[/C][C]0.301992[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70113&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70113&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)12622.30042483722589.1926354.8751.5e-058e-06
X-964.441332928536846.849829-1.13890.2610680.130534
Y20.5117787047144250.1286063.97940.0002610.000131
M1-4797.168322194511205.962828-3.97790.0002620.000131
M2-12461.62395509171291.873158-9.646200
M37962.032629054861185.0902716.718500
M48458.521233561231453.5151655.81941e-060
M52300.664980776651925.1991831.1950.2386260.119313
M61028.708235204501671.0087890.61560.541390.270695
M7-4052.670730464711985.499802-2.04110.0474050.023703
M8-1483.488639571481702.747711-0.87120.3884660.194233
M9-5815.813305739391421.664046-4.09080.0001859.3e-05
M10-7647.521179433881504.749652-5.08238e-064e-06
M11-2837.642049366831255.725187-2.25980.0289580.014479
t11.894760725991822.7638090.52250.6039840.301992







Multiple Linear Regression - Regression Statistics
Multiple R0.965018983561122
R-squared0.93126163863334
Adjusted R-squared0.90888170702559
F-TEST (value)41.6114604349759
F-TEST (DF numerator)14
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1765.33289651167
Sum Squared Residuals134005210.126770

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.965018983561122 \tabularnewline
R-squared & 0.93126163863334 \tabularnewline
Adjusted R-squared & 0.90888170702559 \tabularnewline
F-TEST (value) & 41.6114604349759 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1765.33289651167 \tabularnewline
Sum Squared Residuals & 134005210.126770 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70113&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.965018983561122[/C][/ROW]
[ROW][C]R-squared[/C][C]0.93126163863334[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.90888170702559[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]41.6114604349759[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1765.33289651167[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]134005210.126770[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70113&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70113&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.965018983561122
R-squared0.93126163863334
Adjusted R-squared0.90888170702559
F-TEST (value)41.6114604349759
F-TEST (DF numerator)14
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1765.33289651167
Sum Squared Residuals134005210.126770







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11916918259.9119635826909.08803641736
21380711843.80844200151963.19155799852
32974330430.3033267408-687.303326740833
42559128194.5292772944-2603.52927729443
52909630204.2732235649-1108.27322356492
62648226819.3060567445-337.306056744478
72240523543.6062118253-1138.60621182532
82704424786.89352932102257.10647067896
91797018379.9418447584-409.941844758405
101873018934.2701429601-204.270142960129
111968419112.1640671745571.83593282553
121978522350.6526928503-2565.65269285026
131847918053.6160156793425.383984320706
141069810452.7447926842245.255207315755
153195630219.91314919981736.08685080022
162950626746.14641304922759.85358695081
173450631479.57662580993026.42337419014
182716528965.6568144134-1800.65681441335
192673626455.0661330423280.933866957746
202369125279.1755133529-1588.17551335289
211815720739.1925435885-2582.19254358848
221732817361.0132747646-33.0132747645572
231820519350.6038136680-1145.60381366797
242099521775.8760775525-780.876077552536
251738217439.4324401186-57.4324401185665
26936711214.7341541006-1847.7341541006
273112429801.22903884001322.77096116005
282655126207.7060857862343.293914213805
293065131196.5138721994-545.513872199357
302585927596.0878706941-1737.08787069413
312510024624.8963550800475.103644919953
322577824753.52965370781024.47034629225
332041820044.6597113876373.340288612422
341868818571.8325602155116.167439784537
352042420650.4725937392-226.472593739185
362477622614.63224467612161.36775532395
371981418717.80651459181096.19348540822
381273813292.5065653377-554.506565337742
393156631188.6119774173377.388022582666
403011128075.64922809042035.35077190958
413001931565.457188395-1546.45718839504
423193428596.31585526083337.68414473916
432582623479.74800948392346.25199051610
442683527040.8810806313-205.88108063125
452020519594.5068467936610.493153206382
461778918291.0784468820-502.078446881973
472052019719.7595254184800.240474581624
482251821332.83898492111185.16101507885
491557217945.2330660277-2373.23306602772
501150911315.2060458759193.793954124068
512544728195.9425078021-2748.94250780211
522409026624.9689957798-2534.96899577976
532778627612.1790900308173.820909969170
542619525657.6334028872537.366597112806
552051622479.6832905685-1963.68329056848
562275924246.5202229871-1487.52022298707
571902817019.69905347192008.30094652808
581697116347.8055751779623.194424822123

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19169 & 18259.9119635826 & 909.08803641736 \tabularnewline
2 & 13807 & 11843.8084420015 & 1963.19155799852 \tabularnewline
3 & 29743 & 30430.3033267408 & -687.303326740833 \tabularnewline
4 & 25591 & 28194.5292772944 & -2603.52927729443 \tabularnewline
5 & 29096 & 30204.2732235649 & -1108.27322356492 \tabularnewline
6 & 26482 & 26819.3060567445 & -337.306056744478 \tabularnewline
7 & 22405 & 23543.6062118253 & -1138.60621182532 \tabularnewline
8 & 27044 & 24786.8935293210 & 2257.10647067896 \tabularnewline
9 & 17970 & 18379.9418447584 & -409.941844758405 \tabularnewline
10 & 18730 & 18934.2701429601 & -204.270142960129 \tabularnewline
11 & 19684 & 19112.1640671745 & 571.83593282553 \tabularnewline
12 & 19785 & 22350.6526928503 & -2565.65269285026 \tabularnewline
13 & 18479 & 18053.6160156793 & 425.383984320706 \tabularnewline
14 & 10698 & 10452.7447926842 & 245.255207315755 \tabularnewline
15 & 31956 & 30219.9131491998 & 1736.08685080022 \tabularnewline
16 & 29506 & 26746.1464130492 & 2759.85358695081 \tabularnewline
17 & 34506 & 31479.5766258099 & 3026.42337419014 \tabularnewline
18 & 27165 & 28965.6568144134 & -1800.65681441335 \tabularnewline
19 & 26736 & 26455.0661330423 & 280.933866957746 \tabularnewline
20 & 23691 & 25279.1755133529 & -1588.17551335289 \tabularnewline
21 & 18157 & 20739.1925435885 & -2582.19254358848 \tabularnewline
22 & 17328 & 17361.0132747646 & -33.0132747645572 \tabularnewline
23 & 18205 & 19350.6038136680 & -1145.60381366797 \tabularnewline
24 & 20995 & 21775.8760775525 & -780.876077552536 \tabularnewline
25 & 17382 & 17439.4324401186 & -57.4324401185665 \tabularnewline
26 & 9367 & 11214.7341541006 & -1847.7341541006 \tabularnewline
27 & 31124 & 29801.2290388400 & 1322.77096116005 \tabularnewline
28 & 26551 & 26207.7060857862 & 343.293914213805 \tabularnewline
29 & 30651 & 31196.5138721994 & -545.513872199357 \tabularnewline
30 & 25859 & 27596.0878706941 & -1737.08787069413 \tabularnewline
31 & 25100 & 24624.8963550800 & 475.103644919953 \tabularnewline
32 & 25778 & 24753.5296537078 & 1024.47034629225 \tabularnewline
33 & 20418 & 20044.6597113876 & 373.340288612422 \tabularnewline
34 & 18688 & 18571.8325602155 & 116.167439784537 \tabularnewline
35 & 20424 & 20650.4725937392 & -226.472593739185 \tabularnewline
36 & 24776 & 22614.6322446761 & 2161.36775532395 \tabularnewline
37 & 19814 & 18717.8065145918 & 1096.19348540822 \tabularnewline
38 & 12738 & 13292.5065653377 & -554.506565337742 \tabularnewline
39 & 31566 & 31188.6119774173 & 377.388022582666 \tabularnewline
40 & 30111 & 28075.6492280904 & 2035.35077190958 \tabularnewline
41 & 30019 & 31565.457188395 & -1546.45718839504 \tabularnewline
42 & 31934 & 28596.3158552608 & 3337.68414473916 \tabularnewline
43 & 25826 & 23479.7480094839 & 2346.25199051610 \tabularnewline
44 & 26835 & 27040.8810806313 & -205.88108063125 \tabularnewline
45 & 20205 & 19594.5068467936 & 610.493153206382 \tabularnewline
46 & 17789 & 18291.0784468820 & -502.078446881973 \tabularnewline
47 & 20520 & 19719.7595254184 & 800.240474581624 \tabularnewline
48 & 22518 & 21332.8389849211 & 1185.16101507885 \tabularnewline
49 & 15572 & 17945.2330660277 & -2373.23306602772 \tabularnewline
50 & 11509 & 11315.2060458759 & 193.793954124068 \tabularnewline
51 & 25447 & 28195.9425078021 & -2748.94250780211 \tabularnewline
52 & 24090 & 26624.9689957798 & -2534.96899577976 \tabularnewline
53 & 27786 & 27612.1790900308 & 173.820909969170 \tabularnewline
54 & 26195 & 25657.6334028872 & 537.366597112806 \tabularnewline
55 & 20516 & 22479.6832905685 & -1963.68329056848 \tabularnewline
56 & 22759 & 24246.5202229871 & -1487.52022298707 \tabularnewline
57 & 19028 & 17019.6990534719 & 2008.30094652808 \tabularnewline
58 & 16971 & 16347.8055751779 & 623.194424822123 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70113&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]19169[/C][C]18259.9119635826[/C][C]909.08803641736[/C][/ROW]
[ROW][C]2[/C][C]13807[/C][C]11843.8084420015[/C][C]1963.19155799852[/C][/ROW]
[ROW][C]3[/C][C]29743[/C][C]30430.3033267408[/C][C]-687.303326740833[/C][/ROW]
[ROW][C]4[/C][C]25591[/C][C]28194.5292772944[/C][C]-2603.52927729443[/C][/ROW]
[ROW][C]5[/C][C]29096[/C][C]30204.2732235649[/C][C]-1108.27322356492[/C][/ROW]
[ROW][C]6[/C][C]26482[/C][C]26819.3060567445[/C][C]-337.306056744478[/C][/ROW]
[ROW][C]7[/C][C]22405[/C][C]23543.6062118253[/C][C]-1138.60621182532[/C][/ROW]
[ROW][C]8[/C][C]27044[/C][C]24786.8935293210[/C][C]2257.10647067896[/C][/ROW]
[ROW][C]9[/C][C]17970[/C][C]18379.9418447584[/C][C]-409.941844758405[/C][/ROW]
[ROW][C]10[/C][C]18730[/C][C]18934.2701429601[/C][C]-204.270142960129[/C][/ROW]
[ROW][C]11[/C][C]19684[/C][C]19112.1640671745[/C][C]571.83593282553[/C][/ROW]
[ROW][C]12[/C][C]19785[/C][C]22350.6526928503[/C][C]-2565.65269285026[/C][/ROW]
[ROW][C]13[/C][C]18479[/C][C]18053.6160156793[/C][C]425.383984320706[/C][/ROW]
[ROW][C]14[/C][C]10698[/C][C]10452.7447926842[/C][C]245.255207315755[/C][/ROW]
[ROW][C]15[/C][C]31956[/C][C]30219.9131491998[/C][C]1736.08685080022[/C][/ROW]
[ROW][C]16[/C][C]29506[/C][C]26746.1464130492[/C][C]2759.85358695081[/C][/ROW]
[ROW][C]17[/C][C]34506[/C][C]31479.5766258099[/C][C]3026.42337419014[/C][/ROW]
[ROW][C]18[/C][C]27165[/C][C]28965.6568144134[/C][C]-1800.65681441335[/C][/ROW]
[ROW][C]19[/C][C]26736[/C][C]26455.0661330423[/C][C]280.933866957746[/C][/ROW]
[ROW][C]20[/C][C]23691[/C][C]25279.1755133529[/C][C]-1588.17551335289[/C][/ROW]
[ROW][C]21[/C][C]18157[/C][C]20739.1925435885[/C][C]-2582.19254358848[/C][/ROW]
[ROW][C]22[/C][C]17328[/C][C]17361.0132747646[/C][C]-33.0132747645572[/C][/ROW]
[ROW][C]23[/C][C]18205[/C][C]19350.6038136680[/C][C]-1145.60381366797[/C][/ROW]
[ROW][C]24[/C][C]20995[/C][C]21775.8760775525[/C][C]-780.876077552536[/C][/ROW]
[ROW][C]25[/C][C]17382[/C][C]17439.4324401186[/C][C]-57.4324401185665[/C][/ROW]
[ROW][C]26[/C][C]9367[/C][C]11214.7341541006[/C][C]-1847.7341541006[/C][/ROW]
[ROW][C]27[/C][C]31124[/C][C]29801.2290388400[/C][C]1322.77096116005[/C][/ROW]
[ROW][C]28[/C][C]26551[/C][C]26207.7060857862[/C][C]343.293914213805[/C][/ROW]
[ROW][C]29[/C][C]30651[/C][C]31196.5138721994[/C][C]-545.513872199357[/C][/ROW]
[ROW][C]30[/C][C]25859[/C][C]27596.0878706941[/C][C]-1737.08787069413[/C][/ROW]
[ROW][C]31[/C][C]25100[/C][C]24624.8963550800[/C][C]475.103644919953[/C][/ROW]
[ROW][C]32[/C][C]25778[/C][C]24753.5296537078[/C][C]1024.47034629225[/C][/ROW]
[ROW][C]33[/C][C]20418[/C][C]20044.6597113876[/C][C]373.340288612422[/C][/ROW]
[ROW][C]34[/C][C]18688[/C][C]18571.8325602155[/C][C]116.167439784537[/C][/ROW]
[ROW][C]35[/C][C]20424[/C][C]20650.4725937392[/C][C]-226.472593739185[/C][/ROW]
[ROW][C]36[/C][C]24776[/C][C]22614.6322446761[/C][C]2161.36775532395[/C][/ROW]
[ROW][C]37[/C][C]19814[/C][C]18717.8065145918[/C][C]1096.19348540822[/C][/ROW]
[ROW][C]38[/C][C]12738[/C][C]13292.5065653377[/C][C]-554.506565337742[/C][/ROW]
[ROW][C]39[/C][C]31566[/C][C]31188.6119774173[/C][C]377.388022582666[/C][/ROW]
[ROW][C]40[/C][C]30111[/C][C]28075.6492280904[/C][C]2035.35077190958[/C][/ROW]
[ROW][C]41[/C][C]30019[/C][C]31565.457188395[/C][C]-1546.45718839504[/C][/ROW]
[ROW][C]42[/C][C]31934[/C][C]28596.3158552608[/C][C]3337.68414473916[/C][/ROW]
[ROW][C]43[/C][C]25826[/C][C]23479.7480094839[/C][C]2346.25199051610[/C][/ROW]
[ROW][C]44[/C][C]26835[/C][C]27040.8810806313[/C][C]-205.88108063125[/C][/ROW]
[ROW][C]45[/C][C]20205[/C][C]19594.5068467936[/C][C]610.493153206382[/C][/ROW]
[ROW][C]46[/C][C]17789[/C][C]18291.0784468820[/C][C]-502.078446881973[/C][/ROW]
[ROW][C]47[/C][C]20520[/C][C]19719.7595254184[/C][C]800.240474581624[/C][/ROW]
[ROW][C]48[/C][C]22518[/C][C]21332.8389849211[/C][C]1185.16101507885[/C][/ROW]
[ROW][C]49[/C][C]15572[/C][C]17945.2330660277[/C][C]-2373.23306602772[/C][/ROW]
[ROW][C]50[/C][C]11509[/C][C]11315.2060458759[/C][C]193.793954124068[/C][/ROW]
[ROW][C]51[/C][C]25447[/C][C]28195.9425078021[/C][C]-2748.94250780211[/C][/ROW]
[ROW][C]52[/C][C]24090[/C][C]26624.9689957798[/C][C]-2534.96899577976[/C][/ROW]
[ROW][C]53[/C][C]27786[/C][C]27612.1790900308[/C][C]173.820909969170[/C][/ROW]
[ROW][C]54[/C][C]26195[/C][C]25657.6334028872[/C][C]537.366597112806[/C][/ROW]
[ROW][C]55[/C][C]20516[/C][C]22479.6832905685[/C][C]-1963.68329056848[/C][/ROW]
[ROW][C]56[/C][C]22759[/C][C]24246.5202229871[/C][C]-1487.52022298707[/C][/ROW]
[ROW][C]57[/C][C]19028[/C][C]17019.6990534719[/C][C]2008.30094652808[/C][/ROW]
[ROW][C]58[/C][C]16971[/C][C]16347.8055751779[/C][C]623.194424822123[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70113&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70113&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
11916918259.9119635826909.08803641736
21380711843.80844200151963.19155799852
32974330430.3033267408-687.303326740833
42559128194.5292772944-2603.52927729443
52909630204.2732235649-1108.27322356492
62648226819.3060567445-337.306056744478
72240523543.6062118253-1138.60621182532
82704424786.89352932102257.10647067896
91797018379.9418447584-409.941844758405
101873018934.2701429601-204.270142960129
111968419112.1640671745571.83593282553
121978522350.6526928503-2565.65269285026
131847918053.6160156793425.383984320706
141069810452.7447926842245.255207315755
153195630219.91314919981736.08685080022
162950626746.14641304922759.85358695081
173450631479.57662580993026.42337419014
182716528965.6568144134-1800.65681441335
192673626455.0661330423280.933866957746
202369125279.1755133529-1588.17551335289
211815720739.1925435885-2582.19254358848
221732817361.0132747646-33.0132747645572
231820519350.6038136680-1145.60381366797
242099521775.8760775525-780.876077552536
251738217439.4324401186-57.4324401185665
26936711214.7341541006-1847.7341541006
273112429801.22903884001322.77096116005
282655126207.7060857862343.293914213805
293065131196.5138721994-545.513872199357
302585927596.0878706941-1737.08787069413
312510024624.8963550800475.103644919953
322577824753.52965370781024.47034629225
332041820044.6597113876373.340288612422
341868818571.8325602155116.167439784537
352042420650.4725937392-226.472593739185
362477622614.63224467612161.36775532395
371981418717.80651459181096.19348540822
381273813292.5065653377-554.506565337742
393156631188.6119774173377.388022582666
403011128075.64922809042035.35077190958
413001931565.457188395-1546.45718839504
423193428596.31585526083337.68414473916
432582623479.74800948392346.25199051610
442683527040.8810806313-205.88108063125
452020519594.5068467936610.493153206382
461778918291.0784468820-502.078446881973
472052019719.7595254184800.240474581624
482251821332.83898492111185.16101507885
491557217945.2330660277-2373.23306602772
501150911315.2060458759193.793954124068
512544728195.9425078021-2748.94250780211
522409026624.9689957798-2534.96899577976
532778627612.1790900308173.820909969170
542619525657.6334028872537.366597112806
552051622479.6832905685-1963.68329056848
562275924246.5202229871-1487.52022298707
571902817019.69905347192008.30094652808
581697116347.8055751779623.194424822123







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.9223151657952050.1553696684095890.0776848342047946
190.8514909780424370.2970180439151260.148509021957563
200.911939949859540.1761201002809200.0880600501404602
210.9163221107521240.1673557784957530.0836778892478764
220.8625665046728120.2748669906543760.137433495327188
230.8208086677791930.3583826644416140.179191332220807
240.7894614514530960.4210770970938080.210538548546904
250.7189968842721880.5620062314556240.281003115727812
260.7407434365918430.5185131268163140.259256563408157
270.6797078751663630.6405842496672740.320292124833637
280.5762135950200980.8475728099598030.423786404979902
290.4836511251046010.9673022502092020.516348874895399
300.6100543950579680.7798912098840640.389945604942032
310.5221630051329340.9556739897341310.477836994867066
320.4168606759108890.8337213518217780.583139324089111
330.4260938261458770.8521876522917540.573906173854123
340.4097413597833410.8194827195666830.590258640216659
350.4592750964796410.9185501929592830.540724903520359
360.4886111416772330.9772222833544660.511388858322767
370.3621120188808920.7242240377617830.637887981119108
380.4425169877251390.8850339754502790.557483012274861
390.3643548330211020.7287096660422050.635645166978898
400.2798057653715530.5596115307431070.720194234628447

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.922315165795205 & 0.155369668409589 & 0.0776848342047946 \tabularnewline
19 & 0.851490978042437 & 0.297018043915126 & 0.148509021957563 \tabularnewline
20 & 0.91193994985954 & 0.176120100280920 & 0.0880600501404602 \tabularnewline
21 & 0.916322110752124 & 0.167355778495753 & 0.0836778892478764 \tabularnewline
22 & 0.862566504672812 & 0.274866990654376 & 0.137433495327188 \tabularnewline
23 & 0.820808667779193 & 0.358382664441614 & 0.179191332220807 \tabularnewline
24 & 0.789461451453096 & 0.421077097093808 & 0.210538548546904 \tabularnewline
25 & 0.718996884272188 & 0.562006231455624 & 0.281003115727812 \tabularnewline
26 & 0.740743436591843 & 0.518513126816314 & 0.259256563408157 \tabularnewline
27 & 0.679707875166363 & 0.640584249667274 & 0.320292124833637 \tabularnewline
28 & 0.576213595020098 & 0.847572809959803 & 0.423786404979902 \tabularnewline
29 & 0.483651125104601 & 0.967302250209202 & 0.516348874895399 \tabularnewline
30 & 0.610054395057968 & 0.779891209884064 & 0.389945604942032 \tabularnewline
31 & 0.522163005132934 & 0.955673989734131 & 0.477836994867066 \tabularnewline
32 & 0.416860675910889 & 0.833721351821778 & 0.583139324089111 \tabularnewline
33 & 0.426093826145877 & 0.852187652291754 & 0.573906173854123 \tabularnewline
34 & 0.409741359783341 & 0.819482719566683 & 0.590258640216659 \tabularnewline
35 & 0.459275096479641 & 0.918550192959283 & 0.540724903520359 \tabularnewline
36 & 0.488611141677233 & 0.977222283354466 & 0.511388858322767 \tabularnewline
37 & 0.362112018880892 & 0.724224037761783 & 0.637887981119108 \tabularnewline
38 & 0.442516987725139 & 0.885033975450279 & 0.557483012274861 \tabularnewline
39 & 0.364354833021102 & 0.728709666042205 & 0.635645166978898 \tabularnewline
40 & 0.279805765371553 & 0.559611530743107 & 0.720194234628447 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70113&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]18[/C][C]0.922315165795205[/C][C]0.155369668409589[/C][C]0.0776848342047946[/C][/ROW]
[ROW][C]19[/C][C]0.851490978042437[/C][C]0.297018043915126[/C][C]0.148509021957563[/C][/ROW]
[ROW][C]20[/C][C]0.91193994985954[/C][C]0.176120100280920[/C][C]0.0880600501404602[/C][/ROW]
[ROW][C]21[/C][C]0.916322110752124[/C][C]0.167355778495753[/C][C]0.0836778892478764[/C][/ROW]
[ROW][C]22[/C][C]0.862566504672812[/C][C]0.274866990654376[/C][C]0.137433495327188[/C][/ROW]
[ROW][C]23[/C][C]0.820808667779193[/C][C]0.358382664441614[/C][C]0.179191332220807[/C][/ROW]
[ROW][C]24[/C][C]0.789461451453096[/C][C]0.421077097093808[/C][C]0.210538548546904[/C][/ROW]
[ROW][C]25[/C][C]0.718996884272188[/C][C]0.562006231455624[/C][C]0.281003115727812[/C][/ROW]
[ROW][C]26[/C][C]0.740743436591843[/C][C]0.518513126816314[/C][C]0.259256563408157[/C][/ROW]
[ROW][C]27[/C][C]0.679707875166363[/C][C]0.640584249667274[/C][C]0.320292124833637[/C][/ROW]
[ROW][C]28[/C][C]0.576213595020098[/C][C]0.847572809959803[/C][C]0.423786404979902[/C][/ROW]
[ROW][C]29[/C][C]0.483651125104601[/C][C]0.967302250209202[/C][C]0.516348874895399[/C][/ROW]
[ROW][C]30[/C][C]0.610054395057968[/C][C]0.779891209884064[/C][C]0.389945604942032[/C][/ROW]
[ROW][C]31[/C][C]0.522163005132934[/C][C]0.955673989734131[/C][C]0.477836994867066[/C][/ROW]
[ROW][C]32[/C][C]0.416860675910889[/C][C]0.833721351821778[/C][C]0.583139324089111[/C][/ROW]
[ROW][C]33[/C][C]0.426093826145877[/C][C]0.852187652291754[/C][C]0.573906173854123[/C][/ROW]
[ROW][C]34[/C][C]0.409741359783341[/C][C]0.819482719566683[/C][C]0.590258640216659[/C][/ROW]
[ROW][C]35[/C][C]0.459275096479641[/C][C]0.918550192959283[/C][C]0.540724903520359[/C][/ROW]
[ROW][C]36[/C][C]0.488611141677233[/C][C]0.977222283354466[/C][C]0.511388858322767[/C][/ROW]
[ROW][C]37[/C][C]0.362112018880892[/C][C]0.724224037761783[/C][C]0.637887981119108[/C][/ROW]
[ROW][C]38[/C][C]0.442516987725139[/C][C]0.885033975450279[/C][C]0.557483012274861[/C][/ROW]
[ROW][C]39[/C][C]0.364354833021102[/C][C]0.728709666042205[/C][C]0.635645166978898[/C][/ROW]
[ROW][C]40[/C][C]0.279805765371553[/C][C]0.559611530743107[/C][C]0.720194234628447[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70113&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70113&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
180.9223151657952050.1553696684095890.0776848342047946
190.8514909780424370.2970180439151260.148509021957563
200.911939949859540.1761201002809200.0880600501404602
210.9163221107521240.1673557784957530.0836778892478764
220.8625665046728120.2748669906543760.137433495327188
230.8208086677791930.3583826644416140.179191332220807
240.7894614514530960.4210770970938080.210538548546904
250.7189968842721880.5620062314556240.281003115727812
260.7407434365918430.5185131268163140.259256563408157
270.6797078751663630.6405842496672740.320292124833637
280.5762135950200980.8475728099598030.423786404979902
290.4836511251046010.9673022502092020.516348874895399
300.6100543950579680.7798912098840640.389945604942032
310.5221630051329340.9556739897341310.477836994867066
320.4168606759108890.8337213518217780.583139324089111
330.4260938261458770.8521876522917540.573906173854123
340.4097413597833410.8194827195666830.590258640216659
350.4592750964796410.9185501929592830.540724903520359
360.4886111416772330.9772222833544660.511388858322767
370.3621120188808920.7242240377617830.637887981119108
380.4425169877251390.8850339754502790.557483012274861
390.3643548330211020.7287096660422050.635645166978898
400.2798057653715530.5596115307431070.720194234628447







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70113&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70113&T=6

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 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')
}