Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 05 Dec 2007 14:58:49 -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/05/t1196891162fe3xl3l18imziqf.htm/, Retrieved Thu, 02 May 2024 15:40:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2529, Retrieved Thu, 02 May 2024 15:40:45 +0000
QR Codes:

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

Post a new message
Dataseries X:
106.7	97.3	0	104.8	93.5
110.2	101	0	105.6	94.7
125.9	113.2	0	118.3	112.9
100.1	101	0	89.9	99.2
106.4	105.7	0	90.2	105.6
114.8	113.9	0	107	113
81.3	86.4	0	64.5	83.1
87	96.5	0	92.6	81.1
104.2	103.3	0	95.8	96.9
108	114.9	0	94.3	104.3
105	105.8	0	91.2	97.7
94.5	94.2	0	86.3	102.6
92	98.4	0	77.6	89.9
95.9	99.4	0	82.5	96
108.8	108.8	0	97.7	112.7
103.4	112.6	0	83.3	107.1
102.1	104.4	0	84.2	106.2
110.1	112.2	0	92.8	121
83.2	81.1	0	77.4	101.2
82.7	97.1	0	72.5	83.2
106.8	112.6	0	88.8	105.1
113.7	113.8	0	93.4	113.3
102.5	107.8	0	92.6	99.1
96.6	103.2	0	90.7	100.3
92.1	103.3	0	81.6	93.5
95.6	101.2	0	84.1	98.8
102.3	107.7	0	88.1	106.2
98.6	110.4	0	85.3	98.3
98.2	101.9	0	82.9	102.1
104.5	115.9	0	84.8	117.1
84	89.9	0	71.2	101.5
73.8	88.6	0	68.9	80.5
103.9	117.2	0	94.3	105.9
106	123.9	0	97.6	109.5
97.2	100	0	85.6	97.2
102.6	103.6	0	91.9	114.5
89	94.1	0	75.8	93.5
93.8	98.7	0	79.8	100.9
116.7	119.5	0	99	121.1
106.8	112.7	0	88.5	116.5
98.5	104.4	0	86.7	109.3
118.7	124.7	0	97.9	118.1
90	89.1	0	94.3	108.3
91.9	97	0	72.9	105.4
113.3	121.6	0	91.8	116.2
113.1	118.8	0	93.2	111.2
104.1	114	0	86.5	105.8
108.7	111.5	0	98.9	122.7
96.7	97.2	0	77.2	99.5
101	102.5	0	79.4	107.9
116.9	113.4	0	90.4	124.6
105.8	109.8	0	81.4	115
99	104.9	0	85.8	110.3
129.4	126.1	0	103.6	132.7
83	80	0	73.6	99.7
88.9	96.8	0	75.7	96.5
115.9	117.2	1	99.2	118.7
104.2	112.3	1	88.7	112.9
113.4	117.3	1	94.6	130.5
112.2	111.1	1	98.7	137.9
100.8	102.2	1	84.2	115
107.3	104.3	1	87.7	116.8
126.6	122.9	1	103.3	140.9
102.9	107.6	1	88.2	120.7
117.9	121.3	1	93.4	134.2
128.8	131.5	1	106.3	147.3
87.5	89	1	73.1	112.4
93.8	104.4	1	78.6	107.1
122.7	128.9	1	101.6	128.4
126.2	135.9	1	101.4	137.7
124.6	133.3	1	98.5	135
116.7	121.3	1	99	151
115.2	120.5	1	89.5	137.4
111.1	120.4	1	83.5	132.4
129.9	137.9	1	97.4	161.3
113.3	126.1	1	87.8	139.8
118.5	133.2	1	90.4	146
133.5	146.6	1	97.1	154.6
102.1	103.4	1	79.4	142.1
102.4	117.2	1	85	120.5




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2529&T=0

