Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact206
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [paper] [2007-12-05 22:03:54] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
106.7	97.3	0	104.8	93.5
110.2	101	0	105.6	94.7
125.9	113.2	0	118.3	112.9
100.1	101	0	89.9	99.2
106.4	105.7	0	90.2	105.6
114.8	113.9	0	107	113
81.3	86.4	0	64.5	83.1
87	96.5	0	92.6	81.1
104.2	103.3	0	95.8	96.9
108	114.9	0	94.3	104.3
105	105.8	0	91.2	97.7
94.5	94.2	0	86.3	102.6
92	98.4	0	77.6	89.9
95.9	99.4	0	82.5	96
108.8	108.8	0	97.7	112.7
103.4	112.6	0	83.3	107.1
102.1	104.4	0	84.2	106.2
110.1	112.2	0	92.8	121
83.2	81.1	0	77.4	101.2
82.7	97.1	0	72.5	83.2
106.8	112.6	0	88.8	105.1
113.7	113.8	0	93.4	113.3
102.5	107.8	0	92.6	99.1
96.6	103.2	0	90.7	100.3
92.1	103.3	0	81.6	93.5
95.6	101.2	0	84.1	98.8
102.3	107.7	0	88.1	106.2
98.6	110.4	0	85.3	98.3
98.2	101.9	0	82.9	102.1
104.5	115.9	0	84.8	117.1
84	89.9	0	71.2	101.5
73.8	88.6	0	68.9	80.5
103.9	117.2	0	94.3	105.9
106	123.9	0	97.6	109.5
97.2	100	0	85.6	97.2
102.6	103.6	0	91.9	114.5
89	94.1	0	75.8	93.5
93.8	98.7	0	79.8	100.9
116.7	119.5	0	99	121.1
106.8	112.7	0	88.5	116.5
98.5	104.4	0	86.7	109.3
118.7	124.7	0	97.9	118.1
90	89.1	0	94.3	108.3
91.9	97	0	72.9	105.4
113.3	121.6	0	91.8	116.2
113.1	118.8	0	93.2	111.2
104.1	114	0	86.5	105.8
108.7	111.5	0	98.9	122.7
96.7	97.2	0	77.2	99.5
101	102.5	0	79.4	107.9
116.9	113.4	0	90.4	124.6
105.8	109.8	0	81.4	115
99	104.9	0	85.8	110.3
129.4	126.1	0	103.6	132.7
83	80	0	73.6	99.7
88.9	96.8	0	75.7	96.5
115.9	117.2	1	99.2	118.7
104.2	112.3	1	88.7	112.9
113.4	117.3	1	94.6	130.5
112.2	111.1	1	98.7	137.9
100.8	102.2	1	84.2	115
107.3	104.3	1	87.7	116.8
126.6	122.9	1	103.3	140.9
102.9	107.6	1	88.2	120.7
117.9	121.3	1	93.4	134.2
128.8	131.5	1	106.3	147.3
87.5	89	1	73.1	112.4
93.8	104.4	1	78.6	107.1
122.7	128.9	1	101.6	128.4
126.2	135.9	1	101.4	137.7
124.6	133.3	1	98.5	135
116.7	121.3	1	99	151
115.2	120.5	1	89.5	137.4
111.1	120.4	1	83.5	132.4
129.9	137.9	1	97.4	161.3
113.3	126.1	1	87.8	139.8
118.5	133.2	1	90.4	146
133.5	146.6	1	97.1	154.6
102.1	103.4	1	79.4	142.1
102.4	117.2	1	85	120.5




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

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2533&T=0

