Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 15 Nov 2007 15:36:32 -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/15/t119516586797gkb078qfkp09k.htm/, Retrieved Sat, 04 May 2024 06:17:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5484, Retrieved Sat, 04 May 2024 06:17:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact244
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Workshop6-Q3c] [2007-11-15 22:36:32] [129742d52914620af0bad7eb53591257] [Current]
Feedback Forum

Post a new message
Dataseries X:
36409	0
33163	0
34122	0
35225	0
28249	0
30374	0
26311	0
22069	0
23651	0
28628	0
23187	0
14727	0
43080	0
32519	0
39657	0
33614	0
28671	0
34243	0
27336	0
22916	0
24537	0
26128	0
22602	0
15744	0
41086	0
39690	0
43129	0
37863	0
35953	0
29133	0
24693	0
22205	0
21725	0
27192	0
21790	0
13253	0
37702	0
30364	0
32609	0
30212	0
29965	0
28352	0
25814	0
22414	0
20506	0
28806	0
22228	0
13971	0
36845	0
35338	0
35022	0
34777	0
26887	0
23970	0
22780	0
17351	0
21382	0
24561	0
17409	0
11514	0
31514	0
27071	0
29462	0
26105	0
22397	0
23843	0
21705	0
18089	0
20764	0
25316	0
17704	0
15548	0
28029	0
29383	0
36438	0
32034	0
22679	0
24319	0
18004	0
17537	0
20366	0
22782	0
19169	0
13807	0
29743	0
25591	0
29096	1
26482	1
22405	1
27044	1
17970	1
18730	1
19684	1
19785	1
18479	1
10698	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Inschr_pw[t] = + 18507.9041208791 + 271.179120879151Olieprijzen[t] + 20932.2480082418M1[t] + 17111.5684065934M2[t] + 20470.1164148351M3[t] + 17657.6868131868M4[t] + 12859.8822115385M5[t] + 13459.3276098901M6[t] + 8966.64800824176M7[t] + 6144.34340659341M8[t] + 7647.78880494505M9[t] + 11561.1092032967M10[t] + 6572.80460164834M11[t] -90.4453983516484t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Inschr_pw[t] =  +  18507.9041208791 +  271.179120879151Olieprijzen[t] +  20932.2480082418M1[t] +  17111.5684065934M2[t] +  20470.1164148351M3[t] +  17657.6868131868M4[t] +  12859.8822115385M5[t] +  13459.3276098901M6[t] +  8966.64800824176M7[t] +  6144.34340659341M8[t] +  7647.78880494505M9[t] +  11561.1092032967M10[t] +  6572.80460164834M11[t] -90.4453983516484t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5484&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Inschr_pw[t] =  +  18507.9041208791 +  271.179120879151Olieprijzen[t] +  20932.2480082418M1[t] +  17111.5684065934M2[t] +  20470.1164148351M3[t] +  17657.6868131868M4[t] +  12859.8822115385M5[t] +  13459.3276098901M6[t] +  8966.64800824176M7[t] +  6144.34340659341M8[t] +  7647.78880494505M9[t] +  11561.1092032967M10[t] +  6572.80460164834M11[t] -90.4453983516484t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5484&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5484&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
Inschr_pw[t] = + 18507.9041208791 + 271.179120879151Olieprijzen[t] + 20932.2480082418M1[t] + 17111.5684065934M2[t] + 20470.1164148351M3[t] + 17657.6868131868M4[t] + 12859.8822115385M5[t] + 13459.3276098901M6[t] + 8966.64800824176M7[t] + 6144.34340659341M8[t] + 7647.78880494505M9[t] + 11561.1092032967M10[t] + 6572.80460164834M11[t] -90.4453983516484t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)18507.90412087911104.96669516.749700
Olieprijzen271.1791208791511063.7507110.25490.7994180.399709
M120932.24800824181343.09213515.585100
M217111.56840659341342.63496712.744800
M320470.11641483511341.18115615.262800
M417657.68681318681340.31625513.174300
M512859.88221153851339.5526439.600100
M613459.32760989011338.89049510.052600
M78966.648008241761338.3299596.699900
M86144.343406593411337.8711644.59261.6e-058e-06
M97647.788804945051337.5142155.717900
M1011561.10920329671337.2591938.645400
M116572.804601648341337.1061564.91574e-062e-06
t-90.445398351648411.680122-7.743500

