Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 21 Nov 2007 06:35:06 -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/21/t1195651785g67q5xc25ekjylr.htm/, Retrieved Tue, 07 May 2024 20:55:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5854, Retrieved Tue, 07 May 2024 20:55:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact225
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [invoering euro vs...] [2007-11-21 13:35:06] [20b3c1d23568d98c39f9358fef47a65d] [Current]
Feedback Forum

Post a new message
Dataseries X:
1	88.2
1	73.4
1	81.3
1	89.4
1	80.7
1	80.1
1	100.8
1	97.0
1	93.6
1	67.1
1	88.7
1	89.1
1	98.7
1	76.0
1	81.6
1	92.9
1	84.8
1	79.4
1	100.3
1	90.7
1	84.2
1	69.9
1	85.3
1	81.5
1	92.4
1	71.2
1	74.5
1	86.4
1	73.6
1	80.1
1	91.0
1	87.3
1	78.8
1	72.4
1	83.1
1	90.0
1	99.8
1	73.1
1	80.8
1	92.0
1	75.1
1	84.2
1	99.6
1	89.5
1	87.8
1	70.5
1	80.7
1	94.1
1	97.2
1	66.5
1	81.4
1	82.5
1	76.1
1	88.0
1	90.0
1	94.3
1	96.4
1	68.0
1	82.1
1	103.0
1	109.7
1	75.1
1	88.0
1	86.4
1	84.4
1	91.1
1	96.4
1	94.9
1	94.1
0	71.9
0	93.4
0	108.2
0	104.1
0	80.6
0	86.4
0	98.3
0	94.3
0	88.6
0	109.2
0	102.0
0	101.3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5854&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
Y[t] = + 98.3519097222222 -7.36510416666666X[t] + 4.69468625992064M1[t] -20.2410838293651M2[t] -11.9911396329365M3[t] -4.34119543650794M4[t] -12.8055369543651M5[t] -9.6413070436508M6[t] + 3.99435143849206M7[t] -0.569990079365075M8[t] -3.4057601686508M9[t] -24.2498883928571M10[t] -8.71661086309524M11[t] + 0.0500558035714289t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  98.3519097222222 -7.36510416666666X[t] +  4.69468625992064M1[t] -20.2410838293651M2[t] -11.9911396329365M3[t] -4.34119543650794M4[t] -12.8055369543651M5[t] -9.6413070436508M6[t] +  3.99435143849206M7[t] -0.569990079365075M8[t] -3.4057601686508M9[t] -24.2498883928571M10[t] -8.71661086309524M11[t] +  0.0500558035714289t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5854&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  98.3519097222222 -7.36510416666666X[t] +  4.69468625992064M1[t] -20.2410838293651M2[t] -11.9911396329365M3[t] -4.34119543650794M4[t] -12.8055369543651M5[t] -9.6413070436508M6[t] +  3.99435143849206M7[t] -0.569990079365075M8[t] -3.4057601686508M9[t] -24.2498883928571M10[t] -8.71661086309524M11[t] +  0.0500558035714289t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5854&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5854&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] = + 98.3519097222222 -7.36510416666666X[t] + 4.69468625992064M1[t] -20.2410838293651M2[t] -11.9911396329365M3[t] -4.34119543650794M4[t] -12.8055369543651M5[t] -9.6413070436508M6[t] + 3.99435143849206M7[t] -0.569990079365075M8[t] -3.4057601686508M9[t] -24.2498883928571M10[t] -8.71661086309524M11[t] + 0.0500558035714289t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)98.35190972222223.21935430.550200
X-7.365104166666661.918055-3.83990.0002760.000138
M14.694686259920642.6824111.75020.0846660.042333
M2-20.24108382936512.681282-7.54900
M3-11.99113963293652.680471-4.47353.1e-051.5e-05
M4-4.341195436507942.67998-1.61990.109960.05498
M5-12.80553695436512.679809-4.77851e-055e-06
M6-9.64130704365082.679958-3.59760.000610.000305
M73.994351438492062.6804271.49020.1408670.070433
M8-0.5699900793650752.681215-0.21260.8322950.416147
M9-3.40576016865082.682322-1.26970.2085820.104291
M10-24.24988839285712.781336-8.718800
M11-8.716610863095242.780874-3.13450.0025550.001278
t0.05005580357142890.0292751.70990.0919170.045958

