Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 19 Nov 2007 03:15:52 -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/19/t1195467182ipwg5hhfzejfbki.htm/, Retrieved Fri, 03 May 2024 11:13:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5662, Retrieved Fri, 03 May 2024 11:13:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsws 6 vraag 3 groep 1
Estimated Impact219
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [ws 6 vraag 3] [2007-11-19 10:15:52] [443d2fe869025e720a9fee03b1da487c] [Current]
Feedback Forum

Post a new message
Dataseries X:
97,3	0
101	0
113,2	0
101	0
105,7	0
113,9	0
86,4	0
96,5	0
103,3	0
114,9	0
105,8	0
94,2	0
98,4	0
99,4	0
108,8	0
112,6	0
104,4	0
112,2	0
81,1	0
97,1	0
112,6	0
113,8	0
107,8	0
103,2	0
103,3	0
101,2	0
107,7	0
110,4	0
101,9	0
115,9	0
89,9	0
88,6	0
117,2	0
123,9	0
100	1
103,6	1
94,1	1
98,7	1
119,5	1
112,7	1
104,4	1
124,7	1
89,1	1
97	1
121,6	1
118,8	1
114	1
111,5	1
97,2	1
102,5	1
113,4	1
109,8	1
104,9	1
126,1	1
80	1
96,8	1
117,2	1
112,3	1
117,3	1
111,1	1
102,2	1
104,3	1
122,9	1
107,6	1
121,3	1
131,5	1
89	1
104,4	1
128,9	1
135,9	1
133,3	1
121,3	1
120,5	1
120,4	1
137,9	1
126,1	1
133,2	1
146,6	1
103,4	1
117,2	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=5662&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=5662&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5662&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
y[t] = + 94.4683808553971 -8.64511201629328x[t] -4.21401537193293M1[t] -2.58969062166619M2[t] + 10.6632055571719M3[t] + 4.04467316458152M4[t] + 2.96899791484821M5[t] + 16.1076083794006M6[t] -20.3394954417612M7[t] -9.54374212006597M8[t] + 9.21712612743672M9[t] + 11.9033556396082M10[t] + 5.99710382116186M11[t] + 0.447103821161866t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  94.4683808553971 -8.64511201629328x[t] -4.21401537193293M1[t] -2.58969062166619M2[t] +  10.6632055571719M3[t] +  4.04467316458152M4[t] +  2.96899791484821M5[t] +  16.1076083794006M6[t] -20.3394954417612M7[t] -9.54374212006597M8[t] +  9.21712612743672M9[t] +  11.9033556396082M10[t] +  5.99710382116186M11[t] +  0.447103821161866t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5662&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  94.4683808553971 -8.64511201629328x[t] -4.21401537193293M1[t] -2.58969062166619M2[t] +  10.6632055571719M3[t] +  4.04467316458152M4[t] +  2.96899791484821M5[t] +  16.1076083794006M6[t] -20.3394954417612M7[t] -9.54374212006597M8[t] +  9.21712612743672M9[t] +  11.9033556396082M10[t] +  5.99710382116186M11[t] +  0.447103821161866t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5662&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5662&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] = + 94.4683808553971 -8.64511201629328x[t] -4.21401537193293M1[t] -2.58969062166619M2[t] + 10.6632055571719M3[t] + 4.04467316458152M4[t] + 2.96899791484821M5[t] + 16.1076083794006M6[t] -20.3394954417612M7[t] -9.54374212006597M8[t] + 9.21712612743672M9[t] + 11.9033556396082M10[t] + 5.99710382116186M11[t] + 0.447103821161866t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)94.46838085539712.73592334.528900
x-8.645112016293282.66331-3.2460.001840.00092
M1-4.214015371932933.319798-1.26940.2087710.104385
M2-2.589690621666193.319146-0.78020.4380460.219023
M310.66320555717193.3194713.21230.0020370.001018
M44.044673164581523.3207751.2180.2275640.113782
M52.968997914848213.3230550.89350.374860.18743
M616.10760837940063.3263114.84258e-064e-06
M7-20.33949544176123.330538-6.10700
M8-9.543742120065973.335733-2.86110.005650.002825
M99.217126127436723.4556812.66720.0096110.004805
M1011.90335563960823.4596333.44060.0010110.000505
M115.997103821161863.4422971.74220.0861350.043068
t0.4471038211618660.0569847.846100

