Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 22 Nov 2007 07:13:05 -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/2007/Nov/22/t11957403833n4roox4yd8u5oa.htm/, Retrieved Thu, 02 May 2024 14:41:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=6009, Retrieved Thu, 02 May 2024 14:41:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsbridome
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [werkloosheid] [2007-11-22 14:13:05] [05eb25e9a99d8c3f4eb6a6fe65650e56] [Current]
Feedback Forum

Post a new message
Dataseries X:
511	0
492	0
492	0
493	0
481	0
462	0
457	0
442	0
439	0
488	0
521	0
501	0
485	0
464	0
460	0
467	0
460	0
448	0
443	0
436	0
431	0
484	0
510	0
513	0
503	0
471	0
471	0
476	0
475	0
470	0
461	0
455	0
456	0
517	0
525	0
523	0
519	0
509	0
512	0
519	0
517	0
510	0
509	0
501	1
507	1
569	1
580	1
578	1
565	1
547	1
555	1
562	1
561	1
555	1
544	1
537	1
543	1
594	1
611	1
613	1
611	1
594	1
595	1
591	1
589	1
584	1
573	1
567	1
569	1
621	1
629	1
628	1
612	1
595	1
597	1
593	1
590	1
580	1
574	1
573	1
573	1
620	1
626	1
620	1
588	1
566	1
557	1
561	1
549	1
532	1
526	1
511	1
499	1
555	1
565	1
542	1
527	1




Summary of compuational 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 compuational 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=6009&T=0

[TABLE]
[ROW][C]Summary of compuational 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=6009&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6009&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 compuational 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] = + 505.348670836591 + 80.5628616106333x[t] -11.5396586236353M1[t] -23.2538014363072M2[t] -23.2963855225437M3[t] -20.5889696087800M4[t] -25.7565536950163M5[t] -36.0491377812527M6[t] -42.9667218674891M7[t] -61.3296636550546M8[t] -62.1222477412909M9[t] -8.41483182752728M10[t] + 6.29258408623636M11[t] + 0.167584086236352t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  505.348670836591 +  80.5628616106333x[t] -11.5396586236353M1[t] -23.2538014363072M2[t] -23.2963855225437M3[t] -20.5889696087800M4[t] -25.7565536950163M5[t] -36.0491377812527M6[t] -42.9667218674891M7[t] -61.3296636550546M8[t] -62.1222477412909M9[t] -8.41483182752728M10[t] +  6.29258408623636M11[t] +  0.167584086236352t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=6009&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  505.348670836591 +  80.5628616106333x[t] -11.5396586236353M1[t] -23.2538014363072M2[t] -23.2963855225437M3[t] -20.5889696087800M4[t] -25.7565536950163M5[t] -36.0491377812527M6[t] -42.9667218674891M7[t] -61.3296636550546M8[t] -62.1222477412909M9[t] -8.41483182752728M10[t] +  6.29258408623636M11[t] +  0.167584086236352t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=6009&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6009&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] = + 505.348670836591 + 80.5628616106333x[t] -11.5396586236353M1[t] -23.2538014363072M2[t] -23.2963855225437M3[t] -20.5889696087800M4[t] -25.7565536950163M5[t] -36.0491377812527M6[t] -42.9667218674891M7[t] -61.3296636550546M8[t] -62.1222477412909M9[t] -8.41483182752728M10[t] + 6.29258408623636M11[t] + 0.167584086236352t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)505.3486708365919.89829751.054100
x80.56286161063339.6938558.310700
M1-11.539658623635311.666412-0.98910.3254720.162736
M2-23.253801436307212.030823-1.93290.0566650.028332
M3-23.296385522543712.022411-1.93770.0560550.028027
M4-20.588969608780012.016448-1.71340.0903720.045186
M5-25.756553695016312.012939-2.14410.0349530.017476
M6-36.049137781252712.011884-3.00110.0035520.001776
M7-42.966721867489112.013286-3.57660.0005840.000292
M8-61.329663655054612.015659-5.10412e-061e-06
M9-62.122247741290912.007063-5.17382e-061e-06
M10-8.4148318275272812.00092-0.70120.4851510.242575
M116.2925840862363611.9972320.52450.6013270.300663
t0.1675840862363520.1717550.97570.3320420.166021

