Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 15 Dec 2007 07:30:57 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2007/Dec/15/t1197728111onmz5na4yi91dx2.htm/, Retrieved Fri, 03 May 2024 01:34:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4066, Retrieved Fri, 03 May 2024 01:34:57 +0000
QR Codes:

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

Post a new message
Dataseries X:
99.5	0
101.6	0
103.9	0
106.6	0
108.3	0
102	0
93.8	0
91.6	0
97.7	0
94.8	0
98	0
103.8	0
97.8	0
91.2	0
89.3	0
87.5	0
90.4	0
94.2	0
102.2	0
101.3	0
96	0
90.8	0
93.2	0
90.9	0
91.1	0
90.2	0
94.3	0
96	0
99	0
103.3	0
113.1	0
112.8	0
112.1	0
107.4	0
111	0
110.5	0
110.8	0
112.4	0
111.5	0
116.2	0
122.5	0
121.3	0
113.9	0
110.7	0
120.8	0
141.1	1
147.4	1
148	1
158.1	1
165	1
187	1
190.3	1
182.4	1
168.8	1
151.2	1
120.1	0
112.5	0
106.2	0
107.1	0
108.5	0
106.5	0
108.3	0
125.6	0
124	0
127.2	0
136.9	0
135.8	0
124.3	0
115.4	0
113.6	0
114.4	0
118.4	0
117	0
116.5	0
115.4	0
113.6	0
117.4	0
116.9	0
116.4	0
111.1	0
110.2	0
118.9	0
131.8	0
130.6	0
138.3	0
148.4	0
148.7	0
144.3	0
152.5	0
162.9	0
167.2	0
166.5	0
185.6	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4066&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
Oliezaden[t] = + 108.461953652097 + 51.4663244353184Fluctuatie[t] -0.0077442065121429M1[t] + 1.80475579348780M2[t] + 7.06725579348783M3[t] + 7.41725579348786M4[t] + 10.0672557934878M5[t] + 10.8922557934878M6[t] + 9.30475579348785M7[t] + 8.83804634790263M8[t] + 10.3255463479026M9[t] -5.41428571428569M10[t] -1.11428571428569M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Oliezaden[t] =  +  108.461953652097 +  51.4663244353184Fluctuatie[t] -0.0077442065121429M1[t] +  1.80475579348780M2[t] +  7.06725579348783M3[t] +  7.41725579348786M4[t] +  10.0672557934878M5[t] +  10.8922557934878M6[t] +  9.30475579348785M7[t] +  8.83804634790263M8[t] +  10.3255463479026M9[t] -5.41428571428569M10[t] -1.11428571428569M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4066&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Oliezaden[t] =  +  108.461953652097 +  51.4663244353184Fluctuatie[t] -0.0077442065121429M1[t] +  1.80475579348780M2[t] +  7.06725579348783M3[t] +  7.41725579348786M4[t] +  10.0672557934878M5[t] +  10.8922557934878M6[t] +  9.30475579348785M7[t] +  8.83804634790263M8[t] +  10.3255463479026M9[t] -5.41428571428569M10[t] -1.11428571428569M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4066&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4066&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
Oliezaden[t] = + 108.461953652097 + 51.4663244353184Fluctuatie[t] -0.0077442065121429M1[t] + 1.80475579348780M2[t] + 7.06725579348783M3[t] + 7.41725579348786M4[t] + 10.0672557934878M5[t] + 10.8922557934878M6[t] + 9.30475579348785M7[t] + 8.83804634790263M8[t] + 10.3255463479026M9[t] -5.41428571428569M10[t] -1.11428571428569M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)108.4619536520977.55860314.349500
Fluctuatie51.46632443531846.7263897.651400
M1-0.007744206512142910.266769-8e-040.99940.4997
M21.8047557934878010.2667690.17580.8609060.430453
M37.0672557934878310.2667690.68840.4932160.246608
M47.4172557934878610.2667690.72250.4721230.236061
M510.067255793487810.2667690.98060.3297620.164881
M610.892255793487810.2667691.06090.2919170.145959
M79.3047557934878510.2667690.90630.36750.18375
M88.8380463479026310.3109390.85720.3939210.196961
M910.325546347902610.3109391.00140.3196450.159822
M10-5.4142857142856910.602748-0.51060.6110030.305501
M11-1.1142857142856910.602748-0.10510.9165640.458282

