Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 14 Dec 2007 03:34:34 -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/Dec/14/t119762781024bwp9apk1pchom.htm/, Retrieved Thu, 02 May 2024 22:34:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=14369, Retrieved Thu, 02 May 2024 22:34:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordss0650921, 0650125
Estimated Impact187
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [paper_multiple_re...] [2007-12-14 10:34:34] [51bdc8406fbbc01cbe082e55675cae6c] [Current]
Feedback Forum

Post a new message
Dataseries X:
102.7	0	0
103.2	0	0
105.6	0	0
103.9	0	0
107.2	0	0
100.7	0	0
92.1	0	0
90.3	0	0
93.4	0	0
98.5	0	0
100.8	0	0
102.3	0	0
104.7	0	0
101.1	0	0
101.4	0	0
99.5	0	0
98.4	0	0
96.3	0	0
100.7	0	0
101.2	0	0
100.3	0	0
97.8	0	0
97.4	0	0
98.6	0	0
99.7	0	0
99.0	0	0
98.1	0	0
97.0	0	0
98.5	0	0
103.8	0	0
114.4	0	0
124.5	0	0
134.2	0	0
131.8	0	0
125.6	0	0
119.9	0	0
114.9	0	0
115.5	0	0
112.5	0	0
111.4	0	0
115.3	0	0
110.8	0	0
103.7	0	0
111.1	0	1
113.0	0	1
111.2	0	1
117.6	0	1
121.7	0	1
127.3	0	1
129.8	0	1
137.1	0	1
141.4	0	1
137.4	0	1
130.7	0	1
117.2	0	1
110.8	0	0
111.4	0	0
108.2	0	0
108.8	0	0
110.2	0	0
109.5	1	0
109.5	1	0
116.0	1	0
111.2	1	0
112.1	1	0
114.0	1	0
119.1	1	0
114.1	1	2
115.1	1	2
115.4	1	2
110.8	1	2
116.0	1	2
119.2	2	2
126.5	2	2
127.8	2	2
131.3	2	2
140.3	2	2
137.3	2	2
143.0	2	2
134.5	2	0
139.9	2	0
159.3	2	0
170.4	2	0
175.0	2	0
175.8	2	0
180.9	2	0
180.3	2	0
169.6	2	0
172.3	2	0
184.8	2	0
177.7	2	0
184.6	2	0
211.4	2	0
215.3	2	0
215.9	2	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14369&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
graanprijs[t] = + 90.6785257984054 + 11.1582395826032ontkoppelde_bedrijfstoeslag[t] -11.2396111935848oogstomvang[t] + 0.625545648317884t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
graanprijs[t] =  +  90.6785257984054 +  11.1582395826032ontkoppelde_bedrijfstoeslag[t] -11.2396111935848oogstomvang[t] +  0.625545648317884t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14369&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]graanprijs[t] =  +  90.6785257984054 +  11.1582395826032ontkoppelde_bedrijfstoeslag[t] -11.2396111935848oogstomvang[t] +  0.625545648317884t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14369&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14369&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
graanprijs[t] = + 90.6785257984054 + 11.1582395826032ontkoppelde_bedrijfstoeslag[t] -11.2396111935848oogstomvang[t] + 0.625545648317884t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)90.67852579840544.02901522.506400
ontkoppelde_bedrijfstoeslag11.15823958260323.6068643.09360.0026260.001313
oogstomvang-11.23961119358482.475575-4.54021.7e-059e-06
t0.6255456483178840.1142175.476800

\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) & 90.6785257984054 & 4.029015 & 22.5064 & 0 & 0 \tabularnewline
ontkoppelde_bedrijfstoeslag & 11.1582395826032 & 3.606864 & 3.0936 & 0.002626 & 0.001313 \tabularnewline
oogstomvang & -11.2396111935848 & 2.475575 & -4.5402 & 1.7e-05 & 9e-06 \tabularnewline
t & 0.625545648317884 & 0.114217 & 5.4768 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14369&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]90.6785257984054[/C][C]4.029015[/C][C]22.5064[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]ontkoppelde_bedrijfstoeslag[/C][C]11.1582395826032[/C][C]3.606864[/C][C]3.0936[/C][C]0.002626[/C][C]0.001313[/C][/ROW]
[ROW][C]oogstomvang[/C][C]-11.2396111935848[/C][C]2.475575[/C][C]-4.5402[/C][C]1.7e-05[/C][C]9e-06[/C][/ROW]
[ROW][C]t[/C][C]0.625545648317884[/C][C]0.114217[/C][C]5.4768[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14369&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14369&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)90.67852579840544.02901522.506400
ontkoppelde_bedrijfstoeslag11.15823958260323.6068643.09360.0026260.001313
oogstomvang-11.23961119358482.475575-4.54021.7e-059e-06
t0.6255456483178840.1142175.476800