[TABLE]
[ROW][C]Summary of compuational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2529&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
Prod[t] = + 27.0323618824689 + 0.587787983114033Tot[t] -0.756057202325195Conjun[t] -0.183109523021441Mach[t] + 0.29725078825593`Elek `[t] + 1.67156483034391M1[t] + 1.10325520722268M2[t] + 2.16417897807062M3[t] + 5.25039459411524M4[t] + 3.32183397931734M5[t] + 6.7371409579682M6[t] -7.536498510513M7[t] + 6.39162180834974M8[t] + 8.88554654979554M9[t] + 10.6224426006966M10[t] + 6.68380905729691M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Prod[t] =  +  27.0323618824689 +  0.587787983114033Tot[t] -0.756057202325195Conjun[t] -0.183109523021441Mach[t] +  0.29725078825593`Elek
`[t] +  1.67156483034391M1[t] +  1.10325520722268M2[t] +  2.16417897807062M3[t] +  5.25039459411524M4[t] +  3.32183397931734M5[t] +  6.7371409579682M6[t] -7.536498510513M7[t] +  6.39162180834974M8[t] +  8.88554654979554M9[t] +  10.6224426006966M10[t] +  6.68380905729691M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2529&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Prod[t] =  +  27.0323618824689 +  0.587787983114033Tot[t] -0.756057202325195Conjun[t] -0.183109523021441Mach[t] +  0.29725078825593`Elek
`[t] +  1.67156483034391M1[t] +  1.10325520722268M2[t] +  2.16417897807062M3[t] +  5.25039459411524M4[t] +  3.32183397931734M5[t] +  6.7371409579682M6[t] -7.536498510513M7[t] +  6.39162180834974M8[t] +  8.88554654979554M9[t] +  10.6224426006966M10[t] +  6.68380905729691M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2529&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2529&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
Prod[t] = + 27.0323618824689 + 0.587787983114033Tot[t] -0.756057202325195Conjun[t] -0.183109523021441Mach[t] + 0.29725078825593`Elek `[t] + 1.67156483034391M1[t] + 1.10325520722268M2[t] + 2.16417897807062M3[t] + 5.25039459411524M4[t] + 3.32183397931734M5[t] + 6.7371409579682M6[t] -7.536498510513M7[t] + 6.39162180834974M8[t] + 8.88554654979554M9[t] + 10.6224426006966M10[t] + 6.68380905729691M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)27.03236188246899.2376652.92630.0047430.002371
Tot0.5877879831140330.1682123.49430.0008680.000434
Conjun-0.7560572023251951.983584-0.38120.7043490.352175
Mach-0.1831095230214410.108796-1.68310.0972380.048619
`Elek `0.297250788255930.0957023.1060.0028260.001413
M11.671564830343912.8282690.5910.5565880.278294
M21.103255207222682.7939930.39490.6942540.347127
M32.164178978070622.7853940.7770.4400360.220018
M45.250394594115242.6413231.98780.0511170.025558
M53.321833979317342.587771.28370.2038870.101943
M66.73714095796822.8648212.35170.0217790.010889
M7-7.5364985105132.782614-2.70840.0086620.004331
M86.391621808349742.9369322.17630.0332310.016615
M98.885546549795542.97562.98610.0040.002
M1010.62244260069662.913423.6460.0005360.000268
M116.683809057296912.8913762.31160.0240280.012014

