Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 19 Nov 2007 03:29:18 -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/19/t11954677690fn8cc24ct01tmi.htm/, Retrieved Fri, 03 May 2024 06:04:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5668, Retrieved Fri, 03 May 2024 06:04:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact216
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2007-11-19 10:29:18] [22d719c250b0837edaa2d173fd414084] [Current]
Feedback Forum

Post a new message
Dataseries X:
112.1	0
104.2	0
102.4	0
100.3	0
102.6	0
101.5	0
103.4	0
99.4	0
97.9	0
98	0
90.2	0
87.1	0
91.8	0
94.8	0
91.8	0
89.3	0
91.7	0
86.2	0
82.8	0
82.3	0
79.8	0
79.4	0
85.3	0
87.5	0
88.3	0
88.6	0
94.9	0
94.7	0
92.6	0
91.8	0
96.4	0
96.4	0
107.1	0
111.9	0
107.8	0
109.2	0
115.3	0
119.2	0
107.8	0
106.8	0
104.2	0
94.8	0
97.5	0
98.3	0
100.6	1
94.9	1
93.6	1
98	1
104.3	1
103.9	1
105.3	1
102.6	1
103.3	1
107.9	1
107.8	1
109.8	1
110.6	1
110.8	1
119.3	1
128.1	1
127.6	1
137.9	1
151.4	1
143.6	1
143.4	1
141.9	1
135.2	1
133.1	1
129.6	1
134.1	1
136.8	1
143.5	1
162.5	1
163.1	1
157.2	1
158.8	1
155.4	1
148.5	1
154.2	1
153.3	1
149.4	1
147.9	1
156	1
163	1
159.1	1
159.5	1
157.3	1
156.4	1
156.6	1
162.4	1
166.8	1
162.6	1
168.1	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5668&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
Suiker[t] = + 73.2224697844077 -5.22573361280486Fluctuatie[t] + 7.95568637825743M1[t] + 8.26418147956589M2[t] + 6.91017658087433M3[t] + 3.99367168218276M4[t] + 2.68966678349120M5[t] -0.126838115200363M6[t] + 0.0441569861080644M7[t] -2.03484791258349M8[t] -1.36063610967446M9[t] -3.69556163118832M10[t] -2.94778081559417M11[t] + 0.966504898691565t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Suiker[t] =  +  73.2224697844077 -5.22573361280486Fluctuatie[t] +  7.95568637825743M1[t] +  8.26418147956589M2[t] +  6.91017658087433M3[t] +  3.99367168218276M4[t] +  2.68966678349120M5[t] -0.126838115200363M6[t] +  0.0441569861080644M7[t] -2.03484791258349M8[t] -1.36063610967446M9[t] -3.69556163118832M10[t] -2.94778081559417M11[t] +  0.966504898691565t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5668&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Suiker[t] =  +  73.2224697844077 -5.22573361280486Fluctuatie[t] +  7.95568637825743M1[t] +  8.26418147956589M2[t] +  6.91017658087433M3[t] +  3.99367168218276M4[t] +  2.68966678349120M5[t] -0.126838115200363M6[t] +  0.0441569861080644M7[t] -2.03484791258349M8[t] -1.36063610967446M9[t] -3.69556163118832M10[t] -2.94778081559417M11[t] +  0.966504898691565t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5668&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5668&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
Suiker[t] = + 73.2224697844077 -5.22573361280486Fluctuatie[t] + 7.95568637825743M1[t] + 8.26418147956589M2[t] + 6.91017658087433M3[t] + 3.99367168218276M4[t] + 2.68966678349120M5[t] -0.126838115200363M6[t] + 0.0441569861080644M7[t] -2.03484791258349M8[t] -1.36063610967446M9[t] -3.69556163118832M10[t] -2.94778081559417M11[t] + 0.966504898691565t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)73.22246978440775.6620512.932100
Fluctuatie-5.225733612804865.526979-0.94550.3472890.173644
M17.955686378257436.8220841.16620.2470560.123528
M28.264181479565896.8202761.21170.2292360.114618
M36.910176580874336.8200171.01320.3140480.157024
M43.993671682182766.8213070.58550.55990.27995
M52.689666783491206.8241460.39410.694540.34727
M6-0.1268381152003636.828532-0.01860.9852270.492614
M70.04415698610806446.8344620.00650.9948610.497431
M8-2.034847912583496.841932-0.29740.7669350.383468
M9-1.360636109674466.818891-0.19950.8423540.421177
M10-3.695561631188327.043683-0.52470.6012870.300643
M11-2.947780815594177.041432-0.41860.676620.33831
t0.9665048986915650.1028069.401300