[TABLE]
[ROW][C]Summary of compuational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2533&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Prod[t] = + 27.4744598687837 + 0.594073355286528Tot[t] -0.900469014278283Conjun[t] -0.174035113286912Mach[t] + 0.27617796977481`Elek `[t] + 1.48514691753448M1[t] + 0.941688379550246M2[t] + 2.16562533561343M3[t] + 5.1889958036742M4[t] + 3.27580560303855M5[t] + 6.75941325447884M6[t] -7.59023340780786M7[t] + 6.0747418129244M8[t] + 8.68269632502206M9[t] + 10.4660625083265M10[t] + 6.48427475697439M11[t] + 0.0154713738943704t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Prod[t] =  +  27.4744598687837 +  0.594073355286528Tot[t] -0.900469014278283Conjun[t] -0.174035113286912Mach[t] +  0.27617796977481`Elek
`[t] +  1.48514691753448M1[t] +  0.941688379550246M2[t] +  2.16562533561343M3[t] +  5.1889958036742M4[t] +  3.27580560303855M5[t] +  6.75941325447884M6[t] -7.59023340780786M7[t] +  6.0747418129244M8[t] +  8.68269632502206M9[t] +  10.4660625083265M10[t] +  6.48427475697439M11[t] +  0.0154713738943704t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2533&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Prod[t] =  +  27.4744598687837 +  0.594073355286528Tot[t] -0.900469014278283Conjun[t] -0.174035113286912Mach[t] +  0.27617796977481`Elek
`[t] +  1.48514691753448M1[t] +  0.941688379550246M2[t] +  2.16562533561343M3[t] +  5.1889958036742M4[t] +  3.27580560303855M5[t] +  6.75941325447884M6[t] -7.59023340780786M7[t] +  6.0747418129244M8[t] +  8.68269632502206M9[t] +  10.4660625083265M10[t] +  6.48427475697439M11[t] +  0.0154713738943704t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2533&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2533&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
Prod[t] = + 27.4744598687837 + 0.594073355286528Tot[t] -0.900469014278283Conjun[t] -0.174035113286912Mach[t] + 0.27617796977481`Elek `[t] + 1.48514691753448M1[t] + 0.941688379550246M2[t] + 2.16562533561343M3[t] + 5.1889958036742M4[t] + 3.27580560303855M5[t] + 6.75941325447884M6[t] -7.59023340780786M7[t] + 6.0747418129244M8[t] + 8.68269632502206M9[t] + 10.4660625083265M10[t] + 6.48427475697439M11[t] + 0.0154713738943704t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)27.47445986878379.4108582.91940.0048590.002429
Tot0.5940733552865280.1706053.48220.000910.000455
Conjun-0.9004690142782832.050672-0.43910.6620850.331042
Mach-0.1740351132869120.113368-1.53510.1297590.064879
`Elek `0.276177969774810.1177042.34640.0221160.011058
M11.485146917534482.9104550.51030.6116390.305819
M20.9416883795502462.8611870.32910.7431530.371576
M32.165625335613432.8052520.7720.4430070.221503
M45.18899580367422.6674231.94530.0562020.028101
M53.275805603038552.610391.25490.2141470.107073
M66.759413254478842.8861252.3420.0223530.011177
M7-7.590233407807862.807738-2.70330.0088140.004407
M86.07474181292443.1274721.94240.0565640.028282
M98.682696325022063.0665642.83140.0062140.003107
M1010.46606250832652.9767123.5160.0008180.000409
M116.484274756974392.9814252.17490.03340.0167
t0.01547137389437040.0496020.31190.7561370.378068

