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 14:17:06 -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/t1258751925aiglb38cn45q5rf.htm/, Retrieved Thu, 18 Apr 2024 01:57:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58471, Retrieved Thu, 18 Apr 2024 01:57:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Workshop 3] [2009-11-20 14:02:04] [68cb6e9d2b1cb3475e83bcdfaf88b501]
- R PD        [Multiple Regression] [Multiple regression] [2009-11-20 21:17:06] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
107.11	107.56
107.57	107.70
107.81	107.67
108.75	107.67
109.43	107.72
109.62	108.35
109.54	108.25
109.53	108.26
109.84	108.31
109.67	108.33
109.79	108.36
109.56	108.36
110.22	108.97
110.40	109.62
110.69	109.60
110.72	109.64
110.89	109.65
110.58	109.64
110.94	109.93
110.91	109.81
111.22	109.77
111.09	110.10
111.00	110.40
111.06	110.50
111.55	111.89
112.32	112.10
112.64	111.92
112.36	112.15
112.04	112.16
112.37	112.17
112.59	112.32
112.89	112.38
113.22	112.34
112.85	113.14
113.06	113.18
112.99	113.21
113.32	113.76
113.74	113.99
113.91	113.95
114.52	113.93
114.96	114.01
114.91	114.10
115.30	114.11
115.44	114.10
115.52	114.12
116.08	114.68
115.94	114.71
115.56	114.73
115.88	115.81
116.66	116.01
117.41	116.12
117.68	116.49
117.85	116.51
118.21	116.60
118.92	117.01
119.03	117.01
119.17	117.12
118.95	117.22
118.92	118.38
118.90	118.80




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58471&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
Y[t] = + 39.038520381192 + 0.637407184691893X[t] -0.272539382924652M1[t] -0.00150391792607000M2[t] + 0.304227031804597M3[t] + 0.470522460723327M4[t] + 0.608184536264328M5[t] + 0.540258492164768M6[t] + 0.694706519912123M7[t] + 0.735689325948949M8[t] + 0.888275102075635M9[t] + 0.522867621037696M10[t] + 0.269330499234351M11[t] + 0.0686660801794755t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  39.038520381192 +  0.637407184691893X[t] -0.272539382924652M1[t] -0.00150391792607000M2[t] +  0.304227031804597M3[t] +  0.470522460723327M4[t] +  0.608184536264328M5[t] +  0.540258492164768M6[t] +  0.694706519912123M7[t] +  0.735689325948949M8[t] +  0.888275102075635M9[t] +  0.522867621037696M10[t] +  0.269330499234351M11[t] +  0.0686660801794755t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58471&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  39.038520381192 +  0.637407184691893X[t] -0.272539382924652M1[t] -0.00150391792607000M2[t] +  0.304227031804597M3[t] +  0.470522460723327M4[t] +  0.608184536264328M5[t] +  0.540258492164768M6[t] +  0.694706519912123M7[t] +  0.735689325948949M8[t] +  0.888275102075635M9[t] +  0.522867621037696M10[t] +  0.269330499234351M11[t] +  0.0686660801794755t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58471&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 39.038520381192 + 0.637407184691893X[t] -0.272539382924652M1[t] -0.00150391792607000M2[t] + 0.304227031804597M3[t] + 0.470522460723327M4[t] + 0.608184536264328M5[t] + 0.540258492164768M6[t] + 0.694706519912123M7[t] + 0.735689325948949M8[t] + 0.888275102075635M9[t] + 0.522867621037696M10[t] + 0.269330499234351M11[t] + 0.0686660801794755t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)39.03852038119223.2713991.67750.1002220.050111
X0.6374071846918930.2185352.91670.0054530.002727
M1-0.2725393829246520.387002-0.70420.4848380.242419
M2-0.001503917926070000.393409-0.00380.9969660.498483
M30.3042270318045970.379540.80160.4269250.213462
M40.4705224607233270.3763341.25030.2175210.108761
M50.6081845362643280.3710081.63930.1079780.053989
M60.5402584921647680.3701731.45950.151230.075615
M70.6947065199121230.3692841.88120.0662790.03314
M80.7356893259489490.368331.99740.051720.02586
M90.8882751020756350.371382.39180.0209090.010455
M100.5228676210376960.3679041.42120.1620.081
M110.2693304992343510.3679350.7320.4678780.233939
t0.06866608017947550.0405551.69310.0971910.048596