\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) & 94.4683808553971 & 2.735923 & 34.5289 & 0 & 0 \tabularnewline
x & -8.64511201629328 & 2.66331 & -3.246 & 0.00184 & 0.00092 \tabularnewline
M1 & -4.21401537193293 & 3.319798 & -1.2694 & 0.208771 & 0.104385 \tabularnewline
M2 & -2.58969062166619 & 3.319146 & -0.7802 & 0.438046 & 0.219023 \tabularnewline
M3 & 10.6632055571719 & 3.319471 & 3.2123 & 0.002037 & 0.001018 \tabularnewline
M4 & 4.04467316458152 & 3.320775 & 1.218 & 0.227564 & 0.113782 \tabularnewline
M5 & 2.96899791484821 & 3.323055 & 0.8935 & 0.37486 & 0.18743 \tabularnewline
M6 & 16.1076083794006 & 3.326311 & 4.8425 & 8e-06 & 4e-06 \tabularnewline
M7 & -20.3394954417612 & 3.330538 & -6.107 & 0 & 0 \tabularnewline
M8 & -9.54374212006597 & 3.335733 & -2.8611 & 0.00565 & 0.002825 \tabularnewline
M9 & 9.21712612743672 & 3.455681 & 2.6672 & 0.009611 & 0.004805 \tabularnewline
M10 & 11.9033556396082 & 3.459633 & 3.4406 & 0.001011 & 0.000505 \tabularnewline
M11 & 5.99710382116186 & 3.442297 & 1.7422 & 0.086135 & 0.043068 \tabularnewline
t & 0.447103821161866 & 0.056984 & 7.8461 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5662&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]94.4683808553971[/C][C]2.735923[/C][C]34.5289[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-8.64511201629328[/C][C]2.66331[/C][C]-3.246[/C][C]0.00184[/C][C]0.00092[/C][/ROW]
[ROW][C]M1[/C][C]-4.21401537193293[/C][C]3.319798[/C][C]-1.2694[/C][C]0.208771[/C][C]0.104385[/C][/ROW]
[ROW][C]M2[/C][C]-2.58969062166619[/C][C]3.319146[/C][C]-0.7802[/C][C]0.438046[/C][C]0.219023[/C][/ROW]
[ROW][C]M3[/C][C]10.6632055571719[/C][C]3.319471[/C][C]3.2123[/C][C]0.002037[/C][C]0.001018[/C][/ROW]
[ROW][C]M4[/C][C]4.04467316458152[/C][C]3.320775[/C][C]1.218[/C][C]0.227564[/C][C]0.113782[/C][/ROW]
[ROW][C]M5[/C][C]2.96899791484821[/C][C]3.323055[/C][C]0.8935[/C][C]0.37486[/C][C]0.18743[/C][/ROW]
[ROW][C]M6[/C][C]16.1076083794006[/C][C]3.326311[/C][C]4.8425[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M7[/C][C]-20.3394954417612[/C][C]3.330538[/C][C]-6.107[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-9.54374212006597[/C][C]3.335733[/C][C]-2.8611[/C][C]0.00565[/C][C]0.002825[/C][/ROW]
[ROW][C]M9[/C][C]9.21712612743672[/C][C]3.455681[/C][C]2.6672[/C][C]0.009611[/C][C]0.004805[/C][/ROW]
[ROW][C]M10[/C][C]11.9033556396082[/C][C]3.459633[/C][C]3.4406[/C][C]0.001011[/C][C]0.000505[/C][/ROW]
[ROW][C]M11[/C][C]5.99710382116186[/C][C]3.442297[/C][C]1.7422[/C][C]0.086135[/C][C]0.043068[/C][/ROW]
[ROW][C]t[/C][C]0.447103821161866[/C][C]0.056984[/C][C]7.8461[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5662&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5662&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)94.46838085539712.73592334.528900
x-8.645112016293282.66331-3.2460.001840.00092
M1-4.214015371932933.319798-1.26940.2087710.104385
M2-2.589690621666193.319146-0.78020.4380460.219023
M310.66320555717193.3194713.21230.0020370.001018
M44.044673164581523.3207751.2180.2275640.113782
M52.968997914848213.3230550.89350.374860.18743
M616.10760837940063.3263114.84258e-064e-06
M7-20.33949544176123.330538-6.10700
M8-9.543742120065973.335733-2.86110.005650.002825
M99.217126127436723.4556812.66720.0096110.004805
M1011.90335563960823.4596333.44060.0010110.000505
M115.997103821161863.4422971.74220.0861350.043068
t0.4471038211618660.0569847.846100







Multiple Linear Regression - Regression Statistics
Multiple R0.910883692866785
R-squared0.829709101930632
Adjusted R-squared0.796166955341211
F-TEST (value)24.7363149439076
F-TEST (DF numerator)13
F-TEST (DF denominator)66
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.96141569664024
Sum Squared Residuals2345.53948913781

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.910883692866785 \tabularnewline
R-squared & 0.829709101930632 \tabularnewline
Adjusted R-squared & 0.796166955341211 \tabularnewline
F-TEST (value) & 24.7363149439076 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 66 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.96141569664024 \tabularnewline
Sum Squared Residuals & 2345.53948913781 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5662&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.910883692866785[/C][/ROW]
[ROW][C]R-squared[/C][C]0.829709101930632[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.796166955341211[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]24.7363149439076[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]66[/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]5.96141569664024[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2345.53948913781[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5662&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5662&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.910883692866785
R-squared0.829709101930632
Adjusted R-squared0.796166955341211
F-TEST (value)24.7363149439076
F-TEST (DF numerator)13
F-TEST (DF denominator)66
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.96141569664024
Sum Squared Residuals2345.53948913781







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
197.390.70146930462646.59853069537361
210192.77289787605478.22710212394531
3113.2106.4728978760556.72710212394528
4101100.3014693046260.698530695373892
5105.799.67289787605476.02710212394534
6113.9113.2586121617690.641387838231008
786.477.2586121617699.14138783823105
896.588.50146930462627.99853069537385
9103.3107.709441373291-4.40944137329064
10114.9110.8427747066244.05722529337604
11105.8105.3836267093400.416373290660460
1294.299.8336267093395-5.63362670933954
1398.496.06671515856852.33328484143154
1499.498.1381437299971.26185627000294
15108.8111.838143729997-3.03814372999709
16112.6105.6667151585696.93328484143148
17104.4105.038143729997-0.638143729997084
18112.2118.623858015711-6.42385801571137
1981.182.6238580157114-1.52385801571138
2097.193.86671515856853.23328484143149
21112.6113.074687227233-0.474687227233058
22113.8116.208020560566-2.40802056056639
23107.8110.748872563282-2.94887256328193
24103.2105.198872563282-1.99887256328194
25103.3101.4319610125111.86803898748913
26101.2103.503389583939-2.30338958393948
27107.7117.203389583939-9.50338958393948
28110.4111.031961012511-0.631961012510907
29101.9110.403389583939-8.50338958393948
30115.9123.989103869654-8.08910386965376
3189.987.98910386965381.91089613034623
3288.699.231961012511-10.6319610125109
33117.2118.439933081175-1.23993308117545
34123.9121.5732664145092.32673358549123
35100107.469006400931-7.46900640093104
36103.6101.9190064009311.68099359906895
3794.198.15209485016-4.05209485015998
3898.7100.223523421589-1.52352342158859
39119.5113.9235234215895.57647657841141
40112.7107.752094850164.94790514983999
41104.4107.123523421589-2.72352342158859
42124.7120.7092377073033.99076229269713
4389.184.70923770730294.39076229269711
449795.952094850161.04790514983999
45121.6115.1600669188256.43993308117544
46118.8118.2934002521580.506599747842102
47114112.8342522548731.16574774512657
48111.5107.2842522548734.21574774512656
4997.2103.517340704102-6.31734070410237
50102.5105.588769275531-3.08876927553099
51113.4119.288769275531-5.88876927553098
52109.8113.117340704102-3.31734070410242
53104.9112.488769275531-7.58876927553099
54126.1126.0744835612450.0255164387547245
558090.0744835612453-10.0744835612453
5696.8101.317340704102-4.51734070410241
57117.2120.525312772767-3.32531277276695
58112.3123.658646106100-11.3586461061003
59117.3118.199498108816-0.899498108815835
60111.1112.649498108816-1.54949810881584
61102.2108.882586558045-6.68258655804476
62104.3110.954015129473-6.65401512947339
63122.9124.654015129473-1.75401512947337
64107.6118.482586558045-10.8825865580448
65121.3117.8540151294733.44598487052661
66131.5131.4397294151880.0602705848123345
678995.4397294151877-6.43972941518768
68104.4106.682586558045-2.2825865580448
69128.9125.8905586267093.00944137329066
70135.9129.0238919600436.87610803995732
71133.3123.5647439627589.73525603724178
72121.3118.0147439627583.28525603724176
73120.5114.2478324119876.25216758801284
74120.4116.3192609834164.08073901658422
75137.9130.0192609834167.88073901658422
76126.1123.8478324119872.25216758801279
77133.2123.2192609834169.98073901658421
78146.6136.804975269139.79502473086993
79103.4100.804975269132.59502473086993
80117.2112.0478324119875.1521675880128

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 97.3 & 90.7014693046264 & 6.59853069537361 \tabularnewline
2 & 101 & 92.7728978760547 & 8.22710212394531 \tabularnewline
3 & 113.2 & 106.472897876055 & 6.72710212394528 \tabularnewline
4 & 101 & 100.301469304626 & 0.698530695373892 \tabularnewline
5 & 105.7 & 99.6728978760547 & 6.02710212394534 \tabularnewline
6 & 113.9 & 113.258612161769 & 0.641387838231008 \tabularnewline
7 & 86.4 & 77.258612161769 & 9.14138783823105 \tabularnewline
8 & 96.5 & 88.5014693046262 & 7.99853069537385 \tabularnewline
9 & 103.3 & 107.709441373291 & -4.40944137329064 \tabularnewline
10 & 114.9 & 110.842774706624 & 4.05722529337604 \tabularnewline
11 & 105.8 & 105.383626709340 & 0.416373290660460 \tabularnewline
12 & 94.2 & 99.8336267093395 & -5.63362670933954 \tabularnewline
13 & 98.4 & 96.0667151585685 & 2.33328484143154 \tabularnewline
14 & 99.4 & 98.138143729997 & 1.26185627000294 \tabularnewline
15 & 108.8 & 111.838143729997 & -3.03814372999709 \tabularnewline
16 & 112.6 & 105.666715158569 & 6.93328484143148 \tabularnewline
17 & 104.4 & 105.038143729997 & -0.638143729997084 \tabularnewline
18 & 112.2 & 118.623858015711 & -6.42385801571137 \tabularnewline
19 & 81.1 & 82.6238580157114 & -1.52385801571138 \tabularnewline
20 & 97.1 & 93.8667151585685 & 3.23328484143149 \tabularnewline
21 & 112.6 & 113.074687227233 & -0.474687227233058 \tabularnewline
22 & 113.8 & 116.208020560566 & -2.40802056056639 \tabularnewline
23 & 107.8 & 110.748872563282 & -2.94887256328193 \tabularnewline
24 & 103.2 & 105.198872563282 & -1.99887256328194 \tabularnewline
25 & 103.3 & 101.431961012511 & 1.86803898748913 \tabularnewline
26 & 101.2 & 103.503389583939 & -2.30338958393948 \tabularnewline
27 & 107.7 & 117.203389583939 & -9.50338958393948 \tabularnewline
28 & 110.4 & 111.031961012511 & -0.631961012510907 \tabularnewline
29 & 101.9 & 110.403389583939 & -8.50338958393948 \tabularnewline
30 & 115.9 & 123.989103869654 & -8.08910386965376 \tabularnewline
31 & 89.9 & 87.9891038696538 & 1.91089613034623 \tabularnewline
32 & 88.6 & 99.231961012511 & -10.6319610125109 \tabularnewline
33 & 117.2 & 118.439933081175 & -1.23993308117545 \tabularnewline
34 & 123.9 & 121.573266414509 & 2.32673358549123 \tabularnewline
35 & 100 & 107.469006400931 & -7.46900640093104 \tabularnewline
36 & 103.6 & 101.919006400931 & 1.68099359906895 \tabularnewline
37 & 94.1 & 98.15209485016 & -4.05209485015998 \tabularnewline
38 & 98.7 & 100.223523421589 & -1.52352342158859 \tabularnewline
39 & 119.5 & 113.923523421589 & 5.57647657841141 \tabularnewline
40 & 112.7 & 107.75209485016 & 4.94790514983999 \tabularnewline
41 & 104.4 & 107.123523421589 & -2.72352342158859 \tabularnewline
42 & 124.7 & 120.709237707303 & 3.99076229269713 \tabularnewline
43 & 89.1 & 84.7092377073029 & 4.39076229269711 \tabularnewline
44 & 97 & 95.95209485016 & 1.04790514983999 \tabularnewline
45 & 121.6 & 115.160066918825 & 6.43993308117544 \tabularnewline
46 & 118.8 & 118.293400252158 & 0.506599747842102 \tabularnewline
47 & 114 & 112.834252254873 & 1.16574774512657 \tabularnewline
48 & 111.5 & 107.284252254873 & 4.21574774512656 \tabularnewline
49 & 97.2 & 103.517340704102 & -6.31734070410237 \tabularnewline
50 & 102.5 & 105.588769275531 & -3.08876927553099 \tabularnewline
51 & 113.4 & 119.288769275531 & -5.88876927553098 \tabularnewline
52 & 109.8 & 113.117340704102 & -3.31734070410242 \tabularnewline
53 & 104.9 & 112.488769275531 & -7.58876927553099 \tabularnewline
54 & 126.1 & 126.074483561245 & 0.0255164387547245 \tabularnewline
55 & 80 & 90.0744835612453 & -10.0744835612453 \tabularnewline
56 & 96.8 & 101.317340704102 & -4.51734070410241 \tabularnewline
57 & 117.2 & 120.525312772767 & -3.32531277276695 \tabularnewline
58 & 112.3 & 123.658646106100 & -11.3586461061003 \tabularnewline
59 & 117.3 & 118.199498108816 & -0.899498108815835 \tabularnewline
60 & 111.1 & 112.649498108816 & -1.54949810881584 \tabularnewline
61 & 102.2 & 108.882586558045 & -6.68258655804476 \tabularnewline
62 & 104.3 & 110.954015129473 & -6.65401512947339 \tabularnewline
63 & 122.9 & 124.654015129473 & -1.75401512947337 \tabularnewline
64 & 107.6 & 118.482586558045 & -10.8825865580448 \tabularnewline
65 & 121.3 & 117.854015129473 & 3.44598487052661 \tabularnewline
66 & 131.5 & 131.439729415188 & 0.0602705848123345 \tabularnewline
67 & 89 & 95.4397294151877 & -6.43972941518768 \tabularnewline
68 & 104.4 & 106.682586558045 & -2.2825865580448 \tabularnewline
69 & 128.9 & 125.890558626709 & 3.00944137329066 \tabularnewline
70 & 135.9 & 129.023891960043 & 6.87610803995732 \tabularnewline
71 & 133.3 & 123.564743962758 & 9.73525603724178 \tabularnewline
72 & 121.3 & 118.014743962758 & 3.28525603724176 \tabularnewline
73 & 120.5 & 114.247832411987 & 6.25216758801284 \tabularnewline
74 & 120.4 & 116.319260983416 & 4.08073901658422 \tabularnewline
75 & 137.9 & 130.019260983416 & 7.88073901658422 \tabularnewline
76 & 126.1 & 123.847832411987 & 2.25216758801279 \tabularnewline
77 & 133.2 & 123.219260983416 & 9.98073901658421 \tabularnewline
78 & 146.6 & 136.80497526913 & 9.79502473086993 \tabularnewline
79 & 103.4 & 100.80497526913 & 2.59502473086993 \tabularnewline
80 & 117.2 & 112.047832411987 & 5.1521675880128 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5662&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]97.3[/C][C]90.7014693046264[/C][C]6.59853069537361[/C][/ROW]
[ROW][C]2[/C][C]101[/C][C]92.7728978760547[/C][C]8.22710212394531[/C][/ROW]
[ROW][C]3[/C][C]113.2[/C][C]106.472897876055[/C][C]6.72710212394528[/C][/ROW]
[ROW][C]4[/C][C]101[/C][C]100.301469304626[/C][C]0.698530695373892[/C][/ROW]
[ROW][C]5[/C][C]105.7[/C][C]99.6728978760547[/C][C]6.02710212394534[/C][/ROW]
[ROW][C]6[/C][C]113.9[/C][C]113.258612161769[/C][C]0.641387838231008[/C][/ROW]
[ROW][C]7[/C][C]86.4[/C][C]77.258612161769[/C][C]9.14138783823105[/C][/ROW]
[ROW][C]8[/C][C]96.5[/C][C]88.5014693046262[/C][C]7.99853069537385[/C][/ROW]
[ROW][C]9[/C][C]103.3[/C][C]107.709441373291[/C][C]-4.40944137329064[/C][/ROW]
[ROW][C]10[/C][C]114.9[/C][C]110.842774706624[/C][C]4.05722529337604[/C][/ROW]
[ROW][C]11[/C][C]105.8[/C][C]105.383626709340[/C][C]0.416373290660460[/C][/ROW]
[ROW][C]12[/C][C]94.2[/C][C]99.8336267093395[/C][C]-5.63362670933954[/C][/ROW]
[ROW][C]13[/C][C]98.4[/C][C]96.0667151585685[/C][C]2.33328484143154[/C][/ROW]
[ROW][C]14[/C][C]99.4[/C][C]98.138143729997[/C][C]1.26185627000294[/C][/ROW]
[ROW][C]15[/C][C]108.8[/C][C]111.838143729997[/C][C]-3.03814372999709[/C][/ROW]
[ROW][C]16[/C][C]112.6[/C][C]105.666715158569[/C][C]6.93328484143148[/C][/ROW]
[ROW][C]17[/C][C]104.4[/C][C]105.038143729997[/C][C]-0.638143729997084[/C][/ROW]
[ROW][C]18[/C][C]112.2[/C][C]118.623858015711[/C][C]-6.42385801571137[/C][/ROW]
[ROW][C]19[/C][C]81.1[/C][C]82.6238580157114[/C][C]-1.52385801571138[/C][/ROW]
[ROW][C]20[/C][C]97.1[/C][C]93.8667151585685[/C][C]3.23328484143149[/C][/ROW]
[ROW][C]21[/C][C]112.6[/C][C]113.074687227233[/C][C]-0.474687227233058[/C][/ROW]
[ROW][C]22[/C][C]113.8[/C][C]116.208020560566[/C][C]-2.40802056056639[/C][/ROW]
[ROW][C]23[/C][C]107.8[/C][C]110.748872563282[/C][C]-2.94887256328193[/C][/ROW]
[ROW][C]24[/C][C]103.2[/C][C]105.198872563282[/C][C]-1.99887256328194[/C][/ROW]
[ROW][C]25[/C][C]103.3[/C][C]101.431961012511[/C][C]1.86803898748913[/C][/ROW]
[ROW][C]26[/C][C]101.2[/C][C]103.503389583939[/C][C]-2.30338958393948[/C][/ROW]
[ROW][C]27[/C][C]107.7[/C][C]117.203389583939[/C][C]-9.50338958393948[/C][/ROW]
[ROW][C]28[/C][C]110.4[/C][C]111.031961012511[/C][C]-0.631961012510907[/C][/ROW]
[ROW][C]29[/C][C]101.9[/C][C]110.403389583939[/C][C]-8.50338958393948[/C][/ROW]
[ROW][C]30[/C][C]115.9[/C][C]123.989103869654[/C][C]-8.08910386965376[/C][/ROW]
[ROW][C]31[/C][C]89.9[/C][C]87.9891038696538[/C][C]1.91089613034623[/C][/ROW]
[ROW][C]32[/C][C]88.6[/C][C]99.231961012511[/C][C]-10.6319610125109[/C][/ROW]
[ROW][C]33[/C][C]117.2[/C][C]118.439933081175[/C][C]-1.23993308117545[/C][/ROW]
[ROW][C]34[/C][C]123.9[/C][C]121.573266414509[/C][C]2.32673358549123[/C][/ROW]
[ROW][C]35[/C][C]100[/C][C]107.469006400931[/C][C]-7.46900640093104[/C][/ROW]
[ROW][C]36[/C][C]103.6[/C][C]101.919006400931[/C][C]1.68099359906895[/C][/ROW]
[ROW][C]37[/C][C]94.1[/C][C]98.15209485016[/C][C]-4.05209485015998[/C][/ROW]
[ROW][C]38[/C][C]98.7[/C][C]100.223523421589[/C][C]-1.52352342158859[/C][/ROW]
[ROW][C]39[/C][C]119.5[/C][C]113.923523421589[/C][C]5.57647657841141[/C][/ROW]
[ROW][C]40[/C][C]112.7[/C][C]107.75209485016[/C][C]4.94790514983999[/C][/ROW]
[ROW][C]41[/C][C]104.4[/C][C]107.123523421589[/C][C]-2.72352342158859[/C][/ROW]
[ROW][C]42[/C][C]124.7[/C][C]120.709237707303[/C][C]3.99076229269713[/C][/ROW]
[ROW][C]43[/C][C]89.1[/C][C]84.7092377073029[/C][C]4.39076229269711[/C][/ROW]
[ROW][C]44[/C][C]97[/C][C]95.95209485016[/C][C]1.04790514983999[/C][/ROW]
[ROW][C]45[/C][C]121.6[/C][C]115.160066918825[/C][C]6.43993308117544[/C][/ROW]
[ROW][C]46[/C][C]118.8[/C][C]118.293400252158[/C][C]0.506599747842102[/C][/ROW]
[ROW][C]47[/C][C]114[/C][C]112.834252254873[/C][C]1.16574774512657[/C][/ROW]
[ROW][C]48[/C][C]111.5[/C][C]107.284252254873[/C][C]4.21574774512656[/C][/ROW]
[ROW][C]49[/C][C]97.2[/C][C]103.517340704102[/C][C]-6.31734070410237[/C][/ROW]
[ROW][C]50[/C][C]102.5[/C][C]105.588769275531[/C][C]-3.08876927553099[/C][/ROW]
[ROW][C]51[/C][C]113.4[/C][C]119.288769275531[/C][C]-5.88876927553098[/C][/ROW]
[ROW][C]52[/C][C]109.8[/C][C]113.117340704102[/C][C]-3.31734070410242[/C][/ROW]
[ROW][C]53[/C][C]104.9[/C][C]112.488769275531[/C][C]-7.58876927553099[/C][/ROW]
[ROW][C]54[/C][C]126.1[/C][C]126.074483561245[/C][C]0.0255164387547245[/C][/ROW]
[ROW][C]55[/C][C]80[/C][C]90.0744835612453[/C][C]-10.0744835612453[/C][/ROW]
[ROW][C]56[/C][C]96.8[/C][C]101.317340704102[/C][C]-4.51734070410241[/C][/ROW]
[ROW][C]57[/C][C]117.2[/C][C]120.525312772767[/C][C]-3.32531277276695[/C][/ROW]
[ROW][C]58[/C][C]112.3[/C][C]123.658646106100[/C][C]-11.3586461061003[/C][/ROW]
[ROW][C]59[/C][C]117.3[/C][C]118.199498108816[/C][C]-0.899498108815835[/C][/ROW]
[ROW][C]60[/C][C]111.1[/C][C]112.649498108816[/C][C]-1.54949810881584[/C][/ROW]
[ROW][C]61[/C][C]102.2[/C][C]108.882586558045[/C][C]-6.68258655804476[/C][/ROW]
[ROW][C]62[/C][C]104.3[/C][C]110.954015129473[/C][C]-6.65401512947339[/C][/ROW]
[ROW][C]63[/C][C]122.9[/C][C]124.654015129473[/C][C]-1.75401512947337[/C][/ROW]
[ROW][C]64[/C][C]107.6[/C][C]118.482586558045[/C][C]-10.8825865580448[/C][/ROW]
[ROW][C]65[/C][C]121.3[/C][C]117.854015129473[/C][C]3.44598487052661[/C][/ROW]
[ROW][C]66[/C][C]131.5[/C][C]131.439729415188[/C][C]0.0602705848123345[/C][/ROW]
[ROW][C]67[/C][C]89[/C][C]95.4397294151877[/C][C]-6.43972941518768[/C][/ROW]
[ROW][C]68[/C][C]104.4[/C][C]106.682586558045[/C][C]-2.2825865580448[/C][/ROW]
[ROW][C]69[/C][C]128.9[/C][C]125.890558626709[/C][C]3.00944137329066[/C][/ROW]
[ROW][C]70[/C][C]135.9[/C][C]129.023891960043[/C][C]6.87610803995732[/C][/ROW]
[ROW][C]71[/C][C]133.3[/C][C]123.564743962758[/C][C]9.73525603724178[/C][/ROW]
[ROW][C]72[/C][C]121.3[/C][C]118.014743962758[/C][C]3.28525603724176[/C][/ROW]
[ROW][C]73[/C][C]120.5[/C][C]114.247832411987[/C][C]6.25216758801284[/C][/ROW]
[ROW][C]74[/C][C]120.4[/C][C]116.319260983416[/C][C]4.08073901658422[/C][/ROW]
[ROW][C]75[/C][C]137.9[/C][C]130.019260983416[/C][C]7.88073901658422[/C][/ROW]
[ROW][C]76[/C][C]126.1[/C][C]123.847832411987[/C][C]2.25216758801279[/C][/ROW]
[ROW][C]77[/C][C]133.2[/C][C]123.219260983416[/C][C]9.98073901658421[/C][/ROW]
[ROW][C]78[/C][C]146.6[/C][C]136.80497526913[/C][C]9.79502473086993[/C][/ROW]
[ROW][C]79[/C][C]103.4[/C][C]100.80497526913[/C][C]2.59502473086993[/C][/ROW]
[ROW][C]80[/C][C]117.2[/C][C]112.047832411987[/C][C]5.1521675880128[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5662&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5662&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
197.390.70146930462646.59853069537361
210192.77289787605478.22710212394531
3113.2106.4728978760556.72710212394528
4101100.3014693046260.698530695373892
5105.799.67289787605476.02710212394534
6113.9113.2586121617690.641387838231008
786.477.2586121617699.14138783823105
896.588.50146930462627.99853069537385
9103.3107.709441373291-4.40944137329064
10114.9110.8427747066244.05722529337604
11105.8105.3836267093400.416373290660460
1294.299.8336267093395-5.63362670933954
1398.496.06671515856852.33328484143154
1499.498.1381437299971.26185627000294
15108.8111.838143729997-3.03814372999709
16112.6105.6667151585696.93328484143148
17104.4105.038143729997-0.638143729997084
18112.2118.623858015711-6.42385801571137
1981.182.6238580157114-1.52385801571138
2097.193.86671515856853.23328484143149
21112.6113.074687227233-0.474687227233058
22113.8116.208020560566-2.40802056056639
23107.8110.748872563282-2.94887256328193
24103.2105.198872563282-1.99887256328194
25103.3101.4319610125111.86803898748913
26101.2103.503389583939-2.30338958393948
27107.7117.203389583939-9.50338958393948
28110.4111.031961012511-0.631961012510907
29101.9110.403389583939-8.50338958393948
30115.9123.989103869654-8.08910386965376
3189.987.98910386965381.91089613034623
3288.699.231961012511-10.6319610125109
33117.2118.439933081175-1.23993308117545
34123.9121.5732664145092.32673358549123
35100107.469006400931-7.46900640093104
36103.6101.9190064009311.68099359906895
3794.198.15209485016-4.05209485015998
3898.7100.223523421589-1.52352342158859
39119.5113.9235234215895.57647657841141
40112.7107.752094850164.94790514983999
41104.4107.123523421589-2.72352342158859
42124.7120.7092377073033.99076229269713
4389.184.70923770730294.39076229269711
449795.952094850161.04790514983999
45121.6115.1600669188256.43993308117544
46118.8118.2934002521580.506599747842102
47114112.8342522548731.16574774512657
48111.5107.2842522548734.21574774512656
4997.2103.517340704102-6.31734070410237
50102.5105.588769275531-3.08876927553099
51113.4119.288769275531-5.88876927553098
52109.8113.117340704102-3.31734070410242
53104.9112.488769275531-7.58876927553099
54126.1126.0744835612450.0255164387547245
558090.0744835612453-10.0744835612453
5696.8101.317340704102-4.51734070410241
57117.2120.525312772767-3.32531277276695
58112.3123.658646106100-11.3586461061003
59117.3118.199498108816-0.899498108815835
60111.1112.649498108816-1.54949810881584
61102.2108.882586558045-6.68258655804476
62104.3110.954015129473-6.65401512947339
63122.9124.654015129473-1.75401512947337
64107.6118.482586558045-10.8825865580448
65121.3117.8540151294733.44598487052661
66131.5131.4397294151880.0602705848123345
678995.4397294151877-6.43972941518768
68104.4106.682586558045-2.2825865580448
69128.9125.8905586267093.00944137329066
70135.9129.0238919600436.87610803995732
71133.3123.5647439627589.73525603724178
72121.3118.0147439627583.28525603724176
73120.5114.2478324119876.25216758801284
74120.4116.3192609834164.08073901658422
75137.9130.0192609834167.88073901658422
76126.1123.8478324119872.25216758801279
77133.2123.2192609834169.98073901658421
78146.6136.804975269139.79502473086993
79103.4100.804975269132.59502473086993
80117.2112.0478324119875.1521675880128



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