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 computationTue, 17 Nov 2009 12:34:37 -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/17/t1258486537s8dbs9nd1eov8be.htm/, Retrieved Thu, 02 May 2024 04:37:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57410, Retrieved Thu, 02 May 2024 04:37:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsJSSHWWS7P3
Estimated Impact202
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Multiple regression] [2009-11-17 19:34:37] [c8fd62404619100d8e91184019148412] [Current]
Feedback Forum

Post a new message
Dataseries X:
8	11.1
8.1	10.9
7.7	10
7.5	9.2
7.6	9.2
7.8	9.5
7.8	9.6
7.8	9.5
7.5	9.1
7.5	8.9
7.1	9
7.5	10.1
7.5	10.3
7.6	10.2
7.7	9.6
7.7	9.2
7.9	9.3
8.1	9.4
8.2	9.4
8.2	9.2
8.2	9
7.9	9
7.3	9
6.9	9.8
6.6	10
6.7	9.8
6.9	9.3
7	9
7.1	9
7.2	9.1
7.1	9.1
6.9	9.1
7	9.2
6.8	8.8
6.4	8.3
6.7	8.4
6.6	8.1
6.4	7.7
6.3	7.9
6.2	7.9
6.5	8
6.8	7.9
6.8	7.6
6.4	7.1
6.1	6.8
5.8	6.5
6.1	6.9
7.2	8.2
7.3	8.7
6.9	8.3
6.1	7.9
5.8	7.5
6.2	7.8
7.1	8.3
7.7	8.4
7.9	8.2
7.7	7.7
7.4	7.2
7.5	7.3
8	8.1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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
Y[t] = + 7.02041292526928 + 0.439446655138649X[t] + 0.351957019937916M1[t] + 0.154179253734453M2[t] -0.162075980749598M3[t] -0.462275880747515M4[t] -0.423098710389799M5[t] -0.356655138648721M6[t] -0.393533302777141M7[t] -0.52252213587783M8[t] -0.685144169670202M9[t] -0.83261047105148M10[t] -0.688865705535531M11[t] -0.0358554344882185t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  7.02041292526928 +  0.439446655138649X[t] +  0.351957019937916M1[t] +  0.154179253734453M2[t] -0.162075980749598M3[t] -0.462275880747515M4[t] -0.423098710389799M5[t] -0.356655138648721M6[t] -0.393533302777141M7[t] -0.52252213587783M8[t] -0.685144169670202M9[t] -0.83261047105148M10[t] -0.688865705535531M11[t] -0.0358554344882185t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57410&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  7.02041292526928 +  0.439446655138649X[t] +  0.351957019937916M1[t] +  0.154179253734453M2[t] -0.162075980749598M3[t] -0.462275880747515M4[t] -0.423098710389799M5[t] -0.356655138648721M6[t] -0.393533302777141M7[t] -0.52252213587783M8[t] -0.685144169670202M9[t] -0.83261047105148M10[t] -0.688865705535531M11[t] -0.0358554344882185t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57410&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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] = + 7.02041292526928 + 0.439446655138649X[t] + 0.351957019937916M1[t] + 0.154179253734453M2[t] -0.162075980749598M3[t] -0.462275880747515M4[t] -0.423098710389799M5[t] -0.356655138648721M6[t] -0.393533302777141M7[t] -0.52252213587783M8[t] -0.685144169670202M9[t] -0.83261047105148M10[t] -0.688865705535531M11[t] -0.0358554344882185t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7.020412925269280.9513267.379600
X0.4394466551386490.1153653.80920.0004120.000206
M10.3519570199379160.2961411.18850.2407440.120372
M20.1541792537344530.2962420.52050.6052460.302623
M3-0.1620759807495980.29914-0.54180.5905670.295284
M4-0.4622758807475150.300707-1.53730.1310720.065536
M5-0.4230987103897990.295482-1.43190.1589350.079467
M6-0.3566551386487210.292618-1.21880.2291180.114559
M7-0.3935333027771410.292964-1.34330.185770.092885
M8-0.522522135877830.292417-1.78690.0805430.040272
M9-0.6851441696702020.292048-2.3460.0233420.011671
M10-0.832610471051480.293032-2.84140.0066730.003337
M11-0.6888657055355310.295493-2.33120.0241770.012089
t-0.03585543448821850.004192-8.553300

