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 computationWed, 18 Nov 2009 13:20:00 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t1258575762ee5g8dbb0sk1uht.htm/, Retrieved Sun, 05 May 2024 12:32:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57613, Retrieved Sun, 05 May 2024 12:32:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsTijdsperiode Jan 2004 - Jan 2009 Basisjaar 2000=100 Quarterly dummies Linear trend Y1 = y(t-1) & Y2 = y(t-2)
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Totale productiei...] [2009-11-18 20:20:00] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
97	95,1
112,7	97
102,9	112,7
97,4	102,9
111,4	97,4
87,4	111,4
96,8	87,4
114,1	96,8
110,3	114,1
103,9	110,3
101,6	103,9
94,6	101,6
95,9	94,6
104,7	95,9
102,8	104,7
98,1	102,8
113,9	98,1
80,9	113,9
95,7	80,9
113,2	95,7
105,9	113,2
108,8	105,9
102,3	108,8
99	102,3
100,7	99
115,5	100,7
100,7	115,5
109,9	100,7
114,6	109,9
85,4	114,6
100,5	85,4
114,8	100,5
116,5	114,8
112,9	116,5
102	112,9
106	102
105,3	106
118,8	105,3
106,1	118,8
109,3	106,1
117,2	109,3
92,5	117,2
104,2	92,5
112,5	104,2
122,4	112,5
113,3	122,4
100	113,3
110,7	100
112,8	110,7
109,8	112,8
117,3	109,8
109,1	117,3
115,9	109,1
96	115,9
99,8	96
116,8	99,8
115,7	116,8
99,4	115,7
94,3	99,4
91	94,3




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y1[t] = + 97.8054993871467 + 0.0491656425600409Y2[t] + 4.03172874511132Q1[t] -3.82809578374928Q2[t] -4.56928736546918Q3[t] + 0.113211610424201t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y1[t] =  +  97.8054993871467 +  0.0491656425600409Y2[t] +  4.03172874511132Q1[t] -3.82809578374928Q2[t] -4.56928736546918Q3[t] +  0.113211610424201t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57613&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y1[t] =  +  97.8054993871467 +  0.0491656425600409Y2[t] +  4.03172874511132Q1[t] -3.82809578374928Q2[t] -4.56928736546918Q3[t] +  0.113211610424201t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57613&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57613&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
Y1[t] = + 97.8054993871467 + 0.0491656425600409Y2[t] + 4.03172874511132Q1[t] -3.82809578374928Q2[t] -4.56928736546918Q3[t] + 0.113211610424201t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)97.805499387146714.051856.960300
Y20.04916564256004090.1423070.34550.7310690.365534
Q14.031728745111323.2125761.2550.2148890.107445
Q2-3.828095783749283.363404-1.13820.2600780.130039
Q3-4.569287365469183.118295-1.46530.1486330.074317
t0.1132116104242010.0679631.66580.101550.050775

