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 computationFri, 20 Nov 2009 12:50:08 -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/20/t12587466686ziy1ee9mkcbgfr.htm/, Retrieved Thu, 25 Apr 2024 22:18:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58447, Retrieved Thu, 25 Apr 2024 22:18:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact133
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
- R PD    [Multiple Regression] [Model 4] [2009-11-20 19:22:54] [2c014794d4323c20be9bea6a55dac7b2]
-    D        [Multiple Regression] [Model 5] [2009-11-20 19:50:08] [a25640248f5f3c4d92f02a597edd3aef] [Current]
Feedback Forum

Post a new message
Dataseries X:
96.9	8.6	8.4	8.4
95.1	8.9	8.6	8.4
97	8.8	8.9	8.6
112.7	8.3	8.8	8.9
102.9	7.5	8.3	8.8
97.4	7.2	7.5	8.3
111.4	7.4	7.2	7.5
87.4	8.8	7.4	7.2
96.8	9.3	8.8	7.4
114.1	9.3	9.3	8.8
110.3	8.7	9.3	9.3
103.9	8.2	8.7	9.3
101.6	8.3	8.2	8.7
94.6	8.5	8.3	8.2
95.9	8.6	8.5	8.3
104.7	8.5	8.6	8.5
102.8	8.2	8.5	8.6
98.1	8.1	8.2	8.5
113.9	7.9	8.1	8.2
80.9	8.6	7.9	8.1
95.7	8.7	8.6	7.9
113.2	8.7	8.7	8.6
105.9	8.5	8.7	8.7
108.8	8.4	8.5	8.7
102.3	8.5	8.4	8.5
99	8.7	8.5	8.4
100.7	8.7	8.7	8.5
115.5	8.6	8.7	8.7
100.7	8.5	8.6	8.7
109.9	8.3	8.5	8.6
114.6	8	8.3	8.5
85.4	8.2	8	8.3
100.5	8.1	8.2	8
114.8	8.1	8.1	8.2
116.5	8	8.1	8.1
112.9	7.9	8	8.1
102	7.9	7.9	8
106	8	7.9	7.9
105.3	8	8	7.9
118.8	7.9	8	8
106.1	8	7.9	8
109.3	7.7	8	7.9
117.2	7.2	7.7	8
92.5	7.5	7.2	7.7
104.2	7.3	7.5	7.2
112.5	7	7.3	7.5
122.4	7	7	7.3
113.3	7	7	7
100	7.2	7	7
110.7	7.3	7.2	7
112.8	7.1	7.3	7.2
109.8	6.8	7.1	7.3
117.3	6.4	6.8	7.1
109.1	6.1	6.4	6.8
115.9	6.5	6.1	6.4
96	7.7	6.5	6.1
99.8	7.9	7.7	6.5
116.8	7.5	7.9	7.7
115.7	6.9	7.5	7.9




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 2.91905237632963 -0.00453242253479385Y[t] + 1.41540921091640Y2[t] -0.690016330933515Y3[t] + 0.137104573754478M1[t] + 0.0607064192686293M2[t] -0.137858049153742M3[t] -0.124199435265789M4[t] -0.161449243535398M5[t] -0.126372602670887M6[t] -0.0213838761519172M7[t] + 0.575373145223861M8[t] -0.398167433129223M9[t] -0.080157117956941M10[t] -0.105845708602752M11[t] -0.00769637743671768t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  2.91905237632963 -0.00453242253479385Y[t] +  1.41540921091640Y2[t] -0.690016330933515Y3[t] +  0.137104573754478M1[t] +  0.0607064192686293M2[t] -0.137858049153742M3[t] -0.124199435265789M4[t] -0.161449243535398M5[t] -0.126372602670887M6[t] -0.0213838761519172M7[t] +  0.575373145223861M8[t] -0.398167433129223M9[t] -0.080157117956941M10[t] -0.105845708602752M11[t] -0.00769637743671768t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58447&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  2.91905237632963 -0.00453242253479385Y[t] +  1.41540921091640Y2[t] -0.690016330933515Y3[t] +  0.137104573754478M1[t] +  0.0607064192686293M2[t] -0.137858049153742M3[t] -0.124199435265789M4[t] -0.161449243535398M5[t] -0.126372602670887M6[t] -0.0213838761519172M7[t] +  0.575373145223861M8[t] -0.398167433129223M9[t] -0.080157117956941M10[t] -0.105845708602752M11[t] -0.00769637743671768t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58447&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
X[t] = + 2.91905237632963 -0.00453242253479385Y[t] + 1.41540921091640Y2[t] -0.690016330933515Y3[t] + 0.137104573754478M1[t] + 0.0607064192686293M2[t] -0.137858049153742M3[t] -0.124199435265789M4[t] -0.161449243535398M5[t] -0.126372602670887M6[t] -0.0213838761519172M7[t] + 0.575373145223861M8[t] -0.398167433129223M9[t] -0.080157117956941M10[t] -0.105845708602752M11[t] -0.00769637743671768t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.919052376329631.0211012.85870.0065340.003267
Y-0.004532422534793850.007543-0.60090.5510620.275531
Y21.415409210916400.11306112.51900
Y3-0.6900163309335150.112329-6.142800
M10.1371045737544780.1462240.93760.3536680.176834
M20.06070641926862930.1501610.40430.6880150.344007
M3-0.1378580491537420.147784-0.93280.3561140.178057
M4-0.1241994352657890.133191-0.93250.3562890.178144
M5-0.1614492435353980.132865-1.21510.2309450.115473
M6-0.1263726026708870.137069-0.9220.3616910.180845
M7-0.02138387615191720.138145-0.15480.8777090.438854
M80.5753731452238610.2175512.64480.0113670.005684
M9-0.3981674331292230.192458-2.06890.0446050.022303
M10-0.0801571179569410.137849-0.58150.563950.281975
M11-0.1058457086027520.133625-0.79210.4326430.216322
t-0.007696377436717680.002721-2.82810.0070840.003542

