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 16:01:19 -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/t1195512847yefglvh101me9d4.htm/, Retrieved Fri, 03 May 2024 04:08:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5792, Retrieved Fri, 03 May 2024 04:08:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact179
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2007-11-19 23:01:19] [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	1
112.5	1
106.2	1
107.1	1
108.5	1
106.5	1
108.3	1
125.6	1
124	1
127.2	1
136.9	1
135.8	1
124.3	1
115.4	1
113.6	1
114.4	1
118.4	1
117	1
116.5	1
115.4	1
113.6	1
117.4	1
116.9	1
116.4	1
111.1	1
110.2	1
118.9	1
131.8	1
130.6	1
138.3	1
148.4	1
148.7	1
144.3	1
152.5	1
162.9	1
167.2	1
166.5	1
185.6	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=5792&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=5792&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 96.973721340388 + 32.970987654321x[t] + 1.42828483245152M1[t] + 3.24078483245151M2[t] + 8.5032848324515M3[t] + 8.8532848324515M4[t] + 11.5032848324515M5[t] + 12.3282848324515M6[t] + 10.7407848324515M7[t] + 3.8407848324515M8[t] + 5.3282848324515M9[t] -5.41428571428571M10[t] -1.11428571428571M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  96.973721340388 +  32.970987654321x[t] +  1.42828483245152M1[t] +  3.24078483245151M2[t] +  8.5032848324515M3[t] +  8.8532848324515M4[t] +  11.5032848324515M5[t] +  12.3282848324515M6[t] +  10.7407848324515M7[t] +  3.8407848324515M8[t] +  5.3282848324515M9[t] -5.41428571428571M10[t] -1.11428571428571M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5792&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  96.973721340388 +  32.970987654321x[t] +  1.42828483245152M1[t] +  3.24078483245151M2[t] +  8.5032848324515M3[t] +  8.8532848324515M4[t] +  11.5032848324515M5[t] +  12.3282848324515M6[t] +  10.7407848324515M7[t] +  3.8407848324515M8[t] +  5.3282848324515M9[t] -5.41428571428571M10[t] -1.11428571428571M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5792&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 96.973721340388 + 32.970987654321x[t] + 1.42828483245152M1[t] + 3.24078483245151M2[t] + 8.5032848324515M3[t] + 8.8532848324515M4[t] + 11.5032848324515M5[t] + 12.3282848324515M6[t] + 10.7407848324515M7[t] + 3.8407848324515M8[t] + 5.3282848324515M9[t] -5.41428571428571M10[t] -1.11428571428571M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)96.9737213403887.58910412.77800
x32.9709876543213.9817928.280400
M11.428284832451529.9178450.1440.8858530.442927
M23.240784832451519.9178450.32680.7447010.37235
M38.50328483245159.9178450.85740.39380.1969
M48.85328483245159.9178450.89270.3747150.187358
M511.50328483245159.9178451.15990.2495570.124778
M612.32828483245159.9178451.2430.2174840.108742
M710.74078483245159.9178451.0830.2820730.141036
M83.84078483245159.9178450.38730.6995920.349796
M95.32828483245159.9178450.53720.5925920.296296
M10-5.4142857142857110.238894-0.52880.5984110.299206
M11-1.1142857142857110.238894-0.10880.9136110.456805

