Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationWed, 01 Dec 2010 14:58:44 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/01/t1291215431b94koit7cr1clvu.htm/, Retrieved Sun, 05 May 2024 18:24:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=104044, Retrieved Sun, 05 May 2024 18:24:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact169
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Exponential Smoothing] [HPC Retail Sales] [2008-03-10 17:50:48] [74be16979710d4c4e7c6647856088456]
-  M D    [Exponential Smoothing] [Workshop 8 - blog 2] [2010-12-01 14:58:44] [47bfda5353cd53c1cf7ea7aa9038654a] [Current]
Feedback Forum

Post a new message
Dataseries X:
219.3
211.1
215.2
240.2
242.2
240.7
255.4
253
218.2
203.7
205.6
215.6
188.5
202.9
214
230.3
230
241
259.6
247.8
270.3
289.7
322.7
315
320.2
329.5
360.6
382.2
435.4
464
468.8
403
351.6
252
188
146.5
152.9
148.1
165.1
177
206.1
244.9
228.6
253.4
241.1
261.4
273.7
263.7
272.5
263.2
279.8
298.1
267.6
264.3
264.3
268.7
269.1
288.6




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 2 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104044&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104044&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=104044&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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma0

\begin{tabular}{lllllllll}
\hline
Estimated Parameters of Exponential Smoothing \tabularnewline
Parameter & Value \tabularnewline
alpha & 1 \tabularnewline
beta & 0 \tabularnewline
gamma & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104044&T=1

