Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 19 Dec 2007 03:33:11 -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/19/t11980595437wx49lzth7kqf8d.htm/, Retrieved Tue, 07 May 2024 00:12:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4632, Retrieved Tue, 07 May 2024 00:12:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordss0650921, s0650125
Estimated Impact227
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [paper_multiplereg...] [2007-12-19 10:33:11] [1232d415564adb2a600743f77b12553a] [Current]
Feedback Forum

Post a new message
Dataseries X:
102.7	0	0
103.2	0	0
105.6	0	0
103.9	0	0
107.2	0	0
100.7	0	0
92.1	0	0
90.3	0	0
93.4	0	0
98.5	0	0
100.8	0	0
102.3	0	0
104.7	0	0
101.1	0	0
101.4	0	0
99.5	0	0
98.4	0	0
96.3	0	0
100.7	0	0
101.2	0	0
100.3	0	0
97.8	0	0
97.4	0	0
98.6	0	0
99.7	0	0
99.0	0	0
98.1	0	0
97.0	0	0
98.5	0	0
103.8	0	0
114.4	0	0
124.5	0	0
134.2	0	0
131.8	0	0
125.6	0	0
119.9	0	0
114.9	0	0
115.5	0	0
112.5	0	0
111.4	0	0
115.3	0	0
110.8	0	0
103.7	0	0
111.1	0	1
113.0	0	1
111.2	0	1
117.6	0	1
121.7	0	1
127.3	0	1
129.8	0	1
137.1	0	1
141.4	0	1
137.4	0	1
130.7	0	1
117.2	0	1
110.8	0	-1
111.4	0	-1
108.2	0	-1
108.8	0	-1
110.2	0	-1
109.5	0	-1
109.5	0	-1
116.0	0	-1
111.2	0	-1
112.1	0	-1
114.0	0	-1
119.1	0	-1
114.1	1	-1
115.1	1	-1
115.4	1	-1
110.8	1	0
116.0	1	0
119.2	1	0
126.5	1	0
127.8	1	0
131.3	1	0
140.3	1	0
137.3	1	0
143.0	1	0
134.5	1	0
139.9	1	0
159.3	1	0
170.4	1	0
175.0	1	0
175.8	1	0
180.9	1	0
180.3	1	0
169.6	1	0
172.3	1	0
184.8	1	0
177.7	1	0
184.6	1	0
211.4	1	0
215.3	1	0
215.9	1	0




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4632&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]4 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=4632&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4632&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
prijsindex[t] = + 84.8103428034598 + 15.3999034439288ontkoppelde_bedrijfstoeslag[t] + 13.0169061346170oogstomvang[t] + 2.50874347847249M1[t] + 3.31877980737751M2[t] + 4.32881613628249M3[t] + 1.98885246518748M4[t] + 3.36138879409247M5[t] + 2.32142512299745M6[t] + 0.356461451902447M7[t] -0.193876882856545M8[t] + 5.10365944604845M9[t] + 6.80119577495345M10[t] + 5.7466188370313M11[t] + 0.652463671095011t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
prijsindex[t] =  +  84.8103428034598 +  15.3999034439288ontkoppelde_bedrijfstoeslag[t] +  13.0169061346170oogstomvang[t] +  2.50874347847249M1[t] +  3.31877980737751M2[t] +  4.32881613628249M3[t] +  1.98885246518748M4[t] +  3.36138879409247M5[t] +  2.32142512299745M6[t] +  0.356461451902447M7[t] -0.193876882856545M8[t] +  5.10365944604845M9[t] +  6.80119577495345M10[t] +  5.7466188370313M11[t] +  0.652463671095011t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4632&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]prijsindex[t] =  +  84.8103428034598 +  15.3999034439288ontkoppelde_bedrijfstoeslag[t] +  13.0169061346170oogstomvang[t] +  2.50874347847249M1[t] +  3.31877980737751M2[t] +  4.32881613628249M3[t] +  1.98885246518748M4[t] +  3.36138879409247M5[t] +  2.32142512299745M6[t] +  0.356461451902447M7[t] -0.193876882856545M8[t] +  5.10365944604845M9[t] +  6.80119577495345M10[t] +  5.7466188370313M11[t] +  0.652463671095011t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4632&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4632&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
prijsindex[t] = + 84.8103428034598 + 15.3999034439288ontkoppelde_bedrijfstoeslag[t] + 13.0169061346170oogstomvang[t] + 2.50874347847249M1[t] + 3.31877980737751M2[t] + 4.32881613628249M3[t] + 1.98885246518748M4[t] + 3.36138879409247M5[t] + 2.32142512299745M6[t] + 0.356461451902447M7[t] -0.193876882856545M8[t] + 5.10365944604845M9[t] + 6.80119577495345M10[t] + 5.7466188370313M11[t] + 0.652463671095011t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)84.81034280345987.52556511.269600
ontkoppelde_bedrijfstoeslag15.39990344392886.3422492.42810.017420.00871
oogstomvang13.01690613461703.3626963.8710.000220.00011
M12.508743478472498.8820230.28250.7783270.389163
M23.318779807377518.8784610.37380.7095410.354771
M34.328816136282498.8761630.48770.6271030.313552
M41.988852465187488.8751310.22410.8232560.411628
M53.361388794092478.8753640.37870.705890.352945
M62.321425122997458.8768630.26150.7943680.397184
M70.3564614519024478.8796270.04010.9680790.484039
M8-0.1938768828565458.893933-0.02180.9826630.491331
M95.103659446048458.8911220.5740.5675660.283783
M106.801195774953458.8895730.76510.4464780.223239
M115.74661883703138.8812070.64710.5194490.259725
t0.6524636710950110.1059946.155600