\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) & 505.348670836591 & 9.898297 & 51.0541 & 0 & 0 \tabularnewline
x & 80.5628616106333 & 9.693855 & 8.3107 & 0 & 0 \tabularnewline
M1 & -11.5396586236353 & 11.666412 & -0.9891 & 0.325472 & 0.162736 \tabularnewline
M2 & -23.2538014363072 & 12.030823 & -1.9329 & 0.056665 & 0.028332 \tabularnewline
M3 & -23.2963855225437 & 12.022411 & -1.9377 & 0.056055 & 0.028027 \tabularnewline
M4 & -20.5889696087800 & 12.016448 & -1.7134 & 0.090372 & 0.045186 \tabularnewline
M5 & -25.7565536950163 & 12.012939 & -2.1441 & 0.034953 & 0.017476 \tabularnewline
M6 & -36.0491377812527 & 12.011884 & -3.0011 & 0.003552 & 0.001776 \tabularnewline
M7 & -42.9667218674891 & 12.013286 & -3.5766 & 0.000584 & 0.000292 \tabularnewline
M8 & -61.3296636550546 & 12.015659 & -5.1041 & 2e-06 & 1e-06 \tabularnewline
M9 & -62.1222477412909 & 12.007063 & -5.1738 & 2e-06 & 1e-06 \tabularnewline
M10 & -8.41483182752728 & 12.00092 & -0.7012 & 0.485151 & 0.242575 \tabularnewline
M11 & 6.29258408623636 & 11.997232 & 0.5245 & 0.601327 & 0.300663 \tabularnewline
t & 0.167584086236352 & 0.171755 & 0.9757 & 0.332042 & 0.166021 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=6009&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]505.348670836591[/C][C]9.898297[/C][C]51.0541[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]80.5628616106333[/C][C]9.693855[/C][C]8.3107[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-11.5396586236353[/C][C]11.666412[/C][C]-0.9891[/C][C]0.325472[/C][C]0.162736[/C][/ROW]
[ROW][C]M2[/C][C]-23.2538014363072[/C][C]12.030823[/C][C]-1.9329[/C][C]0.056665[/C][C]0.028332[/C][/ROW]
[ROW][C]M3[/C][C]-23.2963855225437[/C][C]12.022411[/C][C]-1.9377[/C][C]0.056055[/C][C]0.028027[/C][/ROW]
[ROW][C]M4[/C][C]-20.5889696087800[/C][C]12.016448[/C][C]-1.7134[/C][C]0.090372[/C][C]0.045186[/C][/ROW]
[ROW][C]M5[/C][C]-25.7565536950163[/C][C]12.012939[/C][C]-2.1441[/C][C]0.034953[/C][C]0.017476[/C][/ROW]
[ROW][C]M6[/C][C]-36.0491377812527[/C][C]12.011884[/C][C]-3.0011[/C][C]0.003552[/C][C]0.001776[/C][/ROW]
[ROW][C]M7[/C][C]-42.9667218674891[/C][C]12.013286[/C][C]-3.5766[/C][C]0.000584[/C][C]0.000292[/C][/ROW]
[ROW][C]M8[/C][C]-61.3296636550546[/C][C]12.015659[/C][C]-5.1041[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M9[/C][C]-62.1222477412909[/C][C]12.007063[/C][C]-5.1738[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M10[/C][C]-8.41483182752728[/C][C]12.00092[/C][C]-0.7012[/C][C]0.485151[/C][C]0.242575[/C][/ROW]
[ROW][C]M11[/C][C]6.29258408623636[/C][C]11.997232[/C][C]0.5245[/C][C]0.601327[/C][C]0.300663[/C][/ROW]
[ROW][C]t[/C][C]0.167584086236352[/C][C]0.171755[/C][C]0.9757[/C][C]0.332042[/C][C]0.166021[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=6009&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6009&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)505.3486708365919.89829751.054100
x80.56286161063339.6938558.310700
M1-11.539658623635311.666412-0.98910.3254720.162736
M2-23.253801436307212.030823-1.93290.0566650.028332
M3-23.296385522543712.022411-1.93770.0560550.028027
M4-20.588969608780012.016448-1.71340.0903720.045186
M5-25.756553695016312.012939-2.14410.0349530.017476
M6-36.049137781252712.011884-3.00110.0035520.001776
M7-42.966721867489112.013286-3.57660.0005840.000292
M8-61.329663655054612.015659-5.10412e-061e-06
M9-62.122247741290912.007063-5.17382e-061e-06
M10-8.4148318275272812.00092-0.70120.4851510.242575
M116.2925840862363611.9972320.52450.6013270.300663
t0.1675840862363520.1717550.97570.3320420.166021







Multiple Linear Regression - Regression Statistics
Multiple R0.91089873882423
R-squared0.829736512391574
Adjusted R-squared0.803068737223989
F-TEST (value)31.1138258507644
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23.9920047624659
Sum Squared Residuals47776.1522793415

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.91089873882423 \tabularnewline
R-squared & 0.829736512391574 \tabularnewline
Adjusted R-squared & 0.803068737223989 \tabularnewline
F-TEST (value) & 31.1138258507644 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 83 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 23.9920047624659 \tabularnewline
Sum Squared Residuals & 47776.1522793415 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=6009&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.91089873882423[/C][/ROW]
[ROW][C]R-squared[/C][C]0.829736512391574[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.803068737223989[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]31.1138258507644[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]83[/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]23.9920047624659[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]47776.1522793415[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=6009&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6009&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.91089873882423
R-squared0.829736512391574
Adjusted R-squared0.803068737223989
F-TEST (value)31.1138258507644
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23.9920047624659
Sum Squared Residuals47776.1522793415







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1511493.97659629919117.0234037008088
2492482.4300375727569.56996242724384
3492482.5550375727569.4449624272435
4493485.4300375727577.56996242724347
5481480.4300375727560.569962427243631
6462470.305037572757-8.30503757275661
7457463.555037572757-6.55503757275662
8442445.359679871427-3.35967987142745
9439444.734679871427-5.73467987142732
10488498.609679871427-10.6096798714273
11521513.4846798714277.51532012857262
12501507.359679871427-6.35967987142736
13485495.987605334028-10.9876053340285
14464484.441046607593-20.4410466075928
15460484.566046607593-24.5660466075928
16467487.441046607593-20.4410466075928
17460482.441046607593-22.4410466075928
18448472.316046607593-24.3160466075928
19443465.566046607593-22.5660466075928
20436447.370688906264-11.3706889062636
21431446.745688906264-15.7456889062636
22484500.620688906264-16.6206889062636
23510515.495688906264-5.4956889062636
24513509.3706889062643.62931109373641
25503497.9986143688655.00138563113531
26471486.452055642429-15.4520556424290
27471486.577055642429-15.577055642429
28476489.452055642429-13.4520556424290
29475484.452055642429-9.452055642429
30470474.327055642429-4.32705564242898
31461467.577055642429-6.57705564242899
32455449.38169794115.6183020589002
33456448.75669794117.24330205890018
34517502.631697941114.3683020589002
35525517.50669794117.49330205890017
36523511.381697941111.6183020589002
37519500.00962340370118.9903765962991
38509488.46306467726520.5369353227347
39512488.58806467726523.4119353227348
40519491.46306467726527.5369353227348
41517486.46306467726530.5369353227348
42510476.33806467726533.6619353227348
43509469.58806467726539.4119353227348
44501531.955568586569-30.9555685865694
45507531.330568586569-24.3305685865694
46569585.205568586569-16.2055685865694
47580600.080568586569-20.0805685865694
48578593.955568586569-15.9555685865694
49565582.58349404917-17.5834940491705
50547571.036935322735-24.0369353227348
51555571.161935322735-16.1619353227348
52562574.036935322735-12.0369353227348
53561569.036935322735-8.03693532273481
54555558.911935322735-3.91193532273477
55544552.161935322735-8.16193532273478
56537533.9665776214063.0334223785944
57543533.3415776214069.65842237859439
58594587.2165776214066.78342237859437
59611602.0915776214068.90842237859439
60613595.96657762140617.0334223785944
61611584.59450308400726.4054969159933
62594573.04794435757120.9520556424289
63595573.17294435757121.8270556424290
64591576.04794435757114.952055642429
65589571.04794435757117.9520556424290
66584560.92294435757123.077055642429
67573554.17294435757118.827055642429
68567535.97758665624231.0224133437582
69569535.35258665624233.6474133437582
70621589.22758665624231.7724133437581
71629604.10258665624224.8974133437582
72628597.97758665624230.0224133437582
73612586.60551211884325.3944878811571
74595575.05895339240719.9410466075927
75597575.18395339240721.8160466075928
76593578.05895339240714.9410466075928
77590573.05895339240716.9410466075927
78580562.93395339240717.0660466075928
79574556.18395339240717.8160466075928
80573537.98859569107835.0114043089220
81573537.36359569107835.6364043089219
82620591.23859569107828.7614043089219
83626606.11359569107819.8864043089219
84620599.98859569107820.0114043089219
85588588.616521153679-0.616521153679177
86566577.069962427243-11.0699624272435
87557577.194962427243-20.1949624272435
88561580.069962427243-19.0699624272435
89549575.069962427243-26.0699624272435
90532564.944962427243-32.9449624272434
91526558.194962427243-32.1949624272435
92511539.999604725914-28.9996047259143
93499539.374604725914-40.3746047259143
94555593.249604725914-38.2496047259143
95565608.124604725914-43.1246047259143
96542601.999604725914-59.9996047259143
97527590.627530188515-63.6275301885154

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 511 & 493.976596299191 & 17.0234037008088 \tabularnewline
2 & 492 & 482.430037572756 & 9.56996242724384 \tabularnewline
3 & 492 & 482.555037572756 & 9.4449624272435 \tabularnewline
4 & 493 & 485.430037572757 & 7.56996242724347 \tabularnewline
5 & 481 & 480.430037572756 & 0.569962427243631 \tabularnewline
6 & 462 & 470.305037572757 & -8.30503757275661 \tabularnewline
7 & 457 & 463.555037572757 & -6.55503757275662 \tabularnewline
8 & 442 & 445.359679871427 & -3.35967987142745 \tabularnewline
9 & 439 & 444.734679871427 & -5.73467987142732 \tabularnewline
10 & 488 & 498.609679871427 & -10.6096798714273 \tabularnewline
11 & 521 & 513.484679871427 & 7.51532012857262 \tabularnewline
12 & 501 & 507.359679871427 & -6.35967987142736 \tabularnewline
13 & 485 & 495.987605334028 & -10.9876053340285 \tabularnewline
14 & 464 & 484.441046607593 & -20.4410466075928 \tabularnewline
15 & 460 & 484.566046607593 & -24.5660466075928 \tabularnewline
16 & 467 & 487.441046607593 & -20.4410466075928 \tabularnewline
17 & 460 & 482.441046607593 & -22.4410466075928 \tabularnewline
18 & 448 & 472.316046607593 & -24.3160466075928 \tabularnewline
19 & 443 & 465.566046607593 & -22.5660466075928 \tabularnewline
20 & 436 & 447.370688906264 & -11.3706889062636 \tabularnewline
21 & 431 & 446.745688906264 & -15.7456889062636 \tabularnewline
22 & 484 & 500.620688906264 & -16.6206889062636 \tabularnewline
23 & 510 & 515.495688906264 & -5.4956889062636 \tabularnewline
24 & 513 & 509.370688906264 & 3.62931109373641 \tabularnewline
25 & 503 & 497.998614368865 & 5.00138563113531 \tabularnewline
26 & 471 & 486.452055642429 & -15.4520556424290 \tabularnewline
27 & 471 & 486.577055642429 & -15.577055642429 \tabularnewline
28 & 476 & 489.452055642429 & -13.4520556424290 \tabularnewline
29 & 475 & 484.452055642429 & -9.452055642429 \tabularnewline
30 & 470 & 474.327055642429 & -4.32705564242898 \tabularnewline
31 & 461 & 467.577055642429 & -6.57705564242899 \tabularnewline
32 & 455 & 449.3816979411 & 5.6183020589002 \tabularnewline
33 & 456 & 448.7566979411 & 7.24330205890018 \tabularnewline
34 & 517 & 502.6316979411 & 14.3683020589002 \tabularnewline
35 & 525 & 517.5066979411 & 7.49330205890017 \tabularnewline
36 & 523 & 511.3816979411 & 11.6183020589002 \tabularnewline
37 & 519 & 500.009623403701 & 18.9903765962991 \tabularnewline
38 & 509 & 488.463064677265 & 20.5369353227347 \tabularnewline
39 & 512 & 488.588064677265 & 23.4119353227348 \tabularnewline
40 & 519 & 491.463064677265 & 27.5369353227348 \tabularnewline
41 & 517 & 486.463064677265 & 30.5369353227348 \tabularnewline
42 & 510 & 476.338064677265 & 33.6619353227348 \tabularnewline
43 & 509 & 469.588064677265 & 39.4119353227348 \tabularnewline
44 & 501 & 531.955568586569 & -30.9555685865694 \tabularnewline
45 & 507 & 531.330568586569 & -24.3305685865694 \tabularnewline
46 & 569 & 585.205568586569 & -16.2055685865694 \tabularnewline
47 & 580 & 600.080568586569 & -20.0805685865694 \tabularnewline
48 & 578 & 593.955568586569 & -15.9555685865694 \tabularnewline
49 & 565 & 582.58349404917 & -17.5834940491705 \tabularnewline
50 & 547 & 571.036935322735 & -24.0369353227348 \tabularnewline
51 & 555 & 571.161935322735 & -16.1619353227348 \tabularnewline
52 & 562 & 574.036935322735 & -12.0369353227348 \tabularnewline
53 & 561 & 569.036935322735 & -8.03693532273481 \tabularnewline
54 & 555 & 558.911935322735 & -3.91193532273477 \tabularnewline
55 & 544 & 552.161935322735 & -8.16193532273478 \tabularnewline
56 & 537 & 533.966577621406 & 3.0334223785944 \tabularnewline
57 & 543 & 533.341577621406 & 9.65842237859439 \tabularnewline
58 & 594 & 587.216577621406 & 6.78342237859437 \tabularnewline
59 & 611 & 602.091577621406 & 8.90842237859439 \tabularnewline
60 & 613 & 595.966577621406 & 17.0334223785944 \tabularnewline
61 & 611 & 584.594503084007 & 26.4054969159933 \tabularnewline
62 & 594 & 573.047944357571 & 20.9520556424289 \tabularnewline
63 & 595 & 573.172944357571 & 21.8270556424290 \tabularnewline
64 & 591 & 576.047944357571 & 14.952055642429 \tabularnewline
65 & 589 & 571.047944357571 & 17.9520556424290 \tabularnewline
66 & 584 & 560.922944357571 & 23.077055642429 \tabularnewline
67 & 573 & 554.172944357571 & 18.827055642429 \tabularnewline
68 & 567 & 535.977586656242 & 31.0224133437582 \tabularnewline
69 & 569 & 535.352586656242 & 33.6474133437582 \tabularnewline
70 & 621 & 589.227586656242 & 31.7724133437581 \tabularnewline
71 & 629 & 604.102586656242 & 24.8974133437582 \tabularnewline
72 & 628 & 597.977586656242 & 30.0224133437582 \tabularnewline
73 & 612 & 586.605512118843 & 25.3944878811571 \tabularnewline
74 & 595 & 575.058953392407 & 19.9410466075927 \tabularnewline
75 & 597 & 575.183953392407 & 21.8160466075928 \tabularnewline
76 & 593 & 578.058953392407 & 14.9410466075928 \tabularnewline
77 & 590 & 573.058953392407 & 16.9410466075927 \tabularnewline
78 & 580 & 562.933953392407 & 17.0660466075928 \tabularnewline
79 & 574 & 556.183953392407 & 17.8160466075928 \tabularnewline
80 & 573 & 537.988595691078 & 35.0114043089220 \tabularnewline
81 & 573 & 537.363595691078 & 35.6364043089219 \tabularnewline
82 & 620 & 591.238595691078 & 28.7614043089219 \tabularnewline
83 & 626 & 606.113595691078 & 19.8864043089219 \tabularnewline
84 & 620 & 599.988595691078 & 20.0114043089219 \tabularnewline
85 & 588 & 588.616521153679 & -0.616521153679177 \tabularnewline
86 & 566 & 577.069962427243 & -11.0699624272435 \tabularnewline
87 & 557 & 577.194962427243 & -20.1949624272435 \tabularnewline
88 & 561 & 580.069962427243 & -19.0699624272435 \tabularnewline
89 & 549 & 575.069962427243 & -26.0699624272435 \tabularnewline
90 & 532 & 564.944962427243 & -32.9449624272434 \tabularnewline
91 & 526 & 558.194962427243 & -32.1949624272435 \tabularnewline
92 & 511 & 539.999604725914 & -28.9996047259143 \tabularnewline
93 & 499 & 539.374604725914 & -40.3746047259143 \tabularnewline
94 & 555 & 593.249604725914 & -38.2496047259143 \tabularnewline
95 & 565 & 608.124604725914 & -43.1246047259143 \tabularnewline
96 & 542 & 601.999604725914 & -59.9996047259143 \tabularnewline
97 & 527 & 590.627530188515 & -63.6275301885154 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=6009&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]511[/C][C]493.976596299191[/C][C]17.0234037008088[/C][/ROW]
[ROW][C]2[/C][C]492[/C][C]482.430037572756[/C][C]9.56996242724384[/C][/ROW]
[ROW][C]3[/C][C]492[/C][C]482.555037572756[/C][C]9.4449624272435[/C][/ROW]
[ROW][C]4[/C][C]493[/C][C]485.430037572757[/C][C]7.56996242724347[/C][/ROW]
[ROW][C]5[/C][C]481[/C][C]480.430037572756[/C][C]0.569962427243631[/C][/ROW]
[ROW][C]6[/C][C]462[/C][C]470.305037572757[/C][C]-8.30503757275661[/C][/ROW]
[ROW][C]7[/C][C]457[/C][C]463.555037572757[/C][C]-6.55503757275662[/C][/ROW]
[ROW][C]8[/C][C]442[/C][C]445.359679871427[/C][C]-3.35967987142745[/C][/ROW]
[ROW][C]9[/C][C]439[/C][C]444.734679871427[/C][C]-5.73467987142732[/C][/ROW]
[ROW][C]10[/C][C]488[/C][C]498.609679871427[/C][C]-10.6096798714273[/C][/ROW]
[ROW][C]11[/C][C]521[/C][C]513.484679871427[/C][C]7.51532012857262[/C][/ROW]
[ROW][C]12[/C][C]501[/C][C]507.359679871427[/C][C]-6.35967987142736[/C][/ROW]
[ROW][C]13[/C][C]485[/C][C]495.987605334028[/C][C]-10.9876053340285[/C][/ROW]
[ROW][C]14[/C][C]464[/C][C]484.441046607593[/C][C]-20.4410466075928[/C][/ROW]
[ROW][C]15[/C][C]460[/C][C]484.566046607593[/C][C]-24.5660466075928[/C][/ROW]
[ROW][C]16[/C][C]467[/C][C]487.441046607593[/C][C]-20.4410466075928[/C][/ROW]
[ROW][C]17[/C][C]460[/C][C]482.441046607593[/C][C]-22.4410466075928[/C][/ROW]
[ROW][C]18[/C][C]448[/C][C]472.316046607593[/C][C]-24.3160466075928[/C][/ROW]
[ROW][C]19[/C][C]443[/C][C]465.566046607593[/C][C]-22.5660466075928[/C][/ROW]
[ROW][C]20[/C][C]436[/C][C]447.370688906264[/C][C]-11.3706889062636[/C][/ROW]
[ROW][C]21[/C][C]431[/C][C]446.745688906264[/C][C]-15.7456889062636[/C][/ROW]
[ROW][C]22[/C][C]484[/C][C]500.620688906264[/C][C]-16.6206889062636[/C][/ROW]
[ROW][C]23[/C][C]510[/C][C]515.495688906264[/C][C]-5.4956889062636[/C][/ROW]
[ROW][C]24[/C][C]513[/C][C]509.370688906264[/C][C]3.62931109373641[/C][/ROW]
[ROW][C]25[/C][C]503[/C][C]497.998614368865[/C][C]5.00138563113531[/C][/ROW]
[ROW][C]26[/C][C]471[/C][C]486.452055642429[/C][C]-15.4520556424290[/C][/ROW]
[ROW][C]27[/C][C]471[/C][C]486.577055642429[/C][C]-15.577055642429[/C][/ROW]
[ROW][C]28[/C][C]476[/C][C]489.452055642429[/C][C]-13.4520556424290[/C][/ROW]
[ROW][C]29[/C][C]475[/C][C]484.452055642429[/C][C]-9.452055642429[/C][/ROW]
[ROW][C]30[/C][C]470[/C][C]474.327055642429[/C][C]-4.32705564242898[/C][/ROW]
[ROW][C]31[/C][C]461[/C][C]467.577055642429[/C][C]-6.57705564242899[/C][/ROW]
[ROW][C]32[/C][C]455[/C][C]449.3816979411[/C][C]5.6183020589002[/C][/ROW]
[ROW][C]33[/C][C]456[/C][C]448.7566979411[/C][C]7.24330205890018[/C][/ROW]
[ROW][C]34[/C][C]517[/C][C]502.6316979411[/C][C]14.3683020589002[/C][/ROW]
[ROW][C]35[/C][C]525[/C][C]517.5066979411[/C][C]7.49330205890017[/C][/ROW]
[ROW][C]36[/C][C]523[/C][C]511.3816979411[/C][C]11.6183020589002[/C][/ROW]
[ROW][C]37[/C][C]519[/C][C]500.009623403701[/C][C]18.9903765962991[/C][/ROW]
[ROW][C]38[/C][C]509[/C][C]488.463064677265[/C][C]20.5369353227347[/C][/ROW]
[ROW][C]39[/C][C]512[/C][C]488.588064677265[/C][C]23.4119353227348[/C][/ROW]
[ROW][C]40[/C][C]519[/C][C]491.463064677265[/C][C]27.5369353227348[/C][/ROW]
[ROW][C]41[/C][C]517[/C][C]486.463064677265[/C][C]30.5369353227348[/C][/ROW]
[ROW][C]42[/C][C]510[/C][C]476.338064677265[/C][C]33.6619353227348[/C][/ROW]
[ROW][C]43[/C][C]509[/C][C]469.588064677265[/C][C]39.4119353227348[/C][/ROW]
[ROW][C]44[/C][C]501[/C][C]531.955568586569[/C][C]-30.9555685865694[/C][/ROW]
[ROW][C]45[/C][C]507[/C][C]531.330568586569[/C][C]-24.3305685865694[/C][/ROW]
[ROW][C]46[/C][C]569[/C][C]585.205568586569[/C][C]-16.2055685865694[/C][/ROW]
[ROW][C]47[/C][C]580[/C][C]600.080568586569[/C][C]-20.0805685865694[/C][/ROW]
[ROW][C]48[/C][C]578[/C][C]593.955568586569[/C][C]-15.9555685865694[/C][/ROW]
[ROW][C]49[/C][C]565[/C][C]582.58349404917[/C][C]-17.5834940491705[/C][/ROW]
[ROW][C]50[/C][C]547[/C][C]571.036935322735[/C][C]-24.0369353227348[/C][/ROW]
[ROW][C]51[/C][C]555[/C][C]571.161935322735[/C][C]-16.1619353227348[/C][/ROW]
[ROW][C]52[/C][C]562[/C][C]574.036935322735[/C][C]-12.0369353227348[/C][/ROW]
[ROW][C]53[/C][C]561[/C][C]569.036935322735[/C][C]-8.03693532273481[/C][/ROW]
[ROW][C]54[/C][C]555[/C][C]558.911935322735[/C][C]-3.91193532273477[/C][/ROW]
[ROW][C]55[/C][C]544[/C][C]552.161935322735[/C][C]-8.16193532273478[/C][/ROW]
[ROW][C]56[/C][C]537[/C][C]533.966577621406[/C][C]3.0334223785944[/C][/ROW]
[ROW][C]57[/C][C]543[/C][C]533.341577621406[/C][C]9.65842237859439[/C][/ROW]
[ROW][C]58[/C][C]594[/C][C]587.216577621406[/C][C]6.78342237859437[/C][/ROW]
[ROW][C]59[/C][C]611[/C][C]602.091577621406[/C][C]8.90842237859439[/C][/ROW]
[ROW][C]60[/C][C]613[/C][C]595.966577621406[/C][C]17.0334223785944[/C][/ROW]
[ROW][C]61[/C][C]611[/C][C]584.594503084007[/C][C]26.4054969159933[/C][/ROW]
[ROW][C]62[/C][C]594[/C][C]573.047944357571[/C][C]20.9520556424289[/C][/ROW]
[ROW][C]63[/C][C]595[/C][C]573.172944357571[/C][C]21.8270556424290[/C][/ROW]
[ROW][C]64[/C][C]591[/C][C]576.047944357571[/C][C]14.952055642429[/C][/ROW]
[ROW][C]65[/C][C]589[/C][C]571.047944357571[/C][C]17.9520556424290[/C][/ROW]
[ROW][C]66[/C][C]584[/C][C]560.922944357571[/C][C]23.077055642429[/C][/ROW]
[ROW][C]67[/C][C]573[/C][C]554.172944357571[/C][C]18.827055642429[/C][/ROW]
[ROW][C]68[/C][C]567[/C][C]535.977586656242[/C][C]31.0224133437582[/C][/ROW]
[ROW][C]69[/C][C]569[/C][C]535.352586656242[/C][C]33.6474133437582[/C][/ROW]
[ROW][C]70[/C][C]621[/C][C]589.227586656242[/C][C]31.7724133437581[/C][/ROW]
[ROW][C]71[/C][C]629[/C][C]604.102586656242[/C][C]24.8974133437582[/C][/ROW]
[ROW][C]72[/C][C]628[/C][C]597.977586656242[/C][C]30.0224133437582[/C][/ROW]
[ROW][C]73[/C][C]612[/C][C]586.605512118843[/C][C]25.3944878811571[/C][/ROW]
[ROW][C]74[/C][C]595[/C][C]575.058953392407[/C][C]19.9410466075927[/C][/ROW]
[ROW][C]75[/C][C]597[/C][C]575.183953392407[/C][C]21.8160466075928[/C][/ROW]
[ROW][C]76[/C][C]593[/C][C]578.058953392407[/C][C]14.9410466075928[/C][/ROW]
[ROW][C]77[/C][C]590[/C][C]573.058953392407[/C][C]16.9410466075927[/C][/ROW]
[ROW][C]78[/C][C]580[/C][C]562.933953392407[/C][C]17.0660466075928[/C][/ROW]
[ROW][C]79[/C][C]574[/C][C]556.183953392407[/C][C]17.8160466075928[/C][/ROW]
[ROW][C]80[/C][C]573[/C][C]537.988595691078[/C][C]35.0114043089220[/C][/ROW]
[ROW][C]81[/C][C]573[/C][C]537.363595691078[/C][C]35.6364043089219[/C][/ROW]
[ROW][C]82[/C][C]620[/C][C]591.238595691078[/C][C]28.7614043089219[/C][/ROW]
[ROW][C]83[/C][C]626[/C][C]606.113595691078[/C][C]19.8864043089219[/C][/ROW]
[ROW][C]84[/C][C]620[/C][C]599.988595691078[/C][C]20.0114043089219[/C][/ROW]
[ROW][C]85[/C][C]588[/C][C]588.616521153679[/C][C]-0.616521153679177[/C][/ROW]
[ROW][C]86[/C][C]566[/C][C]577.069962427243[/C][C]-11.0699624272435[/C][/ROW]
[ROW][C]87[/C][C]557[/C][C]577.194962427243[/C][C]-20.1949624272435[/C][/ROW]
[ROW][C]88[/C][C]561[/C][C]580.069962427243[/C][C]-19.0699624272435[/C][/ROW]
[ROW][C]89[/C][C]549[/C][C]575.069962427243[/C][C]-26.0699624272435[/C][/ROW]
[ROW][C]90[/C][C]532[/C][C]564.944962427243[/C][C]-32.9449624272434[/C][/ROW]
[ROW][C]91[/C][C]526[/C][C]558.194962427243[/C][C]-32.1949624272435[/C][/ROW]
[ROW][C]92[/C][C]511[/C][C]539.999604725914[/C][C]-28.9996047259143[/C][/ROW]
[ROW][C]93[/C][C]499[/C][C]539.374604725914[/C][C]-40.3746047259143[/C][/ROW]
[ROW][C]94[/C][C]555[/C][C]593.249604725914[/C][C]-38.2496047259143[/C][/ROW]
[ROW][C]95[/C][C]565[/C][C]608.124604725914[/C][C]-43.1246047259143[/C][/ROW]
[ROW][C]96[/C][C]542[/C][C]601.999604725914[/C][C]-59.9996047259143[/C][/ROW]
[ROW][C]97[/C][C]527[/C][C]590.627530188515[/C][C]-63.6275301885154[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=6009&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6009&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
1511493.97659629919117.0234037008088
2492482.4300375727569.56996242724384
3492482.5550375727569.4449624272435
4493485.4300375727577.56996242724347
5481480.4300375727560.569962427243631
6462470.305037572757-8.30503757275661
7457463.555037572757-6.55503757275662
8442445.359679871427-3.35967987142745
9439444.734679871427-5.73467987142732
10488498.609679871427-10.6096798714273
11521513.4846798714277.51532012857262
12501507.359679871427-6.35967987142736
13485495.987605334028-10.9876053340285
14464484.441046607593-20.4410466075928
15460484.566046607593-24.5660466075928
16467487.441046607593-20.4410466075928
17460482.441046607593-22.4410466075928
18448472.316046607593-24.3160466075928
19443465.566046607593-22.5660466075928
20436447.370688906264-11.3706889062636
21431446.745688906264-15.7456889062636
22484500.620688906264-16.6206889062636
23510515.495688906264-5.4956889062636
24513509.3706889062643.62931109373641
25503497.9986143688655.00138563113531
26471486.452055642429-15.4520556424290
27471486.577055642429-15.577055642429
28476489.452055642429-13.4520556424290
29475484.452055642429-9.452055642429
30470474.327055642429-4.32705564242898
31461467.577055642429-6.57705564242899
32455449.38169794115.6183020589002
33456448.75669794117.24330205890018
34517502.631697941114.3683020589002
35525517.50669794117.49330205890017
36523511.381697941111.6183020589002
37519500.00962340370118.9903765962991
38509488.46306467726520.5369353227347
39512488.58806467726523.4119353227348
40519491.46306467726527.5369353227348
41517486.46306467726530.5369353227348
42510476.33806467726533.6619353227348
43509469.58806467726539.4119353227348
44501531.955568586569-30.9555685865694
45507531.330568586569-24.3305685865694
46569585.205568586569-16.2055685865694
47580600.080568586569-20.0805685865694
48578593.955568586569-15.9555685865694
49565582.58349404917-17.5834940491705
50547571.036935322735-24.0369353227348
51555571.161935322735-16.1619353227348
52562574.036935322735-12.0369353227348
53561569.036935322735-8.03693532273481
54555558.911935322735-3.91193532273477
55544552.161935322735-8.16193532273478
56537533.9665776214063.0334223785944
57543533.3415776214069.65842237859439
58594587.2165776214066.78342237859437
59611602.0915776214068.90842237859439
60613595.96657762140617.0334223785944
61611584.59450308400726.4054969159933
62594573.04794435757120.9520556424289
63595573.17294435757121.8270556424290
64591576.04794435757114.952055642429
65589571.04794435757117.9520556424290
66584560.92294435757123.077055642429
67573554.17294435757118.827055642429
68567535.97758665624231.0224133437582
69569535.35258665624233.6474133437582
70621589.22758665624231.7724133437581
71629604.10258665624224.8974133437582
72628597.97758665624230.0224133437582
73612586.60551211884325.3944878811571
74595575.05895339240719.9410466075927
75597575.18395339240721.8160466075928
76593578.05895339240714.9410466075928
77590573.05895339240716.9410466075927
78580562.93395339240717.0660466075928
79574556.18395339240717.8160466075928
80573537.98859569107835.0114043089220
81573537.36359569107835.6364043089219
82620591.23859569107828.7614043089219
83626606.11359569107819.8864043089219
84620599.98859569107820.0114043089219
85588588.616521153679-0.616521153679177
86566577.069962427243-11.0699624272435
87557577.194962427243-20.1949624272435
88561580.069962427243-19.0699624272435
89549575.069962427243-26.0699624272435
90532564.944962427243-32.9449624272434
91526558.194962427243-32.1949624272435
92511539.999604725914-28.9996047259143
93499539.374604725914-40.3746047259143
94555593.249604725914-38.2496047259143
95565608.124604725914-43.1246047259143
96542601.999604725914-59.9996047259143
97527590.627530188515-63.6275301885154



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