Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 26 Nov 2009 10:35:05 -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/26/t1259257056g4o2hani37cuo34.htm/, Retrieved Mon, 29 Apr 2024 03:02:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60197, Retrieved Mon, 29 Apr 2024 03:02:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsLinear Trend
Estimated Impact96
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS 7:Multiple Reg...] [2009-11-26 17:35:05] [63d6214c2814604a6f6cfa44dba5912e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.1	1.3
7.7	1.3
7.5	1.2
7.6	1.1
7.8	1.4
7.8	1.2
7.8	1.5
7.5	1.1
7.5	1.3
7.1	1.5
7.5	1.1
7.5	1.4
7.6	1.3
7.7	1.5
7.7	1.6
7.9	1.7
8.1	1.1
8.2	1.6
8.2	1.3
8.2	1.7
7.9	1.6
7.3	1.7
6.9	1.9
6.6	1.8
6.7	1.9
6.9	1.6
7.0	1.5
7.1	1.6
7.2	1.6
7.1	1.7
6.9	2.0
7.0	2.0
6.8	1.9
6.4	1.7
6.7	1.8
6.6	1.9
6.4	1.7
6.3	2.0
6.2	2.1
6.5	2.4
6.8	2.5
6.8	2.5
6.4	2.6
6.1	2.2
5.8	2.5
6.1	2.8
7.2	2.8
7.3	2.9
6.9	3.0
6.1	3.1
5.8	2.9
6.2	2.7
7.1	2.2
7.7	2.5
7.9	2.3
7.7	2.6
7.4	2.3
7.5	2.2
8.0	1.8
8.1	1.8




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60197&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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8.6179974317817 -0.784077046548957X[t] -0.131680096308189M1[t] -0.288490850722311M2[t] -0.423709309791332M3[t] -0.176201605136436M4[t] + 0.0501722311396466M5[t] + 0.276087640449438M6[t] + 0.223595345104334M7[t] + 0.0640584269662919M8[t] -0.159796950240770M9[t] -0.316607704654896M10[t] -0.0188707865168539M11[t] + 0.00385537720706263t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.6179974317817 -0.784077046548957X[t] -0.131680096308189M1[t] -0.288490850722311M2[t] -0.423709309791332M3[t] -0.176201605136436M4[t] +  0.0501722311396466M5[t] +  0.276087640449438M6[t] +  0.223595345104334M7[t] +  0.0640584269662919M8[t] -0.159796950240770M9[t] -0.316607704654896M10[t] -0.0188707865168539M11[t] +  0.00385537720706263t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60197&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.6179974317817 -0.784077046548957X[t] -0.131680096308189M1[t] -0.288490850722311M2[t] -0.423709309791332M3[t] -0.176201605136436M4[t] +  0.0501722311396466M5[t] +  0.276087640449438M6[t] +  0.223595345104334M7[t] +  0.0640584269662919M8[t] -0.159796950240770M9[t] -0.316607704654896M10[t] -0.0188707865168539M11[t] +  0.00385537720706263t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60197&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8.6179974317817 -0.784077046548957X[t] -0.131680096308189M1[t] -0.288490850722311M2[t] -0.423709309791332M3[t] -0.176201605136436M4[t] + 0.0501722311396466M5[t] + 0.276087640449438M6[t] + 0.223595345104334M7[t] + 0.0640584269662919M8[t] -0.159796950240770M9[t] -0.316607704654896M10[t] -0.0188707865168539M11[t] + 0.00385537720706263t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.61799743178170.38908622.149400
X-0.7840770465489570.249202-3.14630.0028980.001449
M1-0.1316800963081890.364768-0.3610.7197540.359877
M2-0.2884908507223110.365305-0.78970.433740.21687
M3-0.4237093097913320.362866-1.16770.2489550.124477
M4-0.1762016051364360.362764-0.48570.6294720.314736
M50.05017223113964660.3604050.13920.8898910.444946
M60.2760876404494380.3608980.7650.4481770.224089
M70.2235953451043340.3608590.61960.5385650.269283
M80.06405842696629190.3599090.1780.8595160.429758
M9-0.1597969502407700.359486-0.44450.6587540.329377
M10-0.3166077046548960.359682-0.88020.3833030.191651
M11-0.01887078651685390.35939-0.05250.9583510.479176
t0.003855377207062630.0078970.48820.6277160.313858

\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) & 8.6179974317817 & 0.389086 & 22.1494 & 0 & 0 \tabularnewline
X & -0.784077046548957 & 0.249202 & -3.1463 & 0.002898 & 0.001449 \tabularnewline
M1 & -0.131680096308189 & 0.364768 & -0.361 & 0.719754 & 0.359877 \tabularnewline
M2 & -0.288490850722311 & 0.365305 & -0.7897 & 0.43374 & 0.21687 \tabularnewline
M3 & -0.423709309791332 & 0.362866 & -1.1677 & 0.248955 & 0.124477 \tabularnewline
M4 & -0.176201605136436 & 0.362764 & -0.4857 & 0.629472 & 0.314736 \tabularnewline
M5 & 0.0501722311396466 & 0.360405 & 0.1392 & 0.889891 & 0.444946 \tabularnewline
M6 & 0.276087640449438 & 0.360898 & 0.765 & 0.448177 & 0.224089 \tabularnewline
M7 & 0.223595345104334 & 0.360859 & 0.6196 & 0.538565 & 0.269283 \tabularnewline
M8 & 0.0640584269662919 & 0.359909 & 0.178 & 0.859516 & 0.429758 \tabularnewline
M9 & -0.159796950240770 & 0.359486 & -0.4445 & 0.658754 & 0.329377 \tabularnewline
M10 & -0.316607704654896 & 0.359682 & -0.8802 & 0.383303 & 0.191651 \tabularnewline
M11 & -0.0188707865168539 & 0.35939 & -0.0525 & 0.958351 & 0.479176 \tabularnewline
t & 0.00385537720706263 & 0.007897 & 0.4882 & 0.627716 & 0.313858 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60197&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]8.6179974317817[/C][C]0.389086[/C][C]22.1494[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.784077046548957[/C][C]0.249202[/C][C]-3.1463[/C][C]0.002898[/C][C]0.001449[/C][/ROW]
[ROW][C]M1[/C][C]-0.131680096308189[/C][C]0.364768[/C][C]-0.361[/C][C]0.719754[/C][C]0.359877[/C][/ROW]
[ROW][C]M2[/C][C]-0.288490850722311[/C][C]0.365305[/C][C]-0.7897[/C][C]0.43374[/C][C]0.21687[/C][/ROW]
[ROW][C]M3[/C][C]-0.423709309791332[/C][C]0.362866[/C][C]-1.1677[/C][C]0.248955[/C][C]0.124477[/C][/ROW]
[ROW][C]M4[/C][C]-0.176201605136436[/C][C]0.362764[/C][C]-0.4857[/C][C]0.629472[/C][C]0.314736[/C][/ROW]
[ROW][C]M5[/C][C]0.0501722311396466[/C][C]0.360405[/C][C]0.1392[/C][C]0.889891[/C][C]0.444946[/C][/ROW]
[ROW][C]M6[/C][C]0.276087640449438[/C][C]0.360898[/C][C]0.765[/C][C]0.448177[/C][C]0.224089[/C][/ROW]
[ROW][C]M7[/C][C]0.223595345104334[/C][C]0.360859[/C][C]0.6196[/C][C]0.538565[/C][C]0.269283[/C][/ROW]
[ROW][C]M8[/C][C]0.0640584269662919[/C][C]0.359909[/C][C]0.178[/C][C]0.859516[/C][C]0.429758[/C][/ROW]
[ROW][C]M9[/C][C]-0.159796950240770[/C][C]0.359486[/C][C]-0.4445[/C][C]0.658754[/C][C]0.329377[/C][/ROW]
[ROW][C]M10[/C][C]-0.316607704654896[/C][C]0.359682[/C][C]-0.8802[/C][C]0.383303[/C][C]0.191651[/C][/ROW]
[ROW][C]M11[/C][C]-0.0188707865168539[/C][C]0.35939[/C][C]-0.0525[/C][C]0.958351[/C][C]0.479176[/C][/ROW]
[ROW][C]t[/C][C]0.00385537720706263[/C][C]0.007897[/C][C]0.4882[/C][C]0.627716[/C][C]0.313858[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60197&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60197&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)8.61799743178170.38908622.149400
X-0.7840770465489570.249202-3.14630.0028980.001449
M1-0.1316800963081890.364768-0.3610.7197540.359877
M2-0.2884908507223110.365305-0.78970.433740.21687
M3-0.4237093097913320.362866-1.16770.2489550.124477
M4-0.1762016051364360.362764-0.48570.6294720.314736
M50.05017223113964660.3604050.13920.8898910.444946
M60.2760876404494380.3608980.7650.4481770.224089
M70.2235953451043340.3608590.61960.5385650.269283
M80.06405842696629190.3599090.1780.8595160.429758
M9-0.1597969502407700.359486-0.44450.6587540.329377
M10-0.3166077046548960.359682-0.88020.3833030.191651
M11-0.01887078651685390.35939-0.05250.9583510.479176
t0.003855377207062630.0078970.48820.6277160.313858







Multiple Linear Regression - Regression Statistics
Multiple R0.650277121162806
R-squared0.422860334307787
Adjusted R-squared0.259755646177378
F-TEST (value)2.59257007971282
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00877358101141823
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.567813318395598
Sum Squared Residuals14.8309503691814

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.650277121162806 \tabularnewline
R-squared & 0.422860334307787 \tabularnewline
Adjusted R-squared & 0.259755646177378 \tabularnewline
F-TEST (value) & 2.59257007971282 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.00877358101141823 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.567813318395598 \tabularnewline
Sum Squared Residuals & 14.8309503691814 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60197&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.650277121162806[/C][/ROW]
[ROW][C]R-squared[/C][C]0.422860334307787[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.259755646177378[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.59257007971282[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.00877358101141823[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.567813318395598[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]14.8309503691814[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60197&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60197&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.650277121162806
R-squared0.422860334307787
Adjusted R-squared0.259755646177378
F-TEST (value)2.59257007971282
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.00877358101141823
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.567813318395598
Sum Squared Residuals14.8309503691814







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.17.470872552166950.629127447833052
27.77.317917174959870.382082825040129
37.57.264961797752810.235038202247192
47.67.594732584269660.00526741573033712
57.87.589738683788120.210261316211878
67.87.97632487961477-0.176324879614767
77.87.692464847512040.107535152487962
87.57.85041412520064-0.350414125200642
97.57.473598715890850.0264012841091502
107.17.163827929374-0.0638279293739963
117.57.77905104333868-0.279051043338684
127.57.56655409309791-0.0665540930979128
137.67.517137078651680.0828629213483181
147.77.207366292134830.492633707865169
157.76.997595505617980.702404494382023
167.97.170550882825040.729449117174961
178.17.871226324237560.22877367576244
188.27.708958587479930.491041412520064
198.27.895544783306580.304455216693418
208.27.426232423756020.773767576243981
217.97.284640128410910.615359871589086
227.37.053277046548960.246722953451044
236.97.19805393258427-0.298053932584269
246.67.29918780096308-0.699187800963082
256.77.09295537720706-0.392955377207059
266.97.17522311396469-0.275223113964687
2777.12226773675762-0.122267736757625
287.17.29522311396469-0.195223113964687
297.27.52545232744783-0.325452327447833
307.17.67681540930979-0.576815409309792
316.97.39295537720706-0.492955377207062
3277.23727383627608-0.237273836276083
336.87.09568154093098-0.295681540930979
346.47.0995415730337-0.699541573033708
356.77.32272616372392-0.622726163723916
366.67.26704462279294-0.667044622792938
376.47.2960353130016-0.896035313001602
386.36.90785682182986-0.607856821829856
396.26.698086035313-0.498086035313002
406.56.71422600321027-0.214226003210273
416.86.86604751203852-0.0660475120385234
426.87.09581829855538-0.295818298555377
436.46.96877367576244-0.56877367576244
446.17.12672295345104-1.02672295345104
455.86.67149983948636-0.871499839486357
466.16.2833213483146-0.183321348314607
477.26.584913643659710.615086356340289
487.36.529232102728730.770767897271267
496.96.322999678972710.57700032102729
506.16.091636597110750.00836340288924503
515.86.11708892455859-0.317088924558588
526.26.52526741573034-0.325267415730337
537.17.14753515248796-0.0475351524879622
547.77.142082825040130.557917174959871
557.97.250261316211880.649738683788121
567.76.859356661316210.840643338683788
577.46.87457977528090.525420224719100
587.56.800032102728730.699967897271267
5987.415255216693420.58474478330658
608.17.437981380417340.662018619582663

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.1 & 7.47087255216695 & 0.629127447833052 \tabularnewline
2 & 7.7 & 7.31791717495987 & 0.382082825040129 \tabularnewline
3 & 7.5 & 7.26496179775281 & 0.235038202247192 \tabularnewline
4 & 7.6 & 7.59473258426966 & 0.00526741573033712 \tabularnewline
5 & 7.8 & 7.58973868378812 & 0.210261316211878 \tabularnewline
6 & 7.8 & 7.97632487961477 & -0.176324879614767 \tabularnewline
7 & 7.8 & 7.69246484751204 & 0.107535152487962 \tabularnewline
8 & 7.5 & 7.85041412520064 & -0.350414125200642 \tabularnewline
9 & 7.5 & 7.47359871589085 & 0.0264012841091502 \tabularnewline
10 & 7.1 & 7.163827929374 & -0.0638279293739963 \tabularnewline
11 & 7.5 & 7.77905104333868 & -0.279051043338684 \tabularnewline
12 & 7.5 & 7.56655409309791 & -0.0665540930979128 \tabularnewline
13 & 7.6 & 7.51713707865168 & 0.0828629213483181 \tabularnewline
14 & 7.7 & 7.20736629213483 & 0.492633707865169 \tabularnewline
15 & 7.7 & 6.99759550561798 & 0.702404494382023 \tabularnewline
16 & 7.9 & 7.17055088282504 & 0.729449117174961 \tabularnewline
17 & 8.1 & 7.87122632423756 & 0.22877367576244 \tabularnewline
18 & 8.2 & 7.70895858747993 & 0.491041412520064 \tabularnewline
19 & 8.2 & 7.89554478330658 & 0.304455216693418 \tabularnewline
20 & 8.2 & 7.42623242375602 & 0.773767576243981 \tabularnewline
21 & 7.9 & 7.28464012841091 & 0.615359871589086 \tabularnewline
22 & 7.3 & 7.05327704654896 & 0.246722953451044 \tabularnewline
23 & 6.9 & 7.19805393258427 & -0.298053932584269 \tabularnewline
24 & 6.6 & 7.29918780096308 & -0.699187800963082 \tabularnewline
25 & 6.7 & 7.09295537720706 & -0.392955377207059 \tabularnewline
26 & 6.9 & 7.17522311396469 & -0.275223113964687 \tabularnewline
27 & 7 & 7.12226773675762 & -0.122267736757625 \tabularnewline
28 & 7.1 & 7.29522311396469 & -0.195223113964687 \tabularnewline
29 & 7.2 & 7.52545232744783 & -0.325452327447833 \tabularnewline
30 & 7.1 & 7.67681540930979 & -0.576815409309792 \tabularnewline
31 & 6.9 & 7.39295537720706 & -0.492955377207062 \tabularnewline
32 & 7 & 7.23727383627608 & -0.237273836276083 \tabularnewline
33 & 6.8 & 7.09568154093098 & -0.295681540930979 \tabularnewline
34 & 6.4 & 7.0995415730337 & -0.699541573033708 \tabularnewline
35 & 6.7 & 7.32272616372392 & -0.622726163723916 \tabularnewline
36 & 6.6 & 7.26704462279294 & -0.667044622792938 \tabularnewline
37 & 6.4 & 7.2960353130016 & -0.896035313001602 \tabularnewline
38 & 6.3 & 6.90785682182986 & -0.607856821829856 \tabularnewline
39 & 6.2 & 6.698086035313 & -0.498086035313002 \tabularnewline
40 & 6.5 & 6.71422600321027 & -0.214226003210273 \tabularnewline
41 & 6.8 & 6.86604751203852 & -0.0660475120385234 \tabularnewline
42 & 6.8 & 7.09581829855538 & -0.295818298555377 \tabularnewline
43 & 6.4 & 6.96877367576244 & -0.56877367576244 \tabularnewline
44 & 6.1 & 7.12672295345104 & -1.02672295345104 \tabularnewline
45 & 5.8 & 6.67149983948636 & -0.871499839486357 \tabularnewline
46 & 6.1 & 6.2833213483146 & -0.183321348314607 \tabularnewline
47 & 7.2 & 6.58491364365971 & 0.615086356340289 \tabularnewline
48 & 7.3 & 6.52923210272873 & 0.770767897271267 \tabularnewline
49 & 6.9 & 6.32299967897271 & 0.57700032102729 \tabularnewline
50 & 6.1 & 6.09163659711075 & 0.00836340288924503 \tabularnewline
51 & 5.8 & 6.11708892455859 & -0.317088924558588 \tabularnewline
52 & 6.2 & 6.52526741573034 & -0.325267415730337 \tabularnewline
53 & 7.1 & 7.14753515248796 & -0.0475351524879622 \tabularnewline
54 & 7.7 & 7.14208282504013 & 0.557917174959871 \tabularnewline
55 & 7.9 & 7.25026131621188 & 0.649738683788121 \tabularnewline
56 & 7.7 & 6.85935666131621 & 0.840643338683788 \tabularnewline
57 & 7.4 & 6.8745797752809 & 0.525420224719100 \tabularnewline
58 & 7.5 & 6.80003210272873 & 0.699967897271267 \tabularnewline
59 & 8 & 7.41525521669342 & 0.58474478330658 \tabularnewline
60 & 8.1 & 7.43798138041734 & 0.662018619582663 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60197&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]8.1[/C][C]7.47087255216695[/C][C]0.629127447833052[/C][/ROW]
[ROW][C]2[/C][C]7.7[/C][C]7.31791717495987[/C][C]0.382082825040129[/C][/ROW]
[ROW][C]3[/C][C]7.5[/C][C]7.26496179775281[/C][C]0.235038202247192[/C][/ROW]
[ROW][C]4[/C][C]7.6[/C][C]7.59473258426966[/C][C]0.00526741573033712[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]7.58973868378812[/C][C]0.210261316211878[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]7.97632487961477[/C][C]-0.176324879614767[/C][/ROW]
[ROW][C]7[/C][C]7.8[/C][C]7.69246484751204[/C][C]0.107535152487962[/C][/ROW]
[ROW][C]8[/C][C]7.5[/C][C]7.85041412520064[/C][C]-0.350414125200642[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.47359871589085[/C][C]0.0264012841091502[/C][/ROW]
[ROW][C]10[/C][C]7.1[/C][C]7.163827929374[/C][C]-0.0638279293739963[/C][/ROW]
[ROW][C]11[/C][C]7.5[/C][C]7.77905104333868[/C][C]-0.279051043338684[/C][/ROW]
[ROW][C]12[/C][C]7.5[/C][C]7.56655409309791[/C][C]-0.0665540930979128[/C][/ROW]
[ROW][C]13[/C][C]7.6[/C][C]7.51713707865168[/C][C]0.0828629213483181[/C][/ROW]
[ROW][C]14[/C][C]7.7[/C][C]7.20736629213483[/C][C]0.492633707865169[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]6.99759550561798[/C][C]0.702404494382023[/C][/ROW]
[ROW][C]16[/C][C]7.9[/C][C]7.17055088282504[/C][C]0.729449117174961[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.87122632423756[/C][C]0.22877367576244[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]7.70895858747993[/C][C]0.491041412520064[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.89554478330658[/C][C]0.304455216693418[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]7.42623242375602[/C][C]0.773767576243981[/C][/ROW]
[ROW][C]21[/C][C]7.9[/C][C]7.28464012841091[/C][C]0.615359871589086[/C][/ROW]
[ROW][C]22[/C][C]7.3[/C][C]7.05327704654896[/C][C]0.246722953451044[/C][/ROW]
[ROW][C]23[/C][C]6.9[/C][C]7.19805393258427[/C][C]-0.298053932584269[/C][/ROW]
[ROW][C]24[/C][C]6.6[/C][C]7.29918780096308[/C][C]-0.699187800963082[/C][/ROW]
[ROW][C]25[/C][C]6.7[/C][C]7.09295537720706[/C][C]-0.392955377207059[/C][/ROW]
[ROW][C]26[/C][C]6.9[/C][C]7.17522311396469[/C][C]-0.275223113964687[/C][/ROW]
[ROW][C]27[/C][C]7[/C][C]7.12226773675762[/C][C]-0.122267736757625[/C][/ROW]
[ROW][C]28[/C][C]7.1[/C][C]7.29522311396469[/C][C]-0.195223113964687[/C][/ROW]
[ROW][C]29[/C][C]7.2[/C][C]7.52545232744783[/C][C]-0.325452327447833[/C][/ROW]
[ROW][C]30[/C][C]7.1[/C][C]7.67681540930979[/C][C]-0.576815409309792[/C][/ROW]
[ROW][C]31[/C][C]6.9[/C][C]7.39295537720706[/C][C]-0.492955377207062[/C][/ROW]
[ROW][C]32[/C][C]7[/C][C]7.23727383627608[/C][C]-0.237273836276083[/C][/ROW]
[ROW][C]33[/C][C]6.8[/C][C]7.09568154093098[/C][C]-0.295681540930979[/C][/ROW]
[ROW][C]34[/C][C]6.4[/C][C]7.0995415730337[/C][C]-0.699541573033708[/C][/ROW]
[ROW][C]35[/C][C]6.7[/C][C]7.32272616372392[/C][C]-0.622726163723916[/C][/ROW]
[ROW][C]36[/C][C]6.6[/C][C]7.26704462279294[/C][C]-0.667044622792938[/C][/ROW]
[ROW][C]37[/C][C]6.4[/C][C]7.2960353130016[/C][C]-0.896035313001602[/C][/ROW]
[ROW][C]38[/C][C]6.3[/C][C]6.90785682182986[/C][C]-0.607856821829856[/C][/ROW]
[ROW][C]39[/C][C]6.2[/C][C]6.698086035313[/C][C]-0.498086035313002[/C][/ROW]
[ROW][C]40[/C][C]6.5[/C][C]6.71422600321027[/C][C]-0.214226003210273[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.86604751203852[/C][C]-0.0660475120385234[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]7.09581829855538[/C][C]-0.295818298555377[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]6.96877367576244[/C][C]-0.56877367576244[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]7.12672295345104[/C][C]-1.02672295345104[/C][/ROW]
[ROW][C]45[/C][C]5.8[/C][C]6.67149983948636[/C][C]-0.871499839486357[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.2833213483146[/C][C]-0.183321348314607[/C][/ROW]
[ROW][C]47[/C][C]7.2[/C][C]6.58491364365971[/C][C]0.615086356340289[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]6.52923210272873[/C][C]0.770767897271267[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]6.32299967897271[/C][C]0.57700032102729[/C][/ROW]
[ROW][C]50[/C][C]6.1[/C][C]6.09163659711075[/C][C]0.00836340288924503[/C][/ROW]
[ROW][C]51[/C][C]5.8[/C][C]6.11708892455859[/C][C]-0.317088924558588[/C][/ROW]
[ROW][C]52[/C][C]6.2[/C][C]6.52526741573034[/C][C]-0.325267415730337[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]7.14753515248796[/C][C]-0.0475351524879622[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.14208282504013[/C][C]0.557917174959871[/C][/ROW]
[ROW][C]55[/C][C]7.9[/C][C]7.25026131621188[/C][C]0.649738683788121[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]6.85935666131621[/C][C]0.840643338683788[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]6.8745797752809[/C][C]0.525420224719100[/C][/ROW]
[ROW][C]58[/C][C]7.5[/C][C]6.80003210272873[/C][C]0.699967897271267[/C][/ROW]
[ROW][C]59[/C][C]8[/C][C]7.41525521669342[/C][C]0.58474478330658[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]7.43798138041734[/C][C]0.662018619582663[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60197&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60197&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
18.17.470872552166950.629127447833052
27.77.317917174959870.382082825040129
37.57.264961797752810.235038202247192
47.67.594732584269660.00526741573033712
57.87.589738683788120.210261316211878
67.87.97632487961477-0.176324879614767
77.87.692464847512040.107535152487962
87.57.85041412520064-0.350414125200642
97.57.473598715890850.0264012841091502
107.17.163827929374-0.0638279293739963
117.57.77905104333868-0.279051043338684
127.57.56655409309791-0.0665540930979128
137.67.517137078651680.0828629213483181
147.77.207366292134830.492633707865169
157.76.997595505617980.702404494382023
167.97.170550882825040.729449117174961
178.17.871226324237560.22877367576244
188.27.708958587479930.491041412520064
198.27.895544783306580.304455216693418
208.27.426232423756020.773767576243981
217.97.284640128410910.615359871589086
227.37.053277046548960.246722953451044
236.97.19805393258427-0.298053932584269
246.67.29918780096308-0.699187800963082
256.77.09295537720706-0.392955377207059
266.97.17522311396469-0.275223113964687
2777.12226773675762-0.122267736757625
287.17.29522311396469-0.195223113964687
297.27.52545232744783-0.325452327447833
307.17.67681540930979-0.576815409309792
316.97.39295537720706-0.492955377207062
3277.23727383627608-0.237273836276083
336.87.09568154093098-0.295681540930979
346.47.0995415730337-0.699541573033708
356.77.32272616372392-0.622726163723916
366.67.26704462279294-0.667044622792938
376.47.2960353130016-0.896035313001602
386.36.90785682182986-0.607856821829856
396.26.698086035313-0.498086035313002
406.56.71422600321027-0.214226003210273
416.86.86604751203852-0.0660475120385234
426.87.09581829855538-0.295818298555377
436.46.96877367576244-0.56877367576244
446.17.12672295345104-1.02672295345104
455.86.67149983948636-0.871499839486357
466.16.2833213483146-0.183321348314607
477.26.584913643659710.615086356340289
487.36.529232102728730.770767897271267
496.96.322999678972710.57700032102729
506.16.091636597110750.00836340288924503
515.86.11708892455859-0.317088924558588
526.26.52526741573034-0.325267415730337
537.17.14753515248796-0.0475351524879622
547.77.142082825040130.557917174959871
557.97.250261316211880.649738683788121
567.76.859356661316210.840643338683788
577.46.87457977528090.525420224719100
587.56.800032102728730.699967897271267
5987.415255216693420.58474478330658
608.17.437981380417340.662018619582663







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1008796554688190.2017593109376370.899120344531181
180.04954325512613830.09908651025227660.950456744873862
190.03053545183300830.06107090366601670.969464548166992
200.03085796677336480.06171593354672960.969142033226635
210.02410023271873090.04820046543746180.975899767281269
220.01505266596205230.03010533192410470.984947334037948
230.05521177412790510.1104235482558100.944788225872095
240.1329762934952680.2659525869905360.867023706504732
250.2938397198335870.5876794396671740.706160280166413
260.3234984177008950.6469968354017890.676501582299105
270.3513469685885630.7026939371771260.648653031411437
280.3716309205160400.7432618410320790.62836907948396
290.3520377403000880.7040754806001750.647962259699912
300.3082456607009520.6164913214019050.691754339299048
310.2925345972225680.5850691944451350.707465402777432
320.3065190343819530.6130380687639070.693480965618047
330.3960213204543330.7920426409086660.603978679545667
340.3338223860264900.6676447720529810.66617761397351
350.2440905499927330.4881810999854650.755909450007267
360.1742892100240200.3485784200480390.82571078997598
370.1410856353003360.2821712706006720.858914364699664
380.1025702911135810.2051405822271620.897429708886419
390.1453994978635620.2907989957271240.854600502136438
400.5605079133614080.8789841732771840.439492086638592
410.8544872583765020.2910254832469960.145512741623498
420.958401807255190.08319638548961970.0415981927448099
430.9020022581407430.1959954837185140.0979977418592572

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.100879655468819 & 0.201759310937637 & 0.899120344531181 \tabularnewline
18 & 0.0495432551261383 & 0.0990865102522766 & 0.950456744873862 \tabularnewline
19 & 0.0305354518330083 & 0.0610709036660167 & 0.969464548166992 \tabularnewline
20 & 0.0308579667733648 & 0.0617159335467296 & 0.969142033226635 \tabularnewline
21 & 0.0241002327187309 & 0.0482004654374618 & 0.975899767281269 \tabularnewline
22 & 0.0150526659620523 & 0.0301053319241047 & 0.984947334037948 \tabularnewline
23 & 0.0552117741279051 & 0.110423548255810 & 0.944788225872095 \tabularnewline
24 & 0.132976293495268 & 0.265952586990536 & 0.867023706504732 \tabularnewline
25 & 0.293839719833587 & 0.587679439667174 & 0.706160280166413 \tabularnewline
26 & 0.323498417700895 & 0.646996835401789 & 0.676501582299105 \tabularnewline
27 & 0.351346968588563 & 0.702693937177126 & 0.648653031411437 \tabularnewline
28 & 0.371630920516040 & 0.743261841032079 & 0.62836907948396 \tabularnewline
29 & 0.352037740300088 & 0.704075480600175 & 0.647962259699912 \tabularnewline
30 & 0.308245660700952 & 0.616491321401905 & 0.691754339299048 \tabularnewline
31 & 0.292534597222568 & 0.585069194445135 & 0.707465402777432 \tabularnewline
32 & 0.306519034381953 & 0.613038068763907 & 0.693480965618047 \tabularnewline
33 & 0.396021320454333 & 0.792042640908666 & 0.603978679545667 \tabularnewline
34 & 0.333822386026490 & 0.667644772052981 & 0.66617761397351 \tabularnewline
35 & 0.244090549992733 & 0.488181099985465 & 0.755909450007267 \tabularnewline
36 & 0.174289210024020 & 0.348578420048039 & 0.82571078997598 \tabularnewline
37 & 0.141085635300336 & 0.282171270600672 & 0.858914364699664 \tabularnewline
38 & 0.102570291113581 & 0.205140582227162 & 0.897429708886419 \tabularnewline
39 & 0.145399497863562 & 0.290798995727124 & 0.854600502136438 \tabularnewline
40 & 0.560507913361408 & 0.878984173277184 & 0.439492086638592 \tabularnewline
41 & 0.854487258376502 & 0.291025483246996 & 0.145512741623498 \tabularnewline
42 & 0.95840180725519 & 0.0831963854896197 & 0.0415981927448099 \tabularnewline
43 & 0.902002258140743 & 0.195995483718514 & 0.0979977418592572 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60197&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.100879655468819[/C][C]0.201759310937637[/C][C]0.899120344531181[/C][/ROW]
[ROW][C]18[/C][C]0.0495432551261383[/C][C]0.0990865102522766[/C][C]0.950456744873862[/C][/ROW]
[ROW][C]19[/C][C]0.0305354518330083[/C][C]0.0610709036660167[/C][C]0.969464548166992[/C][/ROW]
[ROW][C]20[/C][C]0.0308579667733648[/C][C]0.0617159335467296[/C][C]0.969142033226635[/C][/ROW]
[ROW][C]21[/C][C]0.0241002327187309[/C][C]0.0482004654374618[/C][C]0.975899767281269[/C][/ROW]
[ROW][C]22[/C][C]0.0150526659620523[/C][C]0.0301053319241047[/C][C]0.984947334037948[/C][/ROW]
[ROW][C]23[/C][C]0.0552117741279051[/C][C]0.110423548255810[/C][C]0.944788225872095[/C][/ROW]
[ROW][C]24[/C][C]0.132976293495268[/C][C]0.265952586990536[/C][C]0.867023706504732[/C][/ROW]
[ROW][C]25[/C][C]0.293839719833587[/C][C]0.587679439667174[/C][C]0.706160280166413[/C][/ROW]
[ROW][C]26[/C][C]0.323498417700895[/C][C]0.646996835401789[/C][C]0.676501582299105[/C][/ROW]
[ROW][C]27[/C][C]0.351346968588563[/C][C]0.702693937177126[/C][C]0.648653031411437[/C][/ROW]
[ROW][C]28[/C][C]0.371630920516040[/C][C]0.743261841032079[/C][C]0.62836907948396[/C][/ROW]
[ROW][C]29[/C][C]0.352037740300088[/C][C]0.704075480600175[/C][C]0.647962259699912[/C][/ROW]
[ROW][C]30[/C][C]0.308245660700952[/C][C]0.616491321401905[/C][C]0.691754339299048[/C][/ROW]
[ROW][C]31[/C][C]0.292534597222568[/C][C]0.585069194445135[/C][C]0.707465402777432[/C][/ROW]
[ROW][C]32[/C][C]0.306519034381953[/C][C]0.613038068763907[/C][C]0.693480965618047[/C][/ROW]
[ROW][C]33[/C][C]0.396021320454333[/C][C]0.792042640908666[/C][C]0.603978679545667[/C][/ROW]
[ROW][C]34[/C][C]0.333822386026490[/C][C]0.667644772052981[/C][C]0.66617761397351[/C][/ROW]
[ROW][C]35[/C][C]0.244090549992733[/C][C]0.488181099985465[/C][C]0.755909450007267[/C][/ROW]
[ROW][C]36[/C][C]0.174289210024020[/C][C]0.348578420048039[/C][C]0.82571078997598[/C][/ROW]
[ROW][C]37[/C][C]0.141085635300336[/C][C]0.282171270600672[/C][C]0.858914364699664[/C][/ROW]
[ROW][C]38[/C][C]0.102570291113581[/C][C]0.205140582227162[/C][C]0.897429708886419[/C][/ROW]
[ROW][C]39[/C][C]0.145399497863562[/C][C]0.290798995727124[/C][C]0.854600502136438[/C][/ROW]
[ROW][C]40[/C][C]0.560507913361408[/C][C]0.878984173277184[/C][C]0.439492086638592[/C][/ROW]
[ROW][C]41[/C][C]0.854487258376502[/C][C]0.291025483246996[/C][C]0.145512741623498[/C][/ROW]
[ROW][C]42[/C][C]0.95840180725519[/C][C]0.0831963854896197[/C][C]0.0415981927448099[/C][/ROW]
[ROW][C]43[/C][C]0.902002258140743[/C][C]0.195995483718514[/C][C]0.0979977418592572[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60197&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1008796554688190.2017593109376370.899120344531181
180.04954325512613830.09908651025227660.950456744873862
190.03053545183300830.06107090366601670.969464548166992
200.03085796677336480.06171593354672960.969142033226635
210.02410023271873090.04820046543746180.975899767281269
220.01505266596205230.03010533192410470.984947334037948
230.05521177412790510.1104235482558100.944788225872095
240.1329762934952680.2659525869905360.867023706504732
250.2938397198335870.5876794396671740.706160280166413
260.3234984177008950.6469968354017890.676501582299105
270.3513469685885630.7026939371771260.648653031411437
280.3716309205160400.7432618410320790.62836907948396
290.3520377403000880.7040754806001750.647962259699912
300.3082456607009520.6164913214019050.691754339299048
310.2925345972225680.5850691944451350.707465402777432
320.3065190343819530.6130380687639070.693480965618047
330.3960213204543330.7920426409086660.603978679545667
340.3338223860264900.6676447720529810.66617761397351
350.2440905499927330.4881810999854650.755909450007267
360.1742892100240200.3485784200480390.82571078997598
370.1410856353003360.2821712706006720.858914364699664
380.1025702911135810.2051405822271620.897429708886419
390.1453994978635620.2907989957271240.854600502136438
400.5605079133614080.8789841732771840.439492086638592
410.8544872583765020.2910254832469960.145512741623498
420.958401807255190.08319638548961970.0415981927448099
430.9020022581407430.1959954837185140.0979977418592572







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60197&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 level20.0740740740740741NOK
10% type I error level60.222222222222222NOK



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