Free Statistics

of Irreproducible Research!

Author's title

Growth of number of distinct PubMed documents tagged in Citeulike per month...

Author*Unverified author*
R Software Modulerwasp_exponentialsmoothing.wasp
Title produced by softwareExponential Smoothing
Date of computationSun, 16 Nov 2008 12:53:11 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/16/t1226866506mfqeu7wwjf7jyl0.htm/, Retrieved Fri, 26 Apr 2024 14:44:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24960, Retrieved Fri, 26 Apr 2024 14:44:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact518
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Exponential Smoothing] [Growth of number ...] [2008-11-16 19:53:11] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
481
487
371
1147
1638
1193
1646
1930
1472
1952
2040
2601
3289
2964
2925
3565
3614
3046
3153
3797
4716
3898
3267
3739
4422
3719
4260
4573
4199
4647
5708
4715
5018
7280
6355
5868
7071
7009
6440
8446
9328
8166
10332
9238
9597
8929
12394
15581




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24960&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24960&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24960&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.180689939825716
beta0.54265603293671
gamma0

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

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







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
3371493-122
41147464.9934240569682.0065759431
51638649.135188137312988.864811862688
61193985.683801460212207.316198539788
716461201.34231151284444.657688487159
819301503.48583284955426.51416715045
914721844.17177678432-372.171776784321
1019522004.05083766043-52.050837660433
1120402216.66881773606-176.668817736062
1226012389.44676572398211.553234276017
1332892653.11585345784635.884146542158
1429643055.8072895319-91.8072895318987
1529253318.01027084427-393.010270844268
1635653487.2532695327777.7467304672305
1736143749.1805826566-135.180582656597
1830463959.37928020488-913.379280204883
1931533939.40619289292-786.40619289292
2037973865.26678291713-68.2667829171273
2147163914.19421194436801.805788055637
2238984198.95405222252-300.954052222522
2332674254.94699034525-987.946990345253
2437394089.93655744017-350.936557440174
2544224005.61729946175416.382700538254
2637194100.77227092366-381.772270923657
2742604014.27494839449245.725051605512
2845734065.25403148093507.745968519072
2941994213.36341271554-14.3634127155447
3046474265.72451294913381.275487050868
3157084426.958591506551281.04140849345
3247154876.38061495819-161.380614958191
3350185049.34771931031-31.3477193103081
3472805242.736737945562037.26326205444
3563556009.66167767979345.338322320207
3658686504.73408285676-636.734082856764
3770716759.92252453264311.077475467362
3870097216.87289943692-207.872899436920
3964407559.67170777841-1119.67170777841
4084467627.93104992607818.068950073926
4193288126.534329161861201.46567083814
4281668812.22023459604-646.220234596038
43103329100.68438449531231.31561550470
4492389849.13393124366-611.133931243656
45959710204.748179059-607.748179058999
46892910501.3829784522-1572.38297845219
471239410469.54191410641924.45808589364
481558111258.24275066154322.75724933855

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
3 & 371 & 493 & -122 \tabularnewline
4 & 1147 & 464.9934240569 & 682.0065759431 \tabularnewline
5 & 1638 & 649.135188137312 & 988.864811862688 \tabularnewline
6 & 1193 & 985.683801460212 & 207.316198539788 \tabularnewline
7 & 1646 & 1201.34231151284 & 444.657688487159 \tabularnewline
8 & 1930 & 1503.48583284955 & 426.51416715045 \tabularnewline
9 & 1472 & 1844.17177678432 & -372.171776784321 \tabularnewline
10 & 1952 & 2004.05083766043 & -52.050837660433 \tabularnewline
11 & 2040 & 2216.66881773606 & -176.668817736062 \tabularnewline
12 & 2601 & 2389.44676572398 & 211.553234276017 \tabularnewline
13 & 3289 & 2653.11585345784 & 635.884146542158 \tabularnewline
14 & 2964 & 3055.8072895319 & -91.8072895318987 \tabularnewline
15 & 2925 & 3318.01027084427 & -393.010270844268 \tabularnewline
16 & 3565 & 3487.25326953277 & 77.7467304672305 \tabularnewline
17 & 3614 & 3749.1805826566 & -135.180582656597 \tabularnewline
18 & 3046 & 3959.37928020488 & -913.379280204883 \tabularnewline
19 & 3153 & 3939.40619289292 & -786.40619289292 \tabularnewline
20 & 3797 & 3865.26678291713 & -68.2667829171273 \tabularnewline
21 & 4716 & 3914.19421194436 & 801.805788055637 \tabularnewline
22 & 3898 & 4198.95405222252 & -300.954052222522 \tabularnewline
23 & 3267 & 4254.94699034525 & -987.946990345253 \tabularnewline
24 & 3739 & 4089.93655744017 & -350.936557440174 \tabularnewline
25 & 4422 & 4005.61729946175 & 416.382700538254 \tabularnewline
26 & 3719 & 4100.77227092366 & -381.772270923657 \tabularnewline
27 & 4260 & 4014.27494839449 & 245.725051605512 \tabularnewline
28 & 4573 & 4065.25403148093 & 507.745968519072 \tabularnewline
29 & 4199 & 4213.36341271554 & -14.3634127155447 \tabularnewline
30 & 4647 & 4265.72451294913 & 381.275487050868 \tabularnewline
31 & 5708 & 4426.95859150655 & 1281.04140849345 \tabularnewline
32 & 4715 & 4876.38061495819 & -161.380614958191 \tabularnewline
33 & 5018 & 5049.34771931031 & -31.3477193103081 \tabularnewline
34 & 7280 & 5242.73673794556 & 2037.26326205444 \tabularnewline
35 & 6355 & 6009.66167767979 & 345.338322320207 \tabularnewline
36 & 5868 & 6504.73408285676 & -636.734082856764 \tabularnewline
37 & 7071 & 6759.92252453264 & 311.077475467362 \tabularnewline
38 & 7009 & 7216.87289943692 & -207.872899436920 \tabularnewline
39 & 6440 & 7559.67170777841 & -1119.67170777841 \tabularnewline
40 & 8446 & 7627.93104992607 & 818.068950073926 \tabularnewline
41 & 9328 & 8126.53432916186 & 1201.46567083814 \tabularnewline
42 & 8166 & 8812.22023459604 & -646.220234596038 \tabularnewline
43 & 10332 & 9100.6843844953 & 1231.31561550470 \tabularnewline
44 & 9238 & 9849.13393124366 & -611.133931243656 \tabularnewline
45 & 9597 & 10204.748179059 & -607.748179058999 \tabularnewline
46 & 8929 & 10501.3829784522 & -1572.38297845219 \tabularnewline
47 & 12394 & 10469.5419141064 & 1924.45808589364 \tabularnewline
48 & 15581 & 11258.2427506615 & 4322.75724933855 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24960&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]371[/C][C]493[/C][C]-122[/C][/ROW]
[ROW][C]4[/C][C]1147[/C][C]464.9934240569[/C][C]682.0065759431[/C][/ROW]
[ROW][C]5[/C][C]1638[/C][C]649.135188137312[/C][C]988.864811862688[/C][/ROW]
[ROW][C]6[/C][C]1193[/C][C]985.683801460212[/C][C]207.316198539788[/C][/ROW]
[ROW][C]7[/C][C]1646[/C][C]1201.34231151284[/C][C]444.657688487159[/C][/ROW]
[ROW][C]8[/C][C]1930[/C][C]1503.48583284955[/C][C]426.51416715045[/C][/ROW]
[ROW][C]9[/C][C]1472[/C][C]1844.17177678432[/C][C]-372.171776784321[/C][/ROW]
[ROW][C]10[/C][C]1952[/C][C]2004.05083766043[/C][C]-52.050837660433[/C][/ROW]
[ROW][C]11[/C][C]2040[/C][C]2216.66881773606[/C][C]-176.668817736062[/C][/ROW]
[ROW][C]12[/C][C]2601[/C][C]2389.44676572398[/C][C]211.553234276017[/C][/ROW]
[ROW][C]13[/C][C]3289[/C][C]2653.11585345784[/C][C]635.884146542158[/C][/ROW]
[ROW][C]14[/C][C]2964[/C][C]3055.8072895319[/C][C]-91.8072895318987[/C][/ROW]
[ROW][C]15[/C][C]2925[/C][C]3318.01027084427[/C][C]-393.010270844268[/C][/ROW]
[ROW][C]16[/C][C]3565[/C][C]3487.25326953277[/C][C]77.7467304672305[/C][/ROW]
[ROW][C]17[/C][C]3614[/C][C]3749.1805826566[/C][C]-135.180582656597[/C][/ROW]
[ROW][C]18[/C][C]3046[/C][C]3959.37928020488[/C][C]-913.379280204883[/C][/ROW]
[ROW][C]19[/C][C]3153[/C][C]3939.40619289292[/C][C]-786.40619289292[/C][/ROW]
[ROW][C]20[/C][C]3797[/C][C]3865.26678291713[/C][C]-68.2667829171273[/C][/ROW]
[ROW][C]21[/C][C]4716[/C][C]3914.19421194436[/C][C]801.805788055637[/C][/ROW]
[ROW][C]22[/C][C]3898[/C][C]4198.95405222252[/C][C]-300.954052222522[/C][/ROW]
[ROW][C]23[/C][C]3267[/C][C]4254.94699034525[/C][C]-987.946990345253[/C][/ROW]
[ROW][C]24[/C][C]3739[/C][C]4089.93655744017[/C][C]-350.936557440174[/C][/ROW]
[ROW][C]25[/C][C]4422[/C][C]4005.61729946175[/C][C]416.382700538254[/C][/ROW]
[ROW][C]26[/C][C]3719[/C][C]4100.77227092366[/C][C]-381.772270923657[/C][/ROW]
[ROW][C]27[/C][C]4260[/C][C]4014.27494839449[/C][C]245.725051605512[/C][/ROW]
[ROW][C]28[/C][C]4573[/C][C]4065.25403148093[/C][C]507.745968519072[/C][/ROW]
[ROW][C]29[/C][C]4199[/C][C]4213.36341271554[/C][C]-14.3634127155447[/C][/ROW]
[ROW][C]30[/C][C]4647[/C][C]4265.72451294913[/C][C]381.275487050868[/C][/ROW]
[ROW][C]31[/C][C]5708[/C][C]4426.95859150655[/C][C]1281.04140849345[/C][/ROW]
[ROW][C]32[/C][C]4715[/C][C]4876.38061495819[/C][C]-161.380614958191[/C][/ROW]
[ROW][C]33[/C][C]5018[/C][C]5049.34771931031[/C][C]-31.3477193103081[/C][/ROW]
[ROW][C]34[/C][C]7280[/C][C]5242.73673794556[/C][C]2037.26326205444[/C][/ROW]
[ROW][C]35[/C][C]6355[/C][C]6009.66167767979[/C][C]345.338322320207[/C][/ROW]
[ROW][C]36[/C][C]5868[/C][C]6504.73408285676[/C][C]-636.734082856764[/C][/ROW]
[ROW][C]37[/C][C]7071[/C][C]6759.92252453264[/C][C]311.077475467362[/C][/ROW]
[ROW][C]38[/C][C]7009[/C][C]7216.87289943692[/C][C]-207.872899436920[/C][/ROW]
[ROW][C]39[/C][C]6440[/C][C]7559.67170777841[/C][C]-1119.67170777841[/C][/ROW]
[ROW][C]40[/C][C]8446[/C][C]7627.93104992607[/C][C]818.068950073926[/C][/ROW]
[ROW][C]41[/C][C]9328[/C][C]8126.53432916186[/C][C]1201.46567083814[/C][/ROW]
[ROW][C]42[/C][C]8166[/C][C]8812.22023459604[/C][C]-646.220234596038[/C][/ROW]
[ROW][C]43[/C][C]10332[/C][C]9100.6843844953[/C][C]1231.31561550470[/C][/ROW]
[ROW][C]44[/C][C]9238[/C][C]9849.13393124366[/C][C]-611.133931243656[/C][/ROW]
[ROW][C]45[/C][C]9597[/C][C]10204.748179059[/C][C]-607.748179058999[/C][/ROW]
[ROW][C]46[/C][C]8929[/C][C]10501.3829784522[/C][C]-1572.38297845219[/C][/ROW]
[ROW][C]47[/C][C]12394[/C][C]10469.5419141064[/C][C]1924.45808589364[/C][/ROW]
[ROW][C]48[/C][C]15581[/C][C]11258.2427506615[/C][C]4322.75724933855[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24960&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24960&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
3371493-122
41147464.9934240569682.0065759431
51638649.135188137312988.864811862688
61193985.683801460212207.316198539788
716461201.34231151284444.657688487159
819301503.48583284955426.51416715045
914721844.17177678432-372.171776784321
1019522004.05083766043-52.050837660433
1120402216.66881773606-176.668817736062
1226012389.44676572398211.553234276017
1332892653.11585345784635.884146542158
1429643055.8072895319-91.8072895318987
1529253318.01027084427-393.010270844268
1635653487.2532695327777.7467304672305
1736143749.1805826566-135.180582656597
1830463959.37928020488-913.379280204883
1931533939.40619289292-786.40619289292
2037973865.26678291713-68.2667829171273
2147163914.19421194436801.805788055637
2238984198.95405222252-300.954052222522
2332674254.94699034525-987.946990345253
2437394089.93655744017-350.936557440174
2544224005.61729946175416.382700538254
2637194100.77227092366-381.772270923657
2742604014.27494839449245.725051605512
2845734065.25403148093507.745968519072
2941994213.36341271554-14.3634127155447
3046474265.72451294913381.275487050868
3157084426.958591506551281.04140849345
3247154876.38061495819-161.380614958191
3350185049.34771931031-31.3477193103081
3472805242.736737945562037.26326205444
3563556009.66167767979345.338322320207
3658686504.73408285676-636.734082856764
3770716759.92252453264311.077475467362
3870097216.87289943692-207.872899436920
3964407559.67170777841-1119.67170777841
4084467627.93104992607818.068950073926
4193288126.534329161861201.46567083814
4281668812.22023459604-646.220234596038
43103329100.68438449531231.31561550470
4492389849.13393124366-611.133931243656
45959710204.748179059-607.748179058999
46892910501.3829784522-1572.38297845219
471239410469.54191410641924.45808589364
481558111258.24275066154322.75724933855







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
4912904.149213145010999.793776192814808.5046500972
5013768.976928364411792.023604799215745.9302519296
5114633.804643583812530.658307554316736.9509796133
5215498.632358803313209.321629326917787.9430882796
5316363.460074022713827.471993642618899.4481544027
5417228.287789242114388.598707985820067.9768704984
5518093.115504461514898.045395140721288.1856137823
5618957.943219680915361.43295222922554.4534871328
5719822.770934900315783.859303818123861.6825659825
5820687.598650119716169.637830553325205.5594696861
5921552.426365339116522.306257580726582.5464730976
6022417.254080558516844.736162960027989.7719981571

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
49 & 12904.1492131450 & 10999.7937761928 & 14808.5046500972 \tabularnewline
50 & 13768.9769283644 & 11792.0236047992 & 15745.9302519296 \tabularnewline
51 & 14633.8046435838 & 12530.6583075543 & 16736.9509796133 \tabularnewline
52 & 15498.6323588033 & 13209.3216293269 & 17787.9430882796 \tabularnewline
53 & 16363.4600740227 & 13827.4719936426 & 18899.4481544027 \tabularnewline
54 & 17228.2877892421 & 14388.5987079858 & 20067.9768704984 \tabularnewline
55 & 18093.1155044615 & 14898.0453951407 & 21288.1856137823 \tabularnewline
56 & 18957.9432196809 & 15361.432952229 & 22554.4534871328 \tabularnewline
57 & 19822.7709349003 & 15783.8593038181 & 23861.6825659825 \tabularnewline
58 & 20687.5986501197 & 16169.6378305533 & 25205.5594696861 \tabularnewline
59 & 21552.4263653391 & 16522.3062575807 & 26582.5464730976 \tabularnewline
60 & 22417.2540805585 & 16844.7361629600 & 27989.7719981571 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24960&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]49[/C][C]12904.1492131450[/C][C]10999.7937761928[/C][C]14808.5046500972[/C][/ROW]
[ROW][C]50[/C][C]13768.9769283644[/C][C]11792.0236047992[/C][C]15745.9302519296[/C][/ROW]
[ROW][C]51[/C][C]14633.8046435838[/C][C]12530.6583075543[/C][C]16736.9509796133[/C][/ROW]
[ROW][C]52[/C][C]15498.6323588033[/C][C]13209.3216293269[/C][C]17787.9430882796[/C][/ROW]
[ROW][C]53[/C][C]16363.4600740227[/C][C]13827.4719936426[/C][C]18899.4481544027[/C][/ROW]
[ROW][C]54[/C][C]17228.2877892421[/C][C]14388.5987079858[/C][C]20067.9768704984[/C][/ROW]
[ROW][C]55[/C][C]18093.1155044615[/C][C]14898.0453951407[/C][C]21288.1856137823[/C][/ROW]
[ROW][C]56[/C][C]18957.9432196809[/C][C]15361.432952229[/C][C]22554.4534871328[/C][/ROW]
[ROW][C]57[/C][C]19822.7709349003[/C][C]15783.8593038181[/C][C]23861.6825659825[/C][/ROW]
[ROW][C]58[/C][C]20687.5986501197[/C][C]16169.6378305533[/C][C]25205.5594696861[/C][/ROW]
[ROW][C]59[/C][C]21552.4263653391[/C][C]16522.3062575807[/C][C]26582.5464730976[/C][/ROW]
[ROW][C]60[/C][C]22417.2540805585[/C][C]16844.7361629600[/C][C]27989.7719981571[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24960&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24960&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
4912904.149213145010999.793776192814808.5046500972
5013768.976928364411792.023604799215745.9302519296
5114633.804643583812530.658307554316736.9509796133
5215498.632358803313209.321629326917787.9430882796
5316363.460074022713827.471993642618899.4481544027
5417228.287789242114388.598707985820067.9768704984
5518093.115504461514898.045395140721288.1856137823
5618957.943219680915361.43295222922554.4534871328
5719822.770934900315783.859303818123861.6825659825
5820687.598650119716169.637830553325205.5594696861
5921552.426365339116522.306257580726582.5464730976
6022417.254080558516844.736162960027989.7719981571



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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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')