\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) & 39.038520381192 & 23.271399 & 1.6775 & 0.100222 & 0.050111 \tabularnewline
X & 0.637407184691893 & 0.218535 & 2.9167 & 0.005453 & 0.002727 \tabularnewline
M1 & -0.272539382924652 & 0.387002 & -0.7042 & 0.484838 & 0.242419 \tabularnewline
M2 & -0.00150391792607000 & 0.393409 & -0.0038 & 0.996966 & 0.498483 \tabularnewline
M3 & 0.304227031804597 & 0.37954 & 0.8016 & 0.426925 & 0.213462 \tabularnewline
M4 & 0.470522460723327 & 0.376334 & 1.2503 & 0.217521 & 0.108761 \tabularnewline
M5 & 0.608184536264328 & 0.371008 & 1.6393 & 0.107978 & 0.053989 \tabularnewline
M6 & 0.540258492164768 & 0.370173 & 1.4595 & 0.15123 & 0.075615 \tabularnewline
M7 & 0.694706519912123 & 0.369284 & 1.8812 & 0.066279 & 0.03314 \tabularnewline
M8 & 0.735689325948949 & 0.36833 & 1.9974 & 0.05172 & 0.02586 \tabularnewline
M9 & 0.888275102075635 & 0.37138 & 2.3918 & 0.020909 & 0.010455 \tabularnewline
M10 & 0.522867621037696 & 0.367904 & 1.4212 & 0.162 & 0.081 \tabularnewline
M11 & 0.269330499234351 & 0.367935 & 0.732 & 0.467878 & 0.233939 \tabularnewline
t & 0.0686660801794755 & 0.040555 & 1.6931 & 0.097191 & 0.048596 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58471&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]39.038520381192[/C][C]23.271399[/C][C]1.6775[/C][C]0.100222[/C][C]0.050111[/C][/ROW]
[ROW][C]X[/C][C]0.637407184691893[/C][C]0.218535[/C][C]2.9167[/C][C]0.005453[/C][C]0.002727[/C][/ROW]
[ROW][C]M1[/C][C]-0.272539382924652[/C][C]0.387002[/C][C]-0.7042[/C][C]0.484838[/C][C]0.242419[/C][/ROW]
[ROW][C]M2[/C][C]-0.00150391792607000[/C][C]0.393409[/C][C]-0.0038[/C][C]0.996966[/C][C]0.498483[/C][/ROW]
[ROW][C]M3[/C][C]0.304227031804597[/C][C]0.37954[/C][C]0.8016[/C][C]0.426925[/C][C]0.213462[/C][/ROW]
[ROW][C]M4[/C][C]0.470522460723327[/C][C]0.376334[/C][C]1.2503[/C][C]0.217521[/C][C]0.108761[/C][/ROW]
[ROW][C]M5[/C][C]0.608184536264328[/C][C]0.371008[/C][C]1.6393[/C][C]0.107978[/C][C]0.053989[/C][/ROW]
[ROW][C]M6[/C][C]0.540258492164768[/C][C]0.370173[/C][C]1.4595[/C][C]0.15123[/C][C]0.075615[/C][/ROW]
[ROW][C]M7[/C][C]0.694706519912123[/C][C]0.369284[/C][C]1.8812[/C][C]0.066279[/C][C]0.03314[/C][/ROW]
[ROW][C]M8[/C][C]0.735689325948949[/C][C]0.36833[/C][C]1.9974[/C][C]0.05172[/C][C]0.02586[/C][/ROW]
[ROW][C]M9[/C][C]0.888275102075635[/C][C]0.37138[/C][C]2.3918[/C][C]0.020909[/C][C]0.010455[/C][/ROW]
[ROW][C]M10[/C][C]0.522867621037696[/C][C]0.367904[/C][C]1.4212[/C][C]0.162[/C][C]0.081[/C][/ROW]
[ROW][C]M11[/C][C]0.269330499234351[/C][C]0.367935[/C][C]0.732[/C][C]0.467878[/C][C]0.233939[/C][/ROW]
[ROW][C]t[/C][C]0.0686660801794755[/C][C]0.040555[/C][C]1.6931[/C][C]0.097191[/C][C]0.048596[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58471&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58471&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)39.03852038119223.2713991.67750.1002220.050111
X0.6374071846918930.2185352.91670.0054530.002727
M1-0.2725393829246520.387002-0.70420.4848380.242419
M2-0.001503917926070000.393409-0.00380.9969660.498483
M30.3042270318045970.379540.80160.4269250.213462
M40.4705224607233270.3763341.25030.2175210.108761
M50.6081845362643280.3710081.63930.1079780.053989
M60.5402584921647680.3701731.45950.151230.075615
M70.6947065199121230.3692841.88120.0662790.03314
M80.7356893259489490.368331.99740.051720.02586
M90.8882751020756350.371382.39180.0209090.010455
M100.5228676210376960.3679041.42120.1620.081
M110.2693304992343510.3679350.7320.4678780.233939
t0.06866608017947550.0405551.69310.0971910.048596







