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 computationMon, 14 Dec 2009 12:23:19 -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/Dec/14/t1260818643jbap3dnp8kaey06.htm/, Retrieved Sun, 05 May 2024 12:31:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67634, Retrieved Sun, 05 May 2024 12:31:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact106
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Seatbelt Law Model 2] [2009-12-14 19:23:19] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.9	-3
8.8	-1
8.3	-3
7.5	-4
7.2	-6
7.4	0
8.8	-4
9.3	-2
9.3	-2
8.7	-6
8.2	-7
8.3	-6
8.5	-6
8.6	-3
8.5	-2
8.2	-5
8.1	-11
7.9	-11
8.6	-11
8.7	-10
8.7	-14
8.5	-8
8.4	-9
8.5	-5
8.7	-1
8.7	-2
8.6	-5
8.5	-4
8.3	-6
8	-2
8.2	-2
8.1	-2
8.1	-2
8	2
7.9	1
7.9	-8
8	-1
8	1
7.9	-1
8	2
7.7	2
7.2	1
7.5	-1
7.3	-2
7	-2
7	-1
7	-8
7.2	-4
7.3	-6
7.1	-3
6.8	-3
6.4	-7
6.1	-9
6.5	-11
7.7	-13
7.9	-11
7.5	-9
6.9	-17
6.6	-22
6.9	-25




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

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