\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) & 96.973721340388 & 7.589104 & 12.778 & 0 & 0 \tabularnewline
x & 32.970987654321 & 3.981792 & 8.2804 & 0 & 0 \tabularnewline
M1 & 1.42828483245152 & 9.917845 & 0.144 & 0.885853 & 0.442927 \tabularnewline
M2 & 3.24078483245151 & 9.917845 & 0.3268 & 0.744701 & 0.37235 \tabularnewline
M3 & 8.5032848324515 & 9.917845 & 0.8574 & 0.3938 & 0.1969 \tabularnewline
M4 & 8.8532848324515 & 9.917845 & 0.8927 & 0.374715 & 0.187358 \tabularnewline
M5 & 11.5032848324515 & 9.917845 & 1.1599 & 0.249557 & 0.124778 \tabularnewline
M6 & 12.3282848324515 & 9.917845 & 1.243 & 0.217484 & 0.108742 \tabularnewline
M7 & 10.7407848324515 & 9.917845 & 1.083 & 0.282073 & 0.141036 \tabularnewline
M8 & 3.8407848324515 & 9.917845 & 0.3873 & 0.699592 & 0.349796 \tabularnewline
M9 & 5.3282848324515 & 9.917845 & 0.5372 & 0.592592 & 0.296296 \tabularnewline
M10 & -5.41428571428571 & 10.238894 & -0.5288 & 0.598411 & 0.299206 \tabularnewline
M11 & -1.11428571428571 & 10.238894 & -0.1088 & 0.913611 & 0.456805 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5792&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]96.973721340388[/C][C]7.589104[/C][C]12.778[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]32.970987654321[/C][C]3.981792[/C][C]8.2804[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]1.42828483245152[/C][C]9.917845[/C][C]0.144[/C][C]0.885853[/C][C]0.442927[/C][/ROW]
[ROW][C]M2[/C][C]3.24078483245151[/C][C]9.917845[/C][C]0.3268[/C][C]0.744701[/C][C]0.37235[/C][/ROW]
[ROW][C]M3[/C][C]8.5032848324515[/C][C]9.917845[/C][C]0.8574[/C][C]0.3938[/C][C]0.1969[/C][/ROW]
[ROW][C]M4[/C][C]8.8532848324515[/C][C]9.917845[/C][C]0.8927[/C][C]0.374715[/C][C]0.187358[/C][/ROW]
[ROW][C]M5[/C][C]11.5032848324515[/C][C]9.917845[/C][C]1.1599[/C][C]0.249557[/C][C]0.124778[/C][/ROW]
[ROW][C]M6[/C][C]12.3282848324515[/C][C]9.917845[/C][C]1.243[/C][C]0.217484[/C][C]0.108742[/C][/ROW]
[ROW][C]M7[/C][C]10.7407848324515[/C][C]9.917845[/C][C]1.083[/C][C]0.282073[/C][C]0.141036[/C][/ROW]
[ROW][C]M8[/C][C]3.8407848324515[/C][C]9.917845[/C][C]0.3873[/C][C]0.699592[/C][C]0.349796[/C][/ROW]
[ROW][C]M9[/C][C]5.3282848324515[/C][C]9.917845[/C][C]0.5372[/C][C]0.592592[/C][C]0.296296[/C][/ROW]
[ROW][C]M10[/C][C]-5.41428571428571[/C][C]10.238894[/C][C]-0.5288[/C][C]0.598411[/C][C]0.299206[/C][/ROW]
[ROW][C]M11[/C][C]-1.11428571428571[/C][C]10.238894[/C][C]-0.1088[/C][C]0.913611[/C][C]0.456805[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5792&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5792&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)96.9737213403887.58910412.77800
x32.9709876543213.9817928.280400
M11.428284832451529.9178450.1440.8858530.442927
M23.240784832451519.9178450.32680.7447010.37235
M38.50328483245159.9178450.85740.39380.1969
M48.85328483245159.9178450.89270.3747150.187358
M511.50328483245159.9178451.15990.2495570.124778
M612.32828483245159.9178451.2430.2174840.108742
M710.74078483245159.9178451.0830.2820730.141036
M83.84078483245159.9178450.38730.6995920.349796
M95.32828483245159.9178450.53720.5925920.296296
M10-5.4142857142857110.238894-0.52880.5984110.299206
M11-1.1142857142857110.238894-0.10880.9136110.456805