Multiple Linear Regression - Regression Statistics
Multiple R0.842616613280444
R-squared0.710002756976206
Adjusted R-squared0.700442408305092
F-TEST (value)74.265362216488
F-TEST (DF numerator)3
F-TEST (DF denominator)91
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.8101839862357
Sum Squared Residuals22746.5345087547

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.842616613280444 \tabularnewline
R-squared & 0.710002756976206 \tabularnewline
Adjusted R-squared & 0.700442408305092 \tabularnewline
F-TEST (value) & 74.265362216488 \tabularnewline
F-TEST (DF numerator) & 3 \tabularnewline
F-TEST (DF denominator) & 91 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 15.8101839862357 \tabularnewline
Sum Squared Residuals & 22746.5345087547 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14369&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.842616613280444[/C][/ROW]
[ROW][C]R-squared[/C][C]0.710002756976206[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.700442408305092[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]74.265362216488[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]3[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]91[/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]15.8101839862357[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22746.5345087547[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14369&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14369&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.842616613280444
R-squared0.710002756976206
Adjusted R-squared0.700442408305092
F-TEST (value)74.265362216488
F-TEST (DF numerator)3
F-TEST (DF denominator)91
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.8101839862357
Sum Squared Residuals22746.5345087547







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1102.791.304071446723511.3959285532766
2103.291.929617095041311.2703829049588
3105.692.55516274335913.0448372566409
4103.993.18070839167710.7192916083231
5107.293.806254039994913.3937459600052
6100.794.43179968831276.26820031168726
792.195.0573453366306-2.95734533663062
890.395.6828909849485-5.3828909849485
993.496.3084366332664-2.90843663326638
1098.596.93398228158431.56601771841573
11100.897.55952792990223.24047207009784
12102.398.185073578224.11492642177996
13104.798.8106192265385.88938077346208
14101.199.43616487485581.66383512514418
15101.4100.0617105231741.33828947682631
1699.5100.687256171492-1.18725617149158
1798.4101.312801819809-2.91280181980946
1896.3101.938347468127-5.63834746812735
19100.7102.563893116445-1.86389311644523
20101.2103.189438764763-1.98943876476311
21100.3103.814984413081-3.514984413081
2297.8104.440530061399-6.64053006139888
2397.4105.066075709717-7.66607570971676
2498.6105.691621358035-7.09162135803466
2599.7106.317167006353-6.61716700635253
2699106.942712654670-7.94271265467042
2798.1107.568258302988-9.4682583029883
2897108.193803951306-11.1938039513062
2998.5108.819349599624-10.3193495996241
30103.8109.444895247942-5.64489524794196
31114.4110.0704408962604.32955910374017
32124.5110.69598654457813.8040134554223
33134.2111.32153219289622.8784678071044
34131.8111.94707784121319.8529221587865
35125.6112.57262348953113.0273765104686
36119.9113.1981691378496.70183086215074
37114.9113.8237147861671.07628521383286
38115.5114.4492604344851.05073956551497
39112.5115.074806082803-2.57480608280291
40111.4115.700351731121-4.30035173112079
41115.3116.325897379439-1.02589737943868
42110.8116.951443027757-6.15144302775657
43103.7117.576988676074-13.8769886760744
44111.1106.9629231308084.13707686919245
45113107.5884687791255.41153122087457
46111.2108.2140144274432.98598557255669
47117.6108.8395600757618.7604399242388
48121.7109.46510572407912.2348942759209
49127.3110.09065137239717.2093486276030
50129.8110.71619702071519.0838029792852
51137.1111.34174266903325.7582573309673
52141.4111.96728831735129.4327116826494
53137.4112.59283396566924.8071660343315
54130.7113.21837961398617.4816203860136
55117.2113.8439252623043.35607473769574
56110.8125.709082104207-14.9090821042069
57111.4126.334627752525-14.9346277525248
58108.2126.960173400843-18.7601734008427
59108.8127.585719049161-18.7857190491606
60110.2128.211264697478-18.0112646974785
61109.5139.995049928400-30.4950499283996
62109.5140.620595576717-31.1205955767174
63116141.246141225035-25.2461412250353
64111.2141.871686873353-30.6716868733532
65112.1142.497232521671-30.3972325216711
66114143.122778169989-29.122778169989
67119.1143.748323818307-24.6483238183069
68114.1121.894647079455-7.79464707945516
69115.1122.520192727773-7.42019272777305
70115.4123.145738376091-7.74573837609092
71110.8123.771284024409-12.9712840244088
72116124.396829672727-8.39682967272669
73119.2136.180614903648-16.9806149036478
74126.5136.806160551966-10.3061605519657
75127.8137.431706200284-9.63170620028354
76131.3138.057251848601-6.75725184860141
77140.3138.6827974969191.61720250308070
78137.3139.308343145237-2.00834314523718
79143139.9338887935553.06611120644492
80134.5163.038656829043-28.5386568290425
81139.9163.664202477360-23.7642024773604
82159.3164.289748125678-4.98974812567829
83170.4164.9152937739965.48470622600382
84175165.5408394223149.45916057768593
85175.8166.1663850706329.63361492936805
86180.9166.7919307189514.1080692810502
87180.3167.41747636726812.8825236327323
88169.6168.0430220155861.55697798441439
89172.3168.6685676639043.63143233609652
90184.8169.29411331222115.5058866877786
91177.7169.9196589605397.78034103946073
92184.6170.54520460885714.0547953911429
93211.4171.17075025717540.229249742825
94215.3171.79629590549343.5037040945071
95215.9172.42184155381143.4781584461892

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 102.7 & 91.3040714467235 & 11.3959285532766 \tabularnewline
2 & 103.2 & 91.9296170950413 & 11.2703829049588 \tabularnewline
3 & 105.6 & 92.555162743359 & 13.0448372566409 \tabularnewline
4 & 103.9 & 93.180708391677 & 10.7192916083231 \tabularnewline
5 & 107.2 & 93.8062540399949 & 13.3937459600052 \tabularnewline
6 & 100.7 & 94.4317996883127 & 6.26820031168726 \tabularnewline
7 & 92.1 & 95.0573453366306 & -2.95734533663062 \tabularnewline
8 & 90.3 & 95.6828909849485 & -5.3828909849485 \tabularnewline
9 & 93.4 & 96.3084366332664 & -2.90843663326638 \tabularnewline
10 & 98.5 & 96.9339822815843 & 1.56601771841573 \tabularnewline
11 & 100.8 & 97.5595279299022 & 3.24047207009784 \tabularnewline
12 & 102.3 & 98.18507357822 & 4.11492642177996 \tabularnewline
13 & 104.7 & 98.810619226538 & 5.88938077346208 \tabularnewline
14 & 101.1 & 99.4361648748558 & 1.66383512514418 \tabularnewline
15 & 101.4 & 100.061710523174 & 1.33828947682631 \tabularnewline
16 & 99.5 & 100.687256171492 & -1.18725617149158 \tabularnewline
17 & 98.4 & 101.312801819809 & -2.91280181980946 \tabularnewline
18 & 96.3 & 101.938347468127 & -5.63834746812735 \tabularnewline
19 & 100.7 & 102.563893116445 & -1.86389311644523 \tabularnewline
20 & 101.2 & 103.189438764763 & -1.98943876476311 \tabularnewline
21 & 100.3 & 103.814984413081 & -3.514984413081 \tabularnewline
22 & 97.8 & 104.440530061399 & -6.64053006139888 \tabularnewline
23 & 97.4 & 105.066075709717 & -7.66607570971676 \tabularnewline
24 & 98.6 & 105.691621358035 & -7.09162135803466 \tabularnewline
25 & 99.7 & 106.317167006353 & -6.61716700635253 \tabularnewline
26 & 99 & 106.942712654670 & -7.94271265467042 \tabularnewline
27 & 98.1 & 107.568258302988 & -9.4682583029883 \tabularnewline
28 & 97 & 108.193803951306 & -11.1938039513062 \tabularnewline
29 & 98.5 & 108.819349599624 & -10.3193495996241 \tabularnewline
30 & 103.8 & 109.444895247942 & -5.64489524794196 \tabularnewline
31 & 114.4 & 110.070440896260 & 4.32955910374017 \tabularnewline
32 & 124.5 & 110.695986544578 & 13.8040134554223 \tabularnewline
33 & 134.2 & 111.321532192896 & 22.8784678071044 \tabularnewline
34 & 131.8 & 111.947077841213 & 19.8529221587865 \tabularnewline
35 & 125.6 & 112.572623489531 & 13.0273765104686 \tabularnewline
36 & 119.9 & 113.198169137849 & 6.70183086215074 \tabularnewline
37 & 114.9 & 113.823714786167 & 1.07628521383286 \tabularnewline
38 & 115.5 & 114.449260434485 & 1.05073956551497 \tabularnewline
39 & 112.5 & 115.074806082803 & -2.57480608280291 \tabularnewline
40 & 111.4 & 115.700351731121 & -4.30035173112079 \tabularnewline
41 & 115.3 & 116.325897379439 & -1.02589737943868 \tabularnewline
42 & 110.8 & 116.951443027757 & -6.15144302775657 \tabularnewline
43 & 103.7 & 117.576988676074 & -13.8769886760744 \tabularnewline
44 & 111.1 & 106.962923130808 & 4.13707686919245 \tabularnewline
45 & 113 & 107.588468779125 & 5.41153122087457 \tabularnewline
46 & 111.2 & 108.214014427443 & 2.98598557255669 \tabularnewline
47 & 117.6 & 108.839560075761 & 8.7604399242388 \tabularnewline
48 & 121.7 & 109.465105724079 & 12.2348942759209 \tabularnewline
49 & 127.3 & 110.090651372397 & 17.2093486276030 \tabularnewline
50 & 129.8 & 110.716197020715 & 19.0838029792852 \tabularnewline
51 & 137.1 & 111.341742669033 & 25.7582573309673 \tabularnewline
52 & 141.4 & 111.967288317351 & 29.4327116826494 \tabularnewline
53 & 137.4 & 112.592833965669 & 24.8071660343315 \tabularnewline
54 & 130.7 & 113.218379613986 & 17.4816203860136 \tabularnewline
55 & 117.2 & 113.843925262304 & 3.35607473769574 \tabularnewline
56 & 110.8 & 125.709082104207 & -14.9090821042069 \tabularnewline
57 & 111.4 & 126.334627752525 & -14.9346277525248 \tabularnewline
58 & 108.2 & 126.960173400843 & -18.7601734008427 \tabularnewline
59 & 108.8 & 127.585719049161 & -18.7857190491606 \tabularnewline
60 & 110.2 & 128.211264697478 & -18.0112646974785 \tabularnewline
61 & 109.5 & 139.995049928400 & -30.4950499283996 \tabularnewline
62 & 109.5 & 140.620595576717 & -31.1205955767174 \tabularnewline
63 & 116 & 141.246141225035 & -25.2461412250353 \tabularnewline
64 & 111.2 & 141.871686873353 & -30.6716868733532 \tabularnewline
65 & 112.1 & 142.497232521671 & -30.3972325216711 \tabularnewline
66 & 114 & 143.122778169989 & -29.122778169989 \tabularnewline
67 & 119.1 & 143.748323818307 & -24.6483238183069 \tabularnewline
68 & 114.1 & 121.894647079455 & -7.79464707945516 \tabularnewline
69 & 115.1 & 122.520192727773 & -7.42019272777305 \tabularnewline
70 & 115.4 & 123.145738376091 & -7.74573837609092 \tabularnewline
71 & 110.8 & 123.771284024409 & -12.9712840244088 \tabularnewline
72 & 116 & 124.396829672727 & -8.39682967272669 \tabularnewline
73 & 119.2 & 136.180614903648 & -16.9806149036478 \tabularnewline
74 & 126.5 & 136.806160551966 & -10.3061605519657 \tabularnewline
75 & 127.8 & 137.431706200284 & -9.63170620028354 \tabularnewline
76 & 131.3 & 138.057251848601 & -6.75725184860141 \tabularnewline
77 & 140.3 & 138.682797496919 & 1.61720250308070 \tabularnewline
78 & 137.3 & 139.308343145237 & -2.00834314523718 \tabularnewline
79 & 143 & 139.933888793555 & 3.06611120644492 \tabularnewline
80 & 134.5 & 163.038656829043 & -28.5386568290425 \tabularnewline
81 & 139.9 & 163.664202477360 & -23.7642024773604 \tabularnewline
82 & 159.3 & 164.289748125678 & -4.98974812567829 \tabularnewline
83 & 170.4 & 164.915293773996 & 5.48470622600382 \tabularnewline
84 & 175 & 165.540839422314 & 9.45916057768593 \tabularnewline
85 & 175.8 & 166.166385070632 & 9.63361492936805 \tabularnewline
86 & 180.9 & 166.79193071895 & 14.1080692810502 \tabularnewline
87 & 180.3 & 167.417476367268 & 12.8825236327323 \tabularnewline
88 & 169.6 & 168.043022015586 & 1.55697798441439 \tabularnewline
89 & 172.3 & 168.668567663904 & 3.63143233609652 \tabularnewline
90 & 184.8 & 169.294113312221 & 15.5058866877786 \tabularnewline
91 & 177.7 & 169.919658960539 & 7.78034103946073 \tabularnewline
92 & 184.6 & 170.545204608857 & 14.0547953911429 \tabularnewline
93 & 211.4 & 171.170750257175 & 40.229249742825 \tabularnewline
94 & 215.3 & 171.796295905493 & 43.5037040945071 \tabularnewline
95 & 215.9 & 172.421841553811 & 43.4781584461892 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14369&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]102.7[/C][C]91.3040714467235[/C][C]11.3959285532766[/C][/ROW]
[ROW][C]2[/C][C]103.2[/C][C]91.9296170950413[/C][C]11.2703829049588[/C][/ROW]
[ROW][C]3[/C][C]105.6[/C][C]92.555162743359[/C][C]13.0448372566409[/C][/ROW]
[ROW][C]4[/C][C]103.9[/C][C]93.180708391677[/C][C]10.7192916083231[/C][/ROW]
[ROW][C]5[/C][C]107.2[/C][C]93.8062540399949[/C][C]13.3937459600052[/C][/ROW]
[ROW][C]6[/C][C]100.7[/C][C]94.4317996883127[/C][C]6.26820031168726[/C][/ROW]
[ROW][C]7[/C][C]92.1[/C][C]95.0573453366306[/C][C]-2.95734533663062[/C][/ROW]
[ROW][C]8[/C][C]90.3[/C][C]95.6828909849485[/C][C]-5.3828909849485[/C][/ROW]
[ROW][C]9[/C][C]93.4[/C][C]96.3084366332664[/C][C]-2.90843663326638[/C][/ROW]
[ROW][C]10[/C][C]98.5[/C][C]96.9339822815843[/C][C]1.56601771841573[/C][/ROW]
[ROW][C]11[/C][C]100.8[/C][C]97.5595279299022[/C][C]3.24047207009784[/C][/ROW]
[ROW][C]12[/C][C]102.3[/C][C]98.18507357822[/C][C]4.11492642177996[/C][/ROW]
[ROW][C]13[/C][C]104.7[/C][C]98.810619226538[/C][C]5.88938077346208[/C][/ROW]
[ROW][C]14[/C][C]101.1[/C][C]99.4361648748558[/C][C]1.66383512514418[/C][/ROW]
[ROW][C]15[/C][C]101.4[/C][C]100.061710523174[/C][C]1.33828947682631[/C][/ROW]
[ROW][C]16[/C][C]99.5[/C][C]100.687256171492[/C][C]-1.18725617149158[/C][/ROW]
[ROW][C]17[/C][C]98.4[/C][C]101.312801819809[/C][C]-2.91280181980946[/C][/ROW]
[ROW][C]18[/C][C]96.3[/C][C]101.938347468127[/C][C]-5.63834746812735[/C][/ROW]
[ROW][C]19[/C][C]100.7[/C][C]102.563893116445[/C][C]-1.86389311644523[/C][/ROW]
[ROW][C]20[/C][C]101.2[/C][C]103.189438764763[/C][C]-1.98943876476311[/C][/ROW]
[ROW][C]21[/C][C]100.3[/C][C]103.814984413081[/C][C]-3.514984413081[/C][/ROW]
[ROW][C]22[/C][C]97.8[/C][C]104.440530061399[/C][C]-6.64053006139888[/C][/ROW]
[ROW][C]23[/C][C]97.4[/C][C]105.066075709717[/C][C]-7.66607570971676[/C][/ROW]
[ROW][C]24[/C][C]98.6[/C][C]105.691621358035[/C][C]-7.09162135803466[/C][/ROW]
[ROW][C]25[/C][C]99.7[/C][C]106.317167006353[/C][C]-6.61716700635253[/C][/ROW]
[ROW][C]26[/C][C]99[/C][C]106.942712654670[/C][C]-7.94271265467042[/C][/ROW]
[ROW][C]27[/C][C]98.1[/C][C]107.568258302988[/C][C]-9.4682583029883[/C][/ROW]
[ROW][C]28[/C][C]97[/C][C]108.193803951306[/C][C]-11.1938039513062[/C][/ROW]
[ROW][C]29[/C][C]98.5[/C][C]108.819349599624[/C][C]-10.3193495996241[/C][/ROW]
[ROW][C]30[/C][C]103.8[/C][C]109.444895247942[/C][C]-5.64489524794196[/C][/ROW]
[ROW][C]31[/C][C]114.4[/C][C]110.070440896260[/C][C]4.32955910374017[/C][/ROW]
[ROW][C]32[/C][C]124.5[/C][C]110.695986544578[/C][C]13.8040134554223[/C][/ROW]
[ROW][C]33[/C][C]134.2[/C][C]111.321532192896[/C][C]22.8784678071044[/C][/ROW]
[ROW][C]34[/C][C]131.8[/C][C]111.947077841213[/C][C]19.8529221587865[/C][/ROW]
[ROW][C]35[/C][C]125.6[/C][C]112.572623489531[/C][C]13.0273765104686[/C][/ROW]
[ROW][C]36[/C][C]119.9[/C][C]113.198169137849[/C][C]6.70183086215074[/C][/ROW]
[ROW][C]37[/C][C]114.9[/C][C]113.823714786167[/C][C]1.07628521383286[/C][/ROW]
[ROW][C]38[/C][C]115.5[/C][C]114.449260434485[/C][C]1.05073956551497[/C][/ROW]
[ROW][C]39[/C][C]112.5[/C][C]115.074806082803[/C][C]-2.57480608280291[/C][/ROW]
[ROW][C]40[/C][C]111.4[/C][C]115.700351731121[/C][C]-4.30035173112079[/C][/ROW]
[ROW][C]41[/C][C]115.3[/C][C]116.325897379439[/C][C]-1.02589737943868[/C][/ROW]
[ROW][C]42[/C][C]110.8[/C][C]116.951443027757[/C][C]-6.15144302775657[/C][/ROW]
[ROW][C]43[/C][C]103.7[/C][C]117.576988676074[/C][C]-13.8769886760744[/C][/ROW]
[ROW][C]44[/C][C]111.1[/C][C]106.962923130808[/C][C]4.13707686919245[/C][/ROW]
[ROW][C]45[/C][C]113[/C][C]107.588468779125[/C][C]5.41153122087457[/C][/ROW]
[ROW][C]46[/C][C]111.2[/C][C]108.214014427443[/C][C]2.98598557255669[/C][/ROW]
[ROW][C]47[/C][C]117.6[/C][C]108.839560075761[/C][C]8.7604399242388[/C][/ROW]
[ROW][C]48[/C][C]121.7[/C][C]109.465105724079[/C][C]12.2348942759209[/C][/ROW]
[ROW][C]49[/C][C]127.3[/C][C]110.090651372397[/C][C]17.2093486276030[/C][/ROW]
[ROW][C]50[/C][C]129.8[/C][C]110.716197020715[/C][C]19.0838029792852[/C][/ROW]
[ROW][C]51[/C][C]137.1[/C][C]111.341742669033[/C][C]25.7582573309673[/C][/ROW]
[ROW][C]52[/C][C]141.4[/C][C]111.967288317351[/C][C]29.4327116826494[/C][/ROW]
[ROW][C]53[/C][C]137.4[/C][C]112.592833965669[/C][C]24.8071660343315[/C][/ROW]
[ROW][C]54[/C][C]130.7[/C][C]113.218379613986[/C][C]17.4816203860136[/C][/ROW]
[ROW][C]55[/C][C]117.2[/C][C]113.843925262304[/C][C]3.35607473769574[/C][/ROW]
[ROW][C]56[/C][C]110.8[/C][C]125.709082104207[/C][C]-14.9090821042069[/C][/ROW]
[ROW][C]57[/C][C]111.4[/C][C]126.334627752525[/C][C]-14.9346277525248[/C][/ROW]
[ROW][C]58[/C][C]108.2[/C][C]126.960173400843[/C][C]-18.7601734008427[/C][/ROW]
[ROW][C]59[/C][C]108.8[/C][C]127.585719049161[/C][C]-18.7857190491606[/C][/ROW]
[ROW][C]60[/C][C]110.2[/C][C]128.211264697478[/C][C]-18.0112646974785[/C][/ROW]
[ROW][C]61[/C][C]109.5[/C][C]139.995049928400[/C][C]-30.4950499283996[/C][/ROW]
[ROW][C]62[/C][C]109.5[/C][C]140.620595576717[/C][C]-31.1205955767174[/C][/ROW]
[ROW][C]63[/C][C]116[/C][C]141.246141225035[/C][C]-25.2461412250353[/C][/ROW]
[ROW][C]64[/C][C]111.2[/C][C]141.871686873353[/C][C]-30.6716868733532[/C][/ROW]
[ROW][C]65[/C][C]112.1[/C][C]142.497232521671[/C][C]-30.3972325216711[/C][/ROW]
[ROW][C]66[/C][C]114[/C][C]143.122778169989[/C][C]-29.122778169989[/C][/ROW]
[ROW][C]67[/C][C]119.1[/C][C]143.748323818307[/C][C]-24.6483238183069[/C][/ROW]
[ROW][C]68[/C][C]114.1[/C][C]121.894647079455[/C][C]-7.79464707945516[/C][/ROW]
[ROW][C]69[/C][C]115.1[/C][C]122.520192727773[/C][C]-7.42019272777305[/C][/ROW]
[ROW][C]70[/C][C]115.4[/C][C]123.145738376091[/C][C]-7.74573837609092[/C][/ROW]
[ROW][C]71[/C][C]110.8[/C][C]123.771284024409[/C][C]-12.9712840244088[/C][/ROW]
[ROW][C]72[/C][C]116[/C][C]124.396829672727[/C][C]-8.39682967272669[/C][/ROW]
[ROW][C]73[/C][C]119.2[/C][C]136.180614903648[/C][C]-16.9806149036478[/C][/ROW]
[ROW][C]74[/C][C]126.5[/C][C]136.806160551966[/C][C]-10.3061605519657[/C][/ROW]
[ROW][C]75[/C][C]127.8[/C][C]137.431706200284[/C][C]-9.63170620028354[/C][/ROW]
[ROW][C]76[/C][C]131.3[/C][C]138.057251848601[/C][C]-6.75725184860141[/C][/ROW]
[ROW][C]77[/C][C]140.3[/C][C]138.682797496919[/C][C]1.61720250308070[/C][/ROW]
[ROW][C]78[/C][C]137.3[/C][C]139.308343145237[/C][C]-2.00834314523718[/C][/ROW]
[ROW][C]79[/C][C]143[/C][C]139.933888793555[/C][C]3.06611120644492[/C][/ROW]
[ROW][C]80[/C][C]134.5[/C][C]163.038656829043[/C][C]-28.5386568290425[/C][/ROW]
[ROW][C]81[/C][C]139.9[/C][C]163.664202477360[/C][C]-23.7642024773604[/C][/ROW]
[ROW][C]82[/C][C]159.3[/C][C]164.289748125678[/C][C]-4.98974812567829[/C][/ROW]
[ROW][C]83[/C][C]170.4[/C][C]164.915293773996[/C][C]5.48470622600382[/C][/ROW]
[ROW][C]84[/C][C]175[/C][C]165.540839422314[/C][C]9.45916057768593[/C][/ROW]
[ROW][C]85[/C][C]175.8[/C][C]166.166385070632[/C][C]9.63361492936805[/C][/ROW]
[ROW][C]86[/C][C]180.9[/C][C]166.79193071895[/C][C]14.1080692810502[/C][/ROW]
[ROW][C]87[/C][C]180.3[/C][C]167.417476367268[/C][C]12.8825236327323[/C][/ROW]
[ROW][C]88[/C][C]169.6[/C][C]168.043022015586[/C][C]1.55697798441439[/C][/ROW]
[ROW][C]89[/C][C]172.3[/C][C]168.668567663904[/C][C]3.63143233609652[/C][/ROW]
[ROW][C]90[/C][C]184.8[/C][C]169.294113312221[/C][C]15.5058866877786[/C][/ROW]
[ROW][C]91[/C][C]177.7[/C][C]169.919658960539[/C][C]7.78034103946073[/C][/ROW]
[ROW][C]92[/C][C]184.6[/C][C]170.545204608857[/C][C]14.0547953911429[/C][/ROW]
[ROW][C]93[/C][C]211.4[/C][C]171.170750257175[/C][C]40.229249742825[/C][/ROW]
[ROW][C]94[/C][C]215.3[/C][C]171.796295905493[/C][C]43.5037040945071[/C][/ROW]
[ROW][C]95[/C][C]215.9[/C][C]172.421841553811[/C][C]43.4781584461892[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14369&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14369&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
1102.791.304071446723511.3959285532766
2103.291.929617095041311.2703829049588
3105.692.55516274335913.0448372566409
4103.993.18070839167710.7192916083231
5107.293.806254039994913.3937459600052
6100.794.43179968831276.26820031168726
792.195.0573453366306-2.95734533663062
890.395.6828909849485-5.3828909849485
993.496.3084366332664-2.90843663326638
1098.596.93398228158431.56601771841573
11100.897.55952792990223.24047207009784
12102.398.185073578224.11492642177996
13104.798.8106192265385.88938077346208
14101.199.43616487485581.66383512514418
15101.4100.0617105231741.33828947682631
1699.5100.687256171492-1.18725617149158
1798.4101.312801819809-2.91280181980946
1896.3101.938347468127-5.63834746812735
19100.7102.563893116445-1.86389311644523
20101.2103.189438764763-1.98943876476311
21100.3103.814984413081-3.514984413081
2297.8104.440530061399-6.64053006139888
2397.4105.066075709717-7.66607570971676
2498.6105.691621358035-7.09162135803466
2599.7106.317167006353-6.61716700635253
2699106.942712654670-7.94271265467042
2798.1107.568258302988-9.4682583029883
2897108.193803951306-11.1938039513062
2998.5108.819349599624-10.3193495996241
30103.8109.444895247942-5.64489524794196
31114.4110.0704408962604.32955910374017
32124.5110.69598654457813.8040134554223
33134.2111.32153219289622.8784678071044
34131.8111.94707784121319.8529221587865
35125.6112.57262348953113.0273765104686
36119.9113.1981691378496.70183086215074
37114.9113.8237147861671.07628521383286
38115.5114.4492604344851.05073956551497
39112.5115.074806082803-2.57480608280291
40111.4115.700351731121-4.30035173112079
41115.3116.325897379439-1.02589737943868
42110.8116.951443027757-6.15144302775657
43103.7117.576988676074-13.8769886760744
44111.1106.9629231308084.13707686919245
45113107.5884687791255.41153122087457
46111.2108.2140144274432.98598557255669
47117.6108.8395600757618.7604399242388
48121.7109.46510572407912.2348942759209
49127.3110.09065137239717.2093486276030
50129.8110.71619702071519.0838029792852
51137.1111.34174266903325.7582573309673
52141.4111.96728831735129.4327116826494
53137.4112.59283396566924.8071660343315
54130.7113.21837961398617.4816203860136
55117.2113.8439252623043.35607473769574
56110.8125.709082104207-14.9090821042069
57111.4126.334627752525-14.9346277525248
58108.2126.960173400843-18.7601734008427
59108.8127.585719049161-18.7857190491606
60110.2128.211264697478-18.0112646974785
61109.5139.995049928400-30.4950499283996
62109.5140.620595576717-31.1205955767174
63116141.246141225035-25.2461412250353
64111.2141.871686873353-30.6716868733532
65112.1142.497232521671-30.3972325216711
66114143.122778169989-29.122778169989
67119.1143.748323818307-24.6483238183069
68114.1121.894647079455-7.79464707945516
69115.1122.520192727773-7.42019272777305
70115.4123.145738376091-7.74573837609092
71110.8123.771284024409-12.9712840244088
72116124.396829672727-8.39682967272669
73119.2136.180614903648-16.9806149036478
74126.5136.806160551966-10.3061605519657
75127.8137.431706200284-9.63170620028354
76131.3138.057251848601-6.75725184860141
77140.3138.6827974969191.61720250308070
78137.3139.308343145237-2.00834314523718
79143139.9338887935553.06611120644492
80134.5163.038656829043-28.5386568290425
81139.9163.664202477360-23.7642024773604
82159.3164.289748125678-4.98974812567829
83170.4164.9152937739965.48470622600382
84175165.5408394223149.45916057768593
85175.8166.1663850706329.63361492936805
86180.9166.7919307189514.1080692810502
87180.3167.41747636726812.8825236327323
88169.6168.0430220155861.55697798441439
89172.3168.6685676639043.63143233609652
90184.8169.29411331222115.5058866877786
91177.7169.9196589605397.78034103946073
92184.6170.54520460885714.0547953911429
93211.4171.17075025717540.229249742825
94215.3171.79629590549343.5037040945071
95215.9172.42184155381143.4781584461892



Parameters (Session):
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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')