Multiple Linear Regression - Estimated Regression Equation
TW[t] = + 8.0769536423841 + 0.0330160044150110CV[t] + 0.315300772626926M1[t] + 0.215871964679911M2[t] + 0.0354911699779244M3[t] -0.238096026490067M4[t] -0.398857615894041M5[t] -0.525080022075055M6[t] + 0.287745584988962M7[t] + 0.361332781456953M8[t] + 0.234539183222958M9[t] -0.0588576158940406M10[t] -0.159809602649007M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TW[t] =  +  8.0769536423841 +  0.0330160044150110CV[t] +  0.315300772626926M1[t] +  0.215871964679911M2[t] +  0.0354911699779244M3[t] -0.238096026490067M4[t] -0.398857615894041M5[t] -0.525080022075055M6[t] +  0.287745584988962M7[t] +  0.361332781456953M8[t] +  0.234539183222958M9[t] -0.0588576158940406M10[t] -0.159809602649007M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67634&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TW[t] =  +  8.0769536423841 +  0.0330160044150110CV[t] +  0.315300772626926M1[t] +  0.215871964679911M2[t] +  0.0354911699779244M3[t] -0.238096026490067M4[t] -0.398857615894041M5[t] -0.525080022075055M6[t] +  0.287745584988962M7[t] +  0.361332781456953M8[t] +  0.234539183222958M9[t] -0.0588576158940406M10[t] -0.159809602649007M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67634&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67634&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
TW[t] = + 8.0769536423841 + 0.0330160044150110CV[t] + 0.315300772626926M1[t] + 0.215871964679911M2[t] + 0.0354911699779244M3[t] -0.238096026490067M4[t] -0.398857615894041M5[t] -0.525080022075055M6[t] + 0.287745584988962M7[t] + 0.361332781456953M8[t] + 0.234539183222958M9[t] -0.0588576158940406M10[t] -0.159809602649007M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.07695364238410.37892821.315300
CV0.03301600441501100.0193861.70310.0951510.047576
M10.3153007726269260.4820280.65410.5162270.258114
M20.2158719646799110.4918910.43890.6627730.331386
M30.03549116997792440.4850590.07320.9419820.470991
M4-0.2380960264900670.481076-0.49490.622960.31148
M5-0.3988576158940410.471991-0.84510.4023620.201181
M6-0.5250800220750550.47676-1.10140.2763530.138176
M70.2877455849889620.4714330.61040.5445610.272281
M80.3613327814569530.473850.76250.4495440.224772
M90.2345391832229580.472580.49630.6219990.311
M10-0.05885761589404060.471991-0.12470.9012920.450646
M11-0.1598096026490070.466948-0.34220.7336940.366847

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 8.0769536423841 & 0.378928 & 21.3153 & 0 & 0 \tabularnewline
CV & 0.0330160044150110 & 0.019386 & 1.7031 & 0.095151 & 0.047576 \tabularnewline
M1 & 0.315300772626926 & 0.482028 & 0.6541 & 0.516227 & 0.258114 \tabularnewline
M2 & 0.215871964679911 & 0.491891 & 0.4389 & 0.662773 & 0.331386 \tabularnewline
M3 & 0.0354911699779244 & 0.485059 & 0.0732 & 0.941982 & 0.470991 \tabularnewline
M4 & -0.238096026490067 & 0.481076 & -0.4949 & 0.62296 & 0.31148 \tabularnewline
M5 & -0.398857615894041 & 0.471991 & -0.8451 & 0.402362 & 0.201181 \tabularnewline
M6 & -0.525080022075055 & 0.47676 & -1.1014 & 0.276353 & 0.138176 \tabularnewline
M7 & 0.287745584988962 & 0.471433 & 0.6104 & 0.544561 & 0.272281 \tabularnewline
M8 & 0.361332781456953 & 0.47385 & 0.7625 & 0.449544 & 0.224772 \tabularnewline
M9 & 0.234539183222958 & 0.47258 & 0.4963 & 0.621999 & 0.311 \tabularnewline
M10 & -0.0588576158940406 & 0.471991 & -0.1247 & 0.901292 & 0.450646 \tabularnewline
M11 & -0.159809602649007 & 0.466948 & -0.3422 & 0.733694 & 0.366847 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67634&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]8.0769536423841[/C][C]0.378928[/C][C]21.3153[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]CV[/C][C]0.0330160044150110[/C][C]0.019386[/C][C]1.7031[/C][C]0.095151[/C][C]0.047576[/C][/ROW]
[ROW][C]M1[/C][C]0.315300772626926[/C][C]0.482028[/C][C]0.6541[/C][C]0.516227[/C][C]0.258114[/C][/ROW]
[ROW][C]M2[/C][C]0.215871964679911[/C][C]0.491891[/C][C]0.4389[/C][C]0.662773[/C][C]0.331386[/C][/ROW]
[ROW][C]M3[/C][C]0.0354911699779244[/C][C]0.485059[/C][C]0.0732[/C][C]0.941982[/C][C]0.470991[/C][/ROW]
[ROW][C]M4[/C][C]-0.238096026490067[/C][C]0.481076[/C][C]-0.4949[/C][C]0.62296[/C][C]0.31148[/C][/ROW]
[ROW][C]M5[/C][C]-0.398857615894041[/C][C]0.471991[/C][C]-0.8451[/C][C]0.402362[/C][C]0.201181[/C][/ROW]
[ROW][C]M6[/C][C]-0.525080022075055[/C][C]0.47676[/C][C]-1.1014[/C][C]0.276353[/C][C]0.138176[/C][/ROW]
[ROW][C]M7[/C][C]0.287745584988962[/C][C]0.471433[/C][C]0.6104[/C][C]0.544561[/C][C]0.272281[/C][/ROW]
[ROW][C]M8[/C][C]0.361332781456953[/C][C]0.47385[/C][C]0.7625[/C][C]0.449544[/C][C]0.224772[/C][/ROW]
[ROW][C]M9[/C][C]0.234539183222958[/C][C]0.47258[/C][C]0.4963[/C][C]0.621999[/C][C]0.311[/C][/ROW]
[ROW][C]M10[/C][C]-0.0588576158940406[/C][C]0.471991[/C][C]-0.1247[/C][C]0.901292[/C][C]0.450646[/C][/ROW]
[ROW][C]M11[/C][C]-0.159809602649007[/C][C]0.466948[/C][C]-0.3422[/C][C]0.733694[/C][C]0.366847[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67634&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.07695364238410.37892821.315300
CV0.03301600441501100.0193861.70310.0951510.047576
M10.3153007726269260.4820280.65410.5162270.258114
M20.2158719646799110.4918910.43890.6627730.331386
M30.03549116997792440.4850590.07320.9419820.470991
M4-0.2380960264900670.481076-0.49490.622960.31148
M5-0.3988576158940410.471991-0.84510.4023620.201181
M6-0.5250800220750550.47676-1.10140.2763530.138176
M70.2877455849889620.4714330.61040.5445610.272281
M80.3613327814569530.473850.76250.4495440.224772
M90.2345391832229580.472580.49630.6219990.311
M10-0.05885761589404060.471991-0.12470.9012920.450646
M11-0.1598096026490070.466948-0.34220.7336940.366847







Multiple Linear Regression - Regression Statistics
Multiple R0.463186198470339
R-squared0.214541454453404
Adjusted R-squared0.0139988470798053
F-TEST (value)1.06980485226128
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.40595074698375
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.738080518422222
Sum Squared Residuals25.6038540286975

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.463186198470339 \tabularnewline
R-squared & 0.214541454453404 \tabularnewline
Adjusted R-squared & 0.0139988470798053 \tabularnewline
F-TEST (value) & 1.06980485226128 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.40595074698375 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.738080518422222 \tabularnewline
Sum Squared Residuals & 25.6038540286975 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67634&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.463186198470339[/C][/ROW]
[ROW][C]R-squared[/C][C]0.214541454453404[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0139988470798053[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.06980485226128[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.40595074698375[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.738080518422222[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]25.6038540286975[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67634&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67634&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.463186198470339
R-squared0.214541454453404
Adjusted R-squared0.0139988470798053
F-TEST (value)1.06980485226128
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.40595074698375
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.738080518422222
Sum Squared Residuals25.6038540286975







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.98.293206401766020.606793598233977
28.88.2598096026490.540190397350994
38.38.0133967991170.286603200883003
47.57.706793598234-0.206793598233995
57.27.48-0.280000000000000
67.47.55187362030905-0.151873620309050
78.88.232635209713020.567364790286977
89.38.372254415011040.927745584988963
99.38.245460816777041.05453918322296
108.77.820.88
118.27.686032008830020.513967991169977
128.37.878857615894040.42114238410596
138.58.194158388520970.305841611479034
148.68.193777593818980.406222406181015
158.58.0464128035320.453587196467991
168.27.673777593818980.526222406181015
178.17.314919977924950.785080022075055
187.97.188697571743930.71130242825607
198.68.001523178807950.598476821192052
208.78.108126379690950.59187362030905
218.77.849268763796910.85073123620309
228.57.753967991169980.746032008830022
238.47.620.78
248.57.911873620309050.588126379690949
258.78.359238410596020.340761589403978
268.78.2267935982340.473206401766004
278.67.947364790286980.652635209713024
288.57.7067935982340.793206401766004
298.37.480.82
3087.485841611479030.514158388520971
318.28.29866721854305-0.0986672185430473
328.18.37225441501104-0.272254415011038
338.18.24546081677704-0.145460816777042
3488.08412803532009-0.0841280353200881
357.97.9501600441501-0.0501600441501097
367.97.812825607064020.0871743929359821
3788.35923841059602-0.359238410596021
3888.32584161147903-0.325841611479029
397.98.07942880794702-0.179428807947020
4087.904889624724060.095110375275938
417.77.74412803532009-0.0441280353200881
427.27.58488962472406-0.384889624724062
437.58.33168322295806-0.831683222958057
447.38.37225441501104-1.07225441501104
4578.24546081677704-1.24546081677704
4677.98508002207506-0.985080022075055
4777.65301600441501-0.653016004415011
487.27.94488962472406-0.744889624724062
497.38.19415838852097-0.894158388520966
507.18.19377759381898-1.09377759381898
516.88.013396799117-1.21339679911700
526.47.60774558498896-1.20774558498896
536.17.38095198675497-1.28095198675497
546.57.18869757174393-0.68869757174393
557.77.93549116997792-0.235491169977925
567.98.07511037527594-0.175110375275937
577.58.01434878587196-0.514348785871965
586.97.45682395143488-0.556823951434878
596.67.19079194260486-0.590791942604857
606.97.25155353200883-0.35155353200883

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 8.29320640176602 & 0.606793598233977 \tabularnewline
2 & 8.8 & 8.259809602649 & 0.540190397350994 \tabularnewline
3 & 8.3 & 8.013396799117 & 0.286603200883003 \tabularnewline
4 & 7.5 & 7.706793598234 & -0.206793598233995 \tabularnewline
5 & 7.2 & 7.48 & -0.280000000000000 \tabularnewline
6 & 7.4 & 7.55187362030905 & -0.151873620309050 \tabularnewline
7 & 8.8 & 8.23263520971302 & 0.567364790286977 \tabularnewline
8 & 9.3 & 8.37225441501104 & 0.927745584988963 \tabularnewline
9 & 9.3 & 8.24546081677704 & 1.05453918322296 \tabularnewline
10 & 8.7 & 7.82 & 0.88 \tabularnewline
11 & 8.2 & 7.68603200883002 & 0.513967991169977 \tabularnewline
12 & 8.3 & 7.87885761589404 & 0.42114238410596 \tabularnewline
13 & 8.5 & 8.19415838852097 & 0.305841611479034 \tabularnewline
14 & 8.6 & 8.19377759381898 & 0.406222406181015 \tabularnewline
15 & 8.5 & 8.046412803532 & 0.453587196467991 \tabularnewline
16 & 8.2 & 7.67377759381898 & 0.526222406181015 \tabularnewline
17 & 8.1 & 7.31491997792495 & 0.785080022075055 \tabularnewline
18 & 7.9 & 7.18869757174393 & 0.71130242825607 \tabularnewline
19 & 8.6 & 8.00152317880795 & 0.598476821192052 \tabularnewline
20 & 8.7 & 8.10812637969095 & 0.59187362030905 \tabularnewline
21 & 8.7 & 7.84926876379691 & 0.85073123620309 \tabularnewline
22 & 8.5 & 7.75396799116998 & 0.746032008830022 \tabularnewline
23 & 8.4 & 7.62 & 0.78 \tabularnewline
24 & 8.5 & 7.91187362030905 & 0.588126379690949 \tabularnewline
25 & 8.7 & 8.35923841059602 & 0.340761589403978 \tabularnewline
26 & 8.7 & 8.226793598234 & 0.473206401766004 \tabularnewline
27 & 8.6 & 7.94736479028698 & 0.652635209713024 \tabularnewline
28 & 8.5 & 7.706793598234 & 0.793206401766004 \tabularnewline
29 & 8.3 & 7.48 & 0.82 \tabularnewline
30 & 8 & 7.48584161147903 & 0.514158388520971 \tabularnewline
31 & 8.2 & 8.29866721854305 & -0.0986672185430473 \tabularnewline
32 & 8.1 & 8.37225441501104 & -0.272254415011038 \tabularnewline
33 & 8.1 & 8.24546081677704 & -0.145460816777042 \tabularnewline
34 & 8 & 8.08412803532009 & -0.0841280353200881 \tabularnewline
35 & 7.9 & 7.9501600441501 & -0.0501600441501097 \tabularnewline
36 & 7.9 & 7.81282560706402 & 0.0871743929359821 \tabularnewline
37 & 8 & 8.35923841059602 & -0.359238410596021 \tabularnewline
38 & 8 & 8.32584161147903 & -0.325841611479029 \tabularnewline
39 & 7.9 & 8.07942880794702 & -0.179428807947020 \tabularnewline
40 & 8 & 7.90488962472406 & 0.095110375275938 \tabularnewline
41 & 7.7 & 7.74412803532009 & -0.0441280353200881 \tabularnewline
42 & 7.2 & 7.58488962472406 & -0.384889624724062 \tabularnewline
43 & 7.5 & 8.33168322295806 & -0.831683222958057 \tabularnewline
44 & 7.3 & 8.37225441501104 & -1.07225441501104 \tabularnewline
45 & 7 & 8.24546081677704 & -1.24546081677704 \tabularnewline
46 & 7 & 7.98508002207506 & -0.985080022075055 \tabularnewline
47 & 7 & 7.65301600441501 & -0.653016004415011 \tabularnewline
48 & 7.2 & 7.94488962472406 & -0.744889624724062 \tabularnewline
49 & 7.3 & 8.19415838852097 & -0.894158388520966 \tabularnewline
50 & 7.1 & 8.19377759381898 & -1.09377759381898 \tabularnewline
51 & 6.8 & 8.013396799117 & -1.21339679911700 \tabularnewline
52 & 6.4 & 7.60774558498896 & -1.20774558498896 \tabularnewline
53 & 6.1 & 7.38095198675497 & -1.28095198675497 \tabularnewline
54 & 6.5 & 7.18869757174393 & -0.68869757174393 \tabularnewline
55 & 7.7 & 7.93549116997792 & -0.235491169977925 \tabularnewline
56 & 7.9 & 8.07511037527594 & -0.175110375275937 \tabularnewline
57 & 7.5 & 8.01434878587196 & -0.514348785871965 \tabularnewline
58 & 6.9 & 7.45682395143488 & -0.556823951434878 \tabularnewline
59 & 6.6 & 7.19079194260486 & -0.590791942604857 \tabularnewline
60 & 6.9 & 7.25155353200883 & -0.35155353200883 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67634&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.9[/C][C]8.29320640176602[/C][C]0.606793598233977[/C][/ROW]
[ROW][C]2[/C][C]8.8[/C][C]8.259809602649[/C][C]0.540190397350994[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.013396799117[/C][C]0.286603200883003[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]7.706793598234[/C][C]-0.206793598233995[/C][/ROW]
[ROW][C]5[/C][C]7.2[/C][C]7.48[/C][C]-0.280000000000000[/C][/ROW]
[ROW][C]6[/C][C]7.4[/C][C]7.55187362030905[/C][C]-0.151873620309050[/C][/ROW]
[ROW][C]7[/C][C]8.8[/C][C]8.23263520971302[/C][C]0.567364790286977[/C][/ROW]
[ROW][C]8[/C][C]9.3[/C][C]8.37225441501104[/C][C]0.927745584988963[/C][/ROW]
[ROW][C]9[/C][C]9.3[/C][C]8.24546081677704[/C][C]1.05453918322296[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]7.82[/C][C]0.88[/C][/ROW]
[ROW][C]11[/C][C]8.2[/C][C]7.68603200883002[/C][C]0.513967991169977[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]7.87885761589404[/C][C]0.42114238410596[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.19415838852097[/C][C]0.305841611479034[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.19377759381898[/C][C]0.406222406181015[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.046412803532[/C][C]0.453587196467991[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]7.67377759381898[/C][C]0.526222406181015[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.31491997792495[/C][C]0.785080022075055[/C][/ROW]
[ROW][C]18[/C][C]7.9[/C][C]7.18869757174393[/C][C]0.71130242825607[/C][/ROW]
[ROW][C]19[/C][C]8.6[/C][C]8.00152317880795[/C][C]0.598476821192052[/C][/ROW]
[ROW][C]20[/C][C]8.7[/C][C]8.10812637969095[/C][C]0.59187362030905[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]7.84926876379691[/C][C]0.85073123620309[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]7.75396799116998[/C][C]0.746032008830022[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]7.62[/C][C]0.78[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]7.91187362030905[/C][C]0.588126379690949[/C][/ROW]
[ROW][C]25[/C][C]8.7[/C][C]8.35923841059602[/C][C]0.340761589403978[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.226793598234[/C][C]0.473206401766004[/C][/ROW]
[ROW][C]27[/C][C]8.6[/C][C]7.94736479028698[/C][C]0.652635209713024[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]7.706793598234[/C][C]0.793206401766004[/C][/ROW]
[ROW][C]29[/C][C]8.3[/C][C]7.48[/C][C]0.82[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.48584161147903[/C][C]0.514158388520971[/C][/ROW]
[ROW][C]31[/C][C]8.2[/C][C]8.29866721854305[/C][C]-0.0986672185430473[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]8.37225441501104[/C][C]-0.272254415011038[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.24546081677704[/C][C]-0.145460816777042[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]8.08412803532009[/C][C]-0.0841280353200881[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.9501600441501[/C][C]-0.0501600441501097[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.81282560706402[/C][C]0.0871743929359821[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]8.35923841059602[/C][C]-0.359238410596021[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]8.32584161147903[/C][C]-0.325841611479029[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]8.07942880794702[/C][C]-0.179428807947020[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.90488962472406[/C][C]0.095110375275938[/C][/ROW]
[ROW][C]41[/C][C]7.7[/C][C]7.74412803532009[/C][C]-0.0441280353200881[/C][/ROW]
[ROW][C]42[/C][C]7.2[/C][C]7.58488962472406[/C][C]-0.384889624724062[/C][/ROW]
[ROW][C]43[/C][C]7.5[/C][C]8.33168322295806[/C][C]-0.831683222958057[/C][/ROW]
[ROW][C]44[/C][C]7.3[/C][C]8.37225441501104[/C][C]-1.07225441501104[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]8.24546081677704[/C][C]-1.24546081677704[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.98508002207506[/C][C]-0.985080022075055[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]7.65301600441501[/C][C]-0.653016004415011[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.94488962472406[/C][C]-0.744889624724062[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]8.19415838852097[/C][C]-0.894158388520966[/C][/ROW]
[ROW][C]50[/C][C]7.1[/C][C]8.19377759381898[/C][C]-1.09377759381898[/C][/ROW]
[ROW][C]51[/C][C]6.8[/C][C]8.013396799117[/C][C]-1.21339679911700[/C][/ROW]
[ROW][C]52[/C][C]6.4[/C][C]7.60774558498896[/C][C]-1.20774558498896[/C][/ROW]
[ROW][C]53[/C][C]6.1[/C][C]7.38095198675497[/C][C]-1.28095198675497[/C][/ROW]
[ROW][C]54[/C][C]6.5[/C][C]7.18869757174393[/C][C]-0.68869757174393[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.93549116997792[/C][C]-0.235491169977925[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]8.07511037527594[/C][C]-0.175110375275937[/C][/ROW]
[ROW][C]57[/C][C]7.5[/C][C]8.01434878587196[/C][C]-0.514348785871965[/C][/ROW]
[ROW][C]58[/C][C]6.9[/C][C]7.45682395143488[/C][C]-0.556823951434878[/C][/ROW]
[ROW][C]59[/C][C]6.6[/C][C]7.19079194260486[/C][C]-0.590791942604857[/C][/ROW]
[ROW][C]60[/C][C]6.9[/C][C]7.25155353200883[/C][C]-0.35155353200883[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67634&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67634&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.98.293206401766020.606793598233977
28.88.2598096026490.540190397350994
38.38.0133967991170.286603200883003
47.57.706793598234-0.206793598233995
57.27.48-0.280000000000000
67.47.55187362030905-0.151873620309050
78.88.232635209713020.567364790286977
89.38.372254415011040.927745584988963
99.38.245460816777041.05453918322296
108.77.820.88
118.27.686032008830020.513967991169977
128.37.878857615894040.42114238410596
138.58.194158388520970.305841611479034
148.68.193777593818980.406222406181015
158.58.0464128035320.453587196467991
168.27.673777593818980.526222406181015
178.17.314919977924950.785080022075055
187.97.188697571743930.71130242825607
198.68.001523178807950.598476821192052
208.78.108126379690950.59187362030905
218.77.849268763796910.85073123620309
228.57.753967991169980.746032008830022
238.47.620.78
248.57.911873620309050.588126379690949
258.78.359238410596020.340761589403978
268.78.2267935982340.473206401766004
278.67.947364790286980.652635209713024
288.57.7067935982340.793206401766004
298.37.480.82
3087.485841611479030.514158388520971
318.28.29866721854305-0.0986672185430473
328.18.37225441501104-0.272254415011038
338.18.24546081677704-0.145460816777042
3488.08412803532009-0.0841280353200881
357.97.9501600441501-0.0501600441501097
367.97.812825607064020.0871743929359821
3788.35923841059602-0.359238410596021
3888.32584161147903-0.325841611479029
397.98.07942880794702-0.179428807947020
4087.904889624724060.095110375275938
417.77.74412803532009-0.0441280353200881
427.27.58488962472406-0.384889624724062
437.58.33168322295806-0.831683222958057
447.38.37225441501104-1.07225441501104
4578.24546081677704-1.24546081677704
4677.98508002207506-0.985080022075055
4777.65301600441501-0.653016004415011
487.27.94488962472406-0.744889624724062
497.38.19415838852097-0.894158388520966
507.18.19377759381898-1.09377759381898
516.88.013396799117-1.21339679911700
526.47.60774558498896-1.20774558498896
536.17.38095198675497-1.28095198675497
546.57.18869757174393-0.68869757174393
557.77.93549116997792-0.235491169977925
567.98.07511037527594-0.175110375275937
577.58.01434878587196-0.514348785871965
586.97.45682395143488-0.556823951434878
596.67.19079194260486-0.590791942604857
606.97.25155353200883-0.35155353200883







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.09054379232603040.1810875846520610.909456207673970
170.09862138713741580.1972427742748320.901378612862584
180.04683379720496420.09366759440992850.953166202795036
190.03206245198317540.06412490396635070.967937548016825
200.03731098845654130.07462197691308270.962689011543459
210.03763127716096890.07526255432193780.962368722839031
220.02559078492508440.05118156985016890.974409215074916
230.01761527075280540.03523054150561080.982384729247195
240.01015091076623190.02030182153246380.989849089233768
250.005726432286555480.01145286457311100.994273567713445
260.003879952881949810.007759905763899610.99612004711805
270.003919282713851360.007838565427702720.996080717286149
280.01030449695186190.02060899390372390.989695503048138
290.03306260237242120.06612520474484240.966937397627579
300.03749042981543840.07498085963087690.962509570184562
310.03683680438228460.07367360876456920.963163195617715
320.05991491492567330.1198298298513470.940085085074327
330.09251181561296950.1850236312259390.90748818438703
340.08205765783128270.1641153156625650.917942342168717
350.05994121598813460.1198824319762690.940058784011865
360.06021844227586880.1204368845517380.939781557724131
370.05884770248377320.1176954049675460.941152297516227
380.06539281705086780.1307856341017360.934607182949132
390.08956463984628240.1791292796925650.910435360153718
400.2088160208282530.4176320416565060.791183979171747
410.6517711003913940.6964577992172120.348228899608606
420.7129128177856430.5741743644287140.287087182214357
430.6475472215545770.7049055568908470.352452778445423
440.8046946498594580.3906107002810850.195305350140542

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0905437923260304 & 0.181087584652061 & 0.909456207673970 \tabularnewline
17 & 0.0986213871374158 & 0.197242774274832 & 0.901378612862584 \tabularnewline
18 & 0.0468337972049642 & 0.0936675944099285 & 0.953166202795036 \tabularnewline
19 & 0.0320624519831754 & 0.0641249039663507 & 0.967937548016825 \tabularnewline
20 & 0.0373109884565413 & 0.0746219769130827 & 0.962689011543459 \tabularnewline
21 & 0.0376312771609689 & 0.0752625543219378 & 0.962368722839031 \tabularnewline
22 & 0.0255907849250844 & 0.0511815698501689 & 0.974409215074916 \tabularnewline
23 & 0.0176152707528054 & 0.0352305415056108 & 0.982384729247195 \tabularnewline
24 & 0.0101509107662319 & 0.0203018215324638 & 0.989849089233768 \tabularnewline
25 & 0.00572643228655548 & 0.0114528645731110 & 0.994273567713445 \tabularnewline
26 & 0.00387995288194981 & 0.00775990576389961 & 0.99612004711805 \tabularnewline
27 & 0.00391928271385136 & 0.00783856542770272 & 0.996080717286149 \tabularnewline
28 & 0.0103044969518619 & 0.0206089939037239 & 0.989695503048138 \tabularnewline
29 & 0.0330626023724212 & 0.0661252047448424 & 0.966937397627579 \tabularnewline
30 & 0.0374904298154384 & 0.0749808596308769 & 0.962509570184562 \tabularnewline
31 & 0.0368368043822846 & 0.0736736087645692 & 0.963163195617715 \tabularnewline
32 & 0.0599149149256733 & 0.119829829851347 & 0.940085085074327 \tabularnewline
33 & 0.0925118156129695 & 0.185023631225939 & 0.90748818438703 \tabularnewline
34 & 0.0820576578312827 & 0.164115315662565 & 0.917942342168717 \tabularnewline
35 & 0.0599412159881346 & 0.119882431976269 & 0.940058784011865 \tabularnewline
36 & 0.0602184422758688 & 0.120436884551738 & 0.939781557724131 \tabularnewline
37 & 0.0588477024837732 & 0.117695404967546 & 0.941152297516227 \tabularnewline
38 & 0.0653928170508678 & 0.130785634101736 & 0.934607182949132 \tabularnewline
39 & 0.0895646398462824 & 0.179129279692565 & 0.910435360153718 \tabularnewline
40 & 0.208816020828253 & 0.417632041656506 & 0.791183979171747 \tabularnewline
41 & 0.651771100391394 & 0.696457799217212 & 0.348228899608606 \tabularnewline
42 & 0.712912817785643 & 0.574174364428714 & 0.287087182214357 \tabularnewline
43 & 0.647547221554577 & 0.704905556890847 & 0.352452778445423 \tabularnewline
44 & 0.804694649859458 & 0.390610700281085 & 0.195305350140542 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67634&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]16[/C][C]0.0905437923260304[/C][C]0.181087584652061[/C][C]0.909456207673970[/C][/ROW]
[ROW][C]17[/C][C]0.0986213871374158[/C][C]0.197242774274832[/C][C]0.901378612862584[/C][/ROW]
[ROW][C]18[/C][C]0.0468337972049642[/C][C]0.0936675944099285[/C][C]0.953166202795036[/C][/ROW]
[ROW][C]19[/C][C]0.0320624519831754[/C][C]0.0641249039663507[/C][C]0.967937548016825[/C][/ROW]
[ROW][C]20[/C][C]0.0373109884565413[/C][C]0.0746219769130827[/C][C]0.962689011543459[/C][/ROW]
[ROW][C]21[/C][C]0.0376312771609689[/C][C]0.0752625543219378[/C][C]0.962368722839031[/C][/ROW]
[ROW][C]22[/C][C]0.0255907849250844[/C][C]0.0511815698501689[/C][C]0.974409215074916[/C][/ROW]
[ROW][C]23[/C][C]0.0176152707528054[/C][C]0.0352305415056108[/C][C]0.982384729247195[/C][/ROW]
[ROW][C]24[/C][C]0.0101509107662319[/C][C]0.0203018215324638[/C][C]0.989849089233768[/C][/ROW]
[ROW][C]25[/C][C]0.00572643228655548[/C][C]0.0114528645731110[/C][C]0.994273567713445[/C][/ROW]
[ROW][C]26[/C][C]0.00387995288194981[/C][C]0.00775990576389961[/C][C]0.99612004711805[/C][/ROW]
[ROW][C]27[/C][C]0.00391928271385136[/C][C]0.00783856542770272[/C][C]0.996080717286149[/C][/ROW]
[ROW][C]28[/C][C]0.0103044969518619[/C][C]0.0206089939037239[/C][C]0.989695503048138[/C][/ROW]
[ROW][C]29[/C][C]0.0330626023724212[/C][C]0.0661252047448424[/C][C]0.966937397627579[/C][/ROW]
[ROW][C]30[/C][C]0.0374904298154384[/C][C]0.0749808596308769[/C][C]0.962509570184562[/C][/ROW]
[ROW][C]31[/C][C]0.0368368043822846[/C][C]0.0736736087645692[/C][C]0.963163195617715[/C][/ROW]
[ROW][C]32[/C][C]0.0599149149256733[/C][C]0.119829829851347[/C][C]0.940085085074327[/C][/ROW]
[ROW][C]33[/C][C]0.0925118156129695[/C][C]0.185023631225939[/C][C]0.90748818438703[/C][/ROW]
[ROW][C]34[/C][C]0.0820576578312827[/C][C]0.164115315662565[/C][C]0.917942342168717[/C][/ROW]
[ROW][C]35[/C][C]0.0599412159881346[/C][C]0.119882431976269[/C][C]0.940058784011865[/C][/ROW]
[ROW][C]36[/C][C]0.0602184422758688[/C][C]0.120436884551738[/C][C]0.939781557724131[/C][/ROW]
[ROW][C]37[/C][C]0.0588477024837732[/C][C]0.117695404967546[/C][C]0.941152297516227[/C][/ROW]
[ROW][C]38[/C][C]0.0653928170508678[/C][C]0.130785634101736[/C][C]0.934607182949132[/C][/ROW]
[ROW][C]39[/C][C]0.0895646398462824[/C][C]0.179129279692565[/C][C]0.910435360153718[/C][/ROW]
[ROW][C]40[/C][C]0.208816020828253[/C][C]0.417632041656506[/C][C]0.791183979171747[/C][/ROW]
[ROW][C]41[/C][C]0.651771100391394[/C][C]0.696457799217212[/C][C]0.348228899608606[/C][/ROW]
[ROW][C]42[/C][C]0.712912817785643[/C][C]0.574174364428714[/C][C]0.287087182214357[/C][/ROW]
[ROW][C]43[/C][C]0.647547221554577[/C][C]0.704905556890847[/C][C]0.352452778445423[/C][/ROW]
[ROW][C]44[/C][C]0.804694649859458[/C][C]0.390610700281085[/C][C]0.195305350140542[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67634&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67634&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
160.09054379232603040.1810875846520610.909456207673970
170.09862138713741580.1972427742748320.901378612862584
180.04683379720496420.09366759440992850.953166202795036
190.03206245198317540.06412490396635070.967937548016825
200.03731098845654130.07462197691308270.962689011543459
210.03763127716096890.07526255432193780.962368722839031
220.02559078492508440.05118156985016890.974409215074916
230.01761527075280540.03523054150561080.982384729247195
240.01015091076623190.02030182153246380.989849089233768
250.005726432286555480.01145286457311100.994273567713445
260.003879952881949810.007759905763899610.99612004711805
270.003919282713851360.007838565427702720.996080717286149
280.01030449695186190.02060899390372390.989695503048138
290.03306260237242120.06612520474484240.966937397627579
300.03749042981543840.07498085963087690.962509570184562
310.03683680438228460.07367360876456920.963163195617715
320.05991491492567330.1198298298513470.940085085074327
330.09251181561296950.1850236312259390.90748818438703
340.08205765783128270.1641153156625650.917942342168717
350.05994121598813460.1198824319762690.940058784011865
360.06021844227586880.1204368845517380.939781557724131
370.05884770248377320.1176954049675460.941152297516227
380.06539281705086780.1307856341017360.934607182949132
390.08956463984628240.1791292796925650.910435360153718
400.2088160208282530.4176320416565060.791183979171747
410.6517711003913940.6964577992172120.348228899608606
420.7129128177856430.5741743644287140.287087182214357
430.6475472215545770.7049055568908470.352452778445423
440.8046946498594580.3906107002810850.195305350140542







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0689655172413793NOK
5% type I error level60.206896551724138NOK
10% type I error level140.482758620689655NOK

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

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



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