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 09:38:41 -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/t1258562408six2zg3mbchp0he.htm/, Retrieved Sun, 05 May 2024 17:15:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57525, Retrieved Sun, 05 May 2024 17:15:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsws7multipleregressionlineairtrendwmanecogr
Estimated Impact177
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] [] [2009-11-18 16:38:41] [2b548c9d2e9bba6e1eaf65bd4d551f41] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,00	96,80
8,10	114,10
7,70	110,30
7,50	103,90
7,60	101,60
7,80	94,60
7,80	95,90
7,80	104,70
7,50	102,80
7,50	98,10
7,10	113,90
7,50	80,90
7,50	95,70
7,60	113,20
7,70	105,90
7,70	108,80
7,90	102,30
8,10	99,00
8,20	100,70
8,20	115,50
8,20	100,70
7,90	109,90
7,30	114,60
6,90	85,40
6,60	100,50
6,70	114,80
6,90	116,50
7,00	112,90
7,10	102,00
7,20	106,00
7,10	105,30
6,90	118,80
7,00	106,10
6,80	109,30
6,40	117,20
6,70	92,50
6,60	104,20
6,40	112,50
6,30	122,40
6,20	113,30
6,50	100,00
6,80	110,70
6,80	112,80
6,40	109,80
6,10	117,30
5,80	109,10
6,10	115,90
7,20	96,00
7,30	99,80
6,90	116,80
6,10	115,70
5,80	99,40
6,20	94,30
7,10	91,00
7,70	93,20
7,90	103,10
7,70	94,10
7,40	91,80
7,50	102,70
8,00	82,60




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57525&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
Wman[t] = + 11.8416227316364 -0.0442772635382484Ecogr[t] + 0.251375956642180M1[t] + 0.869895185794386M2[t] + 0.684255461872863M3[t] + 0.316126796577316M4[t] + 0.218407596118930M5[t] + 0.587822141800411M6[t] + 0.785941677373967M7[t] + 1.11525514421362M8[t] + 0.721295203250312M9[t] + 0.49617348337196M10[t] + 0.724083400897677M11[t] -0.0196735477030671t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Wman[t] =  +  11.8416227316364 -0.0442772635382484Ecogr[t] +  0.251375956642180M1[t] +  0.869895185794386M2[t] +  0.684255461872863M3[t] +  0.316126796577316M4[t] +  0.218407596118930M5[t] +  0.587822141800411M6[t] +  0.785941677373967M7[t] +  1.11525514421362M8[t] +  0.721295203250312M9[t] +  0.49617348337196M10[t] +  0.724083400897677M11[t] -0.0196735477030671t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57525&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Wman[t] =  +  11.8416227316364 -0.0442772635382484Ecogr[t] +  0.251375956642180M1[t] +  0.869895185794386M2[t] +  0.684255461872863M3[t] +  0.316126796577316M4[t] +  0.218407596118930M5[t] +  0.587822141800411M6[t] +  0.785941677373967M7[t] +  1.11525514421362M8[t] +  0.721295203250312M9[t] +  0.49617348337196M10[t] +  0.724083400897677M11[t] -0.0196735477030671t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57525&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57525&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
Wman[t] = + 11.8416227316364 -0.0442772635382484Ecogr[t] + 0.251375956642180M1[t] + 0.869895185794386M2[t] + 0.684255461872863M3[t] + 0.316126796577316M4[t] + 0.218407596118930M5[t] + 0.587822141800411M6[t] + 0.785941677373967M7[t] + 1.11525514421362M8[t] + 0.721295203250312M9[t] + 0.49617348337196M10[t] + 0.724083400897677M11[t] -0.0196735477030671t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)11.84162273163641.05038911.273600
Ecogr-0.04427726353824840.011625-3.80880.0004120.000206
M10.2513759566421800.3563350.70540.4840880.242044
M20.8698951857943860.4524071.92280.0607070.030354
M30.6842554618728630.451091.51690.1361360.068068
M40.3161267965773160.4024540.78550.4361890.218094
M50.2184075961189300.3576880.61060.5444630.272232
M60.5878221418004110.3584441.63990.1078420.053921
M70.7859416773739670.3648312.15430.0364920.018246
M81.115255144213620.4207022.65090.0109720.005486
M90.7212952032503120.3791381.90250.0633820.031691
M100.496173483371960.3757141.32060.1931620.096581
M110.7240834008976770.4391651.64880.1060080.053004
t-0.01967354770306710.003912-5.02888e-064e-06