\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) & 7.02041292526928 & 0.951326 & 7.3796 & 0 & 0 \tabularnewline
X & 0.439446655138649 & 0.115365 & 3.8092 & 0.000412 & 0.000206 \tabularnewline
M1 & 0.351957019937916 & 0.296141 & 1.1885 & 0.240744 & 0.120372 \tabularnewline
M2 & 0.154179253734453 & 0.296242 & 0.5205 & 0.605246 & 0.302623 \tabularnewline
M3 & -0.162075980749598 & 0.29914 & -0.5418 & 0.590567 & 0.295284 \tabularnewline
M4 & -0.462275880747515 & 0.300707 & -1.5373 & 0.131072 & 0.065536 \tabularnewline
M5 & -0.423098710389799 & 0.295482 & -1.4319 & 0.158935 & 0.079467 \tabularnewline
M6 & -0.356655138648721 & 0.292618 & -1.2188 & 0.229118 & 0.114559 \tabularnewline
M7 & -0.393533302777141 & 0.292964 & -1.3433 & 0.18577 & 0.092885 \tabularnewline
M8 & -0.52252213587783 & 0.292417 & -1.7869 & 0.080543 & 0.040272 \tabularnewline
M9 & -0.685144169670202 & 0.292048 & -2.346 & 0.023342 & 0.011671 \tabularnewline
M10 & -0.83261047105148 & 0.293032 & -2.8414 & 0.006673 & 0.003337 \tabularnewline
M11 & -0.688865705535531 & 0.295493 & -2.3312 & 0.024177 & 0.012089 \tabularnewline
t & -0.0358554344882185 & 0.004192 & -8.5533 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57410&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]7.02041292526928[/C][C]0.951326[/C][C]7.3796[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.439446655138649[/C][C]0.115365[/C][C]3.8092[/C][C]0.000412[/C][C]0.000206[/C][/ROW]
[ROW][C]M1[/C][C]0.351957019937916[/C][C]0.296141[/C][C]1.1885[/C][C]0.240744[/C][C]0.120372[/C][/ROW]
[ROW][C]M2[/C][C]0.154179253734453[/C][C]0.296242[/C][C]0.5205[/C][C]0.605246[/C][C]0.302623[/C][/ROW]
[ROW][C]M3[/C][C]-0.162075980749598[/C][C]0.29914[/C][C]-0.5418[/C][C]0.590567[/C][C]0.295284[/C][/ROW]
[ROW][C]M4[/C][C]-0.462275880747515[/C][C]0.300707[/C][C]-1.5373[/C][C]0.131072[/C][C]0.065536[/C][/ROW]
[ROW][C]M5[/C][C]-0.423098710389799[/C][C]0.295482[/C][C]-1.4319[/C][C]0.158935[/C][C]0.079467[/C][/ROW]
[ROW][C]M6[/C][C]-0.356655138648721[/C][C]0.292618[/C][C]-1.2188[/C][C]0.229118[/C][C]0.114559[/C][/ROW]
[ROW][C]M7[/C][C]-0.393533302777141[/C][C]0.292964[/C][C]-1.3433[/C][C]0.18577[/C][C]0.092885[/C][/ROW]
[ROW][C]M8[/C][C]-0.52252213587783[/C][C]0.292417[/C][C]-1.7869[/C][C]0.080543[/C][C]0.040272[/C][/ROW]
[ROW][C]M9[/C][C]-0.685144169670202[/C][C]0.292048[/C][C]-2.346[/C][C]0.023342[/C][C]0.011671[/C][/ROW]
[ROW][C]M10[/C][C]-0.83261047105148[/C][C]0.293032[/C][C]-2.8414[/C][C]0.006673[/C][C]0.003337[/C][/ROW]
[ROW][C]M11[/C][C]-0.688865705535531[/C][C]0.295493[/C][C]-2.3312[/C][C]0.024177[/C][C]0.012089[/C][/ROW]
[ROW][C]t[/C][C]-0.0358554344882185[/C][C]0.004192[/C][C]-8.5533[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57410&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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)7.020412925269280.9513267.379600
X0.4394466551386490.1153653.80920.0004120.000206
M10.3519570199379160.2961411.18850.2407440.120372
M20.1541792537344530.2962420.52050.6052460.302623
M3-0.1620759807495980.29914-0.54180.5905670.295284
M4-0.4622758807475150.300707-1.53730.1310720.065536
M5-0.4230987103897990.295482-1.43190.1589350.079467
M6-0.3566551386487210.292618-1.21880.2291180.114559
M7-0.3935333027771410.292964-1.34330.185770.092885
M8-0.522522135877830.292417-1.78690.0805430.040272
M9-0.6851441696702020.292048-2.3460.0233420.011671
M10-0.832610471051480.293032-2.84140.0066730.003337
M11-0.6888657055355310.295493-2.33120.0241770.012089
t-0.03585543448821850.004192-8.553300







Multiple Linear Regression - Regression Statistics
Multiple R0.913204880251137
R-squared0.833943153314494
Adjusted R-squared0.78701404446859
F-TEST (value)17.7702746509171
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value9.85878045867139e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.461454472004603
Sum Squared Residuals9.79525056772017

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.913204880251137 \tabularnewline
R-squared & 0.833943153314494 \tabularnewline
Adjusted R-squared & 0.78701404446859 \tabularnewline
F-TEST (value) & 17.7702746509171 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 9.85878045867139e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.461454472004603 \tabularnewline
Sum Squared Residuals & 9.79525056772017 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57410&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.913204880251137[/C][/ROW]
[ROW][C]R-squared[/C][C]0.833943153314494[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.78701404446859[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]17.7702746509171[/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]9.85878045867139e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.461454472004603[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9.79525056772017[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57410&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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.913204880251137
R-squared0.833943153314494
Adjusted R-squared0.78701404446859
F-TEST (value)17.7702746509171
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value9.85878045867139e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.461454472004603
Sum Squared Residuals9.79525056772017







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
111.110.85208775182820.24791224817184
210.910.66239921665030.237600783349653
31010.1345098856226-0.134509885622617
49.29.71056522010875-0.510565220108753
59.29.75783162149211-0.557831621492115
69.59.8763090897727-0.376309089772704
79.69.80357549115607-0.203575491156066
89.59.63873122356716-0.138731223567157
99.19.30841975874497-0.208419758744974
108.99.12509802287548-0.225098022875477
1199.05720869184775-0.0572086918477461
1210.19.885997624950520.21400237504948
1310.310.20209921040020.0979007895997833
1410.210.01241067522240.187589324777599
159.69.704244671764-0.104244671763996
169.29.36818933727786-0.168189337277861
179.39.45940040417509-0.159400404175086
189.49.57787787245568-0.177877872455676
199.49.5490889393529-0.149088939352902
209.29.384244671764-0.184244671763995
2199.1857672034834-0.185767203483405
2298.870611471072310.129388528927686
2398.714832809016850.285167190983145
249.89.192064418008710.607935581991293
25109.376332006916810.623667993083189
269.89.1866434717390.613356528261006
279.38.922422133794460.377577866205546
2898.630311464822180.369688535177816
2998.677577866205550.322422133794454
309.18.752110668972270.347889331027729
319.18.635432404841770.464567595158232
329.18.382698806225130.71730119377487
339.28.22816600345840.971833996541593
348.87.956954936561180.843045063438822
358.37.889065605533450.410934394466552
368.48.67390987312236-0.273909873122356
378.18.94606679305819-0.84606679305819
387.78.62454426133878-0.924544261338778
397.98.22848892685264-0.328488926852643
407.97.848488926852640.0515110731473577
4187.983644659263730.0163553407362655
427.98.14606679305819-0.246066793058188
437.68.07333319444155-0.473333194441551
447.17.73271026479718-0.632710264797183
456.87.402398799975-0.602398799974999
466.57.0872430675639-0.587243067563908
476.97.32696639513323-0.426966395133232
488.28.46336798683306-0.263367986833060
498.78.82341423779662-0.123414237796622
508.38.41400237504948-0.11400237504948
517.97.710334381966290.189665618033709
527.57.242445050938560.257554949061439
537.87.421545448863520.378454551136482
548.37.847635575741160.452364424258839
558.48.038569970207710.361430029792288
568.27.961615033646530.238384966353466
577.77.675248234338210.0247517656617854
587.27.36009250192712-0.160092501927124
597.37.51192649846872-0.211926498468719
608.18.38466009708536-0.284660097085356

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 11.1 & 10.8520877518282 & 0.24791224817184 \tabularnewline
2 & 10.9 & 10.6623992166503 & 0.237600783349653 \tabularnewline
3 & 10 & 10.1345098856226 & -0.134509885622617 \tabularnewline
4 & 9.2 & 9.71056522010875 & -0.510565220108753 \tabularnewline
5 & 9.2 & 9.75783162149211 & -0.557831621492115 \tabularnewline
6 & 9.5 & 9.8763090897727 & -0.376309089772704 \tabularnewline
7 & 9.6 & 9.80357549115607 & -0.203575491156066 \tabularnewline
8 & 9.5 & 9.63873122356716 & -0.138731223567157 \tabularnewline
9 & 9.1 & 9.30841975874497 & -0.208419758744974 \tabularnewline
10 & 8.9 & 9.12509802287548 & -0.225098022875477 \tabularnewline
11 & 9 & 9.05720869184775 & -0.0572086918477461 \tabularnewline
12 & 10.1 & 9.88599762495052 & 0.21400237504948 \tabularnewline
13 & 10.3 & 10.2020992104002 & 0.0979007895997833 \tabularnewline
14 & 10.2 & 10.0124106752224 & 0.187589324777599 \tabularnewline
15 & 9.6 & 9.704244671764 & -0.104244671763996 \tabularnewline
16 & 9.2 & 9.36818933727786 & -0.168189337277861 \tabularnewline
17 & 9.3 & 9.45940040417509 & -0.159400404175086 \tabularnewline
18 & 9.4 & 9.57787787245568 & -0.177877872455676 \tabularnewline
19 & 9.4 & 9.5490889393529 & -0.149088939352902 \tabularnewline
20 & 9.2 & 9.384244671764 & -0.184244671763995 \tabularnewline
21 & 9 & 9.1857672034834 & -0.185767203483405 \tabularnewline
22 & 9 & 8.87061147107231 & 0.129388528927686 \tabularnewline
23 & 9 & 8.71483280901685 & 0.285167190983145 \tabularnewline
24 & 9.8 & 9.19206441800871 & 0.607935581991293 \tabularnewline
25 & 10 & 9.37633200691681 & 0.623667993083189 \tabularnewline
26 & 9.8 & 9.186643471739 & 0.613356528261006 \tabularnewline
27 & 9.3 & 8.92242213379446 & 0.377577866205546 \tabularnewline
28 & 9 & 8.63031146482218 & 0.369688535177816 \tabularnewline
29 & 9 & 8.67757786620555 & 0.322422133794454 \tabularnewline
30 & 9.1 & 8.75211066897227 & 0.347889331027729 \tabularnewline
31 & 9.1 & 8.63543240484177 & 0.464567595158232 \tabularnewline
32 & 9.1 & 8.38269880622513 & 0.71730119377487 \tabularnewline
33 & 9.2 & 8.2281660034584 & 0.971833996541593 \tabularnewline
34 & 8.8 & 7.95695493656118 & 0.843045063438822 \tabularnewline
35 & 8.3 & 7.88906560553345 & 0.410934394466552 \tabularnewline
36 & 8.4 & 8.67390987312236 & -0.273909873122356 \tabularnewline
37 & 8.1 & 8.94606679305819 & -0.84606679305819 \tabularnewline
38 & 7.7 & 8.62454426133878 & -0.924544261338778 \tabularnewline
39 & 7.9 & 8.22848892685264 & -0.328488926852643 \tabularnewline
40 & 7.9 & 7.84848892685264 & 0.0515110731473577 \tabularnewline
41 & 8 & 7.98364465926373 & 0.0163553407362655 \tabularnewline
42 & 7.9 & 8.14606679305819 & -0.246066793058188 \tabularnewline
43 & 7.6 & 8.07333319444155 & -0.473333194441551 \tabularnewline
44 & 7.1 & 7.73271026479718 & -0.632710264797183 \tabularnewline
45 & 6.8 & 7.402398799975 & -0.602398799974999 \tabularnewline
46 & 6.5 & 7.0872430675639 & -0.587243067563908 \tabularnewline
47 & 6.9 & 7.32696639513323 & -0.426966395133232 \tabularnewline
48 & 8.2 & 8.46336798683306 & -0.263367986833060 \tabularnewline
49 & 8.7 & 8.82341423779662 & -0.123414237796622 \tabularnewline
50 & 8.3 & 8.41400237504948 & -0.11400237504948 \tabularnewline
51 & 7.9 & 7.71033438196629 & 0.189665618033709 \tabularnewline
52 & 7.5 & 7.24244505093856 & 0.257554949061439 \tabularnewline
53 & 7.8 & 7.42154544886352 & 0.378454551136482 \tabularnewline
54 & 8.3 & 7.84763557574116 & 0.452364424258839 \tabularnewline
55 & 8.4 & 8.03856997020771 & 0.361430029792288 \tabularnewline
56 & 8.2 & 7.96161503364653 & 0.238384966353466 \tabularnewline
57 & 7.7 & 7.67524823433821 & 0.0247517656617854 \tabularnewline
58 & 7.2 & 7.36009250192712 & -0.160092501927124 \tabularnewline
59 & 7.3 & 7.51192649846872 & -0.211926498468719 \tabularnewline
60 & 8.1 & 8.38466009708536 & -0.284660097085356 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57410&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]11.1[/C][C]10.8520877518282[/C][C]0.24791224817184[/C][/ROW]
[ROW][C]2[/C][C]10.9[/C][C]10.6623992166503[/C][C]0.237600783349653[/C][/ROW]
[ROW][C]3[/C][C]10[/C][C]10.1345098856226[/C][C]-0.134509885622617[/C][/ROW]
[ROW][C]4[/C][C]9.2[/C][C]9.71056522010875[/C][C]-0.510565220108753[/C][/ROW]
[ROW][C]5[/C][C]9.2[/C][C]9.75783162149211[/C][C]-0.557831621492115[/C][/ROW]
[ROW][C]6[/C][C]9.5[/C][C]9.8763090897727[/C][C]-0.376309089772704[/C][/ROW]
[ROW][C]7[/C][C]9.6[/C][C]9.80357549115607[/C][C]-0.203575491156066[/C][/ROW]
[ROW][C]8[/C][C]9.5[/C][C]9.63873122356716[/C][C]-0.138731223567157[/C][/ROW]
[ROW][C]9[/C][C]9.1[/C][C]9.30841975874497[/C][C]-0.208419758744974[/C][/ROW]
[ROW][C]10[/C][C]8.9[/C][C]9.12509802287548[/C][C]-0.225098022875477[/C][/ROW]
[ROW][C]11[/C][C]9[/C][C]9.05720869184775[/C][C]-0.0572086918477461[/C][/ROW]
[ROW][C]12[/C][C]10.1[/C][C]9.88599762495052[/C][C]0.21400237504948[/C][/ROW]
[ROW][C]13[/C][C]10.3[/C][C]10.2020992104002[/C][C]0.0979007895997833[/C][/ROW]
[ROW][C]14[/C][C]10.2[/C][C]10.0124106752224[/C][C]0.187589324777599[/C][/ROW]
[ROW][C]15[/C][C]9.6[/C][C]9.704244671764[/C][C]-0.104244671763996[/C][/ROW]
[ROW][C]16[/C][C]9.2[/C][C]9.36818933727786[/C][C]-0.168189337277861[/C][/ROW]
[ROW][C]17[/C][C]9.3[/C][C]9.45940040417509[/C][C]-0.159400404175086[/C][/ROW]
[ROW][C]18[/C][C]9.4[/C][C]9.57787787245568[/C][C]-0.177877872455676[/C][/ROW]
[ROW][C]19[/C][C]9.4[/C][C]9.5490889393529[/C][C]-0.149088939352902[/C][/ROW]
[ROW][C]20[/C][C]9.2[/C][C]9.384244671764[/C][C]-0.184244671763995[/C][/ROW]
[ROW][C]21[/C][C]9[/C][C]9.1857672034834[/C][C]-0.185767203483405[/C][/ROW]
[ROW][C]22[/C][C]9[/C][C]8.87061147107231[/C][C]0.129388528927686[/C][/ROW]
[ROW][C]23[/C][C]9[/C][C]8.71483280901685[/C][C]0.285167190983145[/C][/ROW]
[ROW][C]24[/C][C]9.8[/C][C]9.19206441800871[/C][C]0.607935581991293[/C][/ROW]
[ROW][C]25[/C][C]10[/C][C]9.37633200691681[/C][C]0.623667993083189[/C][/ROW]
[ROW][C]26[/C][C]9.8[/C][C]9.186643471739[/C][C]0.613356528261006[/C][/ROW]
[ROW][C]27[/C][C]9.3[/C][C]8.92242213379446[/C][C]0.377577866205546[/C][/ROW]
[ROW][C]28[/C][C]9[/C][C]8.63031146482218[/C][C]0.369688535177816[/C][/ROW]
[ROW][C]29[/C][C]9[/C][C]8.67757786620555[/C][C]0.322422133794454[/C][/ROW]
[ROW][C]30[/C][C]9.1[/C][C]8.75211066897227[/C][C]0.347889331027729[/C][/ROW]
[ROW][C]31[/C][C]9.1[/C][C]8.63543240484177[/C][C]0.464567595158232[/C][/ROW]
[ROW][C]32[/C][C]9.1[/C][C]8.38269880622513[/C][C]0.71730119377487[/C][/ROW]
[ROW][C]33[/C][C]9.2[/C][C]8.2281660034584[/C][C]0.971833996541593[/C][/ROW]
[ROW][C]34[/C][C]8.8[/C][C]7.95695493656118[/C][C]0.843045063438822[/C][/ROW]
[ROW][C]35[/C][C]8.3[/C][C]7.88906560553345[/C][C]0.410934394466552[/C][/ROW]
[ROW][C]36[/C][C]8.4[/C][C]8.67390987312236[/C][C]-0.273909873122356[/C][/ROW]
[ROW][C]37[/C][C]8.1[/C][C]8.94606679305819[/C][C]-0.84606679305819[/C][/ROW]
[ROW][C]38[/C][C]7.7[/C][C]8.62454426133878[/C][C]-0.924544261338778[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.22848892685264[/C][C]-0.328488926852643[/C][/ROW]
[ROW][C]40[/C][C]7.9[/C][C]7.84848892685264[/C][C]0.0515110731473577[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]7.98364465926373[/C][C]0.0163553407362655[/C][/ROW]
[ROW][C]42[/C][C]7.9[/C][C]8.14606679305819[/C][C]-0.246066793058188[/C][/ROW]
[ROW][C]43[/C][C]7.6[/C][C]8.07333319444155[/C][C]-0.473333194441551[/C][/ROW]
[ROW][C]44[/C][C]7.1[/C][C]7.73271026479718[/C][C]-0.632710264797183[/C][/ROW]
[ROW][C]45[/C][C]6.8[/C][C]7.402398799975[/C][C]-0.602398799974999[/C][/ROW]
[ROW][C]46[/C][C]6.5[/C][C]7.0872430675639[/C][C]-0.587243067563908[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]7.32696639513323[/C][C]-0.426966395133232[/C][/ROW]
[ROW][C]48[/C][C]8.2[/C][C]8.46336798683306[/C][C]-0.263367986833060[/C][/ROW]
[ROW][C]49[/C][C]8.7[/C][C]8.82341423779662[/C][C]-0.123414237796622[/C][/ROW]
[ROW][C]50[/C][C]8.3[/C][C]8.41400237504948[/C][C]-0.11400237504948[/C][/ROW]
[ROW][C]51[/C][C]7.9[/C][C]7.71033438196629[/C][C]0.189665618033709[/C][/ROW]
[ROW][C]52[/C][C]7.5[/C][C]7.24244505093856[/C][C]0.257554949061439[/C][/ROW]
[ROW][C]53[/C][C]7.8[/C][C]7.42154544886352[/C][C]0.378454551136482[/C][/ROW]
[ROW][C]54[/C][C]8.3[/C][C]7.84763557574116[/C][C]0.452364424258839[/C][/ROW]
[ROW][C]55[/C][C]8.4[/C][C]8.03856997020771[/C][C]0.361430029792288[/C][/ROW]
[ROW][C]56[/C][C]8.2[/C][C]7.96161503364653[/C][C]0.238384966353466[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.67524823433821[/C][C]0.0247517656617854[/C][/ROW]
[ROW][C]58[/C][C]7.2[/C][C]7.36009250192712[/C][C]-0.160092501927124[/C][/ROW]
[ROW][C]59[/C][C]7.3[/C][C]7.51192649846872[/C][C]-0.211926498468719[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]8.38466009708536[/C][C]-0.284660097085356[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57410&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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
111.110.85208775182820.24791224817184
210.910.66239921665030.237600783349653
31010.1345098856226-0.134509885622617
49.29.71056522010875-0.510565220108753
59.29.75783162149211-0.557831621492115
69.59.8763090897727-0.376309089772704
79.69.80357549115607-0.203575491156066
89.59.63873122356716-0.138731223567157
99.19.30841975874497-0.208419758744974
108.99.12509802287548-0.225098022875477
1199.05720869184775-0.0572086918477461
1210.19.885997624950520.21400237504948
1310.310.20209921040020.0979007895997833
1410.210.01241067522240.187589324777599
159.69.704244671764-0.104244671763996
169.29.36818933727786-0.168189337277861
179.39.45940040417509-0.159400404175086
189.49.57787787245568-0.177877872455676
199.49.5490889393529-0.149088939352902
209.29.384244671764-0.184244671763995
2199.1857672034834-0.185767203483405
2298.870611471072310.129388528927686
2398.714832809016850.285167190983145
249.89.192064418008710.607935581991293
25109.376332006916810.623667993083189
269.89.1866434717390.613356528261006
279.38.922422133794460.377577866205546
2898.630311464822180.369688535177816
2998.677577866205550.322422133794454
309.18.752110668972270.347889331027729
319.18.635432404841770.464567595158232
329.18.382698806225130.71730119377487
339.28.22816600345840.971833996541593
348.87.956954936561180.843045063438822
358.37.889065605533450.410934394466552
368.48.67390987312236-0.273909873122356
378.18.94606679305819-0.84606679305819
387.78.62454426133878-0.924544261338778
397.98.22848892685264-0.328488926852643
407.97.848488926852640.0515110731473577
4187.983644659263730.0163553407362655
427.98.14606679305819-0.246066793058188
437.68.07333319444155-0.473333194441551
447.17.73271026479718-0.632710264797183
456.87.402398799975-0.602398799974999
466.57.0872430675639-0.587243067563908
476.97.32696639513323-0.426966395133232
488.28.46336798683306-0.263367986833060
498.78.82341423779662-0.123414237796622
508.38.41400237504948-0.11400237504948
517.97.710334381966290.189665618033709
527.57.242445050938560.257554949061439
537.87.421545448863520.378454551136482
548.37.847635575741160.452364424258839
558.48.038569970207710.361430029792288
568.27.961615033646530.238384966353466
577.77.675248234338210.0247517656617854
587.27.36009250192712-0.160092501927124
597.37.51192649846872-0.211926498468719
608.18.38466009708536-0.284660097085356







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.003977504739211860.007955009478423730.996022495260788
180.001105495308726120.002210990617452240.998894504691274
190.001223249591306010.002446499182612010.998776750408694
200.001149668476333310.002299336952666620.998850331523667
210.000750828891225710.001501657782451420.999249171108774
220.0004377325329514630.0008754650659029250.999562267467049
230.0002233632304429930.0004467264608859870.999776636769557
240.000298910750280150.00059782150056030.99970108924972
250.0002529171299627660.0005058342599255320.999747082870037
260.0001372011647173790.0002744023294347580.999862798835283
275.60228511141323e-050.0001120457022282650.999943977148886
289.68041331186885e-050.0001936082662373770.999903195866881
290.0001080179209192550.000216035841838510.99989198207908
305.59848605319028e-050.0001119697210638060.999944015139468
312.24091247070007e-054.48182494140014e-050.999977590875293
323.57314642886258e-057.14629285772517e-050.999964268535711
330.0007722236623490880.001544447324698180.999227776337651
340.006048488294778930.01209697658955790.993951511705221
350.1316628626342650.2633257252685310.868337137365735
360.8331632413910160.3336735172179680.166836758608984
370.9754865919542850.04902681609143040.0245134080457152
380.9914645175692670.01707096486146600.00853548243073302
390.9829579734772030.03408405304559430.0170420265227971
400.9624748628378160.07505027432436750.0375251371621838
410.9173919587951150.1652160824097710.0826080412048853
420.8669618306321670.2660763387356660.133038169367833
430.9299966351850240.1400067296299520.070003364814976

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00397750473921186 & 0.00795500947842373 & 0.996022495260788 \tabularnewline
18 & 0.00110549530872612 & 0.00221099061745224 & 0.998894504691274 \tabularnewline
19 & 0.00122324959130601 & 0.00244649918261201 & 0.998776750408694 \tabularnewline
20 & 0.00114966847633331 & 0.00229933695266662 & 0.998850331523667 \tabularnewline
21 & 0.00075082889122571 & 0.00150165778245142 & 0.999249171108774 \tabularnewline
22 & 0.000437732532951463 & 0.000875465065902925 & 0.999562267467049 \tabularnewline
23 & 0.000223363230442993 & 0.000446726460885987 & 0.999776636769557 \tabularnewline
24 & 0.00029891075028015 & 0.0005978215005603 & 0.99970108924972 \tabularnewline
25 & 0.000252917129962766 & 0.000505834259925532 & 0.999747082870037 \tabularnewline
26 & 0.000137201164717379 & 0.000274402329434758 & 0.999862798835283 \tabularnewline
27 & 5.60228511141323e-05 & 0.000112045702228265 & 0.999943977148886 \tabularnewline
28 & 9.68041331186885e-05 & 0.000193608266237377 & 0.999903195866881 \tabularnewline
29 & 0.000108017920919255 & 0.00021603584183851 & 0.99989198207908 \tabularnewline
30 & 5.59848605319028e-05 & 0.000111969721063806 & 0.999944015139468 \tabularnewline
31 & 2.24091247070007e-05 & 4.48182494140014e-05 & 0.999977590875293 \tabularnewline
32 & 3.57314642886258e-05 & 7.14629285772517e-05 & 0.999964268535711 \tabularnewline
33 & 0.000772223662349088 & 0.00154444732469818 & 0.999227776337651 \tabularnewline
34 & 0.00604848829477893 & 0.0120969765895579 & 0.993951511705221 \tabularnewline
35 & 0.131662862634265 & 0.263325725268531 & 0.868337137365735 \tabularnewline
36 & 0.833163241391016 & 0.333673517217968 & 0.166836758608984 \tabularnewline
37 & 0.975486591954285 & 0.0490268160914304 & 0.0245134080457152 \tabularnewline
38 & 0.991464517569267 & 0.0170709648614660 & 0.00853548243073302 \tabularnewline
39 & 0.982957973477203 & 0.0340840530455943 & 0.0170420265227971 \tabularnewline
40 & 0.962474862837816 & 0.0750502743243675 & 0.0375251371621838 \tabularnewline
41 & 0.917391958795115 & 0.165216082409771 & 0.0826080412048853 \tabularnewline
42 & 0.866961830632167 & 0.266076338735666 & 0.133038169367833 \tabularnewline
43 & 0.929996635185024 & 0.140006729629952 & 0.070003364814976 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57410&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.00397750473921186[/C][C]0.00795500947842373[/C][C]0.996022495260788[/C][/ROW]
[ROW][C]18[/C][C]0.00110549530872612[/C][C]0.00221099061745224[/C][C]0.998894504691274[/C][/ROW]
[ROW][C]19[/C][C]0.00122324959130601[/C][C]0.00244649918261201[/C][C]0.998776750408694[/C][/ROW]
[ROW][C]20[/C][C]0.00114966847633331[/C][C]0.00229933695266662[/C][C]0.998850331523667[/C][/ROW]
[ROW][C]21[/C][C]0.00075082889122571[/C][C]0.00150165778245142[/C][C]0.999249171108774[/C][/ROW]
[ROW][C]22[/C][C]0.000437732532951463[/C][C]0.000875465065902925[/C][C]0.999562267467049[/C][/ROW]
[ROW][C]23[/C][C]0.000223363230442993[/C][C]0.000446726460885987[/C][C]0.999776636769557[/C][/ROW]
[ROW][C]24[/C][C]0.00029891075028015[/C][C]0.0005978215005603[/C][C]0.99970108924972[/C][/ROW]
[ROW][C]25[/C][C]0.000252917129962766[/C][C]0.000505834259925532[/C][C]0.999747082870037[/C][/ROW]
[ROW][C]26[/C][C]0.000137201164717379[/C][C]0.000274402329434758[/C][C]0.999862798835283[/C][/ROW]
[ROW][C]27[/C][C]5.60228511141323e-05[/C][C]0.000112045702228265[/C][C]0.999943977148886[/C][/ROW]
[ROW][C]28[/C][C]9.68041331186885e-05[/C][C]0.000193608266237377[/C][C]0.999903195866881[/C][/ROW]
[ROW][C]29[/C][C]0.000108017920919255[/C][C]0.00021603584183851[/C][C]0.99989198207908[/C][/ROW]
[ROW][C]30[/C][C]5.59848605319028e-05[/C][C]0.000111969721063806[/C][C]0.999944015139468[/C][/ROW]
[ROW][C]31[/C][C]2.24091247070007e-05[/C][C]4.48182494140014e-05[/C][C]0.999977590875293[/C][/ROW]
[ROW][C]32[/C][C]3.57314642886258e-05[/C][C]7.14629285772517e-05[/C][C]0.999964268535711[/C][/ROW]
[ROW][C]33[/C][C]0.000772223662349088[/C][C]0.00154444732469818[/C][C]0.999227776337651[/C][/ROW]
[ROW][C]34[/C][C]0.00604848829477893[/C][C]0.0120969765895579[/C][C]0.993951511705221[/C][/ROW]
[ROW][C]35[/C][C]0.131662862634265[/C][C]0.263325725268531[/C][C]0.868337137365735[/C][/ROW]
[ROW][C]36[/C][C]0.833163241391016[/C][C]0.333673517217968[/C][C]0.166836758608984[/C][/ROW]
[ROW][C]37[/C][C]0.975486591954285[/C][C]0.0490268160914304[/C][C]0.0245134080457152[/C][/ROW]
[ROW][C]38[/C][C]0.991464517569267[/C][C]0.0170709648614660[/C][C]0.00853548243073302[/C][/ROW]
[ROW][C]39[/C][C]0.982957973477203[/C][C]0.0340840530455943[/C][C]0.0170420265227971[/C][/ROW]
[ROW][C]40[/C][C]0.962474862837816[/C][C]0.0750502743243675[/C][C]0.0375251371621838[/C][/ROW]
[ROW][C]41[/C][C]0.917391958795115[/C][C]0.165216082409771[/C][C]0.0826080412048853[/C][/ROW]
[ROW][C]42[/C][C]0.866961830632167[/C][C]0.266076338735666[/C][C]0.133038169367833[/C][/ROW]
[ROW][C]43[/C][C]0.929996635185024[/C][C]0.140006729629952[/C][C]0.070003364814976[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57410&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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.003977504739211860.007955009478423730.996022495260788
180.001105495308726120.002210990617452240.998894504691274
190.001223249591306010.002446499182612010.998776750408694
200.001149668476333310.002299336952666620.998850331523667
210.000750828891225710.001501657782451420.999249171108774
220.0004377325329514630.0008754650659029250.999562267467049
230.0002233632304429930.0004467264608859870.999776636769557
240.000298910750280150.00059782150056030.99970108924972
250.0002529171299627660.0005058342599255320.999747082870037
260.0001372011647173790.0002744023294347580.999862798835283
275.60228511141323e-050.0001120457022282650.999943977148886
289.68041331186885e-050.0001936082662373770.999903195866881
290.0001080179209192550.000216035841838510.99989198207908
305.59848605319028e-050.0001119697210638060.999944015139468
312.24091247070007e-054.48182494140014e-050.999977590875293
323.57314642886258e-057.14629285772517e-050.999964268535711
330.0007722236623490880.001544447324698180.999227776337651
340.006048488294778930.01209697658955790.993951511705221
350.1316628626342650.2633257252685310.868337137365735
360.8331632413910160.3336735172179680.166836758608984
370.9754865919542850.04902681609143040.0245134080457152
380.9914645175692670.01707096486146600.00853548243073302
390.9829579734772030.03408405304559430.0170420265227971
400.9624748628378160.07505027432436750.0375251371621838
410.9173919587951150.1652160824097710.0826080412048853
420.8669618306321670.2660763387356660.133038169367833
430.9299966351850240.1400067296299520.070003364814976







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.62962962962963NOK
5% type I error level210.777777777777778NOK
10% type I error level220.814814814814815NOK

\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 & 17 & 0.62962962962963 & NOK \tabularnewline
5% type I error level & 21 & 0.777777777777778 & NOK \tabularnewline
10% type I error level & 22 & 0.814814814814815 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57410&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]17[/C][C]0.62962962962963[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]21[/C][C]0.777777777777778[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]22[/C][C]0.814814814814815[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57410&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57410&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 level170.62962962962963NOK
5% type I error level210.777777777777778NOK
10% type I error level220.814814814814815NOK



Parameters (Session):
par1 = 2 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 2 ; 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')
}