Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 29 Nov 2007 02:53:56 -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/29/t1196329444bvmwcj5hwzo5jps.htm/, Retrieved Fri, 03 May 2024 08:26:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=7331, Retrieved Fri, 03 May 2024 08:26:57 +0000
QR Codes:

Original text written by user:paper
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] [multiple regressi...] [2007-11-29 09:53:56] [a04acf73ce4b7e85f8287f21ada159c8] [Current]
Feedback Forum

Post a new message
Dataseries X:
90.8	0
96.4	0
90	0
92.1	0
97.2	0
95.1	0
88.5	0
91	0
90.5	0
75	0
66.3	0
66	0
68.4	0
70.6	0
83.9	0
90.1	0
90.6	0
87.1	0
90.8	0
94.1	0
99.8	0
96.8	0
87	0
96.3	0
107.1	0
115.2	0
106.1	1
89.5	1
91.3	1
97.6	1
100.7	1
104.6	1
94.7	1
101.8	1
102.5	1
105.3	1
110.3	1
109.8	1
117.3	1
118.8	1
131.3	1
125.9	1
133.1	1
147	1
145.8	1
164.4	1
149.8	1
137.7	1
151.7	1
156.8	1
180	1
180.4	1
170.4	1
191.6	1
199.5	1
218.2	1
217.5	1
205	1
194	1
199.3	1
219.3	1
211.1	1
215.2	1
240.2	1
242.2	1
240.7	1
255.4	1
253	1
218.2	1
203.7	1
205.6	1
215.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=7331&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=7331&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7331&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
Aardolie[t] = + 86.4925170068026 + 75.3112244897961Irakoorlog[t] + 0.451870748299337M1[t] + 2.50187074829923M2[t] -4.61666666666666M3[t] -1.51666666666667M4[t] + 0.466666666666678M5[t] + 2.96666666666668M6[t] + 7.96666666666666M7[t] + 14.6166666666667M8[t] + 7.71666666666667M9[t] + 4.41666666666667M10[t] -2.5M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Aardolie[t] =  +  86.4925170068026 +  75.3112244897961Irakoorlog[t] +  0.451870748299337M1[t] +  2.50187074829923M2[t] -4.61666666666666M3[t] -1.51666666666667M4[t] +  0.466666666666678M5[t] +  2.96666666666668M6[t] +  7.96666666666666M7[t] +  14.6166666666667M8[t] +  7.71666666666667M9[t] +  4.41666666666667M10[t] -2.5M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7331&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Aardolie[t] =  +  86.4925170068026 +  75.3112244897961Irakoorlog[t] +  0.451870748299337M1[t] +  2.50187074829923M2[t] -4.61666666666666M3[t] -1.51666666666667M4[t] +  0.466666666666678M5[t] +  2.96666666666668M6[t] +  7.96666666666666M7[t] +  14.6166666666667M8[t] +  7.71666666666667M9[t] +  4.41666666666667M10[t] -2.5M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7331&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7331&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
Aardolie[t] = + 86.4925170068026 + 75.3112244897961Irakoorlog[t] + 0.451870748299337M1[t] + 2.50187074829923M2[t] -4.61666666666666M3[t] -1.51666666666667M4[t] + 0.466666666666678M5[t] + 2.96666666666668M6[t] + 7.96666666666666M7[t] + 14.6166666666667M8[t] + 7.71666666666667M9[t] + 4.41666666666667M10[t] -2.5M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)86.492517006802620.0197054.32046.1e-053e-05
Irakoorlog75.311224489796111.2501036.694300
M10.45187074829933726.317120.01720.9863590.493179
M22.5018707482992326.317120.09510.9245840.462292
M3-4.6166666666666626.25024-0.17590.8609970.430499
M4-1.5166666666666726.25024-0.05780.9541210.477061
M50.46666666666667826.250240.01780.9858760.492938
M62.9666666666666826.250240.1130.9104020.455201
M77.9666666666666626.250240.30350.7625850.381292
M814.616666666666726.250240.55680.5797560.289878
M97.7166666666666726.250240.2940.7698160.384908
M104.4166666666666726.250240.16830.866960.43348
M11-2.526.25024-0.09520.9244490.462225