\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) & 27.0323618824689 & 9.237665 & 2.9263 & 0.004743 & 0.002371 \tabularnewline
Tot & 0.587787983114033 & 0.168212 & 3.4943 & 0.000868 & 0.000434 \tabularnewline
Conjun & -0.756057202325195 & 1.983584 & -0.3812 & 0.704349 & 0.352175 \tabularnewline
Mach & -0.183109523021441 & 0.108796 & -1.6831 & 0.097238 & 0.048619 \tabularnewline
`Elek
` & 0.29725078825593 & 0.095702 & 3.106 & 0.002826 & 0.001413 \tabularnewline
M1 & 1.67156483034391 & 2.828269 & 0.591 & 0.556588 & 0.278294 \tabularnewline
M2 & 1.10325520722268 & 2.793993 & 0.3949 & 0.694254 & 0.347127 \tabularnewline
M3 & 2.16417897807062 & 2.785394 & 0.777 & 0.440036 & 0.220018 \tabularnewline
M4 & 5.25039459411524 & 2.641323 & 1.9878 & 0.051117 & 0.025558 \tabularnewline
M5 & 3.32183397931734 & 2.58777 & 1.2837 & 0.203887 & 0.101943 \tabularnewline
M6 & 6.7371409579682 & 2.864821 & 2.3517 & 0.021779 & 0.010889 \tabularnewline
M7 & -7.536498510513 & 2.782614 & -2.7084 & 0.008662 & 0.004331 \tabularnewline
M8 & 6.39162180834974 & 2.936932 & 2.1763 & 0.033231 & 0.016615 \tabularnewline
M9 & 8.88554654979554 & 2.9756 & 2.9861 & 0.004 & 0.002 \tabularnewline
M10 & 10.6224426006966 & 2.91342 & 3.646 & 0.000536 & 0.000268 \tabularnewline
M11 & 6.68380905729691 & 2.891376 & 2.3116 & 0.024028 & 0.012014 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2529&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]27.0323618824689[/C][C]9.237665[/C][C]2.9263[/C][C]0.004743[/C][C]0.002371[/C][/ROW]
[ROW][C]Tot[/C][C]0.587787983114033[/C][C]0.168212[/C][C]3.4943[/C][C]0.000868[/C][C]0.000434[/C][/ROW]
[ROW][C]Conjun[/C][C]-0.756057202325195[/C][C]1.983584[/C][C]-0.3812[/C][C]0.704349[/C][C]0.352175[/C][/ROW]
[ROW][C]Mach[/C][C]-0.183109523021441[/C][C]0.108796[/C][C]-1.6831[/C][C]0.097238[/C][C]0.048619[/C][/ROW]
[ROW][C]`Elek
`[/C][C]0.29725078825593[/C][C]0.095702[/C][C]3.106[/C][C]0.002826[/C][C]0.001413[/C][/ROW]
[ROW][C]M1[/C][C]1.67156483034391[/C][C]2.828269[/C][C]0.591[/C][C]0.556588[/C][C]0.278294[/C][/ROW]
[ROW][C]M2[/C][C]1.10325520722268[/C][C]2.793993[/C][C]0.3949[/C][C]0.694254[/C][C]0.347127[/C][/ROW]
[ROW][C]M3[/C][C]2.16417897807062[/C][C]2.785394[/C][C]0.777[/C][C]0.440036[/C][C]0.220018[/C][/ROW]
[ROW][C]M4[/C][C]5.25039459411524[/C][C]2.641323[/C][C]1.9878[/C][C]0.051117[/C][C]0.025558[/C][/ROW]
[ROW][C]M5[/C][C]3.32183397931734[/C][C]2.58777[/C][C]1.2837[/C][C]0.203887[/C][C]0.101943[/C][/ROW]
[ROW][C]M6[/C][C]6.7371409579682[/C][C]2.864821[/C][C]2.3517[/C][C]0.021779[/C][C]0.010889[/C][/ROW]
[ROW][C]M7[/C][C]-7.536498510513[/C][C]2.782614[/C][C]-2.7084[/C][C]0.008662[/C][C]0.004331[/C][/ROW]
[ROW][C]M8[/C][C]6.39162180834974[/C][C]2.936932[/C][C]2.1763[/C][C]0.033231[/C][C]0.016615[/C][/ROW]
[ROW][C]M9[/C][C]8.88554654979554[/C][C]2.9756[/C][C]2.9861[/C][C]0.004[/C][C]0.002[/C][/ROW]
[ROW][C]M10[/C][C]10.6224426006966[/C][C]2.91342[/C][C]3.646[/C][C]0.000536[/C][C]0.000268[/C][/ROW]
[ROW][C]M11[/C][C]6.68380905729691[/C][C]2.891376[/C][C]2.3116[/C][C]0.024028[/C][C]0.012014[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2529&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2529&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)27.03236188246899.2376652.92630.0047430.002371
Tot0.5877879831140330.1682123.49430.0008680.000434
Conjun-0.7560572023251951.983584-0.38120.7043490.352175
Mach-0.1831095230214410.108796-1.68310.0972380.048619
`Elek `0.297250788255930.0957023.1060.0028260.001413
M11.671564830343912.8282690.5910.5565880.278294
M21.103255207222682.7939930.39490.6942540.347127
M32.164178978070622.7853940.7770.4400360.220018
M45.250394594115242.6413231.98780.0511170.025558
M53.321833979317342.587771.28370.2038870.101943
M66.73714095796822.8648212.35170.0217790.010889
M7-7.5364985105132.782614-2.70840.0086620.004331
M86.391621808349742.9369322.17630.0332310.016615
M98.885546549795542.97562.98610.0040.002
M1010.62244260069662.913423.6460.0005360.000268
M116.683809057296912.8913762.31160.0240280.012014