[TABLE]
[ROW][C]Estimated Parameters of Exponential Smoothing[/C][/ROW]
[ROW][C]Parameter[/C][C]Value[/C][/ROW]
[ROW][C]alpha[/C][C]1[/C][/ROW]
[ROW][C]beta[/C][C]0[/C][/ROW]
[ROW][C]gamma[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104044&T=1

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

As an alternative you can also use a QR Code:  

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

Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma0







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3215.2211.14.09999999999999
4240.2215.225
5242.2240.22
6240.7242.2-1.5
7255.4240.714.7000000000000
8253255.4-2.40000000000001
9218.2253-34.8
10203.7218.2-14.5
11205.6203.71.90000000000001
12215.6205.610
13188.5215.6-27.1
14202.9188.514.4
15214202.911.1
16230.321416.3
17230230.3-0.300000000000011
1824123011
19259.624118.6000000000000
20247.8259.6-11.8
21270.3247.822.5
22289.7270.319.4000000000000
23322.7289.733
24315322.7-7.69999999999999
25320.23155.19999999999999
26329.5320.29.30000000000001
27360.6329.531.1
28382.2360.621.6000000000000
29435.4382.253.2
30464435.428.6
31468.84644.80000000000001
32403468.8-65.8
33351.6403-51.4
34252351.6-99.6
35188252-64
36146.5188-41.5
37152.9146.56.4
38148.1152.9-4.80000000000001
39165.1148.117
40177165.111.9
41206.117729.1
42244.9206.138.8
43228.6244.9-16.3
44253.4228.624.8
45241.1253.4-12.3
46261.4241.120.3
47273.7261.412.3
48263.7273.7-10
49272.5263.78.80000000000001
50263.2272.5-9.30000000000001
51279.8263.216.6000000000000
52298.1279.818.3
53267.6298.1-30.5
54264.3267.6-3.30000000000001
55264.3264.30
56268.7264.34.39999999999998
57269.1268.70.400000000000034
58288.6269.119.5

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
3 & 215.2 & 211.1 & 4.09999999999999 \tabularnewline
4 & 240.2 & 215.2 & 25 \tabularnewline
5 & 242.2 & 240.2 & 2 \tabularnewline
6 & 240.7 & 242.2 & -1.5 \tabularnewline
7 & 255.4 & 240.7 & 14.7000000000000 \tabularnewline
8 & 253 & 255.4 & -2.40000000000001 \tabularnewline
9 & 218.2 & 253 & -34.8 \tabularnewline
10 & 203.7 & 218.2 & -14.5 \tabularnewline
11 & 205.6 & 203.7 & 1.90000000000001 \tabularnewline
12 & 215.6 & 205.6 & 10 \tabularnewline
13 & 188.5 & 215.6 & -27.1 \tabularnewline
14 & 202.9 & 188.5 & 14.4 \tabularnewline
15 & 214 & 202.9 & 11.1 \tabularnewline
16 & 230.3 & 214 & 16.3 \tabularnewline
17 & 230 & 230.3 & -0.300000000000011 \tabularnewline
18 & 241 & 230 & 11 \tabularnewline
19 & 259.6 & 241 & 18.6000000000000 \tabularnewline
20 & 247.8 & 259.6 & -11.8 \tabularnewline
21 & 270.3 & 247.8 & 22.5 \tabularnewline
22 & 289.7 & 270.3 & 19.4000000000000 \tabularnewline
23 & 322.7 & 289.7 & 33 \tabularnewline
24 & 315 & 322.7 & -7.69999999999999 \tabularnewline
25 & 320.2 & 315 & 5.19999999999999 \tabularnewline
26 & 329.5 & 320.2 & 9.30000000000001 \tabularnewline
27 & 360.6 & 329.5 & 31.1 \tabularnewline
28 & 382.2 & 360.6 & 21.6000000000000 \tabularnewline
29 & 435.4 & 382.2 & 53.2 \tabularnewline
30 & 464 & 435.4 & 28.6 \tabularnewline
31 & 468.8 & 464 & 4.80000000000001 \tabularnewline
32 & 403 & 468.8 & -65.8 \tabularnewline
33 & 351.6 & 403 & -51.4 \tabularnewline
34 & 252 & 351.6 & -99.6 \tabularnewline
35 & 188 & 252 & -64 \tabularnewline
36 & 146.5 & 188 & -41.5 \tabularnewline
37 & 152.9 & 146.5 & 6.4 \tabularnewline
38 & 148.1 & 152.9 & -4.80000000000001 \tabularnewline
39 & 165.1 & 148.1 & 17 \tabularnewline
40 & 177 & 165.1 & 11.9 \tabularnewline
41 & 206.1 & 177 & 29.1 \tabularnewline
42 & 244.9 & 206.1 & 38.8 \tabularnewline
43 & 228.6 & 244.9 & -16.3 \tabularnewline
44 & 253.4 & 228.6 & 24.8 \tabularnewline
45 & 241.1 & 253.4 & -12.3 \tabularnewline
46 & 261.4 & 241.1 & 20.3 \tabularnewline
47 & 273.7 & 261.4 & 12.3 \tabularnewline
48 & 263.7 & 273.7 & -10 \tabularnewline
49 & 272.5 & 263.7 & 8.80000000000001 \tabularnewline
50 & 263.2 & 272.5 & -9.30000000000001 \tabularnewline
51 & 279.8 & 263.2 & 16.6000000000000 \tabularnewline
52 & 298.1 & 279.8 & 18.3 \tabularnewline
53 & 267.6 & 298.1 & -30.5 \tabularnewline
54 & 264.3 & 267.6 & -3.30000000000001 \tabularnewline
55 & 264.3 & 264.3 & 0 \tabularnewline
56 & 268.7 & 264.3 & 4.39999999999998 \tabularnewline
57 & 269.1 & 268.7 & 0.400000000000034 \tabularnewline
58 & 288.6 & 269.1 & 19.5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104044&T=2

[TABLE]
[ROW][C]Interpolation Forecasts of Exponential Smoothing[/C][/ROW]
[ROW][C]t[/C][C]Observed[/C][C]Fitted[/C][C]Residuals[/C][/ROW]
[ROW][C]3[/C][C]215.2[/C][C]211.1[/C][C]4.09999999999999[/C][/ROW]
[ROW][C]4[/C][C]240.2[/C][C]215.2[/C][C]25[/C][/ROW]
[ROW][C]5[/C][C]242.2[/C][C]240.2[/C][C]2[/C][/ROW]
[ROW][C]6[/C][C]240.7[/C][C]242.2[/C][C]-1.5[/C][/ROW]
[ROW][C]7[/C][C]255.4[/C][C]240.7[/C][C]14.7000000000000[/C][/ROW]
[ROW][C]8[/C][C]253[/C][C]255.4[/C][C]-2.40000000000001[/C][/ROW]
[ROW][C]9[/C][C]218.2[/C][C]253[/C][C]-34.8[/C][/ROW]
[ROW][C]10[/C][C]203.7[/C][C]218.2[/C][C]-14.5[/C][/ROW]
[ROW][C]11[/C][C]205.6[/C][C]203.7[/C][C]1.90000000000001[/C][/ROW]
[ROW][C]12[/C][C]215.6[/C][C]205.6[/C][C]10[/C][/ROW]
[ROW][C]13[/C][C]188.5[/C][C]215.6[/C][C]-27.1[/C][/ROW]
[ROW][C]14[/C][C]202.9[/C][C]188.5[/C][C]14.4[/C][/ROW]
[ROW][C]15[/C][C]214[/C][C]202.9[/C][C]11.1[/C][/ROW]
[ROW][C]16[/C][C]230.3[/C][C]214[/C][C]16.3[/C][/ROW]
[ROW][C]17[/C][C]230[/C][C]230.3[/C][C]-0.300000000000011[/C][/ROW]
[ROW][C]18[/C][C]241[/C][C]230[/C][C]11[/C][/ROW]
[ROW][C]19[/C][C]259.6[/C][C]241[/C][C]18.6000000000000[/C][/ROW]
[ROW][C]20[/C][C]247.8[/C][C]259.6[/C][C]-11.8[/C][/ROW]
[ROW][C]21[/C][C]270.3[/C][C]247.8[/C][C]22.5[/C][/ROW]
[ROW][C]22[/C][C]289.7[/C][C]270.3[/C][C]19.4000000000000[/C][/ROW]
[ROW][C]23[/C][C]322.7[/C][C]289.7[/C][C]33[/C][/ROW]
[ROW][C]24[/C][C]315[/C][C]322.7[/C][C]-7.69999999999999[/C][/ROW]
[ROW][C]25[/C][C]320.2[/C][C]315[/C][C]5.19999999999999[/C][/ROW]
[ROW][C]26[/C][C]329.5[/C][C]320.2[/C][C]9.30000000000001[/C][/ROW]
[ROW][C]27[/C][C]360.6[/C][C]329.5[/C][C]31.1[/C][/ROW]
[ROW][C]28[/C][C]382.2[/C][C]360.6[/C][C]21.6000000000000[/C][/ROW]
[ROW][C]29[/C][C]435.4[/C][C]382.2[/C][C]53.2[/C][/ROW]
[ROW][C]30[/C][C]464[/C][C]435.4[/C][C]28.6[/C][/ROW]
[ROW][C]31[/C][C]468.8[/C][C]464[/C][C]4.80000000000001[/C][/ROW]
[ROW][C]32[/C][C]403[/C][C]468.8[/C][C]-65.8[/C][/ROW]
[ROW][C]33[/C][C]351.6[/C][C]403[/C][C]-51.4[/C][/ROW]
[ROW][C]34[/C][C]252[/C][C]351.6[/C][C]-99.6[/C][/ROW]
[ROW][C]35[/C][C]188[/C][C]252[/C][C]-64[/C][/ROW]
[ROW][C]36[/C][C]146.5[/C][C]188[/C][C]-41.5[/C][/ROW]
[ROW][C]37[/C][C]152.9[/C][C]146.5[/C][C]6.4[/C][/ROW]
[ROW][C]38[/C][C]148.1[/C][C]152.9[/C][C]-4.80000000000001[/C][/ROW]
[ROW][C]39[/C][C]165.1[/C][C]148.1[/C][C]17[/C][/ROW]
[ROW][C]40[/C][C]177[/C][C]165.1[/C][C]11.9[/C][/ROW]
[ROW][C]41[/C][C]206.1[/C][C]177[/C][C]29.1[/C][/ROW]
[ROW][C]42[/C][C]244.9[/C][C]206.1[/C][C]38.8[/C][/ROW]
[ROW][C]43[/C][C]228.6[/C][C]244.9[/C][C]-16.3[/C][/ROW]
[ROW][C]44[/C][C]253.4[/C][C]228.6[/C][C]24.8[/C][/ROW]
[ROW][C]45[/C][C]241.1[/C][C]253.4[/C][C]-12.3[/C][/ROW]
[ROW][C]46[/C][C]261.4[/C][C]241.1[/C][C]20.3[/C][/ROW]
[ROW][C]47[/C][C]273.7[/C][C]261.4[/C][C]12.3[/C][/ROW]
[ROW][C]48[/C][C]263.7[/C][C]273.7[/C][C]-10[/C][/ROW]
[ROW][C]49[/C][C]272.5[/C][C]263.7[/C][C]8.80000000000001[/C][/ROW]
[ROW][C]50[/C][C]263.2[/C][C]272.5[/C][C]-9.30000000000001[/C][/ROW]
[ROW][C]51[/C][C]279.8[/C][C]263.2[/C][C]16.6000000000000[/C][/ROW]
[ROW][C]52[/C][C]298.1[/C][C]279.8[/C][C]18.3[/C][/ROW]
[ROW][C]53[/C][C]267.6[/C][C]298.1[/C][C]-30.5[/C][/ROW]
[ROW][C]54[/C][C]264.3[/C][C]267.6[/C][C]-3.30000000000001[/C][/ROW]
[ROW][C]55[/C][C]264.3[/C][C]264.3[/C][C]0[/C][/ROW]
[ROW][C]56[/C][C]268.7[/C][C]264.3[/C][C]4.39999999999998[/C][/ROW]
[ROW][C]57[/C][C]269.1[/C][C]268.7[/C][C]0.400000000000034[/C][/ROW]
[ROW][C]58[/C][C]288.6[/C][C]269.1[/C][C]19.5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104044&T=2

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

As an alternative you can also use a QR Code:  

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

Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3215.2211.14.09999999999999
4240.2215.225
5242.2240.22
6240.7242.2-1.5
7255.4240.714.7000000000000
8253255.4-2.40000000000001
9218.2253-34.8
10203.7218.2-14.5
11205.6203.71.90000000000001
12215.6205.610
13188.5215.6-27.1
14202.9188.514.4
15214202.911.1
16230.321416.3
17230230.3-0.300000000000011
1824123011
19259.624118.6000000000000
20247.8259.6-11.8
21270.3247.822.5
22289.7270.319.4000000000000
23322.7289.733
24315322.7-7.69999999999999
25320.23155.19999999999999
26329.5320.29.30000000000001
27360.6329.531.1
28382.2360.621.6000000000000
29435.4382.253.2
30464435.428.6
31468.84644.80000000000001
32403468.8-65.8
33351.6403-51.4
34252351.6-99.6
35188252-64
36146.5188-41.5
37152.9146.56.4
38148.1152.9-4.80000000000001
39165.1148.117
40177165.111.9
41206.117729.1
42244.9206.138.8
43228.6244.9-16.3
44253.4228.624.8
45241.1253.4-12.3
46261.4241.120.3
47273.7261.412.3
48263.7273.7-10
49272.5263.78.80000000000001
50263.2272.5-9.30000000000001
51279.8263.216.6000000000000
52298.1279.818.3
53267.6298.1-30.5
54264.3267.6-3.30000000000001
55264.3264.30
56268.7264.34.39999999999998
57269.1268.70.400000000000034
58288.6269.119.5







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
59288.6235.190603464595342.009396535405
60288.6213.067707061468364.132292938532
61288.6196.092211599086381.107788400914
62288.6181.781206929191395.418793070809
63288.6169.172958709593408.027041290407
64288.6157.774231018287419.425768981713
65288.6147.292019093284429.907980906716
66288.6137.535414122936439.664585877064
67288.6128.371810393786448.828189606214
68288.6119.704658493015457.495341506985
69288.6111.461071412755465.738928587245
70288.6103.584423198172473.615576801828

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
59 & 288.6 & 235.190603464595 & 342.009396535405 \tabularnewline
60 & 288.6 & 213.067707061468 & 364.132292938532 \tabularnewline
61 & 288.6 & 196.092211599086 & 381.107788400914 \tabularnewline
62 & 288.6 & 181.781206929191 & 395.418793070809 \tabularnewline
63 & 288.6 & 169.172958709593 & 408.027041290407 \tabularnewline
64 & 288.6 & 157.774231018287 & 419.425768981713 \tabularnewline
65 & 288.6 & 147.292019093284 & 429.907980906716 \tabularnewline
66 & 288.6 & 137.535414122936 & 439.664585877064 \tabularnewline
67 & 288.6 & 128.371810393786 & 448.828189606214 \tabularnewline
68 & 288.6 & 119.704658493015 & 457.495341506985 \tabularnewline
69 & 288.6 & 111.461071412755 & 465.738928587245 \tabularnewline
70 & 288.6 & 103.584423198172 & 473.615576801828 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=104044&T=3

[TABLE]
[ROW][C]Extrapolation Forecasts of Exponential Smoothing[/C][/ROW]
[ROW][C]t[/C][C]Forecast[/C][C]95% Lower Bound[/C][C]95% Upper Bound[/C][/ROW]
[ROW][C]59[/C][C]288.6[/C][C]235.190603464595[/C][C]342.009396535405[/C][/ROW]
[ROW][C]60[/C][C]288.6[/C][C]213.067707061468[/C][C]364.132292938532[/C][/ROW]
[ROW][C]61[/C][C]288.6[/C][C]196.092211599086[/C][C]381.107788400914[/C][/ROW]
[ROW][C]62[/C][C]288.6[/C][C]181.781206929191[/C][C]395.418793070809[/C][/ROW]
[ROW][C]63[/C][C]288.6[/C][C]169.172958709593[/C][C]408.027041290407[/C][/ROW]
[ROW][C]64[/C][C]288.6[/C][C]157.774231018287[/C][C]419.425768981713[/C][/ROW]
[ROW][C]65[/C][C]288.6[/C][C]147.292019093284[/C][C]429.907980906716[/C][/ROW]
[ROW][C]66[/C][C]288.6[/C][C]137.535414122936[/C][C]439.664585877064[/C][/ROW]
[ROW][C]67[/C][C]288.6[/C][C]128.371810393786[/C][C]448.828189606214[/C][/ROW]
[ROW][C]68[/C][C]288.6[/C][C]119.704658493015[/C][C]457.495341506985[/C][/ROW]
[ROW][C]69[/C][C]288.6[/C][C]111.461071412755[/C][C]465.738928587245[/C][/ROW]
[ROW][C]70[/C][C]288.6[/C][C]103.584423198172[/C][C]473.615576801828[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=104044&T=3

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

As an alternative you can also use a QR Code:  

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

Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
59288.6235.190603464595342.009396535405
60288.6213.067707061468364.132292938532
61288.6196.092211599086381.107788400914
62288.6181.781206929191395.418793070809
63288.6169.172958709593408.027041290407
64288.6157.774231018287419.425768981713
65288.6147.292019093284429.907980906716
66288.6137.535414122936439.664585877064
67288.6128.371810393786448.828189606214
68288.6119.704658493015457.495341506985
69288.6111.461071412755465.738928587245
70288.6103.584423198172473.615576801828



Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = additive ;
Parameters (R input):
par1 = 12 ; par2 = Double ; par3 = additive ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
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,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')