\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) & 27.4744598687837 & 9.410858 & 2.9194 & 0.004859 & 0.002429 \tabularnewline
Tot & 0.594073355286528 & 0.170605 & 3.4822 & 0.00091 & 0.000455 \tabularnewline
Conjun & -0.900469014278283 & 2.050672 & -0.4391 & 0.662085 & 0.331042 \tabularnewline
Mach & -0.174035113286912 & 0.113368 & -1.5351 & 0.129759 & 0.064879 \tabularnewline
`Elek
` & 0.27617796977481 & 0.117704 & 2.3464 & 0.022116 & 0.011058 \tabularnewline
M1 & 1.48514691753448 & 2.910455 & 0.5103 & 0.611639 & 0.305819 \tabularnewline
M2 & 0.941688379550246 & 2.861187 & 0.3291 & 0.743153 & 0.371576 \tabularnewline
M3 & 2.16562533561343 & 2.805252 & 0.772 & 0.443007 & 0.221503 \tabularnewline
M4 & 5.1889958036742 & 2.667423 & 1.9453 & 0.056202 & 0.028101 \tabularnewline
M5 & 3.27580560303855 & 2.61039 & 1.2549 & 0.214147 & 0.107073 \tabularnewline
M6 & 6.75941325447884 & 2.886125 & 2.342 & 0.022353 & 0.011177 \tabularnewline
M7 & -7.59023340780786 & 2.807738 & -2.7033 & 0.008814 & 0.004407 \tabularnewline
M8 & 6.0747418129244 & 3.127472 & 1.9424 & 0.056564 & 0.028282 \tabularnewline
M9 & 8.68269632502206 & 3.066564 & 2.8314 & 0.006214 & 0.003107 \tabularnewline
M10 & 10.4660625083265 & 2.976712 & 3.516 & 0.000818 & 0.000409 \tabularnewline
M11 & 6.48427475697439 & 2.981425 & 2.1749 & 0.0334 & 0.0167 \tabularnewline
t & 0.0154713738943704 & 0.049602 & 0.3119 & 0.756137 & 0.378068 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2533&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]27.4744598687837[/C][C]9.410858[/C][C]2.9194[/C][C]0.004859[/C][C]0.002429[/C][/ROW]
[ROW][C]Tot[/C][C]0.594073355286528[/C][C]0.170605[/C][C]3.4822[/C][C]0.00091[/C][C]0.000455[/C][/ROW]
[ROW][C]Conjun[/C][C]-0.900469014278283[/C][C]2.050672[/C][C]-0.4391[/C][C]0.662085[/C][C]0.331042[/C][/ROW]
[ROW][C]Mach[/C][C]-0.174035113286912[/C][C]0.113368[/C][C]-1.5351[/C][C]0.129759[/C][C]0.064879[/C][/ROW]
[ROW][C]`Elek
`[/C][C]0.27617796977481[/C][C]0.117704[/C][C]2.3464[/C][C]0.022116[/C][C]0.011058[/C][/ROW]
[ROW][C]M1[/C][C]1.48514691753448[/C][C]2.910455[/C][C]0.5103[/C][C]0.611639[/C][C]0.305819[/C][/ROW]
[ROW][C]M2[/C][C]0.941688379550246[/C][C]2.861187[/C][C]0.3291[/C][C]0.743153[/C][C]0.371576[/C][/ROW]
[ROW][C]M3[/C][C]2.16562533561343[/C][C]2.805252[/C][C]0.772[/C][C]0.443007[/C][C]0.221503[/C][/ROW]
[ROW][C]M4[/C][C]5.1889958036742[/C][C]2.667423[/C][C]1.9453[/C][C]0.056202[/C][C]0.028101[/C][/ROW]
[ROW][C]M5[/C][C]3.27580560303855[/C][C]2.61039[/C][C]1.2549[/C][C]0.214147[/C][C]0.107073[/C][/ROW]
[ROW][C]M6[/C][C]6.75941325447884[/C][C]2.886125[/C][C]2.342[/C][C]0.022353[/C][C]0.011177[/C][/ROW]
[ROW][C]M7[/C][C]-7.59023340780786[/C][C]2.807738[/C][C]-2.7033[/C][C]0.008814[/C][C]0.004407[/C][/ROW]
[ROW][C]M8[/C][C]6.0747418129244[/C][C]3.127472[/C][C]1.9424[/C][C]0.056564[/C][C]0.028282[/C][/ROW]
[ROW][C]M9[/C][C]8.68269632502206[/C][C]3.066564[/C][C]2.8314[/C][C]0.006214[/C][C]0.003107[/C][/ROW]
[ROW][C]M10[/C][C]10.4660625083265[/C][C]2.976712[/C][C]3.516[/C][C]0.000818[/C][C]0.000409[/C][/ROW]
[ROW][C]M11[/C][C]6.48427475697439[/C][C]2.981425[/C][C]2.1749[/C][C]0.0334[/C][C]0.0167[/C][/ROW]
[ROW][C]t[/C][C]0.0154713738943704[/C][C]0.049602[/C][C]0.3119[/C][C]0.756137[/C][C]0.378068[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2533&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2533&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)27.47445986878379.4108582.91940.0048590.002429
Tot0.5940733552865280.1706053.48220.000910.000455
Conjun-0.9004690142782832.050672-0.43910.6620850.331042
Mach-0.1740351132869120.113368-1.53510.1297590.064879
`Elek `0.276177969774810.1177042.34640.0221160.011058
M11.485146917534482.9104550.51030.6116390.305819
M20.9416883795502462.8611870.32910.7431530.371576
M32.165625335613432.8052520.7720.4430070.221503
M45.18899580367422.6674231.94530.0562020.028101
M53.275805603038552.610391.25490.2141470.107073
M66.759413254478842.8861252.3420.0223530.011177
M7-7.590233407807862.807738-2.70330.0088140.004407
M86.07474181292443.1274721.94240.0565640.028282
M98.682696325022063.0665642.83140.0062140.003107
M1010.46606250832652.9767123.5160.0008180.000409
M116.484274756974392.9814252.17490.03340.0167
t0.01547137389437040.0496020.31190.7561370.378068