\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) & 73.2224697844077 & 5.66205 & 12.9321 & 0 & 0 \tabularnewline
Fluctuatie & -5.22573361280486 & 5.526979 & -0.9455 & 0.347289 & 0.173644 \tabularnewline
M1 & 7.95568637825743 & 6.822084 & 1.1662 & 0.247056 & 0.123528 \tabularnewline
M2 & 8.26418147956589 & 6.820276 & 1.2117 & 0.229236 & 0.114618 \tabularnewline
M3 & 6.91017658087433 & 6.820017 & 1.0132 & 0.314048 & 0.157024 \tabularnewline
M4 & 3.99367168218276 & 6.821307 & 0.5855 & 0.5599 & 0.27995 \tabularnewline
M5 & 2.68966678349120 & 6.824146 & 0.3941 & 0.69454 & 0.34727 \tabularnewline
M6 & -0.126838115200363 & 6.828532 & -0.0186 & 0.985227 & 0.492614 \tabularnewline
M7 & 0.0441569861080644 & 6.834462 & 0.0065 & 0.994861 & 0.497431 \tabularnewline
M8 & -2.03484791258349 & 6.841932 & -0.2974 & 0.766935 & 0.383468 \tabularnewline
M9 & -1.36063610967446 & 6.818891 & -0.1995 & 0.842354 & 0.421177 \tabularnewline
M10 & -3.69556163118832 & 7.043683 & -0.5247 & 0.601287 & 0.300643 \tabularnewline
M11 & -2.94778081559417 & 7.041432 & -0.4186 & 0.67662 & 0.33831 \tabularnewline
t & 0.966504898691565 & 0.102806 & 9.4013 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5668&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]73.2224697844077[/C][C]5.66205[/C][C]12.9321[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Fluctuatie[/C][C]-5.22573361280486[/C][C]5.526979[/C][C]-0.9455[/C][C]0.347289[/C][C]0.173644[/C][/ROW]
[ROW][C]M1[/C][C]7.95568637825743[/C][C]6.822084[/C][C]1.1662[/C][C]0.247056[/C][C]0.123528[/C][/ROW]
[ROW][C]M2[/C][C]8.26418147956589[/C][C]6.820276[/C][C]1.2117[/C][C]0.229236[/C][C]0.114618[/C][/ROW]
[ROW][C]M3[/C][C]6.91017658087433[/C][C]6.820017[/C][C]1.0132[/C][C]0.314048[/C][C]0.157024[/C][/ROW]
[ROW][C]M4[/C][C]3.99367168218276[/C][C]6.821307[/C][C]0.5855[/C][C]0.5599[/C][C]0.27995[/C][/ROW]
[ROW][C]M5[/C][C]2.68966678349120[/C][C]6.824146[/C][C]0.3941[/C][C]0.69454[/C][C]0.34727[/C][/ROW]
[ROW][C]M6[/C][C]-0.126838115200363[/C][C]6.828532[/C][C]-0.0186[/C][C]0.985227[/C][C]0.492614[/C][/ROW]
[ROW][C]M7[/C][C]0.0441569861080644[/C][C]6.834462[/C][C]0.0065[/C][C]0.994861[/C][C]0.497431[/C][/ROW]
[ROW][C]M8[/C][C]-2.03484791258349[/C][C]6.841932[/C][C]-0.2974[/C][C]0.766935[/C][C]0.383468[/C][/ROW]
[ROW][C]M9[/C][C]-1.36063610967446[/C][C]6.818891[/C][C]-0.1995[/C][C]0.842354[/C][C]0.421177[/C][/ROW]
[ROW][C]M10[/C][C]-3.69556163118832[/C][C]7.043683[/C][C]-0.5247[/C][C]0.601287[/C][C]0.300643[/C][/ROW]
[ROW][C]M11[/C][C]-2.94778081559417[/C][C]7.041432[/C][C]-0.4186[/C][C]0.67662[/C][C]0.33831[/C][/ROW]
[ROW][C]t[/C][C]0.966504898691565[/C][C]0.102806[/C][C]9.4013[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5668&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5668&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)73.22246978440775.6620512.932100
Fluctuatie-5.225733612804865.526979-0.94550.3472890.173644
M17.955686378257436.8220841.16620.2470560.123528
M28.264181479565896.8202761.21170.2292360.114618
M36.910176580874336.8200171.01320.3140480.157024
M43.993671682182766.8213070.58550.55990.27995
M52.689666783491206.8241460.39410.694540.34727
M6-0.1268381152003636.828532-0.01860.9852270.492614
M70.04415698610806446.8344620.00650.9948610.497431
M8-2.034847912583496.841932-0.29740.7669350.383468
M9-1.360636109674466.818891-0.19950.8423540.421177
M10-3.695561631188327.043683-0.52470.6012870.300643
M11-2.947780815594177.041432-0.41860.676620.33831
t0.9665048986915650.1028069.401300







Multiple Linear Regression - Regression Statistics
Multiple R0.890842694255804
R-squared0.79360070590894
Adjusted R-squared0.759636265109145
F-TEST (value)23.3656343876486
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.1719095678698
Sum Squared Residuals13706.4369314671

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.890842694255804 \tabularnewline
R-squared & 0.79360070590894 \tabularnewline
Adjusted R-squared & 0.759636265109145 \tabularnewline
F-TEST (value) & 23.3656343876486 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 79 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.1719095678698 \tabularnewline
Sum Squared Residuals & 13706.4369314671 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5668&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.890842694255804[/C][/ROW]
[ROW][C]R-squared[/C][C]0.79360070590894[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.759636265109145[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]23.3656343876486[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]79[/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]13.1719095678698[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]13706.4369314671[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5668&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5668&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.890842694255804
R-squared0.79360070590894
Adjusted R-squared0.759636265109145
F-TEST (value)23.3656343876486
F-TEST (DF numerator)13
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.1719095678698
Sum Squared Residuals13706.4369314671







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1112.182.144661061356929.9553389386431
2104.283.419661061356720.7803389386433
3102.483.032161061356819.3678389386433
4100.381.082161061356719.2178389386433
5102.680.744661061356721.8553389386433
6101.578.894661061356722.6053389386433
7103.480.032161061356723.3678389386433
899.478.919661061356720.4803389386433
997.980.560377762957317.3396222370427
109879.19195714013518.808042859865
1190.280.90624285442079.29375714557928
1287.184.82052856870652.27947143129353
1391.893.7427198456555-1.94271984565546
1494.895.0177198456554-0.217719845655410
1591.894.6302198456555-2.83021984565550
1689.392.6802198456555-3.38021984565549
1791.792.3427198456555-0.64271984565548
1886.290.4927198456555-4.29271984565549
1982.891.6302198456555-8.83021984565549
2082.390.5177198456555-8.2177198456555
2179.892.1584365472561-12.3584365472561
2279.490.7900159244338-11.3900159244338
2385.392.5043016387195-7.20430163871952
2487.596.4185873530053-8.91858735300525
2588.3105.340778629954-17.0407786299542
2688.6106.615778629954-18.0157786299543
2794.9106.228278629954-11.3282786299543
2894.7104.278278629954-9.57827862995427
2992.6103.940778629954-11.3407786299543
3091.8102.090778629954-10.2907786299543
3196.4103.228278629954-6.82827862995426
3296.4102.115778629954-5.71577862995427
33107.1103.7564953315553.34350466844512
34111.9102.3880747087339.51192529126742
35107.8104.1023604230183.6976395769817
36109.2108.0166461373041.18335386269598
37115.3116.938837414253-1.63883741425302
38119.2118.2138374142530.98616258574694
39107.8117.826337414253-10.0263374142531
40106.8115.876337414253-9.07633741425306
41104.2115.538837414253-11.3388374142531
4294.8113.688837414253-18.8888374142531
4397.5114.826337414253-17.3263374142530
4498.3113.713837414253-15.4138374142531
45100.6110.128820503049-9.52882050304878
4694.9108.760399880226-13.8603998802265
4793.6110.474685594512-16.8746855945122
4898114.388971308798-16.3889713087979
49104.3123.311162585747-19.0111625857469
50103.9124.586162585747-20.6861625857470
51105.3124.198662585747-18.8986625857470
52102.6122.248662585747-19.6486625857469
53103.3121.911162585747-18.6111625857469
54107.9120.061162585747-12.1611625857469
55107.8121.198662585747-13.3986625857469
56109.8120.086162585747-10.2861625857470
57110.6121.726879287348-11.1268792873476
58110.8120.358458664525-9.55845866452526
59119.3122.072744378811-2.77274437881098
60128.1125.9870300930972.11296990690329
61127.6134.909221370046-7.3092213700457
62137.9136.1842213700461.71577862995426
63151.4135.79672137004615.6032786299543
64143.6133.8467213700469.75327862995426
65143.4133.5092213700469.89077862995428
66141.9131.65922137004610.2407786299543
67135.2132.7967213700462.40327862995426
68133.1131.6842213700461.41577862995426
69129.6133.324938071646-3.72493807164635
70134.1131.9565174488242.14348255117595
71136.8133.6708031631103.12919683689025
72143.5137.5850888773955.91491112260452
73162.5146.50728015434415.9927198456555
74163.1147.78228015434515.3177198456555
75157.2147.3947801543459.80521984565546
76158.8145.44478015434513.3552198456555
77155.4145.10728015434510.2927198456555
78148.5143.2572801543445.24271984565549
79154.2144.3947801543459.80521984565547
80153.3143.28228015434510.0177198456555
81149.4144.9229968559454.47700314405488
82147.9143.5545762331234.34542376687718
83156145.26886194740910.7311380525915
84163149.18314766169413.8168523383057
85159.1158.1053389386430.99466106135673
86159.5159.3803389386430.119661061356689
87157.3158.992838938643-1.6928389386433
88156.4157.042838938643-0.64283893864329
89156.6156.705338938643-0.105338938643297
90162.4154.8553389386437.54466106135671
91166.8155.99283893864310.8071610613567
92162.6154.8803389386437.71966106135669
93168.1156.52105564024411.5789443597561

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 112.1 & 82.1446610613569 & 29.9553389386431 \tabularnewline
2 & 104.2 & 83.4196610613567 & 20.7803389386433 \tabularnewline
3 & 102.4 & 83.0321610613568 & 19.3678389386433 \tabularnewline
4 & 100.3 & 81.0821610613567 & 19.2178389386433 \tabularnewline
5 & 102.6 & 80.7446610613567 & 21.8553389386433 \tabularnewline
6 & 101.5 & 78.8946610613567 & 22.6053389386433 \tabularnewline
7 & 103.4 & 80.0321610613567 & 23.3678389386433 \tabularnewline
8 & 99.4 & 78.9196610613567 & 20.4803389386433 \tabularnewline
9 & 97.9 & 80.5603777629573 & 17.3396222370427 \tabularnewline
10 & 98 & 79.191957140135 & 18.808042859865 \tabularnewline
11 & 90.2 & 80.9062428544207 & 9.29375714557928 \tabularnewline
12 & 87.1 & 84.8205285687065 & 2.27947143129353 \tabularnewline
13 & 91.8 & 93.7427198456555 & -1.94271984565546 \tabularnewline
14 & 94.8 & 95.0177198456554 & -0.217719845655410 \tabularnewline
15 & 91.8 & 94.6302198456555 & -2.83021984565550 \tabularnewline
16 & 89.3 & 92.6802198456555 & -3.38021984565549 \tabularnewline
17 & 91.7 & 92.3427198456555 & -0.64271984565548 \tabularnewline
18 & 86.2 & 90.4927198456555 & -4.29271984565549 \tabularnewline
19 & 82.8 & 91.6302198456555 & -8.83021984565549 \tabularnewline
20 & 82.3 & 90.5177198456555 & -8.2177198456555 \tabularnewline
21 & 79.8 & 92.1584365472561 & -12.3584365472561 \tabularnewline
22 & 79.4 & 90.7900159244338 & -11.3900159244338 \tabularnewline
23 & 85.3 & 92.5043016387195 & -7.20430163871952 \tabularnewline
24 & 87.5 & 96.4185873530053 & -8.91858735300525 \tabularnewline
25 & 88.3 & 105.340778629954 & -17.0407786299542 \tabularnewline
26 & 88.6 & 106.615778629954 & -18.0157786299543 \tabularnewline
27 & 94.9 & 106.228278629954 & -11.3282786299543 \tabularnewline
28 & 94.7 & 104.278278629954 & -9.57827862995427 \tabularnewline
29 & 92.6 & 103.940778629954 & -11.3407786299543 \tabularnewline
30 & 91.8 & 102.090778629954 & -10.2907786299543 \tabularnewline
31 & 96.4 & 103.228278629954 & -6.82827862995426 \tabularnewline
32 & 96.4 & 102.115778629954 & -5.71577862995427 \tabularnewline
33 & 107.1 & 103.756495331555 & 3.34350466844512 \tabularnewline
34 & 111.9 & 102.388074708733 & 9.51192529126742 \tabularnewline
35 & 107.8 & 104.102360423018 & 3.6976395769817 \tabularnewline
36 & 109.2 & 108.016646137304 & 1.18335386269598 \tabularnewline
37 & 115.3 & 116.938837414253 & -1.63883741425302 \tabularnewline
38 & 119.2 & 118.213837414253 & 0.98616258574694 \tabularnewline
39 & 107.8 & 117.826337414253 & -10.0263374142531 \tabularnewline
40 & 106.8 & 115.876337414253 & -9.07633741425306 \tabularnewline
41 & 104.2 & 115.538837414253 & -11.3388374142531 \tabularnewline
42 & 94.8 & 113.688837414253 & -18.8888374142531 \tabularnewline
43 & 97.5 & 114.826337414253 & -17.3263374142530 \tabularnewline
44 & 98.3 & 113.713837414253 & -15.4138374142531 \tabularnewline
45 & 100.6 & 110.128820503049 & -9.52882050304878 \tabularnewline
46 & 94.9 & 108.760399880226 & -13.8603998802265 \tabularnewline
47 & 93.6 & 110.474685594512 & -16.8746855945122 \tabularnewline
48 & 98 & 114.388971308798 & -16.3889713087979 \tabularnewline
49 & 104.3 & 123.311162585747 & -19.0111625857469 \tabularnewline
50 & 103.9 & 124.586162585747 & -20.6861625857470 \tabularnewline
51 & 105.3 & 124.198662585747 & -18.8986625857470 \tabularnewline
52 & 102.6 & 122.248662585747 & -19.6486625857469 \tabularnewline
53 & 103.3 & 121.911162585747 & -18.6111625857469 \tabularnewline
54 & 107.9 & 120.061162585747 & -12.1611625857469 \tabularnewline
55 & 107.8 & 121.198662585747 & -13.3986625857469 \tabularnewline
56 & 109.8 & 120.086162585747 & -10.2861625857470 \tabularnewline
57 & 110.6 & 121.726879287348 & -11.1268792873476 \tabularnewline
58 & 110.8 & 120.358458664525 & -9.55845866452526 \tabularnewline
59 & 119.3 & 122.072744378811 & -2.77274437881098 \tabularnewline
60 & 128.1 & 125.987030093097 & 2.11296990690329 \tabularnewline
61 & 127.6 & 134.909221370046 & -7.3092213700457 \tabularnewline
62 & 137.9 & 136.184221370046 & 1.71577862995426 \tabularnewline
63 & 151.4 & 135.796721370046 & 15.6032786299543 \tabularnewline
64 & 143.6 & 133.846721370046 & 9.75327862995426 \tabularnewline
65 & 143.4 & 133.509221370046 & 9.89077862995428 \tabularnewline
66 & 141.9 & 131.659221370046 & 10.2407786299543 \tabularnewline
67 & 135.2 & 132.796721370046 & 2.40327862995426 \tabularnewline
68 & 133.1 & 131.684221370046 & 1.41577862995426 \tabularnewline
69 & 129.6 & 133.324938071646 & -3.72493807164635 \tabularnewline
70 & 134.1 & 131.956517448824 & 2.14348255117595 \tabularnewline
71 & 136.8 & 133.670803163110 & 3.12919683689025 \tabularnewline
72 & 143.5 & 137.585088877395 & 5.91491112260452 \tabularnewline
73 & 162.5 & 146.507280154344 & 15.9927198456555 \tabularnewline
74 & 163.1 & 147.782280154345 & 15.3177198456555 \tabularnewline
75 & 157.2 & 147.394780154345 & 9.80521984565546 \tabularnewline
76 & 158.8 & 145.444780154345 & 13.3552198456555 \tabularnewline
77 & 155.4 & 145.107280154345 & 10.2927198456555 \tabularnewline
78 & 148.5 & 143.257280154344 & 5.24271984565549 \tabularnewline
79 & 154.2 & 144.394780154345 & 9.80521984565547 \tabularnewline
80 & 153.3 & 143.282280154345 & 10.0177198456555 \tabularnewline
81 & 149.4 & 144.922996855945 & 4.47700314405488 \tabularnewline
82 & 147.9 & 143.554576233123 & 4.34542376687718 \tabularnewline
83 & 156 & 145.268861947409 & 10.7311380525915 \tabularnewline
84 & 163 & 149.183147661694 & 13.8168523383057 \tabularnewline
85 & 159.1 & 158.105338938643 & 0.99466106135673 \tabularnewline
86 & 159.5 & 159.380338938643 & 0.119661061356689 \tabularnewline
87 & 157.3 & 158.992838938643 & -1.6928389386433 \tabularnewline
88 & 156.4 & 157.042838938643 & -0.64283893864329 \tabularnewline
89 & 156.6 & 156.705338938643 & -0.105338938643297 \tabularnewline
90 & 162.4 & 154.855338938643 & 7.54466106135671 \tabularnewline
91 & 166.8 & 155.992838938643 & 10.8071610613567 \tabularnewline
92 & 162.6 & 154.880338938643 & 7.71966106135669 \tabularnewline
93 & 168.1 & 156.521055640244 & 11.5789443597561 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5668&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]112.1[/C][C]82.1446610613569[/C][C]29.9553389386431[/C][/ROW]
[ROW][C]2[/C][C]104.2[/C][C]83.4196610613567[/C][C]20.7803389386433[/C][/ROW]
[ROW][C]3[/C][C]102.4[/C][C]83.0321610613568[/C][C]19.3678389386433[/C][/ROW]
[ROW][C]4[/C][C]100.3[/C][C]81.0821610613567[/C][C]19.2178389386433[/C][/ROW]
[ROW][C]5[/C][C]102.6[/C][C]80.7446610613567[/C][C]21.8553389386433[/C][/ROW]
[ROW][C]6[/C][C]101.5[/C][C]78.8946610613567[/C][C]22.6053389386433[/C][/ROW]
[ROW][C]7[/C][C]103.4[/C][C]80.0321610613567[/C][C]23.3678389386433[/C][/ROW]
[ROW][C]8[/C][C]99.4[/C][C]78.9196610613567[/C][C]20.4803389386433[/C][/ROW]
[ROW][C]9[/C][C]97.9[/C][C]80.5603777629573[/C][C]17.3396222370427[/C][/ROW]
[ROW][C]10[/C][C]98[/C][C]79.191957140135[/C][C]18.808042859865[/C][/ROW]
[ROW][C]11[/C][C]90.2[/C][C]80.9062428544207[/C][C]9.29375714557928[/C][/ROW]
[ROW][C]12[/C][C]87.1[/C][C]84.8205285687065[/C][C]2.27947143129353[/C][/ROW]
[ROW][C]13[/C][C]91.8[/C][C]93.7427198456555[/C][C]-1.94271984565546[/C][/ROW]
[ROW][C]14[/C][C]94.8[/C][C]95.0177198456554[/C][C]-0.217719845655410[/C][/ROW]
[ROW][C]15[/C][C]91.8[/C][C]94.6302198456555[/C][C]-2.83021984565550[/C][/ROW]
[ROW][C]16[/C][C]89.3[/C][C]92.6802198456555[/C][C]-3.38021984565549[/C][/ROW]
[ROW][C]17[/C][C]91.7[/C][C]92.3427198456555[/C][C]-0.64271984565548[/C][/ROW]
[ROW][C]18[/C][C]86.2[/C][C]90.4927198456555[/C][C]-4.29271984565549[/C][/ROW]
[ROW][C]19[/C][C]82.8[/C][C]91.6302198456555[/C][C]-8.83021984565549[/C][/ROW]
[ROW][C]20[/C][C]82.3[/C][C]90.5177198456555[/C][C]-8.2177198456555[/C][/ROW]
[ROW][C]21[/C][C]79.8[/C][C]92.1584365472561[/C][C]-12.3584365472561[/C][/ROW]
[ROW][C]22[/C][C]79.4[/C][C]90.7900159244338[/C][C]-11.3900159244338[/C][/ROW]
[ROW][C]23[/C][C]85.3[/C][C]92.5043016387195[/C][C]-7.20430163871952[/C][/ROW]
[ROW][C]24[/C][C]87.5[/C][C]96.4185873530053[/C][C]-8.91858735300525[/C][/ROW]
[ROW][C]25[/C][C]88.3[/C][C]105.340778629954[/C][C]-17.0407786299542[/C][/ROW]
[ROW][C]26[/C][C]88.6[/C][C]106.615778629954[/C][C]-18.0157786299543[/C][/ROW]
[ROW][C]27[/C][C]94.9[/C][C]106.228278629954[/C][C]-11.3282786299543[/C][/ROW]
[ROW][C]28[/C][C]94.7[/C][C]104.278278629954[/C][C]-9.57827862995427[/C][/ROW]
[ROW][C]29[/C][C]92.6[/C][C]103.940778629954[/C][C]-11.3407786299543[/C][/ROW]
[ROW][C]30[/C][C]91.8[/C][C]102.090778629954[/C][C]-10.2907786299543[/C][/ROW]
[ROW][C]31[/C][C]96.4[/C][C]103.228278629954[/C][C]-6.82827862995426[/C][/ROW]
[ROW][C]32[/C][C]96.4[/C][C]102.115778629954[/C][C]-5.71577862995427[/C][/ROW]
[ROW][C]33[/C][C]107.1[/C][C]103.756495331555[/C][C]3.34350466844512[/C][/ROW]
[ROW][C]34[/C][C]111.9[/C][C]102.388074708733[/C][C]9.51192529126742[/C][/ROW]
[ROW][C]35[/C][C]107.8[/C][C]104.102360423018[/C][C]3.6976395769817[/C][/ROW]
[ROW][C]36[/C][C]109.2[/C][C]108.016646137304[/C][C]1.18335386269598[/C][/ROW]
[ROW][C]37[/C][C]115.3[/C][C]116.938837414253[/C][C]-1.63883741425302[/C][/ROW]
[ROW][C]38[/C][C]119.2[/C][C]118.213837414253[/C][C]0.98616258574694[/C][/ROW]
[ROW][C]39[/C][C]107.8[/C][C]117.826337414253[/C][C]-10.0263374142531[/C][/ROW]
[ROW][C]40[/C][C]106.8[/C][C]115.876337414253[/C][C]-9.07633741425306[/C][/ROW]
[ROW][C]41[/C][C]104.2[/C][C]115.538837414253[/C][C]-11.3388374142531[/C][/ROW]
[ROW][C]42[/C][C]94.8[/C][C]113.688837414253[/C][C]-18.8888374142531[/C][/ROW]
[ROW][C]43[/C][C]97.5[/C][C]114.826337414253[/C][C]-17.3263374142530[/C][/ROW]
[ROW][C]44[/C][C]98.3[/C][C]113.713837414253[/C][C]-15.4138374142531[/C][/ROW]
[ROW][C]45[/C][C]100.6[/C][C]110.128820503049[/C][C]-9.52882050304878[/C][/ROW]
[ROW][C]46[/C][C]94.9[/C][C]108.760399880226[/C][C]-13.8603998802265[/C][/ROW]
[ROW][C]47[/C][C]93.6[/C][C]110.474685594512[/C][C]-16.8746855945122[/C][/ROW]
[ROW][C]48[/C][C]98[/C][C]114.388971308798[/C][C]-16.3889713087979[/C][/ROW]
[ROW][C]49[/C][C]104.3[/C][C]123.311162585747[/C][C]-19.0111625857469[/C][/ROW]
[ROW][C]50[/C][C]103.9[/C][C]124.586162585747[/C][C]-20.6861625857470[/C][/ROW]
[ROW][C]51[/C][C]105.3[/C][C]124.198662585747[/C][C]-18.8986625857470[/C][/ROW]
[ROW][C]52[/C][C]102.6[/C][C]122.248662585747[/C][C]-19.6486625857469[/C][/ROW]
[ROW][C]53[/C][C]103.3[/C][C]121.911162585747[/C][C]-18.6111625857469[/C][/ROW]
[ROW][C]54[/C][C]107.9[/C][C]120.061162585747[/C][C]-12.1611625857469[/C][/ROW]
[ROW][C]55[/C][C]107.8[/C][C]121.198662585747[/C][C]-13.3986625857469[/C][/ROW]
[ROW][C]56[/C][C]109.8[/C][C]120.086162585747[/C][C]-10.2861625857470[/C][/ROW]
[ROW][C]57[/C][C]110.6[/C][C]121.726879287348[/C][C]-11.1268792873476[/C][/ROW]
[ROW][C]58[/C][C]110.8[/C][C]120.358458664525[/C][C]-9.55845866452526[/C][/ROW]
[ROW][C]59[/C][C]119.3[/C][C]122.072744378811[/C][C]-2.77274437881098[/C][/ROW]
[ROW][C]60[/C][C]128.1[/C][C]125.987030093097[/C][C]2.11296990690329[/C][/ROW]
[ROW][C]61[/C][C]127.6[/C][C]134.909221370046[/C][C]-7.3092213700457[/C][/ROW]
[ROW][C]62[/C][C]137.9[/C][C]136.184221370046[/C][C]1.71577862995426[/C][/ROW]
[ROW][C]63[/C][C]151.4[/C][C]135.796721370046[/C][C]15.6032786299543[/C][/ROW]
[ROW][C]64[/C][C]143.6[/C][C]133.846721370046[/C][C]9.75327862995426[/C][/ROW]
[ROW][C]65[/C][C]143.4[/C][C]133.509221370046[/C][C]9.89077862995428[/C][/ROW]
[ROW][C]66[/C][C]141.9[/C][C]131.659221370046[/C][C]10.2407786299543[/C][/ROW]
[ROW][C]67[/C][C]135.2[/C][C]132.796721370046[/C][C]2.40327862995426[/C][/ROW]
[ROW][C]68[/C][C]133.1[/C][C]131.684221370046[/C][C]1.41577862995426[/C][/ROW]
[ROW][C]69[/C][C]129.6[/C][C]133.324938071646[/C][C]-3.72493807164635[/C][/ROW]
[ROW][C]70[/C][C]134.1[/C][C]131.956517448824[/C][C]2.14348255117595[/C][/ROW]
[ROW][C]71[/C][C]136.8[/C][C]133.670803163110[/C][C]3.12919683689025[/C][/ROW]
[ROW][C]72[/C][C]143.5[/C][C]137.585088877395[/C][C]5.91491112260452[/C][/ROW]
[ROW][C]73[/C][C]162.5[/C][C]146.507280154344[/C][C]15.9927198456555[/C][/ROW]
[ROW][C]74[/C][C]163.1[/C][C]147.782280154345[/C][C]15.3177198456555[/C][/ROW]
[ROW][C]75[/C][C]157.2[/C][C]147.394780154345[/C][C]9.80521984565546[/C][/ROW]
[ROW][C]76[/C][C]158.8[/C][C]145.444780154345[/C][C]13.3552198456555[/C][/ROW]
[ROW][C]77[/C][C]155.4[/C][C]145.107280154345[/C][C]10.2927198456555[/C][/ROW]
[ROW][C]78[/C][C]148.5[/C][C]143.257280154344[/C][C]5.24271984565549[/C][/ROW]
[ROW][C]79[/C][C]154.2[/C][C]144.394780154345[/C][C]9.80521984565547[/C][/ROW]
[ROW][C]80[/C][C]153.3[/C][C]143.282280154345[/C][C]10.0177198456555[/C][/ROW]
[ROW][C]81[/C][C]149.4[/C][C]144.922996855945[/C][C]4.47700314405488[/C][/ROW]
[ROW][C]82[/C][C]147.9[/C][C]143.554576233123[/C][C]4.34542376687718[/C][/ROW]
[ROW][C]83[/C][C]156[/C][C]145.268861947409[/C][C]10.7311380525915[/C][/ROW]
[ROW][C]84[/C][C]163[/C][C]149.183147661694[/C][C]13.8168523383057[/C][/ROW]
[ROW][C]85[/C][C]159.1[/C][C]158.105338938643[/C][C]0.99466106135673[/C][/ROW]
[ROW][C]86[/C][C]159.5[/C][C]159.380338938643[/C][C]0.119661061356689[/C][/ROW]
[ROW][C]87[/C][C]157.3[/C][C]158.992838938643[/C][C]-1.6928389386433[/C][/ROW]
[ROW][C]88[/C][C]156.4[/C][C]157.042838938643[/C][C]-0.64283893864329[/C][/ROW]
[ROW][C]89[/C][C]156.6[/C][C]156.705338938643[/C][C]-0.105338938643297[/C][/ROW]
[ROW][C]90[/C][C]162.4[/C][C]154.855338938643[/C][C]7.54466106135671[/C][/ROW]
[ROW][C]91[/C][C]166.8[/C][C]155.992838938643[/C][C]10.8071610613567[/C][/ROW]
[ROW][C]92[/C][C]162.6[/C][C]154.880338938643[/C][C]7.71966106135669[/C][/ROW]
[ROW][C]93[/C][C]168.1[/C][C]156.521055640244[/C][C]11.5789443597561[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5668&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5668&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
1112.182.144661061356929.9553389386431
2104.283.419661061356720.7803389386433
3102.483.032161061356819.3678389386433
4100.381.082161061356719.2178389386433
5102.680.744661061356721.8553389386433
6101.578.894661061356722.6053389386433
7103.480.032161061356723.3678389386433
899.478.919661061356720.4803389386433
997.980.560377762957317.3396222370427
109879.19195714013518.808042859865
1190.280.90624285442079.29375714557928
1287.184.82052856870652.27947143129353
1391.893.7427198456555-1.94271984565546
1494.895.0177198456554-0.217719845655410
1591.894.6302198456555-2.83021984565550
1689.392.6802198456555-3.38021984565549
1791.792.3427198456555-0.64271984565548
1886.290.4927198456555-4.29271984565549
1982.891.6302198456555-8.83021984565549
2082.390.5177198456555-8.2177198456555
2179.892.1584365472561-12.3584365472561
2279.490.7900159244338-11.3900159244338
2385.392.5043016387195-7.20430163871952
2487.596.4185873530053-8.91858735300525
2588.3105.340778629954-17.0407786299542
2688.6106.615778629954-18.0157786299543
2794.9106.228278629954-11.3282786299543
2894.7104.278278629954-9.57827862995427
2992.6103.940778629954-11.3407786299543
3091.8102.090778629954-10.2907786299543
3196.4103.228278629954-6.82827862995426
3296.4102.115778629954-5.71577862995427
33107.1103.7564953315553.34350466844512
34111.9102.3880747087339.51192529126742
35107.8104.1023604230183.6976395769817
36109.2108.0166461373041.18335386269598
37115.3116.938837414253-1.63883741425302
38119.2118.2138374142530.98616258574694
39107.8117.826337414253-10.0263374142531
40106.8115.876337414253-9.07633741425306
41104.2115.538837414253-11.3388374142531
4294.8113.688837414253-18.8888374142531
4397.5114.826337414253-17.3263374142530
4498.3113.713837414253-15.4138374142531
45100.6110.128820503049-9.52882050304878
4694.9108.760399880226-13.8603998802265
4793.6110.474685594512-16.8746855945122
4898114.388971308798-16.3889713087979
49104.3123.311162585747-19.0111625857469
50103.9124.586162585747-20.6861625857470
51105.3124.198662585747-18.8986625857470
52102.6122.248662585747-19.6486625857469
53103.3121.911162585747-18.6111625857469
54107.9120.061162585747-12.1611625857469
55107.8121.198662585747-13.3986625857469
56109.8120.086162585747-10.2861625857470
57110.6121.726879287348-11.1268792873476
58110.8120.358458664525-9.55845866452526
59119.3122.072744378811-2.77274437881098
60128.1125.9870300930972.11296990690329
61127.6134.909221370046-7.3092213700457
62137.9136.1842213700461.71577862995426
63151.4135.79672137004615.6032786299543
64143.6133.8467213700469.75327862995426
65143.4133.5092213700469.89077862995428
66141.9131.65922137004610.2407786299543
67135.2132.7967213700462.40327862995426
68133.1131.6842213700461.41577862995426
69129.6133.324938071646-3.72493807164635
70134.1131.9565174488242.14348255117595
71136.8133.6708031631103.12919683689025
72143.5137.5850888773955.91491112260452
73162.5146.50728015434415.9927198456555
74163.1147.78228015434515.3177198456555
75157.2147.3947801543459.80521984565546
76158.8145.44478015434513.3552198456555
77155.4145.10728015434510.2927198456555
78148.5143.2572801543445.24271984565549
79154.2144.3947801543459.80521984565547
80153.3143.28228015434510.0177198456555
81149.4144.9229968559454.47700314405488
82147.9143.5545762331234.34542376687718
83156145.26886194740910.7311380525915
84163149.18314766169413.8168523383057
85159.1158.1053389386430.99466106135673
86159.5159.3803389386430.119661061356689
87157.3158.992838938643-1.6928389386433
88156.4157.042838938643-0.64283893864329
89156.6156.705338938643-0.105338938643297
90162.4154.8553389386437.54466106135671
91166.8155.99283893864310.8071610613567
92162.6154.8803389386437.71966106135669
93168.1156.52105564024411.5789443597561



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