\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) & 108.461953652097 & 7.558603 & 14.3495 & 0 & 0 \tabularnewline
Fluctuatie & 51.4663244353184 & 6.726389 & 7.6514 & 0 & 0 \tabularnewline
M1 & -0.0077442065121429 & 10.266769 & -8e-04 & 0.9994 & 0.4997 \tabularnewline
M2 & 1.80475579348780 & 10.266769 & 0.1758 & 0.860906 & 0.430453 \tabularnewline
M3 & 7.06725579348783 & 10.266769 & 0.6884 & 0.493216 & 0.246608 \tabularnewline
M4 & 7.41725579348786 & 10.266769 & 0.7225 & 0.472123 & 0.236061 \tabularnewline
M5 & 10.0672557934878 & 10.266769 & 0.9806 & 0.329762 & 0.164881 \tabularnewline
M6 & 10.8922557934878 & 10.266769 & 1.0609 & 0.291917 & 0.145959 \tabularnewline
M7 & 9.30475579348785 & 10.266769 & 0.9063 & 0.3675 & 0.18375 \tabularnewline
M8 & 8.83804634790263 & 10.310939 & 0.8572 & 0.393921 & 0.196961 \tabularnewline
M9 & 10.3255463479026 & 10.310939 & 1.0014 & 0.319645 & 0.159822 \tabularnewline
M10 & -5.41428571428569 & 10.602748 & -0.5106 & 0.611003 & 0.305501 \tabularnewline
M11 & -1.11428571428569 & 10.602748 & -0.1051 & 0.916564 & 0.458282 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4066&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]108.461953652097[/C][C]7.558603[/C][C]14.3495[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Fluctuatie[/C][C]51.4663244353184[/C][C]6.726389[/C][C]7.6514[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.0077442065121429[/C][C]10.266769[/C][C]-8e-04[/C][C]0.9994[/C][C]0.4997[/C][/ROW]
[ROW][C]M2[/C][C]1.80475579348780[/C][C]10.266769[/C][C]0.1758[/C][C]0.860906[/C][C]0.430453[/C][/ROW]
[ROW][C]M3[/C][C]7.06725579348783[/C][C]10.266769[/C][C]0.6884[/C][C]0.493216[/C][C]0.246608[/C][/ROW]
[ROW][C]M4[/C][C]7.41725579348786[/C][C]10.266769[/C][C]0.7225[/C][C]0.472123[/C][C]0.236061[/C][/ROW]
[ROW][C]M5[/C][C]10.0672557934878[/C][C]10.266769[/C][C]0.9806[/C][C]0.329762[/C][C]0.164881[/C][/ROW]
[ROW][C]M6[/C][C]10.8922557934878[/C][C]10.266769[/C][C]1.0609[/C][C]0.291917[/C][C]0.145959[/C][/ROW]
[ROW][C]M7[/C][C]9.30475579348785[/C][C]10.266769[/C][C]0.9063[/C][C]0.3675[/C][C]0.18375[/C][/ROW]
[ROW][C]M8[/C][C]8.83804634790263[/C][C]10.310939[/C][C]0.8572[/C][C]0.393921[/C][C]0.196961[/C][/ROW]
[ROW][C]M9[/C][C]10.3255463479026[/C][C]10.310939[/C][C]1.0014[/C][C]0.319645[/C][C]0.159822[/C][/ROW]
[ROW][C]M10[/C][C]-5.41428571428569[/C][C]10.602748[/C][C]-0.5106[/C][C]0.611003[/C][C]0.305501[/C][/ROW]
[ROW][C]M11[/C][C]-1.11428571428569[/C][C]10.602748[/C][C]-0.1051[/C][C]0.916564[/C][C]0.458282[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4066&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4066&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)108.4619536520977.55860314.349500
Fluctuatie51.46632443531846.7263897.651400
M1-0.007744206512142910.266769-8e-040.99940.4997
M21.8047557934878010.2667690.17580.8609060.430453
M37.0672557934878310.2667690.68840.4932160.246608
M47.4172557934878610.2667690.72250.4721230.236061
M510.067255793487810.2667690.98060.3297620.164881
M610.892255793487810.2667691.06090.2919170.145959
M79.3047557934878510.2667690.90630.36750.18375
M88.8380463479026310.3109390.85720.3939210.196961
M910.325546347902610.3109391.00140.3196450.159822
M10-5.4142857142856910.602748-0.51060.6110030.305501
M11-1.1142857142856910.602748-0.10510.9165640.458282







Multiple Linear Regression - Regression Statistics
Multiple R0.665170802242955
R-squared0.442452196156536
Adjusted R-squared0.358820025580017
F-TEST (value)5.29045453569465
F-TEST (DF numerator)12
F-TEST (DF denominator)80
p-value1.72666663089682e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.8359247378468
Sum Squared Residuals31477.1128164418

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.665170802242955 \tabularnewline
R-squared & 0.442452196156536 \tabularnewline
Adjusted R-squared & 0.358820025580017 \tabularnewline
F-TEST (value) & 5.29045453569465 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 80 \tabularnewline
p-value & 1.72666663089682e-06 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19.8359247378468 \tabularnewline
Sum Squared Residuals & 31477.1128164418 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4066&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.665170802242955[/C][/ROW]
[ROW][C]R-squared[/C][C]0.442452196156536[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.358820025580017[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.29045453569465[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]80[/C][/ROW]
[ROW][C]p-value[/C][C]1.72666663089682e-06[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19.8359247378468[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]31477.1128164418[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4066&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4066&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.665170802242955
R-squared0.442452196156536
Adjusted R-squared0.358820025580017
F-TEST (value)5.29045453569465
F-TEST (DF numerator)12
F-TEST (DF denominator)80
p-value1.72666663089682e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.8359247378468
Sum Squared Residuals31477.1128164418







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.5108.454209445585-8.95420944558508
2101.6110.266709445586-8.66670944558562
3103.9115.529209445585-11.6292094455852
4106.6115.879209445585-9.27920944558523
5108.3118.529209445585-10.2292094455852
6102119.354209445585-17.3542094455853
793.8117.766709445585-23.9667094455852
891.6117.3-25.7
997.7118.7875-21.0875000000000
1094.8103.047667937812-8.24766793781169
1198107.347667937812-9.34766793781168
12103.8108.461953652097-4.66195365209737
1397.8108.454209445585-10.6542094455852
1491.2110.266709445585-19.0667094455852
1589.3115.529209445585-26.2292094455852
1687.5115.879209445585-28.3792094455852
1790.4118.529209445585-28.1292094455852
1894.2119.354209445585-25.1542094455852
19102.2117.766709445585-15.5667094455852
20101.3117.3-16
2196118.7875-22.7875
2290.8103.047667937812-12.2476679378117
2393.2107.347667937812-14.1476679378117
2490.9108.461953652097-17.5619536520974
2591.1108.454209445585-17.3542094455852
2690.2110.266709445585-20.0667094455852
2794.3115.529209445585-21.2292094455852
2896115.879209445585-19.8792094455852
2999118.529209445585-19.5292094455852
30103.3119.354209445585-16.0542094455852
31113.1117.766709445585-4.66670944558523
32112.8117.3-4.5
33112.1118.7875-6.6875
34107.4103.0476679378124.35233206218833
35111107.3476679378123.65233206218832
36110.5108.4619536520972.03804634790263
37110.8108.4542094455852.34579055441477
38112.4110.2667094455852.13329055441485
39111.5115.529209445585-4.02920944558522
40116.2115.8792094455850.320790554414797
41122.5118.5292094455853.97079055441477
42121.3119.3542094455851.94579055441478
43113.9117.766709445585-3.86670944558522
44110.7117.3-6.59999999999999
45120.8118.78752.01250000000000
46141.1154.51399237313-13.4139923731299
47147.4158.81399237313-11.4139923731299
48148159.928278087416-11.9282780874156
49158.1159.920533880904-1.82053388090351
50165161.7330338809033.26696611909656
51187166.99553388090420.0044661190965
52190.3167.34553388090322.9544661190965
53182.4169.99553388090412.4044661190965
54168.8170.820533880903-2.02053388090348
55151.2169.233033880904-18.0330338809035
56120.1117.32.80000000000000
57112.5118.7875-6.2875
58106.2103.0476679378123.15233206218833
59107.1107.347667937812-0.247667937811685
60108.5108.4619536520970.0380463479026356
61106.5108.454209445585-1.95420944558523
62108.3110.266709445585-1.96670944558516
63125.6115.52920944558510.0707905544148
64124115.8792094455858.1207905544148
65127.2118.5292094455858.67079055441478
66136.9119.35420944558517.5457905544148
67135.8117.76670944558518.0332905544148
68124.3117.37
69115.4118.7875-3.38749999999999
70113.6103.04766793781210.5523320621883
71114.4107.3476679378127.05233206218833
72118.4108.4619536520979.93804634790264
73117108.4542094455858.54579055441477
74116.5110.2667094455856.23329055441484
75115.4115.529209445585-0.129209445585217
76113.6115.879209445585-2.27920944558521
77117.4118.529209445585-1.12920944558522
78116.9119.354209445585-2.45420944558521
79116.4117.766709445585-1.36670944558522
80111.1117.3-6.2
81110.2118.7875-8.5875
82118.9103.04766793781215.8523320621883
83131.8107.34766793781224.4523320621883
84130.6108.46195365209722.1380463479026
85138.3108.45420944558529.8457905544148
86148.4110.26670944558538.1332905544148
87148.7115.52920944558533.1707905544148
88144.3115.87920944558528.4207905544148
89152.5118.52920944558533.9707905544148
90162.9119.35420944558543.5457905544148
91167.2117.76670944558549.4332905544148
92166.5117.349.2
93185.6118.787566.8125

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.5 & 108.454209445585 & -8.95420944558508 \tabularnewline
2 & 101.6 & 110.266709445586 & -8.66670944558562 \tabularnewline
3 & 103.9 & 115.529209445585 & -11.6292094455852 \tabularnewline
4 & 106.6 & 115.879209445585 & -9.27920944558523 \tabularnewline
5 & 108.3 & 118.529209445585 & -10.2292094455852 \tabularnewline
6 & 102 & 119.354209445585 & -17.3542094455853 \tabularnewline
7 & 93.8 & 117.766709445585 & -23.9667094455852 \tabularnewline
8 & 91.6 & 117.3 & -25.7 \tabularnewline
9 & 97.7 & 118.7875 & -21.0875000000000 \tabularnewline
10 & 94.8 & 103.047667937812 & -8.24766793781169 \tabularnewline
11 & 98 & 107.347667937812 & -9.34766793781168 \tabularnewline
12 & 103.8 & 108.461953652097 & -4.66195365209737 \tabularnewline
13 & 97.8 & 108.454209445585 & -10.6542094455852 \tabularnewline
14 & 91.2 & 110.266709445585 & -19.0667094455852 \tabularnewline
15 & 89.3 & 115.529209445585 & -26.2292094455852 \tabularnewline
16 & 87.5 & 115.879209445585 & -28.3792094455852 \tabularnewline
17 & 90.4 & 118.529209445585 & -28.1292094455852 \tabularnewline
18 & 94.2 & 119.354209445585 & -25.1542094455852 \tabularnewline
19 & 102.2 & 117.766709445585 & -15.5667094455852 \tabularnewline
20 & 101.3 & 117.3 & -16 \tabularnewline
21 & 96 & 118.7875 & -22.7875 \tabularnewline
22 & 90.8 & 103.047667937812 & -12.2476679378117 \tabularnewline
23 & 93.2 & 107.347667937812 & -14.1476679378117 \tabularnewline
24 & 90.9 & 108.461953652097 & -17.5619536520974 \tabularnewline
25 & 91.1 & 108.454209445585 & -17.3542094455852 \tabularnewline
26 & 90.2 & 110.266709445585 & -20.0667094455852 \tabularnewline
27 & 94.3 & 115.529209445585 & -21.2292094455852 \tabularnewline
28 & 96 & 115.879209445585 & -19.8792094455852 \tabularnewline
29 & 99 & 118.529209445585 & -19.5292094455852 \tabularnewline
30 & 103.3 & 119.354209445585 & -16.0542094455852 \tabularnewline
31 & 113.1 & 117.766709445585 & -4.66670944558523 \tabularnewline
32 & 112.8 & 117.3 & -4.5 \tabularnewline
33 & 112.1 & 118.7875 & -6.6875 \tabularnewline
34 & 107.4 & 103.047667937812 & 4.35233206218833 \tabularnewline
35 & 111 & 107.347667937812 & 3.65233206218832 \tabularnewline
36 & 110.5 & 108.461953652097 & 2.03804634790263 \tabularnewline
37 & 110.8 & 108.454209445585 & 2.34579055441477 \tabularnewline
38 & 112.4 & 110.266709445585 & 2.13329055441485 \tabularnewline
39 & 111.5 & 115.529209445585 & -4.02920944558522 \tabularnewline
40 & 116.2 & 115.879209445585 & 0.320790554414797 \tabularnewline
41 & 122.5 & 118.529209445585 & 3.97079055441477 \tabularnewline
42 & 121.3 & 119.354209445585 & 1.94579055441478 \tabularnewline
43 & 113.9 & 117.766709445585 & -3.86670944558522 \tabularnewline
44 & 110.7 & 117.3 & -6.59999999999999 \tabularnewline
45 & 120.8 & 118.7875 & 2.01250000000000 \tabularnewline
46 & 141.1 & 154.51399237313 & -13.4139923731299 \tabularnewline
47 & 147.4 & 158.81399237313 & -11.4139923731299 \tabularnewline
48 & 148 & 159.928278087416 & -11.9282780874156 \tabularnewline
49 & 158.1 & 159.920533880904 & -1.82053388090351 \tabularnewline
50 & 165 & 161.733033880903 & 3.26696611909656 \tabularnewline
51 & 187 & 166.995533880904 & 20.0044661190965 \tabularnewline
52 & 190.3 & 167.345533880903 & 22.9544661190965 \tabularnewline
53 & 182.4 & 169.995533880904 & 12.4044661190965 \tabularnewline
54 & 168.8 & 170.820533880903 & -2.02053388090348 \tabularnewline
55 & 151.2 & 169.233033880904 & -18.0330338809035 \tabularnewline
56 & 120.1 & 117.3 & 2.80000000000000 \tabularnewline
57 & 112.5 & 118.7875 & -6.2875 \tabularnewline
58 & 106.2 & 103.047667937812 & 3.15233206218833 \tabularnewline
59 & 107.1 & 107.347667937812 & -0.247667937811685 \tabularnewline
60 & 108.5 & 108.461953652097 & 0.0380463479026356 \tabularnewline
61 & 106.5 & 108.454209445585 & -1.95420944558523 \tabularnewline
62 & 108.3 & 110.266709445585 & -1.96670944558516 \tabularnewline
63 & 125.6 & 115.529209445585 & 10.0707905544148 \tabularnewline
64 & 124 & 115.879209445585 & 8.1207905544148 \tabularnewline
65 & 127.2 & 118.529209445585 & 8.67079055441478 \tabularnewline
66 & 136.9 & 119.354209445585 & 17.5457905544148 \tabularnewline
67 & 135.8 & 117.766709445585 & 18.0332905544148 \tabularnewline
68 & 124.3 & 117.3 & 7 \tabularnewline
69 & 115.4 & 118.7875 & -3.38749999999999 \tabularnewline
70 & 113.6 & 103.047667937812 & 10.5523320621883 \tabularnewline
71 & 114.4 & 107.347667937812 & 7.05233206218833 \tabularnewline
72 & 118.4 & 108.461953652097 & 9.93804634790264 \tabularnewline
73 & 117 & 108.454209445585 & 8.54579055441477 \tabularnewline
74 & 116.5 & 110.266709445585 & 6.23329055441484 \tabularnewline
75 & 115.4 & 115.529209445585 & -0.129209445585217 \tabularnewline
76 & 113.6 & 115.879209445585 & -2.27920944558521 \tabularnewline
77 & 117.4 & 118.529209445585 & -1.12920944558522 \tabularnewline
78 & 116.9 & 119.354209445585 & -2.45420944558521 \tabularnewline
79 & 116.4 & 117.766709445585 & -1.36670944558522 \tabularnewline
80 & 111.1 & 117.3 & -6.2 \tabularnewline
81 & 110.2 & 118.7875 & -8.5875 \tabularnewline
82 & 118.9 & 103.047667937812 & 15.8523320621883 \tabularnewline
83 & 131.8 & 107.347667937812 & 24.4523320621883 \tabularnewline
84 & 130.6 & 108.461953652097 & 22.1380463479026 \tabularnewline
85 & 138.3 & 108.454209445585 & 29.8457905544148 \tabularnewline
86 & 148.4 & 110.266709445585 & 38.1332905544148 \tabularnewline
87 & 148.7 & 115.529209445585 & 33.1707905544148 \tabularnewline
88 & 144.3 & 115.879209445585 & 28.4207905544148 \tabularnewline
89 & 152.5 & 118.529209445585 & 33.9707905544148 \tabularnewline
90 & 162.9 & 119.354209445585 & 43.5457905544148 \tabularnewline
91 & 167.2 & 117.766709445585 & 49.4332905544148 \tabularnewline
92 & 166.5 & 117.3 & 49.2 \tabularnewline
93 & 185.6 & 118.7875 & 66.8125 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4066&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]99.5[/C][C]108.454209445585[/C][C]-8.95420944558508[/C][/ROW]
[ROW][C]2[/C][C]101.6[/C][C]110.266709445586[/C][C]-8.66670944558562[/C][/ROW]
[ROW][C]3[/C][C]103.9[/C][C]115.529209445585[/C][C]-11.6292094455852[/C][/ROW]
[ROW][C]4[/C][C]106.6[/C][C]115.879209445585[/C][C]-9.27920944558523[/C][/ROW]
[ROW][C]5[/C][C]108.3[/C][C]118.529209445585[/C][C]-10.2292094455852[/C][/ROW]
[ROW][C]6[/C][C]102[/C][C]119.354209445585[/C][C]-17.3542094455853[/C][/ROW]
[ROW][C]7[/C][C]93.8[/C][C]117.766709445585[/C][C]-23.9667094455852[/C][/ROW]
[ROW][C]8[/C][C]91.6[/C][C]117.3[/C][C]-25.7[/C][/ROW]
[ROW][C]9[/C][C]97.7[/C][C]118.7875[/C][C]-21.0875000000000[/C][/ROW]
[ROW][C]10[/C][C]94.8[/C][C]103.047667937812[/C][C]-8.24766793781169[/C][/ROW]
[ROW][C]11[/C][C]98[/C][C]107.347667937812[/C][C]-9.34766793781168[/C][/ROW]
[ROW][C]12[/C][C]103.8[/C][C]108.461953652097[/C][C]-4.66195365209737[/C][/ROW]
[ROW][C]13[/C][C]97.8[/C][C]108.454209445585[/C][C]-10.6542094455852[/C][/ROW]
[ROW][C]14[/C][C]91.2[/C][C]110.266709445585[/C][C]-19.0667094455852[/C][/ROW]
[ROW][C]15[/C][C]89.3[/C][C]115.529209445585[/C][C]-26.2292094455852[/C][/ROW]
[ROW][C]16[/C][C]87.5[/C][C]115.879209445585[/C][C]-28.3792094455852[/C][/ROW]
[ROW][C]17[/C][C]90.4[/C][C]118.529209445585[/C][C]-28.1292094455852[/C][/ROW]
[ROW][C]18[/C][C]94.2[/C][C]119.354209445585[/C][C]-25.1542094455852[/C][/ROW]
[ROW][C]19[/C][C]102.2[/C][C]117.766709445585[/C][C]-15.5667094455852[/C][/ROW]
[ROW][C]20[/C][C]101.3[/C][C]117.3[/C][C]-16[/C][/ROW]
[ROW][C]21[/C][C]96[/C][C]118.7875[/C][C]-22.7875[/C][/ROW]
[ROW][C]22[/C][C]90.8[/C][C]103.047667937812[/C][C]-12.2476679378117[/C][/ROW]
[ROW][C]23[/C][C]93.2[/C][C]107.347667937812[/C][C]-14.1476679378117[/C][/ROW]
[ROW][C]24[/C][C]90.9[/C][C]108.461953652097[/C][C]-17.5619536520974[/C][/ROW]
[ROW][C]25[/C][C]91.1[/C][C]108.454209445585[/C][C]-17.3542094455852[/C][/ROW]
[ROW][C]26[/C][C]90.2[/C][C]110.266709445585[/C][C]-20.0667094455852[/C][/ROW]
[ROW][C]27[/C][C]94.3[/C][C]115.529209445585[/C][C]-21.2292094455852[/C][/ROW]
[ROW][C]28[/C][C]96[/C][C]115.879209445585[/C][C]-19.8792094455852[/C][/ROW]
[ROW][C]29[/C][C]99[/C][C]118.529209445585[/C][C]-19.5292094455852[/C][/ROW]
[ROW][C]30[/C][C]103.3[/C][C]119.354209445585[/C][C]-16.0542094455852[/C][/ROW]
[ROW][C]31[/C][C]113.1[/C][C]117.766709445585[/C][C]-4.66670944558523[/C][/ROW]
[ROW][C]32[/C][C]112.8[/C][C]117.3[/C][C]-4.5[/C][/ROW]
[ROW][C]33[/C][C]112.1[/C][C]118.7875[/C][C]-6.6875[/C][/ROW]
[ROW][C]34[/C][C]107.4[/C][C]103.047667937812[/C][C]4.35233206218833[/C][/ROW]
[ROW][C]35[/C][C]111[/C][C]107.347667937812[/C][C]3.65233206218832[/C][/ROW]
[ROW][C]36[/C][C]110.5[/C][C]108.461953652097[/C][C]2.03804634790263[/C][/ROW]
[ROW][C]37[/C][C]110.8[/C][C]108.454209445585[/C][C]2.34579055441477[/C][/ROW]
[ROW][C]38[/C][C]112.4[/C][C]110.266709445585[/C][C]2.13329055441485[/C][/ROW]
[ROW][C]39[/C][C]111.5[/C][C]115.529209445585[/C][C]-4.02920944558522[/C][/ROW]
[ROW][C]40[/C][C]116.2[/C][C]115.879209445585[/C][C]0.320790554414797[/C][/ROW]
[ROW][C]41[/C][C]122.5[/C][C]118.529209445585[/C][C]3.97079055441477[/C][/ROW]
[ROW][C]42[/C][C]121.3[/C][C]119.354209445585[/C][C]1.94579055441478[/C][/ROW]
[ROW][C]43[/C][C]113.9[/C][C]117.766709445585[/C][C]-3.86670944558522[/C][/ROW]
[ROW][C]44[/C][C]110.7[/C][C]117.3[/C][C]-6.59999999999999[/C][/ROW]
[ROW][C]45[/C][C]120.8[/C][C]118.7875[/C][C]2.01250000000000[/C][/ROW]
[ROW][C]46[/C][C]141.1[/C][C]154.51399237313[/C][C]-13.4139923731299[/C][/ROW]
[ROW][C]47[/C][C]147.4[/C][C]158.81399237313[/C][C]-11.4139923731299[/C][/ROW]
[ROW][C]48[/C][C]148[/C][C]159.928278087416[/C][C]-11.9282780874156[/C][/ROW]
[ROW][C]49[/C][C]158.1[/C][C]159.920533880904[/C][C]-1.82053388090351[/C][/ROW]
[ROW][C]50[/C][C]165[/C][C]161.733033880903[/C][C]3.26696611909656[/C][/ROW]
[ROW][C]51[/C][C]187[/C][C]166.995533880904[/C][C]20.0044661190965[/C][/ROW]
[ROW][C]52[/C][C]190.3[/C][C]167.345533880903[/C][C]22.9544661190965[/C][/ROW]
[ROW][C]53[/C][C]182.4[/C][C]169.995533880904[/C][C]12.4044661190965[/C][/ROW]
[ROW][C]54[/C][C]168.8[/C][C]170.820533880903[/C][C]-2.02053388090348[/C][/ROW]
[ROW][C]55[/C][C]151.2[/C][C]169.233033880904[/C][C]-18.0330338809035[/C][/ROW]
[ROW][C]56[/C][C]120.1[/C][C]117.3[/C][C]2.80000000000000[/C][/ROW]
[ROW][C]57[/C][C]112.5[/C][C]118.7875[/C][C]-6.2875[/C][/ROW]
[ROW][C]58[/C][C]106.2[/C][C]103.047667937812[/C][C]3.15233206218833[/C][/ROW]
[ROW][C]59[/C][C]107.1[/C][C]107.347667937812[/C][C]-0.247667937811685[/C][/ROW]
[ROW][C]60[/C][C]108.5[/C][C]108.461953652097[/C][C]0.0380463479026356[/C][/ROW]
[ROW][C]61[/C][C]106.5[/C][C]108.454209445585[/C][C]-1.95420944558523[/C][/ROW]
[ROW][C]62[/C][C]108.3[/C][C]110.266709445585[/C][C]-1.96670944558516[/C][/ROW]
[ROW][C]63[/C][C]125.6[/C][C]115.529209445585[/C][C]10.0707905544148[/C][/ROW]
[ROW][C]64[/C][C]124[/C][C]115.879209445585[/C][C]8.1207905544148[/C][/ROW]
[ROW][C]65[/C][C]127.2[/C][C]118.529209445585[/C][C]8.67079055441478[/C][/ROW]
[ROW][C]66[/C][C]136.9[/C][C]119.354209445585[/C][C]17.5457905544148[/C][/ROW]
[ROW][C]67[/C][C]135.8[/C][C]117.766709445585[/C][C]18.0332905544148[/C][/ROW]
[ROW][C]68[/C][C]124.3[/C][C]117.3[/C][C]7[/C][/ROW]
[ROW][C]69[/C][C]115.4[/C][C]118.7875[/C][C]-3.38749999999999[/C][/ROW]
[ROW][C]70[/C][C]113.6[/C][C]103.047667937812[/C][C]10.5523320621883[/C][/ROW]
[ROW][C]71[/C][C]114.4[/C][C]107.347667937812[/C][C]7.05233206218833[/C][/ROW]
[ROW][C]72[/C][C]118.4[/C][C]108.461953652097[/C][C]9.93804634790264[/C][/ROW]
[ROW][C]73[/C][C]117[/C][C]108.454209445585[/C][C]8.54579055441477[/C][/ROW]
[ROW][C]74[/C][C]116.5[/C][C]110.266709445585[/C][C]6.23329055441484[/C][/ROW]
[ROW][C]75[/C][C]115.4[/C][C]115.529209445585[/C][C]-0.129209445585217[/C][/ROW]
[ROW][C]76[/C][C]113.6[/C][C]115.879209445585[/C][C]-2.27920944558521[/C][/ROW]
[ROW][C]77[/C][C]117.4[/C][C]118.529209445585[/C][C]-1.12920944558522[/C][/ROW]
[ROW][C]78[/C][C]116.9[/C][C]119.354209445585[/C][C]-2.45420944558521[/C][/ROW]
[ROW][C]79[/C][C]116.4[/C][C]117.766709445585[/C][C]-1.36670944558522[/C][/ROW]
[ROW][C]80[/C][C]111.1[/C][C]117.3[/C][C]-6.2[/C][/ROW]
[ROW][C]81[/C][C]110.2[/C][C]118.7875[/C][C]-8.5875[/C][/ROW]
[ROW][C]82[/C][C]118.9[/C][C]103.047667937812[/C][C]15.8523320621883[/C][/ROW]
[ROW][C]83[/C][C]131.8[/C][C]107.347667937812[/C][C]24.4523320621883[/C][/ROW]
[ROW][C]84[/C][C]130.6[/C][C]108.461953652097[/C][C]22.1380463479026[/C][/ROW]
[ROW][C]85[/C][C]138.3[/C][C]108.454209445585[/C][C]29.8457905544148[/C][/ROW]
[ROW][C]86[/C][C]148.4[/C][C]110.266709445585[/C][C]38.1332905544148[/C][/ROW]
[ROW][C]87[/C][C]148.7[/C][C]115.529209445585[/C][C]33.1707905544148[/C][/ROW]
[ROW][C]88[/C][C]144.3[/C][C]115.879209445585[/C][C]28.4207905544148[/C][/ROW]
[ROW][C]89[/C][C]152.5[/C][C]118.529209445585[/C][C]33.9707905544148[/C][/ROW]
[ROW][C]90[/C][C]162.9[/C][C]119.354209445585[/C][C]43.5457905544148[/C][/ROW]
[ROW][C]91[/C][C]167.2[/C][C]117.766709445585[/C][C]49.4332905544148[/C][/ROW]
[ROW][C]92[/C][C]166.5[/C][C]117.3[/C][C]49.2[/C][/ROW]
[ROW][C]93[/C][C]185.6[/C][C]118.7875[/C][C]66.8125[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4066&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4066&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
199.5108.454209445585-8.95420944558508
2101.6110.266709445586-8.66670944558562
3103.9115.529209445585-11.6292094455852
4106.6115.879209445585-9.27920944558523
5108.3118.529209445585-10.2292094455852
6102119.354209445585-17.3542094455853
793.8117.766709445585-23.9667094455852
891.6117.3-25.7
997.7118.7875-21.0875000000000
1094.8103.047667937812-8.24766793781169
1198107.347667937812-9.34766793781168
12103.8108.461953652097-4.66195365209737
1397.8108.454209445585-10.6542094455852
1491.2110.266709445585-19.0667094455852
1589.3115.529209445585-26.2292094455852
1687.5115.879209445585-28.3792094455852
1790.4118.529209445585-28.1292094455852
1894.2119.354209445585-25.1542094455852
19102.2117.766709445585-15.5667094455852
20101.3117.3-16
2196118.7875-22.7875
2290.8103.047667937812-12.2476679378117
2393.2107.347667937812-14.1476679378117
2490.9108.461953652097-17.5619536520974
2591.1108.454209445585-17.3542094455852
2690.2110.266709445585-20.0667094455852
2794.3115.529209445585-21.2292094455852
2896115.879209445585-19.8792094455852
2999118.529209445585-19.5292094455852
30103.3119.354209445585-16.0542094455852
31113.1117.766709445585-4.66670944558523
32112.8117.3-4.5
33112.1118.7875-6.6875
34107.4103.0476679378124.35233206218833
35111107.3476679378123.65233206218832
36110.5108.4619536520972.03804634790263
37110.8108.4542094455852.34579055441477
38112.4110.2667094455852.13329055441485
39111.5115.529209445585-4.02920944558522
40116.2115.8792094455850.320790554414797
41122.5118.5292094455853.97079055441477
42121.3119.3542094455851.94579055441478
43113.9117.766709445585-3.86670944558522
44110.7117.3-6.59999999999999
45120.8118.78752.01250000000000
46141.1154.51399237313-13.4139923731299
47147.4158.81399237313-11.4139923731299
48148159.928278087416-11.9282780874156
49158.1159.920533880904-1.82053388090351
50165161.7330338809033.26696611909656
51187166.99553388090420.0044661190965
52190.3167.34553388090322.9544661190965
53182.4169.99553388090412.4044661190965
54168.8170.820533880903-2.02053388090348
55151.2169.233033880904-18.0330338809035
56120.1117.32.80000000000000
57112.5118.7875-6.2875
58106.2103.0476679378123.15233206218833
59107.1107.347667937812-0.247667937811685
60108.5108.4619536520970.0380463479026356
61106.5108.454209445585-1.95420944558523
62108.3110.266709445585-1.96670944558516
63125.6115.52920944558510.0707905544148
64124115.8792094455858.1207905544148
65127.2118.5292094455858.67079055441478
66136.9119.35420944558517.5457905544148
67135.8117.76670944558518.0332905544148
68124.3117.37
69115.4118.7875-3.38749999999999
70113.6103.04766793781210.5523320621883
71114.4107.3476679378127.05233206218833
72118.4108.4619536520979.93804634790264
73117108.4542094455858.54579055441477
74116.5110.2667094455856.23329055441484
75115.4115.529209445585-0.129209445585217
76113.6115.879209445585-2.27920944558521
77117.4118.529209445585-1.12920944558522
78116.9119.354209445585-2.45420944558521
79116.4117.766709445585-1.36670944558522
80111.1117.3-6.2
81110.2118.7875-8.5875
82118.9103.04766793781215.8523320621883
83131.8107.34766793781224.4523320621883
84130.6108.46195365209722.1380463479026
85138.3108.45420944558529.8457905544148
86148.4110.26670944558538.1332905544148
87148.7115.52920944558533.1707905544148
88144.3115.87920944558528.4207905544148
89152.5118.52920944558533.9707905544148
90162.9119.35420944558543.5457905544148
91167.2117.76670944558549.4332905544148
92166.5117.349.2
93185.6118.787566.8125



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