\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) & 98.3519097222222 & 3.219354 & 30.5502 & 0 & 0 \tabularnewline
X & -7.36510416666666 & 1.918055 & -3.8399 & 0.000276 & 0.000138 \tabularnewline
M1 & 4.69468625992064 & 2.682411 & 1.7502 & 0.084666 & 0.042333 \tabularnewline
M2 & -20.2410838293651 & 2.681282 & -7.549 & 0 & 0 \tabularnewline
M3 & -11.9911396329365 & 2.680471 & -4.4735 & 3.1e-05 & 1.5e-05 \tabularnewline
M4 & -4.34119543650794 & 2.67998 & -1.6199 & 0.10996 & 0.05498 \tabularnewline
M5 & -12.8055369543651 & 2.679809 & -4.7785 & 1e-05 & 5e-06 \tabularnewline
M6 & -9.6413070436508 & 2.679958 & -3.5976 & 0.00061 & 0.000305 \tabularnewline
M7 & 3.99435143849206 & 2.680427 & 1.4902 & 0.140867 & 0.070433 \tabularnewline
M8 & -0.569990079365075 & 2.681215 & -0.2126 & 0.832295 & 0.416147 \tabularnewline
M9 & -3.4057601686508 & 2.682322 & -1.2697 & 0.208582 & 0.104291 \tabularnewline
M10 & -24.2498883928571 & 2.781336 & -8.7188 & 0 & 0 \tabularnewline
M11 & -8.71661086309524 & 2.780874 & -3.1345 & 0.002555 & 0.001278 \tabularnewline
t & 0.0500558035714289 & 0.029275 & 1.7099 & 0.091917 & 0.045958 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5854&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]98.3519097222222[/C][C]3.219354[/C][C]30.5502[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-7.36510416666666[/C][C]1.918055[/C][C]-3.8399[/C][C]0.000276[/C][C]0.000138[/C][/ROW]
[ROW][C]M1[/C][C]4.69468625992064[/C][C]2.682411[/C][C]1.7502[/C][C]0.084666[/C][C]0.042333[/C][/ROW]
[ROW][C]M2[/C][C]-20.2410838293651[/C][C]2.681282[/C][C]-7.549[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-11.9911396329365[/C][C]2.680471[/C][C]-4.4735[/C][C]3.1e-05[/C][C]1.5e-05[/C][/ROW]
[ROW][C]M4[/C][C]-4.34119543650794[/C][C]2.67998[/C][C]-1.6199[/C][C]0.10996[/C][C]0.05498[/C][/ROW]
[ROW][C]M5[/C][C]-12.8055369543651[/C][C]2.679809[/C][C]-4.7785[/C][C]1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]M6[/C][C]-9.6413070436508[/C][C]2.679958[/C][C]-3.5976[/C][C]0.00061[/C][C]0.000305[/C][/ROW]
[ROW][C]M7[/C][C]3.99435143849206[/C][C]2.680427[/C][C]1.4902[/C][C]0.140867[/C][C]0.070433[/C][/ROW]
[ROW][C]M8[/C][C]-0.569990079365075[/C][C]2.681215[/C][C]-0.2126[/C][C]0.832295[/C][C]0.416147[/C][/ROW]
[ROW][C]M9[/C][C]-3.4057601686508[/C][C]2.682322[/C][C]-1.2697[/C][C]0.208582[/C][C]0.104291[/C][/ROW]
[ROW][C]M10[/C][C]-24.2498883928571[/C][C]2.781336[/C][C]-8.7188[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-8.71661086309524[/C][C]2.780874[/C][C]-3.1345[/C][C]0.002555[/C][C]0.001278[/C][/ROW]
[ROW][C]t[/C][C]0.0500558035714289[/C][C]0.029275[/C][C]1.7099[/C][C]0.091917[/C][C]0.045958[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5854&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5854&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)98.35190972222223.21935430.550200
X-7.365104166666661.918055-3.83990.0002760.000138
M14.694686259920642.6824111.75020.0846660.042333
M2-20.24108382936512.681282-7.54900
M3-11.99113963293652.680471-4.47353.1e-051.5e-05
M4-4.341195436507942.67998-1.61990.109960.05498
M5-12.80553695436512.679809-4.77851e-055e-06
M6-9.64130704365082.679958-3.59760.000610.000305
M73.994351438492062.6804271.49020.1408670.070433
M8-0.5699900793650752.681215-0.21260.8322950.416147
M9-3.40576016865082.682322-1.26970.2085820.104291
M10-24.24988839285712.781336-8.718800
M11-8.716610863095242.780874-3.13450.0025550.001278
t0.05005580357142890.0292751.70990.0919170.045958







Multiple Linear Regression - Regression Statistics
Multiple R0.904758360115568
R-squared0.818587690199012
Adjusted R-squared0.78338828680479
F-TEST (value)23.2557262698775
F-TEST (DF numerator)13
F-TEST (DF denominator)67
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.81634859434812
Sum Squared Residuals1554.2133234127

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.904758360115568 \tabularnewline
R-squared & 0.818587690199012 \tabularnewline
Adjusted R-squared & 0.78338828680479 \tabularnewline
F-TEST (value) & 23.2557262698775 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 67 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.81634859434812 \tabularnewline
Sum Squared Residuals & 1554.2133234127 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5854&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.904758360115568[/C][/ROW]
[ROW][C]R-squared[/C][C]0.818587690199012[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.78338828680479[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]23.2557262698775[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]67[/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.81634859434812[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1554.2133234127[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5854&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5854&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.904758360115568
R-squared0.818587690199012
Adjusted R-squared0.78338828680479
F-TEST (value)23.2557262698775
F-TEST (DF numerator)13
F-TEST (DF denominator)67
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.81634859434812
Sum Squared Residuals1554.2133234127







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
188.295.7315476190477-7.53154761904765
273.470.84583333333342.55416666666663
381.379.14583333333342.15416666666664
489.486.84583333333332.55416666666666
580.778.43154761904762.26845238095237
680.181.6458333333333-1.54583333333332
7100.895.33154761904765.4684523809524
89790.81726190476196.18273809523812
993.688.03154761904765.56845238095239
1067.167.2374751984127-0.137475198412703
1188.782.8208085317465.87919146825399
1289.191.5874751984127-2.48747519841271
1398.796.33221726190472.36778273809525
147671.44650297619054.55349702380954
1581.679.74650297619051.85349702380953
1692.987.44650297619055.45349702380954
1784.879.03221726190475.76778273809524
1879.482.2465029761905-2.84650297619047
19100.395.93221726190484.36778273809524
2090.791.417931547619-0.717931547619043
2184.288.6322172619048-4.43221726190476
2269.967.83814484126982.06185515873017
2385.383.42147817460321.87852182539682
2481.592.1881448412698-10.6881448412698
2592.496.9328869047619-4.53288690476189
2671.272.0471726190476-0.847172619047602
2774.580.3471726190476-5.84717261904761
2886.488.0471726190476-1.64717261904761
2973.679.6328869047619-6.0328869047619
3080.182.8471726190476-2.74717261904762
319196.5328869047619-5.53288690476191
3287.392.0186011904762-4.7186011904762
3378.889.2328869047619-10.4328869047619
3472.468.4388144841273.96118551587302
3583.184.0221478174603-0.922147817460325
369092.788814484127-2.78881448412699
3799.897.5335565476192.26644345238095
3873.172.64784226190480.452157738095243
3980.880.9478422619048-0.147842261904760
409288.64784226190483.35215773809524
4175.180.233556547619-5.13355654761905
4284.283.44784226190480.752157738095237
4399.697.1335565476192.46644345238094
4489.592.6192708333333-3.11927083333334
4587.889.833556547619-2.03355654761905
4670.569.03948412698411.46051587301587
4780.784.6228174603175-3.92281746031746
4894.193.38948412698410.710515873015865
4997.298.1342261904762-0.934226190476187
5066.573.2485119047619-6.7485119047619
5181.481.5485119047619-0.148511904761898
5282.589.2485119047619-6.74851190476191
5376.180.8342261904762-4.7342261904762
548884.04851190476193.95148809523809
559097.7342261904762-7.7342261904762
5694.393.21994047619051.08005952380951
5796.490.43422619047625.96577380952381
586869.6401537698413-1.64015376984128
5982.185.2234871031746-3.12348710317462
6010393.99015376984139.00984623015872
61109.798.734895833333310.9651041666667
6275.173.8491815476191.25081845238095
638882.1491815476195.85081845238095
6486.489.849181547619-3.44918154761905
6584.481.43489583333332.96510416666666
6691.184.6491815476196.45081845238094
6796.498.3348958333333-1.93489583333334
6894.993.82061011904761.07938988095237
6994.191.03489583333333.06510416666665
7071.977.605927579365-5.70592757936507
7193.493.18926091269840.210739087301597
72108.2101.9559275793656.24407242063493
73104.1106.700669642857-2.60066964285713
7480.681.8149553571428-1.21495535714285
7586.490.1149553571428-3.71495535714284
7698.397.81495535714280.485044642857148
7794.389.4006696428574.89933035714287
7888.692.6149553571428-4.01495535714286
79109.2106.3006696428572.89933035714287
80102101.7863839285710.213616071428576
81101.399.00066964285712.29933035714286

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 88.2 & 95.7315476190477 & -7.53154761904765 \tabularnewline
2 & 73.4 & 70.8458333333334 & 2.55416666666663 \tabularnewline
3 & 81.3 & 79.1458333333334 & 2.15416666666664 \tabularnewline
4 & 89.4 & 86.8458333333333 & 2.55416666666666 \tabularnewline
5 & 80.7 & 78.4315476190476 & 2.26845238095237 \tabularnewline
6 & 80.1 & 81.6458333333333 & -1.54583333333332 \tabularnewline
7 & 100.8 & 95.3315476190476 & 5.4684523809524 \tabularnewline
8 & 97 & 90.8172619047619 & 6.18273809523812 \tabularnewline
9 & 93.6 & 88.0315476190476 & 5.56845238095239 \tabularnewline
10 & 67.1 & 67.2374751984127 & -0.137475198412703 \tabularnewline
11 & 88.7 & 82.820808531746 & 5.87919146825399 \tabularnewline
12 & 89.1 & 91.5874751984127 & -2.48747519841271 \tabularnewline
13 & 98.7 & 96.3322172619047 & 2.36778273809525 \tabularnewline
14 & 76 & 71.4465029761905 & 4.55349702380954 \tabularnewline
15 & 81.6 & 79.7465029761905 & 1.85349702380953 \tabularnewline
16 & 92.9 & 87.4465029761905 & 5.45349702380954 \tabularnewline
17 & 84.8 & 79.0322172619047 & 5.76778273809524 \tabularnewline
18 & 79.4 & 82.2465029761905 & -2.84650297619047 \tabularnewline
19 & 100.3 & 95.9322172619048 & 4.36778273809524 \tabularnewline
20 & 90.7 & 91.417931547619 & -0.717931547619043 \tabularnewline
21 & 84.2 & 88.6322172619048 & -4.43221726190476 \tabularnewline
22 & 69.9 & 67.8381448412698 & 2.06185515873017 \tabularnewline
23 & 85.3 & 83.4214781746032 & 1.87852182539682 \tabularnewline
24 & 81.5 & 92.1881448412698 & -10.6881448412698 \tabularnewline
25 & 92.4 & 96.9328869047619 & -4.53288690476189 \tabularnewline
26 & 71.2 & 72.0471726190476 & -0.847172619047602 \tabularnewline
27 & 74.5 & 80.3471726190476 & -5.84717261904761 \tabularnewline
28 & 86.4 & 88.0471726190476 & -1.64717261904761 \tabularnewline
29 & 73.6 & 79.6328869047619 & -6.0328869047619 \tabularnewline
30 & 80.1 & 82.8471726190476 & -2.74717261904762 \tabularnewline
31 & 91 & 96.5328869047619 & -5.53288690476191 \tabularnewline
32 & 87.3 & 92.0186011904762 & -4.7186011904762 \tabularnewline
33 & 78.8 & 89.2328869047619 & -10.4328869047619 \tabularnewline
34 & 72.4 & 68.438814484127 & 3.96118551587302 \tabularnewline
35 & 83.1 & 84.0221478174603 & -0.922147817460325 \tabularnewline
36 & 90 & 92.788814484127 & -2.78881448412699 \tabularnewline
37 & 99.8 & 97.533556547619 & 2.26644345238095 \tabularnewline
38 & 73.1 & 72.6478422619048 & 0.452157738095243 \tabularnewline
39 & 80.8 & 80.9478422619048 & -0.147842261904760 \tabularnewline
40 & 92 & 88.6478422619048 & 3.35215773809524 \tabularnewline
41 & 75.1 & 80.233556547619 & -5.13355654761905 \tabularnewline
42 & 84.2 & 83.4478422619048 & 0.752157738095237 \tabularnewline
43 & 99.6 & 97.133556547619 & 2.46644345238094 \tabularnewline
44 & 89.5 & 92.6192708333333 & -3.11927083333334 \tabularnewline
45 & 87.8 & 89.833556547619 & -2.03355654761905 \tabularnewline
46 & 70.5 & 69.0394841269841 & 1.46051587301587 \tabularnewline
47 & 80.7 & 84.6228174603175 & -3.92281746031746 \tabularnewline
48 & 94.1 & 93.3894841269841 & 0.710515873015865 \tabularnewline
49 & 97.2 & 98.1342261904762 & -0.934226190476187 \tabularnewline
50 & 66.5 & 73.2485119047619 & -6.7485119047619 \tabularnewline
51 & 81.4 & 81.5485119047619 & -0.148511904761898 \tabularnewline
52 & 82.5 & 89.2485119047619 & -6.74851190476191 \tabularnewline
53 & 76.1 & 80.8342261904762 & -4.7342261904762 \tabularnewline
54 & 88 & 84.0485119047619 & 3.95148809523809 \tabularnewline
55 & 90 & 97.7342261904762 & -7.7342261904762 \tabularnewline
56 & 94.3 & 93.2199404761905 & 1.08005952380951 \tabularnewline
57 & 96.4 & 90.4342261904762 & 5.96577380952381 \tabularnewline
58 & 68 & 69.6401537698413 & -1.64015376984128 \tabularnewline
59 & 82.1 & 85.2234871031746 & -3.12348710317462 \tabularnewline
60 & 103 & 93.9901537698413 & 9.00984623015872 \tabularnewline
61 & 109.7 & 98.7348958333333 & 10.9651041666667 \tabularnewline
62 & 75.1 & 73.849181547619 & 1.25081845238095 \tabularnewline
63 & 88 & 82.149181547619 & 5.85081845238095 \tabularnewline
64 & 86.4 & 89.849181547619 & -3.44918154761905 \tabularnewline
65 & 84.4 & 81.4348958333333 & 2.96510416666666 \tabularnewline
66 & 91.1 & 84.649181547619 & 6.45081845238094 \tabularnewline
67 & 96.4 & 98.3348958333333 & -1.93489583333334 \tabularnewline
68 & 94.9 & 93.8206101190476 & 1.07938988095237 \tabularnewline
69 & 94.1 & 91.0348958333333 & 3.06510416666665 \tabularnewline
70 & 71.9 & 77.605927579365 & -5.70592757936507 \tabularnewline
71 & 93.4 & 93.1892609126984 & 0.210739087301597 \tabularnewline
72 & 108.2 & 101.955927579365 & 6.24407242063493 \tabularnewline
73 & 104.1 & 106.700669642857 & -2.60066964285713 \tabularnewline
74 & 80.6 & 81.8149553571428 & -1.21495535714285 \tabularnewline
75 & 86.4 & 90.1149553571428 & -3.71495535714284 \tabularnewline
76 & 98.3 & 97.8149553571428 & 0.485044642857148 \tabularnewline
77 & 94.3 & 89.400669642857 & 4.89933035714287 \tabularnewline
78 & 88.6 & 92.6149553571428 & -4.01495535714286 \tabularnewline
79 & 109.2 & 106.300669642857 & 2.89933035714287 \tabularnewline
80 & 102 & 101.786383928571 & 0.213616071428576 \tabularnewline
81 & 101.3 & 99.0006696428571 & 2.29933035714286 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5854&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]88.2[/C][C]95.7315476190477[/C][C]-7.53154761904765[/C][/ROW]
[ROW][C]2[/C][C]73.4[/C][C]70.8458333333334[/C][C]2.55416666666663[/C][/ROW]
[ROW][C]3[/C][C]81.3[/C][C]79.1458333333334[/C][C]2.15416666666664[/C][/ROW]
[ROW][C]4[/C][C]89.4[/C][C]86.8458333333333[/C][C]2.55416666666666[/C][/ROW]
[ROW][C]5[/C][C]80.7[/C][C]78.4315476190476[/C][C]2.26845238095237[/C][/ROW]
[ROW][C]6[/C][C]80.1[/C][C]81.6458333333333[/C][C]-1.54583333333332[/C][/ROW]
[ROW][C]7[/C][C]100.8[/C][C]95.3315476190476[/C][C]5.4684523809524[/C][/ROW]
[ROW][C]8[/C][C]97[/C][C]90.8172619047619[/C][C]6.18273809523812[/C][/ROW]
[ROW][C]9[/C][C]93.6[/C][C]88.0315476190476[/C][C]5.56845238095239[/C][/ROW]
[ROW][C]10[/C][C]67.1[/C][C]67.2374751984127[/C][C]-0.137475198412703[/C][/ROW]
[ROW][C]11[/C][C]88.7[/C][C]82.820808531746[/C][C]5.87919146825399[/C][/ROW]
[ROW][C]12[/C][C]89.1[/C][C]91.5874751984127[/C][C]-2.48747519841271[/C][/ROW]
[ROW][C]13[/C][C]98.7[/C][C]96.3322172619047[/C][C]2.36778273809525[/C][/ROW]
[ROW][C]14[/C][C]76[/C][C]71.4465029761905[/C][C]4.55349702380954[/C][/ROW]
[ROW][C]15[/C][C]81.6[/C][C]79.7465029761905[/C][C]1.85349702380953[/C][/ROW]
[ROW][C]16[/C][C]92.9[/C][C]87.4465029761905[/C][C]5.45349702380954[/C][/ROW]
[ROW][C]17[/C][C]84.8[/C][C]79.0322172619047[/C][C]5.76778273809524[/C][/ROW]
[ROW][C]18[/C][C]79.4[/C][C]82.2465029761905[/C][C]-2.84650297619047[/C][/ROW]
[ROW][C]19[/C][C]100.3[/C][C]95.9322172619048[/C][C]4.36778273809524[/C][/ROW]
[ROW][C]20[/C][C]90.7[/C][C]91.417931547619[/C][C]-0.717931547619043[/C][/ROW]
[ROW][C]21[/C][C]84.2[/C][C]88.6322172619048[/C][C]-4.43221726190476[/C][/ROW]
[ROW][C]22[/C][C]69.9[/C][C]67.8381448412698[/C][C]2.06185515873017[/C][/ROW]
[ROW][C]23[/C][C]85.3[/C][C]83.4214781746032[/C][C]1.87852182539682[/C][/ROW]
[ROW][C]24[/C][C]81.5[/C][C]92.1881448412698[/C][C]-10.6881448412698[/C][/ROW]
[ROW][C]25[/C][C]92.4[/C][C]96.9328869047619[/C][C]-4.53288690476189[/C][/ROW]
[ROW][C]26[/C][C]71.2[/C][C]72.0471726190476[/C][C]-0.847172619047602[/C][/ROW]
[ROW][C]27[/C][C]74.5[/C][C]80.3471726190476[/C][C]-5.84717261904761[/C][/ROW]
[ROW][C]28[/C][C]86.4[/C][C]88.0471726190476[/C][C]-1.64717261904761[/C][/ROW]
[ROW][C]29[/C][C]73.6[/C][C]79.6328869047619[/C][C]-6.0328869047619[/C][/ROW]
[ROW][C]30[/C][C]80.1[/C][C]82.8471726190476[/C][C]-2.74717261904762[/C][/ROW]
[ROW][C]31[/C][C]91[/C][C]96.5328869047619[/C][C]-5.53288690476191[/C][/ROW]
[ROW][C]32[/C][C]87.3[/C][C]92.0186011904762[/C][C]-4.7186011904762[/C][/ROW]
[ROW][C]33[/C][C]78.8[/C][C]89.2328869047619[/C][C]-10.4328869047619[/C][/ROW]
[ROW][C]34[/C][C]72.4[/C][C]68.438814484127[/C][C]3.96118551587302[/C][/ROW]
[ROW][C]35[/C][C]83.1[/C][C]84.0221478174603[/C][C]-0.922147817460325[/C][/ROW]
[ROW][C]36[/C][C]90[/C][C]92.788814484127[/C][C]-2.78881448412699[/C][/ROW]
[ROW][C]37[/C][C]99.8[/C][C]97.533556547619[/C][C]2.26644345238095[/C][/ROW]
[ROW][C]38[/C][C]73.1[/C][C]72.6478422619048[/C][C]0.452157738095243[/C][/ROW]
[ROW][C]39[/C][C]80.8[/C][C]80.9478422619048[/C][C]-0.147842261904760[/C][/ROW]
[ROW][C]40[/C][C]92[/C][C]88.6478422619048[/C][C]3.35215773809524[/C][/ROW]
[ROW][C]41[/C][C]75.1[/C][C]80.233556547619[/C][C]-5.13355654761905[/C][/ROW]
[ROW][C]42[/C][C]84.2[/C][C]83.4478422619048[/C][C]0.752157738095237[/C][/ROW]
[ROW][C]43[/C][C]99.6[/C][C]97.133556547619[/C][C]2.46644345238094[/C][/ROW]
[ROW][C]44[/C][C]89.5[/C][C]92.6192708333333[/C][C]-3.11927083333334[/C][/ROW]
[ROW][C]45[/C][C]87.8[/C][C]89.833556547619[/C][C]-2.03355654761905[/C][/ROW]
[ROW][C]46[/C][C]70.5[/C][C]69.0394841269841[/C][C]1.46051587301587[/C][/ROW]
[ROW][C]47[/C][C]80.7[/C][C]84.6228174603175[/C][C]-3.92281746031746[/C][/ROW]
[ROW][C]48[/C][C]94.1[/C][C]93.3894841269841[/C][C]0.710515873015865[/C][/ROW]
[ROW][C]49[/C][C]97.2[/C][C]98.1342261904762[/C][C]-0.934226190476187[/C][/ROW]
[ROW][C]50[/C][C]66.5[/C][C]73.2485119047619[/C][C]-6.7485119047619[/C][/ROW]
[ROW][C]51[/C][C]81.4[/C][C]81.5485119047619[/C][C]-0.148511904761898[/C][/ROW]
[ROW][C]52[/C][C]82.5[/C][C]89.2485119047619[/C][C]-6.74851190476191[/C][/ROW]
[ROW][C]53[/C][C]76.1[/C][C]80.8342261904762[/C][C]-4.7342261904762[/C][/ROW]
[ROW][C]54[/C][C]88[/C][C]84.0485119047619[/C][C]3.95148809523809[/C][/ROW]
[ROW][C]55[/C][C]90[/C][C]97.7342261904762[/C][C]-7.7342261904762[/C][/ROW]
[ROW][C]56[/C][C]94.3[/C][C]93.2199404761905[/C][C]1.08005952380951[/C][/ROW]
[ROW][C]57[/C][C]96.4[/C][C]90.4342261904762[/C][C]5.96577380952381[/C][/ROW]
[ROW][C]58[/C][C]68[/C][C]69.6401537698413[/C][C]-1.64015376984128[/C][/ROW]
[ROW][C]59[/C][C]82.1[/C][C]85.2234871031746[/C][C]-3.12348710317462[/C][/ROW]
[ROW][C]60[/C][C]103[/C][C]93.9901537698413[/C][C]9.00984623015872[/C][/ROW]
[ROW][C]61[/C][C]109.7[/C][C]98.7348958333333[/C][C]10.9651041666667[/C][/ROW]
[ROW][C]62[/C][C]75.1[/C][C]73.849181547619[/C][C]1.25081845238095[/C][/ROW]
[ROW][C]63[/C][C]88[/C][C]82.149181547619[/C][C]5.85081845238095[/C][/ROW]
[ROW][C]64[/C][C]86.4[/C][C]89.849181547619[/C][C]-3.44918154761905[/C][/ROW]
[ROW][C]65[/C][C]84.4[/C][C]81.4348958333333[/C][C]2.96510416666666[/C][/ROW]
[ROW][C]66[/C][C]91.1[/C][C]84.649181547619[/C][C]6.45081845238094[/C][/ROW]
[ROW][C]67[/C][C]96.4[/C][C]98.3348958333333[/C][C]-1.93489583333334[/C][/ROW]
[ROW][C]68[/C][C]94.9[/C][C]93.8206101190476[/C][C]1.07938988095237[/C][/ROW]
[ROW][C]69[/C][C]94.1[/C][C]91.0348958333333[/C][C]3.06510416666665[/C][/ROW]
[ROW][C]70[/C][C]71.9[/C][C]77.605927579365[/C][C]-5.70592757936507[/C][/ROW]
[ROW][C]71[/C][C]93.4[/C][C]93.1892609126984[/C][C]0.210739087301597[/C][/ROW]
[ROW][C]72[/C][C]108.2[/C][C]101.955927579365[/C][C]6.24407242063493[/C][/ROW]
[ROW][C]73[/C][C]104.1[/C][C]106.700669642857[/C][C]-2.60066964285713[/C][/ROW]
[ROW][C]74[/C][C]80.6[/C][C]81.8149553571428[/C][C]-1.21495535714285[/C][/ROW]
[ROW][C]75[/C][C]86.4[/C][C]90.1149553571428[/C][C]-3.71495535714284[/C][/ROW]
[ROW][C]76[/C][C]98.3[/C][C]97.8149553571428[/C][C]0.485044642857148[/C][/ROW]
[ROW][C]77[/C][C]94.3[/C][C]89.400669642857[/C][C]4.89933035714287[/C][/ROW]
[ROW][C]78[/C][C]88.6[/C][C]92.6149553571428[/C][C]-4.01495535714286[/C][/ROW]
[ROW][C]79[/C][C]109.2[/C][C]106.300669642857[/C][C]2.89933035714287[/C][/ROW]
[ROW][C]80[/C][C]102[/C][C]101.786383928571[/C][C]0.213616071428576[/C][/ROW]
[ROW][C]81[/C][C]101.3[/C][C]99.0006696428571[/C][C]2.29933035714286[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5854&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5854&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
188.295.7315476190477-7.53154761904765
273.470.84583333333342.55416666666663
381.379.14583333333342.15416666666664
489.486.84583333333332.55416666666666
580.778.43154761904762.26845238095237
680.181.6458333333333-1.54583333333332
7100.895.33154761904765.4684523809524
89790.81726190476196.18273809523812
993.688.03154761904765.56845238095239
1067.167.2374751984127-0.137475198412703
1188.782.8208085317465.87919146825399
1289.191.5874751984127-2.48747519841271
1398.796.33221726190472.36778273809525
147671.44650297619054.55349702380954
1581.679.74650297619051.85349702380953
1692.987.44650297619055.45349702380954
1784.879.03221726190475.76778273809524
1879.482.2465029761905-2.84650297619047
19100.395.93221726190484.36778273809524
2090.791.417931547619-0.717931547619043
2184.288.6322172619048-4.43221726190476
2269.967.83814484126982.06185515873017
2385.383.42147817460321.87852182539682
2481.592.1881448412698-10.6881448412698
2592.496.9328869047619-4.53288690476189
2671.272.0471726190476-0.847172619047602
2774.580.3471726190476-5.84717261904761
2886.488.0471726190476-1.64717261904761
2973.679.6328869047619-6.0328869047619
3080.182.8471726190476-2.74717261904762
319196.5328869047619-5.53288690476191
3287.392.0186011904762-4.7186011904762
3378.889.2328869047619-10.4328869047619
3472.468.4388144841273.96118551587302
3583.184.0221478174603-0.922147817460325
369092.788814484127-2.78881448412699
3799.897.5335565476192.26644345238095
3873.172.64784226190480.452157738095243
3980.880.9478422619048-0.147842261904760
409288.64784226190483.35215773809524
4175.180.233556547619-5.13355654761905
4284.283.44784226190480.752157738095237
4399.697.1335565476192.46644345238094
4489.592.6192708333333-3.11927083333334
4587.889.833556547619-2.03355654761905
4670.569.03948412698411.46051587301587
4780.784.6228174603175-3.92281746031746
4894.193.38948412698410.710515873015865
4997.298.1342261904762-0.934226190476187
5066.573.2485119047619-6.7485119047619
5181.481.5485119047619-0.148511904761898
5282.589.2485119047619-6.74851190476191
5376.180.8342261904762-4.7342261904762
548884.04851190476193.95148809523809
559097.7342261904762-7.7342261904762
5694.393.21994047619051.08005952380951
5796.490.43422619047625.96577380952381
586869.6401537698413-1.64015376984128
5982.185.2234871031746-3.12348710317462
6010393.99015376984139.00984623015872
61109.798.734895833333310.9651041666667
6275.173.8491815476191.25081845238095
638882.1491815476195.85081845238095
6486.489.849181547619-3.44918154761905
6584.481.43489583333332.96510416666666
6691.184.6491815476196.45081845238094
6796.498.3348958333333-1.93489583333334
6894.993.82061011904761.07938988095237
6994.191.03489583333333.06510416666665
7071.977.605927579365-5.70592757936507
7193.493.18926091269840.210739087301597
72108.2101.9559275793656.24407242063493
73104.1106.700669642857-2.60066964285713
7480.681.8149553571428-1.21495535714285
7586.490.1149553571428-3.71495535714284
7698.397.81495535714280.485044642857148
7794.389.4006696428574.89933035714287
7888.692.6149553571428-4.01495535714286
79109.2106.3006696428572.89933035714287
80102101.7863839285710.213616071428576
81101.399.00066964285712.29933035714286



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