Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 03 Jan 2008 08:18:54 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Jan/03/t1199373582vuj5mducnxkym69.htm/, Retrieved Tue, 14 May 2024 22:07:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=7767, Retrieved Tue, 14 May 2024 22:07:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact263
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Aanslagen Nigeria...] [2008-01-03 15:18:54] [4a507cbea0acb4f2b617b46f2010fec1] [Current]
Feedback Forum

Post a new message
Dataseries X:
25.62	0
27.5	0
24.5	0
25.66	0
28.31	0
27.85	1
24.61	0
25.68	0
25.62	1
20.54	1
18.8	0
18.71	0
19.46	0
20.12	0
23.54	0
25.6	0
25.39	0
24.09	0
25.69	0
26.56	0
28.33	0
27.5	0
24.23	0
28.23	1
31.29	0
32.72	0
30.46	0
24.89	0
25.68	0
27.52	0
28.4	0
29.71	0
26.85	0
29.62	0
28.69	0
29.76	0
31.3	0
30.86	0
33.46	0
33.15	0
37.99	0
35.24	0
38.24	0
43.16	0
43.33	0
49.67	0
43.17	0
39.56	1
44.36	0
45.22	0
53.1	0
52.1	0
48.52	0
54.84	0
57.57	0
64.14	0
62.85	0
58.75	0
55.33	0
57.03	0
63.18	0
60.19	0
62.12	0
70.12	1
69.75	1
68.56	1
73.77	1
73.23	1
61.96	0
57.81	0
58.76	0
62.47	1
53.68	1
57.56	1
62.05	1
67.49	1
67.21	1
71.05	1
76.93	1
70.76	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=7767&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=7767&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7767&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
Prijs_Brentolie[t] = + 9.3461699708377 + 4.29011878962999Aanslagen_Nigeria[t] + 3.96148337340126M1[t] + 4.05381423131363M2[t] + 5.54328794636885M3[t] + 5.66560183433408M4[t] + 5.55221840653215M5[t] + 5.17738943735452M6[t] + 7.42259440807117M7[t] + 7.90778240884068M8[t] + 5.61257083233004M9[t] + 4.10894930929002M10[t] + 1.67701425118834M11[t] + 0.661954856373349t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Prijs_Brentolie[t] =  +  9.3461699708377 +  4.29011878962999Aanslagen_Nigeria[t] +  3.96148337340126M1[t] +  4.05381423131363M2[t] +  5.54328794636885M3[t] +  5.66560183433408M4[t] +  5.55221840653215M5[t] +  5.17738943735452M6[t] +  7.42259440807117M7[t] +  7.90778240884068M8[t] +  5.61257083233004M9[t] +  4.10894930929002M10[t] +  1.67701425118834M11[t] +  0.661954856373349t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7767&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Prijs_Brentolie[t] =  +  9.3461699708377 +  4.29011878962999Aanslagen_Nigeria[t] +  3.96148337340126M1[t] +  4.05381423131363M2[t] +  5.54328794636885M3[t] +  5.66560183433408M4[t] +  5.55221840653215M5[t] +  5.17738943735452M6[t] +  7.42259440807117M7[t] +  7.90778240884068M8[t] +  5.61257083233004M9[t] +  4.10894930929002M10[t] +  1.67701425118834M11[t] +  0.661954856373349t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7767&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7767&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
Prijs_Brentolie[t] = + 9.3461699708377 + 4.29011878962999Aanslagen_Nigeria[t] + 3.96148337340126M1[t] + 4.05381423131363M2[t] + 5.54328794636885M3[t] + 5.66560183433408M4[t] + 5.55221840653215M5[t] + 5.17738943735452M6[t] + 7.42259440807117M7[t] + 7.90778240884068M8[t] + 5.61257083233004M9[t] + 4.10894930929002M10[t] + 1.67701425118834M11[t] + 0.661954856373349t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.34616997083772.9785613.13780.0025440.001272
Aanslagen_Nigeria4.290118789629991.9914862.15420.0348770.017439
M13.961483373401263.6649311.08090.2836680.141834
M24.053814231313633.6664291.10570.2728890.136444
M35.543287946368853.6682621.51110.1355240.067762
M45.665601834334083.6284941.56140.1232070.061604
M55.552218406532153.629811.52960.1308910.065445
M65.177389437354523.6091071.43450.1561410.078071
M77.422594408071173.6334582.04280.0450650.022532
M87.907782408840683.635792.1750.0332190.01661
M95.612570832330043.7941771.47930.1438280.071914
M104.108949309290023.796081.08240.2830050.141503
M111.677014251188343.8688060.43350.6660860.333043
t0.6619548563733490.0351218.848100

