Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 11 Dec 2008 04:30:21 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/11/t1228995186glnma4bpcm2z8r9.htm/, Retrieved Sun, 19 May 2024 05:54:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32169, Retrieved Sun, 19 May 2024 05:54:44 +0000
QR Codes:

Original text written by user:In samenwerking met Katrien Bourdiaudhy, Stéphanie Claes en Kevin Engels
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact215
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
F    D  [Multiple Regression] [Q1 Case: the Seat...] [2008-11-19 13:07:53] [c993f605b206b366f754f7f8c1fcc291]
-   PD    [Multiple Regression] [Q3 seatbelt case] [2008-11-30 21:48:04] [7173087adebe3e3a714c80ea2417b3eb]
-    D        [Multiple Regression] [Multiple Linear R...] [2008-12-11 11:30:21] [70ba55c7ff8e068610dc28fc16e6d1e2] [Current]
-   P           [Multiple Regression] [Multiple Regressi...] [2008-12-11 11:59:09] [c993f605b206b366f754f7f8c1fcc291]
-   P           [Multiple Regression] [Multiple regressi...] [2008-12-11 12:01:46] [c993f605b206b366f754f7f8c1fcc291]
Feedback Forum

Post a new message
Dataseries X:
5.014	0
6.153	0
6.441	0
5.584	0
6.427	0
6.062	0
5.589	0
6.216	0
5.809	0
4.989	0
6.706	0
7.174	0
6.122	0
8.075	0
6.292	0
6.337	0
8.576	0
6.077	0
5.931	0
6.288	0
7.167	0
6.054	0
6.468	0
6.401	0
6.927	0
7.914	0
7.728	0
8.699	0
8.522	0
6.481	0
7.502	0
7.778	0
7.424	0
6.941	0
8.574	0
9.169	0
7.701	0
9.035	0
7.158	0
8.195	0
8.124	1
7.073	1
7.017	1
7.390	1
7.776	1
6.197	1
6.889	1
7.087	1
6.485	1
7.654	1
6.501	1
6.313	1
7.826	1
6.589	1
6.729	1
5.684	1
8.105	1
6.391	1
5.901	1
6.758	1




Summary of computational 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 computational 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=32169&T=0

[TABLE]
[ROW][C]Summary of computational 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=32169&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32169&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 computational 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] = + 6.9425 -0.0180499999999997x[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  6.9425 -0.0180499999999997x[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32169&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  6.9425 -0.0180499999999997x[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32169&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32169&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] = + 6.9425 -0.0180499999999997x[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)6.94250.15579544.561800
x-0.01804999999999970.269845-0.06690.9468990.47345

\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) & 6.9425 & 0.155795 & 44.5618 & 0 & 0 \tabularnewline
x & -0.0180499999999997 & 0.269845 & -0.0669 & 0.946899 & 0.47345 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32169&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]6.9425[/C][C]0.155795[/C][C]44.5618[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]-0.0180499999999997[/C][C]0.269845[/C][C]-0.0669[/C][C]0.946899[/C][C]0.47345[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32169&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32169&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)6.94250.15579544.561800
x-0.01804999999999970.269845-0.06690.9468990.47345







