Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationWed, 08 Oct 2014 08:37:35 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Oct/08/t1412753996gmpbxieukoyh7b6.htm/, Retrieved Sun, 12 May 2024 01:07:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=239428, Retrieved Sun, 12 May 2024 01:07:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact106
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Exponential Smoothing] [] [2014-10-08 07:37:35] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
185460
241861
406684
13956
83700
172957
187720
178261
3672
84698
28533
83909
115446
134787
227477
173859
70344
83937
48049
84601
74918
84455
190051
42789
188832
323411
366855
594265
690315
553034
347869
345946
31743
280548
459108
502223
784612
760892
962397
393563
358047
311529
269359
243392
37715




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.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 & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=239428&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=239428&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=239428&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'Herman Ole Andreas Wold' @ wold.wessa.net







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.906210503735661
beta0.0478175388872338
gammaFALSE

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=239428&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.906210503735661
beta0.0478175388872338
gammaFALSE







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3406684298262108422
413956457614.37930732-443658.37930732
58370097440.7796810345-13740.7796810345
6172957126267.5987237146689.4012762895
7187720211880.062925964-24160.0629259638
8178261232241.076372318-53980.076372318
93672223239.774933615-219567.774933615
108469854666.684952061930031.3150479381
1128533113584.251682058-85051.2516820582
128390964527.282507634419381.7174923656
13115446110948.430170384497.56982961997
14134787144076.298978024-9289.29897802367
15227477164307.83153250763169.1684674929
16173859252939.282534782-79080.2825347824
1770344209236.020300484-138892.020300484
1883937105312.159029863-21375.1590298627
1948049106957.067257971-58908.0672579714
208460172036.610908958712564.3890910413
2174918102429.694838011-27511.6948380112
228445595313.2530023364-10858.2530023364
23190051102817.81705353887233.1829464616
2442789202993.924919987-160204.924919987
2518883271996.8994914415116835.100508559
26323411197119.241964292126291.758035708
27366855336283.87675455130571.1232454485
28594265390030.197897947204234.802102053
29690315610002.42578526180312.5742147391
30553034721155.194297138-168121.194297138
31347869599889.517609609-252020.517609609
32345946391672.649282829-45726.6492828288
3331743368419.989553858-336676.989553858
3428054866915.9335658561213632.066434144
35459108273364.990624117185743.009375883
36502223462589.44774133539633.552258665
37784612521125.411173348263486.588826652
38760892793936.947699924-33044.9476999238
39962397796596.562481449165800.437518551
40393563986636.543871402-593073.543871402
41358047463277.441146021-105230.441146021
42311529377446.95725517-65917.9572551702
43269359324385.452436232-55026.4524362325
44243392278809.495848607-35417.4958486067
4537715249468.64398216-211753.64398216

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
3 & 406684 & 298262 & 108422 \tabularnewline
4 & 13956 & 457614.37930732 & -443658.37930732 \tabularnewline
5 & 83700 & 97440.7796810345 & -13740.7796810345 \tabularnewline
6 & 172957 & 126267.59872371 & 46689.4012762895 \tabularnewline
7 & 187720 & 211880.062925964 & -24160.0629259638 \tabularnewline
8 & 178261 & 232241.076372318 & -53980.076372318 \tabularnewline
9 & 3672 & 223239.774933615 & -219567.774933615 \tabularnewline
10 & 84698 & 54666.6849520619 & 30031.3150479381 \tabularnewline
11 & 28533 & 113584.251682058 & -85051.2516820582 \tabularnewline
12 & 83909 & 64527.2825076344 & 19381.7174923656 \tabularnewline
13 & 115446 & 110948.43017038 & 4497.56982961997 \tabularnewline
14 & 134787 & 144076.298978024 & -9289.29897802367 \tabularnewline
15 & 227477 & 164307.831532507 & 63169.1684674929 \tabularnewline
16 & 173859 & 252939.282534782 & -79080.2825347824 \tabularnewline
17 & 70344 & 209236.020300484 & -138892.020300484 \tabularnewline
18 & 83937 & 105312.159029863 & -21375.1590298627 \tabularnewline
19 & 48049 & 106957.067257971 & -58908.0672579714 \tabularnewline
20 & 84601 & 72036.6109089587 & 12564.3890910413 \tabularnewline
21 & 74918 & 102429.694838011 & -27511.6948380112 \tabularnewline
22 & 84455 & 95313.2530023364 & -10858.2530023364 \tabularnewline
23 & 190051 & 102817.817053538 & 87233.1829464616 \tabularnewline
24 & 42789 & 202993.924919987 & -160204.924919987 \tabularnewline
25 & 188832 & 71996.8994914415 & 116835.100508559 \tabularnewline
26 & 323411 & 197119.241964292 & 126291.758035708 \tabularnewline
27 & 366855 & 336283.876754551 & 30571.1232454485 \tabularnewline
28 & 594265 & 390030.197897947 & 204234.802102053 \tabularnewline
29 & 690315 & 610002.425785261 & 80312.5742147391 \tabularnewline
30 & 553034 & 721155.194297138 & -168121.194297138 \tabularnewline
31 & 347869 & 599889.517609609 & -252020.517609609 \tabularnewline
32 & 345946 & 391672.649282829 & -45726.6492828288 \tabularnewline
33 & 31743 & 368419.989553858 & -336676.989553858 \tabularnewline
34 & 280548 & 66915.9335658561 & 213632.066434144 \tabularnewline
35 & 459108 & 273364.990624117 & 185743.009375883 \tabularnewline
36 & 502223 & 462589.447741335 & 39633.552258665 \tabularnewline
37 & 784612 & 521125.411173348 & 263486.588826652 \tabularnewline
38 & 760892 & 793936.947699924 & -33044.9476999238 \tabularnewline
39 & 962397 & 796596.562481449 & 165800.437518551 \tabularnewline
40 & 393563 & 986636.543871402 & -593073.543871402 \tabularnewline
41 & 358047 & 463277.441146021 & -105230.441146021 \tabularnewline
42 & 311529 & 377446.95725517 & -65917.9572551702 \tabularnewline
43 & 269359 & 324385.452436232 & -55026.4524362325 \tabularnewline
44 & 243392 & 278809.495848607 & -35417.4958486067 \tabularnewline
45 & 37715 & 249468.64398216 & -211753.64398216 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=239428&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]406684[/C][C]298262[/C][C]108422[/C][/ROW]
[ROW][C]4[/C][C]13956[/C][C]457614.37930732[/C][C]-443658.37930732[/C][/ROW]
[ROW][C]5[/C][C]83700[/C][C]97440.7796810345[/C][C]-13740.7796810345[/C][/ROW]
[ROW][C]6[/C][C]172957[/C][C]126267.59872371[/C][C]46689.4012762895[/C][/ROW]
[ROW][C]7[/C][C]187720[/C][C]211880.062925964[/C][C]-24160.0629259638[/C][/ROW]
[ROW][C]8[/C][C]178261[/C][C]232241.076372318[/C][C]-53980.076372318[/C][/ROW]
[ROW][C]9[/C][C]3672[/C][C]223239.774933615[/C][C]-219567.774933615[/C][/ROW]
[ROW][C]10[/C][C]84698[/C][C]54666.6849520619[/C][C]30031.3150479381[/C][/ROW]
[ROW][C]11[/C][C]28533[/C][C]113584.251682058[/C][C]-85051.2516820582[/C][/ROW]
[ROW][C]12[/C][C]83909[/C][C]64527.2825076344[/C][C]19381.7174923656[/C][/ROW]
[ROW][C]13[/C][C]115446[/C][C]110948.43017038[/C][C]4497.56982961997[/C][/ROW]
[ROW][C]14[/C][C]134787[/C][C]144076.298978024[/C][C]-9289.29897802367[/C][/ROW]
[ROW][C]15[/C][C]227477[/C][C]164307.831532507[/C][C]63169.1684674929[/C][/ROW]
[ROW][C]16[/C][C]173859[/C][C]252939.282534782[/C][C]-79080.2825347824[/C][/ROW]
[ROW][C]17[/C][C]70344[/C][C]209236.020300484[/C][C]-138892.020300484[/C][/ROW]
[ROW][C]18[/C][C]83937[/C][C]105312.159029863[/C][C]-21375.1590298627[/C][/ROW]
[ROW][C]19[/C][C]48049[/C][C]106957.067257971[/C][C]-58908.0672579714[/C][/ROW]
[ROW][C]20[/C][C]84601[/C][C]72036.6109089587[/C][C]12564.3890910413[/C][/ROW]
[ROW][C]21[/C][C]74918[/C][C]102429.694838011[/C][C]-27511.6948380112[/C][/ROW]
[ROW][C]22[/C][C]84455[/C][C]95313.2530023364[/C][C]-10858.2530023364[/C][/ROW]
[ROW][C]23[/C][C]190051[/C][C]102817.817053538[/C][C]87233.1829464616[/C][/ROW]
[ROW][C]24[/C][C]42789[/C][C]202993.924919987[/C][C]-160204.924919987[/C][/ROW]
[ROW][C]25[/C][C]188832[/C][C]71996.8994914415[/C][C]116835.100508559[/C][/ROW]
[ROW][C]26[/C][C]323411[/C][C]197119.241964292[/C][C]126291.758035708[/C][/ROW]
[ROW][C]27[/C][C]366855[/C][C]336283.876754551[/C][C]30571.1232454485[/C][/ROW]
[ROW][C]28[/C][C]594265[/C][C]390030.197897947[/C][C]204234.802102053[/C][/ROW]
[ROW][C]29[/C][C]690315[/C][C]610002.425785261[/C][C]80312.5742147391[/C][/ROW]
[ROW][C]30[/C][C]553034[/C][C]721155.194297138[/C][C]-168121.194297138[/C][/ROW]
[ROW][C]31[/C][C]347869[/C][C]599889.517609609[/C][C]-252020.517609609[/C][/ROW]
[ROW][C]32[/C][C]345946[/C][C]391672.649282829[/C][C]-45726.6492828288[/C][/ROW]
[ROW][C]33[/C][C]31743[/C][C]368419.989553858[/C][C]-336676.989553858[/C][/ROW]
[ROW][C]34[/C][C]280548[/C][C]66915.9335658561[/C][C]213632.066434144[/C][/ROW]
[ROW][C]35[/C][C]459108[/C][C]273364.990624117[/C][C]185743.009375883[/C][/ROW]
[ROW][C]36[/C][C]502223[/C][C]462589.447741335[/C][C]39633.552258665[/C][/ROW]
[ROW][C]37[/C][C]784612[/C][C]521125.411173348[/C][C]263486.588826652[/C][/ROW]
[ROW][C]38[/C][C]760892[/C][C]793936.947699924[/C][C]-33044.9476999238[/C][/ROW]
[ROW][C]39[/C][C]962397[/C][C]796596.562481449[/C][C]165800.437518551[/C][/ROW]
[ROW][C]40[/C][C]393563[/C][C]986636.543871402[/C][C]-593073.543871402[/C][/ROW]
[ROW][C]41[/C][C]358047[/C][C]463277.441146021[/C][C]-105230.441146021[/C][/ROW]
[ROW][C]42[/C][C]311529[/C][C]377446.95725517[/C][C]-65917.9572551702[/C][/ROW]
[ROW][C]43[/C][C]269359[/C][C]324385.452436232[/C][C]-55026.4524362325[/C][/ROW]
[ROW][C]44[/C][C]243392[/C][C]278809.495848607[/C][C]-35417.4958486067[/C][/ROW]
[ROW][C]45[/C][C]37715[/C][C]249468.64398216[/C][C]-211753.64398216[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=239428&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=239428&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
3406684298262108422
413956457614.37930732-443658.37930732
58370097440.7796810345-13740.7796810345
6172957126267.5987237146689.4012762895
7187720211880.062925964-24160.0629259638
8178261232241.076372318-53980.076372318
93672223239.774933615-219567.774933615
108469854666.684952061930031.3150479381
1128533113584.251682058-85051.2516820582
128390964527.282507634419381.7174923656
13115446110948.430170384497.56982961997
14134787144076.298978024-9289.29897802367
15227477164307.83153250763169.1684674929
16173859252939.282534782-79080.2825347824
1770344209236.020300484-138892.020300484
1883937105312.159029863-21375.1590298627
1948049106957.067257971-58908.0672579714
208460172036.610908958712564.3890910413
2174918102429.694838011-27511.6948380112
228445595313.2530023364-10858.2530023364
23190051102817.81705353887233.1829464616
2442789202993.924919987-160204.924919987
2518883271996.8994914415116835.100508559
26323411197119.241964292126291.758035708
27366855336283.87675455130571.1232454485
28594265390030.197897947204234.802102053
29690315610002.42578526180312.5742147391
30553034721155.194297138-168121.194297138
31347869599889.517609609-252020.517609609
32345946391672.649282829-45726.6492828288
3331743368419.989553858-336676.989553858
3428054866915.9335658561213632.066434144
35459108273364.990624117185743.009375883
36502223462589.44774133539633.552258665
37784612521125.411173348263486.588826652
38760892793936.947699924-33044.9476999238
39962397796596.562481449165800.437518551
40393563986636.543871402-593073.543871402
41358047463277.441146021-105230.441146021
42311529377446.95725517-65917.9572551702
43269359324385.452436232-55026.4524362325
44243392278809.495848607-35417.4958486067
4537715249468.64398216-211753.64398216







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
4651154.2535015022-276264.047496169378572.554499173
4744733.2394017794-406775.57696755496242.055771109
4838312.2253020567-518051.841142685594676.291746799
4931891.2112023339-619758.716654383683541.139059051
5025470.1971026111-715868.300835956766808.695041178
5119049.1830028884-808446.430105569846544.796111345
5212628.1689031656-898716.380195489923972.71800182
536207.15480344286-987465.354644438999879.664251324
54-213.859296279908-1075230.180766781074802.46217422
55-6634.87339600267-1162392.888073291149123.14128128
56-13055.8874957254-1249234.330259241223122.55526779
57-19476.9015954482-1335966.304571291297012.5013804

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
46 & 51154.2535015022 & -276264.047496169 & 378572.554499173 \tabularnewline
47 & 44733.2394017794 & -406775.57696755 & 496242.055771109 \tabularnewline
48 & 38312.2253020567 & -518051.841142685 & 594676.291746799 \tabularnewline
49 & 31891.2112023339 & -619758.716654383 & 683541.139059051 \tabularnewline
50 & 25470.1971026111 & -715868.300835956 & 766808.695041178 \tabularnewline
51 & 19049.1830028884 & -808446.430105569 & 846544.796111345 \tabularnewline
52 & 12628.1689031656 & -898716.380195489 & 923972.71800182 \tabularnewline
53 & 6207.15480344286 & -987465.354644438 & 999879.664251324 \tabularnewline
54 & -213.859296279908 & -1075230.18076678 & 1074802.46217422 \tabularnewline
55 & -6634.87339600267 & -1162392.88807329 & 1149123.14128128 \tabularnewline
56 & -13055.8874957254 & -1249234.33025924 & 1223122.55526779 \tabularnewline
57 & -19476.9015954482 & -1335966.30457129 & 1297012.5013804 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=239428&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]46[/C][C]51154.2535015022[/C][C]-276264.047496169[/C][C]378572.554499173[/C][/ROW]
[ROW][C]47[/C][C]44733.2394017794[/C][C]-406775.57696755[/C][C]496242.055771109[/C][/ROW]
[ROW][C]48[/C][C]38312.2253020567[/C][C]-518051.841142685[/C][C]594676.291746799[/C][/ROW]
[ROW][C]49[/C][C]31891.2112023339[/C][C]-619758.716654383[/C][C]683541.139059051[/C][/ROW]
[ROW][C]50[/C][C]25470.1971026111[/C][C]-715868.300835956[/C][C]766808.695041178[/C][/ROW]
[ROW][C]51[/C][C]19049.1830028884[/C][C]-808446.430105569[/C][C]846544.796111345[/C][/ROW]
[ROW][C]52[/C][C]12628.1689031656[/C][C]-898716.380195489[/C][C]923972.71800182[/C][/ROW]
[ROW][C]53[/C][C]6207.15480344286[/C][C]-987465.354644438[/C][C]999879.664251324[/C][/ROW]
[ROW][C]54[/C][C]-213.859296279908[/C][C]-1075230.18076678[/C][C]1074802.46217422[/C][/ROW]
[ROW][C]55[/C][C]-6634.87339600267[/C][C]-1162392.88807329[/C][C]1149123.14128128[/C][/ROW]
[ROW][C]56[/C][C]-13055.8874957254[/C][C]-1249234.33025924[/C][C]1223122.55526779[/C][/ROW]
[ROW][C]57[/C][C]-19476.9015954482[/C][C]-1335966.30457129[/C][C]1297012.5013804[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=239428&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=239428&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
4651154.2535015022-276264.047496169378572.554499173
4744733.2394017794-406775.57696755496242.055771109
4838312.2253020567-518051.841142685594676.291746799
4931891.2112023339-619758.716654383683541.139059051
5025470.1971026111-715868.300835956766808.695041178
5119049.1830028884-808446.430105569846544.796111345
5212628.1689031656-898716.380195489923972.71800182
536207.15480344286-987465.354644438999879.664251324
54-213.859296279908-1075230.180766781074802.46217422
55-6634.87339600267-1162392.888073291149123.14128128
56-13055.8874957254-1249234.330259241223122.55526779
57-19476.9015954482-1335966.304571291297012.5013804



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):
par3 <- 'additive'
par2 <- 'Double'
par1 <- '12'
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')