\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) & 9.3461699708377 & 2.978561 & 3.1378 & 0.002544 & 0.001272 \tabularnewline
Aanslagen_Nigeria & 4.29011878962999 & 1.991486 & 2.1542 & 0.034877 & 0.017439 \tabularnewline
M1 & 3.96148337340126 & 3.664931 & 1.0809 & 0.283668 & 0.141834 \tabularnewline
M2 & 4.05381423131363 & 3.666429 & 1.1057 & 0.272889 & 0.136444 \tabularnewline
M3 & 5.54328794636885 & 3.668262 & 1.5111 & 0.135524 & 0.067762 \tabularnewline
M4 & 5.66560183433408 & 3.628494 & 1.5614 & 0.123207 & 0.061604 \tabularnewline
M5 & 5.55221840653215 & 3.62981 & 1.5296 & 0.130891 & 0.065445 \tabularnewline
M6 & 5.17738943735452 & 3.609107 & 1.4345 & 0.156141 & 0.078071 \tabularnewline
M7 & 7.42259440807117 & 3.633458 & 2.0428 & 0.045065 & 0.022532 \tabularnewline
M8 & 7.90778240884068 & 3.63579 & 2.175 & 0.033219 & 0.01661 \tabularnewline
M9 & 5.61257083233004 & 3.794177 & 1.4793 & 0.143828 & 0.071914 \tabularnewline
M10 & 4.10894930929002 & 3.79608 & 1.0824 & 0.283005 & 0.141503 \tabularnewline
M11 & 1.67701425118834 & 3.868806 & 0.4335 & 0.666086 & 0.333043 \tabularnewline
t & 0.661954856373349 & 0.03512 & 18.8481 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7767&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]9.3461699708377[/C][C]2.978561[/C][C]3.1378[/C][C]0.002544[/C][C]0.001272[/C][/ROW]
[ROW][C]Aanslagen_Nigeria[/C][C]4.29011878962999[/C][C]1.991486[/C][C]2.1542[/C][C]0.034877[/C][C]0.017439[/C][/ROW]
[ROW][C]M1[/C][C]3.96148337340126[/C][C]3.664931[/C][C]1.0809[/C][C]0.283668[/C][C]0.141834[/C][/ROW]
[ROW][C]M2[/C][C]4.05381423131363[/C][C]3.666429[/C][C]1.1057[/C][C]0.272889[/C][C]0.136444[/C][/ROW]
[ROW][C]M3[/C][C]5.54328794636885[/C][C]3.668262[/C][C]1.5111[/C][C]0.135524[/C][C]0.067762[/C][/ROW]
[ROW][C]M4[/C][C]5.66560183433408[/C][C]3.628494[/C][C]1.5614[/C][C]0.123207[/C][C]0.061604[/C][/ROW]
[ROW][C]M5[/C][C]5.55221840653215[/C][C]3.62981[/C][C]1.5296[/C][C]0.130891[/C][C]0.065445[/C][/ROW]
[ROW][C]M6[/C][C]5.17738943735452[/C][C]3.609107[/C][C]1.4345[/C][C]0.156141[/C][C]0.078071[/C][/ROW]
[ROW][C]M7[/C][C]7.42259440807117[/C][C]3.633458[/C][C]2.0428[/C][C]0.045065[/C][C]0.022532[/C][/ROW]
[ROW][C]M8[/C][C]7.90778240884068[/C][C]3.63579[/C][C]2.175[/C][C]0.033219[/C][C]0.01661[/C][/ROW]
[ROW][C]M9[/C][C]5.61257083233004[/C][C]3.794177[/C][C]1.4793[/C][C]0.143828[/C][C]0.071914[/C][/ROW]
[ROW][C]M10[/C][C]4.10894930929002[/C][C]3.79608[/C][C]1.0824[/C][C]0.283005[/C][C]0.141503[/C][/ROW]
[ROW][C]M11[/C][C]1.67701425118834[/C][C]3.868806[/C][C]0.4335[/C][C]0.666086[/C][C]0.333043[/C][/ROW]
[ROW][C]t[/C][C]0.661954856373349[/C][C]0.03512[/C][C]18.8481[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7767&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7767&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)9.34616997083772.9785613.13780.0025440.001272
Aanslagen_Nigeria4.290118789629991.9914862.15420.0348770.017439
M13.961483373401263.6649311.08090.2836680.141834
M24.053814231313633.6664291.10570.2728890.136444
M35.543287946368853.6682621.51110.1355240.067762
M45.665601834334083.6284941.56140.1232070.061604
M55.552218406532153.629811.52960.1308910.065445
M65.177389437354523.6091071.43450.1561410.078071
M77.422594408071173.6334582.04280.0450650.022532
M87.907782408840683.635792.1750.0332190.01661
M95.612570832330043.7941771.47930.1438280.071914
M104.108949309290023.796081.08240.2830050.141503
M111.677014251188343.8688060.43350.6660860.333043
t0.6619548563733490.0351218.848100







