Free Statistics

of Irreproducible Research!

Author's title

Datareeks – aantal overledenen Nederland, Exponential Smoothing– Jana Dehen...

Author*Unverified author*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationMon, 28 Nov 2016 20:08:37 +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/28/t148036378532lyb9n6ke22wyd.htm/, Retrieved Sat, 04 May 2024 08:59:47 +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 08:59:47 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
12200
10644
12044
11338
11292
10612
10995
10686
10635
11285
11475
12535
12490
12511
12799
11876
11602
11062
11055
10855
10704
11510
11663
12686
13516
12539
13811
12354
11441
10814
11261
10788
10326
11490
11029
11876
12198
11142
12008
11258
11367
10596
11721
11199
10972
11635
11725
13402
14955
13183
13673
12195
11811
11138
11590
11174
11250
12235
11612
12318




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 & 'Sir Maurice George Kendall' @ kendall.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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Maurice George Kendall' @ kendall.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 time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.692820345324226
beta0
gamma1

\begin{tabular}{lllllllll}
\hline
Estimated Parameters of Exponential Smoothing \tabularnewline
Parameter & Value \tabularnewline
alpha & 0.692820345324226 \tabularnewline
beta & 0 \tabularnewline
gamma & 1 \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.692820345324226[/C][/ROW]
[ROW][C]beta[/C][C]0[/C][/ROW]
[ROW][C]gamma[/C][C]1[/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.692820345324226
beta0
gamma1







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131249012196.483974359293.516025641025
141251112443.162732051767.8372679483327
151279912800.1116549074-1.11165490736676
161187611895.9580278871-19.9580278871126
171160211622.7889168976-20.7889168975908
181106211086.1274824302-24.1274824302363
191105511438.5696885043-383.569688504334
201085510805.816354575449.1836454245949
211070410711.5083348993-7.50833489932484
221151011334.2979578381175.702042161884
231166311642.561124146120.4388758538989
241268612716.9214766231-30.9214766231216
251351612751.2771500259764.722849974076
261253913255.0936596165-716.093659616474
271381113047.7395802133763.260419786699
281235412667.369255595-313.369255594976
291144112190.6636443036-749.663644303573
301081411147.9974300893-333.997430089274
311126111175.342099282985.6579007171003
321078811000.6122054301-212.612205430098
331032610707.5120710216-381.512071021632
341149011127.4627967063362.537203293703
351102911517.475478058-488.475478057984
361187612223.4727567794-347.472756779402
371219812282.9210124404-84.9210124403708
381114211743.2102638161-601.210263816125
391200812069.8772136176-61.877213617634
401125810787.1160169867470.883983013327
411136710719.736245629647.263754370966
421059610772.5739583-176.573958300036
431172111037.8943911808683.105608819229
441119911185.465916562113.5340834379494
451097210997.1619297137-25.161929713744
461163511892.5560825016-257.556082501622
471172511591.541737873133.45826212696
481340212771.7405324689630.259467531125
491495513589.23211957191365.76788042813
501318313895.9945967124-712.994596712382
511367314310.8872265101-637.887226510071
521219512792.7079742425-597.70797424251
531181112039.1662313056-228.166231305622
541113811232.4220549058-94.4220549058282
551159011818.7350704247-228.735070424696
561117411128.886071584245.1139284158271
571125010950.5746158815299.425384118542
581223511999.4627079244235.537292075564
591161212160.1851367038-548.185136703791
601231813020.7347390523-702.734739052286

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
13 & 12490 & 12196.483974359 & 293.516025641025 \tabularnewline
14 & 12511 & 12443.1627320517 & 67.8372679483327 \tabularnewline
15 & 12799 & 12800.1116549074 & -1.11165490736676 \tabularnewline
16 & 11876 & 11895.9580278871 & -19.9580278871126 \tabularnewline
17 & 11602 & 11622.7889168976 & -20.7889168975908 \tabularnewline
18 & 11062 & 11086.1274824302 & -24.1274824302363 \tabularnewline
19 & 11055 & 11438.5696885043 & -383.569688504334 \tabularnewline
20 & 10855 & 10805.8163545754 & 49.1836454245949 \tabularnewline
21 & 10704 & 10711.5083348993 & -7.50833489932484 \tabularnewline
22 & 11510 & 11334.2979578381 & 175.702042161884 \tabularnewline
23 & 11663 & 11642.5611241461 & 20.4388758538989 \tabularnewline
24 & 12686 & 12716.9214766231 & -30.9214766231216 \tabularnewline
25 & 13516 & 12751.2771500259 & 764.722849974076 \tabularnewline
26 & 12539 & 13255.0936596165 & -716.093659616474 \tabularnewline
27 & 13811 & 13047.7395802133 & 763.260419786699 \tabularnewline
28 & 12354 & 12667.369255595 & -313.369255594976 \tabularnewline
29 & 11441 & 12190.6636443036 & -749.663644303573 \tabularnewline
30 & 10814 & 11147.9974300893 & -333.997430089274 \tabularnewline
31 & 11261 & 11175.3420992829 & 85.6579007171003 \tabularnewline
32 & 10788 & 11000.6122054301 & -212.612205430098 \tabularnewline
33 & 10326 & 10707.5120710216 & -381.512071021632 \tabularnewline
34 & 11490 & 11127.4627967063 & 362.537203293703 \tabularnewline
35 & 11029 & 11517.475478058 & -488.475478057984 \tabularnewline
36 & 11876 & 12223.4727567794 & -347.472756779402 \tabularnewline
37 & 12198 & 12282.9210124404 & -84.9210124403708 \tabularnewline
38 & 11142 & 11743.2102638161 & -601.210263816125 \tabularnewline
39 & 12008 & 12069.8772136176 & -61.877213617634 \tabularnewline
40 & 11258 & 10787.1160169867 & 470.883983013327 \tabularnewline
41 & 11367 & 10719.736245629 & 647.263754370966 \tabularnewline
42 & 10596 & 10772.5739583 & -176.573958300036 \tabularnewline
43 & 11721 & 11037.8943911808 & 683.105608819229 \tabularnewline
44 & 11199 & 11185.4659165621 & 13.5340834379494 \tabularnewline
45 & 10972 & 10997.1619297137 & -25.161929713744 \tabularnewline
46 & 11635 & 11892.5560825016 & -257.556082501622 \tabularnewline
47 & 11725 & 11591.541737873 & 133.45826212696 \tabularnewline
48 & 13402 & 12771.7405324689 & 630.259467531125 \tabularnewline
49 & 14955 & 13589.2321195719 & 1365.76788042813 \tabularnewline
50 & 13183 & 13895.9945967124 & -712.994596712382 \tabularnewline
51 & 13673 & 14310.8872265101 & -637.887226510071 \tabularnewline
52 & 12195 & 12792.7079742425 & -597.70797424251 \tabularnewline
53 & 11811 & 12039.1662313056 & -228.166231305622 \tabularnewline
54 & 11138 & 11232.4220549058 & -94.4220549058282 \tabularnewline
55 & 11590 & 11818.7350704247 & -228.735070424696 \tabularnewline
56 & 11174 & 11128.8860715842 & 45.1139284158271 \tabularnewline
57 & 11250 & 10950.5746158815 & 299.425384118542 \tabularnewline
58 & 12235 & 11999.4627079244 & 235.537292075564 \tabularnewline
59 & 11612 & 12160.1851367038 & -548.185136703791 \tabularnewline
60 & 12318 & 13020.7347390523 & -702.734739052286 \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]13[/C][C]12490[/C][C]12196.483974359[/C][C]293.516025641025[/C][/ROW]
[ROW][C]14[/C][C]12511[/C][C]12443.1627320517[/C][C]67.8372679483327[/C][/ROW]
[ROW][C]15[/C][C]12799[/C][C]12800.1116549074[/C][C]-1.11165490736676[/C][/ROW]
[ROW][C]16[/C][C]11876[/C][C]11895.9580278871[/C][C]-19.9580278871126[/C][/ROW]
[ROW][C]17[/C][C]11602[/C][C]11622.7889168976[/C][C]-20.7889168975908[/C][/ROW]
[ROW][C]18[/C][C]11062[/C][C]11086.1274824302[/C][C]-24.1274824302363[/C][/ROW]
[ROW][C]19[/C][C]11055[/C][C]11438.5696885043[/C][C]-383.569688504334[/C][/ROW]
[ROW][C]20[/C][C]10855[/C][C]10805.8163545754[/C][C]49.1836454245949[/C][/ROW]
[ROW][C]21[/C][C]10704[/C][C]10711.5083348993[/C][C]-7.50833489932484[/C][/ROW]
[ROW][C]22[/C][C]11510[/C][C]11334.2979578381[/C][C]175.702042161884[/C][/ROW]
[ROW][C]23[/C][C]11663[/C][C]11642.5611241461[/C][C]20.4388758538989[/C][/ROW]
[ROW][C]24[/C][C]12686[/C][C]12716.9214766231[/C][C]-30.9214766231216[/C][/ROW]
[ROW][C]25[/C][C]13516[/C][C]12751.2771500259[/C][C]764.722849974076[/C][/ROW]
[ROW][C]26[/C][C]12539[/C][C]13255.0936596165[/C][C]-716.093659616474[/C][/ROW]
[ROW][C]27[/C][C]13811[/C][C]13047.7395802133[/C][C]763.260419786699[/C][/ROW]
[ROW][C]28[/C][C]12354[/C][C]12667.369255595[/C][C]-313.369255594976[/C][/ROW]
[ROW][C]29[/C][C]11441[/C][C]12190.6636443036[/C][C]-749.663644303573[/C][/ROW]
[ROW][C]30[/C][C]10814[/C][C]11147.9974300893[/C][C]-333.997430089274[/C][/ROW]
[ROW][C]31[/C][C]11261[/C][C]11175.3420992829[/C][C]85.6579007171003[/C][/ROW]
[ROW][C]32[/C][C]10788[/C][C]11000.6122054301[/C][C]-212.612205430098[/C][/ROW]
[ROW][C]33[/C][C]10326[/C][C]10707.5120710216[/C][C]-381.512071021632[/C][/ROW]
[ROW][C]34[/C][C]11490[/C][C]11127.4627967063[/C][C]362.537203293703[/C][/ROW]
[ROW][C]35[/C][C]11029[/C][C]11517.475478058[/C][C]-488.475478057984[/C][/ROW]
[ROW][C]36[/C][C]11876[/C][C]12223.4727567794[/C][C]-347.472756779402[/C][/ROW]
[ROW][C]37[/C][C]12198[/C][C]12282.9210124404[/C][C]-84.9210124403708[/C][/ROW]
[ROW][C]38[/C][C]11142[/C][C]11743.2102638161[/C][C]-601.210263816125[/C][/ROW]
[ROW][C]39[/C][C]12008[/C][C]12069.8772136176[/C][C]-61.877213617634[/C][/ROW]
[ROW][C]40[/C][C]11258[/C][C]10787.1160169867[/C][C]470.883983013327[/C][/ROW]
[ROW][C]41[/C][C]11367[/C][C]10719.736245629[/C][C]647.263754370966[/C][/ROW]
[ROW][C]42[/C][C]10596[/C][C]10772.5739583[/C][C]-176.573958300036[/C][/ROW]
[ROW][C]43[/C][C]11721[/C][C]11037.8943911808[/C][C]683.105608819229[/C][/ROW]
[ROW][C]44[/C][C]11199[/C][C]11185.4659165621[/C][C]13.5340834379494[/C][/ROW]
[ROW][C]45[/C][C]10972[/C][C]10997.1619297137[/C][C]-25.161929713744[/C][/ROW]
[ROW][C]46[/C][C]11635[/C][C]11892.5560825016[/C][C]-257.556082501622[/C][/ROW]
[ROW][C]47[/C][C]11725[/C][C]11591.541737873[/C][C]133.45826212696[/C][/ROW]
[ROW][C]48[/C][C]13402[/C][C]12771.7405324689[/C][C]630.259467531125[/C][/ROW]
[ROW][C]49[/C][C]14955[/C][C]13589.2321195719[/C][C]1365.76788042813[/C][/ROW]
[ROW][C]50[/C][C]13183[/C][C]13895.9945967124[/C][C]-712.994596712382[/C][/ROW]
[ROW][C]51[/C][C]13673[/C][C]14310.8872265101[/C][C]-637.887226510071[/C][/ROW]
[ROW][C]52[/C][C]12195[/C][C]12792.7079742425[/C][C]-597.70797424251[/C][/ROW]
[ROW][C]53[/C][C]11811[/C][C]12039.1662313056[/C][C]-228.166231305622[/C][/ROW]
[ROW][C]54[/C][C]11138[/C][C]11232.4220549058[/C][C]-94.4220549058282[/C][/ROW]
[ROW][C]55[/C][C]11590[/C][C]11818.7350704247[/C][C]-228.735070424696[/C][/ROW]
[ROW][C]56[/C][C]11174[/C][C]11128.8860715842[/C][C]45.1139284158271[/C][/ROW]
[ROW][C]57[/C][C]11250[/C][C]10950.5746158815[/C][C]299.425384118542[/C][/ROW]
[ROW][C]58[/C][C]12235[/C][C]11999.4627079244[/C][C]235.537292075564[/C][/ROW]
[ROW][C]59[/C][C]11612[/C][C]12160.1851367038[/C][C]-548.185136703791[/C][/ROW]
[ROW][C]60[/C][C]12318[/C][C]13020.7347390523[/C][C]-702.734739052286[/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
131249012196.483974359293.516025641025
141251112443.162732051767.8372679483327
151279912800.1116549074-1.11165490736676
161187611895.9580278871-19.9580278871126
171160211622.7889168976-20.7889168975908
181106211086.1274824302-24.1274824302363
191105511438.5696885043-383.569688504334
201085510805.816354575449.1836454245949
211070410711.5083348993-7.50833489932484
221151011334.2979578381175.702042161884
231166311642.561124146120.4388758538989
241268612716.9214766231-30.9214766231216
251351612751.2771500259764.722849974076
261253913255.0936596165-716.093659616474
271381113047.7395802133763.260419786699
281235412667.369255595-313.369255594976
291144112190.6636443036-749.663644303573
301081411147.9974300893-333.997430089274
311126111175.342099282985.6579007171003
321078811000.6122054301-212.612205430098
331032610707.5120710216-381.512071021632
341149011127.4627967063362.537203293703
351102911517.475478058-488.475478057984
361187612223.4727567794-347.472756779402
371219812282.9210124404-84.9210124403708
381114211743.2102638161-601.210263816125
391200812069.8772136176-61.877213617634
401125810787.1160169867470.883983013327
411136710719.736245629647.263754370966
421059610772.5739583-176.573958300036
431172111037.8943911808683.105608819229
441119911185.465916562113.5340834379494
451097210997.1619297137-25.161929713744
461163511892.5560825016-257.556082501622
471172511591.541737873133.45826212696
481340212771.7405324689630.259467531125
491495513589.23211957191365.76788042813
501318313895.9945967124-712.994596712382
511367314310.8872265101-637.887226510071
521219512792.7079742425-597.70797424251
531181112039.1662313056-228.166231305622
541113811232.4220549058-94.4220549058282
551159011818.7350704247-228.735070424696
561117411128.886071584245.1139284158271
571125010950.5746158815299.425384118542
581223511999.4627079244235.537292075564
591161212160.1851367038-548.185136703791
601231813020.7347390523-702.734739052286







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
6113140.634039919812258.218669928714023.0494099109
6211862.611202628410789.106561675412936.1158435813
6312794.55245117711559.170913716414029.9339886376
6411730.656696294710352.279798617813109.0335939717
6511504.73490345929996.8628263251613012.6069805933
6610897.15242414539270.0588404963312524.2460077943
6711507.62473462479769.4679928713313245.7814763781
6811060.36888716079217.8314552875612902.9063190339
6910928.92088913698987.6070255885812870.2347526851
7011750.73586110439715.4337101312213786.0380120775
7111507.52967681719382.3919931111713632.667360523
7212700.398601398610489.071962555314911.7252402419

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
61 & 13140.6340399198 & 12258.2186699287 & 14023.0494099109 \tabularnewline
62 & 11862.6112026284 & 10789.1065616754 & 12936.1158435813 \tabularnewline
63 & 12794.552451177 & 11559.1709137164 & 14029.9339886376 \tabularnewline
64 & 11730.6566962947 & 10352.2797986178 & 13109.0335939717 \tabularnewline
65 & 11504.7349034592 & 9996.86282632516 & 13012.6069805933 \tabularnewline
66 & 10897.1524241453 & 9270.05884049633 & 12524.2460077943 \tabularnewline
67 & 11507.6247346247 & 9769.46799287133 & 13245.7814763781 \tabularnewline
68 & 11060.3688871607 & 9217.83145528756 & 12902.9063190339 \tabularnewline
69 & 10928.9208891369 & 8987.60702558858 & 12870.2347526851 \tabularnewline
70 & 11750.7358611043 & 9715.43371013122 & 13786.0380120775 \tabularnewline
71 & 11507.5296768171 & 9382.39199311117 & 13632.667360523 \tabularnewline
72 & 12700.3986013986 & 10489.0719625553 & 14911.7252402419 \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]13140.6340399198[/C][C]12258.2186699287[/C][C]14023.0494099109[/C][/ROW]
[ROW][C]62[/C][C]11862.6112026284[/C][C]10789.1065616754[/C][C]12936.1158435813[/C][/ROW]
[ROW][C]63[/C][C]12794.552451177[/C][C]11559.1709137164[/C][C]14029.9339886376[/C][/ROW]
[ROW][C]64[/C][C]11730.6566962947[/C][C]10352.2797986178[/C][C]13109.0335939717[/C][/ROW]
[ROW][C]65[/C][C]11504.7349034592[/C][C]9996.86282632516[/C][C]13012.6069805933[/C][/ROW]
[ROW][C]66[/C][C]10897.1524241453[/C][C]9270.05884049633[/C][C]12524.2460077943[/C][/ROW]
[ROW][C]67[/C][C]11507.6247346247[/C][C]9769.46799287133[/C][C]13245.7814763781[/C][/ROW]
[ROW][C]68[/C][C]11060.3688871607[/C][C]9217.83145528756[/C][C]12902.9063190339[/C][/ROW]
[ROW][C]69[/C][C]10928.9208891369[/C][C]8987.60702558858[/C][C]12870.2347526851[/C][/ROW]
[ROW][C]70[/C][C]11750.7358611043[/C][C]9715.43371013122[/C][C]13786.0380120775[/C][/ROW]
[ROW][C]71[/C][C]11507.5296768171[/C][C]9382.39199311117[/C][C]13632.667360523[/C][/ROW]
[ROW][C]72[/C][C]12700.3986013986[/C][C]10489.0719625553[/C][C]14911.7252402419[/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
6113140.634039919812258.218669928714023.0494099109
6211862.611202628410789.106561675412936.1158435813
6312794.55245117711559.170913716414029.9339886376
6411730.656696294710352.279798617813109.0335939717
6511504.73490345929996.8628263251613012.6069805933
6610897.15242414539270.0588404963312524.2460077943
6711507.62473462479769.4679928713313245.7814763781
6811060.36888716079217.8314552875612902.9063190339
6910928.92088913698987.6070255885812870.2347526851
7011750.73586110439715.4337101312213786.0380120775
7111507.52967681719382.3919931111713632.667360523
7212700.398601398610489.071962555314911.7252402419



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