Multiple Linear Regression - Regression Statistics
Multiple R0.00878279030366604
R-squared7.71374055181702e-05
Adjusted R-squared-0.0171629119495591
F-TEST (value)0.00447431465707799
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.946899071062355
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.985333646888025
Sum Squared Residuals56.31117895

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.00878279030366604 \tabularnewline
R-squared & 7.71374055181702e-05 \tabularnewline
Adjusted R-squared & -0.0171629119495591 \tabularnewline
F-TEST (value) & 0.00447431465707799 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.946899071062355 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.985333646888025 \tabularnewline
Sum Squared Residuals & 56.31117895 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32169&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.00878279030366604[/C][/ROW]
[ROW][C]R-squared[/C][C]7.71374055181702e-05[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0171629119495591[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.00447431465707799[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.946899071062355[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.985333646888025[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]56.31117895[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32169&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32169&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.00878279030366604
R-squared7.71374055181702e-05
Adjusted R-squared-0.0171629119495591
F-TEST (value)0.00447431465707799
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.946899071062355
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.985333646888025
Sum Squared Residuals56.31117895







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
15.0146.9425-1.92850000000001
26.1536.9425-0.7895
36.4416.9425-0.5015
45.5846.9425-1.3585
56.4276.9425-0.5155
66.0626.9425-0.8805
75.5896.9425-1.3535
86.2166.9425-0.7265
95.8096.9425-1.1335
104.9896.9425-1.9535
116.7066.9425-0.236499999999999
127.1746.94250.231500000000001
136.1226.9425-0.8205
148.0756.94251.1325
156.2926.9425-0.6505
166.3376.9425-0.6055
178.5766.94251.6335
186.0776.9425-0.8655
195.9316.9425-1.0115
206.2886.9425-0.6545
217.1676.94250.2245
226.0546.9425-0.8885
236.4686.9425-0.4745
246.4016.9425-0.5415
256.9276.9425-0.0155000000000002
267.9146.94250.9715
277.7286.94250.7855
288.6996.94251.7565
298.5226.94251.5795
306.4816.9425-0.4615
317.5026.94250.5595
327.7786.94250.8355
337.4246.94250.4815
346.9416.9425-0.0015
358.5746.94251.6315
369.1696.94252.2265
377.7016.94250.7585
389.0356.94252.0925
397.1586.94250.215500000000001
408.1956.94251.2525
418.1246.924451.19955
427.0736.924450.148550000000000
437.0176.924450.0925500000000003
447.396.924450.46555
457.7766.924450.85155
466.1976.92445-0.72745
476.8896.92445-0.0354499999999998
487.0876.924450.162550000000000
496.4856.92445-0.43945
507.6546.924450.72955
516.5016.92445-0.42345
526.3136.92445-0.61145
537.8266.924450.90155
546.5896.92445-0.335450000000000
556.7296.92445-0.19545
565.6846.92445-1.24045
578.1056.924451.18055
586.3916.92445-0.53345
595.9016.92445-1.02345
606.7586.92445-0.16645

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 5.014 & 6.9425 & -1.92850000000001 \tabularnewline
2 & 6.153 & 6.9425 & -0.7895 \tabularnewline
3 & 6.441 & 6.9425 & -0.5015 \tabularnewline
4 & 5.584 & 6.9425 & -1.3585 \tabularnewline
5 & 6.427 & 6.9425 & -0.5155 \tabularnewline
6 & 6.062 & 6.9425 & -0.8805 \tabularnewline
7 & 5.589 & 6.9425 & -1.3535 \tabularnewline
8 & 6.216 & 6.9425 & -0.7265 \tabularnewline
9 & 5.809 & 6.9425 & -1.1335 \tabularnewline
10 & 4.989 & 6.9425 & -1.9535 \tabularnewline
11 & 6.706 & 6.9425 & -0.236499999999999 \tabularnewline
12 & 7.174 & 6.9425 & 0.231500000000001 \tabularnewline
13 & 6.122 & 6.9425 & -0.8205 \tabularnewline
14 & 8.075 & 6.9425 & 1.1325 \tabularnewline
15 & 6.292 & 6.9425 & -0.6505 \tabularnewline
16 & 6.337 & 6.9425 & -0.6055 \tabularnewline
17 & 8.576 & 6.9425 & 1.6335 \tabularnewline
18 & 6.077 & 6.9425 & -0.8655 \tabularnewline
19 & 5.931 & 6.9425 & -1.0115 \tabularnewline
20 & 6.288 & 6.9425 & -0.6545 \tabularnewline
21 & 7.167 & 6.9425 & 0.2245 \tabularnewline
22 & 6.054 & 6.9425 & -0.8885 \tabularnewline
23 & 6.468 & 6.9425 & -0.4745 \tabularnewline
24 & 6.401 & 6.9425 & -0.5415 \tabularnewline
25 & 6.927 & 6.9425 & -0.0155000000000002 \tabularnewline
26 & 7.914 & 6.9425 & 0.9715 \tabularnewline
27 & 7.728 & 6.9425 & 0.7855 \tabularnewline
28 & 8.699 & 6.9425 & 1.7565 \tabularnewline
29 & 8.522 & 6.9425 & 1.5795 \tabularnewline
30 & 6.481 & 6.9425 & -0.4615 \tabularnewline
31 & 7.502 & 6.9425 & 0.5595 \tabularnewline
32 & 7.778 & 6.9425 & 0.8355 \tabularnewline
33 & 7.424 & 6.9425 & 0.4815 \tabularnewline
34 & 6.941 & 6.9425 & -0.0015 \tabularnewline
35 & 8.574 & 6.9425 & 1.6315 \tabularnewline
36 & 9.169 & 6.9425 & 2.2265 \tabularnewline
37 & 7.701 & 6.9425 & 0.7585 \tabularnewline
38 & 9.035 & 6.9425 & 2.0925 \tabularnewline
39 & 7.158 & 6.9425 & 0.215500000000001 \tabularnewline
40 & 8.195 & 6.9425 & 1.2525 \tabularnewline
41 & 8.124 & 6.92445 & 1.19955 \tabularnewline
42 & 7.073 & 6.92445 & 0.148550000000000 \tabularnewline
43 & 7.017 & 6.92445 & 0.0925500000000003 \tabularnewline
44 & 7.39 & 6.92445 & 0.46555 \tabularnewline
45 & 7.776 & 6.92445 & 0.85155 \tabularnewline
46 & 6.197 & 6.92445 & -0.72745 \tabularnewline
47 & 6.889 & 6.92445 & -0.0354499999999998 \tabularnewline
48 & 7.087 & 6.92445 & 0.162550000000000 \tabularnewline
49 & 6.485 & 6.92445 & -0.43945 \tabularnewline
50 & 7.654 & 6.92445 & 0.72955 \tabularnewline
51 & 6.501 & 6.92445 & -0.42345 \tabularnewline
52 & 6.313 & 6.92445 & -0.61145 \tabularnewline
53 & 7.826 & 6.92445 & 0.90155 \tabularnewline
54 & 6.589 & 6.92445 & -0.335450000000000 \tabularnewline
55 & 6.729 & 6.92445 & -0.19545 \tabularnewline
56 & 5.684 & 6.92445 & -1.24045 \tabularnewline
57 & 8.105 & 6.92445 & 1.18055 \tabularnewline
58 & 6.391 & 6.92445 & -0.53345 \tabularnewline
59 & 5.901 & 6.92445 & -1.02345 \tabularnewline
60 & 6.758 & 6.92445 & -0.16645 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32169&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]5.014[/C][C]6.9425[/C][C]-1.92850000000001[/C][/ROW]
[ROW][C]2[/C][C]6.153[/C][C]6.9425[/C][C]-0.7895[/C][/ROW]
[ROW][C]3[/C][C]6.441[/C][C]6.9425[/C][C]-0.5015[/C][/ROW]
[ROW][C]4[/C][C]5.584[/C][C]6.9425[/C][C]-1.3585[/C][/ROW]
[ROW][C]5[/C][C]6.427[/C][C]6.9425[/C][C]-0.5155[/C][/ROW]
[ROW][C]6[/C][C]6.062[/C][C]6.9425[/C][C]-0.8805[/C][/ROW]
[ROW][C]7[/C][C]5.589[/C][C]6.9425[/C][C]-1.3535[/C][/ROW]
[ROW][C]8[/C][C]6.216[/C][C]6.9425[/C][C]-0.7265[/C][/ROW]
[ROW][C]9[/C][C]5.809[/C][C]6.9425[/C][C]-1.1335[/C][/ROW]
[ROW][C]10[/C][C]4.989[/C][C]6.9425[/C][C]-1.9535[/C][/ROW]
[ROW][C]11[/C][C]6.706[/C][C]6.9425[/C][C]-0.236499999999999[/C][/ROW]
[ROW][C]12[/C][C]7.174[/C][C]6.9425[/C][C]0.231500000000001[/C][/ROW]
[ROW][C]13[/C][C]6.122[/C][C]6.9425[/C][C]-0.8205[/C][/ROW]
[ROW][C]14[/C][C]8.075[/C][C]6.9425[/C][C]1.1325[/C][/ROW]
[ROW][C]15[/C][C]6.292[/C][C]6.9425[/C][C]-0.6505[/C][/ROW]
[ROW][C]16[/C][C]6.337[/C][C]6.9425[/C][C]-0.6055[/C][/ROW]
[ROW][C]17[/C][C]8.576[/C][C]6.9425[/C][C]1.6335[/C][/ROW]
[ROW][C]18[/C][C]6.077[/C][C]6.9425[/C][C]-0.8655[/C][/ROW]
[ROW][C]19[/C][C]5.931[/C][C]6.9425[/C][C]-1.0115[/C][/ROW]
[ROW][C]20[/C][C]6.288[/C][C]6.9425[/C][C]-0.6545[/C][/ROW]
[ROW][C]21[/C][C]7.167[/C][C]6.9425[/C][C]0.2245[/C][/ROW]
[ROW][C]22[/C][C]6.054[/C][C]6.9425[/C][C]-0.8885[/C][/ROW]
[ROW][C]23[/C][C]6.468[/C][C]6.9425[/C][C]-0.4745[/C][/ROW]
[ROW][C]24[/C][C]6.401[/C][C]6.9425[/C][C]-0.5415[/C][/ROW]
[ROW][C]25[/C][C]6.927[/C][C]6.9425[/C][C]-0.0155000000000002[/C][/ROW]
[ROW][C]26[/C][C]7.914[/C][C]6.9425[/C][C]0.9715[/C][/ROW]
[ROW][C]27[/C][C]7.728[/C][C]6.9425[/C][C]0.7855[/C][/ROW]
[ROW][C]28[/C][C]8.699[/C][C]6.9425[/C][C]1.7565[/C][/ROW]
[ROW][C]29[/C][C]8.522[/C][C]6.9425[/C][C]1.5795[/C][/ROW]
[ROW][C]30[/C][C]6.481[/C][C]6.9425[/C][C]-0.4615[/C][/ROW]
[ROW][C]31[/C][C]7.502[/C][C]6.9425[/C][C]0.5595[/C][/ROW]
[ROW][C]32[/C][C]7.778[/C][C]6.9425[/C][C]0.8355[/C][/ROW]
[ROW][C]33[/C][C]7.424[/C][C]6.9425[/C][C]0.4815[/C][/ROW]
[ROW][C]34[/C][C]6.941[/C][C]6.9425[/C][C]-0.0015[/C][/ROW]
[ROW][C]35[/C][C]8.574[/C][C]6.9425[/C][C]1.6315[/C][/ROW]
[ROW][C]36[/C][C]9.169[/C][C]6.9425[/C][C]2.2265[/C][/ROW]
[ROW][C]37[/C][C]7.701[/C][C]6.9425[/C][C]0.7585[/C][/ROW]
[ROW][C]38[/C][C]9.035[/C][C]6.9425[/C][C]2.0925[/C][/ROW]
[ROW][C]39[/C][C]7.158[/C][C]6.9425[/C][C]0.215500000000001[/C][/ROW]
[ROW][C]40[/C][C]8.195[/C][C]6.9425[/C][C]1.2525[/C][/ROW]
[ROW][C]41[/C][C]8.124[/C][C]6.92445[/C][C]1.19955[/C][/ROW]
[ROW][C]42[/C][C]7.073[/C][C]6.92445[/C][C]0.148550000000000[/C][/ROW]
[ROW][C]43[/C][C]7.017[/C][C]6.92445[/C][C]0.0925500000000003[/C][/ROW]
[ROW][C]44[/C][C]7.39[/C][C]6.92445[/C][C]0.46555[/C][/ROW]
[ROW][C]45[/C][C]7.776[/C][C]6.92445[/C][C]0.85155[/C][/ROW]
[ROW][C]46[/C][C]6.197[/C][C]6.92445[/C][C]-0.72745[/C][/ROW]
[ROW][C]47[/C][C]6.889[/C][C]6.92445[/C][C]-0.0354499999999998[/C][/ROW]
[ROW][C]48[/C][C]7.087[/C][C]6.92445[/C][C]0.162550000000000[/C][/ROW]
[ROW][C]49[/C][C]6.485[/C][C]6.92445[/C][C]-0.43945[/C][/ROW]
[ROW][C]50[/C][C]7.654[/C][C]6.92445[/C][C]0.72955[/C][/ROW]
[ROW][C]51[/C][C]6.501[/C][C]6.92445[/C][C]-0.42345[/C][/ROW]
[ROW][C]52[/C][C]6.313[/C][C]6.92445[/C][C]-0.61145[/C][/ROW]
[ROW][C]53[/C][C]7.826[/C][C]6.92445[/C][C]0.90155[/C][/ROW]
[ROW][C]54[/C][C]6.589[/C][C]6.92445[/C][C]-0.335450000000000[/C][/ROW]
[ROW][C]55[/C][C]6.729[/C][C]6.92445[/C][C]-0.19545[/C][/ROW]
[ROW][C]56[/C][C]5.684[/C][C]6.92445[/C][C]-1.24045[/C][/ROW]
[ROW][C]57[/C][C]8.105[/C][C]6.92445[/C][C]1.18055[/C][/ROW]
[ROW][C]58[/C][C]6.391[/C][C]6.92445[/C][C]-0.53345[/C][/ROW]
[ROW][C]59[/C][C]5.901[/C][C]6.92445[/C][C]-1.02345[/C][/ROW]
[ROW][C]60[/C][C]6.758[/C][C]6.92445[/C][C]-0.16645[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32169&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32169&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
15.0146.9425-1.92850000000001
26.1536.9425-0.7895
36.4416.9425-0.5015
45.5846.9425-1.3585
56.4276.9425-0.5155
66.0626.9425-0.8805
75.5896.9425-1.3535
86.2166.9425-0.7265
95.8096.9425-1.1335
104.9896.9425-1.9535
116.7066.9425-0.236499999999999
127.1746.94250.231500000000001
136.1226.9425-0.8205
148.0756.94251.1325
156.2926.9425-0.6505
166.3376.9425-0.6055
178.5766.94251.6335
186.0776.9425-0.8655
195.9316.9425-1.0115
206.2886.9425-0.6545
217.1676.94250.2245
226.0546.9425-0.8885
236.4686.9425-0.4745
246.4016.9425-0.5415
256.9276.9425-0.0155000000000002
267.9146.94250.9715
277.7286.94250.7855
288.6996.94251.7565
298.5226.94251.5795
306.4816.9425-0.4615
317.5026.94250.5595
327.7786.94250.8355
337.4246.94250.4815
346.9416.9425-0.0015
358.5746.94251.6315
369.1696.94252.2265
377.7016.94250.7585
389.0356.94252.0925
397.1586.94250.215500000000001
408.1956.94251.2525
418.1246.924451.19955
427.0736.924450.148550000000000
437.0176.924450.0925500000000003
447.396.924450.46555
457.7766.924450.85155
466.1976.92445-0.72745
476.8896.92445-0.0354499999999998
487.0876.924450.162550000000000
496.4856.92445-0.43945
507.6546.924450.72955
516.5016.92445-0.42345
526.3136.92445-0.61145
537.8266.924450.90155
546.5896.92445-0.335450000000000
556.7296.92445-0.19545
565.6846.92445-1.24045
578.1056.924451.18055
586.3916.92445-0.53345
595.9016.92445-1.02345
606.7586.92445-0.16645



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