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 computationSun, 23 Nov 2008 11:49:23 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/23/t122746620340rpkv70yxs4cqd.htm/, Retrieved Sun, 19 May 2024 09:16:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25316, Retrieved Sun, 19 May 2024 09:16:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact127
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Q3_seatbelt law] [2008-11-23 18:49:23] [a9e6d7cd6e144e8b311d9f96a24c5a25] [Current]
Feedback Forum

Post a new message
Dataseries X:
127059	0
122860	0
117702	0
113537	0
108366	0
111078	0
150739	1
159129	0
157928	0
147768	0
137507	0
136919	0
136151	0
133001	0
125554	0
119647	0
114158	0
116193	0
152803	1
161761	0
160942	0
149470	0
139208	0
134588	0
130322	0
126611	0
122401	0
117352	0
112135	0
112879	0
148729	1
157230	0
157221	0
146681	0
136524	0
132111	0
125326	0
122716	0
116615	0
113719	0
110737	0
112093	0
143565	1
149946	0
149147	0
134339	0
122683	0
115614	0
116566	0
111272	0
104609	0
101802	0
94542	0
93051	0
124129	1
130374	0
123946	0
114971	0
105531	0
104919	0




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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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
X[t] = + 141817.102380952 + 21159.6Y[t] -2723.10334821429Q1[t] -6988.5355654762Q2[t] -7448.5677827381Q3[t] -372.101116071428t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  141817.102380952 +  21159.6Y[t] -2723.10334821429Q1[t] -6988.5355654762Q2[t] -7448.5677827381Q3[t] -372.101116071428t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25316&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  141817.102380952 +  21159.6Y[t] -2723.10334821429Q1[t] -6988.5355654762Q2[t] -7448.5677827381Q3[t] -372.101116071428t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25316&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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
X[t] = + 141817.102380952 + 21159.6Y[t] -2723.10334821429Q1[t] -6988.5355654762Q2[t] -7448.5677827381Q3[t] -372.101116071428t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)141817.1023809525728.1844824.757800
Y21159.68916.6269462.3730.0212310.010616
Q1-2723.103348214295955.602983-0.45720.6493370.324669
Q2-6988.53556547625949.39168-1.17470.2452830.122642
Q3-7448.56778273816647.173856-1.12060.2674330.133717
t-372.101116071428121.61047-3.05980.0034450.001723