Multiple Linear Regression - Regression Statistics
Multiple R0.987885678348134
R-squared0.975918113485352
Adjusted R-squared0.969112362948604
F-TEST (value)143.39610425269
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.581204328880177
Sum Squared Residuals15.5387297078166

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987885678348134 \tabularnewline
R-squared & 0.975918113485352 \tabularnewline
Adjusted R-squared & 0.969112362948604 \tabularnewline
F-TEST (value) & 143.39610425269 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.581204328880177 \tabularnewline
Sum Squared Residuals & 15.5387297078166 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58471&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987885678348134[/C][/ROW]
[ROW][C]R-squared[/C][C]0.975918113485352[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.969112362948604[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]143.39610425269[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.581204328880177[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15.5387297078166[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58471&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58471&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.987885678348134
R-squared0.975918113485352
Adjusted R-squared0.969112362948604
F-TEST (value)143.39610425269
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.581204328880177
Sum Squared Residuals15.5387297078166







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1107.11107.394163863906-0.284163863906472
2107.57107.823102414942-0.253102414941710
3107.81108.178377229311-0.368377229311087
4108.75108.4133387384090.336661261590705
5109.43108.6515372533640.778462746635643
6109.62109.0538438158000.566156184199835
7109.54109.2132172052580.326782794742190
8109.53109.3292401633210.200759836678962
9109.84109.5823623788620.257637621138211
10109.67109.2983691216970.371630878302837
11109.79109.1326202956140.657379704385954
12109.56108.9319558765590.628044123440825
13110.22109.1169009564761.10309904352394
14110.4109.8709171717040.529082828296159
15110.69110.2325660579200.457433942079853
16110.72110.4930238544060.226976145593968
17110.89110.7057260819730.184273918026572
18110.58110.700092046206-0.120092046206423
19110.94111.108054237694-0.168054237693908
20110.91111.141214261747-0.231214261747181
21111.22111.336969830666-0.116969830665660
22111.09111.250572800756-0.160572800755516
23111111.256923914539-0.256923914539225
24111.06111.120000213954-0.0600002139535328
25111.55111.802122897930-0.252122897930094
26112.32112.2756799518930.0443200481065509
27112.64112.5353436885590.104656311440953
28112.36112.916908850136-0.556908850136393
29112.04113.129611077704-1.08961107770377
30112.37113.136725185631-0.766725185630614
31112.59113.455450371261-0.865450371261225
32112.89113.603343688559-0.713343688559044
33113.22113.799099257478-0.579099257477537
34112.85114.012283604373-1.16228360437259
35113.06113.852908850136-0.792908850136393
36112.99113.671366646622-0.681366646622274
37113.32113.818067295458-0.498067295457647
38113.74114.304372493115-0.564372493114832
39113.91114.653273235637-0.743273235637301
40114.52114.875486601042-0.355486601041673
41114.96115.132807331537-0.172807331537501
42114.91115.190914014240-0.280914014239678
43115.3115.420402194013-0.120402194013431
44115.44115.523677008383-0.0836770083828088
45115.52115.757677008383-0.237677008382816
46116.08115.8178836309520.262116369048187
47115.94115.6521348048690.287865195131308
48115.56115.4642185295080.0957814704923437
49115.88115.948744986230-0.0687449862297302
50116.66116.4159279683460.244072031653832
51117.41116.8604397885720.549560211427583
52117.68117.3312419560070.348758043993392
53117.85117.5503182554210.29968174457906
54118.21117.6084249381230.60157506187688
55118.92118.0928759917740.827124008226373
56119.03118.202524877990.827475122010071
57119.17118.4938915246120.676108475387803
58118.95118.2608908422230.689109157777082
59118.92118.8154121348420.104587865158356
60118.9118.8824587333570.0175412666426384

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 107.11 & 107.394163863906 & -0.284163863906472 \tabularnewline
2 & 107.57 & 107.823102414942 & -0.253102414941710 \tabularnewline
3 & 107.81 & 108.178377229311 & -0.368377229311087 \tabularnewline
4 & 108.75 & 108.413338738409 & 0.336661261590705 \tabularnewline
5 & 109.43 & 108.651537253364 & 0.778462746635643 \tabularnewline
6 & 109.62 & 109.053843815800 & 0.566156184199835 \tabularnewline
7 & 109.54 & 109.213217205258 & 0.326782794742190 \tabularnewline
8 & 109.53 & 109.329240163321 & 0.200759836678962 \tabularnewline
9 & 109.84 & 109.582362378862 & 0.257637621138211 \tabularnewline
10 & 109.67 & 109.298369121697 & 0.371630878302837 \tabularnewline
11 & 109.79 & 109.132620295614 & 0.657379704385954 \tabularnewline
12 & 109.56 & 108.931955876559 & 0.628044123440825 \tabularnewline
13 & 110.22 & 109.116900956476 & 1.10309904352394 \tabularnewline
14 & 110.4 & 109.870917171704 & 0.529082828296159 \tabularnewline
15 & 110.69 & 110.232566057920 & 0.457433942079853 \tabularnewline
16 & 110.72 & 110.493023854406 & 0.226976145593968 \tabularnewline
17 & 110.89 & 110.705726081973 & 0.184273918026572 \tabularnewline
18 & 110.58 & 110.700092046206 & -0.120092046206423 \tabularnewline
19 & 110.94 & 111.108054237694 & -0.168054237693908 \tabularnewline
20 & 110.91 & 111.141214261747 & -0.231214261747181 \tabularnewline
21 & 111.22 & 111.336969830666 & -0.116969830665660 \tabularnewline
22 & 111.09 & 111.250572800756 & -0.160572800755516 \tabularnewline
23 & 111 & 111.256923914539 & -0.256923914539225 \tabularnewline
24 & 111.06 & 111.120000213954 & -0.0600002139535328 \tabularnewline
25 & 111.55 & 111.802122897930 & -0.252122897930094 \tabularnewline
26 & 112.32 & 112.275679951893 & 0.0443200481065509 \tabularnewline
27 & 112.64 & 112.535343688559 & 0.104656311440953 \tabularnewline
28 & 112.36 & 112.916908850136 & -0.556908850136393 \tabularnewline
29 & 112.04 & 113.129611077704 & -1.08961107770377 \tabularnewline
30 & 112.37 & 113.136725185631 & -0.766725185630614 \tabularnewline
31 & 112.59 & 113.455450371261 & -0.865450371261225 \tabularnewline
32 & 112.89 & 113.603343688559 & -0.713343688559044 \tabularnewline
33 & 113.22 & 113.799099257478 & -0.579099257477537 \tabularnewline
34 & 112.85 & 114.012283604373 & -1.16228360437259 \tabularnewline
35 & 113.06 & 113.852908850136 & -0.792908850136393 \tabularnewline
36 & 112.99 & 113.671366646622 & -0.681366646622274 \tabularnewline
37 & 113.32 & 113.818067295458 & -0.498067295457647 \tabularnewline
38 & 113.74 & 114.304372493115 & -0.564372493114832 \tabularnewline
39 & 113.91 & 114.653273235637 & -0.743273235637301 \tabularnewline
40 & 114.52 & 114.875486601042 & -0.355486601041673 \tabularnewline
41 & 114.96 & 115.132807331537 & -0.172807331537501 \tabularnewline
42 & 114.91 & 115.190914014240 & -0.280914014239678 \tabularnewline
43 & 115.3 & 115.420402194013 & -0.120402194013431 \tabularnewline
44 & 115.44 & 115.523677008383 & -0.0836770083828088 \tabularnewline
45 & 115.52 & 115.757677008383 & -0.237677008382816 \tabularnewline
46 & 116.08 & 115.817883630952 & 0.262116369048187 \tabularnewline
47 & 115.94 & 115.652134804869 & 0.287865195131308 \tabularnewline
48 & 115.56 & 115.464218529508 & 0.0957814704923437 \tabularnewline
49 & 115.88 & 115.948744986230 & -0.0687449862297302 \tabularnewline
50 & 116.66 & 116.415927968346 & 0.244072031653832 \tabularnewline
51 & 117.41 & 116.860439788572 & 0.549560211427583 \tabularnewline
52 & 117.68 & 117.331241956007 & 0.348758043993392 \tabularnewline
53 & 117.85 & 117.550318255421 & 0.29968174457906 \tabularnewline
54 & 118.21 & 117.608424938123 & 0.60157506187688 \tabularnewline
55 & 118.92 & 118.092875991774 & 0.827124008226373 \tabularnewline
56 & 119.03 & 118.20252487799 & 0.827475122010071 \tabularnewline
57 & 119.17 & 118.493891524612 & 0.676108475387803 \tabularnewline
58 & 118.95 & 118.260890842223 & 0.689109157777082 \tabularnewline
59 & 118.92 & 118.815412134842 & 0.104587865158356 \tabularnewline
60 & 118.9 & 118.882458733357 & 0.0175412666426384 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58471&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]107.11[/C][C]107.394163863906[/C][C]-0.284163863906472[/C][/ROW]
[ROW][C]2[/C][C]107.57[/C][C]107.823102414942[/C][C]-0.253102414941710[/C][/ROW]
[ROW][C]3[/C][C]107.81[/C][C]108.178377229311[/C][C]-0.368377229311087[/C][/ROW]
[ROW][C]4[/C][C]108.75[/C][C]108.413338738409[/C][C]0.336661261590705[/C][/ROW]
[ROW][C]5[/C][C]109.43[/C][C]108.651537253364[/C][C]0.778462746635643[/C][/ROW]
[ROW][C]6[/C][C]109.62[/C][C]109.053843815800[/C][C]0.566156184199835[/C][/ROW]
[ROW][C]7[/C][C]109.54[/C][C]109.213217205258[/C][C]0.326782794742190[/C][/ROW]
[ROW][C]8[/C][C]109.53[/C][C]109.329240163321[/C][C]0.200759836678962[/C][/ROW]
[ROW][C]9[/C][C]109.84[/C][C]109.582362378862[/C][C]0.257637621138211[/C][/ROW]
[ROW][C]10[/C][C]109.67[/C][C]109.298369121697[/C][C]0.371630878302837[/C][/ROW]
[ROW][C]11[/C][C]109.79[/C][C]109.132620295614[/C][C]0.657379704385954[/C][/ROW]
[ROW][C]12[/C][C]109.56[/C][C]108.931955876559[/C][C]0.628044123440825[/C][/ROW]
[ROW][C]13[/C][C]110.22[/C][C]109.116900956476[/C][C]1.10309904352394[/C][/ROW]
[ROW][C]14[/C][C]110.4[/C][C]109.870917171704[/C][C]0.529082828296159[/C][/ROW]
[ROW][C]15[/C][C]110.69[/C][C]110.232566057920[/C][C]0.457433942079853[/C][/ROW]
[ROW][C]16[/C][C]110.72[/C][C]110.493023854406[/C][C]0.226976145593968[/C][/ROW]
[ROW][C]17[/C][C]110.89[/C][C]110.705726081973[/C][C]0.184273918026572[/C][/ROW]
[ROW][C]18[/C][C]110.58[/C][C]110.700092046206[/C][C]-0.120092046206423[/C][/ROW]
[ROW][C]19[/C][C]110.94[/C][C]111.108054237694[/C][C]-0.168054237693908[/C][/ROW]
[ROW][C]20[/C][C]110.91[/C][C]111.141214261747[/C][C]-0.231214261747181[/C][/ROW]
[ROW][C]21[/C][C]111.22[/C][C]111.336969830666[/C][C]-0.116969830665660[/C][/ROW]
[ROW][C]22[/C][C]111.09[/C][C]111.250572800756[/C][C]-0.160572800755516[/C][/ROW]
[ROW][C]23[/C][C]111[/C][C]111.256923914539[/C][C]-0.256923914539225[/C][/ROW]
[ROW][C]24[/C][C]111.06[/C][C]111.120000213954[/C][C]-0.0600002139535328[/C][/ROW]
[ROW][C]25[/C][C]111.55[/C][C]111.802122897930[/C][C]-0.252122897930094[/C][/ROW]
[ROW][C]26[/C][C]112.32[/C][C]112.275679951893[/C][C]0.0443200481065509[/C][/ROW]
[ROW][C]27[/C][C]112.64[/C][C]112.535343688559[/C][C]0.104656311440953[/C][/ROW]
[ROW][C]28[/C][C]112.36[/C][C]112.916908850136[/C][C]-0.556908850136393[/C][/ROW]
[ROW][C]29[/C][C]112.04[/C][C]113.129611077704[/C][C]-1.08961107770377[/C][/ROW]
[ROW][C]30[/C][C]112.37[/C][C]113.136725185631[/C][C]-0.766725185630614[/C][/ROW]
[ROW][C]31[/C][C]112.59[/C][C]113.455450371261[/C][C]-0.865450371261225[/C][/ROW]
[ROW][C]32[/C][C]112.89[/C][C]113.603343688559[/C][C]-0.713343688559044[/C][/ROW]
[ROW][C]33[/C][C]113.22[/C][C]113.799099257478[/C][C]-0.579099257477537[/C][/ROW]
[ROW][C]34[/C][C]112.85[/C][C]114.012283604373[/C][C]-1.16228360437259[/C][/ROW]
[ROW][C]35[/C][C]113.06[/C][C]113.852908850136[/C][C]-0.792908850136393[/C][/ROW]
[ROW][C]36[/C][C]112.99[/C][C]113.671366646622[/C][C]-0.681366646622274[/C][/ROW]
[ROW][C]37[/C][C]113.32[/C][C]113.818067295458[/C][C]-0.498067295457647[/C][/ROW]
[ROW][C]38[/C][C]113.74[/C][C]114.304372493115[/C][C]-0.564372493114832[/C][/ROW]
[ROW][C]39[/C][C]113.91[/C][C]114.653273235637[/C][C]-0.743273235637301[/C][/ROW]
[ROW][C]40[/C][C]114.52[/C][C]114.875486601042[/C][C]-0.355486601041673[/C][/ROW]
[ROW][C]41[/C][C]114.96[/C][C]115.132807331537[/C][C]-0.172807331537501[/C][/ROW]
[ROW][C]42[/C][C]114.91[/C][C]115.190914014240[/C][C]-0.280914014239678[/C][/ROW]
[ROW][C]43[/C][C]115.3[/C][C]115.420402194013[/C][C]-0.120402194013431[/C][/ROW]
[ROW][C]44[/C][C]115.44[/C][C]115.523677008383[/C][C]-0.0836770083828088[/C][/ROW]
[ROW][C]45[/C][C]115.52[/C][C]115.757677008383[/C][C]-0.237677008382816[/C][/ROW]
[ROW][C]46[/C][C]116.08[/C][C]115.817883630952[/C][C]0.262116369048187[/C][/ROW]
[ROW][C]47[/C][C]115.94[/C][C]115.652134804869[/C][C]0.287865195131308[/C][/ROW]
[ROW][C]48[/C][C]115.56[/C][C]115.464218529508[/C][C]0.0957814704923437[/C][/ROW]
[ROW][C]49[/C][C]115.88[/C][C]115.948744986230[/C][C]-0.0687449862297302[/C][/ROW]
[ROW][C]50[/C][C]116.66[/C][C]116.415927968346[/C][C]0.244072031653832[/C][/ROW]
[ROW][C]51[/C][C]117.41[/C][C]116.860439788572[/C][C]0.549560211427583[/C][/ROW]
[ROW][C]52[/C][C]117.68[/C][C]117.331241956007[/C][C]0.348758043993392[/C][/ROW]
[ROW][C]53[/C][C]117.85[/C][C]117.550318255421[/C][C]0.29968174457906[/C][/ROW]
[ROW][C]54[/C][C]118.21[/C][C]117.608424938123[/C][C]0.60157506187688[/C][/ROW]
[ROW][C]55[/C][C]118.92[/C][C]118.092875991774[/C][C]0.827124008226373[/C][/ROW]
[ROW][C]56[/C][C]119.03[/C][C]118.20252487799[/C][C]0.827475122010071[/C][/ROW]
[ROW][C]57[/C][C]119.17[/C][C]118.493891524612[/C][C]0.676108475387803[/C][/ROW]
[ROW][C]58[/C][C]118.95[/C][C]118.260890842223[/C][C]0.689109157777082[/C][/ROW]
[ROW][C]59[/C][C]118.92[/C][C]118.815412134842[/C][C]0.104587865158356[/C][/ROW]
[ROW][C]60[/C][C]118.9[/C][C]118.882458733357[/C][C]0.0175412666426384[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58471&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58471&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
1107.11107.394163863906-0.284163863906472
2107.57107.823102414942-0.253102414941710
3107.81108.178377229311-0.368377229311087
4108.75108.4133387384090.336661261590705
5109.43108.6515372533640.778462746635643
6109.62109.0538438158000.566156184199835
7109.54109.2132172052580.326782794742190
8109.53109.3292401633210.200759836678962
9109.84109.5823623788620.257637621138211
10109.67109.2983691216970.371630878302837
11109.79109.1326202956140.657379704385954
12109.56108.9319558765590.628044123440825
13110.22109.1169009564761.10309904352394
14110.4109.8709171717040.529082828296159
15110.69110.2325660579200.457433942079853
16110.72110.4930238544060.226976145593968
17110.89110.7057260819730.184273918026572
18110.58110.700092046206-0.120092046206423
19110.94111.108054237694-0.168054237693908
20110.91111.141214261747-0.231214261747181
21111.22111.336969830666-0.116969830665660
22111.09111.250572800756-0.160572800755516
23111111.256923914539-0.256923914539225
24111.06111.120000213954-0.0600002139535328
25111.55111.802122897930-0.252122897930094
26112.32112.2756799518930.0443200481065509
27112.64112.5353436885590.104656311440953
28112.36112.916908850136-0.556908850136393
29112.04113.129611077704-1.08961107770377
30112.37113.136725185631-0.766725185630614
31112.59113.455450371261-0.865450371261225
32112.89113.603343688559-0.713343688559044
33113.22113.799099257478-0.579099257477537
34112.85114.012283604373-1.16228360437259
35113.06113.852908850136-0.792908850136393
36112.99113.671366646622-0.681366646622274
37113.32113.818067295458-0.498067295457647
38113.74114.304372493115-0.564372493114832
39113.91114.653273235637-0.743273235637301
40114.52114.875486601042-0.355486601041673
41114.96115.132807331537-0.172807331537501
42114.91115.190914014240-0.280914014239678
43115.3115.420402194013-0.120402194013431
44115.44115.523677008383-0.0836770083828088
45115.52115.757677008383-0.237677008382816
46116.08115.8178836309520.262116369048187
47115.94115.6521348048690.287865195131308
48115.56115.4642185295080.0957814704923437
49115.88115.948744986230-0.0687449862297302
50116.66116.4159279683460.244072031653832
51117.41116.8604397885720.549560211427583
52117.68117.3312419560070.348758043993392
53117.85117.5503182554210.29968174457906
54118.21117.6084249381230.60157506187688
55118.92118.0928759917740.827124008226373
56119.03118.202524877990.827475122010071
57119.17118.4938915246120.676108475387803
58118.95118.2608908422230.689109157777082
59118.92118.8154121348420.104587865158356
60118.9118.8824587333570.0175412666426384







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6337142976002880.7325714047994240.366285702399712
180.905257160215460.1894856795690790.0947428397845394
190.8907535821829280.2184928356341430.109246417817072
200.8539053204082130.2921893591835750.146094679591787
210.8132805535974380.3734388928051230.186719446402562
220.7962387457698390.4075225084603230.203761254230161
230.8292094602702610.3415810794594770.170790539729739
240.8689097498229720.2621805003540550.131090250177028
250.8764191127618680.2471617744762630.123580887238132
260.9501177588105630.09976448237887320.0498822411894366
270.9963125013552670.00737499728946650.00368749864473325
280.9983125560752170.003374887849566790.00168744392478340
290.9987430152339920.002513969532015780.00125698476600789
300.9981038638079950.003792272384010880.00189613619200544
310.9961720865087820.007655826982436050.00382791349121802
320.9919563015930360.01608739681392800.00804369840696402
330.9900209387066140.01995812258677140.00997906129338571
340.9848041720780430.03039165584391320.0151958279219566
350.9714505438452480.05709891230950350.0285494561547517
360.9668817306799480.0662365386401050.0331182693200525
370.974985845499750.05002830900049850.0250141545002493
380.9624023908073370.07519521838532610.0375976091926631
390.939090753580290.1218184928394210.0609092464197106
400.888159661614680.2236806767706390.111840338385320
410.878829637651850.2423407246962990.121170362348150
420.7800280431832410.4399439136335180.219971956816759
430.6932134239593280.6135731520813440.306786576040672

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.633714297600288 & 0.732571404799424 & 0.366285702399712 \tabularnewline
18 & 0.90525716021546 & 0.189485679569079 & 0.0947428397845394 \tabularnewline
19 & 0.890753582182928 & 0.218492835634143 & 0.109246417817072 \tabularnewline
20 & 0.853905320408213 & 0.292189359183575 & 0.146094679591787 \tabularnewline
21 & 0.813280553597438 & 0.373438892805123 & 0.186719446402562 \tabularnewline
22 & 0.796238745769839 & 0.407522508460323 & 0.203761254230161 \tabularnewline
23 & 0.829209460270261 & 0.341581079459477 & 0.170790539729739 \tabularnewline
24 & 0.868909749822972 & 0.262180500354055 & 0.131090250177028 \tabularnewline
25 & 0.876419112761868 & 0.247161774476263 & 0.123580887238132 \tabularnewline
26 & 0.950117758810563 & 0.0997644823788732 & 0.0498822411894366 \tabularnewline
27 & 0.996312501355267 & 0.0073749972894665 & 0.00368749864473325 \tabularnewline
28 & 0.998312556075217 & 0.00337488784956679 & 0.00168744392478340 \tabularnewline
29 & 0.998743015233992 & 0.00251396953201578 & 0.00125698476600789 \tabularnewline
30 & 0.998103863807995 & 0.00379227238401088 & 0.00189613619200544 \tabularnewline
31 & 0.996172086508782 & 0.00765582698243605 & 0.00382791349121802 \tabularnewline
32 & 0.991956301593036 & 0.0160873968139280 & 0.00804369840696402 \tabularnewline
33 & 0.990020938706614 & 0.0199581225867714 & 0.00997906129338571 \tabularnewline
34 & 0.984804172078043 & 0.0303916558439132 & 0.0151958279219566 \tabularnewline
35 & 0.971450543845248 & 0.0570989123095035 & 0.0285494561547517 \tabularnewline
36 & 0.966881730679948 & 0.066236538640105 & 0.0331182693200525 \tabularnewline
37 & 0.97498584549975 & 0.0500283090004985 & 0.0250141545002493 \tabularnewline
38 & 0.962402390807337 & 0.0751952183853261 & 0.0375976091926631 \tabularnewline
39 & 0.93909075358029 & 0.121818492839421 & 0.0609092464197106 \tabularnewline
40 & 0.88815966161468 & 0.223680676770639 & 0.111840338385320 \tabularnewline
41 & 0.87882963765185 & 0.242340724696299 & 0.121170362348150 \tabularnewline
42 & 0.780028043183241 & 0.439943913633518 & 0.219971956816759 \tabularnewline
43 & 0.693213423959328 & 0.613573152081344 & 0.306786576040672 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58471&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.633714297600288[/C][C]0.732571404799424[/C][C]0.366285702399712[/C][/ROW]
[ROW][C]18[/C][C]0.90525716021546[/C][C]0.189485679569079[/C][C]0.0947428397845394[/C][/ROW]
[ROW][C]19[/C][C]0.890753582182928[/C][C]0.218492835634143[/C][C]0.109246417817072[/C][/ROW]
[ROW][C]20[/C][C]0.853905320408213[/C][C]0.292189359183575[/C][C]0.146094679591787[/C][/ROW]
[ROW][C]21[/C][C]0.813280553597438[/C][C]0.373438892805123[/C][C]0.186719446402562[/C][/ROW]
[ROW][C]22[/C][C]0.796238745769839[/C][C]0.407522508460323[/C][C]0.203761254230161[/C][/ROW]
[ROW][C]23[/C][C]0.829209460270261[/C][C]0.341581079459477[/C][C]0.170790539729739[/C][/ROW]
[ROW][C]24[/C][C]0.868909749822972[/C][C]0.262180500354055[/C][C]0.131090250177028[/C][/ROW]
[ROW][C]25[/C][C]0.876419112761868[/C][C]0.247161774476263[/C][C]0.123580887238132[/C][/ROW]
[ROW][C]26[/C][C]0.950117758810563[/C][C]0.0997644823788732[/C][C]0.0498822411894366[/C][/ROW]
[ROW][C]27[/C][C]0.996312501355267[/C][C]0.0073749972894665[/C][C]0.00368749864473325[/C][/ROW]
[ROW][C]28[/C][C]0.998312556075217[/C][C]0.00337488784956679[/C][C]0.00168744392478340[/C][/ROW]
[ROW][C]29[/C][C]0.998743015233992[/C][C]0.00251396953201578[/C][C]0.00125698476600789[/C][/ROW]
[ROW][C]30[/C][C]0.998103863807995[/C][C]0.00379227238401088[/C][C]0.00189613619200544[/C][/ROW]
[ROW][C]31[/C][C]0.996172086508782[/C][C]0.00765582698243605[/C][C]0.00382791349121802[/C][/ROW]
[ROW][C]32[/C][C]0.991956301593036[/C][C]0.0160873968139280[/C][C]0.00804369840696402[/C][/ROW]
[ROW][C]33[/C][C]0.990020938706614[/C][C]0.0199581225867714[/C][C]0.00997906129338571[/C][/ROW]
[ROW][C]34[/C][C]0.984804172078043[/C][C]0.0303916558439132[/C][C]0.0151958279219566[/C][/ROW]
[ROW][C]35[/C][C]0.971450543845248[/C][C]0.0570989123095035[/C][C]0.0285494561547517[/C][/ROW]
[ROW][C]36[/C][C]0.966881730679948[/C][C]0.066236538640105[/C][C]0.0331182693200525[/C][/ROW]
[ROW][C]37[/C][C]0.97498584549975[/C][C]0.0500283090004985[/C][C]0.0250141545002493[/C][/ROW]
[ROW][C]38[/C][C]0.962402390807337[/C][C]0.0751952183853261[/C][C]0.0375976091926631[/C][/ROW]
[ROW][C]39[/C][C]0.93909075358029[/C][C]0.121818492839421[/C][C]0.0609092464197106[/C][/ROW]
[ROW][C]40[/C][C]0.88815966161468[/C][C]0.223680676770639[/C][C]0.111840338385320[/C][/ROW]
[ROW][C]41[/C][C]0.87882963765185[/C][C]0.242340724696299[/C][C]0.121170362348150[/C][/ROW]
[ROW][C]42[/C][C]0.780028043183241[/C][C]0.439943913633518[/C][C]0.219971956816759[/C][/ROW]
[ROW][C]43[/C][C]0.693213423959328[/C][C]0.613573152081344[/C][C]0.306786576040672[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58471&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6337142976002880.7325714047994240.366285702399712
180.905257160215460.1894856795690790.0947428397845394
190.8907535821829280.2184928356341430.109246417817072
200.8539053204082130.2921893591835750.146094679591787
210.8132805535974380.3734388928051230.186719446402562
220.7962387457698390.4075225084603230.203761254230161
230.8292094602702610.3415810794594770.170790539729739
240.8689097498229720.2621805003540550.131090250177028
250.8764191127618680.2471617744762630.123580887238132
260.9501177588105630.09976448237887320.0498822411894366
270.9963125013552670.00737499728946650.00368749864473325
280.9983125560752170.003374887849566790.00168744392478340
290.9987430152339920.002513969532015780.00125698476600789
300.9981038638079950.003792272384010880.00189613619200544
310.9961720865087820.007655826982436050.00382791349121802
320.9919563015930360.01608739681392800.00804369840696402
330.9900209387066140.01995812258677140.00997906129338571
340.9848041720780430.03039165584391320.0151958279219566
350.9714505438452480.05709891230950350.0285494561547517
360.9668817306799480.0662365386401050.0331182693200525
370.974985845499750.05002830900049850.0250141545002493
380.9624023908073370.07519521838532610.0375976091926631
390.939090753580290.1218184928394210.0609092464197106
400.888159661614680.2236806767706390.111840338385320
410.878829637651850.2423407246962990.121170362348150
420.7800280431832410.4399439136335180.219971956816759
430.6932134239593280.6135731520813440.306786576040672







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.185185185185185NOK
5% type I error level80.296296296296296NOK
10% type I error level130.481481481481481NOK

\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 & 5 & 0.185185185185185 & NOK \tabularnewline
5% type I error level & 8 & 0.296296296296296 & NOK \tabularnewline
10% type I error level & 13 & 0.481481481481481 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58471&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]5[/C][C]0.185185185185185[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]8[/C][C]0.296296296296296[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]13[/C][C]0.481481481481481[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58471&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58471&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 level50.185185185185185NOK
5% type I error level80.296296296296296NOK
10% type I error level130.481481481481481NOK



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