Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 27 Nov 2008 08:57:54 -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/2008/Nov/27/t122780164296oa0qzh5y8ajga.htm/, Retrieved Mon, 20 May 2024 09:47:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25848, Retrieved Mon, 20 May 2024 09:47:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [] [2007-11-19 19:55:31] [b731da8b544846036771bbf9bf2f34ce]
F   PD    [Multiple Regression] [Seatbelt law Q3] [2008-11-27 15:57:54] [c4248bbb85fa4e400deddbf50234dcae] [Current]
Feedback Forum
2008-12-01 16:00:21 [Sam De Cuyper] [reply
Welk is de dummy variabele die je gebruikt? Uitleg die je geeft bij de berekeningen is correct. Bij R² moete je rekening houden met de p-waarde, die bij jou 0 is, dus het resultaat is niet toe te wijten aan het toeval.
Ook de uitleg bij de crafieken en de conclusie is terecht.

Post a new message
Dataseries X:
119.5	0
125	0
145	0
105.3	0
116.9	0
120.1	0
88.9	0
78.4	0
114.6	0
113.3	0
117	0
99.6	0
99.4	0
101.9	0
115.2	0
108.5	0
113.8	0
121	0
92.2	0
90.2	0
101.5	0
126.6	0
93.9	0
89.8	0
93.4	0
101.5	0
110.4	0
105.9	0
108.4	0
113.9	0
86.1	0
69.4	0
101.2	0
100.5	0
98	0
106.6	0
90.1	0
96.9	0
125.9	0
112	0
100	0
123.9	0
79.8	0
83.4	0
113.6	0
112.9	0
104	0
109.9	0
99	0
106.3	0
128.9	0
111.1	0
102.9	0
130	0
87	0
87.5	0
117.6	0
103.4	0
110.8	0
112.6	0
102.5	0
112.4	0
135.6	0
105.1	0
127.7	0
137	0
91	0
90.5	0
122.4	1
123.3	1
124.3	1
120	1
118.1	1
119	1
142.7	1
123.6	1
129.6	1
151.6	1
110.4	1
99.2	1
130.5	1
136.2	1
129.7	1
128	1
121.6	1




Summary of computational 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 computational 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=25848&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]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=25848&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
y[t] = + 104.117760617761 + 18.8378378378379x[t] -3.37722007722016M1[t] + 2.1911196911197M2[t] + 22.2911196911197M3[t] + 3.40540540540541M4[t] + 7.376833976834M5[t] + 21.4054054054054M6[t] -16.0374517374517M7[t] -21.2945945945946M8[t] + 4.98571428571428M9[t] + 7.1M10[t] + 1.60000000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  104.117760617761 +  18.8378378378379x[t] -3.37722007722016M1[t] +  2.1911196911197M2[t] +  22.2911196911197M3[t] +  3.40540540540541M4[t] +  7.376833976834M5[t] +  21.4054054054054M6[t] -16.0374517374517M7[t] -21.2945945945946M8[t] +  4.98571428571428M9[t] +  7.1M10[t] +  1.60000000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25848&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  104.117760617761 +  18.8378378378379x[t] -3.37722007722016M1[t] +  2.1911196911197M2[t] +  22.2911196911197M3[t] +  3.40540540540541M4[t] +  7.376833976834M5[t] +  21.4054054054054M6[t] -16.0374517374517M7[t] -21.2945945945946M8[t] +  4.98571428571428M9[t] +  7.1M10[t] +  1.60000000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25848&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25848&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] = + 104.117760617761 + 18.8378378378379x[t] -3.37722007722016M1[t] + 2.1911196911197M2[t] + 22.2911196911197M3[t] + 3.40540540540541M4[t] + 7.376833976834M5[t] + 21.4054054054054M6[t] -16.0374517374517M7[t] -21.2945945945946M8[t] + 4.98571428571428M9[t] + 7.1M10[t] + 1.60000000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)104.1177606177613.17269932.816800
x18.83783783783792.2608058.332400
M1-3.377220077220164.254171-0.79390.4298850.214943
M22.19111969111974.4047540.49740.6203920.310196
M322.29111969111974.4047545.06073e-062e-06
M43.405405405405414.4047540.77310.4419820.220991
M57.3768339768344.4047541.67470.0983230.049162
M621.40540540540544.4047544.85967e-063e-06
M7-16.03745173745174.404754-3.64090.0005080.000254
M8-21.29459459459464.404754-4.83457e-064e-06
M94.985714285714284.3928971.13490.2601610.13008
M107.14.3928971.61620.1104150.055207
M111.600000000000004.3928970.36420.7167580.358379

