Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 16 Nov 2007 06:58:03 -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/16/t1195221211uvhit2j3hqxrp03.htm/, Retrieved Mon, 06 May 2024 03:47:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5492, Retrieved Mon, 06 May 2024 03:47:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact300
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2007-11-16 13:58:03] [a1fadf46580e43815db2830b4560d35f] [Current]
F    D    [Multiple Regression] [Q3bis] [2008-11-23 22:14:27] [6816386b1f3c2f6c0c9f2aa1e5bc9362]
-    D    [Multiple Regression] [] [2008-11-24 22:06:20] [74be16979710d4c4e7c6647856088456]
F    D    [Multiple Regression] [] [2008-11-24 22:06:20] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
102.3	0
105.8	0
106.7	0
109.6	0
111.9	0
113.3	0
114.6	0
115.7	0
117.3	0
119.8	0
120.6	0
121.4	0
123.5	0
125.2	0
126	0
126.8	0
128.1	0
128.2	0
129.3	0
130.6	0
131.4	0
131.1	0
131.2	0
131.2	0
131.5	0
133.5	0
133.7	0
133.5	0
134	0
135.9	0
135.9	0
137.2	0
138.4	0
140.9	0
143	0
144.1	0
146.8	0
149.1	0
149.6	0
151.2	0
153.3	0
156.9	0
157.2	0
158.5	0
160	0
162.5	0
162.9	0
164.7	0
165	0
167.2	0
168.6	0
169.5	0
169.8	0
171.9	0
172	0
173.7	0
173.9	0
175.9	0
175.6	0
176.1	0
176.3	0
179.4	0
179.7	0
179.9	0
180.4	0
182.5	0
183.6	0
183.9	0
184.5	0
187.6	0
188	0
188.5	0
188.6	0
191.9	0
193.5	0
194.9	0
194.9	0
196.2	0
196.2	0
198	0
198.6	0
201.3	0
203.5	0
204.1	0
204.8	1
206.5	1
207.8	1
208.6	1
209.7	1
210	1
211.7	1
212.4	1
213.7	1
214.8	1
216.4	1
217.5	1
218.6	1
220.4	1
221.8	1
222.5	1
223.4	1
225.5	1
226.5	1
227.8	1
228.5	1
229.1	1
229.9	1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 6 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5492&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5492&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5492&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 time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 105.254791526706 -0.184143687937644X[t] + 1.17358473718674t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  105.254791526706 -0.184143687937644X[t] +  1.17358473718674t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5492&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  105.254791526706 -0.184143687937644X[t] +  1.17358473718674t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5492&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5492&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] = + 105.254791526706 -0.184143687937644X[t] + 1.17358473718674t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)105.2547915267060.47985219.349500
X-0.1841436879376440.735517-0.25040.8028030.401402
t1.173584737186740.009782119.97100