\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) & 11.8416227316364 & 1.050389 & 11.2736 & 0 & 0 \tabularnewline
Ecogr & -0.0442772635382484 & 0.011625 & -3.8088 & 0.000412 & 0.000206 \tabularnewline
M1 & 0.251375956642180 & 0.356335 & 0.7054 & 0.484088 & 0.242044 \tabularnewline
M2 & 0.869895185794386 & 0.452407 & 1.9228 & 0.060707 & 0.030354 \tabularnewline
M3 & 0.684255461872863 & 0.45109 & 1.5169 & 0.136136 & 0.068068 \tabularnewline
M4 & 0.316126796577316 & 0.402454 & 0.7855 & 0.436189 & 0.218094 \tabularnewline
M5 & 0.218407596118930 & 0.357688 & 0.6106 & 0.544463 & 0.272232 \tabularnewline
M6 & 0.587822141800411 & 0.358444 & 1.6399 & 0.107842 & 0.053921 \tabularnewline
M7 & 0.785941677373967 & 0.364831 & 2.1543 & 0.036492 & 0.018246 \tabularnewline
M8 & 1.11525514421362 & 0.420702 & 2.6509 & 0.010972 & 0.005486 \tabularnewline
M9 & 0.721295203250312 & 0.379138 & 1.9025 & 0.063382 & 0.031691 \tabularnewline
M10 & 0.49617348337196 & 0.375714 & 1.3206 & 0.193162 & 0.096581 \tabularnewline
M11 & 0.724083400897677 & 0.439165 & 1.6488 & 0.106008 & 0.053004 \tabularnewline
t & -0.0196735477030671 & 0.003912 & -5.0288 & 8e-06 & 4e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57525&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]11.8416227316364[/C][C]1.050389[/C][C]11.2736[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Ecogr[/C][C]-0.0442772635382484[/C][C]0.011625[/C][C]-3.8088[/C][C]0.000412[/C][C]0.000206[/C][/ROW]
[ROW][C]M1[/C][C]0.251375956642180[/C][C]0.356335[/C][C]0.7054[/C][C]0.484088[/C][C]0.242044[/C][/ROW]
[ROW][C]M2[/C][C]0.869895185794386[/C][C]0.452407[/C][C]1.9228[/C][C]0.060707[/C][C]0.030354[/C][/ROW]
[ROW][C]M3[/C][C]0.684255461872863[/C][C]0.45109[/C][C]1.5169[/C][C]0.136136[/C][C]0.068068[/C][/ROW]
[ROW][C]M4[/C][C]0.316126796577316[/C][C]0.402454[/C][C]0.7855[/C][C]0.436189[/C][C]0.218094[/C][/ROW]
[ROW][C]M5[/C][C]0.218407596118930[/C][C]0.357688[/C][C]0.6106[/C][C]0.544463[/C][C]0.272232[/C][/ROW]
[ROW][C]M6[/C][C]0.587822141800411[/C][C]0.358444[/C][C]1.6399[/C][C]0.107842[/C][C]0.053921[/C][/ROW]
[ROW][C]M7[/C][C]0.785941677373967[/C][C]0.364831[/C][C]2.1543[/C][C]0.036492[/C][C]0.018246[/C][/ROW]
[ROW][C]M8[/C][C]1.11525514421362[/C][C]0.420702[/C][C]2.6509[/C][C]0.010972[/C][C]0.005486[/C][/ROW]
[ROW][C]M9[/C][C]0.721295203250312[/C][C]0.379138[/C][C]1.9025[/C][C]0.063382[/C][C]0.031691[/C][/ROW]
[ROW][C]M10[/C][C]0.49617348337196[/C][C]0.375714[/C][C]1.3206[/C][C]0.193162[/C][C]0.096581[/C][/ROW]
[ROW][C]M11[/C][C]0.724083400897677[/C][C]0.439165[/C][C]1.6488[/C][C]0.106008[/C][C]0.053004[/C][/ROW]
[ROW][C]t[/C][C]-0.0196735477030671[/C][C]0.003912[/C][C]-5.0288[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57525&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57525&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)11.84162273163641.05038911.273600
Ecogr-0.04427726353824840.011625-3.80880.0004120.000206
M10.2513759566421800.3563350.70540.4840880.242044
M20.8698951857943860.4524071.92280.0607070.030354
M30.6842554618728630.451091.51690.1361360.068068
M40.3161267965773160.4024540.78550.4361890.218094
M50.2184075961189300.3576880.61060.5444630.272232
M60.5878221418004110.3584441.63990.1078420.053921
M70.7859416773739670.3648312.15430.0364920.018246
M81.115255144213620.4207022.65090.0109720.005486
M90.7212952032503120.3791381.90250.0633820.031691
M100.496173483371960.3757141.32060.1931620.096581
M110.7240834008976770.4391651.64880.1060080.053004
t-0.01967354770306710.003912-5.02888e-064e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.723465284054046
R-squared0.523402017231401
Adjusted R-squared0.38871128297071
F-TEST (value)3.88595414602439
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000308225772254089
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.514224918714163
Sum Squared Residuals12.1636542832230

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.723465284054046 \tabularnewline
R-squared & 0.523402017231401 \tabularnewline
Adjusted R-squared & 0.38871128297071 \tabularnewline
F-TEST (value) & 3.88595414602439 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.000308225772254089 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.514224918714163 \tabularnewline
Sum Squared Residuals & 12.1636542832230 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57525&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.723465284054046[/C][/ROW]
[ROW][C]R-squared[/C][C]0.523402017231401[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.38871128297071[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.88595414602439[/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.000308225772254089[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.514224918714163[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12.1636542832230[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57525&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57525&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.723465284054046
R-squared0.523402017231401
Adjusted R-squared0.38871128297071
F-TEST (value)3.88595414602439
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.000308225772254089
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.514224918714163
Sum Squared Residuals12.1636542832230







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
187.787286030073060.212713969926935
28.17.62013505231050.479864947689505
37.77.583075382131250.116924617868750
47.57.478647655777430.0213523442225741
57.67.463092613753940.136907386246056
67.88.1227744565001-0.322774456500098
77.88.24366000177086-0.443660001770861
87.88.16366000177086-0.363660001770861
97.57.83415331382716-0.334153313827159
107.57.7974611848755-0.297461184875506
117.17.30611679079383-0.206116790793833
127.58.02350953895529-0.523509538955286
137.57.59990844752832-0.0999084475283223
147.67.423902017058110.176097982941885
157.77.541812769262740.158187230737263
167.77.02560649200320.674393507996798
177.97.196015956840360.703984043159636
188.17.6918719244950.408128075505002
198.27.795046564350460.404953435649535
208.27.449382983120970.750617016879025
218.27.691052994820670.508947005179325
227.97.038906902687370.86109309731263
237.37.039040133880250.260959866119747
246.97.58817928059636-0.688179280596362
256.67.15129501010792-0.551295010107925
266.77.11697582296011-0.416975822960111
276.96.83639120332050.0636087966795017
2876.607987139059580.392012860940422
297.16.973216563465030.126783436534967
307.27.145848507290450.0541514927095463
317.17.35528857963772-0.255288579637716
326.97.06718544100795-0.167185441007948
3377.21587319927733-0.215873199277328
346.86.82939068837351-0.0293906883735145
356.46.687836676244-0.287836676244001
366.77.037728137038-0.337728137037993
376.66.7513865625796-0.1513865625796
386.46.98273095666128-0.582730956661276
396.36.33907277600803-0.0390727760080276
406.26.35419366120747-0.154193661207474
416.56.82568851810472-0.325688518104725
426.86.701662796223880.0983372037761192
436.86.787126530664050.0128734693359522
446.47.22959824041538-0.829598240415378
456.16.48388527521214-0.383885275212141
465.86.60216356864436-0.802163568644359
476.16.50931454640692-0.409314546406919
487.26.646675142217320.553324857782682
497.36.710123949711090.589876050288912
506.96.556256151010.343743848989997
516.16.39964786927749-0.299647869277487
525.86.73356505195232-0.93356505195232
536.26.84198634783593-0.641986347835935
547.17.33784231549057-0.237842315490569
557.77.418878323576910.281121676423090
567.97.290173333684840.609826666315162
577.77.27503521686270.424964783137302
587.47.132077655419250.26792234458075
597.56.857691852674990.642308147325008
6087.003907901193040.996092098806958

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8 & 7.78728603007306 & 0.212713969926935 \tabularnewline
2 & 8.1 & 7.6201350523105 & 0.479864947689505 \tabularnewline
3 & 7.7 & 7.58307538213125 & 0.116924617868750 \tabularnewline
4 & 7.5 & 7.47864765577743 & 0.0213523442225741 \tabularnewline
5 & 7.6 & 7.46309261375394 & 0.136907386246056 \tabularnewline
6 & 7.8 & 8.1227744565001 & -0.322774456500098 \tabularnewline
7 & 7.8 & 8.24366000177086 & -0.443660001770861 \tabularnewline
8 & 7.8 & 8.16366000177086 & -0.363660001770861 \tabularnewline
9 & 7.5 & 7.83415331382716 & -0.334153313827159 \tabularnewline
10 & 7.5 & 7.7974611848755 & -0.297461184875506 \tabularnewline
11 & 7.1 & 7.30611679079383 & -0.206116790793833 \tabularnewline
12 & 7.5 & 8.02350953895529 & -0.523509538955286 \tabularnewline
13 & 7.5 & 7.59990844752832 & -0.0999084475283223 \tabularnewline
14 & 7.6 & 7.42390201705811 & 0.176097982941885 \tabularnewline
15 & 7.7 & 7.54181276926274 & 0.158187230737263 \tabularnewline
16 & 7.7 & 7.0256064920032 & 0.674393507996798 \tabularnewline
17 & 7.9 & 7.19601595684036 & 0.703984043159636 \tabularnewline
18 & 8.1 & 7.691871924495 & 0.408128075505002 \tabularnewline
19 & 8.2 & 7.79504656435046 & 0.404953435649535 \tabularnewline
20 & 8.2 & 7.44938298312097 & 0.750617016879025 \tabularnewline
21 & 8.2 & 7.69105299482067 & 0.508947005179325 \tabularnewline
22 & 7.9 & 7.03890690268737 & 0.86109309731263 \tabularnewline
23 & 7.3 & 7.03904013388025 & 0.260959866119747 \tabularnewline
24 & 6.9 & 7.58817928059636 & -0.688179280596362 \tabularnewline
25 & 6.6 & 7.15129501010792 & -0.551295010107925 \tabularnewline
26 & 6.7 & 7.11697582296011 & -0.416975822960111 \tabularnewline
27 & 6.9 & 6.8363912033205 & 0.0636087966795017 \tabularnewline
28 & 7 & 6.60798713905958 & 0.392012860940422 \tabularnewline
29 & 7.1 & 6.97321656346503 & 0.126783436534967 \tabularnewline
30 & 7.2 & 7.14584850729045 & 0.0541514927095463 \tabularnewline
31 & 7.1 & 7.35528857963772 & -0.255288579637716 \tabularnewline
32 & 6.9 & 7.06718544100795 & -0.167185441007948 \tabularnewline
33 & 7 & 7.21587319927733 & -0.215873199277328 \tabularnewline
34 & 6.8 & 6.82939068837351 & -0.0293906883735145 \tabularnewline
35 & 6.4 & 6.687836676244 & -0.287836676244001 \tabularnewline
36 & 6.7 & 7.037728137038 & -0.337728137037993 \tabularnewline
37 & 6.6 & 6.7513865625796 & -0.1513865625796 \tabularnewline
38 & 6.4 & 6.98273095666128 & -0.582730956661276 \tabularnewline
39 & 6.3 & 6.33907277600803 & -0.0390727760080276 \tabularnewline
40 & 6.2 & 6.35419366120747 & -0.154193661207474 \tabularnewline
41 & 6.5 & 6.82568851810472 & -0.325688518104725 \tabularnewline
42 & 6.8 & 6.70166279622388 & 0.0983372037761192 \tabularnewline
43 & 6.8 & 6.78712653066405 & 0.0128734693359522 \tabularnewline
44 & 6.4 & 7.22959824041538 & -0.829598240415378 \tabularnewline
45 & 6.1 & 6.48388527521214 & -0.383885275212141 \tabularnewline
46 & 5.8 & 6.60216356864436 & -0.802163568644359 \tabularnewline
47 & 6.1 & 6.50931454640692 & -0.409314546406919 \tabularnewline
48 & 7.2 & 6.64667514221732 & 0.553324857782682 \tabularnewline
49 & 7.3 & 6.71012394971109 & 0.589876050288912 \tabularnewline
50 & 6.9 & 6.55625615101 & 0.343743848989997 \tabularnewline
51 & 6.1 & 6.39964786927749 & -0.299647869277487 \tabularnewline
52 & 5.8 & 6.73356505195232 & -0.93356505195232 \tabularnewline
53 & 6.2 & 6.84198634783593 & -0.641986347835935 \tabularnewline
54 & 7.1 & 7.33784231549057 & -0.237842315490569 \tabularnewline
55 & 7.7 & 7.41887832357691 & 0.281121676423090 \tabularnewline
56 & 7.9 & 7.29017333368484 & 0.609826666315162 \tabularnewline
57 & 7.7 & 7.2750352168627 & 0.424964783137302 \tabularnewline
58 & 7.4 & 7.13207765541925 & 0.26792234458075 \tabularnewline
59 & 7.5 & 6.85769185267499 & 0.642308147325008 \tabularnewline
60 & 8 & 7.00390790119304 & 0.996092098806958 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57525&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[/C][C]7.78728603007306[/C][C]0.212713969926935[/C][/ROW]
[ROW][C]2[/C][C]8.1[/C][C]7.6201350523105[/C][C]0.479864947689505[/C][/ROW]
[ROW][C]3[/C][C]7.7[/C][C]7.58307538213125[/C][C]0.116924617868750[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]7.47864765577743[/C][C]0.0213523442225741[/C][/ROW]
[ROW][C]5[/C][C]7.6[/C][C]7.46309261375394[/C][C]0.136907386246056[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]8.1227744565001[/C][C]-0.322774456500098[/C][/ROW]
[ROW][C]7[/C][C]7.8[/C][C]8.24366000177086[/C][C]-0.443660001770861[/C][/ROW]
[ROW][C]8[/C][C]7.8[/C][C]8.16366000177086[/C][C]-0.363660001770861[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.83415331382716[/C][C]-0.334153313827159[/C][/ROW]
[ROW][C]10[/C][C]7.5[/C][C]7.7974611848755[/C][C]-0.297461184875506[/C][/ROW]
[ROW][C]11[/C][C]7.1[/C][C]7.30611679079383[/C][C]-0.206116790793833[/C][/ROW]
[ROW][C]12[/C][C]7.5[/C][C]8.02350953895529[/C][C]-0.523509538955286[/C][/ROW]
[ROW][C]13[/C][C]7.5[/C][C]7.59990844752832[/C][C]-0.0999084475283223[/C][/ROW]
[ROW][C]14[/C][C]7.6[/C][C]7.42390201705811[/C][C]0.176097982941885[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.54181276926274[/C][C]0.158187230737263[/C][/ROW]
[ROW][C]16[/C][C]7.7[/C][C]7.0256064920032[/C][C]0.674393507996798[/C][/ROW]
[ROW][C]17[/C][C]7.9[/C][C]7.19601595684036[/C][C]0.703984043159636[/C][/ROW]
[ROW][C]18[/C][C]8.1[/C][C]7.691871924495[/C][C]0.408128075505002[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.79504656435046[/C][C]0.404953435649535[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]7.44938298312097[/C][C]0.750617016879025[/C][/ROW]
[ROW][C]21[/C][C]8.2[/C][C]7.69105299482067[/C][C]0.508947005179325[/C][/ROW]
[ROW][C]22[/C][C]7.9[/C][C]7.03890690268737[/C][C]0.86109309731263[/C][/ROW]
[ROW][C]23[/C][C]7.3[/C][C]7.03904013388025[/C][C]0.260959866119747[/C][/ROW]
[ROW][C]24[/C][C]6.9[/C][C]7.58817928059636[/C][C]-0.688179280596362[/C][/ROW]
[ROW][C]25[/C][C]6.6[/C][C]7.15129501010792[/C][C]-0.551295010107925[/C][/ROW]
[ROW][C]26[/C][C]6.7[/C][C]7.11697582296011[/C][C]-0.416975822960111[/C][/ROW]
[ROW][C]27[/C][C]6.9[/C][C]6.8363912033205[/C][C]0.0636087966795017[/C][/ROW]
[ROW][C]28[/C][C]7[/C][C]6.60798713905958[/C][C]0.392012860940422[/C][/ROW]
[ROW][C]29[/C][C]7.1[/C][C]6.97321656346503[/C][C]0.126783436534967[/C][/ROW]
[ROW][C]30[/C][C]7.2[/C][C]7.14584850729045[/C][C]0.0541514927095463[/C][/ROW]
[ROW][C]31[/C][C]7.1[/C][C]7.35528857963772[/C][C]-0.255288579637716[/C][/ROW]
[ROW][C]32[/C][C]6.9[/C][C]7.06718544100795[/C][C]-0.167185441007948[/C][/ROW]
[ROW][C]33[/C][C]7[/C][C]7.21587319927733[/C][C]-0.215873199277328[/C][/ROW]
[ROW][C]34[/C][C]6.8[/C][C]6.82939068837351[/C][C]-0.0293906883735145[/C][/ROW]
[ROW][C]35[/C][C]6.4[/C][C]6.687836676244[/C][C]-0.287836676244001[/C][/ROW]
[ROW][C]36[/C][C]6.7[/C][C]7.037728137038[/C][C]-0.337728137037993[/C][/ROW]
[ROW][C]37[/C][C]6.6[/C][C]6.7513865625796[/C][C]-0.1513865625796[/C][/ROW]
[ROW][C]38[/C][C]6.4[/C][C]6.98273095666128[/C][C]-0.582730956661276[/C][/ROW]
[ROW][C]39[/C][C]6.3[/C][C]6.33907277600803[/C][C]-0.0390727760080276[/C][/ROW]
[ROW][C]40[/C][C]6.2[/C][C]6.35419366120747[/C][C]-0.154193661207474[/C][/ROW]
[ROW][C]41[/C][C]6.5[/C][C]6.82568851810472[/C][C]-0.325688518104725[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]6.70166279622388[/C][C]0.0983372037761192[/C][/ROW]
[ROW][C]43[/C][C]6.8[/C][C]6.78712653066405[/C][C]0.0128734693359522[/C][/ROW]
[ROW][C]44[/C][C]6.4[/C][C]7.22959824041538[/C][C]-0.829598240415378[/C][/ROW]
[ROW][C]45[/C][C]6.1[/C][C]6.48388527521214[/C][C]-0.383885275212141[/C][/ROW]
[ROW][C]46[/C][C]5.8[/C][C]6.60216356864436[/C][C]-0.802163568644359[/C][/ROW]
[ROW][C]47[/C][C]6.1[/C][C]6.50931454640692[/C][C]-0.409314546406919[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]6.64667514221732[/C][C]0.553324857782682[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]6.71012394971109[/C][C]0.589876050288912[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.55625615101[/C][C]0.343743848989997[/C][/ROW]
[ROW][C]51[/C][C]6.1[/C][C]6.39964786927749[/C][C]-0.299647869277487[/C][/ROW]
[ROW][C]52[/C][C]5.8[/C][C]6.73356505195232[/C][C]-0.93356505195232[/C][/ROW]
[ROW][C]53[/C][C]6.2[/C][C]6.84198634783593[/C][C]-0.641986347835935[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.33784231549057[/C][C]-0.237842315490569[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.41887832357691[/C][C]0.281121676423090[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.29017333368484[/C][C]0.609826666315162[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.2750352168627[/C][C]0.424964783137302[/C][/ROW]
[ROW][C]58[/C][C]7.4[/C][C]7.13207765541925[/C][C]0.26792234458075[/C][/ROW]
[ROW][C]59[/C][C]7.5[/C][C]6.85769185267499[/C][C]0.642308147325008[/C][/ROW]
[ROW][C]60[/C][C]8[/C][C]7.00390790119304[/C][C]0.996092098806958[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57525&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57525&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
187.787286030073060.212713969926935
28.17.62013505231050.479864947689505
37.77.583075382131250.116924617868750
47.57.478647655777430.0213523442225741
57.67.463092613753940.136907386246056
67.88.1227744565001-0.322774456500098
77.88.24366000177086-0.443660001770861
87.88.16366000177086-0.363660001770861
97.57.83415331382716-0.334153313827159
107.57.7974611848755-0.297461184875506
117.17.30611679079383-0.206116790793833
127.58.02350953895529-0.523509538955286
137.57.59990844752832-0.0999084475283223
147.67.423902017058110.176097982941885
157.77.541812769262740.158187230737263
167.77.02560649200320.674393507996798
177.97.196015956840360.703984043159636
188.17.6918719244950.408128075505002
198.27.795046564350460.404953435649535
208.27.449382983120970.750617016879025
218.27.691052994820670.508947005179325
227.97.038906902687370.86109309731263
237.37.039040133880250.260959866119747
246.97.58817928059636-0.688179280596362
256.67.15129501010792-0.551295010107925
266.77.11697582296011-0.416975822960111
276.96.83639120332050.0636087966795017
2876.607987139059580.392012860940422
297.16.973216563465030.126783436534967
307.27.145848507290450.0541514927095463
317.17.35528857963772-0.255288579637716
326.97.06718544100795-0.167185441007948
3377.21587319927733-0.215873199277328
346.86.82939068837351-0.0293906883735145
356.46.687836676244-0.287836676244001
366.77.037728137038-0.337728137037993
376.66.7513865625796-0.1513865625796
386.46.98273095666128-0.582730956661276
396.36.33907277600803-0.0390727760080276
406.26.35419366120747-0.154193661207474
416.56.82568851810472-0.325688518104725
426.86.701662796223880.0983372037761192
436.86.787126530664050.0128734693359522
446.47.22959824041538-0.829598240415378
456.16.48388527521214-0.383885275212141
465.86.60216356864436-0.802163568644359
476.16.50931454640692-0.409314546406919
487.26.646675142217320.553324857782682
497.36.710123949711090.589876050288912
506.96.556256151010.343743848989997
516.16.39964786927749-0.299647869277487
525.86.73356505195232-0.93356505195232
536.26.84198634783593-0.641986347835935
547.17.33784231549057-0.237842315490569
557.77.418878323576910.281121676423090
567.97.290173333684840.609826666315162
577.77.27503521686270.424964783137302
587.47.132077655419250.26792234458075
597.56.857691852674990.642308147325008
6087.003907901193040.996092098806958







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1474296209561530.2948592419123060.852570379043847
180.0637525270249130.1275050540498260.936247472975087
190.02631988783136640.05263977566273270.973680112168634
200.01285378858819230.02570757717638450.987146211411808
210.03930575331493380.07861150662986770.960694246685066
220.03074172081466870.06148344162933750.969258279185331
230.01683625596045420.03367251192090840.983163744039546
240.04347805198262840.08695610396525680.956521948017372
250.2267052080653350.4534104161306710.773294791934665
260.2844548587845020.5689097175690050.715545141215498
270.2682491752931950.5364983505863890.731750824706805
280.3185599015510830.6371198031021660.681440098448917
290.3346006651799040.6692013303598080.665399334820096
300.3130285632591820.6260571265183640.686971436740818
310.2610395084013980.5220790168027950.738960491598602
320.2536048234624810.5072096469249620.746395176537519
330.2016041510941040.4032083021882090.798395848905896
340.2379484501827790.4758969003655580.762051549817221
350.1866303215277150.3732606430554300.813369678472285
360.1293855085823330.2587710171646670.870614491417667
370.0840214299824980.1680428599649960.915978570017502
380.0626703838755960.1253407677511920.937329616124404
390.05189402261785940.1037880452357190.94810597738214
400.1296162295736610.2592324591473220.870383770426339
410.3815921538856100.7631843077712190.61840784611439
420.6413063969531610.7173872060936790.358693603046839
430.6399637952396190.7200724095207630.360036204760381

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.147429620956153 & 0.294859241912306 & 0.852570379043847 \tabularnewline
18 & 0.063752527024913 & 0.127505054049826 & 0.936247472975087 \tabularnewline
19 & 0.0263198878313664 & 0.0526397756627327 & 0.973680112168634 \tabularnewline
20 & 0.0128537885881923 & 0.0257075771763845 & 0.987146211411808 \tabularnewline
21 & 0.0393057533149338 & 0.0786115066298677 & 0.960694246685066 \tabularnewline
22 & 0.0307417208146687 & 0.0614834416293375 & 0.969258279185331 \tabularnewline
23 & 0.0168362559604542 & 0.0336725119209084 & 0.983163744039546 \tabularnewline
24 & 0.0434780519826284 & 0.0869561039652568 & 0.956521948017372 \tabularnewline
25 & 0.226705208065335 & 0.453410416130671 & 0.773294791934665 \tabularnewline
26 & 0.284454858784502 & 0.568909717569005 & 0.715545141215498 \tabularnewline
27 & 0.268249175293195 & 0.536498350586389 & 0.731750824706805 \tabularnewline
28 & 0.318559901551083 & 0.637119803102166 & 0.681440098448917 \tabularnewline
29 & 0.334600665179904 & 0.669201330359808 & 0.665399334820096 \tabularnewline
30 & 0.313028563259182 & 0.626057126518364 & 0.686971436740818 \tabularnewline
31 & 0.261039508401398 & 0.522079016802795 & 0.738960491598602 \tabularnewline
32 & 0.253604823462481 & 0.507209646924962 & 0.746395176537519 \tabularnewline
33 & 0.201604151094104 & 0.403208302188209 & 0.798395848905896 \tabularnewline
34 & 0.237948450182779 & 0.475896900365558 & 0.762051549817221 \tabularnewline
35 & 0.186630321527715 & 0.373260643055430 & 0.813369678472285 \tabularnewline
36 & 0.129385508582333 & 0.258771017164667 & 0.870614491417667 \tabularnewline
37 & 0.084021429982498 & 0.168042859964996 & 0.915978570017502 \tabularnewline
38 & 0.062670383875596 & 0.125340767751192 & 0.937329616124404 \tabularnewline
39 & 0.0518940226178594 & 0.103788045235719 & 0.94810597738214 \tabularnewline
40 & 0.129616229573661 & 0.259232459147322 & 0.870383770426339 \tabularnewline
41 & 0.381592153885610 & 0.763184307771219 & 0.61840784611439 \tabularnewline
42 & 0.641306396953161 & 0.717387206093679 & 0.358693603046839 \tabularnewline
43 & 0.639963795239619 & 0.720072409520763 & 0.360036204760381 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57525&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.147429620956153[/C][C]0.294859241912306[/C][C]0.852570379043847[/C][/ROW]
[ROW][C]18[/C][C]0.063752527024913[/C][C]0.127505054049826[/C][C]0.936247472975087[/C][/ROW]
[ROW][C]19[/C][C]0.0263198878313664[/C][C]0.0526397756627327[/C][C]0.973680112168634[/C][/ROW]
[ROW][C]20[/C][C]0.0128537885881923[/C][C]0.0257075771763845[/C][C]0.987146211411808[/C][/ROW]
[ROW][C]21[/C][C]0.0393057533149338[/C][C]0.0786115066298677[/C][C]0.960694246685066[/C][/ROW]
[ROW][C]22[/C][C]0.0307417208146687[/C][C]0.0614834416293375[/C][C]0.969258279185331[/C][/ROW]
[ROW][C]23[/C][C]0.0168362559604542[/C][C]0.0336725119209084[/C][C]0.983163744039546[/C][/ROW]
[ROW][C]24[/C][C]0.0434780519826284[/C][C]0.0869561039652568[/C][C]0.956521948017372[/C][/ROW]
[ROW][C]25[/C][C]0.226705208065335[/C][C]0.453410416130671[/C][C]0.773294791934665[/C][/ROW]
[ROW][C]26[/C][C]0.284454858784502[/C][C]0.568909717569005[/C][C]0.715545141215498[/C][/ROW]
[ROW][C]27[/C][C]0.268249175293195[/C][C]0.536498350586389[/C][C]0.731750824706805[/C][/ROW]
[ROW][C]28[/C][C]0.318559901551083[/C][C]0.637119803102166[/C][C]0.681440098448917[/C][/ROW]
[ROW][C]29[/C][C]0.334600665179904[/C][C]0.669201330359808[/C][C]0.665399334820096[/C][/ROW]
[ROW][C]30[/C][C]0.313028563259182[/C][C]0.626057126518364[/C][C]0.686971436740818[/C][/ROW]
[ROW][C]31[/C][C]0.261039508401398[/C][C]0.522079016802795[/C][C]0.738960491598602[/C][/ROW]
[ROW][C]32[/C][C]0.253604823462481[/C][C]0.507209646924962[/C][C]0.746395176537519[/C][/ROW]
[ROW][C]33[/C][C]0.201604151094104[/C][C]0.403208302188209[/C][C]0.798395848905896[/C][/ROW]
[ROW][C]34[/C][C]0.237948450182779[/C][C]0.475896900365558[/C][C]0.762051549817221[/C][/ROW]
[ROW][C]35[/C][C]0.186630321527715[/C][C]0.373260643055430[/C][C]0.813369678472285[/C][/ROW]
[ROW][C]36[/C][C]0.129385508582333[/C][C]0.258771017164667[/C][C]0.870614491417667[/C][/ROW]
[ROW][C]37[/C][C]0.084021429982498[/C][C]0.168042859964996[/C][C]0.915978570017502[/C][/ROW]
[ROW][C]38[/C][C]0.062670383875596[/C][C]0.125340767751192[/C][C]0.937329616124404[/C][/ROW]
[ROW][C]39[/C][C]0.0518940226178594[/C][C]0.103788045235719[/C][C]0.94810597738214[/C][/ROW]
[ROW][C]40[/C][C]0.129616229573661[/C][C]0.259232459147322[/C][C]0.870383770426339[/C][/ROW]
[ROW][C]41[/C][C]0.381592153885610[/C][C]0.763184307771219[/C][C]0.61840784611439[/C][/ROW]
[ROW][C]42[/C][C]0.641306396953161[/C][C]0.717387206093679[/C][C]0.358693603046839[/C][/ROW]
[ROW][C]43[/C][C]0.639963795239619[/C][C]0.720072409520763[/C][C]0.360036204760381[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57525&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57525&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.1474296209561530.2948592419123060.852570379043847
180.0637525270249130.1275050540498260.936247472975087
190.02631988783136640.05263977566273270.973680112168634
200.01285378858819230.02570757717638450.987146211411808
210.03930575331493380.07861150662986770.960694246685066
220.03074172081466870.06148344162933750.969258279185331
230.01683625596045420.03367251192090840.983163744039546
240.04347805198262840.08695610396525680.956521948017372
250.2267052080653350.4534104161306710.773294791934665
260.2844548587845020.5689097175690050.715545141215498
270.2682491752931950.5364983505863890.731750824706805
280.3185599015510830.6371198031021660.681440098448917
290.3346006651799040.6692013303598080.665399334820096
300.3130285632591820.6260571265183640.686971436740818
310.2610395084013980.5220790168027950.738960491598602
320.2536048234624810.5072096469249620.746395176537519
330.2016041510941040.4032083021882090.798395848905896
340.2379484501827790.4758969003655580.762051549817221
350.1866303215277150.3732606430554300.813369678472285
360.1293855085823330.2587710171646670.870614491417667
370.0840214299824980.1680428599649960.915978570017502
380.0626703838755960.1253407677511920.937329616124404
390.05189402261785940.1037880452357190.94810597738214
400.1296162295736610.2592324591473220.870383770426339
410.3815921538856100.7631843077712190.61840784611439
420.6413063969531610.7173872060936790.358693603046839
430.6399637952396190.7200724095207630.360036204760381







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

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