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, 27 Nov 2009 09:41:59 -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/27/t1259340218ifax0o123nf9ps1.htm/, Retrieved Sat, 27 Apr 2024 15:10:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60986, Retrieved Sat, 27 Apr 2024 15:10:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact138
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [SHW WS7] [2009-11-20 12:32:24] [253127ae8da904b75450fbd69fe4eb21]
-    D      [Multiple Regression] [SHW WS7] [2009-11-20 12:47:50] [253127ae8da904b75450fbd69fe4eb21]
- R  D          [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 16:41:59] [2d9a0b3c2f25bb8f387fafb994d0d852] [Current]
Feedback Forum

Post a new message
Dataseries X:
277051	1	277838	276610
277026	1	277051	277838
274960	1	277026	277051
270073	1	274960	277026
267063	1	270073	274960
264916	1	267063	270073
287182	1	264916	267063
291109	1	287182	264916
292223	1	291109	287182
288109	1	292223	291109
281400	1	288109	292223
282579	1	281400	288109
280113	1	282579	281400
280331	1	280113	282579
276759	1	280331	280113
275139	1	276759	280331
274275	1	275139	276759
271234	1	274275	275139
289725	1	271234	274275
290649	1	289725	271234
292223	1	290649	289725
278429	0	292223	290649
269749	0	278429	292223
265784	0	269749	278429
268957	0	265784	269749
264099	0	268957	265784
255121	0	264099	268957
253276	0	255121	264099
245980	0	253276	255121
235295	0	245980	253276
258479	0	235295	245980
260916	0	258479	235295
254586	0	260916	258479
250566	0	254586	260916
243345	0	250566	254586
247028	0	243345	250566
248464	0	247028	243345
244962	0	248464	247028
237003	0	244962	248464
237008	0	237003	244962
225477	0	237008	237003
226762	0	225477	237008
247857	0	226762	225477
248256	0	247857	226762
246892	0	248256	247857
245021	0	246892	248256
246186	0	245021	246892
255688	0	246186	245021
264242	0	255688	246186
268270	0	264242	255688
272969	0	268270	264242
273886	0	272969	268270
267353	0	273886	272969
271916	0	267353	273886
292633	0	271916	267353
295804	0	292633	271916
293222	0	295804	292633




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 9690.06414062205 + 8887.14053601723X[t] + 0.928450603723507Y1[t] + 0.00697821046662423Y2[t] -293.055756716993M1[t] -3225.60445747154M2[t] -6294.3963344095M3[t] -4703.55564690838M4[t] -9394.0620252704M5[t] -6208.55988822182M6[t] + 16596.0512996447M7[t] -1103.97720103963M8[t] -5033.72634393642M9[t] -7293.7916697285M10[t] -7370.59193338102M11[t] + 248.332473555430t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  9690.06414062205 +  8887.14053601723X[t] +  0.928450603723507Y1[t] +  0.00697821046662423Y2[t] -293.055756716993M1[t] -3225.60445747154M2[t] -6294.3963344095M3[t] -4703.55564690838M4[t] -9394.0620252704M5[t] -6208.55988822182M6[t] +  16596.0512996447M7[t] -1103.97720103963M8[t] -5033.72634393642M9[t] -7293.7916697285M10[t] -7370.59193338102M11[t] +  248.332473555430t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60986&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  9690.06414062205 +  8887.14053601723X[t] +  0.928450603723507Y1[t] +  0.00697821046662423Y2[t] -293.055756716993M1[t] -3225.60445747154M2[t] -6294.3963344095M3[t] -4703.55564690838M4[t] -9394.0620252704M5[t] -6208.55988822182M6[t] +  16596.0512996447M7[t] -1103.97720103963M8[t] -5033.72634393642M9[t] -7293.7916697285M10[t] -7370.59193338102M11[t] +  248.332473555430t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60986&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60986&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] = + 9690.06414062205 + 8887.14053601723X[t] + 0.928450603723507Y1[t] + 0.00697821046662423Y2[t] -293.055756716993M1[t] -3225.60445747154M2[t] -6294.3963344095M3[t] -4703.55564690838M4[t] -9394.0620252704M5[t] -6208.55988822182M6[t] + 16596.0512996447M7[t] -1103.97720103963M8[t] -5033.72634393642M9[t] -7293.7916697285M10[t] -7370.59193338102M11[t] + 248.332473555430t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9690.0641406220510137.937280.95580.3447640.172382
X8887.140536017232265.8322363.92220.0003270.000164
Y10.9284506037235070.1481146.268500
Y20.006978210466624230.1486560.04690.9627870.481394
M1-293.0557567169932607.516637-0.11240.9110640.455532
M2-3225.604457471542570.643895-1.25480.2166630.108331
M3-6294.39633440952420.166044-2.60080.0128770.006438
M4-4703.555646908382348.260993-2.0030.0518190.02591
M5-9394.06202527042394.298419-3.92350.0003260.000163
M6-6208.559888221822375.438718-2.61360.012470.006235
M716596.05129964472418.6890146.861600
M8-1103.977201039634390.783027-0.25140.8027370.401369
M9-5033.726343936422547.754411-1.97580.0549390.02747
M10-7293.79166972852573.647354-2.8340.0071010.003551
M11-7370.591933381022469.135564-2.98510.0047630.002382
t248.33247355543062.8609023.95053e-040.00015