\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) & 141817.102380952 & 5728.18448 & 24.7578 & 0 & 0 \tabularnewline
Y & 21159.6 & 8916.626946 & 2.373 & 0.021231 & 0.010616 \tabularnewline
Q1 & -2723.10334821429 & 5955.602983 & -0.4572 & 0.649337 & 0.324669 \tabularnewline
Q2 & -6988.5355654762 & 5949.39168 & -1.1747 & 0.245283 & 0.122642 \tabularnewline
Q3 & -7448.5677827381 & 6647.173856 & -1.1206 & 0.267433 & 0.133717 \tabularnewline
t & -372.101116071428 & 121.61047 & -3.0598 & 0.003445 & 0.001723 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25316&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]141817.102380952[/C][C]5728.18448[/C][C]24.7578[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y[/C][C]21159.6[/C][C]8916.626946[/C][C]2.373[/C][C]0.021231[/C][C]0.010616[/C][/ROW]
[ROW][C]Q1[/C][C]-2723.10334821429[/C][C]5955.602983[/C][C]-0.4572[/C][C]0.649337[/C][C]0.324669[/C][/ROW]
[ROW][C]Q2[/C][C]-6988.5355654762[/C][C]5949.39168[/C][C]-1.1747[/C][C]0.245283[/C][C]0.122642[/C][/ROW]
[ROW][C]Q3[/C][C]-7448.5677827381[/C][C]6647.173856[/C][C]-1.1206[/C][C]0.267433[/C][C]0.133717[/C][/ROW]
[ROW][C]t[/C][C]-372.101116071428[/C][C]121.61047[/C][C]-3.0598[/C][C]0.003445[/C][C]0.001723[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25316&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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)141817.1023809525728.1844824.757800
Y21159.68916.6269462.3730.0212310.010616
Q1-2723.103348214295955.602983-0.45720.6493370.324669
Q2-6988.53556547625949.39168-1.17470.2452830.122642
Q3-7448.56778273816647.173856-1.12060.2674330.133717
t-372.101116071428121.61047-3.05980.0034450.001723







Multiple Linear Regression - Regression Statistics
Multiple R0.483434411284219
R-squared0.233708830013720
Adjusted R-squared0.162755943903879
F-TEST (value)3.2938593879313
F-TEST (DF numerator)5
F-TEST (DF denominator)54
p-value0.0114354385753951
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16279.4590509691
Sum Squared Residuals14311122497.5777

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.483434411284219 \tabularnewline
R-squared & 0.233708830013720 \tabularnewline
Adjusted R-squared & 0.162755943903879 \tabularnewline
F-TEST (value) & 3.2938593879313 \tabularnewline
F-TEST (DF numerator) & 5 \tabularnewline
F-TEST (DF denominator) & 54 \tabularnewline
p-value & 0.0114354385753951 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16279.4590509691 \tabularnewline
Sum Squared Residuals & 14311122497.5777 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25316&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.483434411284219[/C][/ROW]
[ROW][C]R-squared[/C][C]0.233708830013720[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.162755943903879[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.2938593879313[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]5[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]54[/C][/ROW]
[ROW][C]p-value[/C][C]0.0114354385753951[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16279.4590509691[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]14311122497.5777[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25316&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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.483434411284219
R-squared0.233708830013720
Adjusted R-squared0.162755943903879
F-TEST (value)3.2938593879313
F-TEST (DF numerator)5
F-TEST (DF denominator)54
p-value0.0114354385753951
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16279.4590509691
Sum Squared Residuals14311122497.5777







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1127059138721.897916667-11662.8979166667
2122860134084.364583333-11224.3645833334
3117702133252.23125-15550.2312500000
4113537140328.697916667-26791.6979166667
5108366137233.493452381-28867.4934523809
6111078132595.960119048-21517.9601190476
7150739152923.426785714-2184.42678571428
8159129138840.29345238120288.7065476191
9157928135745.08898809522182.9110119048
10147768131107.55565476216660.4443452381
11137507130275.4223214297231.57767857144
12136919137351.888988095-432.888988095244
13136151134256.6845238101894.31547619049
14133001129619.1511904763381.84880952382
15125554128787.017857143-3233.01785714285
16119647135863.484523810-16216.4845238095
17114158132768.280059524-18610.2800595238
18116193128130.746726190-11937.7467261905
19152803148458.2133928574344.78660714286
20161761134375.08005952427385.9199404762
21160942131279.87559523829662.1244047619
22149470126642.34226190522827.6577380952
23139208125810.20892857113397.7910714286
24134588132886.6755952381701.3244047619
25130322129791.471130952530.528869047629
26126611125153.9377976191457.06220238096
27122401124321.804464286-1920.80446428571
28117352131398.271130952-14046.2711309524
29112135128303.066666667-16168.0666666667
30112879123665.533333333-10786.5333333333
311487291439934736
32157230129909.86666666727320.1333333333
33157221126814.66220238130406.3377976190
34146681122177.12886904824503.8711309524
35136524121344.99553571415179.0044642857
36132111128421.4622023813689.53779761904
37125326125326.257738095-0.257738095230707
38122716120688.7244047622027.27559523810
39116615119856.591071429-3241.59107142857
40113719126933.057738095-13214.0577380952
41110737123837.853273810-13100.8532738095
42112093119200.319940476-7107.31994047618
43143565139527.7866071434037.21339285715
44149946125444.65327381024501.3467261905
45149147122349.44880952426797.5511904762
46134339117711.91547619016627.0845238095
47122683116879.7821428575803.21785714286
48115614123956.248809524-8342.24880952382
49116566120861.044345238-4295.04434523809
50111272116223.511011905-4951.51101190476
51104609115391.377678571-10782.3776785714
52101802122467.844345238-20665.8443452381
5394542119372.639880952-24830.6398809524
5493051114735.106547619-21684.1065476190
55124129135062.573214286-10933.5732142857
56130374120979.4398809529394.5601190476
57123946117884.2354166676061.76458333334
58114971113246.7020833331724.29791666667
59105531112414.56875-6883.56875
60104919119491.035416667-14572.0354166667

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 127059 & 138721.897916667 & -11662.8979166667 \tabularnewline
2 & 122860 & 134084.364583333 & -11224.3645833334 \tabularnewline
3 & 117702 & 133252.23125 & -15550.2312500000 \tabularnewline
4 & 113537 & 140328.697916667 & -26791.6979166667 \tabularnewline
5 & 108366 & 137233.493452381 & -28867.4934523809 \tabularnewline
6 & 111078 & 132595.960119048 & -21517.9601190476 \tabularnewline
7 & 150739 & 152923.426785714 & -2184.42678571428 \tabularnewline
8 & 159129 & 138840.293452381 & 20288.7065476191 \tabularnewline
9 & 157928 & 135745.088988095 & 22182.9110119048 \tabularnewline
10 & 147768 & 131107.555654762 & 16660.4443452381 \tabularnewline
11 & 137507 & 130275.422321429 & 7231.57767857144 \tabularnewline
12 & 136919 & 137351.888988095 & -432.888988095244 \tabularnewline
13 & 136151 & 134256.684523810 & 1894.31547619049 \tabularnewline
14 & 133001 & 129619.151190476 & 3381.84880952382 \tabularnewline
15 & 125554 & 128787.017857143 & -3233.01785714285 \tabularnewline
16 & 119647 & 135863.484523810 & -16216.4845238095 \tabularnewline
17 & 114158 & 132768.280059524 & -18610.2800595238 \tabularnewline
18 & 116193 & 128130.746726190 & -11937.7467261905 \tabularnewline
19 & 152803 & 148458.213392857 & 4344.78660714286 \tabularnewline
20 & 161761 & 134375.080059524 & 27385.9199404762 \tabularnewline
21 & 160942 & 131279.875595238 & 29662.1244047619 \tabularnewline
22 & 149470 & 126642.342261905 & 22827.6577380952 \tabularnewline
23 & 139208 & 125810.208928571 & 13397.7910714286 \tabularnewline
24 & 134588 & 132886.675595238 & 1701.3244047619 \tabularnewline
25 & 130322 & 129791.471130952 & 530.528869047629 \tabularnewline
26 & 126611 & 125153.937797619 & 1457.06220238096 \tabularnewline
27 & 122401 & 124321.804464286 & -1920.80446428571 \tabularnewline
28 & 117352 & 131398.271130952 & -14046.2711309524 \tabularnewline
29 & 112135 & 128303.066666667 & -16168.0666666667 \tabularnewline
30 & 112879 & 123665.533333333 & -10786.5333333333 \tabularnewline
31 & 148729 & 143993 & 4736 \tabularnewline
32 & 157230 & 129909.866666667 & 27320.1333333333 \tabularnewline
33 & 157221 & 126814.662202381 & 30406.3377976190 \tabularnewline
34 & 146681 & 122177.128869048 & 24503.8711309524 \tabularnewline
35 & 136524 & 121344.995535714 & 15179.0044642857 \tabularnewline
36 & 132111 & 128421.462202381 & 3689.53779761904 \tabularnewline
37 & 125326 & 125326.257738095 & -0.257738095230707 \tabularnewline
38 & 122716 & 120688.724404762 & 2027.27559523810 \tabularnewline
39 & 116615 & 119856.591071429 & -3241.59107142857 \tabularnewline
40 & 113719 & 126933.057738095 & -13214.0577380952 \tabularnewline
41 & 110737 & 123837.853273810 & -13100.8532738095 \tabularnewline
42 & 112093 & 119200.319940476 & -7107.31994047618 \tabularnewline
43 & 143565 & 139527.786607143 & 4037.21339285715 \tabularnewline
44 & 149946 & 125444.653273810 & 24501.3467261905 \tabularnewline
45 & 149147 & 122349.448809524 & 26797.5511904762 \tabularnewline
46 & 134339 & 117711.915476190 & 16627.0845238095 \tabularnewline
47 & 122683 & 116879.782142857 & 5803.21785714286 \tabularnewline
48 & 115614 & 123956.248809524 & -8342.24880952382 \tabularnewline
49 & 116566 & 120861.044345238 & -4295.04434523809 \tabularnewline
50 & 111272 & 116223.511011905 & -4951.51101190476 \tabularnewline
51 & 104609 & 115391.377678571 & -10782.3776785714 \tabularnewline
52 & 101802 & 122467.844345238 & -20665.8443452381 \tabularnewline
53 & 94542 & 119372.639880952 & -24830.6398809524 \tabularnewline
54 & 93051 & 114735.106547619 & -21684.1065476190 \tabularnewline
55 & 124129 & 135062.573214286 & -10933.5732142857 \tabularnewline
56 & 130374 & 120979.439880952 & 9394.5601190476 \tabularnewline
57 & 123946 & 117884.235416667 & 6061.76458333334 \tabularnewline
58 & 114971 & 113246.702083333 & 1724.29791666667 \tabularnewline
59 & 105531 & 112414.56875 & -6883.56875 \tabularnewline
60 & 104919 & 119491.035416667 & -14572.0354166667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25316&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]127059[/C][C]138721.897916667[/C][C]-11662.8979166667[/C][/ROW]
[ROW][C]2[/C][C]122860[/C][C]134084.364583333[/C][C]-11224.3645833334[/C][/ROW]
[ROW][C]3[/C][C]117702[/C][C]133252.23125[/C][C]-15550.2312500000[/C][/ROW]
[ROW][C]4[/C][C]113537[/C][C]140328.697916667[/C][C]-26791.6979166667[/C][/ROW]
[ROW][C]5[/C][C]108366[/C][C]137233.493452381[/C][C]-28867.4934523809[/C][/ROW]
[ROW][C]6[/C][C]111078[/C][C]132595.960119048[/C][C]-21517.9601190476[/C][/ROW]
[ROW][C]7[/C][C]150739[/C][C]152923.426785714[/C][C]-2184.42678571428[/C][/ROW]
[ROW][C]8[/C][C]159129[/C][C]138840.293452381[/C][C]20288.7065476191[/C][/ROW]
[ROW][C]9[/C][C]157928[/C][C]135745.088988095[/C][C]22182.9110119048[/C][/ROW]
[ROW][C]10[/C][C]147768[/C][C]131107.555654762[/C][C]16660.4443452381[/C][/ROW]
[ROW][C]11[/C][C]137507[/C][C]130275.422321429[/C][C]7231.57767857144[/C][/ROW]
[ROW][C]12[/C][C]136919[/C][C]137351.888988095[/C][C]-432.888988095244[/C][/ROW]
[ROW][C]13[/C][C]136151[/C][C]134256.684523810[/C][C]1894.31547619049[/C][/ROW]
[ROW][C]14[/C][C]133001[/C][C]129619.151190476[/C][C]3381.84880952382[/C][/ROW]
[ROW][C]15[/C][C]125554[/C][C]128787.017857143[/C][C]-3233.01785714285[/C][/ROW]
[ROW][C]16[/C][C]119647[/C][C]135863.484523810[/C][C]-16216.4845238095[/C][/ROW]
[ROW][C]17[/C][C]114158[/C][C]132768.280059524[/C][C]-18610.2800595238[/C][/ROW]
[ROW][C]18[/C][C]116193[/C][C]128130.746726190[/C][C]-11937.7467261905[/C][/ROW]
[ROW][C]19[/C][C]152803[/C][C]148458.213392857[/C][C]4344.78660714286[/C][/ROW]
[ROW][C]20[/C][C]161761[/C][C]134375.080059524[/C][C]27385.9199404762[/C][/ROW]
[ROW][C]21[/C][C]160942[/C][C]131279.875595238[/C][C]29662.1244047619[/C][/ROW]
[ROW][C]22[/C][C]149470[/C][C]126642.342261905[/C][C]22827.6577380952[/C][/ROW]
[ROW][C]23[/C][C]139208[/C][C]125810.208928571[/C][C]13397.7910714286[/C][/ROW]
[ROW][C]24[/C][C]134588[/C][C]132886.675595238[/C][C]1701.3244047619[/C][/ROW]
[ROW][C]25[/C][C]130322[/C][C]129791.471130952[/C][C]530.528869047629[/C][/ROW]
[ROW][C]26[/C][C]126611[/C][C]125153.937797619[/C][C]1457.06220238096[/C][/ROW]
[ROW][C]27[/C][C]122401[/C][C]124321.804464286[/C][C]-1920.80446428571[/C][/ROW]
[ROW][C]28[/C][C]117352[/C][C]131398.271130952[/C][C]-14046.2711309524[/C][/ROW]
[ROW][C]29[/C][C]112135[/C][C]128303.066666667[/C][C]-16168.0666666667[/C][/ROW]
[ROW][C]30[/C][C]112879[/C][C]123665.533333333[/C][C]-10786.5333333333[/C][/ROW]
[ROW][C]31[/C][C]148729[/C][C]143993[/C][C]4736[/C][/ROW]
[ROW][C]32[/C][C]157230[/C][C]129909.866666667[/C][C]27320.1333333333[/C][/ROW]
[ROW][C]33[/C][C]157221[/C][C]126814.662202381[/C][C]30406.3377976190[/C][/ROW]
[ROW][C]34[/C][C]146681[/C][C]122177.128869048[/C][C]24503.8711309524[/C][/ROW]
[ROW][C]35[/C][C]136524[/C][C]121344.995535714[/C][C]15179.0044642857[/C][/ROW]
[ROW][C]36[/C][C]132111[/C][C]128421.462202381[/C][C]3689.53779761904[/C][/ROW]
[ROW][C]37[/C][C]125326[/C][C]125326.257738095[/C][C]-0.257738095230707[/C][/ROW]
[ROW][C]38[/C][C]122716[/C][C]120688.724404762[/C][C]2027.27559523810[/C][/ROW]
[ROW][C]39[/C][C]116615[/C][C]119856.591071429[/C][C]-3241.59107142857[/C][/ROW]
[ROW][C]40[/C][C]113719[/C][C]126933.057738095[/C][C]-13214.0577380952[/C][/ROW]
[ROW][C]41[/C][C]110737[/C][C]123837.853273810[/C][C]-13100.8532738095[/C][/ROW]
[ROW][C]42[/C][C]112093[/C][C]119200.319940476[/C][C]-7107.31994047618[/C][/ROW]
[ROW][C]43[/C][C]143565[/C][C]139527.786607143[/C][C]4037.21339285715[/C][/ROW]
[ROW][C]44[/C][C]149946[/C][C]125444.653273810[/C][C]24501.3467261905[/C][/ROW]
[ROW][C]45[/C][C]149147[/C][C]122349.448809524[/C][C]26797.5511904762[/C][/ROW]
[ROW][C]46[/C][C]134339[/C][C]117711.915476190[/C][C]16627.0845238095[/C][/ROW]
[ROW][C]47[/C][C]122683[/C][C]116879.782142857[/C][C]5803.21785714286[/C][/ROW]
[ROW][C]48[/C][C]115614[/C][C]123956.248809524[/C][C]-8342.24880952382[/C][/ROW]
[ROW][C]49[/C][C]116566[/C][C]120861.044345238[/C][C]-4295.04434523809[/C][/ROW]
[ROW][C]50[/C][C]111272[/C][C]116223.511011905[/C][C]-4951.51101190476[/C][/ROW]
[ROW][C]51[/C][C]104609[/C][C]115391.377678571[/C][C]-10782.3776785714[/C][/ROW]
[ROW][C]52[/C][C]101802[/C][C]122467.844345238[/C][C]-20665.8443452381[/C][/ROW]
[ROW][C]53[/C][C]94542[/C][C]119372.639880952[/C][C]-24830.6398809524[/C][/ROW]
[ROW][C]54[/C][C]93051[/C][C]114735.106547619[/C][C]-21684.1065476190[/C][/ROW]
[ROW][C]55[/C][C]124129[/C][C]135062.573214286[/C][C]-10933.5732142857[/C][/ROW]
[ROW][C]56[/C][C]130374[/C][C]120979.439880952[/C][C]9394.5601190476[/C][/ROW]
[ROW][C]57[/C][C]123946[/C][C]117884.235416667[/C][C]6061.76458333334[/C][/ROW]
[ROW][C]58[/C][C]114971[/C][C]113246.702083333[/C][C]1724.29791666667[/C][/ROW]
[ROW][C]59[/C][C]105531[/C][C]112414.56875[/C][C]-6883.56875[/C][/ROW]
[ROW][C]60[/C][C]104919[/C][C]119491.035416667[/C][C]-14572.0354166667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25316&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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
1127059138721.897916667-11662.8979166667
2122860134084.364583333-11224.3645833334
3117702133252.23125-15550.2312500000
4113537140328.697916667-26791.6979166667
5108366137233.493452381-28867.4934523809
6111078132595.960119048-21517.9601190476
7150739152923.426785714-2184.42678571428
8159129138840.29345238120288.7065476191
9157928135745.08898809522182.9110119048
10147768131107.55565476216660.4443452381
11137507130275.4223214297231.57767857144
12136919137351.888988095-432.888988095244
13136151134256.6845238101894.31547619049
14133001129619.1511904763381.84880952382
15125554128787.017857143-3233.01785714285
16119647135863.484523810-16216.4845238095
17114158132768.280059524-18610.2800595238
18116193128130.746726190-11937.7467261905
19152803148458.2133928574344.78660714286
20161761134375.08005952427385.9199404762
21160942131279.87559523829662.1244047619
22149470126642.34226190522827.6577380952
23139208125810.20892857113397.7910714286
24134588132886.6755952381701.3244047619
25130322129791.471130952530.528869047629
26126611125153.9377976191457.06220238096
27122401124321.804464286-1920.80446428571
28117352131398.271130952-14046.2711309524
29112135128303.066666667-16168.0666666667
30112879123665.533333333-10786.5333333333
311487291439934736
32157230129909.86666666727320.1333333333
33157221126814.66220238130406.3377976190
34146681122177.12886904824503.8711309524
35136524121344.99553571415179.0044642857
36132111128421.4622023813689.53779761904
37125326125326.257738095-0.257738095230707
38122716120688.7244047622027.27559523810
39116615119856.591071429-3241.59107142857
40113719126933.057738095-13214.0577380952
41110737123837.853273810-13100.8532738095
42112093119200.319940476-7107.31994047618
43143565139527.7866071434037.21339285715
44149946125444.65327381024501.3467261905
45149147122349.44880952426797.5511904762
46134339117711.91547619016627.0845238095
47122683116879.7821428575803.21785714286
48115614123956.248809524-8342.24880952382
49116566120861.044345238-4295.04434523809
50111272116223.511011905-4951.51101190476
51104609115391.377678571-10782.3776785714
52101802122467.844345238-20665.8443452381
5394542119372.639880952-24830.6398809524
5493051114735.106547619-21684.1065476190
55124129135062.573214286-10933.5732142857
56130374120979.4398809529394.5601190476
57123946117884.2354166676061.76458333334
58114971113246.7020833331724.29791666667
59105531112414.56875-6883.56875
60104919119491.035416667-14572.0354166667







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.915812873383290.1683742532334210.0841871266167103
100.8475356330974990.3049287338050020.152464366902501
110.7737514328060010.4524971343879980.226248567193999
120.7505466246120110.4989067507759780.249453375387989
130.7118566028718060.5762867942563880.288143397128194
140.6420289920974340.7159420158051320.357971007902566
150.6038171053622460.7923657892755070.396182894637754
160.7088128455514420.5823743088971160.291187154448558
170.8032232982653350.393553403469330.196776701734665
180.8128823060544360.3742353878911290.187117693945564
190.7481174681310530.5037650637378950.251882531868947
200.7893321942796460.4213356114407090.210667805720355
210.8228676396086080.3542647207827840.177132360391392
220.7962567164888220.4074865670223550.203743283511178
230.7345890822611880.5308218354776240.265410917738812
240.6943510720238570.6112978559522850.305648927976142
250.6549398820006740.6901202359986510.345060117999326
260.6030886606435730.7938226787128540.396911339356427
270.5655448345336380.8689103309327240.434455165466362
280.6517943902619580.6964112194760850.348205609738042
290.7614374019609060.4771251960781890.238562598039094
300.8075259354632540.3849481290734920.192474064536746
310.753981292792540.492037414414920.24601870720746
320.7638841939471250.472231612105750.236115806052875
330.8042362959910960.3915274080178070.195763704008903
340.8029845513016510.3940308973966970.197015448698349
350.7597067278922420.4805865442155170.240293272107758
360.6984617795617860.6030764408764290.301538220438214
370.6381972503205060.7236054993589890.361802749679494
380.5643161305056990.8713677389886020.435683869494301
390.5055221930103850.9889556139792290.494477806989615
400.5453307378003220.9093385243993560.454669262199678
410.6108068713960750.778386257207850.389193128603925
420.6068098329932630.7863803340134740.393190167006737
430.5116452025046140.9767095949907720.488354797495386
440.5288613697367450.942277260526510.471138630263255
450.6506393317859760.6987213364280480.349360668214024
460.7060580055548110.5878839888903770.293941994445189
470.6861128493526280.6277743012947450.313887150647372
480.5967602985220330.8064794029559330.403239701477967
490.511368295783540.977263408432920.48863170421646
500.4388548372094250.877709674418850.561145162790575
510.3416267890726590.6832535781453180.658373210927341

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
9 & 0.91581287338329 & 0.168374253233421 & 0.0841871266167103 \tabularnewline
10 & 0.847535633097499 & 0.304928733805002 & 0.152464366902501 \tabularnewline
11 & 0.773751432806001 & 0.452497134387998 & 0.226248567193999 \tabularnewline
12 & 0.750546624612011 & 0.498906750775978 & 0.249453375387989 \tabularnewline
13 & 0.711856602871806 & 0.576286794256388 & 0.288143397128194 \tabularnewline
14 & 0.642028992097434 & 0.715942015805132 & 0.357971007902566 \tabularnewline
15 & 0.603817105362246 & 0.792365789275507 & 0.396182894637754 \tabularnewline
16 & 0.708812845551442 & 0.582374308897116 & 0.291187154448558 \tabularnewline
17 & 0.803223298265335 & 0.39355340346933 & 0.196776701734665 \tabularnewline
18 & 0.812882306054436 & 0.374235387891129 & 0.187117693945564 \tabularnewline
19 & 0.748117468131053 & 0.503765063737895 & 0.251882531868947 \tabularnewline
20 & 0.789332194279646 & 0.421335611440709 & 0.210667805720355 \tabularnewline
21 & 0.822867639608608 & 0.354264720782784 & 0.177132360391392 \tabularnewline
22 & 0.796256716488822 & 0.407486567022355 & 0.203743283511178 \tabularnewline
23 & 0.734589082261188 & 0.530821835477624 & 0.265410917738812 \tabularnewline
24 & 0.694351072023857 & 0.611297855952285 & 0.305648927976142 \tabularnewline
25 & 0.654939882000674 & 0.690120235998651 & 0.345060117999326 \tabularnewline
26 & 0.603088660643573 & 0.793822678712854 & 0.396911339356427 \tabularnewline
27 & 0.565544834533638 & 0.868910330932724 & 0.434455165466362 \tabularnewline
28 & 0.651794390261958 & 0.696411219476085 & 0.348205609738042 \tabularnewline
29 & 0.761437401960906 & 0.477125196078189 & 0.238562598039094 \tabularnewline
30 & 0.807525935463254 & 0.384948129073492 & 0.192474064536746 \tabularnewline
31 & 0.75398129279254 & 0.49203741441492 & 0.24601870720746 \tabularnewline
32 & 0.763884193947125 & 0.47223161210575 & 0.236115806052875 \tabularnewline
33 & 0.804236295991096 & 0.391527408017807 & 0.195763704008903 \tabularnewline
34 & 0.802984551301651 & 0.394030897396697 & 0.197015448698349 \tabularnewline
35 & 0.759706727892242 & 0.480586544215517 & 0.240293272107758 \tabularnewline
36 & 0.698461779561786 & 0.603076440876429 & 0.301538220438214 \tabularnewline
37 & 0.638197250320506 & 0.723605499358989 & 0.361802749679494 \tabularnewline
38 & 0.564316130505699 & 0.871367738988602 & 0.435683869494301 \tabularnewline
39 & 0.505522193010385 & 0.988955613979229 & 0.494477806989615 \tabularnewline
40 & 0.545330737800322 & 0.909338524399356 & 0.454669262199678 \tabularnewline
41 & 0.610806871396075 & 0.77838625720785 & 0.389193128603925 \tabularnewline
42 & 0.606809832993263 & 0.786380334013474 & 0.393190167006737 \tabularnewline
43 & 0.511645202504614 & 0.976709594990772 & 0.488354797495386 \tabularnewline
44 & 0.528861369736745 & 0.94227726052651 & 0.471138630263255 \tabularnewline
45 & 0.650639331785976 & 0.698721336428048 & 0.349360668214024 \tabularnewline
46 & 0.706058005554811 & 0.587883988890377 & 0.293941994445189 \tabularnewline
47 & 0.686112849352628 & 0.627774301294745 & 0.313887150647372 \tabularnewline
48 & 0.596760298522033 & 0.806479402955933 & 0.403239701477967 \tabularnewline
49 & 0.51136829578354 & 0.97726340843292 & 0.48863170421646 \tabularnewline
50 & 0.438854837209425 & 0.87770967441885 & 0.561145162790575 \tabularnewline
51 & 0.341626789072659 & 0.683253578145318 & 0.658373210927341 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25316&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]9[/C][C]0.91581287338329[/C][C]0.168374253233421[/C][C]0.0841871266167103[/C][/ROW]
[ROW][C]10[/C][C]0.847535633097499[/C][C]0.304928733805002[/C][C]0.152464366902501[/C][/ROW]
[ROW][C]11[/C][C]0.773751432806001[/C][C]0.452497134387998[/C][C]0.226248567193999[/C][/ROW]
[ROW][C]12[/C][C]0.750546624612011[/C][C]0.498906750775978[/C][C]0.249453375387989[/C][/ROW]
[ROW][C]13[/C][C]0.711856602871806[/C][C]0.576286794256388[/C][C]0.288143397128194[/C][/ROW]
[ROW][C]14[/C][C]0.642028992097434[/C][C]0.715942015805132[/C][C]0.357971007902566[/C][/ROW]
[ROW][C]15[/C][C]0.603817105362246[/C][C]0.792365789275507[/C][C]0.396182894637754[/C][/ROW]
[ROW][C]16[/C][C]0.708812845551442[/C][C]0.582374308897116[/C][C]0.291187154448558[/C][/ROW]
[ROW][C]17[/C][C]0.803223298265335[/C][C]0.39355340346933[/C][C]0.196776701734665[/C][/ROW]
[ROW][C]18[/C][C]0.812882306054436[/C][C]0.374235387891129[/C][C]0.187117693945564[/C][/ROW]
[ROW][C]19[/C][C]0.748117468131053[/C][C]0.503765063737895[/C][C]0.251882531868947[/C][/ROW]
[ROW][C]20[/C][C]0.789332194279646[/C][C]0.421335611440709[/C][C]0.210667805720355[/C][/ROW]
[ROW][C]21[/C][C]0.822867639608608[/C][C]0.354264720782784[/C][C]0.177132360391392[/C][/ROW]
[ROW][C]22[/C][C]0.796256716488822[/C][C]0.407486567022355[/C][C]0.203743283511178[/C][/ROW]
[ROW][C]23[/C][C]0.734589082261188[/C][C]0.530821835477624[/C][C]0.265410917738812[/C][/ROW]
[ROW][C]24[/C][C]0.694351072023857[/C][C]0.611297855952285[/C][C]0.305648927976142[/C][/ROW]
[ROW][C]25[/C][C]0.654939882000674[/C][C]0.690120235998651[/C][C]0.345060117999326[/C][/ROW]
[ROW][C]26[/C][C]0.603088660643573[/C][C]0.793822678712854[/C][C]0.396911339356427[/C][/ROW]
[ROW][C]27[/C][C]0.565544834533638[/C][C]0.868910330932724[/C][C]0.434455165466362[/C][/ROW]
[ROW][C]28[/C][C]0.651794390261958[/C][C]0.696411219476085[/C][C]0.348205609738042[/C][/ROW]
[ROW][C]29[/C][C]0.761437401960906[/C][C]0.477125196078189[/C][C]0.238562598039094[/C][/ROW]
[ROW][C]30[/C][C]0.807525935463254[/C][C]0.384948129073492[/C][C]0.192474064536746[/C][/ROW]
[ROW][C]31[/C][C]0.75398129279254[/C][C]0.49203741441492[/C][C]0.24601870720746[/C][/ROW]
[ROW][C]32[/C][C]0.763884193947125[/C][C]0.47223161210575[/C][C]0.236115806052875[/C][/ROW]
[ROW][C]33[/C][C]0.804236295991096[/C][C]0.391527408017807[/C][C]0.195763704008903[/C][/ROW]
[ROW][C]34[/C][C]0.802984551301651[/C][C]0.394030897396697[/C][C]0.197015448698349[/C][/ROW]
[ROW][C]35[/C][C]0.759706727892242[/C][C]0.480586544215517[/C][C]0.240293272107758[/C][/ROW]
[ROW][C]36[/C][C]0.698461779561786[/C][C]0.603076440876429[/C][C]0.301538220438214[/C][/ROW]
[ROW][C]37[/C][C]0.638197250320506[/C][C]0.723605499358989[/C][C]0.361802749679494[/C][/ROW]
[ROW][C]38[/C][C]0.564316130505699[/C][C]0.871367738988602[/C][C]0.435683869494301[/C][/ROW]
[ROW][C]39[/C][C]0.505522193010385[/C][C]0.988955613979229[/C][C]0.494477806989615[/C][/ROW]
[ROW][C]40[/C][C]0.545330737800322[/C][C]0.909338524399356[/C][C]0.454669262199678[/C][/ROW]
[ROW][C]41[/C][C]0.610806871396075[/C][C]0.77838625720785[/C][C]0.389193128603925[/C][/ROW]
[ROW][C]42[/C][C]0.606809832993263[/C][C]0.786380334013474[/C][C]0.393190167006737[/C][/ROW]
[ROW][C]43[/C][C]0.511645202504614[/C][C]0.976709594990772[/C][C]0.488354797495386[/C][/ROW]
[ROW][C]44[/C][C]0.528861369736745[/C][C]0.94227726052651[/C][C]0.471138630263255[/C][/ROW]
[ROW][C]45[/C][C]0.650639331785976[/C][C]0.698721336428048[/C][C]0.349360668214024[/C][/ROW]
[ROW][C]46[/C][C]0.706058005554811[/C][C]0.587883988890377[/C][C]0.293941994445189[/C][/ROW]
[ROW][C]47[/C][C]0.686112849352628[/C][C]0.627774301294745[/C][C]0.313887150647372[/C][/ROW]
[ROW][C]48[/C][C]0.596760298522033[/C][C]0.806479402955933[/C][C]0.403239701477967[/C][/ROW]
[ROW][C]49[/C][C]0.51136829578354[/C][C]0.97726340843292[/C][C]0.48863170421646[/C][/ROW]
[ROW][C]50[/C][C]0.438854837209425[/C][C]0.87770967441885[/C][C]0.561145162790575[/C][/ROW]
[ROW][C]51[/C][C]0.341626789072659[/C][C]0.683253578145318[/C][C]0.658373210927341[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25316&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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
90.915812873383290.1683742532334210.0841871266167103
100.8475356330974990.3049287338050020.152464366902501
110.7737514328060010.4524971343879980.226248567193999
120.7505466246120110.4989067507759780.249453375387989
130.7118566028718060.5762867942563880.288143397128194
140.6420289920974340.7159420158051320.357971007902566
150.6038171053622460.7923657892755070.396182894637754
160.7088128455514420.5823743088971160.291187154448558
170.8032232982653350.393553403469330.196776701734665
180.8128823060544360.3742353878911290.187117693945564
190.7481174681310530.5037650637378950.251882531868947
200.7893321942796460.4213356114407090.210667805720355
210.8228676396086080.3542647207827840.177132360391392
220.7962567164888220.4074865670223550.203743283511178
230.7345890822611880.5308218354776240.265410917738812
240.6943510720238570.6112978559522850.305648927976142
250.6549398820006740.6901202359986510.345060117999326
260.6030886606435730.7938226787128540.396911339356427
270.5655448345336380.8689103309327240.434455165466362
280.6517943902619580.6964112194760850.348205609738042
290.7614374019609060.4771251960781890.238562598039094
300.8075259354632540.3849481290734920.192474064536746
310.753981292792540.492037414414920.24601870720746
320.7638841939471250.472231612105750.236115806052875
330.8042362959910960.3915274080178070.195763704008903
340.8029845513016510.3940308973966970.197015448698349
350.7597067278922420.4805865442155170.240293272107758
360.6984617795617860.6030764408764290.301538220438214
370.6381972503205060.7236054993589890.361802749679494
380.5643161305056990.8713677389886020.435683869494301
390.5055221930103850.9889556139792290.494477806989615
400.5453307378003220.9093385243993560.454669262199678
410.6108068713960750.778386257207850.389193128603925
420.6068098329932630.7863803340134740.393190167006737
430.5116452025046140.9767095949907720.488354797495386
440.5288613697367450.942277260526510.471138630263255
450.6506393317859760.6987213364280480.349360668214024
460.7060580055548110.5878839888903770.293941994445189
470.6861128493526280.6277743012947450.313887150647372
480.5967602985220330.8064794029559330.403239701477967
490.511368295783540.977263408432920.48863170421646
500.4388548372094250.877709674418850.561145162790575
510.3416267890726590.6832535781453180.658373210927341







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=25316&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=25316&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25316&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 Quarterly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Quarterly 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')
}