\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) & 84.8103428034598 & 7.525565 & 11.2696 & 0 & 0 \tabularnewline
ontkoppelde_bedrijfstoeslag & 15.3999034439288 & 6.342249 & 2.4281 & 0.01742 & 0.00871 \tabularnewline
oogstomvang & 13.0169061346170 & 3.362696 & 3.871 & 0.00022 & 0.00011 \tabularnewline
M1 & 2.50874347847249 & 8.882023 & 0.2825 & 0.778327 & 0.389163 \tabularnewline
M2 & 3.31877980737751 & 8.878461 & 0.3738 & 0.709541 & 0.354771 \tabularnewline
M3 & 4.32881613628249 & 8.876163 & 0.4877 & 0.627103 & 0.313552 \tabularnewline
M4 & 1.98885246518748 & 8.875131 & 0.2241 & 0.823256 & 0.411628 \tabularnewline
M5 & 3.36138879409247 & 8.875364 & 0.3787 & 0.70589 & 0.352945 \tabularnewline
M6 & 2.32142512299745 & 8.876863 & 0.2615 & 0.794368 & 0.397184 \tabularnewline
M7 & 0.356461451902447 & 8.879627 & 0.0401 & 0.968079 & 0.484039 \tabularnewline
M8 & -0.193876882856545 & 8.893933 & -0.0218 & 0.982663 & 0.491331 \tabularnewline
M9 & 5.10365944604845 & 8.891122 & 0.574 & 0.567566 & 0.283783 \tabularnewline
M10 & 6.80119577495345 & 8.889573 & 0.7651 & 0.446478 & 0.223239 \tabularnewline
M11 & 5.7466188370313 & 8.881207 & 0.6471 & 0.519449 & 0.259725 \tabularnewline
t & 0.652463671095011 & 0.105994 & 6.1556 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4632&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]84.8103428034598[/C][C]7.525565[/C][C]11.2696[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]ontkoppelde_bedrijfstoeslag[/C][C]15.3999034439288[/C][C]6.342249[/C][C]2.4281[/C][C]0.01742[/C][C]0.00871[/C][/ROW]
[ROW][C]oogstomvang[/C][C]13.0169061346170[/C][C]3.362696[/C][C]3.871[/C][C]0.00022[/C][C]0.00011[/C][/ROW]
[ROW][C]M1[/C][C]2.50874347847249[/C][C]8.882023[/C][C]0.2825[/C][C]0.778327[/C][C]0.389163[/C][/ROW]
[ROW][C]M2[/C][C]3.31877980737751[/C][C]8.878461[/C][C]0.3738[/C][C]0.709541[/C][C]0.354771[/C][/ROW]
[ROW][C]M3[/C][C]4.32881613628249[/C][C]8.876163[/C][C]0.4877[/C][C]0.627103[/C][C]0.313552[/C][/ROW]
[ROW][C]M4[/C][C]1.98885246518748[/C][C]8.875131[/C][C]0.2241[/C][C]0.823256[/C][C]0.411628[/C][/ROW]
[ROW][C]M5[/C][C]3.36138879409247[/C][C]8.875364[/C][C]0.3787[/C][C]0.70589[/C][C]0.352945[/C][/ROW]
[ROW][C]M6[/C][C]2.32142512299745[/C][C]8.876863[/C][C]0.2615[/C][C]0.794368[/C][C]0.397184[/C][/ROW]
[ROW][C]M7[/C][C]0.356461451902447[/C][C]8.879627[/C][C]0.0401[/C][C]0.968079[/C][C]0.484039[/C][/ROW]
[ROW][C]M8[/C][C]-0.193876882856545[/C][C]8.893933[/C][C]-0.0218[/C][C]0.982663[/C][C]0.491331[/C][/ROW]
[ROW][C]M9[/C][C]5.10365944604845[/C][C]8.891122[/C][C]0.574[/C][C]0.567566[/C][C]0.283783[/C][/ROW]
[ROW][C]M10[/C][C]6.80119577495345[/C][C]8.889573[/C][C]0.7651[/C][C]0.446478[/C][C]0.223239[/C][/ROW]
[ROW][C]M11[/C][C]5.7466188370313[/C][C]8.881207[/C][C]0.6471[/C][C]0.519449[/C][C]0.259725[/C][/ROW]
[ROW][C]t[/C][C]0.652463671095011[/C][C]0.105994[/C][C]6.1556[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4632&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4632&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)84.81034280345987.52556511.269600
ontkoppelde_bedrijfstoeslag15.39990344392886.3422492.42810.017420.00871
oogstomvang13.01690613461703.3626963.8710.000220.00011
M12.508743478472498.8820230.28250.7783270.389163
M23.318779807377518.8784610.37380.7095410.354771
M34.328816136282498.8761630.48770.6271030.313552
M41.988852465187488.8751310.22410.8232560.411628
M53.361388794092478.8753640.37870.705890.352945
M62.321425122997458.8768630.26150.7943680.397184
M70.3564614519024478.8796270.04010.9680790.484039
M8-0.1938768828565458.893933-0.02180.9826630.491331
M95.103659446048458.8911220.5740.5675660.283783
M106.801195774953458.8895730.76510.4464780.223239
M115.74661883703138.8812070.64710.5194490.259725
t0.6524636710950110.1059946.155600