\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) & 9690.06414062205 & 10137.93728 & 0.9558 & 0.344764 & 0.172382 \tabularnewline
X & 8887.14053601723 & 2265.832236 & 3.9222 & 0.000327 & 0.000164 \tabularnewline
Y1 & 0.928450603723507 & 0.148114 & 6.2685 & 0 & 0 \tabularnewline
Y2 & 0.00697821046662423 & 0.148656 & 0.0469 & 0.962787 & 0.481394 \tabularnewline
M1 & -293.055756716993 & 2607.516637 & -0.1124 & 0.911064 & 0.455532 \tabularnewline
M2 & -3225.60445747154 & 2570.643895 & -1.2548 & 0.216663 & 0.108331 \tabularnewline
M3 & -6294.3963344095 & 2420.166044 & -2.6008 & 0.012877 & 0.006438 \tabularnewline
M4 & -4703.55564690838 & 2348.260993 & -2.003 & 0.051819 & 0.02591 \tabularnewline
M5 & -9394.0620252704 & 2394.298419 & -3.9235 & 0.000326 & 0.000163 \tabularnewline
M6 & -6208.55988822182 & 2375.438718 & -2.6136 & 0.01247 & 0.006235 \tabularnewline
M7 & 16596.0512996447 & 2418.689014 & 6.8616 & 0 & 0 \tabularnewline
M8 & -1103.97720103963 & 4390.783027 & -0.2514 & 0.802737 & 0.401369 \tabularnewline
M9 & -5033.72634393642 & 2547.754411 & -1.9758 & 0.054939 & 0.02747 \tabularnewline
M10 & -7293.7916697285 & 2573.647354 & -2.834 & 0.007101 & 0.003551 \tabularnewline
M11 & -7370.59193338102 & 2469.135564 & -2.9851 & 0.004763 & 0.002382 \tabularnewline
t & 248.332473555430 & 62.860902 & 3.9505 & 3e-04 & 0.00015 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60986&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]9690.06414062205[/C][C]10137.93728[/C][C]0.9558[/C][C]0.344764[/C][C]0.172382[/C][/ROW]
[ROW][C]X[/C][C]8887.14053601723[/C][C]2265.832236[/C][C]3.9222[/C][C]0.000327[/C][C]0.000164[/C][/ROW]
[ROW][C]Y1[/C][C]0.928450603723507[/C][C]0.148114[/C][C]6.2685[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.00697821046662423[/C][C]0.148656[/C][C]0.0469[/C][C]0.962787[/C][C]0.481394[/C][/ROW]
[ROW][C]M1[/C][C]-293.055756716993[/C][C]2607.516637[/C][C]-0.1124[/C][C]0.911064[/C][C]0.455532[/C][/ROW]
[ROW][C]M2[/C][C]-3225.60445747154[/C][C]2570.643895[/C][C]-1.2548[/C][C]0.216663[/C][C]0.108331[/C][/ROW]
[ROW][C]M3[/C][C]-6294.3963344095[/C][C]2420.166044[/C][C]-2.6008[/C][C]0.012877[/C][C]0.006438[/C][/ROW]
[ROW][C]M4[/C][C]-4703.55564690838[/C][C]2348.260993[/C][C]-2.003[/C][C]0.051819[/C][C]0.02591[/C][/ROW]
[ROW][C]M5[/C][C]-9394.0620252704[/C][C]2394.298419[/C][C]-3.9235[/C][C]0.000326[/C][C]0.000163[/C][/ROW]
[ROW][C]M6[/C][C]-6208.55988822182[/C][C]2375.438718[/C][C]-2.6136[/C][C]0.01247[/C][C]0.006235[/C][/ROW]
[ROW][C]M7[/C][C]16596.0512996447[/C][C]2418.689014[/C][C]6.8616[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-1103.97720103963[/C][C]4390.783027[/C][C]-0.2514[/C][C]0.802737[/C][C]0.401369[/C][/ROW]
[ROW][C]M9[/C][C]-5033.72634393642[/C][C]2547.754411[/C][C]-1.9758[/C][C]0.054939[/C][C]0.02747[/C][/ROW]
[ROW][C]M10[/C][C]-7293.7916697285[/C][C]2573.647354[/C][C]-2.834[/C][C]0.007101[/C][C]0.003551[/C][/ROW]
[ROW][C]M11[/C][C]-7370.59193338102[/C][C]2469.135564[/C][C]-2.9851[/C][C]0.004763[/C][C]0.002382[/C][/ROW]
[ROW][C]t[/C][C]248.332473555430[/C][C]62.860902[/C][C]3.9505[/C][C]3e-04[/C][C]0.00015[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60986&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60986&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)9690.0641406220510137.937280.95580.3447640.172382
X8887.140536017232265.8322363.92220.0003270.000164
Y10.9284506037235070.1481146.268500
Y20.006978210466624230.1486560.04690.9627870.481394
M1-293.0557567169932607.516637-0.11240.9110640.455532
M2-3225.604457471542570.643895-1.25480.2166630.108331
M3-6294.39633440952420.166044-2.60080.0128770.006438
M4-4703.555646908382348.260993-2.0030.0518190.02591
M5-9394.06202527042394.298419-3.92350.0003260.000163
M6-6208.559888221822375.438718-2.61360.012470.006235
M716596.05129964472418.6890146.861600
M8-1103.977201039634390.783027-0.25140.8027370.401369
M9-5033.726343936422547.754411-1.97580.0549390.02747
M10-7293.79166972852573.647354-2.8340.0071010.003551
M11-7370.591933381022469.135564-2.98510.0047630.002382
t248.33247355543062.8609023.95053e-040.00015







Multiple Linear Regression - Regression Statistics
Multiple R0.98676705339317
R-squared0.97370921766224
Adjusted R-squared0.964090638758182
F-TEST (value)101.232128714086
F-TEST (DF numerator)15
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3476.52994540491
Sum Squared Residuals495536678.91318

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.98676705339317 \tabularnewline
R-squared & 0.97370921766224 \tabularnewline
Adjusted R-squared & 0.964090638758182 \tabularnewline
F-TEST (value) & 101.232128714086 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3476.52994540491 \tabularnewline
Sum Squared Residuals & 495536678.91318 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60986&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.98676705339317[/C][/ROW]
[ROW][C]R-squared[/C][C]0.97370921766224[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.964090638758182[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]101.232128714086[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/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]3476.52994540491[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]495536678.91318[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60986&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60986&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.98676705339317
R-squared0.97370921766224
Adjusted R-squared0.964090638758182
F-TEST (value)101.232128714086
F-TEST (DF numerator)15
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3476.52994540491
Sum Squared Residuals495536678.91318







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1277051278421.583027982-1370.58302798227
2277026275015.2454181062010.75458189406
3274960272166.0828979932793.91710200691
4270073272086.902656495-2013.90265649525
5267063263092.9736684683970.02633153218
6264916263698.0694473141217.93055268632
7287182284736.6252490372445.37475096334
8291109287942.8281465443166.17185345640
9292223288062.8138322744160.18616772568
10288109287112.778385088996.221614911926
11281400283472.438537732-2072.43853773232
12282579284833.679486428-2254.67948642805
13280113285836.782651036-5723.78265103592
14280331280871.234545195-540.234545194788
15276759278235.969106413-1476.96910641328
16275139276760.237960851-1621.23796085119
17274275270789.0479102263485.95208977426
18271234273409.396498257-2175.3964982567
19289725293632.892699912-3907.89269991223
20290649293327.956048206-2678.95604820578
21292223290633.4618264431589.53817355670
22278429281202.417554921-2773.41755492139
23269749268577.8858403371171.11415966330
24265784268041.601571776-2257.6015717765
25268957264255.0007780014701.99922199908
26264099264489.089711916-390.089711916333
27255121257180.359137456-2059.35913745561
28253276250650.0026318362625.99736816436
29245980244432.186989591547.81301041018
30235295241079.171197116-5784.1711971162
31258479254160.7071341884318.29286581208
32260916258159.6477249492756.352275051
33254586256902.64800834-2316.64800834005
34250566249030.8287334411535.17126655924
35243345245425.817444121-2080.81744412143
36247028246312.347635495715.652364505387
37248464249636.718268067-1172.71826806723
38244962248311.457856964-3349.45785696365
39237003242249.585149571-5246.58514957147
40237008236674.782262539333.217737461498
41225477232181.711033647-6704.71103364666
42226762224909.6166237671852.38337623276
43247857249075.153566083-1218.15356608320
44248256251218.090024951-2962.09002495136
45246892248054.330496289-1162.33049628913
46245021244778.97532655242.024673450216
47246186243203.8581778102982.14182219046
48255688251891.3713063013796.62869369917
49264242260676.9152749143565.08472508635
50268270266000.9724678192269.02753218071
51272969266980.0037085675988.99629143345
52273886273210.074488279675.925511720576
53267353269652.08039807-2299.08039806996
54271916267026.7462335464889.25376645381
55292633294270.62135078-1637.62135077999
56295804296085.47805535-281.478055350261
57293222295492.745836653-2270.74583665321

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 277051 & 278421.583027982 & -1370.58302798227 \tabularnewline
2 & 277026 & 275015.245418106 & 2010.75458189406 \tabularnewline
3 & 274960 & 272166.082897993 & 2793.91710200691 \tabularnewline
4 & 270073 & 272086.902656495 & -2013.90265649525 \tabularnewline
5 & 267063 & 263092.973668468 & 3970.02633153218 \tabularnewline
6 & 264916 & 263698.069447314 & 1217.93055268632 \tabularnewline
7 & 287182 & 284736.625249037 & 2445.37475096334 \tabularnewline
8 & 291109 & 287942.828146544 & 3166.17185345640 \tabularnewline
9 & 292223 & 288062.813832274 & 4160.18616772568 \tabularnewline
10 & 288109 & 287112.778385088 & 996.221614911926 \tabularnewline
11 & 281400 & 283472.438537732 & -2072.43853773232 \tabularnewline
12 & 282579 & 284833.679486428 & -2254.67948642805 \tabularnewline
13 & 280113 & 285836.782651036 & -5723.78265103592 \tabularnewline
14 & 280331 & 280871.234545195 & -540.234545194788 \tabularnewline
15 & 276759 & 278235.969106413 & -1476.96910641328 \tabularnewline
16 & 275139 & 276760.237960851 & -1621.23796085119 \tabularnewline
17 & 274275 & 270789.047910226 & 3485.95208977426 \tabularnewline
18 & 271234 & 273409.396498257 & -2175.3964982567 \tabularnewline
19 & 289725 & 293632.892699912 & -3907.89269991223 \tabularnewline
20 & 290649 & 293327.956048206 & -2678.95604820578 \tabularnewline
21 & 292223 & 290633.461826443 & 1589.53817355670 \tabularnewline
22 & 278429 & 281202.417554921 & -2773.41755492139 \tabularnewline
23 & 269749 & 268577.885840337 & 1171.11415966330 \tabularnewline
24 & 265784 & 268041.601571776 & -2257.6015717765 \tabularnewline
25 & 268957 & 264255.000778001 & 4701.99922199908 \tabularnewline
26 & 264099 & 264489.089711916 & -390.089711916333 \tabularnewline
27 & 255121 & 257180.359137456 & -2059.35913745561 \tabularnewline
28 & 253276 & 250650.002631836 & 2625.99736816436 \tabularnewline
29 & 245980 & 244432.18698959 & 1547.81301041018 \tabularnewline
30 & 235295 & 241079.171197116 & -5784.1711971162 \tabularnewline
31 & 258479 & 254160.707134188 & 4318.29286581208 \tabularnewline
32 & 260916 & 258159.647724949 & 2756.352275051 \tabularnewline
33 & 254586 & 256902.64800834 & -2316.64800834005 \tabularnewline
34 & 250566 & 249030.828733441 & 1535.17126655924 \tabularnewline
35 & 243345 & 245425.817444121 & -2080.81744412143 \tabularnewline
36 & 247028 & 246312.347635495 & 715.652364505387 \tabularnewline
37 & 248464 & 249636.718268067 & -1172.71826806723 \tabularnewline
38 & 244962 & 248311.457856964 & -3349.45785696365 \tabularnewline
39 & 237003 & 242249.585149571 & -5246.58514957147 \tabularnewline
40 & 237008 & 236674.782262539 & 333.217737461498 \tabularnewline
41 & 225477 & 232181.711033647 & -6704.71103364666 \tabularnewline
42 & 226762 & 224909.616623767 & 1852.38337623276 \tabularnewline
43 & 247857 & 249075.153566083 & -1218.15356608320 \tabularnewline
44 & 248256 & 251218.090024951 & -2962.09002495136 \tabularnewline
45 & 246892 & 248054.330496289 & -1162.33049628913 \tabularnewline
46 & 245021 & 244778.97532655 & 242.024673450216 \tabularnewline
47 & 246186 & 243203.858177810 & 2982.14182219046 \tabularnewline
48 & 255688 & 251891.371306301 & 3796.62869369917 \tabularnewline
49 & 264242 & 260676.915274914 & 3565.08472508635 \tabularnewline
50 & 268270 & 266000.972467819 & 2269.02753218071 \tabularnewline
51 & 272969 & 266980.003708567 & 5988.99629143345 \tabularnewline
52 & 273886 & 273210.074488279 & 675.925511720576 \tabularnewline
53 & 267353 & 269652.08039807 & -2299.08039806996 \tabularnewline
54 & 271916 & 267026.746233546 & 4889.25376645381 \tabularnewline
55 & 292633 & 294270.62135078 & -1637.62135077999 \tabularnewline
56 & 295804 & 296085.47805535 & -281.478055350261 \tabularnewline
57 & 293222 & 295492.745836653 & -2270.74583665321 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60986&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]277051[/C][C]278421.583027982[/C][C]-1370.58302798227[/C][/ROW]
[ROW][C]2[/C][C]277026[/C][C]275015.245418106[/C][C]2010.75458189406[/C][/ROW]
[ROW][C]3[/C][C]274960[/C][C]272166.082897993[/C][C]2793.91710200691[/C][/ROW]
[ROW][C]4[/C][C]270073[/C][C]272086.902656495[/C][C]-2013.90265649525[/C][/ROW]
[ROW][C]5[/C][C]267063[/C][C]263092.973668468[/C][C]3970.02633153218[/C][/ROW]
[ROW][C]6[/C][C]264916[/C][C]263698.069447314[/C][C]1217.93055268632[/C][/ROW]
[ROW][C]7[/C][C]287182[/C][C]284736.625249037[/C][C]2445.37475096334[/C][/ROW]
[ROW][C]8[/C][C]291109[/C][C]287942.828146544[/C][C]3166.17185345640[/C][/ROW]
[ROW][C]9[/C][C]292223[/C][C]288062.813832274[/C][C]4160.18616772568[/C][/ROW]
[ROW][C]10[/C][C]288109[/C][C]287112.778385088[/C][C]996.221614911926[/C][/ROW]
[ROW][C]11[/C][C]281400[/C][C]283472.438537732[/C][C]-2072.43853773232[/C][/ROW]
[ROW][C]12[/C][C]282579[/C][C]284833.679486428[/C][C]-2254.67948642805[/C][/ROW]
[ROW][C]13[/C][C]280113[/C][C]285836.782651036[/C][C]-5723.78265103592[/C][/ROW]
[ROW][C]14[/C][C]280331[/C][C]280871.234545195[/C][C]-540.234545194788[/C][/ROW]
[ROW][C]15[/C][C]276759[/C][C]278235.969106413[/C][C]-1476.96910641328[/C][/ROW]
[ROW][C]16[/C][C]275139[/C][C]276760.237960851[/C][C]-1621.23796085119[/C][/ROW]
[ROW][C]17[/C][C]274275[/C][C]270789.047910226[/C][C]3485.95208977426[/C][/ROW]
[ROW][C]18[/C][C]271234[/C][C]273409.396498257[/C][C]-2175.3964982567[/C][/ROW]
[ROW][C]19[/C][C]289725[/C][C]293632.892699912[/C][C]-3907.89269991223[/C][/ROW]
[ROW][C]20[/C][C]290649[/C][C]293327.956048206[/C][C]-2678.95604820578[/C][/ROW]
[ROW][C]21[/C][C]292223[/C][C]290633.461826443[/C][C]1589.53817355670[/C][/ROW]
[ROW][C]22[/C][C]278429[/C][C]281202.417554921[/C][C]-2773.41755492139[/C][/ROW]
[ROW][C]23[/C][C]269749[/C][C]268577.885840337[/C][C]1171.11415966330[/C][/ROW]
[ROW][C]24[/C][C]265784[/C][C]268041.601571776[/C][C]-2257.6015717765[/C][/ROW]
[ROW][C]25[/C][C]268957[/C][C]264255.000778001[/C][C]4701.99922199908[/C][/ROW]
[ROW][C]26[/C][C]264099[/C][C]264489.089711916[/C][C]-390.089711916333[/C][/ROW]
[ROW][C]27[/C][C]255121[/C][C]257180.359137456[/C][C]-2059.35913745561[/C][/ROW]
[ROW][C]28[/C][C]253276[/C][C]250650.002631836[/C][C]2625.99736816436[/C][/ROW]
[ROW][C]29[/C][C]245980[/C][C]244432.18698959[/C][C]1547.81301041018[/C][/ROW]
[ROW][C]30[/C][C]235295[/C][C]241079.171197116[/C][C]-5784.1711971162[/C][/ROW]
[ROW][C]31[/C][C]258479[/C][C]254160.707134188[/C][C]4318.29286581208[/C][/ROW]
[ROW][C]32[/C][C]260916[/C][C]258159.647724949[/C][C]2756.352275051[/C][/ROW]
[ROW][C]33[/C][C]254586[/C][C]256902.64800834[/C][C]-2316.64800834005[/C][/ROW]
[ROW][C]34[/C][C]250566[/C][C]249030.828733441[/C][C]1535.17126655924[/C][/ROW]
[ROW][C]35[/C][C]243345[/C][C]245425.817444121[/C][C]-2080.81744412143[/C][/ROW]
[ROW][C]36[/C][C]247028[/C][C]246312.347635495[/C][C]715.652364505387[/C][/ROW]
[ROW][C]37[/C][C]248464[/C][C]249636.718268067[/C][C]-1172.71826806723[/C][/ROW]
[ROW][C]38[/C][C]244962[/C][C]248311.457856964[/C][C]-3349.45785696365[/C][/ROW]
[ROW][C]39[/C][C]237003[/C][C]242249.585149571[/C][C]-5246.58514957147[/C][/ROW]
[ROW][C]40[/C][C]237008[/C][C]236674.782262539[/C][C]333.217737461498[/C][/ROW]
[ROW][C]41[/C][C]225477[/C][C]232181.711033647[/C][C]-6704.71103364666[/C][/ROW]
[ROW][C]42[/C][C]226762[/C][C]224909.616623767[/C][C]1852.38337623276[/C][/ROW]
[ROW][C]43[/C][C]247857[/C][C]249075.153566083[/C][C]-1218.15356608320[/C][/ROW]
[ROW][C]44[/C][C]248256[/C][C]251218.090024951[/C][C]-2962.09002495136[/C][/ROW]
[ROW][C]45[/C][C]246892[/C][C]248054.330496289[/C][C]-1162.33049628913[/C][/ROW]
[ROW][C]46[/C][C]245021[/C][C]244778.97532655[/C][C]242.024673450216[/C][/ROW]
[ROW][C]47[/C][C]246186[/C][C]243203.858177810[/C][C]2982.14182219046[/C][/ROW]
[ROW][C]48[/C][C]255688[/C][C]251891.371306301[/C][C]3796.62869369917[/C][/ROW]
[ROW][C]49[/C][C]264242[/C][C]260676.915274914[/C][C]3565.08472508635[/C][/ROW]
[ROW][C]50[/C][C]268270[/C][C]266000.972467819[/C][C]2269.02753218071[/C][/ROW]
[ROW][C]51[/C][C]272969[/C][C]266980.003708567[/C][C]5988.99629143345[/C][/ROW]
[ROW][C]52[/C][C]273886[/C][C]273210.074488279[/C][C]675.925511720576[/C][/ROW]
[ROW][C]53[/C][C]267353[/C][C]269652.08039807[/C][C]-2299.08039806996[/C][/ROW]
[ROW][C]54[/C][C]271916[/C][C]267026.746233546[/C][C]4889.25376645381[/C][/ROW]
[ROW][C]55[/C][C]292633[/C][C]294270.62135078[/C][C]-1637.62135077999[/C][/ROW]
[ROW][C]56[/C][C]295804[/C][C]296085.47805535[/C][C]-281.478055350261[/C][/ROW]
[ROW][C]57[/C][C]293222[/C][C]295492.745836653[/C][C]-2270.74583665321[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60986&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60986&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
1277051278421.583027982-1370.58302798227
2277026275015.2454181062010.75458189406
3274960272166.0828979932793.91710200691
4270073272086.902656495-2013.90265649525
5267063263092.9736684683970.02633153218
6264916263698.0694473141217.93055268632
7287182284736.6252490372445.37475096334
8291109287942.8281465443166.17185345640
9292223288062.8138322744160.18616772568
10288109287112.778385088996.221614911926
11281400283472.438537732-2072.43853773232
12282579284833.679486428-2254.67948642805
13280113285836.782651036-5723.78265103592
14280331280871.234545195-540.234545194788
15276759278235.969106413-1476.96910641328
16275139276760.237960851-1621.23796085119
17274275270789.0479102263485.95208977426
18271234273409.396498257-2175.3964982567
19289725293632.892699912-3907.89269991223
20290649293327.956048206-2678.95604820578
21292223290633.4618264431589.53817355670
22278429281202.417554921-2773.41755492139
23269749268577.8858403371171.11415966330
24265784268041.601571776-2257.6015717765
25268957264255.0007780014701.99922199908
26264099264489.089711916-390.089711916333
27255121257180.359137456-2059.35913745561
28253276250650.0026318362625.99736816436
29245980244432.186989591547.81301041018
30235295241079.171197116-5784.1711971162
31258479254160.7071341884318.29286581208
32260916258159.6477249492756.352275051
33254586256902.64800834-2316.64800834005
34250566249030.8287334411535.17126655924
35243345245425.817444121-2080.81744412143
36247028246312.347635495715.652364505387
37248464249636.718268067-1172.71826806723
38244962248311.457856964-3349.45785696365
39237003242249.585149571-5246.58514957147
40237008236674.782262539333.217737461498
41225477232181.711033647-6704.71103364666
42226762224909.6166237671852.38337623276
43247857249075.153566083-1218.15356608320
44248256251218.090024951-2962.09002495136
45246892248054.330496289-1162.33049628913
46245021244778.97532655242.024673450216
47246186243203.8581778102982.14182219046
48255688251891.3713063013796.62869369917
49264242260676.9152749143565.08472508635
50268270266000.9724678192269.02753218071
51272969266980.0037085675988.99629143345
52273886273210.074488279675.925511720576
53267353269652.08039807-2299.08039806996
54271916267026.7462335464889.25376645381
55292633294270.62135078-1637.62135077999
56295804296085.47805535-281.478055350261
57293222295492.745836653-2270.74583665321







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.08332540088306280.1666508017661260.916674599116937
200.0348487332411470.0696974664822940.965151266758853
210.01371490348469430.02742980696938860.986285096515306
220.004118160343506690.008236320687013380.995881839656493
230.007242740215815040.01448548043163010.992757259784185
240.01396802170119360.02793604340238720.986031978298806
250.01924456536184580.03848913072369160.980755434638154
260.01754811319902190.03509622639804390.982451886800978
270.04641648044425200.09283296088850390.953583519555748
280.02523525318689230.05047050637378460.974764746813108
290.04774268052302140.09548536104604270.952257319476979
300.1913333852153730.3826667704307460.808666614784627
310.4064934447862950.812986889572590.593506555213705
320.4416111102553080.8832222205106150.558388889744692
330.4953784923651080.9907569847302160.504621507634892
340.6165271677098340.7669456645803330.383472832290166
350.5153263436865950.969347312626810.484673656313405
360.5388523019726270.9222953960547450.461147698027373
370.605569615753710.788860768492580.39443038424629
380.9161089673228270.1677820653543470.0838910326771735

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0833254008830628 & 0.166650801766126 & 0.916674599116937 \tabularnewline
20 & 0.034848733241147 & 0.069697466482294 & 0.965151266758853 \tabularnewline
21 & 0.0137149034846943 & 0.0274298069693886 & 0.986285096515306 \tabularnewline
22 & 0.00411816034350669 & 0.00823632068701338 & 0.995881839656493 \tabularnewline
23 & 0.00724274021581504 & 0.0144854804316301 & 0.992757259784185 \tabularnewline
24 & 0.0139680217011936 & 0.0279360434023872 & 0.986031978298806 \tabularnewline
25 & 0.0192445653618458 & 0.0384891307236916 & 0.980755434638154 \tabularnewline
26 & 0.0175481131990219 & 0.0350962263980439 & 0.982451886800978 \tabularnewline
27 & 0.0464164804442520 & 0.0928329608885039 & 0.953583519555748 \tabularnewline
28 & 0.0252352531868923 & 0.0504705063737846 & 0.974764746813108 \tabularnewline
29 & 0.0477426805230214 & 0.0954853610460427 & 0.952257319476979 \tabularnewline
30 & 0.191333385215373 & 0.382666770430746 & 0.808666614784627 \tabularnewline
31 & 0.406493444786295 & 0.81298688957259 & 0.593506555213705 \tabularnewline
32 & 0.441611110255308 & 0.883222220510615 & 0.558388889744692 \tabularnewline
33 & 0.495378492365108 & 0.990756984730216 & 0.504621507634892 \tabularnewline
34 & 0.616527167709834 & 0.766945664580333 & 0.383472832290166 \tabularnewline
35 & 0.515326343686595 & 0.96934731262681 & 0.484673656313405 \tabularnewline
36 & 0.538852301972627 & 0.922295396054745 & 0.461147698027373 \tabularnewline
37 & 0.60556961575371 & 0.78886076849258 & 0.39443038424629 \tabularnewline
38 & 0.916108967322827 & 0.167782065354347 & 0.0838910326771735 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60986&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.0833254008830628[/C][C]0.166650801766126[/C][C]0.916674599116937[/C][/ROW]
[ROW][C]20[/C][C]0.034848733241147[/C][C]0.069697466482294[/C][C]0.965151266758853[/C][/ROW]
[ROW][C]21[/C][C]0.0137149034846943[/C][C]0.0274298069693886[/C][C]0.986285096515306[/C][/ROW]
[ROW][C]22[/C][C]0.00411816034350669[/C][C]0.00823632068701338[/C][C]0.995881839656493[/C][/ROW]
[ROW][C]23[/C][C]0.00724274021581504[/C][C]0.0144854804316301[/C][C]0.992757259784185[/C][/ROW]
[ROW][C]24[/C][C]0.0139680217011936[/C][C]0.0279360434023872[/C][C]0.986031978298806[/C][/ROW]
[ROW][C]25[/C][C]0.0192445653618458[/C][C]0.0384891307236916[/C][C]0.980755434638154[/C][/ROW]
[ROW][C]26[/C][C]0.0175481131990219[/C][C]0.0350962263980439[/C][C]0.982451886800978[/C][/ROW]
[ROW][C]27[/C][C]0.0464164804442520[/C][C]0.0928329608885039[/C][C]0.953583519555748[/C][/ROW]
[ROW][C]28[/C][C]0.0252352531868923[/C][C]0.0504705063737846[/C][C]0.974764746813108[/C][/ROW]
[ROW][C]29[/C][C]0.0477426805230214[/C][C]0.0954853610460427[/C][C]0.952257319476979[/C][/ROW]
[ROW][C]30[/C][C]0.191333385215373[/C][C]0.382666770430746[/C][C]0.808666614784627[/C][/ROW]
[ROW][C]31[/C][C]0.406493444786295[/C][C]0.81298688957259[/C][C]0.593506555213705[/C][/ROW]
[ROW][C]32[/C][C]0.441611110255308[/C][C]0.883222220510615[/C][C]0.558388889744692[/C][/ROW]
[ROW][C]33[/C][C]0.495378492365108[/C][C]0.990756984730216[/C][C]0.504621507634892[/C][/ROW]
[ROW][C]34[/C][C]0.616527167709834[/C][C]0.766945664580333[/C][C]0.383472832290166[/C][/ROW]
[ROW][C]35[/C][C]0.515326343686595[/C][C]0.96934731262681[/C][C]0.484673656313405[/C][/ROW]
[ROW][C]36[/C][C]0.538852301972627[/C][C]0.922295396054745[/C][C]0.461147698027373[/C][/ROW]
[ROW][C]37[/C][C]0.60556961575371[/C][C]0.78886076849258[/C][C]0.39443038424629[/C][/ROW]
[ROW][C]38[/C][C]0.916108967322827[/C][C]0.167782065354347[/C][C]0.0838910326771735[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60986&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.08332540088306280.1666508017661260.916674599116937
200.0348487332411470.0696974664822940.965151266758853
210.01371490348469430.02742980696938860.986285096515306
220.004118160343506690.008236320687013380.995881839656493
230.007242740215815040.01448548043163010.992757259784185
240.01396802170119360.02793604340238720.986031978298806
250.01924456536184580.03848913072369160.980755434638154
260.01754811319902190.03509622639804390.982451886800978
270.04641648044425200.09283296088850390.953583519555748
280.02523525318689230.05047050637378460.974764746813108
290.04774268052302140.09548536104604270.952257319476979
300.1913333852153730.3826667704307460.808666614784627
310.4064934447862950.812986889572590.593506555213705
320.4416111102553080.8832222205106150.558388889744692
330.4953784923651080.9907569847302160.504621507634892
340.6165271677098340.7669456645803330.383472832290166
350.5153263436865950.969347312626810.484673656313405
360.5388523019726270.9222953960547450.461147698027373
370.605569615753710.788860768492580.39443038424629
380.9161089673228270.1677820653543470.0838910326771735







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.05NOK
5% type I error level60.3NOK
10% type I error level100.5NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60986&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 level10.05NOK
5% type I error level60.3NOK
10% type I error level100.5NOK



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