Multiple Linear Regression - Regression Statistics
Multiple R0.692865273240383
R-squared0.480062286862471
Adjusted R-squared0.402071629891841
F-TEST (value)6.15538200996637
F-TEST (DF numerator)12
F-TEST (DF denominator)80
p-value1.55241826504948e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.1552161462791
Sum Squared Residuals29353.7844488536

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.692865273240383 \tabularnewline
R-squared & 0.480062286862471 \tabularnewline
Adjusted R-squared & 0.402071629891841 \tabularnewline
F-TEST (value) & 6.15538200996637 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 80 \tabularnewline
p-value & 1.55241826504948e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19.1552161462791 \tabularnewline
Sum Squared Residuals & 29353.7844488536 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5792&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.692865273240383[/C][/ROW]
[ROW][C]R-squared[/C][C]0.480062286862471[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.402071629891841[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]6.15538200996637[/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.55241826504948e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19.1552161462791[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]29353.7844488536[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5792&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5792&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.692865273240383
R-squared0.480062286862471
Adjusted R-squared0.402071629891841
F-TEST (value)6.15538200996637
F-TEST (DF numerator)12
F-TEST (DF denominator)80
p-value1.55241826504948e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19.1552161462791
Sum Squared Residuals29353.7844488536







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.598.40200617283941.09799382716060
2101.6100.2145061728401.38549382716049
3103.9105.477006172840-1.57700617283952
4106.6105.8270061728400.772993827160461
5108.3108.477006172840-0.177006172839517
6102109.302006172840-7.30200617283952
793.8107.714506172840-13.9145061728395
891.6100.814506172840-9.2145061728395
997.7102.302006172839-4.60200617283947
1094.891.55943562610233.2405643738977
119895.85943562610232.14056437389770
12103.896.9737213403886.826278659612
1397.898.4020061728395-0.602006172839525
1491.2100.214506172840-9.0145061728395
1589.3105.477006172840-16.1770061728395
1687.5105.827006172840-18.3270061728395
1790.4108.477006172840-18.0770061728395
1894.2109.302006172840-15.1020061728395
19102.2107.714506172840-5.5145061728395
20101.3100.8145061728400.485493827160489
2196102.302006172839-6.3020061728395
2290.891.5594356261023-0.7594356261023
2393.295.8594356261023-2.65943562610230
2490.996.973721340388-6.073721340388
2591.198.4020061728395-7.30200617283953
2690.2100.214506172840-10.0145061728395
2794.3105.477006172840-11.1770061728395
2896105.827006172840-9.8270061728395
2999108.477006172840-9.4770061728395
30103.3109.302006172840-6.00200617283951
31113.1107.7145061728405.38549382716049
32112.8100.81450617284011.9854938271605
33112.1102.3020061728409.79799382716049
34107.491.559435626102315.8405643738977
3511195.859435626102315.1405643738977
36110.596.97372134038813.526278659612
37110.898.402006172839512.3979938271605
38112.4100.21450617284012.1854938271605
39111.5105.4770061728406.0229938271605
40116.2105.82700617284010.3729938271605
41122.5108.47700617284014.0229938271605
42121.3109.30200617284011.9979938271605
43113.9107.7145061728406.1854938271605
44110.7100.8145061728409.8854938271605
45120.8102.30200617284018.4979938271605
46141.1124.53042328042316.5695767195767
47147.4128.83042328042318.5695767195767
48148129.94470899470918.055291005291
49158.1131.37299382716026.7270061728395
50165133.18549382716031.8145061728395
51187138.44799382716048.5520061728395
52190.3138.79799382716051.5020061728395
53182.4141.44799382716040.9520061728395
54168.8142.27299382716026.5270061728395
55151.2140.68549382716010.5145061728395
56120.1133.785493827161-13.6854938271605
57112.5135.272993827160-22.7729938271605
58106.2124.530423280423-18.3304232804233
59107.1128.830423280423-21.7304232804233
60108.5129.944708994709-21.444708994709
61106.5131.372993827160-24.8729938271605
62108.3133.185493827160-24.8854938271605
63125.6138.447993827161-12.8479938271605
64124138.797993827160-14.7979938271605
65127.2141.447993827161-14.2479938271605
66136.9142.272993827160-5.37299382716049
67135.8140.685493827160-4.88549382716048
68124.3133.785493827161-9.4854938271605
69115.4135.272993827160-19.8729938271605
70113.6124.530423280423-10.9304232804233
71114.4128.830423280423-14.4304232804233
72118.4129.944708994709-11.544708994709
73117131.372993827161-14.3729938271605
74116.5133.185493827160-16.6854938271605
75115.4138.447993827161-23.0479938271605
76113.6138.797993827160-25.1979938271605
77117.4141.447993827161-24.0479938271605
78116.9142.272993827160-25.3729938271605
79116.4140.685493827160-24.2854938271605
80111.1133.785493827161-22.6854938271605
81110.2135.272993827160-25.0729938271605
82118.9124.530423280423-5.63042328042328
83131.8128.8304232804232.96957671957673
84130.6129.9447089947090.655291005291001
85138.3131.3729938271616.92700617283950
86148.4133.18549382716015.2145061728395
87148.7138.44799382716110.2520061728395
88144.3138.7979938271605.50200617283952
89152.5141.44799382716111.0520061728395
90162.9142.27299382716020.6270061728395
91167.2140.68549382716026.5145061728395
92166.5133.78549382716132.7145061728395
93185.6135.27299382716150.3270061728395

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.5 & 98.4020061728394 & 1.09799382716060 \tabularnewline
2 & 101.6 & 100.214506172840 & 1.38549382716049 \tabularnewline
3 & 103.9 & 105.477006172840 & -1.57700617283952 \tabularnewline
4 & 106.6 & 105.827006172840 & 0.772993827160461 \tabularnewline
5 & 108.3 & 108.477006172840 & -0.177006172839517 \tabularnewline
6 & 102 & 109.302006172840 & -7.30200617283952 \tabularnewline
7 & 93.8 & 107.714506172840 & -13.9145061728395 \tabularnewline
8 & 91.6 & 100.814506172840 & -9.2145061728395 \tabularnewline
9 & 97.7 & 102.302006172839 & -4.60200617283947 \tabularnewline
10 & 94.8 & 91.5594356261023 & 3.2405643738977 \tabularnewline
11 & 98 & 95.8594356261023 & 2.14056437389770 \tabularnewline
12 & 103.8 & 96.973721340388 & 6.826278659612 \tabularnewline
13 & 97.8 & 98.4020061728395 & -0.602006172839525 \tabularnewline
14 & 91.2 & 100.214506172840 & -9.0145061728395 \tabularnewline
15 & 89.3 & 105.477006172840 & -16.1770061728395 \tabularnewline
16 & 87.5 & 105.827006172840 & -18.3270061728395 \tabularnewline
17 & 90.4 & 108.477006172840 & -18.0770061728395 \tabularnewline
18 & 94.2 & 109.302006172840 & -15.1020061728395 \tabularnewline
19 & 102.2 & 107.714506172840 & -5.5145061728395 \tabularnewline
20 & 101.3 & 100.814506172840 & 0.485493827160489 \tabularnewline
21 & 96 & 102.302006172839 & -6.3020061728395 \tabularnewline
22 & 90.8 & 91.5594356261023 & -0.7594356261023 \tabularnewline
23 & 93.2 & 95.8594356261023 & -2.65943562610230 \tabularnewline
24 & 90.9 & 96.973721340388 & -6.073721340388 \tabularnewline
25 & 91.1 & 98.4020061728395 & -7.30200617283953 \tabularnewline
26 & 90.2 & 100.214506172840 & -10.0145061728395 \tabularnewline
27 & 94.3 & 105.477006172840 & -11.1770061728395 \tabularnewline
28 & 96 & 105.827006172840 & -9.8270061728395 \tabularnewline
29 & 99 & 108.477006172840 & -9.4770061728395 \tabularnewline
30 & 103.3 & 109.302006172840 & -6.00200617283951 \tabularnewline
31 & 113.1 & 107.714506172840 & 5.38549382716049 \tabularnewline
32 & 112.8 & 100.814506172840 & 11.9854938271605 \tabularnewline
33 & 112.1 & 102.302006172840 & 9.79799382716049 \tabularnewline
34 & 107.4 & 91.5594356261023 & 15.8405643738977 \tabularnewline
35 & 111 & 95.8594356261023 & 15.1405643738977 \tabularnewline
36 & 110.5 & 96.973721340388 & 13.526278659612 \tabularnewline
37 & 110.8 & 98.4020061728395 & 12.3979938271605 \tabularnewline
38 & 112.4 & 100.214506172840 & 12.1854938271605 \tabularnewline
39 & 111.5 & 105.477006172840 & 6.0229938271605 \tabularnewline
40 & 116.2 & 105.827006172840 & 10.3729938271605 \tabularnewline
41 & 122.5 & 108.477006172840 & 14.0229938271605 \tabularnewline
42 & 121.3 & 109.302006172840 & 11.9979938271605 \tabularnewline
43 & 113.9 & 107.714506172840 & 6.1854938271605 \tabularnewline
44 & 110.7 & 100.814506172840 & 9.8854938271605 \tabularnewline
45 & 120.8 & 102.302006172840 & 18.4979938271605 \tabularnewline
46 & 141.1 & 124.530423280423 & 16.5695767195767 \tabularnewline
47 & 147.4 & 128.830423280423 & 18.5695767195767 \tabularnewline
48 & 148 & 129.944708994709 & 18.055291005291 \tabularnewline
49 & 158.1 & 131.372993827160 & 26.7270061728395 \tabularnewline
50 & 165 & 133.185493827160 & 31.8145061728395 \tabularnewline
51 & 187 & 138.447993827160 & 48.5520061728395 \tabularnewline
52 & 190.3 & 138.797993827160 & 51.5020061728395 \tabularnewline
53 & 182.4 & 141.447993827160 & 40.9520061728395 \tabularnewline
54 & 168.8 & 142.272993827160 & 26.5270061728395 \tabularnewline
55 & 151.2 & 140.685493827160 & 10.5145061728395 \tabularnewline
56 & 120.1 & 133.785493827161 & -13.6854938271605 \tabularnewline
57 & 112.5 & 135.272993827160 & -22.7729938271605 \tabularnewline
58 & 106.2 & 124.530423280423 & -18.3304232804233 \tabularnewline
59 & 107.1 & 128.830423280423 & -21.7304232804233 \tabularnewline
60 & 108.5 & 129.944708994709 & -21.444708994709 \tabularnewline
61 & 106.5 & 131.372993827160 & -24.8729938271605 \tabularnewline
62 & 108.3 & 133.185493827160 & -24.8854938271605 \tabularnewline
63 & 125.6 & 138.447993827161 & -12.8479938271605 \tabularnewline
64 & 124 & 138.797993827160 & -14.7979938271605 \tabularnewline
65 & 127.2 & 141.447993827161 & -14.2479938271605 \tabularnewline
66 & 136.9 & 142.272993827160 & -5.37299382716049 \tabularnewline
67 & 135.8 & 140.685493827160 & -4.88549382716048 \tabularnewline
68 & 124.3 & 133.785493827161 & -9.4854938271605 \tabularnewline
69 & 115.4 & 135.272993827160 & -19.8729938271605 \tabularnewline
70 & 113.6 & 124.530423280423 & -10.9304232804233 \tabularnewline
71 & 114.4 & 128.830423280423 & -14.4304232804233 \tabularnewline
72 & 118.4 & 129.944708994709 & -11.544708994709 \tabularnewline
73 & 117 & 131.372993827161 & -14.3729938271605 \tabularnewline
74 & 116.5 & 133.185493827160 & -16.6854938271605 \tabularnewline
75 & 115.4 & 138.447993827161 & -23.0479938271605 \tabularnewline
76 & 113.6 & 138.797993827160 & -25.1979938271605 \tabularnewline
77 & 117.4 & 141.447993827161 & -24.0479938271605 \tabularnewline
78 & 116.9 & 142.272993827160 & -25.3729938271605 \tabularnewline
79 & 116.4 & 140.685493827160 & -24.2854938271605 \tabularnewline
80 & 111.1 & 133.785493827161 & -22.6854938271605 \tabularnewline
81 & 110.2 & 135.272993827160 & -25.0729938271605 \tabularnewline
82 & 118.9 & 124.530423280423 & -5.63042328042328 \tabularnewline
83 & 131.8 & 128.830423280423 & 2.96957671957673 \tabularnewline
84 & 130.6 & 129.944708994709 & 0.655291005291001 \tabularnewline
85 & 138.3 & 131.372993827161 & 6.92700617283950 \tabularnewline
86 & 148.4 & 133.185493827160 & 15.2145061728395 \tabularnewline
87 & 148.7 & 138.447993827161 & 10.2520061728395 \tabularnewline
88 & 144.3 & 138.797993827160 & 5.50200617283952 \tabularnewline
89 & 152.5 & 141.447993827161 & 11.0520061728395 \tabularnewline
90 & 162.9 & 142.272993827160 & 20.6270061728395 \tabularnewline
91 & 167.2 & 140.685493827160 & 26.5145061728395 \tabularnewline
92 & 166.5 & 133.785493827161 & 32.7145061728395 \tabularnewline
93 & 185.6 & 135.272993827161 & 50.3270061728395 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5792&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]98.4020061728394[/C][C]1.09799382716060[/C][/ROW]
[ROW][C]2[/C][C]101.6[/C][C]100.214506172840[/C][C]1.38549382716049[/C][/ROW]
[ROW][C]3[/C][C]103.9[/C][C]105.477006172840[/C][C]-1.57700617283952[/C][/ROW]
[ROW][C]4[/C][C]106.6[/C][C]105.827006172840[/C][C]0.772993827160461[/C][/ROW]
[ROW][C]5[/C][C]108.3[/C][C]108.477006172840[/C][C]-0.177006172839517[/C][/ROW]
[ROW][C]6[/C][C]102[/C][C]109.302006172840[/C][C]-7.30200617283952[/C][/ROW]
[ROW][C]7[/C][C]93.8[/C][C]107.714506172840[/C][C]-13.9145061728395[/C][/ROW]
[ROW][C]8[/C][C]91.6[/C][C]100.814506172840[/C][C]-9.2145061728395[/C][/ROW]
[ROW][C]9[/C][C]97.7[/C][C]102.302006172839[/C][C]-4.60200617283947[/C][/ROW]
[ROW][C]10[/C][C]94.8[/C][C]91.5594356261023[/C][C]3.2405643738977[/C][/ROW]
[ROW][C]11[/C][C]98[/C][C]95.8594356261023[/C][C]2.14056437389770[/C][/ROW]
[ROW][C]12[/C][C]103.8[/C][C]96.973721340388[/C][C]6.826278659612[/C][/ROW]
[ROW][C]13[/C][C]97.8[/C][C]98.4020061728395[/C][C]-0.602006172839525[/C][/ROW]
[ROW][C]14[/C][C]91.2[/C][C]100.214506172840[/C][C]-9.0145061728395[/C][/ROW]
[ROW][C]15[/C][C]89.3[/C][C]105.477006172840[/C][C]-16.1770061728395[/C][/ROW]
[ROW][C]16[/C][C]87.5[/C][C]105.827006172840[/C][C]-18.3270061728395[/C][/ROW]
[ROW][C]17[/C][C]90.4[/C][C]108.477006172840[/C][C]-18.0770061728395[/C][/ROW]
[ROW][C]18[/C][C]94.2[/C][C]109.302006172840[/C][C]-15.1020061728395[/C][/ROW]
[ROW][C]19[/C][C]102.2[/C][C]107.714506172840[/C][C]-5.5145061728395[/C][/ROW]
[ROW][C]20[/C][C]101.3[/C][C]100.814506172840[/C][C]0.485493827160489[/C][/ROW]
[ROW][C]21[/C][C]96[/C][C]102.302006172839[/C][C]-6.3020061728395[/C][/ROW]
[ROW][C]22[/C][C]90.8[/C][C]91.5594356261023[/C][C]-0.7594356261023[/C][/ROW]
[ROW][C]23[/C][C]93.2[/C][C]95.8594356261023[/C][C]-2.65943562610230[/C][/ROW]
[ROW][C]24[/C][C]90.9[/C][C]96.973721340388[/C][C]-6.073721340388[/C][/ROW]
[ROW][C]25[/C][C]91.1[/C][C]98.4020061728395[/C][C]-7.30200617283953[/C][/ROW]
[ROW][C]26[/C][C]90.2[/C][C]100.214506172840[/C][C]-10.0145061728395[/C][/ROW]
[ROW][C]27[/C][C]94.3[/C][C]105.477006172840[/C][C]-11.1770061728395[/C][/ROW]
[ROW][C]28[/C][C]96[/C][C]105.827006172840[/C][C]-9.8270061728395[/C][/ROW]
[ROW][C]29[/C][C]99[/C][C]108.477006172840[/C][C]-9.4770061728395[/C][/ROW]
[ROW][C]30[/C][C]103.3[/C][C]109.302006172840[/C][C]-6.00200617283951[/C][/ROW]
[ROW][C]31[/C][C]113.1[/C][C]107.714506172840[/C][C]5.38549382716049[/C][/ROW]
[ROW][C]32[/C][C]112.8[/C][C]100.814506172840[/C][C]11.9854938271605[/C][/ROW]
[ROW][C]33[/C][C]112.1[/C][C]102.302006172840[/C][C]9.79799382716049[/C][/ROW]
[ROW][C]34[/C][C]107.4[/C][C]91.5594356261023[/C][C]15.8405643738977[/C][/ROW]
[ROW][C]35[/C][C]111[/C][C]95.8594356261023[/C][C]15.1405643738977[/C][/ROW]
[ROW][C]36[/C][C]110.5[/C][C]96.973721340388[/C][C]13.526278659612[/C][/ROW]
[ROW][C]37[/C][C]110.8[/C][C]98.4020061728395[/C][C]12.3979938271605[/C][/ROW]
[ROW][C]38[/C][C]112.4[/C][C]100.214506172840[/C][C]12.1854938271605[/C][/ROW]
[ROW][C]39[/C][C]111.5[/C][C]105.477006172840[/C][C]6.0229938271605[/C][/ROW]
[ROW][C]40[/C][C]116.2[/C][C]105.827006172840[/C][C]10.3729938271605[/C][/ROW]
[ROW][C]41[/C][C]122.5[/C][C]108.477006172840[/C][C]14.0229938271605[/C][/ROW]
[ROW][C]42[/C][C]121.3[/C][C]109.302006172840[/C][C]11.9979938271605[/C][/ROW]
[ROW][C]43[/C][C]113.9[/C][C]107.714506172840[/C][C]6.1854938271605[/C][/ROW]
[ROW][C]44[/C][C]110.7[/C][C]100.814506172840[/C][C]9.8854938271605[/C][/ROW]
[ROW][C]45[/C][C]120.8[/C][C]102.302006172840[/C][C]18.4979938271605[/C][/ROW]
[ROW][C]46[/C][C]141.1[/C][C]124.530423280423[/C][C]16.5695767195767[/C][/ROW]
[ROW][C]47[/C][C]147.4[/C][C]128.830423280423[/C][C]18.5695767195767[/C][/ROW]
[ROW][C]48[/C][C]148[/C][C]129.944708994709[/C][C]18.055291005291[/C][/ROW]
[ROW][C]49[/C][C]158.1[/C][C]131.372993827160[/C][C]26.7270061728395[/C][/ROW]
[ROW][C]50[/C][C]165[/C][C]133.185493827160[/C][C]31.8145061728395[/C][/ROW]
[ROW][C]51[/C][C]187[/C][C]138.447993827160[/C][C]48.5520061728395[/C][/ROW]
[ROW][C]52[/C][C]190.3[/C][C]138.797993827160[/C][C]51.5020061728395[/C][/ROW]
[ROW][C]53[/C][C]182.4[/C][C]141.447993827160[/C][C]40.9520061728395[/C][/ROW]
[ROW][C]54[/C][C]168.8[/C][C]142.272993827160[/C][C]26.5270061728395[/C][/ROW]
[ROW][C]55[/C][C]151.2[/C][C]140.685493827160[/C][C]10.5145061728395[/C][/ROW]
[ROW][C]56[/C][C]120.1[/C][C]133.785493827161[/C][C]-13.6854938271605[/C][/ROW]
[ROW][C]57[/C][C]112.5[/C][C]135.272993827160[/C][C]-22.7729938271605[/C][/ROW]
[ROW][C]58[/C][C]106.2[/C][C]124.530423280423[/C][C]-18.3304232804233[/C][/ROW]
[ROW][C]59[/C][C]107.1[/C][C]128.830423280423[/C][C]-21.7304232804233[/C][/ROW]
[ROW][C]60[/C][C]108.5[/C][C]129.944708994709[/C][C]-21.444708994709[/C][/ROW]
[ROW][C]61[/C][C]106.5[/C][C]131.372993827160[/C][C]-24.8729938271605[/C][/ROW]
[ROW][C]62[/C][C]108.3[/C][C]133.185493827160[/C][C]-24.8854938271605[/C][/ROW]
[ROW][C]63[/C][C]125.6[/C][C]138.447993827161[/C][C]-12.8479938271605[/C][/ROW]
[ROW][C]64[/C][C]124[/C][C]138.797993827160[/C][C]-14.7979938271605[/C][/ROW]
[ROW][C]65[/C][C]127.2[/C][C]141.447993827161[/C][C]-14.2479938271605[/C][/ROW]
[ROW][C]66[/C][C]136.9[/C][C]142.272993827160[/C][C]-5.37299382716049[/C][/ROW]
[ROW][C]67[/C][C]135.8[/C][C]140.685493827160[/C][C]-4.88549382716048[/C][/ROW]
[ROW][C]68[/C][C]124.3[/C][C]133.785493827161[/C][C]-9.4854938271605[/C][/ROW]
[ROW][C]69[/C][C]115.4[/C][C]135.272993827160[/C][C]-19.8729938271605[/C][/ROW]
[ROW][C]70[/C][C]113.6[/C][C]124.530423280423[/C][C]-10.9304232804233[/C][/ROW]
[ROW][C]71[/C][C]114.4[/C][C]128.830423280423[/C][C]-14.4304232804233[/C][/ROW]
[ROW][C]72[/C][C]118.4[/C][C]129.944708994709[/C][C]-11.544708994709[/C][/ROW]
[ROW][C]73[/C][C]117[/C][C]131.372993827161[/C][C]-14.3729938271605[/C][/ROW]
[ROW][C]74[/C][C]116.5[/C][C]133.185493827160[/C][C]-16.6854938271605[/C][/ROW]
[ROW][C]75[/C][C]115.4[/C][C]138.447993827161[/C][C]-23.0479938271605[/C][/ROW]
[ROW][C]76[/C][C]113.6[/C][C]138.797993827160[/C][C]-25.1979938271605[/C][/ROW]
[ROW][C]77[/C][C]117.4[/C][C]141.447993827161[/C][C]-24.0479938271605[/C][/ROW]
[ROW][C]78[/C][C]116.9[/C][C]142.272993827160[/C][C]-25.3729938271605[/C][/ROW]
[ROW][C]79[/C][C]116.4[/C][C]140.685493827160[/C][C]-24.2854938271605[/C][/ROW]
[ROW][C]80[/C][C]111.1[/C][C]133.785493827161[/C][C]-22.6854938271605[/C][/ROW]
[ROW][C]81[/C][C]110.2[/C][C]135.272993827160[/C][C]-25.0729938271605[/C][/ROW]
[ROW][C]82[/C][C]118.9[/C][C]124.530423280423[/C][C]-5.63042328042328[/C][/ROW]
[ROW][C]83[/C][C]131.8[/C][C]128.830423280423[/C][C]2.96957671957673[/C][/ROW]
[ROW][C]84[/C][C]130.6[/C][C]129.944708994709[/C][C]0.655291005291001[/C][/ROW]
[ROW][C]85[/C][C]138.3[/C][C]131.372993827161[/C][C]6.92700617283950[/C][/ROW]
[ROW][C]86[/C][C]148.4[/C][C]133.185493827160[/C][C]15.2145061728395[/C][/ROW]
[ROW][C]87[/C][C]148.7[/C][C]138.447993827161[/C][C]10.2520061728395[/C][/ROW]
[ROW][C]88[/C][C]144.3[/C][C]138.797993827160[/C][C]5.50200617283952[/C][/ROW]
[ROW][C]89[/C][C]152.5[/C][C]141.447993827161[/C][C]11.0520061728395[/C][/ROW]
[ROW][C]90[/C][C]162.9[/C][C]142.272993827160[/C][C]20.6270061728395[/C][/ROW]
[ROW][C]91[/C][C]167.2[/C][C]140.685493827160[/C][C]26.5145061728395[/C][/ROW]
[ROW][C]92[/C][C]166.5[/C][C]133.785493827161[/C][C]32.7145061728395[/C][/ROW]
[ROW][C]93[/C][C]185.6[/C][C]135.272993827161[/C][C]50.3270061728395[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5792&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5792&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.598.40200617283941.09799382716060
2101.6100.2145061728401.38549382716049
3103.9105.477006172840-1.57700617283952
4106.6105.8270061728400.772993827160461
5108.3108.477006172840-0.177006172839517
6102109.302006172840-7.30200617283952
793.8107.714506172840-13.9145061728395
891.6100.814506172840-9.2145061728395
997.7102.302006172839-4.60200617283947
1094.891.55943562610233.2405643738977
119895.85943562610232.14056437389770
12103.896.9737213403886.826278659612
1397.898.4020061728395-0.602006172839525
1491.2100.214506172840-9.0145061728395
1589.3105.477006172840-16.1770061728395
1687.5105.827006172840-18.3270061728395
1790.4108.477006172840-18.0770061728395
1894.2109.302006172840-15.1020061728395
19102.2107.714506172840-5.5145061728395
20101.3100.8145061728400.485493827160489
2196102.302006172839-6.3020061728395
2290.891.5594356261023-0.7594356261023
2393.295.8594356261023-2.65943562610230
2490.996.973721340388-6.073721340388
2591.198.4020061728395-7.30200617283953
2690.2100.214506172840-10.0145061728395
2794.3105.477006172840-11.1770061728395
2896105.827006172840-9.8270061728395
2999108.477006172840-9.4770061728395
30103.3109.302006172840-6.00200617283951
31113.1107.7145061728405.38549382716049
32112.8100.81450617284011.9854938271605
33112.1102.3020061728409.79799382716049
34107.491.559435626102315.8405643738977
3511195.859435626102315.1405643738977
36110.596.97372134038813.526278659612
37110.898.402006172839512.3979938271605
38112.4100.21450617284012.1854938271605
39111.5105.4770061728406.0229938271605
40116.2105.82700617284010.3729938271605
41122.5108.47700617284014.0229938271605
42121.3109.30200617284011.9979938271605
43113.9107.7145061728406.1854938271605
44110.7100.8145061728409.8854938271605
45120.8102.30200617284018.4979938271605
46141.1124.53042328042316.5695767195767
47147.4128.83042328042318.5695767195767
48148129.94470899470918.055291005291
49158.1131.37299382716026.7270061728395
50165133.18549382716031.8145061728395
51187138.44799382716048.5520061728395
52190.3138.79799382716051.5020061728395
53182.4141.44799382716040.9520061728395
54168.8142.27299382716026.5270061728395
55151.2140.68549382716010.5145061728395
56120.1133.785493827161-13.6854938271605
57112.5135.272993827160-22.7729938271605
58106.2124.530423280423-18.3304232804233
59107.1128.830423280423-21.7304232804233
60108.5129.944708994709-21.444708994709
61106.5131.372993827160-24.8729938271605
62108.3133.185493827160-24.8854938271605
63125.6138.447993827161-12.8479938271605
64124138.797993827160-14.7979938271605
65127.2141.447993827161-14.2479938271605
66136.9142.272993827160-5.37299382716049
67135.8140.685493827160-4.88549382716048
68124.3133.785493827161-9.4854938271605
69115.4135.272993827160-19.8729938271605
70113.6124.530423280423-10.9304232804233
71114.4128.830423280423-14.4304232804233
72118.4129.944708994709-11.544708994709
73117131.372993827161-14.3729938271605
74116.5133.185493827160-16.6854938271605
75115.4138.447993827161-23.0479938271605
76113.6138.797993827160-25.1979938271605
77117.4141.447993827161-24.0479938271605
78116.9142.272993827160-25.3729938271605
79116.4140.685493827160-24.2854938271605
80111.1133.785493827161-22.6854938271605
81110.2135.272993827160-25.0729938271605
82118.9124.530423280423-5.63042328042328
83131.8128.8304232804232.96957671957673
84130.6129.9447089947090.655291005291001
85138.3131.3729938271616.92700617283950
86148.4133.18549382716015.2145061728395
87148.7138.44799382716110.2520061728395
88144.3138.7979938271605.50200617283952
89152.5141.44799382716111.0520061728395
90162.9142.27299382716020.6270061728395
91167.2140.68549382716026.5145061728395
92166.5133.78549382716132.7145061728395
93185.6135.27299382716150.3270061728395



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