\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) & 105.254791526706 & 0.47985 & 219.3495 & 0 & 0 \tabularnewline
X & -0.184143687937644 & 0.735517 & -0.2504 & 0.802803 & 0.401402 \tabularnewline
t & 1.17358473718674 & 0.009782 & 119.971 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5492&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]105.254791526706[/C][C]0.47985[/C][C]219.3495[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.184143687937644[/C][C]0.735517[/C][C]-0.2504[/C][C]0.802803[/C][C]0.401402[/C][/ROW]
[ROW][C]t[/C][C]1.17358473718674[/C][C]0.009782[/C][C]119.971[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5492&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5492&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)105.2547915267060.47985219.349500
X-0.1841436879376440.735517-0.25040.8028030.401402
t1.173584737186740.009782119.97100







Multiple Linear Regression - Regression Statistics
Multiple R0.998215775607425
R-squared0.996434734671533
Adjusted R-squared0.996366171876754
F-TEST (value)14533.1697445343
F-TEST (DF numerator)2
F-TEST (DF denominator)104
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.19604117057745
Sum Squared Residuals501.550069578604

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.998215775607425 \tabularnewline
R-squared & 0.996434734671533 \tabularnewline
Adjusted R-squared & 0.996366171876754 \tabularnewline
F-TEST (value) & 14533.1697445343 \tabularnewline
F-TEST (DF numerator) & 2 \tabularnewline
F-TEST (DF denominator) & 104 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.19604117057745 \tabularnewline
Sum Squared Residuals & 501.550069578604 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5492&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.998215775607425[/C][/ROW]
[ROW][C]R-squared[/C][C]0.996434734671533[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.996366171876754[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]14533.1697445343[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]2[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]104[/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]2.19604117057745[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]501.550069578604[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5492&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5492&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.998215775607425
R-squared0.996434734671533
Adjusted R-squared0.996366171876754
F-TEST (value)14533.1697445343
F-TEST (DF numerator)2
F-TEST (DF denominator)104
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.19604117057745
Sum Squared Residuals501.550069578604







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1102.3106.428376263893-4.12837626389348
2105.8107.60196100108-1.80196100107999
3106.7108.775545738267-2.07554573826671
4109.6109.949130475453-0.349130475453471
5111.9111.1227152126400.777284787359805
6113.3112.2962999498271.00370005017306
7114.6113.4698846870141.13011531298632
8115.7114.6434694242001.05653057579959
9117.3115.8170541613871.48294583861285
10119.8116.9906388985742.80936110142611
11120.6118.1642236357612.43577636423937
12121.4119.3378083729472.06219162705265
13123.5120.5113931101342.9886068898659
14125.2121.6849778473213.51502215267917
15126122.8585625845083.14143741549243
16126.8124.0321473216942.76785267830569
17128.1125.2057320588812.89426794111895
18128.2126.3793167960681.82068320393220
19129.3127.5529015332551.74709846674549
20130.6128.7264862704411.87351372955874
21131.4129.9000710076281.49992899237201
22131.1131.0736557448150.0263442551852623
23131.2132.247240482001-1.04724048200148
24131.2133.420825219188-2.22082521918822
25131.5134.594409956375-3.09440995637494
26133.5135.767994693562-2.26799469356168
27133.7136.941579430748-3.24157943074843
28133.5138.115164167935-4.61516416793516
29134139.288748905122-5.2887489051219
30135.9140.462333642309-4.56233364230863
31135.9141.635918379495-5.73591837949537
32137.2142.809503116682-5.60950311668212
33138.4143.983087853869-5.58308785386884
34140.9145.156672591056-4.25667259105558
35143146.330257328242-3.33025732824232
36144.1147.503842065429-3.40384206542907
37146.8148.677426802616-1.87742680261579
38149.1149.851011539803-0.751011539802541
39149.6151.024596276989-1.42459627698928
40151.2152.198181014176-0.998181014176022
41153.3153.371765751363-0.071765751362737
42156.9154.5453504885492.35464951145052
43157.2155.7189352257361.48106477426377
44158.5156.8925199629231.60748003707704
45160158.0661047001101.9338952998903
46162.5159.2396894372963.26031056270356
47162.9160.4132741744832.48672582551683
48164.7161.586858911673.11314108833008
49165162.7604436488572.23955635114335
50167.2163.9340283860433.26597161395661
51168.6165.107613123233.49238687676987
52169.5166.2811978604173.21880213958314
53169.8167.4547825976042.34521740239641
54171.9168.6283673347903.27163266520967
55172169.8019520719772.19804792802293
56173.7170.9755368091642.72446319083618
57173.9172.1491215463511.75087845364946
58175.9173.3227062835372.57729371646272
59175.6174.4962910207241.10370897927597
60176.1175.6698757579110.430124242089237
61176.3176.843460495098-0.543460495097485
62179.4178.0170452322841.38295476771577
63179.7179.1906299694710.509370030529018
64179.9180.364214706658-0.464214706657703
65180.4181.537799443844-1.13779944384444
66182.5182.711384181031-0.211384181031187
67183.6183.884968918218-0.284968918217928
68183.9185.058553655405-1.15855365540466
69184.5186.232138392591-1.7321383925914
70187.6187.4057231297780.194276870221859
71188188.579307866965-0.579307866964877
72188.5189.752892604152-1.25289260415161
73188.6190.926477341338-2.32647734133835
74191.9192.100062078525-0.200062078525077
75193.5193.2736468157120.226353184288174
76194.9194.4472315528990.452768447101445
77194.9195.620816290085-0.72081629008529
78196.2196.794401027272-0.59440102727205
79196.2197.967985764459-1.76798576445879
80198199.141570501646-1.14157050164551
81198.6200.315155238832-1.71515523883226
82201.3201.488739976019-0.188739976018975
83203.5202.6623247132060.837675286794278
84204.1203.8359094503920.26409054960753
85204.8204.825350499642-0.0253504996415309
86206.5205.9989352368280.501064763171723
87207.8207.1725199740150.627480025984995
88208.6208.3461047112020.253895288798241
89209.7209.5196894483890.180310551611498
90210210.693274185575-0.693274185575227
91211.7211.866858922762-0.166858922761978
92212.4213.040443659949-0.640443659948698
93213.7214.214028397135-0.514028397135453
94214.8215.387613134322-0.587613134322168
95216.4216.561197871509-0.161197871508911
96217.5217.734782608696-0.234782608695654
97218.6218.908367345882-0.308367345882397
98220.4220.0819520830690.318047916930877
99221.8221.2555368202560.544463179744145
100222.5222.4291215574430.0708784425573961
101223.4223.602706294629-0.202706294629335
102225.5224.7762910318160.723708968183921
103226.5225.9498757690030.550124230997184
104227.8227.1234605061900.676539493810457
105228.5228.2970452433760.202954756623709
106229.1229.470629980563-0.370629980563035
107229.9230.64421471775-0.74421471774976

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 102.3 & 106.428376263893 & -4.12837626389348 \tabularnewline
2 & 105.8 & 107.60196100108 & -1.80196100107999 \tabularnewline
3 & 106.7 & 108.775545738267 & -2.07554573826671 \tabularnewline
4 & 109.6 & 109.949130475453 & -0.349130475453471 \tabularnewline
5 & 111.9 & 111.122715212640 & 0.777284787359805 \tabularnewline
6 & 113.3 & 112.296299949827 & 1.00370005017306 \tabularnewline
7 & 114.6 & 113.469884687014 & 1.13011531298632 \tabularnewline
8 & 115.7 & 114.643469424200 & 1.05653057579959 \tabularnewline
9 & 117.3 & 115.817054161387 & 1.48294583861285 \tabularnewline
10 & 119.8 & 116.990638898574 & 2.80936110142611 \tabularnewline
11 & 120.6 & 118.164223635761 & 2.43577636423937 \tabularnewline
12 & 121.4 & 119.337808372947 & 2.06219162705265 \tabularnewline
13 & 123.5 & 120.511393110134 & 2.9886068898659 \tabularnewline
14 & 125.2 & 121.684977847321 & 3.51502215267917 \tabularnewline
15 & 126 & 122.858562584508 & 3.14143741549243 \tabularnewline
16 & 126.8 & 124.032147321694 & 2.76785267830569 \tabularnewline
17 & 128.1 & 125.205732058881 & 2.89426794111895 \tabularnewline
18 & 128.2 & 126.379316796068 & 1.82068320393220 \tabularnewline
19 & 129.3 & 127.552901533255 & 1.74709846674549 \tabularnewline
20 & 130.6 & 128.726486270441 & 1.87351372955874 \tabularnewline
21 & 131.4 & 129.900071007628 & 1.49992899237201 \tabularnewline
22 & 131.1 & 131.073655744815 & 0.0263442551852623 \tabularnewline
23 & 131.2 & 132.247240482001 & -1.04724048200148 \tabularnewline
24 & 131.2 & 133.420825219188 & -2.22082521918822 \tabularnewline
25 & 131.5 & 134.594409956375 & -3.09440995637494 \tabularnewline
26 & 133.5 & 135.767994693562 & -2.26799469356168 \tabularnewline
27 & 133.7 & 136.941579430748 & -3.24157943074843 \tabularnewline
28 & 133.5 & 138.115164167935 & -4.61516416793516 \tabularnewline
29 & 134 & 139.288748905122 & -5.2887489051219 \tabularnewline
30 & 135.9 & 140.462333642309 & -4.56233364230863 \tabularnewline
31 & 135.9 & 141.635918379495 & -5.73591837949537 \tabularnewline
32 & 137.2 & 142.809503116682 & -5.60950311668212 \tabularnewline
33 & 138.4 & 143.983087853869 & -5.58308785386884 \tabularnewline
34 & 140.9 & 145.156672591056 & -4.25667259105558 \tabularnewline
35 & 143 & 146.330257328242 & -3.33025732824232 \tabularnewline
36 & 144.1 & 147.503842065429 & -3.40384206542907 \tabularnewline
37 & 146.8 & 148.677426802616 & -1.87742680261579 \tabularnewline
38 & 149.1 & 149.851011539803 & -0.751011539802541 \tabularnewline
39 & 149.6 & 151.024596276989 & -1.42459627698928 \tabularnewline
40 & 151.2 & 152.198181014176 & -0.998181014176022 \tabularnewline
41 & 153.3 & 153.371765751363 & -0.071765751362737 \tabularnewline
42 & 156.9 & 154.545350488549 & 2.35464951145052 \tabularnewline
43 & 157.2 & 155.718935225736 & 1.48106477426377 \tabularnewline
44 & 158.5 & 156.892519962923 & 1.60748003707704 \tabularnewline
45 & 160 & 158.066104700110 & 1.9338952998903 \tabularnewline
46 & 162.5 & 159.239689437296 & 3.26031056270356 \tabularnewline
47 & 162.9 & 160.413274174483 & 2.48672582551683 \tabularnewline
48 & 164.7 & 161.58685891167 & 3.11314108833008 \tabularnewline
49 & 165 & 162.760443648857 & 2.23955635114335 \tabularnewline
50 & 167.2 & 163.934028386043 & 3.26597161395661 \tabularnewline
51 & 168.6 & 165.10761312323 & 3.49238687676987 \tabularnewline
52 & 169.5 & 166.281197860417 & 3.21880213958314 \tabularnewline
53 & 169.8 & 167.454782597604 & 2.34521740239641 \tabularnewline
54 & 171.9 & 168.628367334790 & 3.27163266520967 \tabularnewline
55 & 172 & 169.801952071977 & 2.19804792802293 \tabularnewline
56 & 173.7 & 170.975536809164 & 2.72446319083618 \tabularnewline
57 & 173.9 & 172.149121546351 & 1.75087845364946 \tabularnewline
58 & 175.9 & 173.322706283537 & 2.57729371646272 \tabularnewline
59 & 175.6 & 174.496291020724 & 1.10370897927597 \tabularnewline
60 & 176.1 & 175.669875757911 & 0.430124242089237 \tabularnewline
61 & 176.3 & 176.843460495098 & -0.543460495097485 \tabularnewline
62 & 179.4 & 178.017045232284 & 1.38295476771577 \tabularnewline
63 & 179.7 & 179.190629969471 & 0.509370030529018 \tabularnewline
64 & 179.9 & 180.364214706658 & -0.464214706657703 \tabularnewline
65 & 180.4 & 181.537799443844 & -1.13779944384444 \tabularnewline
66 & 182.5 & 182.711384181031 & -0.211384181031187 \tabularnewline
67 & 183.6 & 183.884968918218 & -0.284968918217928 \tabularnewline
68 & 183.9 & 185.058553655405 & -1.15855365540466 \tabularnewline
69 & 184.5 & 186.232138392591 & -1.7321383925914 \tabularnewline
70 & 187.6 & 187.405723129778 & 0.194276870221859 \tabularnewline
71 & 188 & 188.579307866965 & -0.579307866964877 \tabularnewline
72 & 188.5 & 189.752892604152 & -1.25289260415161 \tabularnewline
73 & 188.6 & 190.926477341338 & -2.32647734133835 \tabularnewline
74 & 191.9 & 192.100062078525 & -0.200062078525077 \tabularnewline
75 & 193.5 & 193.273646815712 & 0.226353184288174 \tabularnewline
76 & 194.9 & 194.447231552899 & 0.452768447101445 \tabularnewline
77 & 194.9 & 195.620816290085 & -0.72081629008529 \tabularnewline
78 & 196.2 & 196.794401027272 & -0.59440102727205 \tabularnewline
79 & 196.2 & 197.967985764459 & -1.76798576445879 \tabularnewline
80 & 198 & 199.141570501646 & -1.14157050164551 \tabularnewline
81 & 198.6 & 200.315155238832 & -1.71515523883226 \tabularnewline
82 & 201.3 & 201.488739976019 & -0.188739976018975 \tabularnewline
83 & 203.5 & 202.662324713206 & 0.837675286794278 \tabularnewline
84 & 204.1 & 203.835909450392 & 0.26409054960753 \tabularnewline
85 & 204.8 & 204.825350499642 & -0.0253504996415309 \tabularnewline
86 & 206.5 & 205.998935236828 & 0.501064763171723 \tabularnewline
87 & 207.8 & 207.172519974015 & 0.627480025984995 \tabularnewline
88 & 208.6 & 208.346104711202 & 0.253895288798241 \tabularnewline
89 & 209.7 & 209.519689448389 & 0.180310551611498 \tabularnewline
90 & 210 & 210.693274185575 & -0.693274185575227 \tabularnewline
91 & 211.7 & 211.866858922762 & -0.166858922761978 \tabularnewline
92 & 212.4 & 213.040443659949 & -0.640443659948698 \tabularnewline
93 & 213.7 & 214.214028397135 & -0.514028397135453 \tabularnewline
94 & 214.8 & 215.387613134322 & -0.587613134322168 \tabularnewline
95 & 216.4 & 216.561197871509 & -0.161197871508911 \tabularnewline
96 & 217.5 & 217.734782608696 & -0.234782608695654 \tabularnewline
97 & 218.6 & 218.908367345882 & -0.308367345882397 \tabularnewline
98 & 220.4 & 220.081952083069 & 0.318047916930877 \tabularnewline
99 & 221.8 & 221.255536820256 & 0.544463179744145 \tabularnewline
100 & 222.5 & 222.429121557443 & 0.0708784425573961 \tabularnewline
101 & 223.4 & 223.602706294629 & -0.202706294629335 \tabularnewline
102 & 225.5 & 224.776291031816 & 0.723708968183921 \tabularnewline
103 & 226.5 & 225.949875769003 & 0.550124230997184 \tabularnewline
104 & 227.8 & 227.123460506190 & 0.676539493810457 \tabularnewline
105 & 228.5 & 228.297045243376 & 0.202954756623709 \tabularnewline
106 & 229.1 & 229.470629980563 & -0.370629980563035 \tabularnewline
107 & 229.9 & 230.64421471775 & -0.74421471774976 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5492&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.3[/C][C]106.428376263893[/C][C]-4.12837626389348[/C][/ROW]
[ROW][C]2[/C][C]105.8[/C][C]107.60196100108[/C][C]-1.80196100107999[/C][/ROW]
[ROW][C]3[/C][C]106.7[/C][C]108.775545738267[/C][C]-2.07554573826671[/C][/ROW]
[ROW][C]4[/C][C]109.6[/C][C]109.949130475453[/C][C]-0.349130475453471[/C][/ROW]
[ROW][C]5[/C][C]111.9[/C][C]111.122715212640[/C][C]0.777284787359805[/C][/ROW]
[ROW][C]6[/C][C]113.3[/C][C]112.296299949827[/C][C]1.00370005017306[/C][/ROW]
[ROW][C]7[/C][C]114.6[/C][C]113.469884687014[/C][C]1.13011531298632[/C][/ROW]
[ROW][C]8[/C][C]115.7[/C][C]114.643469424200[/C][C]1.05653057579959[/C][/ROW]
[ROW][C]9[/C][C]117.3[/C][C]115.817054161387[/C][C]1.48294583861285[/C][/ROW]
[ROW][C]10[/C][C]119.8[/C][C]116.990638898574[/C][C]2.80936110142611[/C][/ROW]
[ROW][C]11[/C][C]120.6[/C][C]118.164223635761[/C][C]2.43577636423937[/C][/ROW]
[ROW][C]12[/C][C]121.4[/C][C]119.337808372947[/C][C]2.06219162705265[/C][/ROW]
[ROW][C]13[/C][C]123.5[/C][C]120.511393110134[/C][C]2.9886068898659[/C][/ROW]
[ROW][C]14[/C][C]125.2[/C][C]121.684977847321[/C][C]3.51502215267917[/C][/ROW]
[ROW][C]15[/C][C]126[/C][C]122.858562584508[/C][C]3.14143741549243[/C][/ROW]
[ROW][C]16[/C][C]126.8[/C][C]124.032147321694[/C][C]2.76785267830569[/C][/ROW]
[ROW][C]17[/C][C]128.1[/C][C]125.205732058881[/C][C]2.89426794111895[/C][/ROW]
[ROW][C]18[/C][C]128.2[/C][C]126.379316796068[/C][C]1.82068320393220[/C][/ROW]
[ROW][C]19[/C][C]129.3[/C][C]127.552901533255[/C][C]1.74709846674549[/C][/ROW]
[ROW][C]20[/C][C]130.6[/C][C]128.726486270441[/C][C]1.87351372955874[/C][/ROW]
[ROW][C]21[/C][C]131.4[/C][C]129.900071007628[/C][C]1.49992899237201[/C][/ROW]
[ROW][C]22[/C][C]131.1[/C][C]131.073655744815[/C][C]0.0263442551852623[/C][/ROW]
[ROW][C]23[/C][C]131.2[/C][C]132.247240482001[/C][C]-1.04724048200148[/C][/ROW]
[ROW][C]24[/C][C]131.2[/C][C]133.420825219188[/C][C]-2.22082521918822[/C][/ROW]
[ROW][C]25[/C][C]131.5[/C][C]134.594409956375[/C][C]-3.09440995637494[/C][/ROW]
[ROW][C]26[/C][C]133.5[/C][C]135.767994693562[/C][C]-2.26799469356168[/C][/ROW]
[ROW][C]27[/C][C]133.7[/C][C]136.941579430748[/C][C]-3.24157943074843[/C][/ROW]
[ROW][C]28[/C][C]133.5[/C][C]138.115164167935[/C][C]-4.61516416793516[/C][/ROW]
[ROW][C]29[/C][C]134[/C][C]139.288748905122[/C][C]-5.2887489051219[/C][/ROW]
[ROW][C]30[/C][C]135.9[/C][C]140.462333642309[/C][C]-4.56233364230863[/C][/ROW]
[ROW][C]31[/C][C]135.9[/C][C]141.635918379495[/C][C]-5.73591837949537[/C][/ROW]
[ROW][C]32[/C][C]137.2[/C][C]142.809503116682[/C][C]-5.60950311668212[/C][/ROW]
[ROW][C]33[/C][C]138.4[/C][C]143.983087853869[/C][C]-5.58308785386884[/C][/ROW]
[ROW][C]34[/C][C]140.9[/C][C]145.156672591056[/C][C]-4.25667259105558[/C][/ROW]
[ROW][C]35[/C][C]143[/C][C]146.330257328242[/C][C]-3.33025732824232[/C][/ROW]
[ROW][C]36[/C][C]144.1[/C][C]147.503842065429[/C][C]-3.40384206542907[/C][/ROW]
[ROW][C]37[/C][C]146.8[/C][C]148.677426802616[/C][C]-1.87742680261579[/C][/ROW]
[ROW][C]38[/C][C]149.1[/C][C]149.851011539803[/C][C]-0.751011539802541[/C][/ROW]
[ROW][C]39[/C][C]149.6[/C][C]151.024596276989[/C][C]-1.42459627698928[/C][/ROW]
[ROW][C]40[/C][C]151.2[/C][C]152.198181014176[/C][C]-0.998181014176022[/C][/ROW]
[ROW][C]41[/C][C]153.3[/C][C]153.371765751363[/C][C]-0.071765751362737[/C][/ROW]
[ROW][C]42[/C][C]156.9[/C][C]154.545350488549[/C][C]2.35464951145052[/C][/ROW]
[ROW][C]43[/C][C]157.2[/C][C]155.718935225736[/C][C]1.48106477426377[/C][/ROW]
[ROW][C]44[/C][C]158.5[/C][C]156.892519962923[/C][C]1.60748003707704[/C][/ROW]
[ROW][C]45[/C][C]160[/C][C]158.066104700110[/C][C]1.9338952998903[/C][/ROW]
[ROW][C]46[/C][C]162.5[/C][C]159.239689437296[/C][C]3.26031056270356[/C][/ROW]
[ROW][C]47[/C][C]162.9[/C][C]160.413274174483[/C][C]2.48672582551683[/C][/ROW]
[ROW][C]48[/C][C]164.7[/C][C]161.58685891167[/C][C]3.11314108833008[/C][/ROW]
[ROW][C]49[/C][C]165[/C][C]162.760443648857[/C][C]2.23955635114335[/C][/ROW]
[ROW][C]50[/C][C]167.2[/C][C]163.934028386043[/C][C]3.26597161395661[/C][/ROW]
[ROW][C]51[/C][C]168.6[/C][C]165.10761312323[/C][C]3.49238687676987[/C][/ROW]
[ROW][C]52[/C][C]169.5[/C][C]166.281197860417[/C][C]3.21880213958314[/C][/ROW]
[ROW][C]53[/C][C]169.8[/C][C]167.454782597604[/C][C]2.34521740239641[/C][/ROW]
[ROW][C]54[/C][C]171.9[/C][C]168.628367334790[/C][C]3.27163266520967[/C][/ROW]
[ROW][C]55[/C][C]172[/C][C]169.801952071977[/C][C]2.19804792802293[/C][/ROW]
[ROW][C]56[/C][C]173.7[/C][C]170.975536809164[/C][C]2.72446319083618[/C][/ROW]
[ROW][C]57[/C][C]173.9[/C][C]172.149121546351[/C][C]1.75087845364946[/C][/ROW]
[ROW][C]58[/C][C]175.9[/C][C]173.322706283537[/C][C]2.57729371646272[/C][/ROW]
[ROW][C]59[/C][C]175.6[/C][C]174.496291020724[/C][C]1.10370897927597[/C][/ROW]
[ROW][C]60[/C][C]176.1[/C][C]175.669875757911[/C][C]0.430124242089237[/C][/ROW]
[ROW][C]61[/C][C]176.3[/C][C]176.843460495098[/C][C]-0.543460495097485[/C][/ROW]
[ROW][C]62[/C][C]179.4[/C][C]178.017045232284[/C][C]1.38295476771577[/C][/ROW]
[ROW][C]63[/C][C]179.7[/C][C]179.190629969471[/C][C]0.509370030529018[/C][/ROW]
[ROW][C]64[/C][C]179.9[/C][C]180.364214706658[/C][C]-0.464214706657703[/C][/ROW]
[ROW][C]65[/C][C]180.4[/C][C]181.537799443844[/C][C]-1.13779944384444[/C][/ROW]
[ROW][C]66[/C][C]182.5[/C][C]182.711384181031[/C][C]-0.211384181031187[/C][/ROW]
[ROW][C]67[/C][C]183.6[/C][C]183.884968918218[/C][C]-0.284968918217928[/C][/ROW]
[ROW][C]68[/C][C]183.9[/C][C]185.058553655405[/C][C]-1.15855365540466[/C][/ROW]
[ROW][C]69[/C][C]184.5[/C][C]186.232138392591[/C][C]-1.7321383925914[/C][/ROW]
[ROW][C]70[/C][C]187.6[/C][C]187.405723129778[/C][C]0.194276870221859[/C][/ROW]
[ROW][C]71[/C][C]188[/C][C]188.579307866965[/C][C]-0.579307866964877[/C][/ROW]
[ROW][C]72[/C][C]188.5[/C][C]189.752892604152[/C][C]-1.25289260415161[/C][/ROW]
[ROW][C]73[/C][C]188.6[/C][C]190.926477341338[/C][C]-2.32647734133835[/C][/ROW]
[ROW][C]74[/C][C]191.9[/C][C]192.100062078525[/C][C]-0.200062078525077[/C][/ROW]
[ROW][C]75[/C][C]193.5[/C][C]193.273646815712[/C][C]0.226353184288174[/C][/ROW]
[ROW][C]76[/C][C]194.9[/C][C]194.447231552899[/C][C]0.452768447101445[/C][/ROW]
[ROW][C]77[/C][C]194.9[/C][C]195.620816290085[/C][C]-0.72081629008529[/C][/ROW]
[ROW][C]78[/C][C]196.2[/C][C]196.794401027272[/C][C]-0.59440102727205[/C][/ROW]
[ROW][C]79[/C][C]196.2[/C][C]197.967985764459[/C][C]-1.76798576445879[/C][/ROW]
[ROW][C]80[/C][C]198[/C][C]199.141570501646[/C][C]-1.14157050164551[/C][/ROW]
[ROW][C]81[/C][C]198.6[/C][C]200.315155238832[/C][C]-1.71515523883226[/C][/ROW]
[ROW][C]82[/C][C]201.3[/C][C]201.488739976019[/C][C]-0.188739976018975[/C][/ROW]
[ROW][C]83[/C][C]203.5[/C][C]202.662324713206[/C][C]0.837675286794278[/C][/ROW]
[ROW][C]84[/C][C]204.1[/C][C]203.835909450392[/C][C]0.26409054960753[/C][/ROW]
[ROW][C]85[/C][C]204.8[/C][C]204.825350499642[/C][C]-0.0253504996415309[/C][/ROW]
[ROW][C]86[/C][C]206.5[/C][C]205.998935236828[/C][C]0.501064763171723[/C][/ROW]
[ROW][C]87[/C][C]207.8[/C][C]207.172519974015[/C][C]0.627480025984995[/C][/ROW]
[ROW][C]88[/C][C]208.6[/C][C]208.346104711202[/C][C]0.253895288798241[/C][/ROW]
[ROW][C]89[/C][C]209.7[/C][C]209.519689448389[/C][C]0.180310551611498[/C][/ROW]
[ROW][C]90[/C][C]210[/C][C]210.693274185575[/C][C]-0.693274185575227[/C][/ROW]
[ROW][C]91[/C][C]211.7[/C][C]211.866858922762[/C][C]-0.166858922761978[/C][/ROW]
[ROW][C]92[/C][C]212.4[/C][C]213.040443659949[/C][C]-0.640443659948698[/C][/ROW]
[ROW][C]93[/C][C]213.7[/C][C]214.214028397135[/C][C]-0.514028397135453[/C][/ROW]
[ROW][C]94[/C][C]214.8[/C][C]215.387613134322[/C][C]-0.587613134322168[/C][/ROW]
[ROW][C]95[/C][C]216.4[/C][C]216.561197871509[/C][C]-0.161197871508911[/C][/ROW]
[ROW][C]96[/C][C]217.5[/C][C]217.734782608696[/C][C]-0.234782608695654[/C][/ROW]
[ROW][C]97[/C][C]218.6[/C][C]218.908367345882[/C][C]-0.308367345882397[/C][/ROW]
[ROW][C]98[/C][C]220.4[/C][C]220.081952083069[/C][C]0.318047916930877[/C][/ROW]
[ROW][C]99[/C][C]221.8[/C][C]221.255536820256[/C][C]0.544463179744145[/C][/ROW]
[ROW][C]100[/C][C]222.5[/C][C]222.429121557443[/C][C]0.0708784425573961[/C][/ROW]
[ROW][C]101[/C][C]223.4[/C][C]223.602706294629[/C][C]-0.202706294629335[/C][/ROW]
[ROW][C]102[/C][C]225.5[/C][C]224.776291031816[/C][C]0.723708968183921[/C][/ROW]
[ROW][C]103[/C][C]226.5[/C][C]225.949875769003[/C][C]0.550124230997184[/C][/ROW]
[ROW][C]104[/C][C]227.8[/C][C]227.123460506190[/C][C]0.676539493810457[/C][/ROW]
[ROW][C]105[/C][C]228.5[/C][C]228.297045243376[/C][C]0.202954756623709[/C][/ROW]
[ROW][C]106[/C][C]229.1[/C][C]229.470629980563[/C][C]-0.370629980563035[/C][/ROW]
[ROW][C]107[/C][C]229.9[/C][C]230.64421471775[/C][C]-0.74421471774976[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5492&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5492&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.3106.428376263893-4.12837626389348
2105.8107.60196100108-1.80196100107999
3106.7108.775545738267-2.07554573826671
4109.6109.949130475453-0.349130475453471
5111.9111.1227152126400.777284787359805
6113.3112.2962999498271.00370005017306
7114.6113.4698846870141.13011531298632
8115.7114.6434694242001.05653057579959
9117.3115.8170541613871.48294583861285
10119.8116.9906388985742.80936110142611
11120.6118.1642236357612.43577636423937
12121.4119.3378083729472.06219162705265
13123.5120.5113931101342.9886068898659
14125.2121.6849778473213.51502215267917
15126122.8585625845083.14143741549243
16126.8124.0321473216942.76785267830569
17128.1125.2057320588812.89426794111895
18128.2126.3793167960681.82068320393220
19129.3127.5529015332551.74709846674549
20130.6128.7264862704411.87351372955874
21131.4129.9000710076281.49992899237201
22131.1131.0736557448150.0263442551852623
23131.2132.247240482001-1.04724048200148
24131.2133.420825219188-2.22082521918822
25131.5134.594409956375-3.09440995637494
26133.5135.767994693562-2.26799469356168
27133.7136.941579430748-3.24157943074843
28133.5138.115164167935-4.61516416793516
29134139.288748905122-5.2887489051219
30135.9140.462333642309-4.56233364230863
31135.9141.635918379495-5.73591837949537
32137.2142.809503116682-5.60950311668212
33138.4143.983087853869-5.58308785386884
34140.9145.156672591056-4.25667259105558
35143146.330257328242-3.33025732824232
36144.1147.503842065429-3.40384206542907
37146.8148.677426802616-1.87742680261579
38149.1149.851011539803-0.751011539802541
39149.6151.024596276989-1.42459627698928
40151.2152.198181014176-0.998181014176022
41153.3153.371765751363-0.071765751362737
42156.9154.5453504885492.35464951145052
43157.2155.7189352257361.48106477426377
44158.5156.8925199629231.60748003707704
45160158.0661047001101.9338952998903
46162.5159.2396894372963.26031056270356
47162.9160.4132741744832.48672582551683
48164.7161.586858911673.11314108833008
49165162.7604436488572.23955635114335
50167.2163.9340283860433.26597161395661
51168.6165.107613123233.49238687676987
52169.5166.2811978604173.21880213958314
53169.8167.4547825976042.34521740239641
54171.9168.6283673347903.27163266520967
55172169.8019520719772.19804792802293
56173.7170.9755368091642.72446319083618
57173.9172.1491215463511.75087845364946
58175.9173.3227062835372.57729371646272
59175.6174.4962910207241.10370897927597
60176.1175.6698757579110.430124242089237
61176.3176.843460495098-0.543460495097485
62179.4178.0170452322841.38295476771577
63179.7179.1906299694710.509370030529018
64179.9180.364214706658-0.464214706657703
65180.4181.537799443844-1.13779944384444
66182.5182.711384181031-0.211384181031187
67183.6183.884968918218-0.284968918217928
68183.9185.058553655405-1.15855365540466
69184.5186.232138392591-1.7321383925914
70187.6187.4057231297780.194276870221859
71188188.579307866965-0.579307866964877
72188.5189.752892604152-1.25289260415161
73188.6190.926477341338-2.32647734133835
74191.9192.100062078525-0.200062078525077
75193.5193.2736468157120.226353184288174
76194.9194.4472315528990.452768447101445
77194.9195.620816290085-0.72081629008529
78196.2196.794401027272-0.59440102727205
79196.2197.967985764459-1.76798576445879
80198199.141570501646-1.14157050164551
81198.6200.315155238832-1.71515523883226
82201.3201.488739976019-0.188739976018975
83203.5202.6623247132060.837675286794278
84204.1203.8359094503920.26409054960753
85204.8204.825350499642-0.0253504996415309
86206.5205.9989352368280.501064763171723
87207.8207.1725199740150.627480025984995
88208.6208.3461047112020.253895288798241
89209.7209.5196894483890.180310551611498
90210210.693274185575-0.693274185575227
91211.7211.866858922762-0.166858922761978
92212.4213.040443659949-0.640443659948698
93213.7214.214028397135-0.514028397135453
94214.8215.387613134322-0.587613134322168
95216.4216.561197871509-0.161197871508911
96217.5217.734782608696-0.234782608695654
97218.6218.908367345882-0.308367345882397
98220.4220.0819520830690.318047916930877
99221.8221.2555368202560.544463179744145
100222.5222.4291215574430.0708784425573961
101223.4223.602706294629-0.202706294629335
102225.5224.7762910318160.723708968183921
103226.5225.9498757690030.550124230997184
104227.8227.1234605061900.676539493810457
105228.5228.2970452433760.202954756623709
106229.1229.470629980563-0.370629980563035
107229.9230.64421471775-0.74421471774976



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
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')