Multiple Linear Regression - Regression Statistics
Multiple R0.83675069680224
R-squared0.700151728599034
Adjusted R-squared0.647678281103865
F-TEST (value)13.3429717699317
F-TEST (DF numerator)14
F-TEST (DF denominator)80
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation17.1461440004383
Sum Squared Residuals23519.2203267012

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.83675069680224 \tabularnewline
R-squared & 0.700151728599034 \tabularnewline
Adjusted R-squared & 0.647678281103865 \tabularnewline
F-TEST (value) & 13.3429717699317 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 80 \tabularnewline
p-value & 1.33226762955019e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 17.1461440004383 \tabularnewline
Sum Squared Residuals & 23519.2203267012 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4632&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.83675069680224[/C][/ROW]
[ROW][C]R-squared[/C][C]0.700151728599034[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.647678281103865[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.3429717699317[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]80[/C][/ROW]
[ROW][C]p-value[/C][C]1.33226762955019e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]17.1461440004383[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]23519.2203267012[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4632&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4632&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.83675069680224
R-squared0.700151728599034
Adjusted R-squared0.647678281103865
F-TEST (value)13.3429717699317
F-TEST (DF numerator)14
F-TEST (DF denominator)80
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation17.1461440004383
Sum Squared Residuals23519.2203267012







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1102.787.971549953027514.7284500469725
2103.289.434049953027313.7659500469727
3105.691.096549953027314.5034500469727
4103.989.409049953027314.4909500469727
5107.291.434049953027415.7659500469726
6100.791.04654995302749.65345004697264
792.189.73404995302742.36595004697263
890.389.83617528936340.463824710636614
993.495.7861752893634-2.38617528936337
1098.598.13617528936340.363824710636604
11100.897.73406202253623.06593797746375
12102.392.63990685669.66009314340004
13104.795.80111400616758.89888599383255
14101.197.26361400616753.83638599383250
15101.498.92611400616752.47388599383249
1699.597.23861400616752.26138599383252
1798.499.2636140061675-0.863614006167478
1896.398.8761140061675-2.57611400616749
19100.797.56361400616753.13638599383252
20101.297.66573934250353.5342606574965
21100.3103.615739342504-3.31573934250351
2297.8105.965739342504-8.16573934250351
2397.4105.563626075676-8.16362607567637
2498.6100.46947090974-1.86947090974009
2599.7103.630678059308-3.93067805930758
2699105.093178059308-6.09317805930761
2798.1106.755678059308-8.6556780593076
2897105.068178059308-8.0681780593076
2998.5107.093178059308-8.59317805930761
30103.8106.705678059308-2.90567805930761
31114.4105.3931780593089.0068219406924
32124.5105.49530339564419.0046966043564
33134.2111.44530339564422.7546966043564
34131.8113.79530339564418.0046966043564
35125.6113.39319012881612.2068098711835
36119.9108.29903496288011.6009650371198
37114.9111.4602421124483.4397578875523
38115.5112.9227421124482.57725788755226
39112.5114.585242112448-2.08524211244772
40111.4112.897742112448-1.49774211244772
41115.3114.9227421124480.377257887552265
42110.8114.535242112448-3.73524211244773
43103.7113.222742112448-9.52274211244773
44111.1126.341773583401-15.2417735834008
45113132.291773583401-19.2917735834008
46111.2134.641773583401-23.4417735834008
47117.6134.239660316574-16.6396603165737
48121.7129.145505150637-7.44550515063736
49127.3132.306712300205-5.00671230020487
50129.8133.769212300205-3.96921230020489
51137.1135.4317123002051.66828769979511
52141.4133.7442123002057.65578769979512
53137.4135.7692123002051.63078769979512
54130.7135.381712300205-4.68171230020490
55117.2134.069212300205-16.8692123002049
56110.8108.1375253673072.66247463269316
57111.4114.087525367307-2.68752536730684
58108.2116.437525367307-8.23752536730684
59108.8116.035412100480-7.23541210047971
60110.2110.941256934543-0.741256934543417
61109.5114.102464084111-4.60246408411092
62109.5115.564964084111-6.06496408411095
63116117.227464084111-1.22746408411094
64111.2115.539964084111-4.33996408411094
65112.1117.564964084111-5.46496408411096
66114117.177464084111-3.17746408411094
67119.1115.8649640841113.23503591588905
68114.1131.366992864376-17.2669928643758
69115.1137.316992864376-22.2169928643758
70115.4139.666992864376-24.2669928643758
71110.8152.281785732166-41.4817857321657
72116147.187630566229-31.1876305662294
73119.2150.348837715797-31.1488377157969
74126.5151.811337715797-25.3113377157970
75127.8153.473837715797-25.6738377157969
76131.3151.786337715797-20.4863377157969
77140.3153.811337715797-13.5113377157969
78137.3153.423837715797-16.1238377157969
79143152.111337715797-9.11133771579694
80134.5152.213463052133-17.7134630521330
81139.9158.163463052133-18.2634630521330
82159.3160.513463052133-1.21346305213296
83170.4160.11134978530610.2886502146942
84175155.01719461937019.9828053806305
85175.8158.17840176893717.6215982310630
86180.9159.64090176893721.2590982310629
87180.3161.30340176893718.9965982310629
88169.6159.6159017689379.98409823106292
89172.3161.64090176893710.6590982310629
90184.8161.25340176893723.5465982310629
91177.7159.94090176893717.7590982310629
92184.6160.04302710527324.5569728947269
93211.4165.99302710527345.4069728947269
94215.3168.34302710527346.9569728947269
95215.9167.94091383844647.959086161554

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 102.7 & 87.9715499530275 & 14.7284500469725 \tabularnewline
2 & 103.2 & 89.4340499530273 & 13.7659500469727 \tabularnewline
3 & 105.6 & 91.0965499530273 & 14.5034500469727 \tabularnewline
4 & 103.9 & 89.4090499530273 & 14.4909500469727 \tabularnewline
5 & 107.2 & 91.4340499530274 & 15.7659500469726 \tabularnewline
6 & 100.7 & 91.0465499530274 & 9.65345004697264 \tabularnewline
7 & 92.1 & 89.7340499530274 & 2.36595004697263 \tabularnewline
8 & 90.3 & 89.8361752893634 & 0.463824710636614 \tabularnewline
9 & 93.4 & 95.7861752893634 & -2.38617528936337 \tabularnewline
10 & 98.5 & 98.1361752893634 & 0.363824710636604 \tabularnewline
11 & 100.8 & 97.7340620225362 & 3.06593797746375 \tabularnewline
12 & 102.3 & 92.6399068566 & 9.66009314340004 \tabularnewline
13 & 104.7 & 95.8011140061675 & 8.89888599383255 \tabularnewline
14 & 101.1 & 97.2636140061675 & 3.83638599383250 \tabularnewline
15 & 101.4 & 98.9261140061675 & 2.47388599383249 \tabularnewline
16 & 99.5 & 97.2386140061675 & 2.26138599383252 \tabularnewline
17 & 98.4 & 99.2636140061675 & -0.863614006167478 \tabularnewline
18 & 96.3 & 98.8761140061675 & -2.57611400616749 \tabularnewline
19 & 100.7 & 97.5636140061675 & 3.13638599383252 \tabularnewline
20 & 101.2 & 97.6657393425035 & 3.5342606574965 \tabularnewline
21 & 100.3 & 103.615739342504 & -3.31573934250351 \tabularnewline
22 & 97.8 & 105.965739342504 & -8.16573934250351 \tabularnewline
23 & 97.4 & 105.563626075676 & -8.16362607567637 \tabularnewline
24 & 98.6 & 100.46947090974 & -1.86947090974009 \tabularnewline
25 & 99.7 & 103.630678059308 & -3.93067805930758 \tabularnewline
26 & 99 & 105.093178059308 & -6.09317805930761 \tabularnewline
27 & 98.1 & 106.755678059308 & -8.6556780593076 \tabularnewline
28 & 97 & 105.068178059308 & -8.0681780593076 \tabularnewline
29 & 98.5 & 107.093178059308 & -8.59317805930761 \tabularnewline
30 & 103.8 & 106.705678059308 & -2.90567805930761 \tabularnewline
31 & 114.4 & 105.393178059308 & 9.0068219406924 \tabularnewline
32 & 124.5 & 105.495303395644 & 19.0046966043564 \tabularnewline
33 & 134.2 & 111.445303395644 & 22.7546966043564 \tabularnewline
34 & 131.8 & 113.795303395644 & 18.0046966043564 \tabularnewline
35 & 125.6 & 113.393190128816 & 12.2068098711835 \tabularnewline
36 & 119.9 & 108.299034962880 & 11.6009650371198 \tabularnewline
37 & 114.9 & 111.460242112448 & 3.4397578875523 \tabularnewline
38 & 115.5 & 112.922742112448 & 2.57725788755226 \tabularnewline
39 & 112.5 & 114.585242112448 & -2.08524211244772 \tabularnewline
40 & 111.4 & 112.897742112448 & -1.49774211244772 \tabularnewline
41 & 115.3 & 114.922742112448 & 0.377257887552265 \tabularnewline
42 & 110.8 & 114.535242112448 & -3.73524211244773 \tabularnewline
43 & 103.7 & 113.222742112448 & -9.52274211244773 \tabularnewline
44 & 111.1 & 126.341773583401 & -15.2417735834008 \tabularnewline
45 & 113 & 132.291773583401 & -19.2917735834008 \tabularnewline
46 & 111.2 & 134.641773583401 & -23.4417735834008 \tabularnewline
47 & 117.6 & 134.239660316574 & -16.6396603165737 \tabularnewline
48 & 121.7 & 129.145505150637 & -7.44550515063736 \tabularnewline
49 & 127.3 & 132.306712300205 & -5.00671230020487 \tabularnewline
50 & 129.8 & 133.769212300205 & -3.96921230020489 \tabularnewline
51 & 137.1 & 135.431712300205 & 1.66828769979511 \tabularnewline
52 & 141.4 & 133.744212300205 & 7.65578769979512 \tabularnewline
53 & 137.4 & 135.769212300205 & 1.63078769979512 \tabularnewline
54 & 130.7 & 135.381712300205 & -4.68171230020490 \tabularnewline
55 & 117.2 & 134.069212300205 & -16.8692123002049 \tabularnewline
56 & 110.8 & 108.137525367307 & 2.66247463269316 \tabularnewline
57 & 111.4 & 114.087525367307 & -2.68752536730684 \tabularnewline
58 & 108.2 & 116.437525367307 & -8.23752536730684 \tabularnewline
59 & 108.8 & 116.035412100480 & -7.23541210047971 \tabularnewline
60 & 110.2 & 110.941256934543 & -0.741256934543417 \tabularnewline
61 & 109.5 & 114.102464084111 & -4.60246408411092 \tabularnewline
62 & 109.5 & 115.564964084111 & -6.06496408411095 \tabularnewline
63 & 116 & 117.227464084111 & -1.22746408411094 \tabularnewline
64 & 111.2 & 115.539964084111 & -4.33996408411094 \tabularnewline
65 & 112.1 & 117.564964084111 & -5.46496408411096 \tabularnewline
66 & 114 & 117.177464084111 & -3.17746408411094 \tabularnewline
67 & 119.1 & 115.864964084111 & 3.23503591588905 \tabularnewline
68 & 114.1 & 131.366992864376 & -17.2669928643758 \tabularnewline
69 & 115.1 & 137.316992864376 & -22.2169928643758 \tabularnewline
70 & 115.4 & 139.666992864376 & -24.2669928643758 \tabularnewline
71 & 110.8 & 152.281785732166 & -41.4817857321657 \tabularnewline
72 & 116 & 147.187630566229 & -31.1876305662294 \tabularnewline
73 & 119.2 & 150.348837715797 & -31.1488377157969 \tabularnewline
74 & 126.5 & 151.811337715797 & -25.3113377157970 \tabularnewline
75 & 127.8 & 153.473837715797 & -25.6738377157969 \tabularnewline
76 & 131.3 & 151.786337715797 & -20.4863377157969 \tabularnewline
77 & 140.3 & 153.811337715797 & -13.5113377157969 \tabularnewline
78 & 137.3 & 153.423837715797 & -16.1238377157969 \tabularnewline
79 & 143 & 152.111337715797 & -9.11133771579694 \tabularnewline
80 & 134.5 & 152.213463052133 & -17.7134630521330 \tabularnewline
81 & 139.9 & 158.163463052133 & -18.2634630521330 \tabularnewline
82 & 159.3 & 160.513463052133 & -1.21346305213296 \tabularnewline
83 & 170.4 & 160.111349785306 & 10.2886502146942 \tabularnewline
84 & 175 & 155.017194619370 & 19.9828053806305 \tabularnewline
85 & 175.8 & 158.178401768937 & 17.6215982310630 \tabularnewline
86 & 180.9 & 159.640901768937 & 21.2590982310629 \tabularnewline
87 & 180.3 & 161.303401768937 & 18.9965982310629 \tabularnewline
88 & 169.6 & 159.615901768937 & 9.98409823106292 \tabularnewline
89 & 172.3 & 161.640901768937 & 10.6590982310629 \tabularnewline
90 & 184.8 & 161.253401768937 & 23.5465982310629 \tabularnewline
91 & 177.7 & 159.940901768937 & 17.7590982310629 \tabularnewline
92 & 184.6 & 160.043027105273 & 24.5569728947269 \tabularnewline
93 & 211.4 & 165.993027105273 & 45.4069728947269 \tabularnewline
94 & 215.3 & 168.343027105273 & 46.9569728947269 \tabularnewline
95 & 215.9 & 167.940913838446 & 47.959086161554 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4632&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]102.7[/C][C]87.9715499530275[/C][C]14.7284500469725[/C][/ROW]
[ROW][C]2[/C][C]103.2[/C][C]89.4340499530273[/C][C]13.7659500469727[/C][/ROW]
[ROW][C]3[/C][C]105.6[/C][C]91.0965499530273[/C][C]14.5034500469727[/C][/ROW]
[ROW][C]4[/C][C]103.9[/C][C]89.4090499530273[/C][C]14.4909500469727[/C][/ROW]
[ROW][C]5[/C][C]107.2[/C][C]91.4340499530274[/C][C]15.7659500469726[/C][/ROW]
[ROW][C]6[/C][C]100.7[/C][C]91.0465499530274[/C][C]9.65345004697264[/C][/ROW]
[ROW][C]7[/C][C]92.1[/C][C]89.7340499530274[/C][C]2.36595004697263[/C][/ROW]
[ROW][C]8[/C][C]90.3[/C][C]89.8361752893634[/C][C]0.463824710636614[/C][/ROW]
[ROW][C]9[/C][C]93.4[/C][C]95.7861752893634[/C][C]-2.38617528936337[/C][/ROW]
[ROW][C]10[/C][C]98.5[/C][C]98.1361752893634[/C][C]0.363824710636604[/C][/ROW]
[ROW][C]11[/C][C]100.8[/C][C]97.7340620225362[/C][C]3.06593797746375[/C][/ROW]
[ROW][C]12[/C][C]102.3[/C][C]92.6399068566[/C][C]9.66009314340004[/C][/ROW]
[ROW][C]13[/C][C]104.7[/C][C]95.8011140061675[/C][C]8.89888599383255[/C][/ROW]
[ROW][C]14[/C][C]101.1[/C][C]97.2636140061675[/C][C]3.83638599383250[/C][/ROW]
[ROW][C]15[/C][C]101.4[/C][C]98.9261140061675[/C][C]2.47388599383249[/C][/ROW]
[ROW][C]16[/C][C]99.5[/C][C]97.2386140061675[/C][C]2.26138599383252[/C][/ROW]
[ROW][C]17[/C][C]98.4[/C][C]99.2636140061675[/C][C]-0.863614006167478[/C][/ROW]
[ROW][C]18[/C][C]96.3[/C][C]98.8761140061675[/C][C]-2.57611400616749[/C][/ROW]
[ROW][C]19[/C][C]100.7[/C][C]97.5636140061675[/C][C]3.13638599383252[/C][/ROW]
[ROW][C]20[/C][C]101.2[/C][C]97.6657393425035[/C][C]3.5342606574965[/C][/ROW]
[ROW][C]21[/C][C]100.3[/C][C]103.615739342504[/C][C]-3.31573934250351[/C][/ROW]
[ROW][C]22[/C][C]97.8[/C][C]105.965739342504[/C][C]-8.16573934250351[/C][/ROW]
[ROW][C]23[/C][C]97.4[/C][C]105.563626075676[/C][C]-8.16362607567637[/C][/ROW]
[ROW][C]24[/C][C]98.6[/C][C]100.46947090974[/C][C]-1.86947090974009[/C][/ROW]
[ROW][C]25[/C][C]99.7[/C][C]103.630678059308[/C][C]-3.93067805930758[/C][/ROW]
[ROW][C]26[/C][C]99[/C][C]105.093178059308[/C][C]-6.09317805930761[/C][/ROW]
[ROW][C]27[/C][C]98.1[/C][C]106.755678059308[/C][C]-8.6556780593076[/C][/ROW]
[ROW][C]28[/C][C]97[/C][C]105.068178059308[/C][C]-8.0681780593076[/C][/ROW]
[ROW][C]29[/C][C]98.5[/C][C]107.093178059308[/C][C]-8.59317805930761[/C][/ROW]
[ROW][C]30[/C][C]103.8[/C][C]106.705678059308[/C][C]-2.90567805930761[/C][/ROW]
[ROW][C]31[/C][C]114.4[/C][C]105.393178059308[/C][C]9.0068219406924[/C][/ROW]
[ROW][C]32[/C][C]124.5[/C][C]105.495303395644[/C][C]19.0046966043564[/C][/ROW]
[ROW][C]33[/C][C]134.2[/C][C]111.445303395644[/C][C]22.7546966043564[/C][/ROW]
[ROW][C]34[/C][C]131.8[/C][C]113.795303395644[/C][C]18.0046966043564[/C][/ROW]
[ROW][C]35[/C][C]125.6[/C][C]113.393190128816[/C][C]12.2068098711835[/C][/ROW]
[ROW][C]36[/C][C]119.9[/C][C]108.299034962880[/C][C]11.6009650371198[/C][/ROW]
[ROW][C]37[/C][C]114.9[/C][C]111.460242112448[/C][C]3.4397578875523[/C][/ROW]
[ROW][C]38[/C][C]115.5[/C][C]112.922742112448[/C][C]2.57725788755226[/C][/ROW]
[ROW][C]39[/C][C]112.5[/C][C]114.585242112448[/C][C]-2.08524211244772[/C][/ROW]
[ROW][C]40[/C][C]111.4[/C][C]112.897742112448[/C][C]-1.49774211244772[/C][/ROW]
[ROW][C]41[/C][C]115.3[/C][C]114.922742112448[/C][C]0.377257887552265[/C][/ROW]
[ROW][C]42[/C][C]110.8[/C][C]114.535242112448[/C][C]-3.73524211244773[/C][/ROW]
[ROW][C]43[/C][C]103.7[/C][C]113.222742112448[/C][C]-9.52274211244773[/C][/ROW]
[ROW][C]44[/C][C]111.1[/C][C]126.341773583401[/C][C]-15.2417735834008[/C][/ROW]
[ROW][C]45[/C][C]113[/C][C]132.291773583401[/C][C]-19.2917735834008[/C][/ROW]
[ROW][C]46[/C][C]111.2[/C][C]134.641773583401[/C][C]-23.4417735834008[/C][/ROW]
[ROW][C]47[/C][C]117.6[/C][C]134.239660316574[/C][C]-16.6396603165737[/C][/ROW]
[ROW][C]48[/C][C]121.7[/C][C]129.145505150637[/C][C]-7.44550515063736[/C][/ROW]
[ROW][C]49[/C][C]127.3[/C][C]132.306712300205[/C][C]-5.00671230020487[/C][/ROW]
[ROW][C]50[/C][C]129.8[/C][C]133.769212300205[/C][C]-3.96921230020489[/C][/ROW]
[ROW][C]51[/C][C]137.1[/C][C]135.431712300205[/C][C]1.66828769979511[/C][/ROW]
[ROW][C]52[/C][C]141.4[/C][C]133.744212300205[/C][C]7.65578769979512[/C][/ROW]
[ROW][C]53[/C][C]137.4[/C][C]135.769212300205[/C][C]1.63078769979512[/C][/ROW]
[ROW][C]54[/C][C]130.7[/C][C]135.381712300205[/C][C]-4.68171230020490[/C][/ROW]
[ROW][C]55[/C][C]117.2[/C][C]134.069212300205[/C][C]-16.8692123002049[/C][/ROW]
[ROW][C]56[/C][C]110.8[/C][C]108.137525367307[/C][C]2.66247463269316[/C][/ROW]
[ROW][C]57[/C][C]111.4[/C][C]114.087525367307[/C][C]-2.68752536730684[/C][/ROW]
[ROW][C]58[/C][C]108.2[/C][C]116.437525367307[/C][C]-8.23752536730684[/C][/ROW]
[ROW][C]59[/C][C]108.8[/C][C]116.035412100480[/C][C]-7.23541210047971[/C][/ROW]
[ROW][C]60[/C][C]110.2[/C][C]110.941256934543[/C][C]-0.741256934543417[/C][/ROW]
[ROW][C]61[/C][C]109.5[/C][C]114.102464084111[/C][C]-4.60246408411092[/C][/ROW]
[ROW][C]62[/C][C]109.5[/C][C]115.564964084111[/C][C]-6.06496408411095[/C][/ROW]
[ROW][C]63[/C][C]116[/C][C]117.227464084111[/C][C]-1.22746408411094[/C][/ROW]
[ROW][C]64[/C][C]111.2[/C][C]115.539964084111[/C][C]-4.33996408411094[/C][/ROW]
[ROW][C]65[/C][C]112.1[/C][C]117.564964084111[/C][C]-5.46496408411096[/C][/ROW]
[ROW][C]66[/C][C]114[/C][C]117.177464084111[/C][C]-3.17746408411094[/C][/ROW]
[ROW][C]67[/C][C]119.1[/C][C]115.864964084111[/C][C]3.23503591588905[/C][/ROW]
[ROW][C]68[/C][C]114.1[/C][C]131.366992864376[/C][C]-17.2669928643758[/C][/ROW]
[ROW][C]69[/C][C]115.1[/C][C]137.316992864376[/C][C]-22.2169928643758[/C][/ROW]
[ROW][C]70[/C][C]115.4[/C][C]139.666992864376[/C][C]-24.2669928643758[/C][/ROW]
[ROW][C]71[/C][C]110.8[/C][C]152.281785732166[/C][C]-41.4817857321657[/C][/ROW]
[ROW][C]72[/C][C]116[/C][C]147.187630566229[/C][C]-31.1876305662294[/C][/ROW]
[ROW][C]73[/C][C]119.2[/C][C]150.348837715797[/C][C]-31.1488377157969[/C][/ROW]
[ROW][C]74[/C][C]126.5[/C][C]151.811337715797[/C][C]-25.3113377157970[/C][/ROW]
[ROW][C]75[/C][C]127.8[/C][C]153.473837715797[/C][C]-25.6738377157969[/C][/ROW]
[ROW][C]76[/C][C]131.3[/C][C]151.786337715797[/C][C]-20.4863377157969[/C][/ROW]
[ROW][C]77[/C][C]140.3[/C][C]153.811337715797[/C][C]-13.5113377157969[/C][/ROW]
[ROW][C]78[/C][C]137.3[/C][C]153.423837715797[/C][C]-16.1238377157969[/C][/ROW]
[ROW][C]79[/C][C]143[/C][C]152.111337715797[/C][C]-9.11133771579694[/C][/ROW]
[ROW][C]80[/C][C]134.5[/C][C]152.213463052133[/C][C]-17.7134630521330[/C][/ROW]
[ROW][C]81[/C][C]139.9[/C][C]158.163463052133[/C][C]-18.2634630521330[/C][/ROW]
[ROW][C]82[/C][C]159.3[/C][C]160.513463052133[/C][C]-1.21346305213296[/C][/ROW]
[ROW][C]83[/C][C]170.4[/C][C]160.111349785306[/C][C]10.2886502146942[/C][/ROW]
[ROW][C]84[/C][C]175[/C][C]155.017194619370[/C][C]19.9828053806305[/C][/ROW]
[ROW][C]85[/C][C]175.8[/C][C]158.178401768937[/C][C]17.6215982310630[/C][/ROW]
[ROW][C]86[/C][C]180.9[/C][C]159.640901768937[/C][C]21.2590982310629[/C][/ROW]
[ROW][C]87[/C][C]180.3[/C][C]161.303401768937[/C][C]18.9965982310629[/C][/ROW]
[ROW][C]88[/C][C]169.6[/C][C]159.615901768937[/C][C]9.98409823106292[/C][/ROW]
[ROW][C]89[/C][C]172.3[/C][C]161.640901768937[/C][C]10.6590982310629[/C][/ROW]
[ROW][C]90[/C][C]184.8[/C][C]161.253401768937[/C][C]23.5465982310629[/C][/ROW]
[ROW][C]91[/C][C]177.7[/C][C]159.940901768937[/C][C]17.7590982310629[/C][/ROW]
[ROW][C]92[/C][C]184.6[/C][C]160.043027105273[/C][C]24.5569728947269[/C][/ROW]
[ROW][C]93[/C][C]211.4[/C][C]165.993027105273[/C][C]45.4069728947269[/C][/ROW]
[ROW][C]94[/C][C]215.3[/C][C]168.343027105273[/C][C]46.9569728947269[/C][/ROW]
[ROW][C]95[/C][C]215.9[/C][C]167.940913838446[/C][C]47.959086161554[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4632&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4632&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
1102.787.971549953027514.7284500469725
2103.289.434049953027313.7659500469727
3105.691.096549953027314.5034500469727
4103.989.409049953027314.4909500469727
5107.291.434049953027415.7659500469726
6100.791.04654995302749.65345004697264
792.189.73404995302742.36595004697263
890.389.83617528936340.463824710636614
993.495.7861752893634-2.38617528936337
1098.598.13617528936340.363824710636604
11100.897.73406202253623.06593797746375
12102.392.63990685669.66009314340004
13104.795.80111400616758.89888599383255
14101.197.26361400616753.83638599383250
15101.498.92611400616752.47388599383249
1699.597.23861400616752.26138599383252
1798.499.2636140061675-0.863614006167478
1896.398.8761140061675-2.57611400616749
19100.797.56361400616753.13638599383252
20101.297.66573934250353.5342606574965
21100.3103.615739342504-3.31573934250351
2297.8105.965739342504-8.16573934250351
2397.4105.563626075676-8.16362607567637
2498.6100.46947090974-1.86947090974009
2599.7103.630678059308-3.93067805930758
2699105.093178059308-6.09317805930761
2798.1106.755678059308-8.6556780593076
2897105.068178059308-8.0681780593076
2998.5107.093178059308-8.59317805930761
30103.8106.705678059308-2.90567805930761
31114.4105.3931780593089.0068219406924
32124.5105.49530339564419.0046966043564
33134.2111.44530339564422.7546966043564
34131.8113.79530339564418.0046966043564
35125.6113.39319012881612.2068098711835
36119.9108.29903496288011.6009650371198
37114.9111.4602421124483.4397578875523
38115.5112.9227421124482.57725788755226
39112.5114.585242112448-2.08524211244772
40111.4112.897742112448-1.49774211244772
41115.3114.9227421124480.377257887552265
42110.8114.535242112448-3.73524211244773
43103.7113.222742112448-9.52274211244773
44111.1126.341773583401-15.2417735834008
45113132.291773583401-19.2917735834008
46111.2134.641773583401-23.4417735834008
47117.6134.239660316574-16.6396603165737
48121.7129.145505150637-7.44550515063736
49127.3132.306712300205-5.00671230020487
50129.8133.769212300205-3.96921230020489
51137.1135.4317123002051.66828769979511
52141.4133.7442123002057.65578769979512
53137.4135.7692123002051.63078769979512
54130.7135.381712300205-4.68171230020490
55117.2134.069212300205-16.8692123002049
56110.8108.1375253673072.66247463269316
57111.4114.087525367307-2.68752536730684
58108.2116.437525367307-8.23752536730684
59108.8116.035412100480-7.23541210047971
60110.2110.941256934543-0.741256934543417
61109.5114.102464084111-4.60246408411092
62109.5115.564964084111-6.06496408411095
63116117.227464084111-1.22746408411094
64111.2115.539964084111-4.33996408411094
65112.1117.564964084111-5.46496408411096
66114117.177464084111-3.17746408411094
67119.1115.8649640841113.23503591588905
68114.1131.366992864376-17.2669928643758
69115.1137.316992864376-22.2169928643758
70115.4139.666992864376-24.2669928643758
71110.8152.281785732166-41.4817857321657
72116147.187630566229-31.1876305662294
73119.2150.348837715797-31.1488377157969
74126.5151.811337715797-25.3113377157970
75127.8153.473837715797-25.6738377157969
76131.3151.786337715797-20.4863377157969
77140.3153.811337715797-13.5113377157969
78137.3153.423837715797-16.1238377157969
79143152.111337715797-9.11133771579694
80134.5152.213463052133-17.7134630521330
81139.9158.163463052133-18.2634630521330
82159.3160.513463052133-1.21346305213296
83170.4160.11134978530610.2886502146942
84175155.01719461937019.9828053806305
85175.8158.17840176893717.6215982310630
86180.9159.64090176893721.2590982310629
87180.3161.30340176893718.9965982310629
88169.6159.6159017689379.98409823106292
89172.3161.64090176893710.6590982310629
90184.8161.25340176893723.5465982310629
91177.7159.94090176893717.7590982310629
92184.6160.04302710527324.5569728947269
93211.4165.99302710527345.4069728947269
94215.3168.34302710527346.9569728947269
95215.9167.94091383844647.959086161554



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