Multiple Linear Regression - Regression Statistics
Multiple R0.958455806196206
R-squared0.918637532431219
Adjusted R-squared0.897974048604227
F-TEST (value)44.4570499400122
F-TEST (DF numerator)16
F-TEST (DF denominator)63
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.21761989889206
Sum Squared Residuals1120.66400952641

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.958455806196206 \tabularnewline
R-squared & 0.918637532431219 \tabularnewline
Adjusted R-squared & 0.897974048604227 \tabularnewline
F-TEST (value) & 44.4570499400122 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 63 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.21761989889206 \tabularnewline
Sum Squared Residuals & 1120.66400952641 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2533&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.958455806196206[/C][/ROW]
[ROW][C]R-squared[/C][C]0.918637532431219[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.897974048604227[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]44.4570499400122[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]63[/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]4.21761989889206[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1120.66400952641[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2533&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2533&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.958455806196206
R-squared0.918637532431219
Adjusted R-squared0.897974048604227
F-TEST (value)44.4570499400122
F-TEST (DF numerator)16
F-TEST (DF denominator)63
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.21761989889206
Sum Squared Residuals1120.66400952641







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
197.399.9464654707617-2.64646547076166
2101101.689920523275-0.689920523274765
3113.2115.072473642389-1.87247364238852
4101103.943181949385-2.94318194938462
5105.7107.503453733521-1.80345373352119
6113.9115.112676016376-1.21267601637615
786.480.0158143443126.38418565568793
896.591.639736441164.86026355883995
9103.3108.287923598004-4.98792359800426
10114.9114.6490095515560.250990448444123
11105.8107.617207358914-1.81720735891421
1294.297.116677852328-2.91667785232806
1398.495.13875802499673.26124197500335
1499.497.75957050704471.64042949295529
15108.8108.6293634934770.170636506523263
16112.6109.4197182174773.18028178252276
17104.4106.344512254108-1.94451225410791
18112.2117.186910100135-4.98691010013454
1981.184.0839784976118-2.98397849761182
2097.193.34895701375453.75104298624553
21112.6113.501075953644-0.901075953643509
22113.8120.863117493353-7.06311749335305
23107.8106.4606804565131.33931954348662
24103.297.14892455621776.05107544378226
25103.395.68192208529947.61807791470059
26101.298.26184712130162.9381528786984
27107.7104.8291234548652.87087654513516
28110.4103.9753862382426.42461376175782
29101.9103.307198626419-1.40719862641916
30115.9114.3609426214361.53905737856404
3189.985.90676476188483.99323523811523
3288.688.12820652787770.4717934721223
33117.2111.2276689627875.97233103721315
34123.9114.693985383439.20601461657009
35100104.191255810663-4.19125581066347
36103.6104.611906209527-1.01190620952737
3794.195.0353548277077-0.935354827707715
3898.798.706496292179-0.00649629217911918
39119.5115.7875052725413.71249472745938
40112.7113.501970925708-0.801970925707587
41104.4104.998225071626-0.598225071625923
42124.7120.9787587389533.72124126104663
4389.187.51466045787741.58533954212256
4497105.247281739541-8.24728173954143
45121.6120.2773358611101.32266413888951
46118.8120.332819739776-1.53281973977630
47114110.6945173869783.3054826130219
48111.5109.4678237226532.03217627734731
4997.2101.208794810194-4.00879481019360
50102.5105.172340770713-2.67234077071301
51113.4118.555301298810-5.15530129880965
52109.8113.914936406828-4.11493640682837
53104.9105.913727807735-1.01372780773466
54126.1130.561198340229-4.46119834022851
558084.7691997625799-4.76919976257989
5696.8100.705435912215-3.90543591221513
57117.2120.509699143424-3.3096991434235
58112.3115.583414908589-3.28341490858865
59117.3120.916498499411-3.6164984994108
60111.1115.064980101844-3.9649801018442
61102.2105.992195777824-3.7921957778237
62104.3109.213682872187-4.91368287218674
63122.9125.859648263471-2.95964826347137
64107.6111.868086806317-4.26808680631702
65121.3121.704888311742-0.404888311741646
66131.5133.052245352348-1.55224535234832
678990.322195106607-1.32219510660698
68104.4105.324367476654-0.924367476654207
69128.9126.9962964810311.9037035189686
70135.9133.4776529232962.42234707670379
71133.3128.319840487524.98015951247997
72121.3121.48968755743-0.189687557429956
73120.5119.9965090032170.503490996782732
74120.4116.69614191333.70385808669995
75137.9134.6665845744483.23341542555173
76126.1123.5767194560432.52328054395701
77133.2126.0279941948497.17200580515049
78146.6139.6472688305236.95273116947685
79103.4106.287387069127-2.88738706912703
80117.2113.2060148887973.99398511120298

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 97.3 & 99.9464654707617 & -2.64646547076166 \tabularnewline
2 & 101 & 101.689920523275 & -0.689920523274765 \tabularnewline
3 & 113.2 & 115.072473642389 & -1.87247364238852 \tabularnewline
4 & 101 & 103.943181949385 & -2.94318194938462 \tabularnewline
5 & 105.7 & 107.503453733521 & -1.80345373352119 \tabularnewline
6 & 113.9 & 115.112676016376 & -1.21267601637615 \tabularnewline
7 & 86.4 & 80.015814344312 & 6.38418565568793 \tabularnewline
8 & 96.5 & 91.63973644116 & 4.86026355883995 \tabularnewline
9 & 103.3 & 108.287923598004 & -4.98792359800426 \tabularnewline
10 & 114.9 & 114.649009551556 & 0.250990448444123 \tabularnewline
11 & 105.8 & 107.617207358914 & -1.81720735891421 \tabularnewline
12 & 94.2 & 97.116677852328 & -2.91667785232806 \tabularnewline
13 & 98.4 & 95.1387580249967 & 3.26124197500335 \tabularnewline
14 & 99.4 & 97.7595705070447 & 1.64042949295529 \tabularnewline
15 & 108.8 & 108.629363493477 & 0.170636506523263 \tabularnewline
16 & 112.6 & 109.419718217477 & 3.18028178252276 \tabularnewline
17 & 104.4 & 106.344512254108 & -1.94451225410791 \tabularnewline
18 & 112.2 & 117.186910100135 & -4.98691010013454 \tabularnewline
19 & 81.1 & 84.0839784976118 & -2.98397849761182 \tabularnewline
20 & 97.1 & 93.3489570137545 & 3.75104298624553 \tabularnewline
21 & 112.6 & 113.501075953644 & -0.901075953643509 \tabularnewline
22 & 113.8 & 120.863117493353 & -7.06311749335305 \tabularnewline
23 & 107.8 & 106.460680456513 & 1.33931954348662 \tabularnewline
24 & 103.2 & 97.1489245562177 & 6.05107544378226 \tabularnewline
25 & 103.3 & 95.6819220852994 & 7.61807791470059 \tabularnewline
26 & 101.2 & 98.2618471213016 & 2.9381528786984 \tabularnewline
27 & 107.7 & 104.829123454865 & 2.87087654513516 \tabularnewline
28 & 110.4 & 103.975386238242 & 6.42461376175782 \tabularnewline
29 & 101.9 & 103.307198626419 & -1.40719862641916 \tabularnewline
30 & 115.9 & 114.360942621436 & 1.53905737856404 \tabularnewline
31 & 89.9 & 85.9067647618848 & 3.99323523811523 \tabularnewline
32 & 88.6 & 88.1282065278777 & 0.4717934721223 \tabularnewline
33 & 117.2 & 111.227668962787 & 5.97233103721315 \tabularnewline
34 & 123.9 & 114.69398538343 & 9.20601461657009 \tabularnewline
35 & 100 & 104.191255810663 & -4.19125581066347 \tabularnewline
36 & 103.6 & 104.611906209527 & -1.01190620952737 \tabularnewline
37 & 94.1 & 95.0353548277077 & -0.935354827707715 \tabularnewline
38 & 98.7 & 98.706496292179 & -0.00649629217911918 \tabularnewline
39 & 119.5 & 115.787505272541 & 3.71249472745938 \tabularnewline
40 & 112.7 & 113.501970925708 & -0.801970925707587 \tabularnewline
41 & 104.4 & 104.998225071626 & -0.598225071625923 \tabularnewline
42 & 124.7 & 120.978758738953 & 3.72124126104663 \tabularnewline
43 & 89.1 & 87.5146604578774 & 1.58533954212256 \tabularnewline
44 & 97 & 105.247281739541 & -8.24728173954143 \tabularnewline
45 & 121.6 & 120.277335861110 & 1.32266413888951 \tabularnewline
46 & 118.8 & 120.332819739776 & -1.53281973977630 \tabularnewline
47 & 114 & 110.694517386978 & 3.3054826130219 \tabularnewline
48 & 111.5 & 109.467823722653 & 2.03217627734731 \tabularnewline
49 & 97.2 & 101.208794810194 & -4.00879481019360 \tabularnewline
50 & 102.5 & 105.172340770713 & -2.67234077071301 \tabularnewline
51 & 113.4 & 118.555301298810 & -5.15530129880965 \tabularnewline
52 & 109.8 & 113.914936406828 & -4.11493640682837 \tabularnewline
53 & 104.9 & 105.913727807735 & -1.01372780773466 \tabularnewline
54 & 126.1 & 130.561198340229 & -4.46119834022851 \tabularnewline
55 & 80 & 84.7691997625799 & -4.76919976257989 \tabularnewline
56 & 96.8 & 100.705435912215 & -3.90543591221513 \tabularnewline
57 & 117.2 & 120.509699143424 & -3.3096991434235 \tabularnewline
58 & 112.3 & 115.583414908589 & -3.28341490858865 \tabularnewline
59 & 117.3 & 120.916498499411 & -3.6164984994108 \tabularnewline
60 & 111.1 & 115.064980101844 & -3.9649801018442 \tabularnewline
61 & 102.2 & 105.992195777824 & -3.7921957778237 \tabularnewline
62 & 104.3 & 109.213682872187 & -4.91368287218674 \tabularnewline
63 & 122.9 & 125.859648263471 & -2.95964826347137 \tabularnewline
64 & 107.6 & 111.868086806317 & -4.26808680631702 \tabularnewline
65 & 121.3 & 121.704888311742 & -0.404888311741646 \tabularnewline
66 & 131.5 & 133.052245352348 & -1.55224535234832 \tabularnewline
67 & 89 & 90.322195106607 & -1.32219510660698 \tabularnewline
68 & 104.4 & 105.324367476654 & -0.924367476654207 \tabularnewline
69 & 128.9 & 126.996296481031 & 1.9037035189686 \tabularnewline
70 & 135.9 & 133.477652923296 & 2.42234707670379 \tabularnewline
71 & 133.3 & 128.31984048752 & 4.98015951247997 \tabularnewline
72 & 121.3 & 121.48968755743 & -0.189687557429956 \tabularnewline
73 & 120.5 & 119.996509003217 & 0.503490996782732 \tabularnewline
74 & 120.4 & 116.6961419133 & 3.70385808669995 \tabularnewline
75 & 137.9 & 134.666584574448 & 3.23341542555173 \tabularnewline
76 & 126.1 & 123.576719456043 & 2.52328054395701 \tabularnewline
77 & 133.2 & 126.027994194849 & 7.17200580515049 \tabularnewline
78 & 146.6 & 139.647268830523 & 6.95273116947685 \tabularnewline
79 & 103.4 & 106.287387069127 & -2.88738706912703 \tabularnewline
80 & 117.2 & 113.206014888797 & 3.99398511120298 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2533&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]99.9464654707617[/C][C]-2.64646547076166[/C][/ROW]
[ROW][C]2[/C][C]101[/C][C]101.689920523275[/C][C]-0.689920523274765[/C][/ROW]
[ROW][C]3[/C][C]113.2[/C][C]115.072473642389[/C][C]-1.87247364238852[/C][/ROW]
[ROW][C]4[/C][C]101[/C][C]103.943181949385[/C][C]-2.94318194938462[/C][/ROW]
[ROW][C]5[/C][C]105.7[/C][C]107.503453733521[/C][C]-1.80345373352119[/C][/ROW]
[ROW][C]6[/C][C]113.9[/C][C]115.112676016376[/C][C]-1.21267601637615[/C][/ROW]
[ROW][C]7[/C][C]86.4[/C][C]80.015814344312[/C][C]6.38418565568793[/C][/ROW]
[ROW][C]8[/C][C]96.5[/C][C]91.63973644116[/C][C]4.86026355883995[/C][/ROW]
[ROW][C]9[/C][C]103.3[/C][C]108.287923598004[/C][C]-4.98792359800426[/C][/ROW]
[ROW][C]10[/C][C]114.9[/C][C]114.649009551556[/C][C]0.250990448444123[/C][/ROW]
[ROW][C]11[/C][C]105.8[/C][C]107.617207358914[/C][C]-1.81720735891421[/C][/ROW]
[ROW][C]12[/C][C]94.2[/C][C]97.116677852328[/C][C]-2.91667785232806[/C][/ROW]
[ROW][C]13[/C][C]98.4[/C][C]95.1387580249967[/C][C]3.26124197500335[/C][/ROW]
[ROW][C]14[/C][C]99.4[/C][C]97.7595705070447[/C][C]1.64042949295529[/C][/ROW]
[ROW][C]15[/C][C]108.8[/C][C]108.629363493477[/C][C]0.170636506523263[/C][/ROW]
[ROW][C]16[/C][C]112.6[/C][C]109.419718217477[/C][C]3.18028178252276[/C][/ROW]
[ROW][C]17[/C][C]104.4[/C][C]106.344512254108[/C][C]-1.94451225410791[/C][/ROW]
[ROW][C]18[/C][C]112.2[/C][C]117.186910100135[/C][C]-4.98691010013454[/C][/ROW]
[ROW][C]19[/C][C]81.1[/C][C]84.0839784976118[/C][C]-2.98397849761182[/C][/ROW]
[ROW][C]20[/C][C]97.1[/C][C]93.3489570137545[/C][C]3.75104298624553[/C][/ROW]
[ROW][C]21[/C][C]112.6[/C][C]113.501075953644[/C][C]-0.901075953643509[/C][/ROW]
[ROW][C]22[/C][C]113.8[/C][C]120.863117493353[/C][C]-7.06311749335305[/C][/ROW]
[ROW][C]23[/C][C]107.8[/C][C]106.460680456513[/C][C]1.33931954348662[/C][/ROW]
[ROW][C]24[/C][C]103.2[/C][C]97.1489245562177[/C][C]6.05107544378226[/C][/ROW]
[ROW][C]25[/C][C]103.3[/C][C]95.6819220852994[/C][C]7.61807791470059[/C][/ROW]
[ROW][C]26[/C][C]101.2[/C][C]98.2618471213016[/C][C]2.9381528786984[/C][/ROW]
[ROW][C]27[/C][C]107.7[/C][C]104.829123454865[/C][C]2.87087654513516[/C][/ROW]
[ROW][C]28[/C][C]110.4[/C][C]103.975386238242[/C][C]6.42461376175782[/C][/ROW]
[ROW][C]29[/C][C]101.9[/C][C]103.307198626419[/C][C]-1.40719862641916[/C][/ROW]
[ROW][C]30[/C][C]115.9[/C][C]114.360942621436[/C][C]1.53905737856404[/C][/ROW]
[ROW][C]31[/C][C]89.9[/C][C]85.9067647618848[/C][C]3.99323523811523[/C][/ROW]
[ROW][C]32[/C][C]88.6[/C][C]88.1282065278777[/C][C]0.4717934721223[/C][/ROW]
[ROW][C]33[/C][C]117.2[/C][C]111.227668962787[/C][C]5.97233103721315[/C][/ROW]
[ROW][C]34[/C][C]123.9[/C][C]114.69398538343[/C][C]9.20601461657009[/C][/ROW]
[ROW][C]35[/C][C]100[/C][C]104.191255810663[/C][C]-4.19125581066347[/C][/ROW]
[ROW][C]36[/C][C]103.6[/C][C]104.611906209527[/C][C]-1.01190620952737[/C][/ROW]
[ROW][C]37[/C][C]94.1[/C][C]95.0353548277077[/C][C]-0.935354827707715[/C][/ROW]
[ROW][C]38[/C][C]98.7[/C][C]98.706496292179[/C][C]-0.00649629217911918[/C][/ROW]
[ROW][C]39[/C][C]119.5[/C][C]115.787505272541[/C][C]3.71249472745938[/C][/ROW]
[ROW][C]40[/C][C]112.7[/C][C]113.501970925708[/C][C]-0.801970925707587[/C][/ROW]
[ROW][C]41[/C][C]104.4[/C][C]104.998225071626[/C][C]-0.598225071625923[/C][/ROW]
[ROW][C]42[/C][C]124.7[/C][C]120.978758738953[/C][C]3.72124126104663[/C][/ROW]
[ROW][C]43[/C][C]89.1[/C][C]87.5146604578774[/C][C]1.58533954212256[/C][/ROW]
[ROW][C]44[/C][C]97[/C][C]105.247281739541[/C][C]-8.24728173954143[/C][/ROW]
[ROW][C]45[/C][C]121.6[/C][C]120.277335861110[/C][C]1.32266413888951[/C][/ROW]
[ROW][C]46[/C][C]118.8[/C][C]120.332819739776[/C][C]-1.53281973977630[/C][/ROW]
[ROW][C]47[/C][C]114[/C][C]110.694517386978[/C][C]3.3054826130219[/C][/ROW]
[ROW][C]48[/C][C]111.5[/C][C]109.467823722653[/C][C]2.03217627734731[/C][/ROW]
[ROW][C]49[/C][C]97.2[/C][C]101.208794810194[/C][C]-4.00879481019360[/C][/ROW]
[ROW][C]50[/C][C]102.5[/C][C]105.172340770713[/C][C]-2.67234077071301[/C][/ROW]
[ROW][C]51[/C][C]113.4[/C][C]118.555301298810[/C][C]-5.15530129880965[/C][/ROW]
[ROW][C]52[/C][C]109.8[/C][C]113.914936406828[/C][C]-4.11493640682837[/C][/ROW]
[ROW][C]53[/C][C]104.9[/C][C]105.913727807735[/C][C]-1.01372780773466[/C][/ROW]
[ROW][C]54[/C][C]126.1[/C][C]130.561198340229[/C][C]-4.46119834022851[/C][/ROW]
[ROW][C]55[/C][C]80[/C][C]84.7691997625799[/C][C]-4.76919976257989[/C][/ROW]
[ROW][C]56[/C][C]96.8[/C][C]100.705435912215[/C][C]-3.90543591221513[/C][/ROW]
[ROW][C]57[/C][C]117.2[/C][C]120.509699143424[/C][C]-3.3096991434235[/C][/ROW]
[ROW][C]58[/C][C]112.3[/C][C]115.583414908589[/C][C]-3.28341490858865[/C][/ROW]
[ROW][C]59[/C][C]117.3[/C][C]120.916498499411[/C][C]-3.6164984994108[/C][/ROW]
[ROW][C]60[/C][C]111.1[/C][C]115.064980101844[/C][C]-3.9649801018442[/C][/ROW]
[ROW][C]61[/C][C]102.2[/C][C]105.992195777824[/C][C]-3.7921957778237[/C][/ROW]
[ROW][C]62[/C][C]104.3[/C][C]109.213682872187[/C][C]-4.91368287218674[/C][/ROW]
[ROW][C]63[/C][C]122.9[/C][C]125.859648263471[/C][C]-2.95964826347137[/C][/ROW]
[ROW][C]64[/C][C]107.6[/C][C]111.868086806317[/C][C]-4.26808680631702[/C][/ROW]
[ROW][C]65[/C][C]121.3[/C][C]121.704888311742[/C][C]-0.404888311741646[/C][/ROW]
[ROW][C]66[/C][C]131.5[/C][C]133.052245352348[/C][C]-1.55224535234832[/C][/ROW]
[ROW][C]67[/C][C]89[/C][C]90.322195106607[/C][C]-1.32219510660698[/C][/ROW]
[ROW][C]68[/C][C]104.4[/C][C]105.324367476654[/C][C]-0.924367476654207[/C][/ROW]
[ROW][C]69[/C][C]128.9[/C][C]126.996296481031[/C][C]1.9037035189686[/C][/ROW]
[ROW][C]70[/C][C]135.9[/C][C]133.477652923296[/C][C]2.42234707670379[/C][/ROW]
[ROW][C]71[/C][C]133.3[/C][C]128.31984048752[/C][C]4.98015951247997[/C][/ROW]
[ROW][C]72[/C][C]121.3[/C][C]121.48968755743[/C][C]-0.189687557429956[/C][/ROW]
[ROW][C]73[/C][C]120.5[/C][C]119.996509003217[/C][C]0.503490996782732[/C][/ROW]
[ROW][C]74[/C][C]120.4[/C][C]116.6961419133[/C][C]3.70385808669995[/C][/ROW]
[ROW][C]75[/C][C]137.9[/C][C]134.666584574448[/C][C]3.23341542555173[/C][/ROW]
[ROW][C]76[/C][C]126.1[/C][C]123.576719456043[/C][C]2.52328054395701[/C][/ROW]
[ROW][C]77[/C][C]133.2[/C][C]126.027994194849[/C][C]7.17200580515049[/C][/ROW]
[ROW][C]78[/C][C]146.6[/C][C]139.647268830523[/C][C]6.95273116947685[/C][/ROW]
[ROW][C]79[/C][C]103.4[/C][C]106.287387069127[/C][C]-2.88738706912703[/C][/ROW]
[ROW][C]80[/C][C]117.2[/C][C]113.206014888797[/C][C]3.99398511120298[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2533&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2533&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.399.9464654707617-2.64646547076166
2101101.689920523275-0.689920523274765
3113.2115.072473642389-1.87247364238852
4101103.943181949385-2.94318194938462
5105.7107.503453733521-1.80345373352119
6113.9115.112676016376-1.21267601637615
786.480.0158143443126.38418565568793
896.591.639736441164.86026355883995
9103.3108.287923598004-4.98792359800426
10114.9114.6490095515560.250990448444123
11105.8107.617207358914-1.81720735891421
1294.297.116677852328-2.91667785232806
1398.495.13875802499673.26124197500335
1499.497.75957050704471.64042949295529
15108.8108.6293634934770.170636506523263
16112.6109.4197182174773.18028178252276
17104.4106.344512254108-1.94451225410791
18112.2117.186910100135-4.98691010013454
1981.184.0839784976118-2.98397849761182
2097.193.34895701375453.75104298624553
21112.6113.501075953644-0.901075953643509
22113.8120.863117493353-7.06311749335305
23107.8106.4606804565131.33931954348662
24103.297.14892455621776.05107544378226
25103.395.68192208529947.61807791470059
26101.298.26184712130162.9381528786984
27107.7104.8291234548652.87087654513516
28110.4103.9753862382426.42461376175782
29101.9103.307198626419-1.40719862641916
30115.9114.3609426214361.53905737856404
3189.985.90676476188483.99323523811523
3288.688.12820652787770.4717934721223
33117.2111.2276689627875.97233103721315
34123.9114.693985383439.20601461657009
35100104.191255810663-4.19125581066347
36103.6104.611906209527-1.01190620952737
3794.195.0353548277077-0.935354827707715
3898.798.706496292179-0.00649629217911918
39119.5115.7875052725413.71249472745938
40112.7113.501970925708-0.801970925707587
41104.4104.998225071626-0.598225071625923
42124.7120.9787587389533.72124126104663
4389.187.51466045787741.58533954212256
4497105.247281739541-8.24728173954143
45121.6120.2773358611101.32266413888951
46118.8120.332819739776-1.53281973977630
47114110.6945173869783.3054826130219
48111.5109.4678237226532.03217627734731
4997.2101.208794810194-4.00879481019360
50102.5105.172340770713-2.67234077071301
51113.4118.555301298810-5.15530129880965
52109.8113.914936406828-4.11493640682837
53104.9105.913727807735-1.01372780773466
54126.1130.561198340229-4.46119834022851
558084.7691997625799-4.76919976257989
5696.8100.705435912215-3.90543591221513
57117.2120.509699143424-3.3096991434235
58112.3115.583414908589-3.28341490858865
59117.3120.916498499411-3.6164984994108
60111.1115.064980101844-3.9649801018442
61102.2105.992195777824-3.7921957778237
62104.3109.213682872187-4.91368287218674
63122.9125.859648263471-2.95964826347137
64107.6111.868086806317-4.26808680631702
65121.3121.704888311742-0.404888311741646
66131.5133.052245352348-1.55224535234832
678990.322195106607-1.32219510660698
68104.4105.324367476654-0.924367476654207
69128.9126.9962964810311.9037035189686
70135.9133.4776529232962.42234707670379
71133.3128.319840487524.98015951247997
72121.3121.48968755743-0.189687557429956
73120.5119.9965090032170.503490996782732
74120.4116.69614191333.70385808669995
75137.9134.6665845744483.23341542555173
76126.1123.5767194560432.52328054395701
77133.2126.0279941948497.17200580515049
78146.6139.6472688305236.95273116947685
79103.4106.287387069127-2.88738706912703
80117.2113.2060148887973.99398511120298



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