\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) & 2.91905237632963 & 1.021101 & 2.8587 & 0.006534 & 0.003267 \tabularnewline
Y & -0.00453242253479385 & 0.007543 & -0.6009 & 0.551062 & 0.275531 \tabularnewline
Y2 & 1.41540921091640 & 0.113061 & 12.519 & 0 & 0 \tabularnewline
Y3 & -0.690016330933515 & 0.112329 & -6.1428 & 0 & 0 \tabularnewline
M1 & 0.137104573754478 & 0.146224 & 0.9376 & 0.353668 & 0.176834 \tabularnewline
M2 & 0.0607064192686293 & 0.150161 & 0.4043 & 0.688015 & 0.344007 \tabularnewline
M3 & -0.137858049153742 & 0.147784 & -0.9328 & 0.356114 & 0.178057 \tabularnewline
M4 & -0.124199435265789 & 0.133191 & -0.9325 & 0.356289 & 0.178144 \tabularnewline
M5 & -0.161449243535398 & 0.132865 & -1.2151 & 0.230945 & 0.115473 \tabularnewline
M6 & -0.126372602670887 & 0.137069 & -0.922 & 0.361691 & 0.180845 \tabularnewline
M7 & -0.0213838761519172 & 0.138145 & -0.1548 & 0.877709 & 0.438854 \tabularnewline
M8 & 0.575373145223861 & 0.217551 & 2.6448 & 0.011367 & 0.005684 \tabularnewline
M9 & -0.398167433129223 & 0.192458 & -2.0689 & 0.044605 & 0.022303 \tabularnewline
M10 & -0.080157117956941 & 0.137849 & -0.5815 & 0.56395 & 0.281975 \tabularnewline
M11 & -0.105845708602752 & 0.133625 & -0.7921 & 0.432643 & 0.216322 \tabularnewline
t & -0.00769637743671768 & 0.002721 & -2.8281 & 0.007084 & 0.003542 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58447&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]2.91905237632963[/C][C]1.021101[/C][C]2.8587[/C][C]0.006534[/C][C]0.003267[/C][/ROW]
[ROW][C]Y[/C][C]-0.00453242253479385[/C][C]0.007543[/C][C]-0.6009[/C][C]0.551062[/C][C]0.275531[/C][/ROW]
[ROW][C]Y2[/C][C]1.41540921091640[/C][C]0.113061[/C][C]12.519[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y3[/C][C]-0.690016330933515[/C][C]0.112329[/C][C]-6.1428[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.137104573754478[/C][C]0.146224[/C][C]0.9376[/C][C]0.353668[/C][C]0.176834[/C][/ROW]
[ROW][C]M2[/C][C]0.0607064192686293[/C][C]0.150161[/C][C]0.4043[/C][C]0.688015[/C][C]0.344007[/C][/ROW]
[ROW][C]M3[/C][C]-0.137858049153742[/C][C]0.147784[/C][C]-0.9328[/C][C]0.356114[/C][C]0.178057[/C][/ROW]
[ROW][C]M4[/C][C]-0.124199435265789[/C][C]0.133191[/C][C]-0.9325[/C][C]0.356289[/C][C]0.178144[/C][/ROW]
[ROW][C]M5[/C][C]-0.161449243535398[/C][C]0.132865[/C][C]-1.2151[/C][C]0.230945[/C][C]0.115473[/C][/ROW]
[ROW][C]M6[/C][C]-0.126372602670887[/C][C]0.137069[/C][C]-0.922[/C][C]0.361691[/C][C]0.180845[/C][/ROW]
[ROW][C]M7[/C][C]-0.0213838761519172[/C][C]0.138145[/C][C]-0.1548[/C][C]0.877709[/C][C]0.438854[/C][/ROW]
[ROW][C]M8[/C][C]0.575373145223861[/C][C]0.217551[/C][C]2.6448[/C][C]0.011367[/C][C]0.005684[/C][/ROW]
[ROW][C]M9[/C][C]-0.398167433129223[/C][C]0.192458[/C][C]-2.0689[/C][C]0.044605[/C][C]0.022303[/C][/ROW]
[ROW][C]M10[/C][C]-0.080157117956941[/C][C]0.137849[/C][C]-0.5815[/C][C]0.56395[/C][C]0.281975[/C][/ROW]
[ROW][C]M11[/C][C]-0.105845708602752[/C][C]0.133625[/C][C]-0.7921[/C][C]0.432643[/C][C]0.216322[/C][/ROW]
[ROW][C]t[/C][C]-0.00769637743671768[/C][C]0.002721[/C][C]-2.8281[/C][C]0.007084[/C][C]0.003542[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58447&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58447&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)2.919052376329631.0211012.85870.0065340.003267
Y-0.004532422534793850.007543-0.60090.5510620.275531
Y21.415409210916400.11306112.51900
Y3-0.6900163309335150.112329-6.142800
M10.1371045737544780.1462240.93760.3536680.176834
M20.06070641926862930.1501610.40430.6880150.344007
M3-0.1378580491537420.147784-0.93280.3561140.178057
M4-0.1241994352657890.133191-0.93250.3562890.178144
M5-0.1614492435353980.132865-1.21510.2309450.115473
M6-0.1263726026708870.137069-0.9220.3616910.180845
M7-0.02138387615191720.138145-0.15480.8777090.438854
M80.5753731452238610.2175512.64480.0113670.005684
M9-0.3981674331292230.192458-2.06890.0446050.022303
M10-0.0801571179569410.137849-0.58150.563950.281975
M11-0.1058457086027520.133625-0.79210.4326430.216322
t-0.007696377436717680.002721-2.82810.0070840.003542







Multiple Linear Regression - Regression Statistics
Multiple R0.972918106226033
R-squared0.946569641422451
Adjusted R-squared0.927931144244237
F-TEST (value)50.7857276459411
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.193728062396361
Sum Squared Residuals1.61381417287347

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.972918106226033 \tabularnewline
R-squared & 0.946569641422451 \tabularnewline
Adjusted R-squared & 0.927931144244237 \tabularnewline
F-TEST (value) & 50.7857276459411 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.193728062396361 \tabularnewline
Sum Squared Residuals & 1.61381417287347 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58447&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.972918106226033[/C][/ROW]
[ROW][C]R-squared[/C][C]0.946569641422451[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.927931144244237[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]50.7857276459411[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.193728062396361[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.61381417287347[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58447&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58447&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.972918106226033
R-squared0.946569641422451
Adjusted R-squared0.927931144244237
F-TEST (value)50.7857276459411
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.193728062396361
Sum Squared Residuals1.61381417287347







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.70256902088208-0.102569020882076
28.98.90971469170541-0.00971469170541226
38.88.98146174011844-0.181461740118434
48.38.56771912240171-0.267719122401711
57.57.92848770517152-0.428487705171517
67.27.193477089274320.00652291072568439
77.47.354705824341350.0452941756586532
88.88.54263135057880.257368649421206
99.39.36235925205818-0.0623592520581825
109.39.33594402209309-0.0359440220930902
118.78.97477409417602-0.274774094176023
128.28.2526854030149-0.0526854030148971
138.38.09882336426460.201176635735407
148.58.53300487664398-0.0330048766439838
158.68.534932090579590.0650679094204113
168.58.50454666362957-0.00454666362957453
178.28.25766952655437-0.0576695265543664
188.17.950731045714120.149268954285878
197.98.04187509693505-0.141875096935046
208.68.566425475432380.0335745245676221
218.78.64689837995580.0531016200441935
228.78.536424412770660.163575587229343
238.58.467124496098770.0328755039012277
248.48.269047959730630.130952040269375
258.58.424379247619610.0756207523803906
268.78.565784264246850.134215735753146
278.78.565898509168540.134101490831458
288.68.366777625918130.233222374081874
298.58.24737037263510.252629627364891
308.38.160513060744510.13948693925549
3188.0224228148233-0.0224228148233045
328.28.45721069969013-0.257210699690129
338.17.897620905088270.202379094911727
348.17.863577013297940.236422986702057
3587.891488559999620.108511440000383
367.97.864413691199270.0355863088007312
377.97.970686005148-0.0706860051479941
3887.93746341617960.0625365838203962
3987.875916187186510.124083812813491
407.97.751689086324680.148310913675323
4187.622763745718590.377236254281407
427.77.84618281122004-0.146182811220036
437.27.41404462590915-0.214044625909147
447.57.61435640027947-0.114356400279472
457.37.34972102957426-0.0497210295742588
4677.1323291188077-0.132329118807700
4776.76745367054250.232546329457503
4877.11385294605521-0.113852946055209
497.27.30354236208573-0.103542362085727
507.37.45403275122415-0.154032751224146
517.17.24179147294693-0.141791472946926
526.86.90926750172591-0.109267501725913
536.46.54370864992042-0.143708649920416
546.16.24909599304702-0.149095993047016
556.56.166951637991160.333048362008845
567.77.619376074019230.0806239259807724
577.98.04340043332348-0.143400433323479
587.57.73172543303061-0.231725433030609
596.96.9991591791831-0.0991591791830919

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.6 & 8.70256902088208 & -0.102569020882076 \tabularnewline
2 & 8.9 & 8.90971469170541 & -0.00971469170541226 \tabularnewline
3 & 8.8 & 8.98146174011844 & -0.181461740118434 \tabularnewline
4 & 8.3 & 8.56771912240171 & -0.267719122401711 \tabularnewline
5 & 7.5 & 7.92848770517152 & -0.428487705171517 \tabularnewline
6 & 7.2 & 7.19347708927432 & 0.00652291072568439 \tabularnewline
7 & 7.4 & 7.35470582434135 & 0.0452941756586532 \tabularnewline
8 & 8.8 & 8.5426313505788 & 0.257368649421206 \tabularnewline
9 & 9.3 & 9.36235925205818 & -0.0623592520581825 \tabularnewline
10 & 9.3 & 9.33594402209309 & -0.0359440220930902 \tabularnewline
11 & 8.7 & 8.97477409417602 & -0.274774094176023 \tabularnewline
12 & 8.2 & 8.2526854030149 & -0.0526854030148971 \tabularnewline
13 & 8.3 & 8.0988233642646 & 0.201176635735407 \tabularnewline
14 & 8.5 & 8.53300487664398 & -0.0330048766439838 \tabularnewline
15 & 8.6 & 8.53493209057959 & 0.0650679094204113 \tabularnewline
16 & 8.5 & 8.50454666362957 & -0.00454666362957453 \tabularnewline
17 & 8.2 & 8.25766952655437 & -0.0576695265543664 \tabularnewline
18 & 8.1 & 7.95073104571412 & 0.149268954285878 \tabularnewline
19 & 7.9 & 8.04187509693505 & -0.141875096935046 \tabularnewline
20 & 8.6 & 8.56642547543238 & 0.0335745245676221 \tabularnewline
21 & 8.7 & 8.6468983799558 & 0.0531016200441935 \tabularnewline
22 & 8.7 & 8.53642441277066 & 0.163575587229343 \tabularnewline
23 & 8.5 & 8.46712449609877 & 0.0328755039012277 \tabularnewline
24 & 8.4 & 8.26904795973063 & 0.130952040269375 \tabularnewline
25 & 8.5 & 8.42437924761961 & 0.0756207523803906 \tabularnewline
26 & 8.7 & 8.56578426424685 & 0.134215735753146 \tabularnewline
27 & 8.7 & 8.56589850916854 & 0.134101490831458 \tabularnewline
28 & 8.6 & 8.36677762591813 & 0.233222374081874 \tabularnewline
29 & 8.5 & 8.2473703726351 & 0.252629627364891 \tabularnewline
30 & 8.3 & 8.16051306074451 & 0.13948693925549 \tabularnewline
31 & 8 & 8.0224228148233 & -0.0224228148233045 \tabularnewline
32 & 8.2 & 8.45721069969013 & -0.257210699690129 \tabularnewline
33 & 8.1 & 7.89762090508827 & 0.202379094911727 \tabularnewline
34 & 8.1 & 7.86357701329794 & 0.236422986702057 \tabularnewline
35 & 8 & 7.89148855999962 & 0.108511440000383 \tabularnewline
36 & 7.9 & 7.86441369119927 & 0.0355863088007312 \tabularnewline
37 & 7.9 & 7.970686005148 & -0.0706860051479941 \tabularnewline
38 & 8 & 7.9374634161796 & 0.0625365838203962 \tabularnewline
39 & 8 & 7.87591618718651 & 0.124083812813491 \tabularnewline
40 & 7.9 & 7.75168908632468 & 0.148310913675323 \tabularnewline
41 & 8 & 7.62276374571859 & 0.377236254281407 \tabularnewline
42 & 7.7 & 7.84618281122004 & -0.146182811220036 \tabularnewline
43 & 7.2 & 7.41404462590915 & -0.214044625909147 \tabularnewline
44 & 7.5 & 7.61435640027947 & -0.114356400279472 \tabularnewline
45 & 7.3 & 7.34972102957426 & -0.0497210295742588 \tabularnewline
46 & 7 & 7.1323291188077 & -0.132329118807700 \tabularnewline
47 & 7 & 6.7674536705425 & 0.232546329457503 \tabularnewline
48 & 7 & 7.11385294605521 & -0.113852946055209 \tabularnewline
49 & 7.2 & 7.30354236208573 & -0.103542362085727 \tabularnewline
50 & 7.3 & 7.45403275122415 & -0.154032751224146 \tabularnewline
51 & 7.1 & 7.24179147294693 & -0.141791472946926 \tabularnewline
52 & 6.8 & 6.90926750172591 & -0.109267501725913 \tabularnewline
53 & 6.4 & 6.54370864992042 & -0.143708649920416 \tabularnewline
54 & 6.1 & 6.24909599304702 & -0.149095993047016 \tabularnewline
55 & 6.5 & 6.16695163799116 & 0.333048362008845 \tabularnewline
56 & 7.7 & 7.61937607401923 & 0.0806239259807724 \tabularnewline
57 & 7.9 & 8.04340043332348 & -0.143400433323479 \tabularnewline
58 & 7.5 & 7.73172543303061 & -0.231725433030609 \tabularnewline
59 & 6.9 & 6.9991591791831 & -0.0991591791830919 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58447&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.6[/C][C]8.70256902088208[/C][C]-0.102569020882076[/C][/ROW]
[ROW][C]2[/C][C]8.9[/C][C]8.90971469170541[/C][C]-0.00971469170541226[/C][/ROW]
[ROW][C]3[/C][C]8.8[/C][C]8.98146174011844[/C][C]-0.181461740118434[/C][/ROW]
[ROW][C]4[/C][C]8.3[/C][C]8.56771912240171[/C][C]-0.267719122401711[/C][/ROW]
[ROW][C]5[/C][C]7.5[/C][C]7.92848770517152[/C][C]-0.428487705171517[/C][/ROW]
[ROW][C]6[/C][C]7.2[/C][C]7.19347708927432[/C][C]0.00652291072568439[/C][/ROW]
[ROW][C]7[/C][C]7.4[/C][C]7.35470582434135[/C][C]0.0452941756586532[/C][/ROW]
[ROW][C]8[/C][C]8.8[/C][C]8.5426313505788[/C][C]0.257368649421206[/C][/ROW]
[ROW][C]9[/C][C]9.3[/C][C]9.36235925205818[/C][C]-0.0623592520581825[/C][/ROW]
[ROW][C]10[/C][C]9.3[/C][C]9.33594402209309[/C][C]-0.0359440220930902[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.97477409417602[/C][C]-0.274774094176023[/C][/ROW]
[ROW][C]12[/C][C]8.2[/C][C]8.2526854030149[/C][C]-0.0526854030148971[/C][/ROW]
[ROW][C]13[/C][C]8.3[/C][C]8.0988233642646[/C][C]0.201176635735407[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.53300487664398[/C][C]-0.0330048766439838[/C][/ROW]
[ROW][C]15[/C][C]8.6[/C][C]8.53493209057959[/C][C]0.0650679094204113[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.50454666362957[/C][C]-0.00454666362957453[/C][/ROW]
[ROW][C]17[/C][C]8.2[/C][C]8.25766952655437[/C][C]-0.0576695265543664[/C][/ROW]
[ROW][C]18[/C][C]8.1[/C][C]7.95073104571412[/C][C]0.149268954285878[/C][/ROW]
[ROW][C]19[/C][C]7.9[/C][C]8.04187509693505[/C][C]-0.141875096935046[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]8.56642547543238[/C][C]0.0335745245676221[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.6468983799558[/C][C]0.0531016200441935[/C][/ROW]
[ROW][C]22[/C][C]8.7[/C][C]8.53642441277066[/C][C]0.163575587229343[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]8.46712449609877[/C][C]0.0328755039012277[/C][/ROW]
[ROW][C]24[/C][C]8.4[/C][C]8.26904795973063[/C][C]0.130952040269375[/C][/ROW]
[ROW][C]25[/C][C]8.5[/C][C]8.42437924761961[/C][C]0.0756207523803906[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.56578426424685[/C][C]0.134215735753146[/C][/ROW]
[ROW][C]27[/C][C]8.7[/C][C]8.56589850916854[/C][C]0.134101490831458[/C][/ROW]
[ROW][C]28[/C][C]8.6[/C][C]8.36677762591813[/C][C]0.233222374081874[/C][/ROW]
[ROW][C]29[/C][C]8.5[/C][C]8.2473703726351[/C][C]0.252629627364891[/C][/ROW]
[ROW][C]30[/C][C]8.3[/C][C]8.16051306074451[/C][C]0.13948693925549[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]8.0224228148233[/C][C]-0.0224228148233045[/C][/ROW]
[ROW][C]32[/C][C]8.2[/C][C]8.45721069969013[/C][C]-0.257210699690129[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]7.89762090508827[/C][C]0.202379094911727[/C][/ROW]
[ROW][C]34[/C][C]8.1[/C][C]7.86357701329794[/C][C]0.236422986702057[/C][/ROW]
[ROW][C]35[/C][C]8[/C][C]7.89148855999962[/C][C]0.108511440000383[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.86441369119927[/C][C]0.0355863088007312[/C][/ROW]
[ROW][C]37[/C][C]7.9[/C][C]7.970686005148[/C][C]-0.0706860051479941[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]7.9374634161796[/C][C]0.0625365838203962[/C][/ROW]
[ROW][C]39[/C][C]8[/C][C]7.87591618718651[/C][C]0.124083812813491[/C][/ROW]
[ROW][C]40[/C][C]7.9[/C][C]7.75168908632468[/C][C]0.148310913675323[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]7.62276374571859[/C][C]0.377236254281407[/C][/ROW]
[ROW][C]42[/C][C]7.7[/C][C]7.84618281122004[/C][C]-0.146182811220036[/C][/ROW]
[ROW][C]43[/C][C]7.2[/C][C]7.41404462590915[/C][C]-0.214044625909147[/C][/ROW]
[ROW][C]44[/C][C]7.5[/C][C]7.61435640027947[/C][C]-0.114356400279472[/C][/ROW]
[ROW][C]45[/C][C]7.3[/C][C]7.34972102957426[/C][C]-0.0497210295742588[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.1323291188077[/C][C]-0.132329118807700[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]6.7674536705425[/C][C]0.232546329457503[/C][/ROW]
[ROW][C]48[/C][C]7[/C][C]7.11385294605521[/C][C]-0.113852946055209[/C][/ROW]
[ROW][C]49[/C][C]7.2[/C][C]7.30354236208573[/C][C]-0.103542362085727[/C][/ROW]
[ROW][C]50[/C][C]7.3[/C][C]7.45403275122415[/C][C]-0.154032751224146[/C][/ROW]
[ROW][C]51[/C][C]7.1[/C][C]7.24179147294693[/C][C]-0.141791472946926[/C][/ROW]
[ROW][C]52[/C][C]6.8[/C][C]6.90926750172591[/C][C]-0.109267501725913[/C][/ROW]
[ROW][C]53[/C][C]6.4[/C][C]6.54370864992042[/C][C]-0.143708649920416[/C][/ROW]
[ROW][C]54[/C][C]6.1[/C][C]6.24909599304702[/C][C]-0.149095993047016[/C][/ROW]
[ROW][C]55[/C][C]6.5[/C][C]6.16695163799116[/C][C]0.333048362008845[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]7.61937607401923[/C][C]0.0806239259807724[/C][/ROW]
[ROW][C]57[/C][C]7.9[/C][C]8.04340043332348[/C][C]-0.143400433323479[/C][/ROW]
[ROW][C]58[/C][C]7.5[/C][C]7.73172543303061[/C][C]-0.231725433030609[/C][/ROW]
[ROW][C]59[/C][C]6.9[/C][C]6.9991591791831[/C][C]-0.0991591791830919[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58447&T=4

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.68.70256902088208-0.102569020882076
28.98.90971469170541-0.00971469170541226
38.88.98146174011844-0.181461740118434
48.38.56771912240171-0.267719122401711
57.57.92848770517152-0.428487705171517
67.27.193477089274320.00652291072568439
77.47.354705824341350.0452941756586532
88.88.54263135057880.257368649421206
99.39.36235925205818-0.0623592520581825
109.39.33594402209309-0.0359440220930902
118.78.97477409417602-0.274774094176023
128.28.2526854030149-0.0526854030148971
138.38.09882336426460.201176635735407
148.58.53300487664398-0.0330048766439838
158.68.534932090579590.0650679094204113
168.58.50454666362957-0.00454666362957453
178.28.25766952655437-0.0576695265543664
188.17.950731045714120.149268954285878
197.98.04187509693505-0.141875096935046
208.68.566425475432380.0335745245676221
218.78.64689837995580.0531016200441935
228.78.536424412770660.163575587229343
238.58.467124496098770.0328755039012277
248.48.269047959730630.130952040269375
258.58.424379247619610.0756207523803906
268.78.565784264246850.134215735753146
278.78.565898509168540.134101490831458
288.68.366777625918130.233222374081874
298.58.24737037263510.252629627364891
308.38.160513060744510.13948693925549
3188.0224228148233-0.0224228148233045
328.28.45721069969013-0.257210699690129
338.17.897620905088270.202379094911727
348.17.863577013297940.236422986702057
3587.891488559999620.108511440000383
367.97.864413691199270.0355863088007312
377.97.970686005148-0.0706860051479941
3887.93746341617960.0625365838203962
3987.875916187186510.124083812813491
407.97.751689086324680.148310913675323
4187.622763745718590.377236254281407
427.77.84618281122004-0.146182811220036
437.27.41404462590915-0.214044625909147
447.57.61435640027947-0.114356400279472
457.37.34972102957426-0.0497210295742588
4677.1323291188077-0.132329118807700
4776.76745367054250.232546329457503
4877.11385294605521-0.113852946055209
497.27.30354236208573-0.103542362085727
507.37.45403275122415-0.154032751224146
517.17.24179147294693-0.141791472946926
526.86.90926750172591-0.109267501725913
536.46.54370864992042-0.143708649920416
546.16.24909599304702-0.149095993047016
556.56.166951637991160.333048362008845
567.77.619376074019230.0806239259807724
577.98.04340043332348-0.143400433323479
587.57.73172543303061-0.231725433030609
596.96.9991591791831-0.0991591791830919







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.5495296231760740.9009407536478530.450470376823926
200.3898493875651710.7796987751303420.610150612434829
210.2968369481230290.5936738962460570.703163051876971
220.1936989591185060.3873979182370110.806301040881494
230.1554262723342620.3108525446685240.844573727665738
240.1434563643313480.2869127286626950.856543635668652
250.1410874367267850.2821748734535690.858912563273215
260.08299019715049190.1659803943009840.917009802849508
270.04643480044424180.09286960088848370.953565199555758
280.03931169777624140.07862339555248280.960688302223759
290.08023968764160930.1604793752832190.91976031235839
300.06219451430928760.1243890286185750.937805485690712
310.03961564947415420.07923129894830840.960384350525846
320.2210792194614200.4421584389228390.77892078053858
330.1774876352715930.3549752705431850.822512364728407
340.1822189130836580.3644378261673160.817781086916342
350.2654196413936980.5308392827873970.734580358606302
360.2945009748756370.5890019497512750.705499025124363
370.3142849988542320.6285699977084640.685715001145768
380.2303572518165820.4607145036331650.769642748183418
390.1387610999487270.2775221998974540.861238900051273
400.1548739722496080.3097479444992160.845126027750392

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.549529623176074 & 0.900940753647853 & 0.450470376823926 \tabularnewline
20 & 0.389849387565171 & 0.779698775130342 & 0.610150612434829 \tabularnewline
21 & 0.296836948123029 & 0.593673896246057 & 0.703163051876971 \tabularnewline
22 & 0.193698959118506 & 0.387397918237011 & 0.806301040881494 \tabularnewline
23 & 0.155426272334262 & 0.310852544668524 & 0.844573727665738 \tabularnewline
24 & 0.143456364331348 & 0.286912728662695 & 0.856543635668652 \tabularnewline
25 & 0.141087436726785 & 0.282174873453569 & 0.858912563273215 \tabularnewline
26 & 0.0829901971504919 & 0.165980394300984 & 0.917009802849508 \tabularnewline
27 & 0.0464348004442418 & 0.0928696008884837 & 0.953565199555758 \tabularnewline
28 & 0.0393116977762414 & 0.0786233955524828 & 0.960688302223759 \tabularnewline
29 & 0.0802396876416093 & 0.160479375283219 & 0.91976031235839 \tabularnewline
30 & 0.0621945143092876 & 0.124389028618575 & 0.937805485690712 \tabularnewline
31 & 0.0396156494741542 & 0.0792312989483084 & 0.960384350525846 \tabularnewline
32 & 0.221079219461420 & 0.442158438922839 & 0.77892078053858 \tabularnewline
33 & 0.177487635271593 & 0.354975270543185 & 0.822512364728407 \tabularnewline
34 & 0.182218913083658 & 0.364437826167316 & 0.817781086916342 \tabularnewline
35 & 0.265419641393698 & 0.530839282787397 & 0.734580358606302 \tabularnewline
36 & 0.294500974875637 & 0.589001949751275 & 0.705499025124363 \tabularnewline
37 & 0.314284998854232 & 0.628569997708464 & 0.685715001145768 \tabularnewline
38 & 0.230357251816582 & 0.460714503633165 & 0.769642748183418 \tabularnewline
39 & 0.138761099948727 & 0.277522199897454 & 0.861238900051273 \tabularnewline
40 & 0.154873972249608 & 0.309747944499216 & 0.845126027750392 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58447&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]19[/C][C]0.549529623176074[/C][C]0.900940753647853[/C][C]0.450470376823926[/C][/ROW]
[ROW][C]20[/C][C]0.389849387565171[/C][C]0.779698775130342[/C][C]0.610150612434829[/C][/ROW]
[ROW][C]21[/C][C]0.296836948123029[/C][C]0.593673896246057[/C][C]0.703163051876971[/C][/ROW]
[ROW][C]22[/C][C]0.193698959118506[/C][C]0.387397918237011[/C][C]0.806301040881494[/C][/ROW]
[ROW][C]23[/C][C]0.155426272334262[/C][C]0.310852544668524[/C][C]0.844573727665738[/C][/ROW]
[ROW][C]24[/C][C]0.143456364331348[/C][C]0.286912728662695[/C][C]0.856543635668652[/C][/ROW]
[ROW][C]25[/C][C]0.141087436726785[/C][C]0.282174873453569[/C][C]0.858912563273215[/C][/ROW]
[ROW][C]26[/C][C]0.0829901971504919[/C][C]0.165980394300984[/C][C]0.917009802849508[/C][/ROW]
[ROW][C]27[/C][C]0.0464348004442418[/C][C]0.0928696008884837[/C][C]0.953565199555758[/C][/ROW]
[ROW][C]28[/C][C]0.0393116977762414[/C][C]0.0786233955524828[/C][C]0.960688302223759[/C][/ROW]
[ROW][C]29[/C][C]0.0802396876416093[/C][C]0.160479375283219[/C][C]0.91976031235839[/C][/ROW]
[ROW][C]30[/C][C]0.0621945143092876[/C][C]0.124389028618575[/C][C]0.937805485690712[/C][/ROW]
[ROW][C]31[/C][C]0.0396156494741542[/C][C]0.0792312989483084[/C][C]0.960384350525846[/C][/ROW]
[ROW][C]32[/C][C]0.221079219461420[/C][C]0.442158438922839[/C][C]0.77892078053858[/C][/ROW]
[ROW][C]33[/C][C]0.177487635271593[/C][C]0.354975270543185[/C][C]0.822512364728407[/C][/ROW]
[ROW][C]34[/C][C]0.182218913083658[/C][C]0.364437826167316[/C][C]0.817781086916342[/C][/ROW]
[ROW][C]35[/C][C]0.265419641393698[/C][C]0.530839282787397[/C][C]0.734580358606302[/C][/ROW]
[ROW][C]36[/C][C]0.294500974875637[/C][C]0.589001949751275[/C][C]0.705499025124363[/C][/ROW]
[ROW][C]37[/C][C]0.314284998854232[/C][C]0.628569997708464[/C][C]0.685715001145768[/C][/ROW]
[ROW][C]38[/C][C]0.230357251816582[/C][C]0.460714503633165[/C][C]0.769642748183418[/C][/ROW]
[ROW][C]39[/C][C]0.138761099948727[/C][C]0.277522199897454[/C][C]0.861238900051273[/C][/ROW]
[ROW][C]40[/C][C]0.154873972249608[/C][C]0.309747944499216[/C][C]0.845126027750392[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58447&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58447&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
190.5495296231760740.9009407536478530.450470376823926
200.3898493875651710.7796987751303420.610150612434829
210.2968369481230290.5936738962460570.703163051876971
220.1936989591185060.3873979182370110.806301040881494
230.1554262723342620.3108525446685240.844573727665738
240.1434563643313480.2869127286626950.856543635668652
250.1410874367267850.2821748734535690.858912563273215
260.08299019715049190.1659803943009840.917009802849508
270.04643480044424180.09286960088848370.953565199555758
280.03931169777624140.07862339555248280.960688302223759
290.08023968764160930.1604793752832190.91976031235839
300.06219451430928760.1243890286185750.937805485690712
310.03961564947415420.07923129894830840.960384350525846
320.2210792194614200.4421584389228390.77892078053858
330.1774876352715930.3549752705431850.822512364728407
340.1822189130836580.3644378261673160.817781086916342
350.2654196413936980.5308392827873970.734580358606302
360.2945009748756370.5890019497512750.705499025124363
370.3142849988542320.6285699977084640.685715001145768
380.2303572518165820.4607145036331650.769642748183418
390.1387610999487270.2775221998974540.861238900051273
400.1548739722496080.3097479444992160.845126027750392







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 3 & 0.136363636363636 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58447&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]3[/C][C]0.136363636363636[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58447&T=6

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

As an alternative you can also use a QR Code:  

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

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



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')
}