Multiple Linear Regression - Regression Statistics
Multiple R0.94081361649493
R-squared0.885130260982268
Adjusted R-squared0.862504403296957
F-TEST (value)39.1202964896624
F-TEST (DF numerator)13
F-TEST (DF denominator)66
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.48209176855291
Sum Squared Residuals2773.15590393214

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.94081361649493 \tabularnewline
R-squared & 0.885130260982268 \tabularnewline
Adjusted R-squared & 0.862504403296957 \tabularnewline
F-TEST (value) & 39.1202964896624 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 66 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.48209176855291 \tabularnewline
Sum Squared Residuals & 2773.15590393214 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7767&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.94081361649493[/C][/ROW]
[ROW][C]R-squared[/C][C]0.885130260982268[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.862504403296957[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]39.1202964896624[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]66[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.48209176855291[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2773.15590393214[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7767&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7767&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.94081361649493
R-squared0.885130260982268
Adjusted R-squared0.862504403296957
F-TEST (value)39.1202964896624
F-TEST (DF numerator)13
F-TEST (DF denominator)66
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.48209176855291
Sum Squared Residuals2773.15590393214







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
125.6213.969608200612311.6503917993877
227.514.72389391489812.776106085102
324.516.87532248632667.62467751367342
425.6617.65959123066528.00040876933485
528.3118.208162659236610.1018373407634
627.8522.78540733606235.06459266393771
724.6121.40244837352233.2075516264777
825.6822.54959123066523.13040876933484
925.6225.20645330015790.413546699842143
1020.5424.3647866334912-3.82478663349118
1118.818.30468764213290.495312357867139
1218.7117.28962824731791.42037175268212
1319.4621.9130664770925-2.45306647709248
1420.1222.6673521913782-2.54735219137819
1523.5424.8187807628068-1.27878076280677
1625.625.6030495071453-0.00304950714534466
1725.3926.1516209357168-0.761620935716772
1824.0926.4387468229125-2.34874682291249
1925.6929.3459066500025-3.65590665000248
2026.5630.4930495071453-3.93304950714535
2128.3328.8597927870081-0.529792787008056
2227.528.0181261203414-0.518126120341386
2324.2326.2481459186131-2.01814591861305
2428.2329.5232053134280-1.29320531342805
2531.2929.85652475357271.43347524642733
2632.7230.61081046785842.10918953214161
2730.4632.7622390392870-2.30223903928695
2824.8933.5465077836255-8.65650778362553
2925.6834.0950792121969-8.41507921219695
3027.5234.3822050993927-6.86220509939267
3128.437.2893649264827-8.88936492648267
3229.7138.4365077836255-8.72650778362553
3326.8536.8032510634882-9.95325106348824
3429.6235.9615843968216-6.34158439682157
3528.6934.1916041950932-5.50160419509324
3629.7633.1765448002783-3.41654480027825
3731.337.7999830300529-6.49998303005286
3830.8638.5542687443386-7.69426874433857
3933.4640.7056973157671-7.24569731576714
4033.1541.4899660601057-8.33996606010571
4137.9942.0385374886772-4.04853748867715
4235.2442.3256633758729-7.08566337587286
4338.2445.2328232029629-6.99282320296286
4443.1646.3799660601057-3.21996606010572
4543.3344.7467093399684-1.41670933996843
4649.6743.90504267330185.76495732669824
4743.1742.13506247157341.03493752842658
4839.5645.4101218663884-5.85012186638842
4944.3645.7434413065331-1.38344130653305
5045.2246.4977270208188-1.27772702081876
5153.148.64915559224734.45084440775267
5252.149.43342433658592.66657566341409
5348.5249.9819957651573-1.46199576515733
5454.8450.26912165235314.57087834764695
5557.5753.1762814794434.39371852055695
5664.1454.32342433658599.8165756634141
5762.8552.690167616448610.1598323835514
5858.7551.8485009497826.90149905021805
5955.3350.07852074805365.25147925194638
6057.0349.06346135323867.96653864676138
6163.1853.68689958301329.49310041698677
6260.1954.4411852972995.74881470270104
6362.1256.59261386872755.52738613127247
6470.1261.66700140269618.45299859730392
6569.7562.21557283126757.53442716873249
6668.5662.50269871846326.05730128153678
6773.7765.40985854555328.36014145444677
6873.2366.55700140269616.67299859730392
6961.9660.63362589292881.32637410707120
7057.8159.7919592262621-1.98195922626214
7158.7658.02197902453380.738020975466195
7262.4761.29703841934881.17296158065120
7353.6865.9204766491234-12.2404766491234
7457.5666.6747623634091-9.11476236340912
7562.0568.8261909348377-6.7761909348377
7667.4969.6104596791763-2.12045967917627
7767.2170.1590311077477-2.9490311077477
7871.0570.44615699494340.603843005056587
7976.9373.35331682203343.5766831779666
8070.7674.5004596791763-3.74045967917626

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25.62 & 13.9696082006123 & 11.6503917993877 \tabularnewline
2 & 27.5 & 14.723893914898 & 12.776106085102 \tabularnewline
3 & 24.5 & 16.8753224863266 & 7.62467751367342 \tabularnewline
4 & 25.66 & 17.6595912306652 & 8.00040876933485 \tabularnewline
5 & 28.31 & 18.2081626592366 & 10.1018373407634 \tabularnewline
6 & 27.85 & 22.7854073360623 & 5.06459266393771 \tabularnewline
7 & 24.61 & 21.4024483735223 & 3.2075516264777 \tabularnewline
8 & 25.68 & 22.5495912306652 & 3.13040876933484 \tabularnewline
9 & 25.62 & 25.2064533001579 & 0.413546699842143 \tabularnewline
10 & 20.54 & 24.3647866334912 & -3.82478663349118 \tabularnewline
11 & 18.8 & 18.3046876421329 & 0.495312357867139 \tabularnewline
12 & 18.71 & 17.2896282473179 & 1.42037175268212 \tabularnewline
13 & 19.46 & 21.9130664770925 & -2.45306647709248 \tabularnewline
14 & 20.12 & 22.6673521913782 & -2.54735219137819 \tabularnewline
15 & 23.54 & 24.8187807628068 & -1.27878076280677 \tabularnewline
16 & 25.6 & 25.6030495071453 & -0.00304950714534466 \tabularnewline
17 & 25.39 & 26.1516209357168 & -0.761620935716772 \tabularnewline
18 & 24.09 & 26.4387468229125 & -2.34874682291249 \tabularnewline
19 & 25.69 & 29.3459066500025 & -3.65590665000248 \tabularnewline
20 & 26.56 & 30.4930495071453 & -3.93304950714535 \tabularnewline
21 & 28.33 & 28.8597927870081 & -0.529792787008056 \tabularnewline
22 & 27.5 & 28.0181261203414 & -0.518126120341386 \tabularnewline
23 & 24.23 & 26.2481459186131 & -2.01814591861305 \tabularnewline
24 & 28.23 & 29.5232053134280 & -1.29320531342805 \tabularnewline
25 & 31.29 & 29.8565247535727 & 1.43347524642733 \tabularnewline
26 & 32.72 & 30.6108104678584 & 2.10918953214161 \tabularnewline
27 & 30.46 & 32.7622390392870 & -2.30223903928695 \tabularnewline
28 & 24.89 & 33.5465077836255 & -8.65650778362553 \tabularnewline
29 & 25.68 & 34.0950792121969 & -8.41507921219695 \tabularnewline
30 & 27.52 & 34.3822050993927 & -6.86220509939267 \tabularnewline
31 & 28.4 & 37.2893649264827 & -8.88936492648267 \tabularnewline
32 & 29.71 & 38.4365077836255 & -8.72650778362553 \tabularnewline
33 & 26.85 & 36.8032510634882 & -9.95325106348824 \tabularnewline
34 & 29.62 & 35.9615843968216 & -6.34158439682157 \tabularnewline
35 & 28.69 & 34.1916041950932 & -5.50160419509324 \tabularnewline
36 & 29.76 & 33.1765448002783 & -3.41654480027825 \tabularnewline
37 & 31.3 & 37.7999830300529 & -6.49998303005286 \tabularnewline
38 & 30.86 & 38.5542687443386 & -7.69426874433857 \tabularnewline
39 & 33.46 & 40.7056973157671 & -7.24569731576714 \tabularnewline
40 & 33.15 & 41.4899660601057 & -8.33996606010571 \tabularnewline
41 & 37.99 & 42.0385374886772 & -4.04853748867715 \tabularnewline
42 & 35.24 & 42.3256633758729 & -7.08566337587286 \tabularnewline
43 & 38.24 & 45.2328232029629 & -6.99282320296286 \tabularnewline
44 & 43.16 & 46.3799660601057 & -3.21996606010572 \tabularnewline
45 & 43.33 & 44.7467093399684 & -1.41670933996843 \tabularnewline
46 & 49.67 & 43.9050426733018 & 5.76495732669824 \tabularnewline
47 & 43.17 & 42.1350624715734 & 1.03493752842658 \tabularnewline
48 & 39.56 & 45.4101218663884 & -5.85012186638842 \tabularnewline
49 & 44.36 & 45.7434413065331 & -1.38344130653305 \tabularnewline
50 & 45.22 & 46.4977270208188 & -1.27772702081876 \tabularnewline
51 & 53.1 & 48.6491555922473 & 4.45084440775267 \tabularnewline
52 & 52.1 & 49.4334243365859 & 2.66657566341409 \tabularnewline
53 & 48.52 & 49.9819957651573 & -1.46199576515733 \tabularnewline
54 & 54.84 & 50.2691216523531 & 4.57087834764695 \tabularnewline
55 & 57.57 & 53.176281479443 & 4.39371852055695 \tabularnewline
56 & 64.14 & 54.3234243365859 & 9.8165756634141 \tabularnewline
57 & 62.85 & 52.6901676164486 & 10.1598323835514 \tabularnewline
58 & 58.75 & 51.848500949782 & 6.90149905021805 \tabularnewline
59 & 55.33 & 50.0785207480536 & 5.25147925194638 \tabularnewline
60 & 57.03 & 49.0634613532386 & 7.96653864676138 \tabularnewline
61 & 63.18 & 53.6868995830132 & 9.49310041698677 \tabularnewline
62 & 60.19 & 54.441185297299 & 5.74881470270104 \tabularnewline
63 & 62.12 & 56.5926138687275 & 5.52738613127247 \tabularnewline
64 & 70.12 & 61.6670014026961 & 8.45299859730392 \tabularnewline
65 & 69.75 & 62.2155728312675 & 7.53442716873249 \tabularnewline
66 & 68.56 & 62.5026987184632 & 6.05730128153678 \tabularnewline
67 & 73.77 & 65.4098585455532 & 8.36014145444677 \tabularnewline
68 & 73.23 & 66.5570014026961 & 6.67299859730392 \tabularnewline
69 & 61.96 & 60.6336258929288 & 1.32637410707120 \tabularnewline
70 & 57.81 & 59.7919592262621 & -1.98195922626214 \tabularnewline
71 & 58.76 & 58.0219790245338 & 0.738020975466195 \tabularnewline
72 & 62.47 & 61.2970384193488 & 1.17296158065120 \tabularnewline
73 & 53.68 & 65.9204766491234 & -12.2404766491234 \tabularnewline
74 & 57.56 & 66.6747623634091 & -9.11476236340912 \tabularnewline
75 & 62.05 & 68.8261909348377 & -6.7761909348377 \tabularnewline
76 & 67.49 & 69.6104596791763 & -2.12045967917627 \tabularnewline
77 & 67.21 & 70.1590311077477 & -2.9490311077477 \tabularnewline
78 & 71.05 & 70.4461569949434 & 0.603843005056587 \tabularnewline
79 & 76.93 & 73.3533168220334 & 3.5766831779666 \tabularnewline
80 & 70.76 & 74.5004596791763 & -3.74045967917626 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7767&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]25.62[/C][C]13.9696082006123[/C][C]11.6503917993877[/C][/ROW]
[ROW][C]2[/C][C]27.5[/C][C]14.723893914898[/C][C]12.776106085102[/C][/ROW]
[ROW][C]3[/C][C]24.5[/C][C]16.8753224863266[/C][C]7.62467751367342[/C][/ROW]
[ROW][C]4[/C][C]25.66[/C][C]17.6595912306652[/C][C]8.00040876933485[/C][/ROW]
[ROW][C]5[/C][C]28.31[/C][C]18.2081626592366[/C][C]10.1018373407634[/C][/ROW]
[ROW][C]6[/C][C]27.85[/C][C]22.7854073360623[/C][C]5.06459266393771[/C][/ROW]
[ROW][C]7[/C][C]24.61[/C][C]21.4024483735223[/C][C]3.2075516264777[/C][/ROW]
[ROW][C]8[/C][C]25.68[/C][C]22.5495912306652[/C][C]3.13040876933484[/C][/ROW]
[ROW][C]9[/C][C]25.62[/C][C]25.2064533001579[/C][C]0.413546699842143[/C][/ROW]
[ROW][C]10[/C][C]20.54[/C][C]24.3647866334912[/C][C]-3.82478663349118[/C][/ROW]
[ROW][C]11[/C][C]18.8[/C][C]18.3046876421329[/C][C]0.495312357867139[/C][/ROW]
[ROW][C]12[/C][C]18.71[/C][C]17.2896282473179[/C][C]1.42037175268212[/C][/ROW]
[ROW][C]13[/C][C]19.46[/C][C]21.9130664770925[/C][C]-2.45306647709248[/C][/ROW]
[ROW][C]14[/C][C]20.12[/C][C]22.6673521913782[/C][C]-2.54735219137819[/C][/ROW]
[ROW][C]15[/C][C]23.54[/C][C]24.8187807628068[/C][C]-1.27878076280677[/C][/ROW]
[ROW][C]16[/C][C]25.6[/C][C]25.6030495071453[/C][C]-0.00304950714534466[/C][/ROW]
[ROW][C]17[/C][C]25.39[/C][C]26.1516209357168[/C][C]-0.761620935716772[/C][/ROW]
[ROW][C]18[/C][C]24.09[/C][C]26.4387468229125[/C][C]-2.34874682291249[/C][/ROW]
[ROW][C]19[/C][C]25.69[/C][C]29.3459066500025[/C][C]-3.65590665000248[/C][/ROW]
[ROW][C]20[/C][C]26.56[/C][C]30.4930495071453[/C][C]-3.93304950714535[/C][/ROW]
[ROW][C]21[/C][C]28.33[/C][C]28.8597927870081[/C][C]-0.529792787008056[/C][/ROW]
[ROW][C]22[/C][C]27.5[/C][C]28.0181261203414[/C][C]-0.518126120341386[/C][/ROW]
[ROW][C]23[/C][C]24.23[/C][C]26.2481459186131[/C][C]-2.01814591861305[/C][/ROW]
[ROW][C]24[/C][C]28.23[/C][C]29.5232053134280[/C][C]-1.29320531342805[/C][/ROW]
[ROW][C]25[/C][C]31.29[/C][C]29.8565247535727[/C][C]1.43347524642733[/C][/ROW]
[ROW][C]26[/C][C]32.72[/C][C]30.6108104678584[/C][C]2.10918953214161[/C][/ROW]
[ROW][C]27[/C][C]30.46[/C][C]32.7622390392870[/C][C]-2.30223903928695[/C][/ROW]
[ROW][C]28[/C][C]24.89[/C][C]33.5465077836255[/C][C]-8.65650778362553[/C][/ROW]
[ROW][C]29[/C][C]25.68[/C][C]34.0950792121969[/C][C]-8.41507921219695[/C][/ROW]
[ROW][C]30[/C][C]27.52[/C][C]34.3822050993927[/C][C]-6.86220509939267[/C][/ROW]
[ROW][C]31[/C][C]28.4[/C][C]37.2893649264827[/C][C]-8.88936492648267[/C][/ROW]
[ROW][C]32[/C][C]29.71[/C][C]38.4365077836255[/C][C]-8.72650778362553[/C][/ROW]
[ROW][C]33[/C][C]26.85[/C][C]36.8032510634882[/C][C]-9.95325106348824[/C][/ROW]
[ROW][C]34[/C][C]29.62[/C][C]35.9615843968216[/C][C]-6.34158439682157[/C][/ROW]
[ROW][C]35[/C][C]28.69[/C][C]34.1916041950932[/C][C]-5.50160419509324[/C][/ROW]
[ROW][C]36[/C][C]29.76[/C][C]33.1765448002783[/C][C]-3.41654480027825[/C][/ROW]
[ROW][C]37[/C][C]31.3[/C][C]37.7999830300529[/C][C]-6.49998303005286[/C][/ROW]
[ROW][C]38[/C][C]30.86[/C][C]38.5542687443386[/C][C]-7.69426874433857[/C][/ROW]
[ROW][C]39[/C][C]33.46[/C][C]40.7056973157671[/C][C]-7.24569731576714[/C][/ROW]
[ROW][C]40[/C][C]33.15[/C][C]41.4899660601057[/C][C]-8.33996606010571[/C][/ROW]
[ROW][C]41[/C][C]37.99[/C][C]42.0385374886772[/C][C]-4.04853748867715[/C][/ROW]
[ROW][C]42[/C][C]35.24[/C][C]42.3256633758729[/C][C]-7.08566337587286[/C][/ROW]
[ROW][C]43[/C][C]38.24[/C][C]45.2328232029629[/C][C]-6.99282320296286[/C][/ROW]
[ROW][C]44[/C][C]43.16[/C][C]46.3799660601057[/C][C]-3.21996606010572[/C][/ROW]
[ROW][C]45[/C][C]43.33[/C][C]44.7467093399684[/C][C]-1.41670933996843[/C][/ROW]
[ROW][C]46[/C][C]49.67[/C][C]43.9050426733018[/C][C]5.76495732669824[/C][/ROW]
[ROW][C]47[/C][C]43.17[/C][C]42.1350624715734[/C][C]1.03493752842658[/C][/ROW]
[ROW][C]48[/C][C]39.56[/C][C]45.4101218663884[/C][C]-5.85012186638842[/C][/ROW]
[ROW][C]49[/C][C]44.36[/C][C]45.7434413065331[/C][C]-1.38344130653305[/C][/ROW]
[ROW][C]50[/C][C]45.22[/C][C]46.4977270208188[/C][C]-1.27772702081876[/C][/ROW]
[ROW][C]51[/C][C]53.1[/C][C]48.6491555922473[/C][C]4.45084440775267[/C][/ROW]
[ROW][C]52[/C][C]52.1[/C][C]49.4334243365859[/C][C]2.66657566341409[/C][/ROW]
[ROW][C]53[/C][C]48.52[/C][C]49.9819957651573[/C][C]-1.46199576515733[/C][/ROW]
[ROW][C]54[/C][C]54.84[/C][C]50.2691216523531[/C][C]4.57087834764695[/C][/ROW]
[ROW][C]55[/C][C]57.57[/C][C]53.176281479443[/C][C]4.39371852055695[/C][/ROW]
[ROW][C]56[/C][C]64.14[/C][C]54.3234243365859[/C][C]9.8165756634141[/C][/ROW]
[ROW][C]57[/C][C]62.85[/C][C]52.6901676164486[/C][C]10.1598323835514[/C][/ROW]
[ROW][C]58[/C][C]58.75[/C][C]51.848500949782[/C][C]6.90149905021805[/C][/ROW]
[ROW][C]59[/C][C]55.33[/C][C]50.0785207480536[/C][C]5.25147925194638[/C][/ROW]
[ROW][C]60[/C][C]57.03[/C][C]49.0634613532386[/C][C]7.96653864676138[/C][/ROW]
[ROW][C]61[/C][C]63.18[/C][C]53.6868995830132[/C][C]9.49310041698677[/C][/ROW]
[ROW][C]62[/C][C]60.19[/C][C]54.441185297299[/C][C]5.74881470270104[/C][/ROW]
[ROW][C]63[/C][C]62.12[/C][C]56.5926138687275[/C][C]5.52738613127247[/C][/ROW]
[ROW][C]64[/C][C]70.12[/C][C]61.6670014026961[/C][C]8.45299859730392[/C][/ROW]
[ROW][C]65[/C][C]69.75[/C][C]62.2155728312675[/C][C]7.53442716873249[/C][/ROW]
[ROW][C]66[/C][C]68.56[/C][C]62.5026987184632[/C][C]6.05730128153678[/C][/ROW]
[ROW][C]67[/C][C]73.77[/C][C]65.4098585455532[/C][C]8.36014145444677[/C][/ROW]
[ROW][C]68[/C][C]73.23[/C][C]66.5570014026961[/C][C]6.67299859730392[/C][/ROW]
[ROW][C]69[/C][C]61.96[/C][C]60.6336258929288[/C][C]1.32637410707120[/C][/ROW]
[ROW][C]70[/C][C]57.81[/C][C]59.7919592262621[/C][C]-1.98195922626214[/C][/ROW]
[ROW][C]71[/C][C]58.76[/C][C]58.0219790245338[/C][C]0.738020975466195[/C][/ROW]
[ROW][C]72[/C][C]62.47[/C][C]61.2970384193488[/C][C]1.17296158065120[/C][/ROW]
[ROW][C]73[/C][C]53.68[/C][C]65.9204766491234[/C][C]-12.2404766491234[/C][/ROW]
[ROW][C]74[/C][C]57.56[/C][C]66.6747623634091[/C][C]-9.11476236340912[/C][/ROW]
[ROW][C]75[/C][C]62.05[/C][C]68.8261909348377[/C][C]-6.7761909348377[/C][/ROW]
[ROW][C]76[/C][C]67.49[/C][C]69.6104596791763[/C][C]-2.12045967917627[/C][/ROW]
[ROW][C]77[/C][C]67.21[/C][C]70.1590311077477[/C][C]-2.9490311077477[/C][/ROW]
[ROW][C]78[/C][C]71.05[/C][C]70.4461569949434[/C][C]0.603843005056587[/C][/ROW]
[ROW][C]79[/C][C]76.93[/C][C]73.3533168220334[/C][C]3.5766831779666[/C][/ROW]
[ROW][C]80[/C][C]70.76[/C][C]74.5004596791763[/C][C]-3.74045967917626[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7767&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7767&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
125.6213.969608200612311.6503917993877
227.514.72389391489812.776106085102
324.516.87532248632667.62467751367342
425.6617.65959123066528.00040876933485
528.3118.208162659236610.1018373407634
627.8522.78540733606235.06459266393771
724.6121.40244837352233.2075516264777
825.6822.54959123066523.13040876933484
925.6225.20645330015790.413546699842143
1020.5424.3647866334912-3.82478663349118
1118.818.30468764213290.495312357867139
1218.7117.28962824731791.42037175268212
1319.4621.9130664770925-2.45306647709248
1420.1222.6673521913782-2.54735219137819
1523.5424.8187807628068-1.27878076280677
1625.625.6030495071453-0.00304950714534466
1725.3926.1516209357168-0.761620935716772
1824.0926.4387468229125-2.34874682291249
1925.6929.3459066500025-3.65590665000248
2026.5630.4930495071453-3.93304950714535
2128.3328.8597927870081-0.529792787008056
2227.528.0181261203414-0.518126120341386
2324.2326.2481459186131-2.01814591861305
2428.2329.5232053134280-1.29320531342805
2531.2929.85652475357271.43347524642733
2632.7230.61081046785842.10918953214161
2730.4632.7622390392870-2.30223903928695
2824.8933.5465077836255-8.65650778362553
2925.6834.0950792121969-8.41507921219695
3027.5234.3822050993927-6.86220509939267
3128.437.2893649264827-8.88936492648267
3229.7138.4365077836255-8.72650778362553
3326.8536.8032510634882-9.95325106348824
3429.6235.9615843968216-6.34158439682157
3528.6934.1916041950932-5.50160419509324
3629.7633.1765448002783-3.41654480027825
3731.337.7999830300529-6.49998303005286
3830.8638.5542687443386-7.69426874433857
3933.4640.7056973157671-7.24569731576714
4033.1541.4899660601057-8.33996606010571
4137.9942.0385374886772-4.04853748867715
4235.2442.3256633758729-7.08566337587286
4338.2445.2328232029629-6.99282320296286
4443.1646.3799660601057-3.21996606010572
4543.3344.7467093399684-1.41670933996843
4649.6743.90504267330185.76495732669824
4743.1742.13506247157341.03493752842658
4839.5645.4101218663884-5.85012186638842
4944.3645.7434413065331-1.38344130653305
5045.2246.4977270208188-1.27772702081876
5153.148.64915559224734.45084440775267
5252.149.43342433658592.66657566341409
5348.5249.9819957651573-1.46199576515733
5454.8450.26912165235314.57087834764695
5557.5753.1762814794434.39371852055695
5664.1454.32342433658599.8165756634141
5762.8552.690167616448610.1598323835514
5858.7551.8485009497826.90149905021805
5955.3350.07852074805365.25147925194638
6057.0349.06346135323867.96653864676138
6163.1853.68689958301329.49310041698677
6260.1954.4411852972995.74881470270104
6362.1256.59261386872755.52738613127247
6470.1261.66700140269618.45299859730392
6569.7562.21557283126757.53442716873249
6668.5662.50269871846326.05730128153678
6773.7765.40985854555328.36014145444677
6873.2366.55700140269616.67299859730392
6961.9660.63362589292881.32637410707120
7057.8159.7919592262621-1.98195922626214
7158.7658.02197902453380.738020975466195
7262.4761.29703841934881.17296158065120
7353.6865.9204766491234-12.2404766491234
7457.5666.6747623634091-9.11476236340912
7562.0568.8261909348377-6.7761909348377
7667.4969.6104596791763-2.12045967917627
7767.2170.1590311077477-2.9490311077477
7871.0570.44615699494340.603843005056587
7976.9373.35331682203343.5766831779666
8070.7674.5004596791763-3.74045967917626



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')