\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) & 97.8054993871467 & 14.05185 & 6.9603 & 0 & 0 \tabularnewline
Y2 & 0.0491656425600409 & 0.142307 & 0.3455 & 0.731069 & 0.365534 \tabularnewline
Q1 & 4.03172874511132 & 3.212576 & 1.255 & 0.214889 & 0.107445 \tabularnewline
Q2 & -3.82809578374928 & 3.363404 & -1.1382 & 0.260078 & 0.130039 \tabularnewline
Q3 & -4.56928736546918 & 3.118295 & -1.4653 & 0.148633 & 0.074317 \tabularnewline
t & 0.113211610424201 & 0.067963 & 1.6658 & 0.10155 & 0.050775 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57613&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]97.8054993871467[/C][C]14.05185[/C][C]6.9603[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0491656425600409[/C][C]0.142307[/C][C]0.3455[/C][C]0.731069[/C][C]0.365534[/C][/ROW]
[ROW][C]Q1[/C][C]4.03172874511132[/C][C]3.212576[/C][C]1.255[/C][C]0.214889[/C][C]0.107445[/C][/ROW]
[ROW][C]Q2[/C][C]-3.82809578374928[/C][C]3.363404[/C][C]-1.1382[/C][C]0.260078[/C][C]0.130039[/C][/ROW]
[ROW][C]Q3[/C][C]-4.56928736546918[/C][C]3.118295[/C][C]-1.4653[/C][C]0.148633[/C][C]0.074317[/C][/ROW]
[ROW][C]t[/C][C]0.113211610424201[/C][C]0.067963[/C][C]1.6658[/C][C]0.10155[/C][C]0.050775[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57613&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57613&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)97.805499387146714.051856.960300
Y20.04916564256004090.1423070.34550.7310690.365534
Q14.031728745111323.2125761.2550.2148890.107445
Q2-3.828095783749283.363404-1.13820.2600780.130039
Q3-4.569287365469183.118295-1.46530.1486330.074317
t0.1132116104242010.0679631.66580.101550.050775







Multiple Linear Regression - Regression Statistics
Multiple R0.442267014501563
R-squared0.195600112116126
Adjusted R-squared0.121118641015767
F-TEST (value)2.62615801254204
F-TEST (DF numerator)5
F-TEST (DF denominator)54
p-value0.0338316094165916
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.52590672585904
Sum Squared Residuals3925.31861689461

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.442267014501563 \tabularnewline
R-squared & 0.195600112116126 \tabularnewline
Adjusted R-squared & 0.121118641015767 \tabularnewline
F-TEST (value) & 2.62615801254204 \tabularnewline
F-TEST (DF numerator) & 5 \tabularnewline
F-TEST (DF denominator) & 54 \tabularnewline
p-value & 0.0338316094165916 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 8.52590672585904 \tabularnewline
Sum Squared Residuals & 3925.31861689461 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57613&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.442267014501563[/C][/ROW]
[ROW][C]R-squared[/C][C]0.195600112116126[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.121118641015767[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.62615801254204[/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.0338316094165916[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]8.52590672585904[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3925.31861689461[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57613&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57613&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.442267014501563
R-squared0.195600112116126
Adjusted R-squared0.121118641015767
F-TEST (value)2.62615801254204
F-TEST (DF numerator)5
F-TEST (DF denominator)54
p-value0.0338316094165916
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.52590672585904
Sum Squared Residuals3925.31861689461







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
197106.626092350142-9.62609235014232
2112.798.972894152569913.7271058474302
3102.999.11681476946683.78318523053323
497.4103.317490448272-5.91749044827176
5111.4107.1920197697274.20798023027294
687.4100.133725847131-12.7337258471312
796.898.3257704543946-1.52577045439456
8114.1103.47042647035210.6295735296477
9110.3108.4659324421771.83406755782345
10103.9100.5324900820123.36750991798802
11101.699.5898499983322.01015000166796
1294.6104.159267996337-9.55926799633732
1395.9107.960048853953-12.0600488539525
14104.7100.2773512708444.4226487291558
15102.8100.0820289540772.71797104592313
1698.1104.671113209106-6.57111320910617
17113.9108.5849750446095.31502495539051
1880.9101.615179278622-20.7151792786217
1995.799.3647331028447-3.6647331028447
20113.2104.7748835886278.42511641137332
21105.9109.780222688963-3.88022268896291
22108.8101.6747005798387.12529942016179
23102.3101.1893009719671.11069902803336
2499105.552223271220-6.55222327121975
25100.7109.534917006307-8.83491700630714
26115.5101.87188568022313.6281143197772
27100.7101.971557218816-1.27155721881571
28109.9105.9264046848203.97359531517952
29114.6110.5236689519084.07633104809161
3085.4103.008134553504-17.6081345535042
31100.5100.944517819455-0.44451781945529
32114.8106.3694179980058.43058200199472
33116.5111.2174270421495.28257295785061
34112.9103.5543957160659.34560428393495
35102102.749419431553-0.749419431553215
36106106.896012903542-0.896012903542142
37105.3111.237615829318-5.93761582931784
38118.8103.45658696108915.3434130389106
39106.1103.4923431643542.60765683564573
40109.3107.5504384797351.74956152026488
41117.2111.8527088914635.34729110853723
4292.5104.494504549251-11.9945045492507
43104.2102.6521332067221.54786679327802
44112.5107.9098702005684.59012979943216
45122.4112.4628853893529.9371146106483
46113.3105.2030123322608.0969876677403
47100104.127625013668-4.12762501366764
48110.7108.1562209435122.54377905648754
49112.8112.827233674440-0.0272336744404358
50109.8105.1838686053804.61613139461988
51117.3104.40839170640412.8916082935957
52109.1109.459633001498-0.359633001497983
53115.9113.2014150880412.69858491195884
5496105.789128539013-9.78912853901304
5599.8104.182752280773-4.38275228077254
56116.8109.0520806983947.74791930160593
57115.7114.0328369774501.66716302254972
5899.4106.232141852198-6.83214185219783
5994.3104.802761907173-10.5027619071735
6091109.234516106011-18.2345161060106

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 97 & 106.626092350142 & -9.62609235014232 \tabularnewline
2 & 112.7 & 98.9728941525699 & 13.7271058474302 \tabularnewline
3 & 102.9 & 99.1168147694668 & 3.78318523053323 \tabularnewline
4 & 97.4 & 103.317490448272 & -5.91749044827176 \tabularnewline
5 & 111.4 & 107.192019769727 & 4.20798023027294 \tabularnewline
6 & 87.4 & 100.133725847131 & -12.7337258471312 \tabularnewline
7 & 96.8 & 98.3257704543946 & -1.52577045439456 \tabularnewline
8 & 114.1 & 103.470426470352 & 10.6295735296477 \tabularnewline
9 & 110.3 & 108.465932442177 & 1.83406755782345 \tabularnewline
10 & 103.9 & 100.532490082012 & 3.36750991798802 \tabularnewline
11 & 101.6 & 99.589849998332 & 2.01015000166796 \tabularnewline
12 & 94.6 & 104.159267996337 & -9.55926799633732 \tabularnewline
13 & 95.9 & 107.960048853953 & -12.0600488539525 \tabularnewline
14 & 104.7 & 100.277351270844 & 4.4226487291558 \tabularnewline
15 & 102.8 & 100.082028954077 & 2.71797104592313 \tabularnewline
16 & 98.1 & 104.671113209106 & -6.57111320910617 \tabularnewline
17 & 113.9 & 108.584975044609 & 5.31502495539051 \tabularnewline
18 & 80.9 & 101.615179278622 & -20.7151792786217 \tabularnewline
19 & 95.7 & 99.3647331028447 & -3.6647331028447 \tabularnewline
20 & 113.2 & 104.774883588627 & 8.42511641137332 \tabularnewline
21 & 105.9 & 109.780222688963 & -3.88022268896291 \tabularnewline
22 & 108.8 & 101.674700579838 & 7.12529942016179 \tabularnewline
23 & 102.3 & 101.189300971967 & 1.11069902803336 \tabularnewline
24 & 99 & 105.552223271220 & -6.55222327121975 \tabularnewline
25 & 100.7 & 109.534917006307 & -8.83491700630714 \tabularnewline
26 & 115.5 & 101.871885680223 & 13.6281143197772 \tabularnewline
27 & 100.7 & 101.971557218816 & -1.27155721881571 \tabularnewline
28 & 109.9 & 105.926404684820 & 3.97359531517952 \tabularnewline
29 & 114.6 & 110.523668951908 & 4.07633104809161 \tabularnewline
30 & 85.4 & 103.008134553504 & -17.6081345535042 \tabularnewline
31 & 100.5 & 100.944517819455 & -0.44451781945529 \tabularnewline
32 & 114.8 & 106.369417998005 & 8.43058200199472 \tabularnewline
33 & 116.5 & 111.217427042149 & 5.28257295785061 \tabularnewline
34 & 112.9 & 103.554395716065 & 9.34560428393495 \tabularnewline
35 & 102 & 102.749419431553 & -0.749419431553215 \tabularnewline
36 & 106 & 106.896012903542 & -0.896012903542142 \tabularnewline
37 & 105.3 & 111.237615829318 & -5.93761582931784 \tabularnewline
38 & 118.8 & 103.456586961089 & 15.3434130389106 \tabularnewline
39 & 106.1 & 103.492343164354 & 2.60765683564573 \tabularnewline
40 & 109.3 & 107.550438479735 & 1.74956152026488 \tabularnewline
41 & 117.2 & 111.852708891463 & 5.34729110853723 \tabularnewline
42 & 92.5 & 104.494504549251 & -11.9945045492507 \tabularnewline
43 & 104.2 & 102.652133206722 & 1.54786679327802 \tabularnewline
44 & 112.5 & 107.909870200568 & 4.59012979943216 \tabularnewline
45 & 122.4 & 112.462885389352 & 9.9371146106483 \tabularnewline
46 & 113.3 & 105.203012332260 & 8.0969876677403 \tabularnewline
47 & 100 & 104.127625013668 & -4.12762501366764 \tabularnewline
48 & 110.7 & 108.156220943512 & 2.54377905648754 \tabularnewline
49 & 112.8 & 112.827233674440 & -0.0272336744404358 \tabularnewline
50 & 109.8 & 105.183868605380 & 4.61613139461988 \tabularnewline
51 & 117.3 & 104.408391706404 & 12.8916082935957 \tabularnewline
52 & 109.1 & 109.459633001498 & -0.359633001497983 \tabularnewline
53 & 115.9 & 113.201415088041 & 2.69858491195884 \tabularnewline
54 & 96 & 105.789128539013 & -9.78912853901304 \tabularnewline
55 & 99.8 & 104.182752280773 & -4.38275228077254 \tabularnewline
56 & 116.8 & 109.052080698394 & 7.74791930160593 \tabularnewline
57 & 115.7 & 114.032836977450 & 1.66716302254972 \tabularnewline
58 & 99.4 & 106.232141852198 & -6.83214185219783 \tabularnewline
59 & 94.3 & 104.802761907173 & -10.5027619071735 \tabularnewline
60 & 91 & 109.234516106011 & -18.2345161060106 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57613&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]97[/C][C]106.626092350142[/C][C]-9.62609235014232[/C][/ROW]
[ROW][C]2[/C][C]112.7[/C][C]98.9728941525699[/C][C]13.7271058474302[/C][/ROW]
[ROW][C]3[/C][C]102.9[/C][C]99.1168147694668[/C][C]3.78318523053323[/C][/ROW]
[ROW][C]4[/C][C]97.4[/C][C]103.317490448272[/C][C]-5.91749044827176[/C][/ROW]
[ROW][C]5[/C][C]111.4[/C][C]107.192019769727[/C][C]4.20798023027294[/C][/ROW]
[ROW][C]6[/C][C]87.4[/C][C]100.133725847131[/C][C]-12.7337258471312[/C][/ROW]
[ROW][C]7[/C][C]96.8[/C][C]98.3257704543946[/C][C]-1.52577045439456[/C][/ROW]
[ROW][C]8[/C][C]114.1[/C][C]103.470426470352[/C][C]10.6295735296477[/C][/ROW]
[ROW][C]9[/C][C]110.3[/C][C]108.465932442177[/C][C]1.83406755782345[/C][/ROW]
[ROW][C]10[/C][C]103.9[/C][C]100.532490082012[/C][C]3.36750991798802[/C][/ROW]
[ROW][C]11[/C][C]101.6[/C][C]99.589849998332[/C][C]2.01015000166796[/C][/ROW]
[ROW][C]12[/C][C]94.6[/C][C]104.159267996337[/C][C]-9.55926799633732[/C][/ROW]
[ROW][C]13[/C][C]95.9[/C][C]107.960048853953[/C][C]-12.0600488539525[/C][/ROW]
[ROW][C]14[/C][C]104.7[/C][C]100.277351270844[/C][C]4.4226487291558[/C][/ROW]
[ROW][C]15[/C][C]102.8[/C][C]100.082028954077[/C][C]2.71797104592313[/C][/ROW]
[ROW][C]16[/C][C]98.1[/C][C]104.671113209106[/C][C]-6.57111320910617[/C][/ROW]
[ROW][C]17[/C][C]113.9[/C][C]108.584975044609[/C][C]5.31502495539051[/C][/ROW]
[ROW][C]18[/C][C]80.9[/C][C]101.615179278622[/C][C]-20.7151792786217[/C][/ROW]
[ROW][C]19[/C][C]95.7[/C][C]99.3647331028447[/C][C]-3.6647331028447[/C][/ROW]
[ROW][C]20[/C][C]113.2[/C][C]104.774883588627[/C][C]8.42511641137332[/C][/ROW]
[ROW][C]21[/C][C]105.9[/C][C]109.780222688963[/C][C]-3.88022268896291[/C][/ROW]
[ROW][C]22[/C][C]108.8[/C][C]101.674700579838[/C][C]7.12529942016179[/C][/ROW]
[ROW][C]23[/C][C]102.3[/C][C]101.189300971967[/C][C]1.11069902803336[/C][/ROW]
[ROW][C]24[/C][C]99[/C][C]105.552223271220[/C][C]-6.55222327121975[/C][/ROW]
[ROW][C]25[/C][C]100.7[/C][C]109.534917006307[/C][C]-8.83491700630714[/C][/ROW]
[ROW][C]26[/C][C]115.5[/C][C]101.871885680223[/C][C]13.6281143197772[/C][/ROW]
[ROW][C]27[/C][C]100.7[/C][C]101.971557218816[/C][C]-1.27155721881571[/C][/ROW]
[ROW][C]28[/C][C]109.9[/C][C]105.926404684820[/C][C]3.97359531517952[/C][/ROW]
[ROW][C]29[/C][C]114.6[/C][C]110.523668951908[/C][C]4.07633104809161[/C][/ROW]
[ROW][C]30[/C][C]85.4[/C][C]103.008134553504[/C][C]-17.6081345535042[/C][/ROW]
[ROW][C]31[/C][C]100.5[/C][C]100.944517819455[/C][C]-0.44451781945529[/C][/ROW]
[ROW][C]32[/C][C]114.8[/C][C]106.369417998005[/C][C]8.43058200199472[/C][/ROW]
[ROW][C]33[/C][C]116.5[/C][C]111.217427042149[/C][C]5.28257295785061[/C][/ROW]
[ROW][C]34[/C][C]112.9[/C][C]103.554395716065[/C][C]9.34560428393495[/C][/ROW]
[ROW][C]35[/C][C]102[/C][C]102.749419431553[/C][C]-0.749419431553215[/C][/ROW]
[ROW][C]36[/C][C]106[/C][C]106.896012903542[/C][C]-0.896012903542142[/C][/ROW]
[ROW][C]37[/C][C]105.3[/C][C]111.237615829318[/C][C]-5.93761582931784[/C][/ROW]
[ROW][C]38[/C][C]118.8[/C][C]103.456586961089[/C][C]15.3434130389106[/C][/ROW]
[ROW][C]39[/C][C]106.1[/C][C]103.492343164354[/C][C]2.60765683564573[/C][/ROW]
[ROW][C]40[/C][C]109.3[/C][C]107.550438479735[/C][C]1.74956152026488[/C][/ROW]
[ROW][C]41[/C][C]117.2[/C][C]111.852708891463[/C][C]5.34729110853723[/C][/ROW]
[ROW][C]42[/C][C]92.5[/C][C]104.494504549251[/C][C]-11.9945045492507[/C][/ROW]
[ROW][C]43[/C][C]104.2[/C][C]102.652133206722[/C][C]1.54786679327802[/C][/ROW]
[ROW][C]44[/C][C]112.5[/C][C]107.909870200568[/C][C]4.59012979943216[/C][/ROW]
[ROW][C]45[/C][C]122.4[/C][C]112.462885389352[/C][C]9.9371146106483[/C][/ROW]
[ROW][C]46[/C][C]113.3[/C][C]105.203012332260[/C][C]8.0969876677403[/C][/ROW]
[ROW][C]47[/C][C]100[/C][C]104.127625013668[/C][C]-4.12762501366764[/C][/ROW]
[ROW][C]48[/C][C]110.7[/C][C]108.156220943512[/C][C]2.54377905648754[/C][/ROW]
[ROW][C]49[/C][C]112.8[/C][C]112.827233674440[/C][C]-0.0272336744404358[/C][/ROW]
[ROW][C]50[/C][C]109.8[/C][C]105.183868605380[/C][C]4.61613139461988[/C][/ROW]
[ROW][C]51[/C][C]117.3[/C][C]104.408391706404[/C][C]12.8916082935957[/C][/ROW]
[ROW][C]52[/C][C]109.1[/C][C]109.459633001498[/C][C]-0.359633001497983[/C][/ROW]
[ROW][C]53[/C][C]115.9[/C][C]113.201415088041[/C][C]2.69858491195884[/C][/ROW]
[ROW][C]54[/C][C]96[/C][C]105.789128539013[/C][C]-9.78912853901304[/C][/ROW]
[ROW][C]55[/C][C]99.8[/C][C]104.182752280773[/C][C]-4.38275228077254[/C][/ROW]
[ROW][C]56[/C][C]116.8[/C][C]109.052080698394[/C][C]7.74791930160593[/C][/ROW]
[ROW][C]57[/C][C]115.7[/C][C]114.032836977450[/C][C]1.66716302254972[/C][/ROW]
[ROW][C]58[/C][C]99.4[/C][C]106.232141852198[/C][C]-6.83214185219783[/C][/ROW]
[ROW][C]59[/C][C]94.3[/C][C]104.802761907173[/C][C]-10.5027619071735[/C][/ROW]
[ROW][C]60[/C][C]91[/C][C]109.234516106011[/C][C]-18.2345161060106[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57613&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57613&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
197106.626092350142-9.62609235014232
2112.798.972894152569913.7271058474302
3102.999.11681476946683.78318523053323
497.4103.317490448272-5.91749044827176
5111.4107.1920197697274.20798023027294
687.4100.133725847131-12.7337258471312
796.898.3257704543946-1.52577045439456
8114.1103.47042647035210.6295735296477
9110.3108.4659324421771.83406755782345
10103.9100.5324900820123.36750991798802
11101.699.5898499983322.01015000166796
1294.6104.159267996337-9.55926799633732
1395.9107.960048853953-12.0600488539525
14104.7100.2773512708444.4226487291558
15102.8100.0820289540772.71797104592313
1698.1104.671113209106-6.57111320910617
17113.9108.5849750446095.31502495539051
1880.9101.615179278622-20.7151792786217
1995.799.3647331028447-3.6647331028447
20113.2104.7748835886278.42511641137332
21105.9109.780222688963-3.88022268896291
22108.8101.6747005798387.12529942016179
23102.3101.1893009719671.11069902803336
2499105.552223271220-6.55222327121975
25100.7109.534917006307-8.83491700630714
26115.5101.87188568022313.6281143197772
27100.7101.971557218816-1.27155721881571
28109.9105.9264046848203.97359531517952
29114.6110.5236689519084.07633104809161
3085.4103.008134553504-17.6081345535042
31100.5100.944517819455-0.44451781945529
32114.8106.3694179980058.43058200199472
33116.5111.2174270421495.28257295785061
34112.9103.5543957160659.34560428393495
35102102.749419431553-0.749419431553215
36106106.896012903542-0.896012903542142
37105.3111.237615829318-5.93761582931784
38118.8103.45658696108915.3434130389106
39106.1103.4923431643542.60765683564573
40109.3107.5504384797351.74956152026488
41117.2111.8527088914635.34729110853723
4292.5104.494504549251-11.9945045492507
43104.2102.6521332067221.54786679327802
44112.5107.9098702005684.59012979943216
45122.4112.4628853893529.9371146106483
46113.3105.2030123322608.0969876677403
47100104.127625013668-4.12762501366764
48110.7108.1562209435122.54377905648754
49112.8112.827233674440-0.0272336744404358
50109.8105.1838686053804.61613139461988
51117.3104.40839170640412.8916082935957
52109.1109.459633001498-0.359633001497983
53115.9113.2014150880412.69858491195884
5496105.789128539013-9.78912853901304
5599.8104.182752280773-4.38275228077254
56116.8109.0520806983947.74791930160593
57115.7114.0328369774501.66716302254972
5899.4106.232141852198-6.83214185219783
5994.3104.802761907173-10.5027619071735
6091109.234516106011-18.2345161060106







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.9410515042371830.1178969915256340.0589484957628168
100.8840722328920640.2318555342158710.115927767107936
110.8039201079331870.3921597841336270.196079892066813
120.8082932586774180.3834134826451640.191706741322582
130.7988751420404970.4022497159190060.201124857959503
140.7324364684046740.5351270631906510.267563531595326
150.6472154969830550.705569006033890.352784503016945
160.5684065564765970.8631868870468060.431593443523403
170.554628197195980.890743605608040.44537180280402
180.8147596909249490.3704806181501020.185240309075051
190.768017834509620.463964330980760.23198216549038
200.7914111462643090.4171777074713820.208588853735691
210.7463595153207840.5072809693584320.253640484679216
220.7387329598308070.5225340803383860.261267040169193
230.668334521487990.663330957024020.33166547851201
240.6377786273059030.7244427453881950.362221372694097
250.6525343889143550.694931222171290.347465611085645
260.731651424561260.5366971508774810.268348575438740
270.6719250563391520.6561498873216950.328074943660848
280.6075570002557240.7848859994885520.392442999744276
290.5567885459636370.8864229080727260.443211454036363
300.8380808198768080.3238383602463840.161919180123192
310.7908061299597470.4183877400805070.209193870040253
320.7609878655597930.4780242688804150.239012134440207
330.7221258715412130.5557482569175730.277874128458787
340.6952775049950270.6094449900099450.304722495004973
350.6397103129908360.7205793740183290.360289687009164
360.5810380602267880.8379238795464230.418961939773212
370.6594507092155250.681098581568950.340549290784475
380.757212171323480.4855756573530410.242787828676520
390.7053087394027830.5893825211944350.294691260597217
400.6342971080028920.7314057839942160.365702891997108
410.556106442611670.887787114776660.44389355738833
420.7808860752554230.4382278494891530.219113924744577
430.7070706180758610.5858587638482780.292929381924139
440.6217566586663890.7564866826672210.378243341333611
450.5400917374190020.9198165251619960.459908262580998
460.4502941392505250.9005882785010510.549705860749474
470.5651139587204050.869772082559190.434886041279595
480.4494097613247650.898819522649530.550590238675235
490.4586534460984890.9173068921969790.541346553901511
500.324146996620250.64829399324050.67585300337975
510.2868376925368640.5736753850737290.713162307463136

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
9 & 0.941051504237183 & 0.117896991525634 & 0.0589484957628168 \tabularnewline
10 & 0.884072232892064 & 0.231855534215871 & 0.115927767107936 \tabularnewline
11 & 0.803920107933187 & 0.392159784133627 & 0.196079892066813 \tabularnewline
12 & 0.808293258677418 & 0.383413482645164 & 0.191706741322582 \tabularnewline
13 & 0.798875142040497 & 0.402249715919006 & 0.201124857959503 \tabularnewline
14 & 0.732436468404674 & 0.535127063190651 & 0.267563531595326 \tabularnewline
15 & 0.647215496983055 & 0.70556900603389 & 0.352784503016945 \tabularnewline
16 & 0.568406556476597 & 0.863186887046806 & 0.431593443523403 \tabularnewline
17 & 0.55462819719598 & 0.89074360560804 & 0.44537180280402 \tabularnewline
18 & 0.814759690924949 & 0.370480618150102 & 0.185240309075051 \tabularnewline
19 & 0.76801783450962 & 0.46396433098076 & 0.23198216549038 \tabularnewline
20 & 0.791411146264309 & 0.417177707471382 & 0.208588853735691 \tabularnewline
21 & 0.746359515320784 & 0.507280969358432 & 0.253640484679216 \tabularnewline
22 & 0.738732959830807 & 0.522534080338386 & 0.261267040169193 \tabularnewline
23 & 0.66833452148799 & 0.66333095702402 & 0.33166547851201 \tabularnewline
24 & 0.637778627305903 & 0.724442745388195 & 0.362221372694097 \tabularnewline
25 & 0.652534388914355 & 0.69493122217129 & 0.347465611085645 \tabularnewline
26 & 0.73165142456126 & 0.536697150877481 & 0.268348575438740 \tabularnewline
27 & 0.671925056339152 & 0.656149887321695 & 0.328074943660848 \tabularnewline
28 & 0.607557000255724 & 0.784885999488552 & 0.392442999744276 \tabularnewline
29 & 0.556788545963637 & 0.886422908072726 & 0.443211454036363 \tabularnewline
30 & 0.838080819876808 & 0.323838360246384 & 0.161919180123192 \tabularnewline
31 & 0.790806129959747 & 0.418387740080507 & 0.209193870040253 \tabularnewline
32 & 0.760987865559793 & 0.478024268880415 & 0.239012134440207 \tabularnewline
33 & 0.722125871541213 & 0.555748256917573 & 0.277874128458787 \tabularnewline
34 & 0.695277504995027 & 0.609444990009945 & 0.304722495004973 \tabularnewline
35 & 0.639710312990836 & 0.720579374018329 & 0.360289687009164 \tabularnewline
36 & 0.581038060226788 & 0.837923879546423 & 0.418961939773212 \tabularnewline
37 & 0.659450709215525 & 0.68109858156895 & 0.340549290784475 \tabularnewline
38 & 0.75721217132348 & 0.485575657353041 & 0.242787828676520 \tabularnewline
39 & 0.705308739402783 & 0.589382521194435 & 0.294691260597217 \tabularnewline
40 & 0.634297108002892 & 0.731405783994216 & 0.365702891997108 \tabularnewline
41 & 0.55610644261167 & 0.88778711477666 & 0.44389355738833 \tabularnewline
42 & 0.780886075255423 & 0.438227849489153 & 0.219113924744577 \tabularnewline
43 & 0.707070618075861 & 0.585858763848278 & 0.292929381924139 \tabularnewline
44 & 0.621756658666389 & 0.756486682667221 & 0.378243341333611 \tabularnewline
45 & 0.540091737419002 & 0.919816525161996 & 0.459908262580998 \tabularnewline
46 & 0.450294139250525 & 0.900588278501051 & 0.549705860749474 \tabularnewline
47 & 0.565113958720405 & 0.86977208255919 & 0.434886041279595 \tabularnewline
48 & 0.449409761324765 & 0.89881952264953 & 0.550590238675235 \tabularnewline
49 & 0.458653446098489 & 0.917306892196979 & 0.541346553901511 \tabularnewline
50 & 0.32414699662025 & 0.6482939932405 & 0.67585300337975 \tabularnewline
51 & 0.286837692536864 & 0.573675385073729 & 0.713162307463136 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57613&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.941051504237183[/C][C]0.117896991525634[/C][C]0.0589484957628168[/C][/ROW]
[ROW][C]10[/C][C]0.884072232892064[/C][C]0.231855534215871[/C][C]0.115927767107936[/C][/ROW]
[ROW][C]11[/C][C]0.803920107933187[/C][C]0.392159784133627[/C][C]0.196079892066813[/C][/ROW]
[ROW][C]12[/C][C]0.808293258677418[/C][C]0.383413482645164[/C][C]0.191706741322582[/C][/ROW]
[ROW][C]13[/C][C]0.798875142040497[/C][C]0.402249715919006[/C][C]0.201124857959503[/C][/ROW]
[ROW][C]14[/C][C]0.732436468404674[/C][C]0.535127063190651[/C][C]0.267563531595326[/C][/ROW]
[ROW][C]15[/C][C]0.647215496983055[/C][C]0.70556900603389[/C][C]0.352784503016945[/C][/ROW]
[ROW][C]16[/C][C]0.568406556476597[/C][C]0.863186887046806[/C][C]0.431593443523403[/C][/ROW]
[ROW][C]17[/C][C]0.55462819719598[/C][C]0.89074360560804[/C][C]0.44537180280402[/C][/ROW]
[ROW][C]18[/C][C]0.814759690924949[/C][C]0.370480618150102[/C][C]0.185240309075051[/C][/ROW]
[ROW][C]19[/C][C]0.76801783450962[/C][C]0.46396433098076[/C][C]0.23198216549038[/C][/ROW]
[ROW][C]20[/C][C]0.791411146264309[/C][C]0.417177707471382[/C][C]0.208588853735691[/C][/ROW]
[ROW][C]21[/C][C]0.746359515320784[/C][C]0.507280969358432[/C][C]0.253640484679216[/C][/ROW]
[ROW][C]22[/C][C]0.738732959830807[/C][C]0.522534080338386[/C][C]0.261267040169193[/C][/ROW]
[ROW][C]23[/C][C]0.66833452148799[/C][C]0.66333095702402[/C][C]0.33166547851201[/C][/ROW]
[ROW][C]24[/C][C]0.637778627305903[/C][C]0.724442745388195[/C][C]0.362221372694097[/C][/ROW]
[ROW][C]25[/C][C]0.652534388914355[/C][C]0.69493122217129[/C][C]0.347465611085645[/C][/ROW]
[ROW][C]26[/C][C]0.73165142456126[/C][C]0.536697150877481[/C][C]0.268348575438740[/C][/ROW]
[ROW][C]27[/C][C]0.671925056339152[/C][C]0.656149887321695[/C][C]0.328074943660848[/C][/ROW]
[ROW][C]28[/C][C]0.607557000255724[/C][C]0.784885999488552[/C][C]0.392442999744276[/C][/ROW]
[ROW][C]29[/C][C]0.556788545963637[/C][C]0.886422908072726[/C][C]0.443211454036363[/C][/ROW]
[ROW][C]30[/C][C]0.838080819876808[/C][C]0.323838360246384[/C][C]0.161919180123192[/C][/ROW]
[ROW][C]31[/C][C]0.790806129959747[/C][C]0.418387740080507[/C][C]0.209193870040253[/C][/ROW]
[ROW][C]32[/C][C]0.760987865559793[/C][C]0.478024268880415[/C][C]0.239012134440207[/C][/ROW]
[ROW][C]33[/C][C]0.722125871541213[/C][C]0.555748256917573[/C][C]0.277874128458787[/C][/ROW]
[ROW][C]34[/C][C]0.695277504995027[/C][C]0.609444990009945[/C][C]0.304722495004973[/C][/ROW]
[ROW][C]35[/C][C]0.639710312990836[/C][C]0.720579374018329[/C][C]0.360289687009164[/C][/ROW]
[ROW][C]36[/C][C]0.581038060226788[/C][C]0.837923879546423[/C][C]0.418961939773212[/C][/ROW]
[ROW][C]37[/C][C]0.659450709215525[/C][C]0.68109858156895[/C][C]0.340549290784475[/C][/ROW]
[ROW][C]38[/C][C]0.75721217132348[/C][C]0.485575657353041[/C][C]0.242787828676520[/C][/ROW]
[ROW][C]39[/C][C]0.705308739402783[/C][C]0.589382521194435[/C][C]0.294691260597217[/C][/ROW]
[ROW][C]40[/C][C]0.634297108002892[/C][C]0.731405783994216[/C][C]0.365702891997108[/C][/ROW]
[ROW][C]41[/C][C]0.55610644261167[/C][C]0.88778711477666[/C][C]0.44389355738833[/C][/ROW]
[ROW][C]42[/C][C]0.780886075255423[/C][C]0.438227849489153[/C][C]0.219113924744577[/C][/ROW]
[ROW][C]43[/C][C]0.707070618075861[/C][C]0.585858763848278[/C][C]0.292929381924139[/C][/ROW]
[ROW][C]44[/C][C]0.621756658666389[/C][C]0.756486682667221[/C][C]0.378243341333611[/C][/ROW]
[ROW][C]45[/C][C]0.540091737419002[/C][C]0.919816525161996[/C][C]0.459908262580998[/C][/ROW]
[ROW][C]46[/C][C]0.450294139250525[/C][C]0.900588278501051[/C][C]0.549705860749474[/C][/ROW]
[ROW][C]47[/C][C]0.565113958720405[/C][C]0.86977208255919[/C][C]0.434886041279595[/C][/ROW]
[ROW][C]48[/C][C]0.449409761324765[/C][C]0.89881952264953[/C][C]0.550590238675235[/C][/ROW]
[ROW][C]49[/C][C]0.458653446098489[/C][C]0.917306892196979[/C][C]0.541346553901511[/C][/ROW]
[ROW][C]50[/C][C]0.32414699662025[/C][C]0.6482939932405[/C][C]0.67585300337975[/C][/ROW]
[ROW][C]51[/C][C]0.286837692536864[/C][C]0.573675385073729[/C][C]0.713162307463136[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57613&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57613&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.9410515042371830.1178969915256340.0589484957628168
100.8840722328920640.2318555342158710.115927767107936
110.8039201079331870.3921597841336270.196079892066813
120.8082932586774180.3834134826451640.191706741322582
130.7988751420404970.4022497159190060.201124857959503
140.7324364684046740.5351270631906510.267563531595326
150.6472154969830550.705569006033890.352784503016945
160.5684065564765970.8631868870468060.431593443523403
170.554628197195980.890743605608040.44537180280402
180.8147596909249490.3704806181501020.185240309075051
190.768017834509620.463964330980760.23198216549038
200.7914111462643090.4171777074713820.208588853735691
210.7463595153207840.5072809693584320.253640484679216
220.7387329598308070.5225340803383860.261267040169193
230.668334521487990.663330957024020.33166547851201
240.6377786273059030.7244427453881950.362221372694097
250.6525343889143550.694931222171290.347465611085645
260.731651424561260.5366971508774810.268348575438740
270.6719250563391520.6561498873216950.328074943660848
280.6075570002557240.7848859994885520.392442999744276
290.5567885459636370.8864229080727260.443211454036363
300.8380808198768080.3238383602463840.161919180123192
310.7908061299597470.4183877400805070.209193870040253
320.7609878655597930.4780242688804150.239012134440207
330.7221258715412130.5557482569175730.277874128458787
340.6952775049950270.6094449900099450.304722495004973
350.6397103129908360.7205793740183290.360289687009164
360.5810380602267880.8379238795464230.418961939773212
370.6594507092155250.681098581568950.340549290784475
380.757212171323480.4855756573530410.242787828676520
390.7053087394027830.5893825211944350.294691260597217
400.6342971080028920.7314057839942160.365702891997108
410.556106442611670.887787114776660.44389355738833
420.7808860752554230.4382278494891530.219113924744577
430.7070706180758610.5858587638482780.292929381924139
440.6217566586663890.7564866826672210.378243341333611
450.5400917374190020.9198165251619960.459908262580998
460.4502941392505250.9005882785010510.549705860749474
470.5651139587204050.869772082559190.434886041279595
480.4494097613247650.898819522649530.550590238675235
490.4586534460984890.9173068921969790.541346553901511
500.324146996620250.64829399324050.67585300337975
510.2868376925368640.5736753850737290.713162307463136







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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57613&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')
}