\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) & 86.4925170068026 & 20.019705 & 4.3204 & 6.1e-05 & 3e-05 \tabularnewline
Irakoorlog & 75.3112244897961 & 11.250103 & 6.6943 & 0 & 0 \tabularnewline
M1 & 0.451870748299337 & 26.31712 & 0.0172 & 0.986359 & 0.493179 \tabularnewline
M2 & 2.50187074829923 & 26.31712 & 0.0951 & 0.924584 & 0.462292 \tabularnewline
M3 & -4.61666666666666 & 26.25024 & -0.1759 & 0.860997 & 0.430499 \tabularnewline
M4 & -1.51666666666667 & 26.25024 & -0.0578 & 0.954121 & 0.477061 \tabularnewline
M5 & 0.466666666666678 & 26.25024 & 0.0178 & 0.985876 & 0.492938 \tabularnewline
M6 & 2.96666666666668 & 26.25024 & 0.113 & 0.910402 & 0.455201 \tabularnewline
M7 & 7.96666666666666 & 26.25024 & 0.3035 & 0.762585 & 0.381292 \tabularnewline
M8 & 14.6166666666667 & 26.25024 & 0.5568 & 0.579756 & 0.289878 \tabularnewline
M9 & 7.71666666666667 & 26.25024 & 0.294 & 0.769816 & 0.384908 \tabularnewline
M10 & 4.41666666666667 & 26.25024 & 0.1683 & 0.86696 & 0.43348 \tabularnewline
M11 & -2.5 & 26.25024 & -0.0952 & 0.924449 & 0.462225 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7331&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]86.4925170068026[/C][C]20.019705[/C][C]4.3204[/C][C]6.1e-05[/C][C]3e-05[/C][/ROW]
[ROW][C]Irakoorlog[/C][C]75.3112244897961[/C][C]11.250103[/C][C]6.6943[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.451870748299337[/C][C]26.31712[/C][C]0.0172[/C][C]0.986359[/C][C]0.493179[/C][/ROW]
[ROW][C]M2[/C][C]2.50187074829923[/C][C]26.31712[/C][C]0.0951[/C][C]0.924584[/C][C]0.462292[/C][/ROW]
[ROW][C]M3[/C][C]-4.61666666666666[/C][C]26.25024[/C][C]-0.1759[/C][C]0.860997[/C][C]0.430499[/C][/ROW]
[ROW][C]M4[/C][C]-1.51666666666667[/C][C]26.25024[/C][C]-0.0578[/C][C]0.954121[/C][C]0.477061[/C][/ROW]
[ROW][C]M5[/C][C]0.466666666666678[/C][C]26.25024[/C][C]0.0178[/C][C]0.985876[/C][C]0.492938[/C][/ROW]
[ROW][C]M6[/C][C]2.96666666666668[/C][C]26.25024[/C][C]0.113[/C][C]0.910402[/C][C]0.455201[/C][/ROW]
[ROW][C]M7[/C][C]7.96666666666666[/C][C]26.25024[/C][C]0.3035[/C][C]0.762585[/C][C]0.381292[/C][/ROW]
[ROW][C]M8[/C][C]14.6166666666667[/C][C]26.25024[/C][C]0.5568[/C][C]0.579756[/C][C]0.289878[/C][/ROW]
[ROW][C]M9[/C][C]7.71666666666667[/C][C]26.25024[/C][C]0.294[/C][C]0.769816[/C][C]0.384908[/C][/ROW]
[ROW][C]M10[/C][C]4.41666666666667[/C][C]26.25024[/C][C]0.1683[/C][C]0.86696[/C][C]0.43348[/C][/ROW]
[ROW][C]M11[/C][C]-2.5[/C][C]26.25024[/C][C]-0.0952[/C][C]0.924449[/C][C]0.462225[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7331&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7331&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)86.492517006802620.0197054.32046.1e-053e-05
Irakoorlog75.311224489796111.2501036.694300
M10.45187074829933726.317120.01720.9863590.493179
M22.5018707482992326.317120.09510.9245840.462292
M3-4.6166666666666626.25024-0.17590.8609970.430499
M4-1.5166666666666726.25024-0.05780.9541210.477061
M50.46666666666667826.250240.01780.9858760.492938
M62.9666666666666826.250240.1130.9104020.455201
M77.9666666666666626.250240.30350.7625850.381292
M814.616666666666726.250240.55680.5797560.289878
M97.7166666666666726.250240.2940.7698160.384908
M104.4166666666666726.250240.16830.866960.43348
M11-2.526.25024-0.09520.9244490.462225







Multiple Linear Regression - Regression Statistics
Multiple R0.664553012068554
R-squared0.441630705849387
Adjusted R-squared0.328064069750957
F-TEST (value)3.88873634917406
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value0.000215146292460888
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation45.4667497447671
Sum Squared Residuals121966.294608844

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.664553012068554 \tabularnewline
R-squared & 0.441630705849387 \tabularnewline
Adjusted R-squared & 0.328064069750957 \tabularnewline
F-TEST (value) & 3.88873634917406 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.000215146292460888 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 45.4667497447671 \tabularnewline
Sum Squared Residuals & 121966.294608844 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7331&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.664553012068554[/C][/ROW]
[ROW][C]R-squared[/C][C]0.441630705849387[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.328064069750957[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.88873634917406[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]0.000215146292460888[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]45.4667497447671[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]121966.294608844[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7331&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7331&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.664553012068554
R-squared0.441630705849387
Adjusted R-squared0.328064069750957
F-TEST (value)3.88873634917406
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value0.000215146292460888
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation45.4667497447671
Sum Squared Residuals121966.294608844







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
190.886.9443877551023.85561224489801
296.488.99438775510257.4056122448975
39081.8758503401368.12414965986397
492.184.9758503401367.12414965986395
597.286.959183673469410.2408163265306
695.189.45918367346945.64081632653064
788.594.4591836734694-5.95918367346938
891101.109183673469-10.1091836734694
990.594.2091836734694-3.70918367346938
107590.9091836734694-15.9091836734694
1166.383.9925170068027-17.6925170068027
126686.4925170068027-20.4925170068027
1368.486.944387755102-18.5443877551021
1470.688.994387755102-18.3943877551019
1583.981.8758503401362.02414965986396
1690.184.9758503401365.12414965986395
1790.686.95918367346943.64081632653062
1887.189.4591836734694-2.35918367346937
1990.894.4591836734694-3.65918367346937
2094.1101.109183673469-7.00918367346936
2199.894.20918367346945.59081632653062
2296.890.90918367346945.89081632653062
238783.99251700680273.00748299319730
2496.386.49251700680279.8074829931973
25107.186.94438775510220.1556122448979
26115.288.99438775510226.2056122448981
27106.1157.187074829932-51.087074829932
2889.5160.287074829932-70.787074829932
2991.3162.270408163265-70.9704081632653
3097.6164.770408163265-67.1704081632653
31100.7169.770408163265-69.0704081632653
32104.6176.420408163265-71.8204081632653
3394.7169.520408163265-74.8204081632653
34101.8166.220408163265-64.4204081632653
35102.5159.303741496599-56.8037414965987
36105.3161.803741496599-56.5037414965986
37110.3162.255612244898-51.955612244898
38109.8164.305612244898-54.5056122448979
39117.3157.187074829932-39.887074829932
40118.8160.287074829932-41.487074829932
41131.3162.270408163265-30.9704081632653
42125.9164.770408163265-38.8704081632653
43133.1169.770408163265-36.6704081632653
44147176.420408163265-29.4204081632653
45145.8169.520408163265-23.7204081632653
46164.4166.220408163265-1.82040816326531
47149.8159.303741496599-9.50374149659863
48137.7161.803741496599-24.1037414965986
49151.7162.255612244898-10.555612244898
50156.8164.305612244898-7.50561224489786
51180157.18707482993222.812925170068
52180.4160.28707482993220.1129251700680
53170.4162.2704081632658.1295918367347
54191.6164.77040816326526.8295918367347
55199.5169.77040816326529.7295918367347
56218.2176.42040816326541.7795918367347
57217.5169.52040816326547.9795918367347
58205166.22040816326538.7795918367347
59194159.30374149659934.6962585034014
60199.3161.80374149659937.4962585034014
61219.3162.25561224489857.044387755102
62211.1164.30561224489846.7943877551021
63215.2157.18707482993258.012925170068
64240.2160.28707482993279.912925170068
65242.2162.27040816326579.9295918367347
66240.7164.77040816326575.9295918367346
67255.4169.77040816326585.6295918367347
68253176.42040816326576.5795918367347
69218.2169.52040816326548.6795918367347
70203.7166.22040816326537.4795918367347
71205.6159.30374149659946.2962585034013
72215.6161.80374149659953.7962585034014

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 90.8 & 86.944387755102 & 3.85561224489801 \tabularnewline
2 & 96.4 & 88.9943877551025 & 7.4056122448975 \tabularnewline
3 & 90 & 81.875850340136 & 8.12414965986397 \tabularnewline
4 & 92.1 & 84.975850340136 & 7.12414965986395 \tabularnewline
5 & 97.2 & 86.9591836734694 & 10.2408163265306 \tabularnewline
6 & 95.1 & 89.4591836734694 & 5.64081632653064 \tabularnewline
7 & 88.5 & 94.4591836734694 & -5.95918367346938 \tabularnewline
8 & 91 & 101.109183673469 & -10.1091836734694 \tabularnewline
9 & 90.5 & 94.2091836734694 & -3.70918367346938 \tabularnewline
10 & 75 & 90.9091836734694 & -15.9091836734694 \tabularnewline
11 & 66.3 & 83.9925170068027 & -17.6925170068027 \tabularnewline
12 & 66 & 86.4925170068027 & -20.4925170068027 \tabularnewline
13 & 68.4 & 86.944387755102 & -18.5443877551021 \tabularnewline
14 & 70.6 & 88.994387755102 & -18.3943877551019 \tabularnewline
15 & 83.9 & 81.875850340136 & 2.02414965986396 \tabularnewline
16 & 90.1 & 84.975850340136 & 5.12414965986395 \tabularnewline
17 & 90.6 & 86.9591836734694 & 3.64081632653062 \tabularnewline
18 & 87.1 & 89.4591836734694 & -2.35918367346937 \tabularnewline
19 & 90.8 & 94.4591836734694 & -3.65918367346937 \tabularnewline
20 & 94.1 & 101.109183673469 & -7.00918367346936 \tabularnewline
21 & 99.8 & 94.2091836734694 & 5.59081632653062 \tabularnewline
22 & 96.8 & 90.9091836734694 & 5.89081632653062 \tabularnewline
23 & 87 & 83.9925170068027 & 3.00748299319730 \tabularnewline
24 & 96.3 & 86.4925170068027 & 9.8074829931973 \tabularnewline
25 & 107.1 & 86.944387755102 & 20.1556122448979 \tabularnewline
26 & 115.2 & 88.994387755102 & 26.2056122448981 \tabularnewline
27 & 106.1 & 157.187074829932 & -51.087074829932 \tabularnewline
28 & 89.5 & 160.287074829932 & -70.787074829932 \tabularnewline
29 & 91.3 & 162.270408163265 & -70.9704081632653 \tabularnewline
30 & 97.6 & 164.770408163265 & -67.1704081632653 \tabularnewline
31 & 100.7 & 169.770408163265 & -69.0704081632653 \tabularnewline
32 & 104.6 & 176.420408163265 & -71.8204081632653 \tabularnewline
33 & 94.7 & 169.520408163265 & -74.8204081632653 \tabularnewline
34 & 101.8 & 166.220408163265 & -64.4204081632653 \tabularnewline
35 & 102.5 & 159.303741496599 & -56.8037414965987 \tabularnewline
36 & 105.3 & 161.803741496599 & -56.5037414965986 \tabularnewline
37 & 110.3 & 162.255612244898 & -51.955612244898 \tabularnewline
38 & 109.8 & 164.305612244898 & -54.5056122448979 \tabularnewline
39 & 117.3 & 157.187074829932 & -39.887074829932 \tabularnewline
40 & 118.8 & 160.287074829932 & -41.487074829932 \tabularnewline
41 & 131.3 & 162.270408163265 & -30.9704081632653 \tabularnewline
42 & 125.9 & 164.770408163265 & -38.8704081632653 \tabularnewline
43 & 133.1 & 169.770408163265 & -36.6704081632653 \tabularnewline
44 & 147 & 176.420408163265 & -29.4204081632653 \tabularnewline
45 & 145.8 & 169.520408163265 & -23.7204081632653 \tabularnewline
46 & 164.4 & 166.220408163265 & -1.82040816326531 \tabularnewline
47 & 149.8 & 159.303741496599 & -9.50374149659863 \tabularnewline
48 & 137.7 & 161.803741496599 & -24.1037414965986 \tabularnewline
49 & 151.7 & 162.255612244898 & -10.555612244898 \tabularnewline
50 & 156.8 & 164.305612244898 & -7.50561224489786 \tabularnewline
51 & 180 & 157.187074829932 & 22.812925170068 \tabularnewline
52 & 180.4 & 160.287074829932 & 20.1129251700680 \tabularnewline
53 & 170.4 & 162.270408163265 & 8.1295918367347 \tabularnewline
54 & 191.6 & 164.770408163265 & 26.8295918367347 \tabularnewline
55 & 199.5 & 169.770408163265 & 29.7295918367347 \tabularnewline
56 & 218.2 & 176.420408163265 & 41.7795918367347 \tabularnewline
57 & 217.5 & 169.520408163265 & 47.9795918367347 \tabularnewline
58 & 205 & 166.220408163265 & 38.7795918367347 \tabularnewline
59 & 194 & 159.303741496599 & 34.6962585034014 \tabularnewline
60 & 199.3 & 161.803741496599 & 37.4962585034014 \tabularnewline
61 & 219.3 & 162.255612244898 & 57.044387755102 \tabularnewline
62 & 211.1 & 164.305612244898 & 46.7943877551021 \tabularnewline
63 & 215.2 & 157.187074829932 & 58.012925170068 \tabularnewline
64 & 240.2 & 160.287074829932 & 79.912925170068 \tabularnewline
65 & 242.2 & 162.270408163265 & 79.9295918367347 \tabularnewline
66 & 240.7 & 164.770408163265 & 75.9295918367346 \tabularnewline
67 & 255.4 & 169.770408163265 & 85.6295918367347 \tabularnewline
68 & 253 & 176.420408163265 & 76.5795918367347 \tabularnewline
69 & 218.2 & 169.520408163265 & 48.6795918367347 \tabularnewline
70 & 203.7 & 166.220408163265 & 37.4795918367347 \tabularnewline
71 & 205.6 & 159.303741496599 & 46.2962585034013 \tabularnewline
72 & 215.6 & 161.803741496599 & 53.7962585034014 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=7331&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]90.8[/C][C]86.944387755102[/C][C]3.85561224489801[/C][/ROW]
[ROW][C]2[/C][C]96.4[/C][C]88.9943877551025[/C][C]7.4056122448975[/C][/ROW]
[ROW][C]3[/C][C]90[/C][C]81.875850340136[/C][C]8.12414965986397[/C][/ROW]
[ROW][C]4[/C][C]92.1[/C][C]84.975850340136[/C][C]7.12414965986395[/C][/ROW]
[ROW][C]5[/C][C]97.2[/C][C]86.9591836734694[/C][C]10.2408163265306[/C][/ROW]
[ROW][C]6[/C][C]95.1[/C][C]89.4591836734694[/C][C]5.64081632653064[/C][/ROW]
[ROW][C]7[/C][C]88.5[/C][C]94.4591836734694[/C][C]-5.95918367346938[/C][/ROW]
[ROW][C]8[/C][C]91[/C][C]101.109183673469[/C][C]-10.1091836734694[/C][/ROW]
[ROW][C]9[/C][C]90.5[/C][C]94.2091836734694[/C][C]-3.70918367346938[/C][/ROW]
[ROW][C]10[/C][C]75[/C][C]90.9091836734694[/C][C]-15.9091836734694[/C][/ROW]
[ROW][C]11[/C][C]66.3[/C][C]83.9925170068027[/C][C]-17.6925170068027[/C][/ROW]
[ROW][C]12[/C][C]66[/C][C]86.4925170068027[/C][C]-20.4925170068027[/C][/ROW]
[ROW][C]13[/C][C]68.4[/C][C]86.944387755102[/C][C]-18.5443877551021[/C][/ROW]
[ROW][C]14[/C][C]70.6[/C][C]88.994387755102[/C][C]-18.3943877551019[/C][/ROW]
[ROW][C]15[/C][C]83.9[/C][C]81.875850340136[/C][C]2.02414965986396[/C][/ROW]
[ROW][C]16[/C][C]90.1[/C][C]84.975850340136[/C][C]5.12414965986395[/C][/ROW]
[ROW][C]17[/C][C]90.6[/C][C]86.9591836734694[/C][C]3.64081632653062[/C][/ROW]
[ROW][C]18[/C][C]87.1[/C][C]89.4591836734694[/C][C]-2.35918367346937[/C][/ROW]
[ROW][C]19[/C][C]90.8[/C][C]94.4591836734694[/C][C]-3.65918367346937[/C][/ROW]
[ROW][C]20[/C][C]94.1[/C][C]101.109183673469[/C][C]-7.00918367346936[/C][/ROW]
[ROW][C]21[/C][C]99.8[/C][C]94.2091836734694[/C][C]5.59081632653062[/C][/ROW]
[ROW][C]22[/C][C]96.8[/C][C]90.9091836734694[/C][C]5.89081632653062[/C][/ROW]
[ROW][C]23[/C][C]87[/C][C]83.9925170068027[/C][C]3.00748299319730[/C][/ROW]
[ROW][C]24[/C][C]96.3[/C][C]86.4925170068027[/C][C]9.8074829931973[/C][/ROW]
[ROW][C]25[/C][C]107.1[/C][C]86.944387755102[/C][C]20.1556122448979[/C][/ROW]
[ROW][C]26[/C][C]115.2[/C][C]88.994387755102[/C][C]26.2056122448981[/C][/ROW]
[ROW][C]27[/C][C]106.1[/C][C]157.187074829932[/C][C]-51.087074829932[/C][/ROW]
[ROW][C]28[/C][C]89.5[/C][C]160.287074829932[/C][C]-70.787074829932[/C][/ROW]
[ROW][C]29[/C][C]91.3[/C][C]162.270408163265[/C][C]-70.9704081632653[/C][/ROW]
[ROW][C]30[/C][C]97.6[/C][C]164.770408163265[/C][C]-67.1704081632653[/C][/ROW]
[ROW][C]31[/C][C]100.7[/C][C]169.770408163265[/C][C]-69.0704081632653[/C][/ROW]
[ROW][C]32[/C][C]104.6[/C][C]176.420408163265[/C][C]-71.8204081632653[/C][/ROW]
[ROW][C]33[/C][C]94.7[/C][C]169.520408163265[/C][C]-74.8204081632653[/C][/ROW]
[ROW][C]34[/C][C]101.8[/C][C]166.220408163265[/C][C]-64.4204081632653[/C][/ROW]
[ROW][C]35[/C][C]102.5[/C][C]159.303741496599[/C][C]-56.8037414965987[/C][/ROW]
[ROW][C]36[/C][C]105.3[/C][C]161.803741496599[/C][C]-56.5037414965986[/C][/ROW]
[ROW][C]37[/C][C]110.3[/C][C]162.255612244898[/C][C]-51.955612244898[/C][/ROW]
[ROW][C]38[/C][C]109.8[/C][C]164.305612244898[/C][C]-54.5056122448979[/C][/ROW]
[ROW][C]39[/C][C]117.3[/C][C]157.187074829932[/C][C]-39.887074829932[/C][/ROW]
[ROW][C]40[/C][C]118.8[/C][C]160.287074829932[/C][C]-41.487074829932[/C][/ROW]
[ROW][C]41[/C][C]131.3[/C][C]162.270408163265[/C][C]-30.9704081632653[/C][/ROW]
[ROW][C]42[/C][C]125.9[/C][C]164.770408163265[/C][C]-38.8704081632653[/C][/ROW]
[ROW][C]43[/C][C]133.1[/C][C]169.770408163265[/C][C]-36.6704081632653[/C][/ROW]
[ROW][C]44[/C][C]147[/C][C]176.420408163265[/C][C]-29.4204081632653[/C][/ROW]
[ROW][C]45[/C][C]145.8[/C][C]169.520408163265[/C][C]-23.7204081632653[/C][/ROW]
[ROW][C]46[/C][C]164.4[/C][C]166.220408163265[/C][C]-1.82040816326531[/C][/ROW]
[ROW][C]47[/C][C]149.8[/C][C]159.303741496599[/C][C]-9.50374149659863[/C][/ROW]
[ROW][C]48[/C][C]137.7[/C][C]161.803741496599[/C][C]-24.1037414965986[/C][/ROW]
[ROW][C]49[/C][C]151.7[/C][C]162.255612244898[/C][C]-10.555612244898[/C][/ROW]
[ROW][C]50[/C][C]156.8[/C][C]164.305612244898[/C][C]-7.50561224489786[/C][/ROW]
[ROW][C]51[/C][C]180[/C][C]157.187074829932[/C][C]22.812925170068[/C][/ROW]
[ROW][C]52[/C][C]180.4[/C][C]160.287074829932[/C][C]20.1129251700680[/C][/ROW]
[ROW][C]53[/C][C]170.4[/C][C]162.270408163265[/C][C]8.1295918367347[/C][/ROW]
[ROW][C]54[/C][C]191.6[/C][C]164.770408163265[/C][C]26.8295918367347[/C][/ROW]
[ROW][C]55[/C][C]199.5[/C][C]169.770408163265[/C][C]29.7295918367347[/C][/ROW]
[ROW][C]56[/C][C]218.2[/C][C]176.420408163265[/C][C]41.7795918367347[/C][/ROW]
[ROW][C]57[/C][C]217.5[/C][C]169.520408163265[/C][C]47.9795918367347[/C][/ROW]
[ROW][C]58[/C][C]205[/C][C]166.220408163265[/C][C]38.7795918367347[/C][/ROW]
[ROW][C]59[/C][C]194[/C][C]159.303741496599[/C][C]34.6962585034014[/C][/ROW]
[ROW][C]60[/C][C]199.3[/C][C]161.803741496599[/C][C]37.4962585034014[/C][/ROW]
[ROW][C]61[/C][C]219.3[/C][C]162.255612244898[/C][C]57.044387755102[/C][/ROW]
[ROW][C]62[/C][C]211.1[/C][C]164.305612244898[/C][C]46.7943877551021[/C][/ROW]
[ROW][C]63[/C][C]215.2[/C][C]157.187074829932[/C][C]58.012925170068[/C][/ROW]
[ROW][C]64[/C][C]240.2[/C][C]160.287074829932[/C][C]79.912925170068[/C][/ROW]
[ROW][C]65[/C][C]242.2[/C][C]162.270408163265[/C][C]79.9295918367347[/C][/ROW]
[ROW][C]66[/C][C]240.7[/C][C]164.770408163265[/C][C]75.9295918367346[/C][/ROW]
[ROW][C]67[/C][C]255.4[/C][C]169.770408163265[/C][C]85.6295918367347[/C][/ROW]
[ROW][C]68[/C][C]253[/C][C]176.420408163265[/C][C]76.5795918367347[/C][/ROW]
[ROW][C]69[/C][C]218.2[/C][C]169.520408163265[/C][C]48.6795918367347[/C][/ROW]
[ROW][C]70[/C][C]203.7[/C][C]166.220408163265[/C][C]37.4795918367347[/C][/ROW]
[ROW][C]71[/C][C]205.6[/C][C]159.303741496599[/C][C]46.2962585034013[/C][/ROW]
[ROW][C]72[/C][C]215.6[/C][C]161.803741496599[/C][C]53.7962585034014[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=7331&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=7331&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
190.886.9443877551023.85561224489801
296.488.99438775510257.4056122448975
39081.8758503401368.12414965986397
492.184.9758503401367.12414965986395
597.286.959183673469410.2408163265306
695.189.45918367346945.64081632653064
788.594.4591836734694-5.95918367346938
891101.109183673469-10.1091836734694
990.594.2091836734694-3.70918367346938
107590.9091836734694-15.9091836734694
1166.383.9925170068027-17.6925170068027
126686.4925170068027-20.4925170068027
1368.486.944387755102-18.5443877551021
1470.688.994387755102-18.3943877551019
1583.981.8758503401362.02414965986396
1690.184.9758503401365.12414965986395
1790.686.95918367346943.64081632653062
1887.189.4591836734694-2.35918367346937
1990.894.4591836734694-3.65918367346937
2094.1101.109183673469-7.00918367346936
2199.894.20918367346945.59081632653062
2296.890.90918367346945.89081632653062
238783.99251700680273.00748299319730
2496.386.49251700680279.8074829931973
25107.186.94438775510220.1556122448979
26115.288.99438775510226.2056122448981
27106.1157.187074829932-51.087074829932
2889.5160.287074829932-70.787074829932
2991.3162.270408163265-70.9704081632653
3097.6164.770408163265-67.1704081632653
31100.7169.770408163265-69.0704081632653
32104.6176.420408163265-71.8204081632653
3394.7169.520408163265-74.8204081632653
34101.8166.220408163265-64.4204081632653
35102.5159.303741496599-56.8037414965987
36105.3161.803741496599-56.5037414965986
37110.3162.255612244898-51.955612244898
38109.8164.305612244898-54.5056122448979
39117.3157.187074829932-39.887074829932
40118.8160.287074829932-41.487074829932
41131.3162.270408163265-30.9704081632653
42125.9164.770408163265-38.8704081632653
43133.1169.770408163265-36.6704081632653
44147176.420408163265-29.4204081632653
45145.8169.520408163265-23.7204081632653
46164.4166.220408163265-1.82040816326531
47149.8159.303741496599-9.50374149659863
48137.7161.803741496599-24.1037414965986
49151.7162.255612244898-10.555612244898
50156.8164.305612244898-7.50561224489786
51180157.18707482993222.812925170068
52180.4160.28707482993220.1129251700680
53170.4162.2704081632658.1295918367347
54191.6164.77040816326526.8295918367347
55199.5169.77040816326529.7295918367347
56218.2176.42040816326541.7795918367347
57217.5169.52040816326547.9795918367347
58205166.22040816326538.7795918367347
59194159.30374149659934.6962585034014
60199.3161.80374149659937.4962585034014
61219.3162.25561224489857.044387755102
62211.1164.30561224489846.7943877551021
63215.2157.18707482993258.012925170068
64240.2160.28707482993279.912925170068
65242.2162.27040816326579.9295918367347
66240.7164.77040816326575.9295918367346
67255.4169.77040816326585.6295918367347
68253176.42040816326576.5795918367347
69218.2169.52040816326548.6795918367347
70203.7166.22040816326537.4795918367347
71205.6159.30374149659946.2962585034013
72215.6161.80374149659953.7962585034014



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