Multiple Linear Regression - Regression Statistics
Multiple R0.958390257787248
R-squared0.918511886221508
Adjusted R-squared0.899413109554674
F-TEST (value)48.092707833824
F-TEST (DF numerator)15
F-TEST (DF denominator)64
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.18776981498156
Sum Squared Residuals1122.39462548932

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.958390257787248 \tabularnewline
R-squared & 0.918511886221508 \tabularnewline
Adjusted R-squared & 0.899413109554674 \tabularnewline
F-TEST (value) & 48.092707833824 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 64 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.18776981498156 \tabularnewline
Sum Squared Residuals & 1122.39462548932 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2529&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.958390257787248[/C][/ROW]
[ROW][C]R-squared[/C][C]0.918511886221508[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.899413109554674[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]48.092707833824[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]64[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.18776981498156[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1122.39462548932[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2529&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2529&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.958390257787248
R-squared0.918511886221508
Adjusted R-squared0.899413109554674
F-TEST (value)48.092707833824
F-TEST (DF numerator)15
F-TEST (DF denominator)64
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.18776981498156
Sum Squared Residuals1122.39462548932







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
197.3100.023975200363-2.72397520036250
2101101.723136845630-0.723136845630392
3113.2115.096805355254-1.89680535525428
4101104.146065661660-3.14606566165953
5105.7107.768041528412-2.06804152841156
6113.9115.244183411554-1.34418341155397
786.480.17400266831166.2259973316884
896.591.712635317514.78736468249
9103.3108.427125349292-5.12712534929224
10114.9114.8719358536530.0280641463473881
11105.8107.775722679788-1.97572267978820
1294.297.273905325053-3.07390532505305
1398.495.29396803704813.10603196295189
1499.497.93402469362771.46597530637228
15108.8108.7582368605950.0417631394051853
16112.6109.6425700850992.95742991490081
17104.4106.517560812103-2.11756081210341
18112.2117.45974142387-5.25974142386991
1981.184.308926256684-3.20892625668402
2097.193.4898750581883.61012494181193
21112.6113.674597230237-1.07459723023742
22113.8121.062383022425-7.26238302242527
23107.8106.4660504933311.33394950666860
24103.297.01890137530966.18109862469045
25103.395.69041158099517.6095884190049
26101.298.29701526897582.90298473102420
27107.7104.7633362676962.93666373230412
28110.4103.8391617834576.56083821654324
29101.9103.244501826037-1.34450182603725
30115.9114.4737268284051.42627317159528
3189.986.0036109223853.89638907761506
3288.688.11517916305930.484820836940652
33117.2111.2007103331945.99928966680645
34123.9114.6378025603859.26219743961537
35100104.067764346291-4.06776434629085
36103.6104.546859039602-0.946859039602222
3794.194.930304066866-0.830304066865966
3898.798.65059450370020.049405496299805
39119.5115.6606261686183.8393738313824
40112.7113.483037117581-0.783037117581143
41104.4104.865227708933-0.465227708932678
42124.7120.7188322252993.98116777470095
4389.187.32181419941421.7781858005858
4497105.423248192910-8.42324819291023
45121.6120.2453743010551.35462569894487
46118.8120.122105481824-1.32210548182368
47114110.5150596380593.48494036194063
48111.5109.2880555391462.21194446085364
4997.2100.983422934150-3.78342293414957
50102.5105.036667309121-2.53666730912132
51113.4118.393303422121-4.99330342212055
52109.8113.749450565535-3.94945056553545
53104.9105.621171059465-0.721171059464924
54126.1130.304300871934-4.20430087193357
558084.4413086651588-4.44130866515879
5696.8100.501645563630-3.70164556363032
57117.2120.405682355108-3.20568235510759
58112.3115.464054423415-3.16405442341517
59117.3121.084338012142-3.78433801214249
60111.1115.144090163815-4.04409016381471
61102.2105.962917019409-3.76291701940874
62104.3109.109397374814-4.80939737481435
63122.9125.821864657597-2.92186465759654
64107.6111.737992948693-4.13799294869257
65121.3121.686968202349-0.386968202348727
66131.5133.041036676119-1.54103667611865
678990.1969371592078-1.19693715920777
68104.4105.245590217315-0.845590217314555
69128.9126.8465104311142.05348956888593
70135.9133.4417186582992.45828134170136
71133.3128.2910648303885.00893516961231
72121.3121.628188557074-0.3281885570741
73120.5120.115001161170.384998838829993
74120.4116.7491640041303.65083599586978
75137.9134.9058272681202.99417273187967
76126.1123.6017218379752.49827816202465
77133.2126.0965288627017.10347113729855
78146.6139.658178562826.94182143717986
79103.4106.453400128839-3.05340012883867
80117.2113.1118264873874.08817351261252

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 97.3 & 100.023975200363 & -2.72397520036250 \tabularnewline
2 & 101 & 101.723136845630 & -0.723136845630392 \tabularnewline
3 & 113.2 & 115.096805355254 & -1.89680535525428 \tabularnewline
4 & 101 & 104.146065661660 & -3.14606566165953 \tabularnewline
5 & 105.7 & 107.768041528412 & -2.06804152841156 \tabularnewline
6 & 113.9 & 115.244183411554 & -1.34418341155397 \tabularnewline
7 & 86.4 & 80.1740026683116 & 6.2259973316884 \tabularnewline
8 & 96.5 & 91.71263531751 & 4.78736468249 \tabularnewline
9 & 103.3 & 108.427125349292 & -5.12712534929224 \tabularnewline
10 & 114.9 & 114.871935853653 & 0.0280641463473881 \tabularnewline
11 & 105.8 & 107.775722679788 & -1.97572267978820 \tabularnewline
12 & 94.2 & 97.273905325053 & -3.07390532505305 \tabularnewline
13 & 98.4 & 95.2939680370481 & 3.10603196295189 \tabularnewline
14 & 99.4 & 97.9340246936277 & 1.46597530637228 \tabularnewline
15 & 108.8 & 108.758236860595 & 0.0417631394051853 \tabularnewline
16 & 112.6 & 109.642570085099 & 2.95742991490081 \tabularnewline
17 & 104.4 & 106.517560812103 & -2.11756081210341 \tabularnewline
18 & 112.2 & 117.45974142387 & -5.25974142386991 \tabularnewline
19 & 81.1 & 84.308926256684 & -3.20892625668402 \tabularnewline
20 & 97.1 & 93.489875058188 & 3.61012494181193 \tabularnewline
21 & 112.6 & 113.674597230237 & -1.07459723023742 \tabularnewline
22 & 113.8 & 121.062383022425 & -7.26238302242527 \tabularnewline
23 & 107.8 & 106.466050493331 & 1.33394950666860 \tabularnewline
24 & 103.2 & 97.0189013753096 & 6.18109862469045 \tabularnewline
25 & 103.3 & 95.6904115809951 & 7.6095884190049 \tabularnewline
26 & 101.2 & 98.2970152689758 & 2.90298473102420 \tabularnewline
27 & 107.7 & 104.763336267696 & 2.93666373230412 \tabularnewline
28 & 110.4 & 103.839161783457 & 6.56083821654324 \tabularnewline
29 & 101.9 & 103.244501826037 & -1.34450182603725 \tabularnewline
30 & 115.9 & 114.473726828405 & 1.42627317159528 \tabularnewline
31 & 89.9 & 86.003610922385 & 3.89638907761506 \tabularnewline
32 & 88.6 & 88.1151791630593 & 0.484820836940652 \tabularnewline
33 & 117.2 & 111.200710333194 & 5.99928966680645 \tabularnewline
34 & 123.9 & 114.637802560385 & 9.26219743961537 \tabularnewline
35 & 100 & 104.067764346291 & -4.06776434629085 \tabularnewline
36 & 103.6 & 104.546859039602 & -0.946859039602222 \tabularnewline
37 & 94.1 & 94.930304066866 & -0.830304066865966 \tabularnewline
38 & 98.7 & 98.6505945037002 & 0.049405496299805 \tabularnewline
39 & 119.5 & 115.660626168618 & 3.8393738313824 \tabularnewline
40 & 112.7 & 113.483037117581 & -0.783037117581143 \tabularnewline
41 & 104.4 & 104.865227708933 & -0.465227708932678 \tabularnewline
42 & 124.7 & 120.718832225299 & 3.98116777470095 \tabularnewline
43 & 89.1 & 87.3218141994142 & 1.7781858005858 \tabularnewline
44 & 97 & 105.423248192910 & -8.42324819291023 \tabularnewline
45 & 121.6 & 120.245374301055 & 1.35462569894487 \tabularnewline
46 & 118.8 & 120.122105481824 & -1.32210548182368 \tabularnewline
47 & 114 & 110.515059638059 & 3.48494036194063 \tabularnewline
48 & 111.5 & 109.288055539146 & 2.21194446085364 \tabularnewline
49 & 97.2 & 100.983422934150 & -3.78342293414957 \tabularnewline
50 & 102.5 & 105.036667309121 & -2.53666730912132 \tabularnewline
51 & 113.4 & 118.393303422121 & -4.99330342212055 \tabularnewline
52 & 109.8 & 113.749450565535 & -3.94945056553545 \tabularnewline
53 & 104.9 & 105.621171059465 & -0.721171059464924 \tabularnewline
54 & 126.1 & 130.304300871934 & -4.20430087193357 \tabularnewline
55 & 80 & 84.4413086651588 & -4.44130866515879 \tabularnewline
56 & 96.8 & 100.501645563630 & -3.70164556363032 \tabularnewline
57 & 117.2 & 120.405682355108 & -3.20568235510759 \tabularnewline
58 & 112.3 & 115.464054423415 & -3.16405442341517 \tabularnewline
59 & 117.3 & 121.084338012142 & -3.78433801214249 \tabularnewline
60 & 111.1 & 115.144090163815 & -4.04409016381471 \tabularnewline
61 & 102.2 & 105.962917019409 & -3.76291701940874 \tabularnewline
62 & 104.3 & 109.109397374814 & -4.80939737481435 \tabularnewline
63 & 122.9 & 125.821864657597 & -2.92186465759654 \tabularnewline
64 & 107.6 & 111.737992948693 & -4.13799294869257 \tabularnewline
65 & 121.3 & 121.686968202349 & -0.386968202348727 \tabularnewline
66 & 131.5 & 133.041036676119 & -1.54103667611865 \tabularnewline
67 & 89 & 90.1969371592078 & -1.19693715920777 \tabularnewline
68 & 104.4 & 105.245590217315 & -0.845590217314555 \tabularnewline
69 & 128.9 & 126.846510431114 & 2.05348956888593 \tabularnewline
70 & 135.9 & 133.441718658299 & 2.45828134170136 \tabularnewline
71 & 133.3 & 128.291064830388 & 5.00893516961231 \tabularnewline
72 & 121.3 & 121.628188557074 & -0.3281885570741 \tabularnewline
73 & 120.5 & 120.11500116117 & 0.384998838829993 \tabularnewline
74 & 120.4 & 116.749164004130 & 3.65083599586978 \tabularnewline
75 & 137.9 & 134.905827268120 & 2.99417273187967 \tabularnewline
76 & 126.1 & 123.601721837975 & 2.49827816202465 \tabularnewline
77 & 133.2 & 126.096528862701 & 7.10347113729855 \tabularnewline
78 & 146.6 & 139.65817856282 & 6.94182143717986 \tabularnewline
79 & 103.4 & 106.453400128839 & -3.05340012883867 \tabularnewline
80 & 117.2 & 113.111826487387 & 4.08817351261252 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2529&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]97.3[/C][C]100.023975200363[/C][C]-2.72397520036250[/C][/ROW]
[ROW][C]2[/C][C]101[/C][C]101.723136845630[/C][C]-0.723136845630392[/C][/ROW]
[ROW][C]3[/C][C]113.2[/C][C]115.096805355254[/C][C]-1.89680535525428[/C][/ROW]
[ROW][C]4[/C][C]101[/C][C]104.146065661660[/C][C]-3.14606566165953[/C][/ROW]
[ROW][C]5[/C][C]105.7[/C][C]107.768041528412[/C][C]-2.06804152841156[/C][/ROW]
[ROW][C]6[/C][C]113.9[/C][C]115.244183411554[/C][C]-1.34418341155397[/C][/ROW]
[ROW][C]7[/C][C]86.4[/C][C]80.1740026683116[/C][C]6.2259973316884[/C][/ROW]
[ROW][C]8[/C][C]96.5[/C][C]91.71263531751[/C][C]4.78736468249[/C][/ROW]
[ROW][C]9[/C][C]103.3[/C][C]108.427125349292[/C][C]-5.12712534929224[/C][/ROW]
[ROW][C]10[/C][C]114.9[/C][C]114.871935853653[/C][C]0.0280641463473881[/C][/ROW]
[ROW][C]11[/C][C]105.8[/C][C]107.775722679788[/C][C]-1.97572267978820[/C][/ROW]
[ROW][C]12[/C][C]94.2[/C][C]97.273905325053[/C][C]-3.07390532505305[/C][/ROW]
[ROW][C]13[/C][C]98.4[/C][C]95.2939680370481[/C][C]3.10603196295189[/C][/ROW]
[ROW][C]14[/C][C]99.4[/C][C]97.9340246936277[/C][C]1.46597530637228[/C][/ROW]
[ROW][C]15[/C][C]108.8[/C][C]108.758236860595[/C][C]0.0417631394051853[/C][/ROW]
[ROW][C]16[/C][C]112.6[/C][C]109.642570085099[/C][C]2.95742991490081[/C][/ROW]
[ROW][C]17[/C][C]104.4[/C][C]106.517560812103[/C][C]-2.11756081210341[/C][/ROW]
[ROW][C]18[/C][C]112.2[/C][C]117.45974142387[/C][C]-5.25974142386991[/C][/ROW]
[ROW][C]19[/C][C]81.1[/C][C]84.308926256684[/C][C]-3.20892625668402[/C][/ROW]
[ROW][C]20[/C][C]97.1[/C][C]93.489875058188[/C][C]3.61012494181193[/C][/ROW]
[ROW][C]21[/C][C]112.6[/C][C]113.674597230237[/C][C]-1.07459723023742[/C][/ROW]
[ROW][C]22[/C][C]113.8[/C][C]121.062383022425[/C][C]-7.26238302242527[/C][/ROW]
[ROW][C]23[/C][C]107.8[/C][C]106.466050493331[/C][C]1.33394950666860[/C][/ROW]
[ROW][C]24[/C][C]103.2[/C][C]97.0189013753096[/C][C]6.18109862469045[/C][/ROW]
[ROW][C]25[/C][C]103.3[/C][C]95.6904115809951[/C][C]7.6095884190049[/C][/ROW]
[ROW][C]26[/C][C]101.2[/C][C]98.2970152689758[/C][C]2.90298473102420[/C][/ROW]
[ROW][C]27[/C][C]107.7[/C][C]104.763336267696[/C][C]2.93666373230412[/C][/ROW]
[ROW][C]28[/C][C]110.4[/C][C]103.839161783457[/C][C]6.56083821654324[/C][/ROW]
[ROW][C]29[/C][C]101.9[/C][C]103.244501826037[/C][C]-1.34450182603725[/C][/ROW]
[ROW][C]30[/C][C]115.9[/C][C]114.473726828405[/C][C]1.42627317159528[/C][/ROW]
[ROW][C]31[/C][C]89.9[/C][C]86.003610922385[/C][C]3.89638907761506[/C][/ROW]
[ROW][C]32[/C][C]88.6[/C][C]88.1151791630593[/C][C]0.484820836940652[/C][/ROW]
[ROW][C]33[/C][C]117.2[/C][C]111.200710333194[/C][C]5.99928966680645[/C][/ROW]
[ROW][C]34[/C][C]123.9[/C][C]114.637802560385[/C][C]9.26219743961537[/C][/ROW]
[ROW][C]35[/C][C]100[/C][C]104.067764346291[/C][C]-4.06776434629085[/C][/ROW]
[ROW][C]36[/C][C]103.6[/C][C]104.546859039602[/C][C]-0.946859039602222[/C][/ROW]
[ROW][C]37[/C][C]94.1[/C][C]94.930304066866[/C][C]-0.830304066865966[/C][/ROW]
[ROW][C]38[/C][C]98.7[/C][C]98.6505945037002[/C][C]0.049405496299805[/C][/ROW]
[ROW][C]39[/C][C]119.5[/C][C]115.660626168618[/C][C]3.8393738313824[/C][/ROW]
[ROW][C]40[/C][C]112.7[/C][C]113.483037117581[/C][C]-0.783037117581143[/C][/ROW]
[ROW][C]41[/C][C]104.4[/C][C]104.865227708933[/C][C]-0.465227708932678[/C][/ROW]
[ROW][C]42[/C][C]124.7[/C][C]120.718832225299[/C][C]3.98116777470095[/C][/ROW]
[ROW][C]43[/C][C]89.1[/C][C]87.3218141994142[/C][C]1.7781858005858[/C][/ROW]
[ROW][C]44[/C][C]97[/C][C]105.423248192910[/C][C]-8.42324819291023[/C][/ROW]
[ROW][C]45[/C][C]121.6[/C][C]120.245374301055[/C][C]1.35462569894487[/C][/ROW]
[ROW][C]46[/C][C]118.8[/C][C]120.122105481824[/C][C]-1.32210548182368[/C][/ROW]
[ROW][C]47[/C][C]114[/C][C]110.515059638059[/C][C]3.48494036194063[/C][/ROW]
[ROW][C]48[/C][C]111.5[/C][C]109.288055539146[/C][C]2.21194446085364[/C][/ROW]
[ROW][C]49[/C][C]97.2[/C][C]100.983422934150[/C][C]-3.78342293414957[/C][/ROW]
[ROW][C]50[/C][C]102.5[/C][C]105.036667309121[/C][C]-2.53666730912132[/C][/ROW]
[ROW][C]51[/C][C]113.4[/C][C]118.393303422121[/C][C]-4.99330342212055[/C][/ROW]
[ROW][C]52[/C][C]109.8[/C][C]113.749450565535[/C][C]-3.94945056553545[/C][/ROW]
[ROW][C]53[/C][C]104.9[/C][C]105.621171059465[/C][C]-0.721171059464924[/C][/ROW]
[ROW][C]54[/C][C]126.1[/C][C]130.304300871934[/C][C]-4.20430087193357[/C][/ROW]
[ROW][C]55[/C][C]80[/C][C]84.4413086651588[/C][C]-4.44130866515879[/C][/ROW]
[ROW][C]56[/C][C]96.8[/C][C]100.501645563630[/C][C]-3.70164556363032[/C][/ROW]
[ROW][C]57[/C][C]117.2[/C][C]120.405682355108[/C][C]-3.20568235510759[/C][/ROW]
[ROW][C]58[/C][C]112.3[/C][C]115.464054423415[/C][C]-3.16405442341517[/C][/ROW]
[ROW][C]59[/C][C]117.3[/C][C]121.084338012142[/C][C]-3.78433801214249[/C][/ROW]
[ROW][C]60[/C][C]111.1[/C][C]115.144090163815[/C][C]-4.04409016381471[/C][/ROW]
[ROW][C]61[/C][C]102.2[/C][C]105.962917019409[/C][C]-3.76291701940874[/C][/ROW]
[ROW][C]62[/C][C]104.3[/C][C]109.109397374814[/C][C]-4.80939737481435[/C][/ROW]
[ROW][C]63[/C][C]122.9[/C][C]125.821864657597[/C][C]-2.92186465759654[/C][/ROW]
[ROW][C]64[/C][C]107.6[/C][C]111.737992948693[/C][C]-4.13799294869257[/C][/ROW]
[ROW][C]65[/C][C]121.3[/C][C]121.686968202349[/C][C]-0.386968202348727[/C][/ROW]
[ROW][C]66[/C][C]131.5[/C][C]133.041036676119[/C][C]-1.54103667611865[/C][/ROW]
[ROW][C]67[/C][C]89[/C][C]90.1969371592078[/C][C]-1.19693715920777[/C][/ROW]
[ROW][C]68[/C][C]104.4[/C][C]105.245590217315[/C][C]-0.845590217314555[/C][/ROW]
[ROW][C]69[/C][C]128.9[/C][C]126.846510431114[/C][C]2.05348956888593[/C][/ROW]
[ROW][C]70[/C][C]135.9[/C][C]133.441718658299[/C][C]2.45828134170136[/C][/ROW]
[ROW][C]71[/C][C]133.3[/C][C]128.291064830388[/C][C]5.00893516961231[/C][/ROW]
[ROW][C]72[/C][C]121.3[/C][C]121.628188557074[/C][C]-0.3281885570741[/C][/ROW]
[ROW][C]73[/C][C]120.5[/C][C]120.11500116117[/C][C]0.384998838829993[/C][/ROW]
[ROW][C]74[/C][C]120.4[/C][C]116.749164004130[/C][C]3.65083599586978[/C][/ROW]
[ROW][C]75[/C][C]137.9[/C][C]134.905827268120[/C][C]2.99417273187967[/C][/ROW]
[ROW][C]76[/C][C]126.1[/C][C]123.601721837975[/C][C]2.49827816202465[/C][/ROW]
[ROW][C]77[/C][C]133.2[/C][C]126.096528862701[/C][C]7.10347113729855[/C][/ROW]
[ROW][C]78[/C][C]146.6[/C][C]139.65817856282[/C][C]6.94182143717986[/C][/ROW]
[ROW][C]79[/C][C]103.4[/C][C]106.453400128839[/C][C]-3.05340012883867[/C][/ROW]
[ROW][C]80[/C][C]117.2[/C][C]113.111826487387[/C][C]4.08817351261252[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2529&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2529&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
197.3100.023975200363-2.72397520036250
2101101.723136845630-0.723136845630392
3113.2115.096805355254-1.89680535525428
4101104.146065661660-3.14606566165953
5105.7107.768041528412-2.06804152841156
6113.9115.244183411554-1.34418341155397
786.480.17400266831166.2259973316884
896.591.712635317514.78736468249
9103.3108.427125349292-5.12712534929224
10114.9114.8719358536530.0280641463473881
11105.8107.775722679788-1.97572267978820
1294.297.273905325053-3.07390532505305
1398.495.29396803704813.10603196295189
1499.497.93402469362771.46597530637228
15108.8108.7582368605950.0417631394051853
16112.6109.6425700850992.95742991490081
17104.4106.517560812103-2.11756081210341
18112.2117.45974142387-5.25974142386991
1981.184.308926256684-3.20892625668402
2097.193.4898750581883.61012494181193
21112.6113.674597230237-1.07459723023742
22113.8121.062383022425-7.26238302242527
23107.8106.4660504933311.33394950666860
24103.297.01890137530966.18109862469045
25103.395.69041158099517.6095884190049
26101.298.29701526897582.90298473102420
27107.7104.7633362676962.93666373230412
28110.4103.8391617834576.56083821654324
29101.9103.244501826037-1.34450182603725
30115.9114.4737268284051.42627317159528
3189.986.0036109223853.89638907761506
3288.688.11517916305930.484820836940652
33117.2111.2007103331945.99928966680645
34123.9114.6378025603859.26219743961537
35100104.067764346291-4.06776434629085
36103.6104.546859039602-0.946859039602222
3794.194.930304066866-0.830304066865966
3898.798.65059450370020.049405496299805
39119.5115.6606261686183.8393738313824
40112.7113.483037117581-0.783037117581143
41104.4104.865227708933-0.465227708932678
42124.7120.7188322252993.98116777470095
4389.187.32181419941421.7781858005858
4497105.423248192910-8.42324819291023
45121.6120.2453743010551.35462569894487
46118.8120.122105481824-1.32210548182368
47114110.5150596380593.48494036194063
48111.5109.2880555391462.21194446085364
4997.2100.983422934150-3.78342293414957
50102.5105.036667309121-2.53666730912132
51113.4118.393303422121-4.99330342212055
52109.8113.749450565535-3.94945056553545
53104.9105.621171059465-0.721171059464924
54126.1130.304300871934-4.20430087193357
558084.4413086651588-4.44130866515879
5696.8100.501645563630-3.70164556363032
57117.2120.405682355108-3.20568235510759
58112.3115.464054423415-3.16405442341517
59117.3121.084338012142-3.78433801214249
60111.1115.144090163815-4.04409016381471
61102.2105.962917019409-3.76291701940874
62104.3109.109397374814-4.80939737481435
63122.9125.821864657597-2.92186465759654
64107.6111.737992948693-4.13799294869257
65121.3121.686968202349-0.386968202348727
66131.5133.041036676119-1.54103667611865
678990.1969371592078-1.19693715920777
68104.4105.245590217315-0.845590217314555
69128.9126.8465104311142.05348956888593
70135.9133.4417186582992.45828134170136
71133.3128.2910648303885.00893516961231
72121.3121.628188557074-0.3281885570741
73120.5120.115001161170.384998838829993
74120.4116.7491640041303.65083599586978
75137.9134.9058272681202.99417273187967
76126.1123.6017218379752.49827816202465
77133.2126.0965288627017.10347113729855
78146.6139.658178562826.94182143717986
79103.4106.453400128839-3.05340012883867
80117.2113.1118264873874.08817351261252



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