Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationSat, 26 Nov 2016 20:01:29 +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/2016/Nov/26/t1480190508ebpzz6ftw5877g7.htm/, Retrieved Sat, 04 May 2024 05:23:55 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sat, 04 May 2024 05:23:55 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
37729
48191
52498
57319
44377
48081
52597
53331
39587
46278
50365
57176
39251
47946
50427
54317
41210
50592
55728
59099
47519
53203
53882
55163
45255
50423
52161
54562
40971
48014
48440
44967
27218
30269
33234
36811
27745
31891
32398
34093
28358
29532
30769
32080
23951
34628
22978
35704
23090
22111
28925
35968
28963
34074
39160
51314
34527
40722
50609
52435




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\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 & 1 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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 time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.61566080892384
beta0.159485866959751
gamma0.242404043620847

\begin{tabular}{lllllllll}
\hline
Estimated Parameters of Exponential Smoothing \tabularnewline
Parameter & Value \tabularnewline
alpha & 0.61566080892384 \tabularnewline
beta & 0.159485866959751 \tabularnewline
gamma & 0.242404043620847 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]0.61566080892384[/C][/ROW]
[ROW][C]beta[/C][C]0.159485866959751[/C][/ROW]
[ROW][C]gamma[/C][C]0.242404043620847[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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
alpha0.61566080892384
beta0.159485866959751
gamma0.242404043620847







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
54437743590.88125786.118750000001
64808148440.9646250238-359.964625023837
75259753106.7297444957-509.729744495686
85333156887.2403946253-3556.24039462529
93958741571.8134891226-1984.8134891226
104627843979.70096532262298.29903467739
115036549899.6484642448465.351535755231
125717653723.93813642733452.06186357269
133925143285.0794174586-4034.0794174586
144794645044.56475077852901.43524922147
155042751438.5065971457-1011.5065971457
165431754760.2333230066-443.2333230066
174121040971.6916977106238.308302289413
185059246173.11768364154418.88231635848
195572853451.18759343782276.81240656216
205909959487.6703198442-388.670319844234
214751946438.89804575151080.10195424854
225320353273.4041456607-70.4041456606501
235388257872.5661512554-3990.56615125536
245516359471.2865312792-4308.28653127923
254525543430.48261789521824.51738210482
265042349973.4860747189449.513925281091
275216153935.9455227978-1774.9455227978
285456256495.1137873396-1933.1137873396
294097142347.1695580153-1376.16955801527
304801446336.45385024251677.5461497575
314844050513.222571015-2073.22257101501
324496752510.2305136375-7543.23051363749
332721834045.6053110032-6827.6053110032
343026933513.2428311934-3244.24283119343
353323432377.2386910211856.761308978865
363681134023.02180552062787.97819447944
372774521354.51576113686390.48423886322
383189129960.65926014961930.34073985045
393239833567.4041903228-1169.40419032281
403409335121.6207713782-1028.62077137823
412835821040.20596579317317.79403420688
422953230493.9714535087-961.971453508726
433076932439.4950363053-1670.49503630532
443208034057.3748665307-1977.37486653073
452395120435.33790579373515.66209420631
463462826669.45573500747958.54426499261
472297834809.4430753346-11831.4430753346
483570429913.80120362345790.19879637664
492309022119.1739593099970.826040690095
502211127484.0415223843-5373.04152238429
512892524547.11746300514377.88253699488
523596831838.79470901654129.20529098352
532896322975.61431715665987.38568284338
543407431733.57834348622340.42165651383
553916036106.98460425923053.0153957408
565131444082.74217646467231.25782353544
573452739129.9972879982-4602.99728799818
584072241815.7508517228-1093.75085172278
595060944591.70615808786017.29384191218
605243555523.2268455693-3088.22684556928

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
5 & 44377 & 43590.88125 & 786.118750000001 \tabularnewline
6 & 48081 & 48440.9646250238 & -359.964625023837 \tabularnewline
7 & 52597 & 53106.7297444957 & -509.729744495686 \tabularnewline
8 & 53331 & 56887.2403946253 & -3556.24039462529 \tabularnewline
9 & 39587 & 41571.8134891226 & -1984.8134891226 \tabularnewline
10 & 46278 & 43979.7009653226 & 2298.29903467739 \tabularnewline
11 & 50365 & 49899.6484642448 & 465.351535755231 \tabularnewline
12 & 57176 & 53723.9381364273 & 3452.06186357269 \tabularnewline
13 & 39251 & 43285.0794174586 & -4034.0794174586 \tabularnewline
14 & 47946 & 45044.5647507785 & 2901.43524922147 \tabularnewline
15 & 50427 & 51438.5065971457 & -1011.5065971457 \tabularnewline
16 & 54317 & 54760.2333230066 & -443.2333230066 \tabularnewline
17 & 41210 & 40971.6916977106 & 238.308302289413 \tabularnewline
18 & 50592 & 46173.1176836415 & 4418.88231635848 \tabularnewline
19 & 55728 & 53451.1875934378 & 2276.81240656216 \tabularnewline
20 & 59099 & 59487.6703198442 & -388.670319844234 \tabularnewline
21 & 47519 & 46438.8980457515 & 1080.10195424854 \tabularnewline
22 & 53203 & 53273.4041456607 & -70.4041456606501 \tabularnewline
23 & 53882 & 57872.5661512554 & -3990.56615125536 \tabularnewline
24 & 55163 & 59471.2865312792 & -4308.28653127923 \tabularnewline
25 & 45255 & 43430.4826178952 & 1824.51738210482 \tabularnewline
26 & 50423 & 49973.4860747189 & 449.513925281091 \tabularnewline
27 & 52161 & 53935.9455227978 & -1774.9455227978 \tabularnewline
28 & 54562 & 56495.1137873396 & -1933.1137873396 \tabularnewline
29 & 40971 & 42347.1695580153 & -1376.16955801527 \tabularnewline
30 & 48014 & 46336.4538502425 & 1677.5461497575 \tabularnewline
31 & 48440 & 50513.222571015 & -2073.22257101501 \tabularnewline
32 & 44967 & 52510.2305136375 & -7543.23051363749 \tabularnewline
33 & 27218 & 34045.6053110032 & -6827.6053110032 \tabularnewline
34 & 30269 & 33513.2428311934 & -3244.24283119343 \tabularnewline
35 & 33234 & 32377.2386910211 & 856.761308978865 \tabularnewline
36 & 36811 & 34023.0218055206 & 2787.97819447944 \tabularnewline
37 & 27745 & 21354.5157611368 & 6390.48423886322 \tabularnewline
38 & 31891 & 29960.6592601496 & 1930.34073985045 \tabularnewline
39 & 32398 & 33567.4041903228 & -1169.40419032281 \tabularnewline
40 & 34093 & 35121.6207713782 & -1028.62077137823 \tabularnewline
41 & 28358 & 21040.2059657931 & 7317.79403420688 \tabularnewline
42 & 29532 & 30493.9714535087 & -961.971453508726 \tabularnewline
43 & 30769 & 32439.4950363053 & -1670.49503630532 \tabularnewline
44 & 32080 & 34057.3748665307 & -1977.37486653073 \tabularnewline
45 & 23951 & 20435.3379057937 & 3515.66209420631 \tabularnewline
46 & 34628 & 26669.4557350074 & 7958.54426499261 \tabularnewline
47 & 22978 & 34809.4430753346 & -11831.4430753346 \tabularnewline
48 & 35704 & 29913.8012036234 & 5790.19879637664 \tabularnewline
49 & 23090 & 22119.1739593099 & 970.826040690095 \tabularnewline
50 & 22111 & 27484.0415223843 & -5373.04152238429 \tabularnewline
51 & 28925 & 24547.1174630051 & 4377.88253699488 \tabularnewline
52 & 35968 & 31838.7947090165 & 4129.20529098352 \tabularnewline
53 & 28963 & 22975.6143171566 & 5987.38568284338 \tabularnewline
54 & 34074 & 31733.5783434862 & 2340.42165651383 \tabularnewline
55 & 39160 & 36106.9846042592 & 3053.0153957408 \tabularnewline
56 & 51314 & 44082.7421764646 & 7231.25782353544 \tabularnewline
57 & 34527 & 39129.9972879982 & -4602.99728799818 \tabularnewline
58 & 40722 & 41815.7508517228 & -1093.75085172278 \tabularnewline
59 & 50609 & 44591.7061580878 & 6017.29384191218 \tabularnewline
60 & 52435 & 55523.2268455693 & -3088.22684556928 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]5[/C][C]44377[/C][C]43590.88125[/C][C]786.118750000001[/C][/ROW]
[ROW][C]6[/C][C]48081[/C][C]48440.9646250238[/C][C]-359.964625023837[/C][/ROW]
[ROW][C]7[/C][C]52597[/C][C]53106.7297444957[/C][C]-509.729744495686[/C][/ROW]
[ROW][C]8[/C][C]53331[/C][C]56887.2403946253[/C][C]-3556.24039462529[/C][/ROW]
[ROW][C]9[/C][C]39587[/C][C]41571.8134891226[/C][C]-1984.8134891226[/C][/ROW]
[ROW][C]10[/C][C]46278[/C][C]43979.7009653226[/C][C]2298.29903467739[/C][/ROW]
[ROW][C]11[/C][C]50365[/C][C]49899.6484642448[/C][C]465.351535755231[/C][/ROW]
[ROW][C]12[/C][C]57176[/C][C]53723.9381364273[/C][C]3452.06186357269[/C][/ROW]
[ROW][C]13[/C][C]39251[/C][C]43285.0794174586[/C][C]-4034.0794174586[/C][/ROW]
[ROW][C]14[/C][C]47946[/C][C]45044.5647507785[/C][C]2901.43524922147[/C][/ROW]
[ROW][C]15[/C][C]50427[/C][C]51438.5065971457[/C][C]-1011.5065971457[/C][/ROW]
[ROW][C]16[/C][C]54317[/C][C]54760.2333230066[/C][C]-443.2333230066[/C][/ROW]
[ROW][C]17[/C][C]41210[/C][C]40971.6916977106[/C][C]238.308302289413[/C][/ROW]
[ROW][C]18[/C][C]50592[/C][C]46173.1176836415[/C][C]4418.88231635848[/C][/ROW]
[ROW][C]19[/C][C]55728[/C][C]53451.1875934378[/C][C]2276.81240656216[/C][/ROW]
[ROW][C]20[/C][C]59099[/C][C]59487.6703198442[/C][C]-388.670319844234[/C][/ROW]
[ROW][C]21[/C][C]47519[/C][C]46438.8980457515[/C][C]1080.10195424854[/C][/ROW]
[ROW][C]22[/C][C]53203[/C][C]53273.4041456607[/C][C]-70.4041456606501[/C][/ROW]
[ROW][C]23[/C][C]53882[/C][C]57872.5661512554[/C][C]-3990.56615125536[/C][/ROW]
[ROW][C]24[/C][C]55163[/C][C]59471.2865312792[/C][C]-4308.28653127923[/C][/ROW]
[ROW][C]25[/C][C]45255[/C][C]43430.4826178952[/C][C]1824.51738210482[/C][/ROW]
[ROW][C]26[/C][C]50423[/C][C]49973.4860747189[/C][C]449.513925281091[/C][/ROW]
[ROW][C]27[/C][C]52161[/C][C]53935.9455227978[/C][C]-1774.9455227978[/C][/ROW]
[ROW][C]28[/C][C]54562[/C][C]56495.1137873396[/C][C]-1933.1137873396[/C][/ROW]
[ROW][C]29[/C][C]40971[/C][C]42347.1695580153[/C][C]-1376.16955801527[/C][/ROW]
[ROW][C]30[/C][C]48014[/C][C]46336.4538502425[/C][C]1677.5461497575[/C][/ROW]
[ROW][C]31[/C][C]48440[/C][C]50513.222571015[/C][C]-2073.22257101501[/C][/ROW]
[ROW][C]32[/C][C]44967[/C][C]52510.2305136375[/C][C]-7543.23051363749[/C][/ROW]
[ROW][C]33[/C][C]27218[/C][C]34045.6053110032[/C][C]-6827.6053110032[/C][/ROW]
[ROW][C]34[/C][C]30269[/C][C]33513.2428311934[/C][C]-3244.24283119343[/C][/ROW]
[ROW][C]35[/C][C]33234[/C][C]32377.2386910211[/C][C]856.761308978865[/C][/ROW]
[ROW][C]36[/C][C]36811[/C][C]34023.0218055206[/C][C]2787.97819447944[/C][/ROW]
[ROW][C]37[/C][C]27745[/C][C]21354.5157611368[/C][C]6390.48423886322[/C][/ROW]
[ROW][C]38[/C][C]31891[/C][C]29960.6592601496[/C][C]1930.34073985045[/C][/ROW]
[ROW][C]39[/C][C]32398[/C][C]33567.4041903228[/C][C]-1169.40419032281[/C][/ROW]
[ROW][C]40[/C][C]34093[/C][C]35121.6207713782[/C][C]-1028.62077137823[/C][/ROW]
[ROW][C]41[/C][C]28358[/C][C]21040.2059657931[/C][C]7317.79403420688[/C][/ROW]
[ROW][C]42[/C][C]29532[/C][C]30493.9714535087[/C][C]-961.971453508726[/C][/ROW]
[ROW][C]43[/C][C]30769[/C][C]32439.4950363053[/C][C]-1670.49503630532[/C][/ROW]
[ROW][C]44[/C][C]32080[/C][C]34057.3748665307[/C][C]-1977.37486653073[/C][/ROW]
[ROW][C]45[/C][C]23951[/C][C]20435.3379057937[/C][C]3515.66209420631[/C][/ROW]
[ROW][C]46[/C][C]34628[/C][C]26669.4557350074[/C][C]7958.54426499261[/C][/ROW]
[ROW][C]47[/C][C]22978[/C][C]34809.4430753346[/C][C]-11831.4430753346[/C][/ROW]
[ROW][C]48[/C][C]35704[/C][C]29913.8012036234[/C][C]5790.19879637664[/C][/ROW]
[ROW][C]49[/C][C]23090[/C][C]22119.1739593099[/C][C]970.826040690095[/C][/ROW]
[ROW][C]50[/C][C]22111[/C][C]27484.0415223843[/C][C]-5373.04152238429[/C][/ROW]
[ROW][C]51[/C][C]28925[/C][C]24547.1174630051[/C][C]4377.88253699488[/C][/ROW]
[ROW][C]52[/C][C]35968[/C][C]31838.7947090165[/C][C]4129.20529098352[/C][/ROW]
[ROW][C]53[/C][C]28963[/C][C]22975.6143171566[/C][C]5987.38568284338[/C][/ROW]
[ROW][C]54[/C][C]34074[/C][C]31733.5783434862[/C][C]2340.42165651383[/C][/ROW]
[ROW][C]55[/C][C]39160[/C][C]36106.9846042592[/C][C]3053.0153957408[/C][/ROW]
[ROW][C]56[/C][C]51314[/C][C]44082.7421764646[/C][C]7231.25782353544[/C][/ROW]
[ROW][C]57[/C][C]34527[/C][C]39129.9972879982[/C][C]-4602.99728799818[/C][/ROW]
[ROW][C]58[/C][C]40722[/C][C]41815.7508517228[/C][C]-1093.75085172278[/C][/ROW]
[ROW][C]59[/C][C]50609[/C][C]44591.7061580878[/C][C]6017.29384191218[/C][/ROW]
[ROW][C]60[/C][C]52435[/C][C]55523.2268455693[/C][C]-3088.22684556928[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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
54437743590.88125786.118750000001
64808148440.9646250238-359.964625023837
75259753106.7297444957-509.729744495686
85333156887.2403946253-3556.24039462529
93958741571.8134891226-1984.8134891226
104627843979.70096532262298.29903467739
115036549899.6484642448465.351535755231
125717653723.93813642733452.06186357269
133925143285.0794174586-4034.0794174586
144794645044.56475077852901.43524922147
155042751438.5065971457-1011.5065971457
165431754760.2333230066-443.2333230066
174121040971.6916977106238.308302289413
185059246173.11768364154418.88231635848
195572853451.18759343782276.81240656216
205909959487.6703198442-388.670319844234
214751946438.89804575151080.10195424854
225320353273.4041456607-70.4041456606501
235388257872.5661512554-3990.56615125536
245516359471.2865312792-4308.28653127923
254525543430.48261789521824.51738210482
265042349973.4860747189449.513925281091
275216153935.9455227978-1774.9455227978
285456256495.1137873396-1933.1137873396
294097142347.1695580153-1376.16955801527
304801446336.45385024251677.5461497575
314844050513.222571015-2073.22257101501
324496752510.2305136375-7543.23051363749
332721834045.6053110032-6827.6053110032
343026933513.2428311934-3244.24283119343
353323432377.2386910211856.761308978865
363681134023.02180552062787.97819447944
372774521354.51576113686390.48423886322
383189129960.65926014961930.34073985045
393239833567.4041903228-1169.40419032281
403409335121.6207713782-1028.62077137823
412835821040.20596579317317.79403420688
422953230493.9714535087-961.971453508726
433076932439.4950363053-1670.49503630532
443208034057.3748665307-1977.37486653073
452395120435.33790579373515.66209420631
463462826669.45573500747958.54426499261
472297834809.4430753346-11831.4430753346
483570429913.80120362345790.19879637664
492309022119.1739593099970.826040690095
502211127484.0415223843-5373.04152238429
512892524547.11746300514377.88253699488
523596831838.79470901654129.20529098352
532896322975.61431715665987.38568284338
543407431733.57834348622340.42165651383
553916036106.98460425923053.0153957408
565131444082.74217646467231.25782353544
573452739129.9972879982-4602.99728799818
584072241815.7508517228-1093.75085172278
595060944591.70615808786017.29384191218
605243555523.2268455693-3088.22684556928







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6142842.880482695235118.401458939450567.359506451
6248869.667557120839378.983230636458360.3518836052
6353269.108275169841892.889818778164645.3267315615
6459344.4672109545970.841199630172718.0932222699

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
61 & 42842.8804826952 & 35118.4014589394 & 50567.359506451 \tabularnewline
62 & 48869.6675571208 & 39378.9832306364 & 58360.3518836052 \tabularnewline
63 & 53269.1082751698 & 41892.8898187781 & 64645.3267315615 \tabularnewline
64 & 59344.46721095 & 45970.8411996301 & 72718.0932222699 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]61[/C][C]42842.8804826952[/C][C]35118.4014589394[/C][C]50567.359506451[/C][/ROW]
[ROW][C]62[/C][C]48869.6675571208[/C][C]39378.9832306364[/C][C]58360.3518836052[/C][/ROW]
[ROW][C]63[/C][C]53269.1082751698[/C][C]41892.8898187781[/C][C]64645.3267315615[/C][/ROW]
[ROW][C]64[/C][C]59344.46721095[/C][C]45970.8411996301[/C][C]72718.0932222699[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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
6142842.880482695235118.401458939450567.359506451
6248869.667557120839378.983230636458360.3518836052
6353269.108275169841892.889818778164645.3267315615
6459344.4672109545970.841199630172718.0932222699



Parameters (Session):
par1 = 4 ; par2 = Triple ; par3 = additive ;
Parameters (R input):
par1 = 4 ; par2 = Triple ; par3 = additive ;
R code (references can be found in the software module):
par3 <- 'multiplicative'
par2 <- 'Double'
par1 <- '4'
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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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')