\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) & 18507.9041208791 & 1104.966695 & 16.7497 & 0 & 0 \tabularnewline
Olieprijzen & 271.179120879151 & 1063.750711 & 0.2549 & 0.799418 & 0.399709 \tabularnewline
M1 & 20932.2480082418 & 1343.092135 & 15.5851 & 0 & 0 \tabularnewline
M2 & 17111.5684065934 & 1342.634967 & 12.7448 & 0 & 0 \tabularnewline
M3 & 20470.1164148351 & 1341.181156 & 15.2628 & 0 & 0 \tabularnewline
M4 & 17657.6868131868 & 1340.316255 & 13.1743 & 0 & 0 \tabularnewline
M5 & 12859.8822115385 & 1339.552643 & 9.6001 & 0 & 0 \tabularnewline
M6 & 13459.3276098901 & 1338.890495 & 10.0526 & 0 & 0 \tabularnewline
M7 & 8966.64800824176 & 1338.329959 & 6.6999 & 0 & 0 \tabularnewline
M8 & 6144.34340659341 & 1337.871164 & 4.5926 & 1.6e-05 & 8e-06 \tabularnewline
M9 & 7647.78880494505 & 1337.514215 & 5.7179 & 0 & 0 \tabularnewline
M10 & 11561.1092032967 & 1337.259193 & 8.6454 & 0 & 0 \tabularnewline
M11 & 6572.80460164834 & 1337.106156 & 4.9157 & 4e-06 & 2e-06 \tabularnewline
t & -90.4453983516484 & 11.680122 & -7.7435 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5484&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]18507.9041208791[/C][C]1104.966695[/C][C]16.7497[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Olieprijzen[/C][C]271.179120879151[/C][C]1063.750711[/C][C]0.2549[/C][C]0.799418[/C][C]0.399709[/C][/ROW]
[ROW][C]M1[/C][C]20932.2480082418[/C][C]1343.092135[/C][C]15.5851[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]17111.5684065934[/C][C]1342.634967[/C][C]12.7448[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]20470.1164148351[/C][C]1341.181156[/C][C]15.2628[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]17657.6868131868[/C][C]1340.316255[/C][C]13.1743[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]12859.8822115385[/C][C]1339.552643[/C][C]9.6001[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]13459.3276098901[/C][C]1338.890495[/C][C]10.0526[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]8966.64800824176[/C][C]1338.329959[/C][C]6.6999[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]6144.34340659341[/C][C]1337.871164[/C][C]4.5926[/C][C]1.6e-05[/C][C]8e-06[/C][/ROW]
[ROW][C]M9[/C][C]7647.78880494505[/C][C]1337.514215[/C][C]5.7179[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]11561.1092032967[/C][C]1337.259193[/C][C]8.6454[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]6572.80460164834[/C][C]1337.106156[/C][C]4.9157[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]t[/C][C]-90.4453983516484[/C][C]11.680122[/C][C]-7.7435[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5484&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5484&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)18507.90412087911104.96669516.749700
Olieprijzen271.1791208791511063.7507110.25490.7994180.399709
M120932.24800824181343.09213515.585100
M217111.56840659341342.63496712.744800
M320470.11641483511341.18115615.262800
M417657.68681318681340.31625513.174300
M512859.88221153851339.5526439.600100
M613459.32760989011338.89049510.052600
M78966.648008241761338.3299596.699900
M86144.343406593411337.8711644.59261.6e-058e-06
M97647.788804945051337.5142155.717900
M1011561.10920329671337.2591938.645400
M116572.804601648341337.1061564.91574e-062e-06
t-90.445398351648411.680122-7.743500







Multiple Linear Regression - Regression Statistics
Multiple R0.940569988956736
R-squared0.884671904126074
Adjusted R-squared0.866388181609476
F-TEST (value)48.3857651702474
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2674.11028001766
Sum Squared Residuals586370994.755082

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.940569988956736 \tabularnewline
R-squared & 0.884671904126074 \tabularnewline
Adjusted R-squared & 0.866388181609476 \tabularnewline
F-TEST (value) & 48.3857651702474 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 82 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2674.11028001766 \tabularnewline
Sum Squared Residuals & 586370994.755082 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5484&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.940569988956736[/C][/ROW]
[ROW][C]R-squared[/C][C]0.884671904126074[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.866388181609476[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]48.3857651702474[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]82[/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]2674.11028001766[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]586370994.755082[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5484&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5484&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.940569988956736
R-squared0.884671904126074
Adjusted R-squared0.866388181609476
F-TEST (value)48.3857651702474
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2674.11028001766
Sum Squared Residuals586370994.755082







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
13640939349.7067307692-2940.70673076920
23316335438.5817307693-2275.58173076929
33412238706.6843406594-4584.68434065937
43522535803.8093406594-578.809340659402
52824930915.5593406593-2666.55934065929
63037431424.5593406593-1050.55934065933
72631126841.4343406593-530.434340659345
82206923928.6843406593-1859.68434065931
92365125341.6843406593-1690.68434065934
102862829164.5593406593-536.559340659342
112318724085.8093406593-898.809340659341
121472717422.5593406593-2695.55934065935
134308038264.36195054954815.63804945054
143251934353.2369505494-1834.23695054943
153965737621.33956043962035.66043956045
163361434718.4645604395-1104.46456043955
172867129830.2145604396-1159.21456043957
183424330339.21456043963903.78543956044
192733625756.08956043961579.91043956044
202291622843.339560439672.660439560437
212453724256.3395604396280.660439560442
222612828079.2145604396-1951.21456043956
232260223000.4645604396-398.464560439559
241574416337.2145604396-593.214560439563
254108637179.01717032973906.98282967033
263969033267.89217032976422.10782967034
274312936535.99478021986593.00521978023
283786333633.11978021984229.88021978023
293595328744.86978021987208.13021978021
302913329253.8697802198-120.869780219783
312469324670.744780219822.2552197802215
322220521757.9947802198447.005219780217
332172523170.9947802198-1445.99478021978
342719226993.8697802198198.130219780220
352179021915.1197802198-125.119780219780
361325315251.8697802198-1998.86978021978
373770236093.67239010991608.32760989011
383036432182.5473901099-1818.54739010988
393260935450.65-2841.65
403021232547.775-2335.77499999999
412996527659.5252305.47499999999
422835228168.525183.474999999997
432581423585.42228.6
442241420672.651741.35000000000
452050622085.65-1579.65
462880625908.5252897.475
472222820829.7751398.225
481397114166.525-195.525000000002
493684535008.32760989011836.67239010989
503533831097.20260989014240.7973901099
513502234365.3052197802656.694780219784
523477731462.43021978023314.56978021979
532688726574.1802197802312.819780219774
542397027083.1802197802-3113.18021978022
552278022500.0552197802279.944780219780
561735119587.3052197802-2236.30521978022
572138221000.3052197802381.694780219780
582456124823.1802197802-262.180219780219
591740919744.4302197802-2335.43021978022
601151413081.1802197802-1567.18021978022
613151433922.9828296703-2408.98282967033
622707130011.8578296703-2940.85782967032
632946233279.9604395604-3817.96043956044
642610530377.0854395604-4272.08543956043
652239725488.8354395604-3091.83543956045
662384325997.8354395604-2154.83543956044
672170521414.7104395604290.28956043956
681808918501.9604395604-412.960439560443
692076419914.9604395604849.03956043956
702531623737.83543956041578.16456043956
711770418659.0854395604-955.085439560439
721554811995.83543956043552.16456043956
732802932837.6380494506-4808.63804945055
742938328926.5130494505456.486950549457
753643832194.61565934074243.38434065934
763203429291.74065934072742.25934065935
772267924403.4906593407-1724.49065934067
782431924912.4906593407-593.490659340663
791800420329.3656593407-2325.36565934066
801753717416.6156593407120.384340659337
812036618829.61565934071536.38434065934
822278222652.4906593407129.509340659339
831916917573.74065934071595.25934065934
841380710910.49065934072896.50934065934
852974331752.2932692308-2009.29326923077
862559127841.1682692308-2250.16826923076
872909631380.45-2284.45000000000
882648228477.575-1995.57499999999
892240523589.325-1184.32500000001
902704424098.3252945.675
911797019515.2-1545.2
921873016602.452127.55000000000
931968418015.451668.55
941978521838.325-2053.325
951847916759.5751719.425
961069810096.325601.674999999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 36409 & 39349.7067307692 & -2940.70673076920 \tabularnewline
2 & 33163 & 35438.5817307693 & -2275.58173076929 \tabularnewline
3 & 34122 & 38706.6843406594 & -4584.68434065937 \tabularnewline
4 & 35225 & 35803.8093406594 & -578.809340659402 \tabularnewline
5 & 28249 & 30915.5593406593 & -2666.55934065929 \tabularnewline
6 & 30374 & 31424.5593406593 & -1050.55934065933 \tabularnewline
7 & 26311 & 26841.4343406593 & -530.434340659345 \tabularnewline
8 & 22069 & 23928.6843406593 & -1859.68434065931 \tabularnewline
9 & 23651 & 25341.6843406593 & -1690.68434065934 \tabularnewline
10 & 28628 & 29164.5593406593 & -536.559340659342 \tabularnewline
11 & 23187 & 24085.8093406593 & -898.809340659341 \tabularnewline
12 & 14727 & 17422.5593406593 & -2695.55934065935 \tabularnewline
13 & 43080 & 38264.3619505495 & 4815.63804945054 \tabularnewline
14 & 32519 & 34353.2369505494 & -1834.23695054943 \tabularnewline
15 & 39657 & 37621.3395604396 & 2035.66043956045 \tabularnewline
16 & 33614 & 34718.4645604395 & -1104.46456043955 \tabularnewline
17 & 28671 & 29830.2145604396 & -1159.21456043957 \tabularnewline
18 & 34243 & 30339.2145604396 & 3903.78543956044 \tabularnewline
19 & 27336 & 25756.0895604396 & 1579.91043956044 \tabularnewline
20 & 22916 & 22843.3395604396 & 72.660439560437 \tabularnewline
21 & 24537 & 24256.3395604396 & 280.660439560442 \tabularnewline
22 & 26128 & 28079.2145604396 & -1951.21456043956 \tabularnewline
23 & 22602 & 23000.4645604396 & -398.464560439559 \tabularnewline
24 & 15744 & 16337.2145604396 & -593.214560439563 \tabularnewline
25 & 41086 & 37179.0171703297 & 3906.98282967033 \tabularnewline
26 & 39690 & 33267.8921703297 & 6422.10782967034 \tabularnewline
27 & 43129 & 36535.9947802198 & 6593.00521978023 \tabularnewline
28 & 37863 & 33633.1197802198 & 4229.88021978023 \tabularnewline
29 & 35953 & 28744.8697802198 & 7208.13021978021 \tabularnewline
30 & 29133 & 29253.8697802198 & -120.869780219783 \tabularnewline
31 & 24693 & 24670.7447802198 & 22.2552197802215 \tabularnewline
32 & 22205 & 21757.9947802198 & 447.005219780217 \tabularnewline
33 & 21725 & 23170.9947802198 & -1445.99478021978 \tabularnewline
34 & 27192 & 26993.8697802198 & 198.130219780220 \tabularnewline
35 & 21790 & 21915.1197802198 & -125.119780219780 \tabularnewline
36 & 13253 & 15251.8697802198 & -1998.86978021978 \tabularnewline
37 & 37702 & 36093.6723901099 & 1608.32760989011 \tabularnewline
38 & 30364 & 32182.5473901099 & -1818.54739010988 \tabularnewline
39 & 32609 & 35450.65 & -2841.65 \tabularnewline
40 & 30212 & 32547.775 & -2335.77499999999 \tabularnewline
41 & 29965 & 27659.525 & 2305.47499999999 \tabularnewline
42 & 28352 & 28168.525 & 183.474999999997 \tabularnewline
43 & 25814 & 23585.4 & 2228.6 \tabularnewline
44 & 22414 & 20672.65 & 1741.35000000000 \tabularnewline
45 & 20506 & 22085.65 & -1579.65 \tabularnewline
46 & 28806 & 25908.525 & 2897.475 \tabularnewline
47 & 22228 & 20829.775 & 1398.225 \tabularnewline
48 & 13971 & 14166.525 & -195.525000000002 \tabularnewline
49 & 36845 & 35008.3276098901 & 1836.67239010989 \tabularnewline
50 & 35338 & 31097.2026098901 & 4240.7973901099 \tabularnewline
51 & 35022 & 34365.3052197802 & 656.694780219784 \tabularnewline
52 & 34777 & 31462.4302197802 & 3314.56978021979 \tabularnewline
53 & 26887 & 26574.1802197802 & 312.819780219774 \tabularnewline
54 & 23970 & 27083.1802197802 & -3113.18021978022 \tabularnewline
55 & 22780 & 22500.0552197802 & 279.944780219780 \tabularnewline
56 & 17351 & 19587.3052197802 & -2236.30521978022 \tabularnewline
57 & 21382 & 21000.3052197802 & 381.694780219780 \tabularnewline
58 & 24561 & 24823.1802197802 & -262.180219780219 \tabularnewline
59 & 17409 & 19744.4302197802 & -2335.43021978022 \tabularnewline
60 & 11514 & 13081.1802197802 & -1567.18021978022 \tabularnewline
61 & 31514 & 33922.9828296703 & -2408.98282967033 \tabularnewline
62 & 27071 & 30011.8578296703 & -2940.85782967032 \tabularnewline
63 & 29462 & 33279.9604395604 & -3817.96043956044 \tabularnewline
64 & 26105 & 30377.0854395604 & -4272.08543956043 \tabularnewline
65 & 22397 & 25488.8354395604 & -3091.83543956045 \tabularnewline
66 & 23843 & 25997.8354395604 & -2154.83543956044 \tabularnewline
67 & 21705 & 21414.7104395604 & 290.28956043956 \tabularnewline
68 & 18089 & 18501.9604395604 & -412.960439560443 \tabularnewline
69 & 20764 & 19914.9604395604 & 849.03956043956 \tabularnewline
70 & 25316 & 23737.8354395604 & 1578.16456043956 \tabularnewline
71 & 17704 & 18659.0854395604 & -955.085439560439 \tabularnewline
72 & 15548 & 11995.8354395604 & 3552.16456043956 \tabularnewline
73 & 28029 & 32837.6380494506 & -4808.63804945055 \tabularnewline
74 & 29383 & 28926.5130494505 & 456.486950549457 \tabularnewline
75 & 36438 & 32194.6156593407 & 4243.38434065934 \tabularnewline
76 & 32034 & 29291.7406593407 & 2742.25934065935 \tabularnewline
77 & 22679 & 24403.4906593407 & -1724.49065934067 \tabularnewline
78 & 24319 & 24912.4906593407 & -593.490659340663 \tabularnewline
79 & 18004 & 20329.3656593407 & -2325.36565934066 \tabularnewline
80 & 17537 & 17416.6156593407 & 120.384340659337 \tabularnewline
81 & 20366 & 18829.6156593407 & 1536.38434065934 \tabularnewline
82 & 22782 & 22652.4906593407 & 129.509340659339 \tabularnewline
83 & 19169 & 17573.7406593407 & 1595.25934065934 \tabularnewline
84 & 13807 & 10910.4906593407 & 2896.50934065934 \tabularnewline
85 & 29743 & 31752.2932692308 & -2009.29326923077 \tabularnewline
86 & 25591 & 27841.1682692308 & -2250.16826923076 \tabularnewline
87 & 29096 & 31380.45 & -2284.45000000000 \tabularnewline
88 & 26482 & 28477.575 & -1995.57499999999 \tabularnewline
89 & 22405 & 23589.325 & -1184.32500000001 \tabularnewline
90 & 27044 & 24098.325 & 2945.675 \tabularnewline
91 & 17970 & 19515.2 & -1545.2 \tabularnewline
92 & 18730 & 16602.45 & 2127.55000000000 \tabularnewline
93 & 19684 & 18015.45 & 1668.55 \tabularnewline
94 & 19785 & 21838.325 & -2053.325 \tabularnewline
95 & 18479 & 16759.575 & 1719.425 \tabularnewline
96 & 10698 & 10096.325 & 601.674999999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5484&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]36409[/C][C]39349.7067307692[/C][C]-2940.70673076920[/C][/ROW]
[ROW][C]2[/C][C]33163[/C][C]35438.5817307693[/C][C]-2275.58173076929[/C][/ROW]
[ROW][C]3[/C][C]34122[/C][C]38706.6843406594[/C][C]-4584.68434065937[/C][/ROW]
[ROW][C]4[/C][C]35225[/C][C]35803.8093406594[/C][C]-578.809340659402[/C][/ROW]
[ROW][C]5[/C][C]28249[/C][C]30915.5593406593[/C][C]-2666.55934065929[/C][/ROW]
[ROW][C]6[/C][C]30374[/C][C]31424.5593406593[/C][C]-1050.55934065933[/C][/ROW]
[ROW][C]7[/C][C]26311[/C][C]26841.4343406593[/C][C]-530.434340659345[/C][/ROW]
[ROW][C]8[/C][C]22069[/C][C]23928.6843406593[/C][C]-1859.68434065931[/C][/ROW]
[ROW][C]9[/C][C]23651[/C][C]25341.6843406593[/C][C]-1690.68434065934[/C][/ROW]
[ROW][C]10[/C][C]28628[/C][C]29164.5593406593[/C][C]-536.559340659342[/C][/ROW]
[ROW][C]11[/C][C]23187[/C][C]24085.8093406593[/C][C]-898.809340659341[/C][/ROW]
[ROW][C]12[/C][C]14727[/C][C]17422.5593406593[/C][C]-2695.55934065935[/C][/ROW]
[ROW][C]13[/C][C]43080[/C][C]38264.3619505495[/C][C]4815.63804945054[/C][/ROW]
[ROW][C]14[/C][C]32519[/C][C]34353.2369505494[/C][C]-1834.23695054943[/C][/ROW]
[ROW][C]15[/C][C]39657[/C][C]37621.3395604396[/C][C]2035.66043956045[/C][/ROW]
[ROW][C]16[/C][C]33614[/C][C]34718.4645604395[/C][C]-1104.46456043955[/C][/ROW]
[ROW][C]17[/C][C]28671[/C][C]29830.2145604396[/C][C]-1159.21456043957[/C][/ROW]
[ROW][C]18[/C][C]34243[/C][C]30339.2145604396[/C][C]3903.78543956044[/C][/ROW]
[ROW][C]19[/C][C]27336[/C][C]25756.0895604396[/C][C]1579.91043956044[/C][/ROW]
[ROW][C]20[/C][C]22916[/C][C]22843.3395604396[/C][C]72.660439560437[/C][/ROW]
[ROW][C]21[/C][C]24537[/C][C]24256.3395604396[/C][C]280.660439560442[/C][/ROW]
[ROW][C]22[/C][C]26128[/C][C]28079.2145604396[/C][C]-1951.21456043956[/C][/ROW]
[ROW][C]23[/C][C]22602[/C][C]23000.4645604396[/C][C]-398.464560439559[/C][/ROW]
[ROW][C]24[/C][C]15744[/C][C]16337.2145604396[/C][C]-593.214560439563[/C][/ROW]
[ROW][C]25[/C][C]41086[/C][C]37179.0171703297[/C][C]3906.98282967033[/C][/ROW]
[ROW][C]26[/C][C]39690[/C][C]33267.8921703297[/C][C]6422.10782967034[/C][/ROW]
[ROW][C]27[/C][C]43129[/C][C]36535.9947802198[/C][C]6593.00521978023[/C][/ROW]
[ROW][C]28[/C][C]37863[/C][C]33633.1197802198[/C][C]4229.88021978023[/C][/ROW]
[ROW][C]29[/C][C]35953[/C][C]28744.8697802198[/C][C]7208.13021978021[/C][/ROW]
[ROW][C]30[/C][C]29133[/C][C]29253.8697802198[/C][C]-120.869780219783[/C][/ROW]
[ROW][C]31[/C][C]24693[/C][C]24670.7447802198[/C][C]22.2552197802215[/C][/ROW]
[ROW][C]32[/C][C]22205[/C][C]21757.9947802198[/C][C]447.005219780217[/C][/ROW]
[ROW][C]33[/C][C]21725[/C][C]23170.9947802198[/C][C]-1445.99478021978[/C][/ROW]
[ROW][C]34[/C][C]27192[/C][C]26993.8697802198[/C][C]198.130219780220[/C][/ROW]
[ROW][C]35[/C][C]21790[/C][C]21915.1197802198[/C][C]-125.119780219780[/C][/ROW]
[ROW][C]36[/C][C]13253[/C][C]15251.8697802198[/C][C]-1998.86978021978[/C][/ROW]
[ROW][C]37[/C][C]37702[/C][C]36093.6723901099[/C][C]1608.32760989011[/C][/ROW]
[ROW][C]38[/C][C]30364[/C][C]32182.5473901099[/C][C]-1818.54739010988[/C][/ROW]
[ROW][C]39[/C][C]32609[/C][C]35450.65[/C][C]-2841.65[/C][/ROW]
[ROW][C]40[/C][C]30212[/C][C]32547.775[/C][C]-2335.77499999999[/C][/ROW]
[ROW][C]41[/C][C]29965[/C][C]27659.525[/C][C]2305.47499999999[/C][/ROW]
[ROW][C]42[/C][C]28352[/C][C]28168.525[/C][C]183.474999999997[/C][/ROW]
[ROW][C]43[/C][C]25814[/C][C]23585.4[/C][C]2228.6[/C][/ROW]
[ROW][C]44[/C][C]22414[/C][C]20672.65[/C][C]1741.35000000000[/C][/ROW]
[ROW][C]45[/C][C]20506[/C][C]22085.65[/C][C]-1579.65[/C][/ROW]
[ROW][C]46[/C][C]28806[/C][C]25908.525[/C][C]2897.475[/C][/ROW]
[ROW][C]47[/C][C]22228[/C][C]20829.775[/C][C]1398.225[/C][/ROW]
[ROW][C]48[/C][C]13971[/C][C]14166.525[/C][C]-195.525000000002[/C][/ROW]
[ROW][C]49[/C][C]36845[/C][C]35008.3276098901[/C][C]1836.67239010989[/C][/ROW]
[ROW][C]50[/C][C]35338[/C][C]31097.2026098901[/C][C]4240.7973901099[/C][/ROW]
[ROW][C]51[/C][C]35022[/C][C]34365.3052197802[/C][C]656.694780219784[/C][/ROW]
[ROW][C]52[/C][C]34777[/C][C]31462.4302197802[/C][C]3314.56978021979[/C][/ROW]
[ROW][C]53[/C][C]26887[/C][C]26574.1802197802[/C][C]312.819780219774[/C][/ROW]
[ROW][C]54[/C][C]23970[/C][C]27083.1802197802[/C][C]-3113.18021978022[/C][/ROW]
[ROW][C]55[/C][C]22780[/C][C]22500.0552197802[/C][C]279.944780219780[/C][/ROW]
[ROW][C]56[/C][C]17351[/C][C]19587.3052197802[/C][C]-2236.30521978022[/C][/ROW]
[ROW][C]57[/C][C]21382[/C][C]21000.3052197802[/C][C]381.694780219780[/C][/ROW]
[ROW][C]58[/C][C]24561[/C][C]24823.1802197802[/C][C]-262.180219780219[/C][/ROW]
[ROW][C]59[/C][C]17409[/C][C]19744.4302197802[/C][C]-2335.43021978022[/C][/ROW]
[ROW][C]60[/C][C]11514[/C][C]13081.1802197802[/C][C]-1567.18021978022[/C][/ROW]
[ROW][C]61[/C][C]31514[/C][C]33922.9828296703[/C][C]-2408.98282967033[/C][/ROW]
[ROW][C]62[/C][C]27071[/C][C]30011.8578296703[/C][C]-2940.85782967032[/C][/ROW]
[ROW][C]63[/C][C]29462[/C][C]33279.9604395604[/C][C]-3817.96043956044[/C][/ROW]
[ROW][C]64[/C][C]26105[/C][C]30377.0854395604[/C][C]-4272.08543956043[/C][/ROW]
[ROW][C]65[/C][C]22397[/C][C]25488.8354395604[/C][C]-3091.83543956045[/C][/ROW]
[ROW][C]66[/C][C]23843[/C][C]25997.8354395604[/C][C]-2154.83543956044[/C][/ROW]
[ROW][C]67[/C][C]21705[/C][C]21414.7104395604[/C][C]290.28956043956[/C][/ROW]
[ROW][C]68[/C][C]18089[/C][C]18501.9604395604[/C][C]-412.960439560443[/C][/ROW]
[ROW][C]69[/C][C]20764[/C][C]19914.9604395604[/C][C]849.03956043956[/C][/ROW]
[ROW][C]70[/C][C]25316[/C][C]23737.8354395604[/C][C]1578.16456043956[/C][/ROW]
[ROW][C]71[/C][C]17704[/C][C]18659.0854395604[/C][C]-955.085439560439[/C][/ROW]
[ROW][C]72[/C][C]15548[/C][C]11995.8354395604[/C][C]3552.16456043956[/C][/ROW]
[ROW][C]73[/C][C]28029[/C][C]32837.6380494506[/C][C]-4808.63804945055[/C][/ROW]
[ROW][C]74[/C][C]29383[/C][C]28926.5130494505[/C][C]456.486950549457[/C][/ROW]
[ROW][C]75[/C][C]36438[/C][C]32194.6156593407[/C][C]4243.38434065934[/C][/ROW]
[ROW][C]76[/C][C]32034[/C][C]29291.7406593407[/C][C]2742.25934065935[/C][/ROW]
[ROW][C]77[/C][C]22679[/C][C]24403.4906593407[/C][C]-1724.49065934067[/C][/ROW]
[ROW][C]78[/C][C]24319[/C][C]24912.4906593407[/C][C]-593.490659340663[/C][/ROW]
[ROW][C]79[/C][C]18004[/C][C]20329.3656593407[/C][C]-2325.36565934066[/C][/ROW]
[ROW][C]80[/C][C]17537[/C][C]17416.6156593407[/C][C]120.384340659337[/C][/ROW]
[ROW][C]81[/C][C]20366[/C][C]18829.6156593407[/C][C]1536.38434065934[/C][/ROW]
[ROW][C]82[/C][C]22782[/C][C]22652.4906593407[/C][C]129.509340659339[/C][/ROW]
[ROW][C]83[/C][C]19169[/C][C]17573.7406593407[/C][C]1595.25934065934[/C][/ROW]
[ROW][C]84[/C][C]13807[/C][C]10910.4906593407[/C][C]2896.50934065934[/C][/ROW]
[ROW][C]85[/C][C]29743[/C][C]31752.2932692308[/C][C]-2009.29326923077[/C][/ROW]
[ROW][C]86[/C][C]25591[/C][C]27841.1682692308[/C][C]-2250.16826923076[/C][/ROW]
[ROW][C]87[/C][C]29096[/C][C]31380.45[/C][C]-2284.45000000000[/C][/ROW]
[ROW][C]88[/C][C]26482[/C][C]28477.575[/C][C]-1995.57499999999[/C][/ROW]
[ROW][C]89[/C][C]22405[/C][C]23589.325[/C][C]-1184.32500000001[/C][/ROW]
[ROW][C]90[/C][C]27044[/C][C]24098.325[/C][C]2945.675[/C][/ROW]
[ROW][C]91[/C][C]17970[/C][C]19515.2[/C][C]-1545.2[/C][/ROW]
[ROW][C]92[/C][C]18730[/C][C]16602.45[/C][C]2127.55000000000[/C][/ROW]
[ROW][C]93[/C][C]19684[/C][C]18015.45[/C][C]1668.55[/C][/ROW]
[ROW][C]94[/C][C]19785[/C][C]21838.325[/C][C]-2053.325[/C][/ROW]
[ROW][C]95[/C][C]18479[/C][C]16759.575[/C][C]1719.425[/C][/ROW]
[ROW][C]96[/C][C]10698[/C][C]10096.325[/C][C]601.674999999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5484&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5484&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
13640939349.7067307692-2940.70673076920
23316335438.5817307693-2275.58173076929
33412238706.6843406594-4584.68434065937
43522535803.8093406594-578.809340659402
52824930915.5593406593-2666.55934065929
63037431424.5593406593-1050.55934065933
72631126841.4343406593-530.434340659345
82206923928.6843406593-1859.68434065931
92365125341.6843406593-1690.68434065934
102862829164.5593406593-536.559340659342
112318724085.8093406593-898.809340659341
121472717422.5593406593-2695.55934065935
134308038264.36195054954815.63804945054
143251934353.2369505494-1834.23695054943
153965737621.33956043962035.66043956045
163361434718.4645604395-1104.46456043955
172867129830.2145604396-1159.21456043957
183424330339.21456043963903.78543956044
192733625756.08956043961579.91043956044
202291622843.339560439672.660439560437
212453724256.3395604396280.660439560442
222612828079.2145604396-1951.21456043956
232260223000.4645604396-398.464560439559
241574416337.2145604396-593.214560439563
254108637179.01717032973906.98282967033
263969033267.89217032976422.10782967034
274312936535.99478021986593.00521978023
283786333633.11978021984229.88021978023
293595328744.86978021987208.13021978021
302913329253.8697802198-120.869780219783
312469324670.744780219822.2552197802215
322220521757.9947802198447.005219780217
332172523170.9947802198-1445.99478021978
342719226993.8697802198198.130219780220
352179021915.1197802198-125.119780219780
361325315251.8697802198-1998.86978021978
373770236093.67239010991608.32760989011
383036432182.5473901099-1818.54739010988
393260935450.65-2841.65
403021232547.775-2335.77499999999
412996527659.5252305.47499999999
422835228168.525183.474999999997
432581423585.42228.6
442241420672.651741.35000000000
452050622085.65-1579.65
462880625908.5252897.475
472222820829.7751398.225
481397114166.525-195.525000000002
493684535008.32760989011836.67239010989
503533831097.20260989014240.7973901099
513502234365.3052197802656.694780219784
523477731462.43021978023314.56978021979
532688726574.1802197802312.819780219774
542397027083.1802197802-3113.18021978022
552278022500.0552197802279.944780219780
561735119587.3052197802-2236.30521978022
572138221000.3052197802381.694780219780
582456124823.1802197802-262.180219780219
591740919744.4302197802-2335.43021978022
601151413081.1802197802-1567.18021978022
613151433922.9828296703-2408.98282967033
622707130011.8578296703-2940.85782967032
632946233279.9604395604-3817.96043956044
642610530377.0854395604-4272.08543956043
652239725488.8354395604-3091.83543956045
662384325997.8354395604-2154.83543956044
672170521414.7104395604290.28956043956
681808918501.9604395604-412.960439560443
692076419914.9604395604849.03956043956
702531623737.83543956041578.16456043956
711770418659.0854395604-955.085439560439
721554811995.83543956043552.16456043956
732802932837.6380494506-4808.63804945055
742938328926.5130494505456.486950549457
753643832194.61565934074243.38434065934
763203429291.74065934072742.25934065935
772267924403.4906593407-1724.49065934067
782431924912.4906593407-593.490659340663
791800420329.3656593407-2325.36565934066
801753717416.6156593407120.384340659337
812036618829.61565934071536.38434065934
822278222652.4906593407129.509340659339
831916917573.74065934071595.25934065934
841380710910.49065934072896.50934065934
852974331752.2932692308-2009.29326923077
862559127841.1682692308-2250.16826923076
872909631380.45-2284.45000000000
882648228477.575-1995.57499999999
892240523589.325-1184.32500000001
902704424098.3252945.675
911797019515.2-1545.2
921873016602.452127.55000000000
931968418015.451668.55
941978521838.325-2053.325
951847916759.5751719.425
961069810096.325601.674999999999



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