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 computationSun, 28 Nov 2010 09:21:35 +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/28/t1290936010k66py6vmoggl08v.htm/, Retrieved Thu, 02 May 2024 18:29:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=102458, Retrieved Thu, 02 May 2024 18:29:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact191
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]
-   P             [Exponential Smoothing] [ws 8 - exponentia...] [2010-11-28 09:21:35] [a948b7c78e10e31abd3f68e640bbd8ba] [Current]
-   P               [Exponential Smoothing] [ws 8 - exponentia...] [2010-11-28 09:23:28] [033eb2749a430605d9b2be7c4aac4a0c]
Feedback Forum

Post a new message
Dataseries X:
444
454
469
471
443
437
444
451
457
460
454
439
441
446
459
456
433
424
430
428
424
419
409
397
397
413
413
390
385
397
398
406
412
409
404
412
418
434
431
406
416
424
427
401




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time33 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 & 33 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102458&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]33 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=102458&T=0

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







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.124512197994220
gammaFALSE

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

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







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
34694645
4471479.622560989971-8.62256098997108
5443480.54894696877-37.5489469687706
6437447.87364504932-10.8736450493205
7444440.5197436040213.48025639597932
8451447.9530779774683.0469220225325
9457455.332456935611.66754306438997
10460461.540086387807-1.54008638780726
11454464.348326846560-10.3483268465604
12439457.059833925333-18.0598339253326
13441439.8111643078791.18883569212119
14446441.9591888529594.04081114704121
15459447.46231913055611.5376808694435
16456461.898901135367-5.89890113536671
17433458.164415989252-25.1644159892516
18424432.031139243189-8.03113924318899
19430422.0311644436227.96883555637811
20428429.023381674201-1.02338167420106
21424426.895958172559-2.89595817255929
22419422.535376055195-3.53537605519460
23409417.095178611826-8.09517861182616
24397406.087230129712-9.08723012971188
25397392.9557591325824.04424086741784
26413393.45931645220219.5406835477976
27413411.8923699110481.10763008895179
28390412.030283367988-22.0302833679881
29385386.287244363404-1.28724436340440
30397381.12696673836115.8730332616387
31398395.1033529986032.89664700139673
32406396.4640208835619.53597911643948
33412405.6513666033756.34863339662462
34409412.441848901849-3.44184890184863
35404409.013296729915-5.01329672991545
36412403.3890801348768.61091986512355
37418412.4612446940355.53875530596491
38434419.15088729133314.8491127086671
39431436.999782952953-5.99978295295296
40406433.252736789993-27.2527367899925
41416404.85943863091311.1405613690874
42424416.2465744138677.75342558613283
43427425.2119704755811.78802952441879
44401428.434601961745-27.4346019617452

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
3 & 469 & 464 & 5 \tabularnewline
4 & 471 & 479.622560989971 & -8.62256098997108 \tabularnewline
5 & 443 & 480.54894696877 & -37.5489469687706 \tabularnewline
6 & 437 & 447.87364504932 & -10.8736450493205 \tabularnewline
7 & 444 & 440.519743604021 & 3.48025639597932 \tabularnewline
8 & 451 & 447.953077977468 & 3.0469220225325 \tabularnewline
9 & 457 & 455.33245693561 & 1.66754306438997 \tabularnewline
10 & 460 & 461.540086387807 & -1.54008638780726 \tabularnewline
11 & 454 & 464.348326846560 & -10.3483268465604 \tabularnewline
12 & 439 & 457.059833925333 & -18.0598339253326 \tabularnewline
13 & 441 & 439.811164307879 & 1.18883569212119 \tabularnewline
14 & 446 & 441.959188852959 & 4.04081114704121 \tabularnewline
15 & 459 & 447.462319130556 & 11.5376808694435 \tabularnewline
16 & 456 & 461.898901135367 & -5.89890113536671 \tabularnewline
17 & 433 & 458.164415989252 & -25.1644159892516 \tabularnewline
18 & 424 & 432.031139243189 & -8.03113924318899 \tabularnewline
19 & 430 & 422.031164443622 & 7.96883555637811 \tabularnewline
20 & 428 & 429.023381674201 & -1.02338167420106 \tabularnewline
21 & 424 & 426.895958172559 & -2.89595817255929 \tabularnewline
22 & 419 & 422.535376055195 & -3.53537605519460 \tabularnewline
23 & 409 & 417.095178611826 & -8.09517861182616 \tabularnewline
24 & 397 & 406.087230129712 & -9.08723012971188 \tabularnewline
25 & 397 & 392.955759132582 & 4.04424086741784 \tabularnewline
26 & 413 & 393.459316452202 & 19.5406835477976 \tabularnewline
27 & 413 & 411.892369911048 & 1.10763008895179 \tabularnewline
28 & 390 & 412.030283367988 & -22.0302833679881 \tabularnewline
29 & 385 & 386.287244363404 & -1.28724436340440 \tabularnewline
30 & 397 & 381.126966738361 & 15.8730332616387 \tabularnewline
31 & 398 & 395.103352998603 & 2.89664700139673 \tabularnewline
32 & 406 & 396.464020883561 & 9.53597911643948 \tabularnewline
33 & 412 & 405.651366603375 & 6.34863339662462 \tabularnewline
34 & 409 & 412.441848901849 & -3.44184890184863 \tabularnewline
35 & 404 & 409.013296729915 & -5.01329672991545 \tabularnewline
36 & 412 & 403.389080134876 & 8.61091986512355 \tabularnewline
37 & 418 & 412.461244694035 & 5.53875530596491 \tabularnewline
38 & 434 & 419.150887291333 & 14.8491127086671 \tabularnewline
39 & 431 & 436.999782952953 & -5.99978295295296 \tabularnewline
40 & 406 & 433.252736789993 & -27.2527367899925 \tabularnewline
41 & 416 & 404.859438630913 & 11.1405613690874 \tabularnewline
42 & 424 & 416.246574413867 & 7.75342558613283 \tabularnewline
43 & 427 & 425.211970475581 & 1.78802952441879 \tabularnewline
44 & 401 & 428.434601961745 & -27.4346019617452 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102458&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]469[/C][C]464[/C][C]5[/C][/ROW]
[ROW][C]4[/C][C]471[/C][C]479.622560989971[/C][C]-8.62256098997108[/C][/ROW]
[ROW][C]5[/C][C]443[/C][C]480.54894696877[/C][C]-37.5489469687706[/C][/ROW]
[ROW][C]6[/C][C]437[/C][C]447.87364504932[/C][C]-10.8736450493205[/C][/ROW]
[ROW][C]7[/C][C]444[/C][C]440.519743604021[/C][C]3.48025639597932[/C][/ROW]
[ROW][C]8[/C][C]451[/C][C]447.953077977468[/C][C]3.0469220225325[/C][/ROW]
[ROW][C]9[/C][C]457[/C][C]455.33245693561[/C][C]1.66754306438997[/C][/ROW]
[ROW][C]10[/C][C]460[/C][C]461.540086387807[/C][C]-1.54008638780726[/C][/ROW]
[ROW][C]11[/C][C]454[/C][C]464.348326846560[/C][C]-10.3483268465604[/C][/ROW]
[ROW][C]12[/C][C]439[/C][C]457.059833925333[/C][C]-18.0598339253326[/C][/ROW]
[ROW][C]13[/C][C]441[/C][C]439.811164307879[/C][C]1.18883569212119[/C][/ROW]
[ROW][C]14[/C][C]446[/C][C]441.959188852959[/C][C]4.04081114704121[/C][/ROW]
[ROW][C]15[/C][C]459[/C][C]447.462319130556[/C][C]11.5376808694435[/C][/ROW]
[ROW][C]16[/C][C]456[/C][C]461.898901135367[/C][C]-5.89890113536671[/C][/ROW]
[ROW][C]17[/C][C]433[/C][C]458.164415989252[/C][C]-25.1644159892516[/C][/ROW]
[ROW][C]18[/C][C]424[/C][C]432.031139243189[/C][C]-8.03113924318899[/C][/ROW]
[ROW][C]19[/C][C]430[/C][C]422.031164443622[/C][C]7.96883555637811[/C][/ROW]
[ROW][C]20[/C][C]428[/C][C]429.023381674201[/C][C]-1.02338167420106[/C][/ROW]
[ROW][C]21[/C][C]424[/C][C]426.895958172559[/C][C]-2.89595817255929[/C][/ROW]
[ROW][C]22[/C][C]419[/C][C]422.535376055195[/C][C]-3.53537605519460[/C][/ROW]
[ROW][C]23[/C][C]409[/C][C]417.095178611826[/C][C]-8.09517861182616[/C][/ROW]
[ROW][C]24[/C][C]397[/C][C]406.087230129712[/C][C]-9.08723012971188[/C][/ROW]
[ROW][C]25[/C][C]397[/C][C]392.955759132582[/C][C]4.04424086741784[/C][/ROW]
[ROW][C]26[/C][C]413[/C][C]393.459316452202[/C][C]19.5406835477976[/C][/ROW]
[ROW][C]27[/C][C]413[/C][C]411.892369911048[/C][C]1.10763008895179[/C][/ROW]
[ROW][C]28[/C][C]390[/C][C]412.030283367988[/C][C]-22.0302833679881[/C][/ROW]
[ROW][C]29[/C][C]385[/C][C]386.287244363404[/C][C]-1.28724436340440[/C][/ROW]
[ROW][C]30[/C][C]397[/C][C]381.126966738361[/C][C]15.8730332616387[/C][/ROW]
[ROW][C]31[/C][C]398[/C][C]395.103352998603[/C][C]2.89664700139673[/C][/ROW]
[ROW][C]32[/C][C]406[/C][C]396.464020883561[/C][C]9.53597911643948[/C][/ROW]
[ROW][C]33[/C][C]412[/C][C]405.651366603375[/C][C]6.34863339662462[/C][/ROW]
[ROW][C]34[/C][C]409[/C][C]412.441848901849[/C][C]-3.44184890184863[/C][/ROW]
[ROW][C]35[/C][C]404[/C][C]409.013296729915[/C][C]-5.01329672991545[/C][/ROW]
[ROW][C]36[/C][C]412[/C][C]403.389080134876[/C][C]8.61091986512355[/C][/ROW]
[ROW][C]37[/C][C]418[/C][C]412.461244694035[/C][C]5.53875530596491[/C][/ROW]
[ROW][C]38[/C][C]434[/C][C]419.150887291333[/C][C]14.8491127086671[/C][/ROW]
[ROW][C]39[/C][C]431[/C][C]436.999782952953[/C][C]-5.99978295295296[/C][/ROW]
[ROW][C]40[/C][C]406[/C][C]433.252736789993[/C][C]-27.2527367899925[/C][/ROW]
[ROW][C]41[/C][C]416[/C][C]404.859438630913[/C][C]11.1405613690874[/C][/ROW]
[ROW][C]42[/C][C]424[/C][C]416.246574413867[/C][C]7.75342558613283[/C][/ROW]
[ROW][C]43[/C][C]427[/C][C]425.211970475581[/C][C]1.78802952441879[/C][/ROW]
[ROW][C]44[/C][C]401[/C][C]428.434601961745[/C][C]-27.4346019617452[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102458&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102458&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
34694645
4471479.622560989971-8.62256098997108
5443480.54894696877-37.5489469687706
6437447.87364504932-10.8736450493205
7444440.5197436040213.48025639597932
8451447.9530779774683.0469220225325
9457455.332456935611.66754306438997
10460461.540086387807-1.54008638780726
11454464.348326846560-10.3483268465604
12439457.059833925333-18.0598339253326
13441439.8111643078791.18883569212119
14446441.9591888529594.04081114704121
15459447.46231913055611.5376808694435
16456461.898901135367-5.89890113536671
17433458.164415989252-25.1644159892516
18424432.031139243189-8.03113924318899
19430422.0311644436227.96883555637811
20428429.023381674201-1.02338167420106
21424426.895958172559-2.89595817255929
22419422.535376055195-3.53537605519460
23409417.095178611826-8.09517861182616
24397406.087230129712-9.08723012971188
25397392.9557591325824.04424086741784
26413393.45931645220219.5406835477976
27413411.8923699110481.10763008895179
28390412.030283367988-22.0302833679881
29385386.287244363404-1.28724436340440
30397381.12696673836115.8730332616387
31398395.1033529986032.89664700139673
32406396.4640208835619.53597911643948
33412405.6513666033756.34863339662462
34409412.441848901849-3.44184890184863
35404409.013296729915-5.01329672991545
36412403.3890801348768.61091986512355
37418412.4612446940355.53875530596491
38434419.15088729133314.8491127086671
39431436.999782952953-5.99978295295296
40406433.252736789993-27.2527367899925
41416404.85943863091311.1405613690874
42424416.2465744138677.75342558613283
43427425.2119704755811.78802952441879
44401428.434601961745-27.4346019617452







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
45399.018659370392374.640595329226423.396723411558
46397.037318740783360.352360359012433.722277122555
47395.055978111175347.380875669479442.731080552872
48393.074637481567334.815693378092451.333581585042
49391.093296851959322.334438551781459.852155152136
50389.11195622235309.787493598912468.436418845789
51387.130615592742297.095617992327477.165613193158
52385.149274963134284.213658060242486.084891866026
53383.167934333526271.114861336513495.221007330538
54381.186593703917257.783170266717504.590017141117
55379.205253074309244.209079421114514.201426727504
56377.223912444701230.387254826051524.060570063351

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
45 & 399.018659370392 & 374.640595329226 & 423.396723411558 \tabularnewline
46 & 397.037318740783 & 360.352360359012 & 433.722277122555 \tabularnewline
47 & 395.055978111175 & 347.380875669479 & 442.731080552872 \tabularnewline
48 & 393.074637481567 & 334.815693378092 & 451.333581585042 \tabularnewline
49 & 391.093296851959 & 322.334438551781 & 459.852155152136 \tabularnewline
50 & 389.11195622235 & 309.787493598912 & 468.436418845789 \tabularnewline
51 & 387.130615592742 & 297.095617992327 & 477.165613193158 \tabularnewline
52 & 385.149274963134 & 284.213658060242 & 486.084891866026 \tabularnewline
53 & 383.167934333526 & 271.114861336513 & 495.221007330538 \tabularnewline
54 & 381.186593703917 & 257.783170266717 & 504.590017141117 \tabularnewline
55 & 379.205253074309 & 244.209079421114 & 514.201426727504 \tabularnewline
56 & 377.223912444701 & 230.387254826051 & 524.060570063351 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=102458&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]45[/C][C]399.018659370392[/C][C]374.640595329226[/C][C]423.396723411558[/C][/ROW]
[ROW][C]46[/C][C]397.037318740783[/C][C]360.352360359012[/C][C]433.722277122555[/C][/ROW]
[ROW][C]47[/C][C]395.055978111175[/C][C]347.380875669479[/C][C]442.731080552872[/C][/ROW]
[ROW][C]48[/C][C]393.074637481567[/C][C]334.815693378092[/C][C]451.333581585042[/C][/ROW]
[ROW][C]49[/C][C]391.093296851959[/C][C]322.334438551781[/C][C]459.852155152136[/C][/ROW]
[ROW][C]50[/C][C]389.11195622235[/C][C]309.787493598912[/C][C]468.436418845789[/C][/ROW]
[ROW][C]51[/C][C]387.130615592742[/C][C]297.095617992327[/C][C]477.165613193158[/C][/ROW]
[ROW][C]52[/C][C]385.149274963134[/C][C]284.213658060242[/C][C]486.084891866026[/C][/ROW]
[ROW][C]53[/C][C]383.167934333526[/C][C]271.114861336513[/C][C]495.221007330538[/C][/ROW]
[ROW][C]54[/C][C]381.186593703917[/C][C]257.783170266717[/C][C]504.590017141117[/C][/ROW]
[ROW][C]55[/C][C]379.205253074309[/C][C]244.209079421114[/C][C]514.201426727504[/C][/ROW]
[ROW][C]56[/C][C]377.223912444701[/C][C]230.387254826051[/C][C]524.060570063351[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=102458&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=102458&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
45399.018659370392374.640595329226423.396723411558
46397.037318740783360.352360359012433.722277122555
47395.055978111175347.380875669479442.731080552872
48393.074637481567334.815693378092451.333581585042
49391.093296851959322.334438551781459.852155152136
50389.11195622235309.787493598912468.436418845789
51387.130615592742297.095617992327477.165613193158
52385.149274963134284.213658060242486.084891866026
53383.167934333526271.114861336513495.221007330538
54381.186593703917257.783170266717504.590017141117
55379.205253074309244.209079421114514.201426727504
56377.223912444701230.387254826051524.060570063351



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=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')