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 computationMon, 29 Nov 2010 11:59:42 +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/Nov/29/t1291031908a89acssmtqceg6m.htm/, Retrieved Mon, 29 Apr 2024 16:04:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=102865, Retrieved Mon, 29 Apr 2024 16:04:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact168
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Workshop 8 Regres...] [2010-11-27 09:22:21] [87d60b8864dc39f7ed759c345edfb471]
- RMP   [Spectral Analysis] [Workshop 8 Regres...] [2010-11-27 12:28:23] [87d60b8864dc39f7ed759c345edfb471]
- RMP     [Exponential Smoothing] [Workshop 8 Regres...] [2010-11-27 13:02:33] [87d60b8864dc39f7ed759c345edfb471]
-   P       [Exponential Smoothing] [Workshop 8 Regres...] [2010-11-27 13:15:31] [87d60b8864dc39f7ed759c345edfb471]
- R  D        [Exponential Smoothing] [ws 8 - exponentia...] [2010-11-28 09:11:22] [033eb2749a430605d9b2be7c4aac4a0c]
- R PD            [Exponential Smoothing] [W8-exponentieel s...] [2010-11-29 11:59:42] [6f3869f9d1e39c73f93153f1f7803f84] [Current]
Feedback Forum

Post a new message
Dataseries X:
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518
506
502
516
528
533
536
537
524
536
587
597
581
564
558
575
580
575
563
552
537
545
601




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102865&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102865&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102865&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'George Udny Yule' @ 72.249.76.132







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.827978722117885
beta0.145260654323399
gamma1

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102865&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.827978722117885
beta0.145260654323399
gamma1







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13561589.803151709402-28.8031517094020
14549550.714443159717-1.71444315971678
15532529.3900748046292.60992519537126
16526522.9600942649523.03990573504825
17511507.3350795609423.66492043905816
18499494.9183537227494.08164627725125
19555559.587578756035-4.5875787560351
20565557.1937759657827.80622403421842
21542554.66732072158-12.6673207215804
22527507.9573394630319.0426605369699
23510500.3761940858079.62380591419253
24514500.2372522468813.7627477531198
25517513.35079447613.64920552390004
26508511.602361406719-3.6023614067185
27493495.042235148799-2.04223514879880
28490489.8583174691090.141682530890648
29469476.616561063489-7.61656106348914
30478458.24924932436619.7507506756338
31528539.603989229005-11.6039892290052
32534537.891983809622-3.89198380962216
33518525.110038801985-7.1100388019853
34506492.07681244630713.9231875536930
35502481.64152818832520.3584718116750
36516495.39865417524320.6013458247569
37528517.55316931406510.4468306859353
38533526.1216740472336.878325952767
39536525.70432233704710.2956776629529
40537539.792142227226-2.79214222722590
41524531.114327230819-7.1143272308193
42536526.2586882514469.74131174855438
43587601.116354618332-14.1163546183316
44597605.532835435446-8.53283543544649
45581594.678664491881-13.6786644918808
46564565.35876615169-1.35876615168979
47558547.07320075318710.9267992468126
48575555.62435456213119.3756454378687
49580577.4312773792382.56872262076172
50575580.329550136699-5.32955013669914
51563570.390452011206-7.39045201120621
52552565.454248257545-13.4542482575455
53537543.793666842844-6.79366684284389
54545538.7303613943936.2696386056067
55601602.81928739912-1.81928739911973

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
13 & 561 & 589.803151709402 & -28.8031517094020 \tabularnewline
14 & 549 & 550.714443159717 & -1.71444315971678 \tabularnewline
15 & 532 & 529.390074804629 & 2.60992519537126 \tabularnewline
16 & 526 & 522.960094264952 & 3.03990573504825 \tabularnewline
17 & 511 & 507.335079560942 & 3.66492043905816 \tabularnewline
18 & 499 & 494.918353722749 & 4.08164627725125 \tabularnewline
19 & 555 & 559.587578756035 & -4.5875787560351 \tabularnewline
20 & 565 & 557.193775965782 & 7.80622403421842 \tabularnewline
21 & 542 & 554.66732072158 & -12.6673207215804 \tabularnewline
22 & 527 & 507.95733946303 & 19.0426605369699 \tabularnewline
23 & 510 & 500.376194085807 & 9.62380591419253 \tabularnewline
24 & 514 & 500.23725224688 & 13.7627477531198 \tabularnewline
25 & 517 & 513.3507944761 & 3.64920552390004 \tabularnewline
26 & 508 & 511.602361406719 & -3.6023614067185 \tabularnewline
27 & 493 & 495.042235148799 & -2.04223514879880 \tabularnewline
28 & 490 & 489.858317469109 & 0.141682530890648 \tabularnewline
29 & 469 & 476.616561063489 & -7.61656106348914 \tabularnewline
30 & 478 & 458.249249324366 & 19.7507506756338 \tabularnewline
31 & 528 & 539.603989229005 & -11.6039892290052 \tabularnewline
32 & 534 & 537.891983809622 & -3.89198380962216 \tabularnewline
33 & 518 & 525.110038801985 & -7.1100388019853 \tabularnewline
34 & 506 & 492.076812446307 & 13.9231875536930 \tabularnewline
35 & 502 & 481.641528188325 & 20.3584718116750 \tabularnewline
36 & 516 & 495.398654175243 & 20.6013458247569 \tabularnewline
37 & 528 & 517.553169314065 & 10.4468306859353 \tabularnewline
38 & 533 & 526.121674047233 & 6.878325952767 \tabularnewline
39 & 536 & 525.704322337047 & 10.2956776629529 \tabularnewline
40 & 537 & 539.792142227226 & -2.79214222722590 \tabularnewline
41 & 524 & 531.114327230819 & -7.1143272308193 \tabularnewline
42 & 536 & 526.258688251446 & 9.74131174855438 \tabularnewline
43 & 587 & 601.116354618332 & -14.1163546183316 \tabularnewline
44 & 597 & 605.532835435446 & -8.53283543544649 \tabularnewline
45 & 581 & 594.678664491881 & -13.6786644918808 \tabularnewline
46 & 564 & 565.35876615169 & -1.35876615168979 \tabularnewline
47 & 558 & 547.073200753187 & 10.9267992468126 \tabularnewline
48 & 575 & 555.624354562131 & 19.3756454378687 \tabularnewline
49 & 580 & 577.431277379238 & 2.56872262076172 \tabularnewline
50 & 575 & 580.329550136699 & -5.32955013669914 \tabularnewline
51 & 563 & 570.390452011206 & -7.39045201120621 \tabularnewline
52 & 552 & 565.454248257545 & -13.4542482575455 \tabularnewline
53 & 537 & 543.793666842844 & -6.79366684284389 \tabularnewline
54 & 545 & 538.730361394393 & 6.2696386056067 \tabularnewline
55 & 601 & 602.81928739912 & -1.81928739911973 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102865&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]13[/C][C]561[/C][C]589.803151709402[/C][C]-28.8031517094020[/C][/ROW]
[ROW][C]14[/C][C]549[/C][C]550.714443159717[/C][C]-1.71444315971678[/C][/ROW]
[ROW][C]15[/C][C]532[/C][C]529.390074804629[/C][C]2.60992519537126[/C][/ROW]
[ROW][C]16[/C][C]526[/C][C]522.960094264952[/C][C]3.03990573504825[/C][/ROW]
[ROW][C]17[/C][C]511[/C][C]507.335079560942[/C][C]3.66492043905816[/C][/ROW]
[ROW][C]18[/C][C]499[/C][C]494.918353722749[/C][C]4.08164627725125[/C][/ROW]
[ROW][C]19[/C][C]555[/C][C]559.587578756035[/C][C]-4.5875787560351[/C][/ROW]
[ROW][C]20[/C][C]565[/C][C]557.193775965782[/C][C]7.80622403421842[/C][/ROW]
[ROW][C]21[/C][C]542[/C][C]554.66732072158[/C][C]-12.6673207215804[/C][/ROW]
[ROW][C]22[/C][C]527[/C][C]507.95733946303[/C][C]19.0426605369699[/C][/ROW]
[ROW][C]23[/C][C]510[/C][C]500.376194085807[/C][C]9.62380591419253[/C][/ROW]
[ROW][C]24[/C][C]514[/C][C]500.23725224688[/C][C]13.7627477531198[/C][/ROW]
[ROW][C]25[/C][C]517[/C][C]513.3507944761[/C][C]3.64920552390004[/C][/ROW]
[ROW][C]26[/C][C]508[/C][C]511.602361406719[/C][C]-3.6023614067185[/C][/ROW]
[ROW][C]27[/C][C]493[/C][C]495.042235148799[/C][C]-2.04223514879880[/C][/ROW]
[ROW][C]28[/C][C]490[/C][C]489.858317469109[/C][C]0.141682530890648[/C][/ROW]
[ROW][C]29[/C][C]469[/C][C]476.616561063489[/C][C]-7.61656106348914[/C][/ROW]
[ROW][C]30[/C][C]478[/C][C]458.249249324366[/C][C]19.7507506756338[/C][/ROW]
[ROW][C]31[/C][C]528[/C][C]539.603989229005[/C][C]-11.6039892290052[/C][/ROW]
[ROW][C]32[/C][C]534[/C][C]537.891983809622[/C][C]-3.89198380962216[/C][/ROW]
[ROW][C]33[/C][C]518[/C][C]525.110038801985[/C][C]-7.1100388019853[/C][/ROW]
[ROW][C]34[/C][C]506[/C][C]492.076812446307[/C][C]13.9231875536930[/C][/ROW]
[ROW][C]35[/C][C]502[/C][C]481.641528188325[/C][C]20.3584718116750[/C][/ROW]
[ROW][C]36[/C][C]516[/C][C]495.398654175243[/C][C]20.6013458247569[/C][/ROW]
[ROW][C]37[/C][C]528[/C][C]517.553169314065[/C][C]10.4468306859353[/C][/ROW]
[ROW][C]38[/C][C]533[/C][C]526.121674047233[/C][C]6.878325952767[/C][/ROW]
[ROW][C]39[/C][C]536[/C][C]525.704322337047[/C][C]10.2956776629529[/C][/ROW]
[ROW][C]40[/C][C]537[/C][C]539.792142227226[/C][C]-2.79214222722590[/C][/ROW]
[ROW][C]41[/C][C]524[/C][C]531.114327230819[/C][C]-7.1143272308193[/C][/ROW]
[ROW][C]42[/C][C]536[/C][C]526.258688251446[/C][C]9.74131174855438[/C][/ROW]
[ROW][C]43[/C][C]587[/C][C]601.116354618332[/C][C]-14.1163546183316[/C][/ROW]
[ROW][C]44[/C][C]597[/C][C]605.532835435446[/C][C]-8.53283543544649[/C][/ROW]
[ROW][C]45[/C][C]581[/C][C]594.678664491881[/C][C]-13.6786644918808[/C][/ROW]
[ROW][C]46[/C][C]564[/C][C]565.35876615169[/C][C]-1.35876615168979[/C][/ROW]
[ROW][C]47[/C][C]558[/C][C]547.073200753187[/C][C]10.9267992468126[/C][/ROW]
[ROW][C]48[/C][C]575[/C][C]555.624354562131[/C][C]19.3756454378687[/C][/ROW]
[ROW][C]49[/C][C]580[/C][C]577.431277379238[/C][C]2.56872262076172[/C][/ROW]
[ROW][C]50[/C][C]575[/C][C]580.329550136699[/C][C]-5.32955013669914[/C][/ROW]
[ROW][C]51[/C][C]563[/C][C]570.390452011206[/C][C]-7.39045201120621[/C][/ROW]
[ROW][C]52[/C][C]552[/C][C]565.454248257545[/C][C]-13.4542482575455[/C][/ROW]
[ROW][C]53[/C][C]537[/C][C]543.793666842844[/C][C]-6.79366684284389[/C][/ROW]
[ROW][C]54[/C][C]545[/C][C]538.730361394393[/C][C]6.2696386056067[/C][/ROW]
[ROW][C]55[/C][C]601[/C][C]602.81928739912[/C][C]-1.81928739911973[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102865&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102865&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
13561589.803151709402-28.8031517094020
14549550.714443159717-1.71444315971678
15532529.3900748046292.60992519537126
16526522.9600942649523.03990573504825
17511507.3350795609423.66492043905816
18499494.9183537227494.08164627725125
19555559.587578756035-4.5875787560351
20565557.1937759657827.80622403421842
21542554.66732072158-12.6673207215804
22527507.9573394630319.0426605369699
23510500.3761940858079.62380591419253
24514500.2372522468813.7627477531198
25517513.35079447613.64920552390004
26508511.602361406719-3.6023614067185
27493495.042235148799-2.04223514879880
28490489.8583174691090.141682530890648
29469476.616561063489-7.61656106348914
30478458.24924932436619.7507506756338
31528539.603989229005-11.6039892290052
32534537.891983809622-3.89198380962216
33518525.110038801985-7.1100388019853
34506492.07681244630713.9231875536930
35502481.64152818832520.3584718116750
36516495.39865417524320.6013458247569
37528517.55316931406510.4468306859353
38533526.1216740472336.878325952767
39536525.70432233704710.2956776629529
40537539.792142227226-2.79214222722590
41524531.114327230819-7.1143272308193
42536526.2586882514469.74131174855438
43587601.116354618332-14.1163546183316
44597605.532835435446-8.53283543544649
45581594.678664491881-13.6786644918808
46564565.35876615169-1.35876615168979
47558547.07320075318710.9267992468126
48575555.62435456213119.3756454378687
49580577.4312773792382.56872262076172
50575580.329550136699-5.32955013669914
51563570.390452011206-7.39045201120621
52552565.454248257545-13.4542482575455
53537543.793666842844-6.79366684284389
54545538.7303613943936.2696386056067
55601602.81928739912-1.81928739911973







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
56616.066721566197594.375387966704637.758055165689
57610.107391376034580.214397633983640.000385118085
58594.592617835598556.766733498366632.41850217283
59580.069080071788534.289764069337625.848396074238
60580.235881449481526.365218882813634.106544016149
61579.988095513466517.832504226068642.143686800864
62575.970964077483505.308626374654646.633301780313
63567.301215091592487.895887331841646.706542851343
64565.541030219201477.149569565278653.932490873125
65555.884204839193458.260892272141653.507517406245
66559.228333371631452.127441386747666.329225356516
67616.515853963662499.693199885146733.338508042177

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
56 & 616.066721566197 & 594.375387966704 & 637.758055165689 \tabularnewline
57 & 610.107391376034 & 580.214397633983 & 640.000385118085 \tabularnewline
58 & 594.592617835598 & 556.766733498366 & 632.41850217283 \tabularnewline
59 & 580.069080071788 & 534.289764069337 & 625.848396074238 \tabularnewline
60 & 580.235881449481 & 526.365218882813 & 634.106544016149 \tabularnewline
61 & 579.988095513466 & 517.832504226068 & 642.143686800864 \tabularnewline
62 & 575.970964077483 & 505.308626374654 & 646.633301780313 \tabularnewline
63 & 567.301215091592 & 487.895887331841 & 646.706542851343 \tabularnewline
64 & 565.541030219201 & 477.149569565278 & 653.932490873125 \tabularnewline
65 & 555.884204839193 & 458.260892272141 & 653.507517406245 \tabularnewline
66 & 559.228333371631 & 452.127441386747 & 666.329225356516 \tabularnewline
67 & 616.515853963662 & 499.693199885146 & 733.338508042177 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102865&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]56[/C][C]616.066721566197[/C][C]594.375387966704[/C][C]637.758055165689[/C][/ROW]
[ROW][C]57[/C][C]610.107391376034[/C][C]580.214397633983[/C][C]640.000385118085[/C][/ROW]
[ROW][C]58[/C][C]594.592617835598[/C][C]556.766733498366[/C][C]632.41850217283[/C][/ROW]
[ROW][C]59[/C][C]580.069080071788[/C][C]534.289764069337[/C][C]625.848396074238[/C][/ROW]
[ROW][C]60[/C][C]580.235881449481[/C][C]526.365218882813[/C][C]634.106544016149[/C][/ROW]
[ROW][C]61[/C][C]579.988095513466[/C][C]517.832504226068[/C][C]642.143686800864[/C][/ROW]
[ROW][C]62[/C][C]575.970964077483[/C][C]505.308626374654[/C][C]646.633301780313[/C][/ROW]
[ROW][C]63[/C][C]567.301215091592[/C][C]487.895887331841[/C][C]646.706542851343[/C][/ROW]
[ROW][C]64[/C][C]565.541030219201[/C][C]477.149569565278[/C][C]653.932490873125[/C][/ROW]
[ROW][C]65[/C][C]555.884204839193[/C][C]458.260892272141[/C][C]653.507517406245[/C][/ROW]
[ROW][C]66[/C][C]559.228333371631[/C][C]452.127441386747[/C][C]666.329225356516[/C][/ROW]
[ROW][C]67[/C][C]616.515853963662[/C][C]499.693199885146[/C][C]733.338508042177[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102865&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102865&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
56616.066721566197594.375387966704637.758055165689
57610.107391376034580.214397633983640.000385118085
58594.592617835598556.766733498366632.41850217283
59580.069080071788534.289764069337625.848396074238
60580.235881449481526.365218882813634.106544016149
61579.988095513466517.832504226068642.143686800864
62575.970964077483505.308626374654646.633301780313
63567.301215091592487.895887331841646.706542851343
64565.541030219201477.149569565278653.932490873125
65555.884204839193458.260892272141653.507517406245
66559.228333371631452.127441386747666.329225356516
67616.515853963662499.693199885146733.338508042177



Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = additive ;
Parameters (R input):
par1 = 12 ; par2 = Triple ; 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=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')