\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) & 104.117760617761 & 3.172699 & 32.8168 & 0 & 0 \tabularnewline
x & 18.8378378378379 & 2.260805 & 8.3324 & 0 & 0 \tabularnewline
M1 & -3.37722007722016 & 4.254171 & -0.7939 & 0.429885 & 0.214943 \tabularnewline
M2 & 2.1911196911197 & 4.404754 & 0.4974 & 0.620392 & 0.310196 \tabularnewline
M3 & 22.2911196911197 & 4.404754 & 5.0607 & 3e-06 & 2e-06 \tabularnewline
M4 & 3.40540540540541 & 4.404754 & 0.7731 & 0.441982 & 0.220991 \tabularnewline
M5 & 7.376833976834 & 4.404754 & 1.6747 & 0.098323 & 0.049162 \tabularnewline
M6 & 21.4054054054054 & 4.404754 & 4.8596 & 7e-06 & 3e-06 \tabularnewline
M7 & -16.0374517374517 & 4.404754 & -3.6409 & 0.000508 & 0.000254 \tabularnewline
M8 & -21.2945945945946 & 4.404754 & -4.8345 & 7e-06 & 4e-06 \tabularnewline
M9 & 4.98571428571428 & 4.392897 & 1.1349 & 0.260161 & 0.13008 \tabularnewline
M10 & 7.1 & 4.392897 & 1.6162 & 0.110415 & 0.055207 \tabularnewline
M11 & 1.60000000000000 & 4.392897 & 0.3642 & 0.716758 & 0.358379 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25848&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]104.117760617761[/C][C]3.172699[/C][C]32.8168[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]18.8378378378379[/C][C]2.260805[/C][C]8.3324[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-3.37722007722016[/C][C]4.254171[/C][C]-0.7939[/C][C]0.429885[/C][C]0.214943[/C][/ROW]
[ROW][C]M2[/C][C]2.1911196911197[/C][C]4.404754[/C][C]0.4974[/C][C]0.620392[/C][C]0.310196[/C][/ROW]
[ROW][C]M3[/C][C]22.2911196911197[/C][C]4.404754[/C][C]5.0607[/C][C]3e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M4[/C][C]3.40540540540541[/C][C]4.404754[/C][C]0.7731[/C][C]0.441982[/C][C]0.220991[/C][/ROW]
[ROW][C]M5[/C][C]7.376833976834[/C][C]4.404754[/C][C]1.6747[/C][C]0.098323[/C][C]0.049162[/C][/ROW]
[ROW][C]M6[/C][C]21.4054054054054[/C][C]4.404754[/C][C]4.8596[/C][C]7e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M7[/C][C]-16.0374517374517[/C][C]4.404754[/C][C]-3.6409[/C][C]0.000508[/C][C]0.000254[/C][/ROW]
[ROW][C]M8[/C][C]-21.2945945945946[/C][C]4.404754[/C][C]-4.8345[/C][C]7e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M9[/C][C]4.98571428571428[/C][C]4.392897[/C][C]1.1349[/C][C]0.260161[/C][C]0.13008[/C][/ROW]
[ROW][C]M10[/C][C]7.1[/C][C]4.392897[/C][C]1.6162[/C][C]0.110415[/C][C]0.055207[/C][/ROW]
[ROW][C]M11[/C][C]1.60000000000000[/C][C]4.392897[/C][C]0.3642[/C][C]0.716758[/C][C]0.358379[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25848&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25848&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)104.1177606177613.17269932.816800
x18.83783783783792.2608058.332400
M1-3.377220077220164.254171-0.79390.4298850.214943
M22.19111969111974.4047540.49740.6203920.310196
M322.29111969111974.4047545.06073e-062e-06
M43.405405405405414.4047540.77310.4419820.220991
M57.3768339768344.4047541.67470.0983230.049162
M621.40540540540544.4047544.85967e-063e-06
M7-16.03745173745174.404754-3.64090.0005080.000254
M8-21.29459459459464.404754-4.83457e-064e-06
M94.985714285714284.3928971.13490.2601610.13008
M107.14.3928971.61620.1104150.055207
M111.600000000000004.3928970.36420.7167580.358379







Multiple Linear Regression - Regression Statistics
Multiple R0.882344007477198
R-squared0.778530947530921
Adjusted R-squared0.741619438786075
F-TEST (value)21.0918213317308
F-TEST (DF numerator)12
F-TEST (DF denominator)72
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.21835773764464
Sum Squared Residuals4862.98108108106

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.882344007477198 \tabularnewline
R-squared & 0.778530947530921 \tabularnewline
Adjusted R-squared & 0.741619438786075 \tabularnewline
F-TEST (value) & 21.0918213317308 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 72 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 8.21835773764464 \tabularnewline
Sum Squared Residuals & 4862.98108108106 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25848&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.882344007477198[/C][/ROW]
[ROW][C]R-squared[/C][C]0.778530947530921[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.741619438786075[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]21.0918213317308[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]72[/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]8.21835773764464[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4862.98108108106[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25848&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25848&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.882344007477198
R-squared0.778530947530921
Adjusted R-squared0.741619438786075
F-TEST (value)21.0918213317308
F-TEST (DF numerator)12
F-TEST (DF denominator)72
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.21835773764464
Sum Squared Residuals4862.98108108106







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1119.5100.74054054054118.7594594594589
2125106.30888030888018.6911196911197
3145126.40888030888018.5911196911197
4105.3107.523166023166-2.22316602316603
5116.9111.4945945945955.40540540540541
6120.1125.523166023166-5.42316602316601
788.988.08030888030890.819691119691102
878.482.823166023166-4.42316602316602
9114.6109.1034749034755.49652509652507
10113.3111.2177606177612.08223938223938
11117105.71776061776111.2822393822394
1299.6104.117760617761-4.51776061776064
1399.4100.740540540540-1.34054054054046
14101.9106.308880308880-4.4088803088803
15115.2126.408880308880-11.2088803088803
16108.5107.5231660231660.97683397683398
17113.8111.4945945945952.30540540540540
18121125.523166023166-4.52316602316602
1992.288.08030888030894.11969111969113
2090.282.8231660231667.37683397683398
21101.5109.103474903475-7.60347490347489
22126.6111.21776061776115.3822393822394
2393.9105.717760617761-11.8177606177606
2489.8104.117760617761-14.3177606177606
2593.4100.740540540540-7.34054054054047
26101.5106.308880308880-4.8088803088803
27110.4126.408880308880-16.0088803088803
28105.9107.523166023166-1.62316602316601
29108.4111.494594594595-3.09459459459459
30113.9125.523166023166-11.6231660231660
3186.188.0803088803089-1.98030888030888
3269.482.823166023166-13.4231660231660
33101.2109.103474903475-7.90347490347489
34100.5111.217760617761-10.7177606177606
3598105.717760617761-7.71776061776062
36106.6104.1177606177612.48223938223938
3790.1100.740540540540-10.6405405405405
3896.9106.308880308880-9.4088803088803
39125.9126.408880308880-0.508880308880307
40112107.5231660231664.47683397683398
41100111.494594594595-11.4945945945946
42123.9125.523166023166-1.62316602316602
4379.888.0803088803089-8.28030888030888
4483.482.8231660231660.576833976833985
45113.6109.1034749034754.4965250965251
46112.9111.2177606177611.68223938223940
47104105.717760617761-1.71776061776061
48109.9104.1177606177615.78223938223939
4999100.740540540540-1.74054054054047
50106.3106.308880308880-0.00888030888031
51128.9126.4088803088802.49111969111969
52111.1107.5231660231663.57683397683398
53102.9111.494594594595-8.59459459459459
54130125.5231660231664.47683397683398
558788.0803088803089-1.08030888030887
5687.582.8231660231664.67683397683398
57117.6109.1034749034758.4965250965251
58103.4111.217760617761-7.81776061776061
59110.8105.7177606177615.08223938223939
60112.6104.1177606177618.48223938223938
61102.5100.7405405405401.75945945945953
62112.4106.3088803088806.0911196911197
63135.6126.4088803088809.19111969111968
64105.1107.523166023166-2.42316602316603
65127.7111.49459459459516.2054054054054
66137125.52316602316611.4768339768340
679188.08030888030892.91969111969112
6890.582.8231660231667.67683397683398
69122.4127.941312741313-5.54131274131273
70123.3130.055598455598-6.75559845559846
71124.3124.555598455598-0.25559845559846
72120122.955598455598-2.95559845559846
73118.1119.578378378378-1.47837837837832
74119125.146718146718-6.14671814671815
75142.7145.246718146718-2.54671814671817
76123.6126.361003861004-2.76100386100387
77129.6130.332432432432-0.732432432432446
78151.6144.3610038610047.23899613899611
79110.4106.9181467181473.48185328185328
8099.2101.661003861004-2.46100386100387
81130.5127.9413127413132.55868725868726
82136.2130.0555984555986.14440154440153
83129.7124.5555984555985.14440154440153
84128122.9555984555985.04440154440154
85121.6119.5783783783782.02162162162168

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 119.5 & 100.740540540541 & 18.7594594594589 \tabularnewline
2 & 125 & 106.308880308880 & 18.6911196911197 \tabularnewline
3 & 145 & 126.408880308880 & 18.5911196911197 \tabularnewline
4 & 105.3 & 107.523166023166 & -2.22316602316603 \tabularnewline
5 & 116.9 & 111.494594594595 & 5.40540540540541 \tabularnewline
6 & 120.1 & 125.523166023166 & -5.42316602316601 \tabularnewline
7 & 88.9 & 88.0803088803089 & 0.819691119691102 \tabularnewline
8 & 78.4 & 82.823166023166 & -4.42316602316602 \tabularnewline
9 & 114.6 & 109.103474903475 & 5.49652509652507 \tabularnewline
10 & 113.3 & 111.217760617761 & 2.08223938223938 \tabularnewline
11 & 117 & 105.717760617761 & 11.2822393822394 \tabularnewline
12 & 99.6 & 104.117760617761 & -4.51776061776064 \tabularnewline
13 & 99.4 & 100.740540540540 & -1.34054054054046 \tabularnewline
14 & 101.9 & 106.308880308880 & -4.4088803088803 \tabularnewline
15 & 115.2 & 126.408880308880 & -11.2088803088803 \tabularnewline
16 & 108.5 & 107.523166023166 & 0.97683397683398 \tabularnewline
17 & 113.8 & 111.494594594595 & 2.30540540540540 \tabularnewline
18 & 121 & 125.523166023166 & -4.52316602316602 \tabularnewline
19 & 92.2 & 88.0803088803089 & 4.11969111969113 \tabularnewline
20 & 90.2 & 82.823166023166 & 7.37683397683398 \tabularnewline
21 & 101.5 & 109.103474903475 & -7.60347490347489 \tabularnewline
22 & 126.6 & 111.217760617761 & 15.3822393822394 \tabularnewline
23 & 93.9 & 105.717760617761 & -11.8177606177606 \tabularnewline
24 & 89.8 & 104.117760617761 & -14.3177606177606 \tabularnewline
25 & 93.4 & 100.740540540540 & -7.34054054054047 \tabularnewline
26 & 101.5 & 106.308880308880 & -4.8088803088803 \tabularnewline
27 & 110.4 & 126.408880308880 & -16.0088803088803 \tabularnewline
28 & 105.9 & 107.523166023166 & -1.62316602316601 \tabularnewline
29 & 108.4 & 111.494594594595 & -3.09459459459459 \tabularnewline
30 & 113.9 & 125.523166023166 & -11.6231660231660 \tabularnewline
31 & 86.1 & 88.0803088803089 & -1.98030888030888 \tabularnewline
32 & 69.4 & 82.823166023166 & -13.4231660231660 \tabularnewline
33 & 101.2 & 109.103474903475 & -7.90347490347489 \tabularnewline
34 & 100.5 & 111.217760617761 & -10.7177606177606 \tabularnewline
35 & 98 & 105.717760617761 & -7.71776061776062 \tabularnewline
36 & 106.6 & 104.117760617761 & 2.48223938223938 \tabularnewline
37 & 90.1 & 100.740540540540 & -10.6405405405405 \tabularnewline
38 & 96.9 & 106.308880308880 & -9.4088803088803 \tabularnewline
39 & 125.9 & 126.408880308880 & -0.508880308880307 \tabularnewline
40 & 112 & 107.523166023166 & 4.47683397683398 \tabularnewline
41 & 100 & 111.494594594595 & -11.4945945945946 \tabularnewline
42 & 123.9 & 125.523166023166 & -1.62316602316602 \tabularnewline
43 & 79.8 & 88.0803088803089 & -8.28030888030888 \tabularnewline
44 & 83.4 & 82.823166023166 & 0.576833976833985 \tabularnewline
45 & 113.6 & 109.103474903475 & 4.4965250965251 \tabularnewline
46 & 112.9 & 111.217760617761 & 1.68223938223940 \tabularnewline
47 & 104 & 105.717760617761 & -1.71776061776061 \tabularnewline
48 & 109.9 & 104.117760617761 & 5.78223938223939 \tabularnewline
49 & 99 & 100.740540540540 & -1.74054054054047 \tabularnewline
50 & 106.3 & 106.308880308880 & -0.00888030888031 \tabularnewline
51 & 128.9 & 126.408880308880 & 2.49111969111969 \tabularnewline
52 & 111.1 & 107.523166023166 & 3.57683397683398 \tabularnewline
53 & 102.9 & 111.494594594595 & -8.59459459459459 \tabularnewline
54 & 130 & 125.523166023166 & 4.47683397683398 \tabularnewline
55 & 87 & 88.0803088803089 & -1.08030888030887 \tabularnewline
56 & 87.5 & 82.823166023166 & 4.67683397683398 \tabularnewline
57 & 117.6 & 109.103474903475 & 8.4965250965251 \tabularnewline
58 & 103.4 & 111.217760617761 & -7.81776061776061 \tabularnewline
59 & 110.8 & 105.717760617761 & 5.08223938223939 \tabularnewline
60 & 112.6 & 104.117760617761 & 8.48223938223938 \tabularnewline
61 & 102.5 & 100.740540540540 & 1.75945945945953 \tabularnewline
62 & 112.4 & 106.308880308880 & 6.0911196911197 \tabularnewline
63 & 135.6 & 126.408880308880 & 9.19111969111968 \tabularnewline
64 & 105.1 & 107.523166023166 & -2.42316602316603 \tabularnewline
65 & 127.7 & 111.494594594595 & 16.2054054054054 \tabularnewline
66 & 137 & 125.523166023166 & 11.4768339768340 \tabularnewline
67 & 91 & 88.0803088803089 & 2.91969111969112 \tabularnewline
68 & 90.5 & 82.823166023166 & 7.67683397683398 \tabularnewline
69 & 122.4 & 127.941312741313 & -5.54131274131273 \tabularnewline
70 & 123.3 & 130.055598455598 & -6.75559845559846 \tabularnewline
71 & 124.3 & 124.555598455598 & -0.25559845559846 \tabularnewline
72 & 120 & 122.955598455598 & -2.95559845559846 \tabularnewline
73 & 118.1 & 119.578378378378 & -1.47837837837832 \tabularnewline
74 & 119 & 125.146718146718 & -6.14671814671815 \tabularnewline
75 & 142.7 & 145.246718146718 & -2.54671814671817 \tabularnewline
76 & 123.6 & 126.361003861004 & -2.76100386100387 \tabularnewline
77 & 129.6 & 130.332432432432 & -0.732432432432446 \tabularnewline
78 & 151.6 & 144.361003861004 & 7.23899613899611 \tabularnewline
79 & 110.4 & 106.918146718147 & 3.48185328185328 \tabularnewline
80 & 99.2 & 101.661003861004 & -2.46100386100387 \tabularnewline
81 & 130.5 & 127.941312741313 & 2.55868725868726 \tabularnewline
82 & 136.2 & 130.055598455598 & 6.14440154440153 \tabularnewline
83 & 129.7 & 124.555598455598 & 5.14440154440153 \tabularnewline
84 & 128 & 122.955598455598 & 5.04440154440154 \tabularnewline
85 & 121.6 & 119.578378378378 & 2.02162162162168 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25848&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]119.5[/C][C]100.740540540541[/C][C]18.7594594594589[/C][/ROW]
[ROW][C]2[/C][C]125[/C][C]106.308880308880[/C][C]18.6911196911197[/C][/ROW]
[ROW][C]3[/C][C]145[/C][C]126.408880308880[/C][C]18.5911196911197[/C][/ROW]
[ROW][C]4[/C][C]105.3[/C][C]107.523166023166[/C][C]-2.22316602316603[/C][/ROW]
[ROW][C]5[/C][C]116.9[/C][C]111.494594594595[/C][C]5.40540540540541[/C][/ROW]
[ROW][C]6[/C][C]120.1[/C][C]125.523166023166[/C][C]-5.42316602316601[/C][/ROW]
[ROW][C]7[/C][C]88.9[/C][C]88.0803088803089[/C][C]0.819691119691102[/C][/ROW]
[ROW][C]8[/C][C]78.4[/C][C]82.823166023166[/C][C]-4.42316602316602[/C][/ROW]
[ROW][C]9[/C][C]114.6[/C][C]109.103474903475[/C][C]5.49652509652507[/C][/ROW]
[ROW][C]10[/C][C]113.3[/C][C]111.217760617761[/C][C]2.08223938223938[/C][/ROW]
[ROW][C]11[/C][C]117[/C][C]105.717760617761[/C][C]11.2822393822394[/C][/ROW]
[ROW][C]12[/C][C]99.6[/C][C]104.117760617761[/C][C]-4.51776061776064[/C][/ROW]
[ROW][C]13[/C][C]99.4[/C][C]100.740540540540[/C][C]-1.34054054054046[/C][/ROW]
[ROW][C]14[/C][C]101.9[/C][C]106.308880308880[/C][C]-4.4088803088803[/C][/ROW]
[ROW][C]15[/C][C]115.2[/C][C]126.408880308880[/C][C]-11.2088803088803[/C][/ROW]
[ROW][C]16[/C][C]108.5[/C][C]107.523166023166[/C][C]0.97683397683398[/C][/ROW]
[ROW][C]17[/C][C]113.8[/C][C]111.494594594595[/C][C]2.30540540540540[/C][/ROW]
[ROW][C]18[/C][C]121[/C][C]125.523166023166[/C][C]-4.52316602316602[/C][/ROW]
[ROW][C]19[/C][C]92.2[/C][C]88.0803088803089[/C][C]4.11969111969113[/C][/ROW]
[ROW][C]20[/C][C]90.2[/C][C]82.823166023166[/C][C]7.37683397683398[/C][/ROW]
[ROW][C]21[/C][C]101.5[/C][C]109.103474903475[/C][C]-7.60347490347489[/C][/ROW]
[ROW][C]22[/C][C]126.6[/C][C]111.217760617761[/C][C]15.3822393822394[/C][/ROW]
[ROW][C]23[/C][C]93.9[/C][C]105.717760617761[/C][C]-11.8177606177606[/C][/ROW]
[ROW][C]24[/C][C]89.8[/C][C]104.117760617761[/C][C]-14.3177606177606[/C][/ROW]
[ROW][C]25[/C][C]93.4[/C][C]100.740540540540[/C][C]-7.34054054054047[/C][/ROW]
[ROW][C]26[/C][C]101.5[/C][C]106.308880308880[/C][C]-4.8088803088803[/C][/ROW]
[ROW][C]27[/C][C]110.4[/C][C]126.408880308880[/C][C]-16.0088803088803[/C][/ROW]
[ROW][C]28[/C][C]105.9[/C][C]107.523166023166[/C][C]-1.62316602316601[/C][/ROW]
[ROW][C]29[/C][C]108.4[/C][C]111.494594594595[/C][C]-3.09459459459459[/C][/ROW]
[ROW][C]30[/C][C]113.9[/C][C]125.523166023166[/C][C]-11.6231660231660[/C][/ROW]
[ROW][C]31[/C][C]86.1[/C][C]88.0803088803089[/C][C]-1.98030888030888[/C][/ROW]
[ROW][C]32[/C][C]69.4[/C][C]82.823166023166[/C][C]-13.4231660231660[/C][/ROW]
[ROW][C]33[/C][C]101.2[/C][C]109.103474903475[/C][C]-7.90347490347489[/C][/ROW]
[ROW][C]34[/C][C]100.5[/C][C]111.217760617761[/C][C]-10.7177606177606[/C][/ROW]
[ROW][C]35[/C][C]98[/C][C]105.717760617761[/C][C]-7.71776061776062[/C][/ROW]
[ROW][C]36[/C][C]106.6[/C][C]104.117760617761[/C][C]2.48223938223938[/C][/ROW]
[ROW][C]37[/C][C]90.1[/C][C]100.740540540540[/C][C]-10.6405405405405[/C][/ROW]
[ROW][C]38[/C][C]96.9[/C][C]106.308880308880[/C][C]-9.4088803088803[/C][/ROW]
[ROW][C]39[/C][C]125.9[/C][C]126.408880308880[/C][C]-0.508880308880307[/C][/ROW]
[ROW][C]40[/C][C]112[/C][C]107.523166023166[/C][C]4.47683397683398[/C][/ROW]
[ROW][C]41[/C][C]100[/C][C]111.494594594595[/C][C]-11.4945945945946[/C][/ROW]
[ROW][C]42[/C][C]123.9[/C][C]125.523166023166[/C][C]-1.62316602316602[/C][/ROW]
[ROW][C]43[/C][C]79.8[/C][C]88.0803088803089[/C][C]-8.28030888030888[/C][/ROW]
[ROW][C]44[/C][C]83.4[/C][C]82.823166023166[/C][C]0.576833976833985[/C][/ROW]
[ROW][C]45[/C][C]113.6[/C][C]109.103474903475[/C][C]4.4965250965251[/C][/ROW]
[ROW][C]46[/C][C]112.9[/C][C]111.217760617761[/C][C]1.68223938223940[/C][/ROW]
[ROW][C]47[/C][C]104[/C][C]105.717760617761[/C][C]-1.71776061776061[/C][/ROW]
[ROW][C]48[/C][C]109.9[/C][C]104.117760617761[/C][C]5.78223938223939[/C][/ROW]
[ROW][C]49[/C][C]99[/C][C]100.740540540540[/C][C]-1.74054054054047[/C][/ROW]
[ROW][C]50[/C][C]106.3[/C][C]106.308880308880[/C][C]-0.00888030888031[/C][/ROW]
[ROW][C]51[/C][C]128.9[/C][C]126.408880308880[/C][C]2.49111969111969[/C][/ROW]
[ROW][C]52[/C][C]111.1[/C][C]107.523166023166[/C][C]3.57683397683398[/C][/ROW]
[ROW][C]53[/C][C]102.9[/C][C]111.494594594595[/C][C]-8.59459459459459[/C][/ROW]
[ROW][C]54[/C][C]130[/C][C]125.523166023166[/C][C]4.47683397683398[/C][/ROW]
[ROW][C]55[/C][C]87[/C][C]88.0803088803089[/C][C]-1.08030888030887[/C][/ROW]
[ROW][C]56[/C][C]87.5[/C][C]82.823166023166[/C][C]4.67683397683398[/C][/ROW]
[ROW][C]57[/C][C]117.6[/C][C]109.103474903475[/C][C]8.4965250965251[/C][/ROW]
[ROW][C]58[/C][C]103.4[/C][C]111.217760617761[/C][C]-7.81776061776061[/C][/ROW]
[ROW][C]59[/C][C]110.8[/C][C]105.717760617761[/C][C]5.08223938223939[/C][/ROW]
[ROW][C]60[/C][C]112.6[/C][C]104.117760617761[/C][C]8.48223938223938[/C][/ROW]
[ROW][C]61[/C][C]102.5[/C][C]100.740540540540[/C][C]1.75945945945953[/C][/ROW]
[ROW][C]62[/C][C]112.4[/C][C]106.308880308880[/C][C]6.0911196911197[/C][/ROW]
[ROW][C]63[/C][C]135.6[/C][C]126.408880308880[/C][C]9.19111969111968[/C][/ROW]
[ROW][C]64[/C][C]105.1[/C][C]107.523166023166[/C][C]-2.42316602316603[/C][/ROW]
[ROW][C]65[/C][C]127.7[/C][C]111.494594594595[/C][C]16.2054054054054[/C][/ROW]
[ROW][C]66[/C][C]137[/C][C]125.523166023166[/C][C]11.4768339768340[/C][/ROW]
[ROW][C]67[/C][C]91[/C][C]88.0803088803089[/C][C]2.91969111969112[/C][/ROW]
[ROW][C]68[/C][C]90.5[/C][C]82.823166023166[/C][C]7.67683397683398[/C][/ROW]
[ROW][C]69[/C][C]122.4[/C][C]127.941312741313[/C][C]-5.54131274131273[/C][/ROW]
[ROW][C]70[/C][C]123.3[/C][C]130.055598455598[/C][C]-6.75559845559846[/C][/ROW]
[ROW][C]71[/C][C]124.3[/C][C]124.555598455598[/C][C]-0.25559845559846[/C][/ROW]
[ROW][C]72[/C][C]120[/C][C]122.955598455598[/C][C]-2.95559845559846[/C][/ROW]
[ROW][C]73[/C][C]118.1[/C][C]119.578378378378[/C][C]-1.47837837837832[/C][/ROW]
[ROW][C]74[/C][C]119[/C][C]125.146718146718[/C][C]-6.14671814671815[/C][/ROW]
[ROW][C]75[/C][C]142.7[/C][C]145.246718146718[/C][C]-2.54671814671817[/C][/ROW]
[ROW][C]76[/C][C]123.6[/C][C]126.361003861004[/C][C]-2.76100386100387[/C][/ROW]
[ROW][C]77[/C][C]129.6[/C][C]130.332432432432[/C][C]-0.732432432432446[/C][/ROW]
[ROW][C]78[/C][C]151.6[/C][C]144.361003861004[/C][C]7.23899613899611[/C][/ROW]
[ROW][C]79[/C][C]110.4[/C][C]106.918146718147[/C][C]3.48185328185328[/C][/ROW]
[ROW][C]80[/C][C]99.2[/C][C]101.661003861004[/C][C]-2.46100386100387[/C][/ROW]
[ROW][C]81[/C][C]130.5[/C][C]127.941312741313[/C][C]2.55868725868726[/C][/ROW]
[ROW][C]82[/C][C]136.2[/C][C]130.055598455598[/C][C]6.14440154440153[/C][/ROW]
[ROW][C]83[/C][C]129.7[/C][C]124.555598455598[/C][C]5.14440154440153[/C][/ROW]
[ROW][C]84[/C][C]128[/C][C]122.955598455598[/C][C]5.04440154440154[/C][/ROW]
[ROW][C]85[/C][C]121.6[/C][C]119.578378378378[/C][C]2.02162162162168[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25848&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25848&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
1119.5100.74054054054118.7594594594589
2125106.30888030888018.6911196911197
3145126.40888030888018.5911196911197
4105.3107.523166023166-2.22316602316603
5116.9111.4945945945955.40540540540541
6120.1125.523166023166-5.42316602316601
788.988.08030888030890.819691119691102
878.482.823166023166-4.42316602316602
9114.6109.1034749034755.49652509652507
10113.3111.2177606177612.08223938223938
11117105.71776061776111.2822393822394
1299.6104.117760617761-4.51776061776064
1399.4100.740540540540-1.34054054054046
14101.9106.308880308880-4.4088803088803
15115.2126.408880308880-11.2088803088803
16108.5107.5231660231660.97683397683398
17113.8111.4945945945952.30540540540540
18121125.523166023166-4.52316602316602
1992.288.08030888030894.11969111969113
2090.282.8231660231667.37683397683398
21101.5109.103474903475-7.60347490347489
22126.6111.21776061776115.3822393822394
2393.9105.717760617761-11.8177606177606
2489.8104.117760617761-14.3177606177606
2593.4100.740540540540-7.34054054054047
26101.5106.308880308880-4.8088803088803
27110.4126.408880308880-16.0088803088803
28105.9107.523166023166-1.62316602316601
29108.4111.494594594595-3.09459459459459
30113.9125.523166023166-11.6231660231660
3186.188.0803088803089-1.98030888030888
3269.482.823166023166-13.4231660231660
33101.2109.103474903475-7.90347490347489
34100.5111.217760617761-10.7177606177606
3598105.717760617761-7.71776061776062
36106.6104.1177606177612.48223938223938
3790.1100.740540540540-10.6405405405405
3896.9106.308880308880-9.4088803088803
39125.9126.408880308880-0.508880308880307
40112107.5231660231664.47683397683398
41100111.494594594595-11.4945945945946
42123.9125.523166023166-1.62316602316602
4379.888.0803088803089-8.28030888030888
4483.482.8231660231660.576833976833985
45113.6109.1034749034754.4965250965251
46112.9111.2177606177611.68223938223940
47104105.717760617761-1.71776061776061
48109.9104.1177606177615.78223938223939
4999100.740540540540-1.74054054054047
50106.3106.308880308880-0.00888030888031
51128.9126.4088803088802.49111969111969
52111.1107.5231660231663.57683397683398
53102.9111.494594594595-8.59459459459459
54130125.5231660231664.47683397683398
558788.0803088803089-1.08030888030887
5687.582.8231660231664.67683397683398
57117.6109.1034749034758.4965250965251
58103.4111.217760617761-7.81776061776061
59110.8105.7177606177615.08223938223939
60112.6104.1177606177618.48223938223938
61102.5100.7405405405401.75945945945953
62112.4106.3088803088806.0911196911197
63135.6126.4088803088809.19111969111968
64105.1107.523166023166-2.42316602316603
65127.7111.49459459459516.2054054054054
66137125.52316602316611.4768339768340
679188.08030888030892.91969111969112
6890.582.8231660231667.67683397683398
69122.4127.941312741313-5.54131274131273
70123.3130.055598455598-6.75559845559846
71124.3124.555598455598-0.25559845559846
72120122.955598455598-2.95559845559846
73118.1119.578378378378-1.47837837837832
74119125.146718146718-6.14671814671815
75142.7145.246718146718-2.54671814671817
76123.6126.361003861004-2.76100386100387
77129.6130.332432432432-0.732432432432446
78151.6144.3610038610047.23899613899611
79110.4106.9181467181473.48185328185328
8099.2101.661003861004-2.46100386100387
81130.5127.9413127413132.55868725868726
82136.2130.0555984555986.14440154440153
83129.7124.5555984555985.14440154440153
84128122.9555984555985.04440154440154
85121.6119.5783783783782.02162162162168



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')