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, 19 Dec 2010 13:39:31 +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/Dec/19/t1292765910f45ywl3b36yded9.htm/, Retrieved Sun, 05 May 2024 02:37:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=112374, Retrieved Sun, 05 May 2024 02:37:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [] [2008-12-08 19:22:39] [d2d412c7f4d35ffbf5ee5ee89db327d4]
- RMPD  [ARIMA Backward Selection] [] [2010-12-14 13:44:15] [42a441ca3193af442aa2201743dfb347]
- RMP     [Classical Decomposition] [] [2010-12-19 12:38:53] [07fa8844ca5618cd0482008937d9acea]
- RMP         [Exponential Smoothing] [] [2010-12-19 13:39:31] [6d73806852b9f5b8ac8b27fc8f7b83c4] [Current]
Feedback Forum

Post a new message
Dataseries X:
19876
45335
48674
156392
100837
101605
532850
294189
80763
105995
25045
90474
48481
50730
68694
207716
99132
104012
422632
364974
82687
66834
28408
97073
40284
24421
116346
72120
108751
91738
402216
390070
106045
110070
70668
167841
28607
95371
30605
131063
81214
85451
455196
454570
63114
74287
42350
113375




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112374&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'Gwilym Jenkins' @ 72.249.127.135







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0
beta0
gamma0.689793581003217

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

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







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
134848144449.84561965824031.15438034176
145073048323.60727466992406.39272533011
156869463239.78559634825454.21440365177
16207716203795.047251363920.95274864012
179913296684.35057303822447.64942696178
18104012101130.987228052881.01277195013
19422632531762.040549728-109130.040549728
20364974291666.09387140773307.9061285935
218268777162.85552641825524.14447358181
226683499403.9088480965-32569.9088480965
232840816368.170503108212039.8294968918
249707381749.640491453215323.3595085468
254028447011.1498953909-6727.14989539092
262442149764.1613901154-25343.1613901154
2711634666782.707541542449563.2924584576
2872120206280.335148929-134160.335148929
2910875198153.363296442610597.6367035574
3091738102898.931205069-11160.9312050693
31402216456265.478944045-54049.4789440448
32390070342014.05681583748055.9431841634
3310604580754.014784969225290.9852150308
3411007076718.034650959633351.9653490404
357066824453.807466577346214.1925334227
3616784192100.235379993375740.7646200067
372860742151.4449392437-13544.4449392437
389537132063.251201025163307.7487989749
3930605100751.788392912-70146.7883929115
40131063113518.03699809717544.9630019027
4181214105244.184928501-24030.1849285005
428545194980.832361934-9529.83236193392
43455196418763.13517201436432.864827986
44454570374943.37781346879626.6221865322
456311497980.2139036847-34866.2139036847
467428799504.6461227093-25217.6461227093
474235056112.700687519-13762.700687519
48113375144126.368495289-30751.3684952894

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
13 & 48481 & 44449.8456196582 & 4031.15438034176 \tabularnewline
14 & 50730 & 48323.6072746699 & 2406.39272533011 \tabularnewline
15 & 68694 & 63239.7855963482 & 5454.21440365177 \tabularnewline
16 & 207716 & 203795.04725136 & 3920.95274864012 \tabularnewline
17 & 99132 & 96684.3505730382 & 2447.64942696178 \tabularnewline
18 & 104012 & 101130.98722805 & 2881.01277195013 \tabularnewline
19 & 422632 & 531762.040549728 & -109130.040549728 \tabularnewline
20 & 364974 & 291666.093871407 & 73307.9061285935 \tabularnewline
21 & 82687 & 77162.8555264182 & 5524.14447358181 \tabularnewline
22 & 66834 & 99403.9088480965 & -32569.9088480965 \tabularnewline
23 & 28408 & 16368.1705031082 & 12039.8294968918 \tabularnewline
24 & 97073 & 81749.6404914532 & 15323.3595085468 \tabularnewline
25 & 40284 & 47011.1498953909 & -6727.14989539092 \tabularnewline
26 & 24421 & 49764.1613901154 & -25343.1613901154 \tabularnewline
27 & 116346 & 66782.7075415424 & 49563.2924584576 \tabularnewline
28 & 72120 & 206280.335148929 & -134160.335148929 \tabularnewline
29 & 108751 & 98153.3632964426 & 10597.6367035574 \tabularnewline
30 & 91738 & 102898.931205069 & -11160.9312050693 \tabularnewline
31 & 402216 & 456265.478944045 & -54049.4789440448 \tabularnewline
32 & 390070 & 342014.056815837 & 48055.9431841634 \tabularnewline
33 & 106045 & 80754.0147849692 & 25290.9852150308 \tabularnewline
34 & 110070 & 76718.0346509596 & 33351.9653490404 \tabularnewline
35 & 70668 & 24453.8074665773 & 46214.1925334227 \tabularnewline
36 & 167841 & 92100.2353799933 & 75740.7646200067 \tabularnewline
37 & 28607 & 42151.4449392437 & -13544.4449392437 \tabularnewline
38 & 95371 & 32063.2512010251 & 63307.7487989749 \tabularnewline
39 & 30605 & 100751.788392912 & -70146.7883929115 \tabularnewline
40 & 131063 & 113518.036998097 & 17544.9630019027 \tabularnewline
41 & 81214 & 105244.184928501 & -24030.1849285005 \tabularnewline
42 & 85451 & 94980.832361934 & -9529.83236193392 \tabularnewline
43 & 455196 & 418763.135172014 & 36432.864827986 \tabularnewline
44 & 454570 & 374943.377813468 & 79626.6221865322 \tabularnewline
45 & 63114 & 97980.2139036847 & -34866.2139036847 \tabularnewline
46 & 74287 & 99504.6461227093 & -25217.6461227093 \tabularnewline
47 & 42350 & 56112.700687519 & -13762.700687519 \tabularnewline
48 & 113375 & 144126.368495289 & -30751.3684952894 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112374&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]48481[/C][C]44449.8456196582[/C][C]4031.15438034176[/C][/ROW]
[ROW][C]14[/C][C]50730[/C][C]48323.6072746699[/C][C]2406.39272533011[/C][/ROW]
[ROW][C]15[/C][C]68694[/C][C]63239.7855963482[/C][C]5454.21440365177[/C][/ROW]
[ROW][C]16[/C][C]207716[/C][C]203795.04725136[/C][C]3920.95274864012[/C][/ROW]
[ROW][C]17[/C][C]99132[/C][C]96684.3505730382[/C][C]2447.64942696178[/C][/ROW]
[ROW][C]18[/C][C]104012[/C][C]101130.98722805[/C][C]2881.01277195013[/C][/ROW]
[ROW][C]19[/C][C]422632[/C][C]531762.040549728[/C][C]-109130.040549728[/C][/ROW]
[ROW][C]20[/C][C]364974[/C][C]291666.093871407[/C][C]73307.9061285935[/C][/ROW]
[ROW][C]21[/C][C]82687[/C][C]77162.8555264182[/C][C]5524.14447358181[/C][/ROW]
[ROW][C]22[/C][C]66834[/C][C]99403.9088480965[/C][C]-32569.9088480965[/C][/ROW]
[ROW][C]23[/C][C]28408[/C][C]16368.1705031082[/C][C]12039.8294968918[/C][/ROW]
[ROW][C]24[/C][C]97073[/C][C]81749.6404914532[/C][C]15323.3595085468[/C][/ROW]
[ROW][C]25[/C][C]40284[/C][C]47011.1498953909[/C][C]-6727.14989539092[/C][/ROW]
[ROW][C]26[/C][C]24421[/C][C]49764.1613901154[/C][C]-25343.1613901154[/C][/ROW]
[ROW][C]27[/C][C]116346[/C][C]66782.7075415424[/C][C]49563.2924584576[/C][/ROW]
[ROW][C]28[/C][C]72120[/C][C]206280.335148929[/C][C]-134160.335148929[/C][/ROW]
[ROW][C]29[/C][C]108751[/C][C]98153.3632964426[/C][C]10597.6367035574[/C][/ROW]
[ROW][C]30[/C][C]91738[/C][C]102898.931205069[/C][C]-11160.9312050693[/C][/ROW]
[ROW][C]31[/C][C]402216[/C][C]456265.478944045[/C][C]-54049.4789440448[/C][/ROW]
[ROW][C]32[/C][C]390070[/C][C]342014.056815837[/C][C]48055.9431841634[/C][/ROW]
[ROW][C]33[/C][C]106045[/C][C]80754.0147849692[/C][C]25290.9852150308[/C][/ROW]
[ROW][C]34[/C][C]110070[/C][C]76718.0346509596[/C][C]33351.9653490404[/C][/ROW]
[ROW][C]35[/C][C]70668[/C][C]24453.8074665773[/C][C]46214.1925334227[/C][/ROW]
[ROW][C]36[/C][C]167841[/C][C]92100.2353799933[/C][C]75740.7646200067[/C][/ROW]
[ROW][C]37[/C][C]28607[/C][C]42151.4449392437[/C][C]-13544.4449392437[/C][/ROW]
[ROW][C]38[/C][C]95371[/C][C]32063.2512010251[/C][C]63307.7487989749[/C][/ROW]
[ROW][C]39[/C][C]30605[/C][C]100751.788392912[/C][C]-70146.7883929115[/C][/ROW]
[ROW][C]40[/C][C]131063[/C][C]113518.036998097[/C][C]17544.9630019027[/C][/ROW]
[ROW][C]41[/C][C]81214[/C][C]105244.184928501[/C][C]-24030.1849285005[/C][/ROW]
[ROW][C]42[/C][C]85451[/C][C]94980.832361934[/C][C]-9529.83236193392[/C][/ROW]
[ROW][C]43[/C][C]455196[/C][C]418763.135172014[/C][C]36432.864827986[/C][/ROW]
[ROW][C]44[/C][C]454570[/C][C]374943.377813468[/C][C]79626.6221865322[/C][/ROW]
[ROW][C]45[/C][C]63114[/C][C]97980.2139036847[/C][C]-34866.2139036847[/C][/ROW]
[ROW][C]46[/C][C]74287[/C][C]99504.6461227093[/C][C]-25217.6461227093[/C][/ROW]
[ROW][C]47[/C][C]42350[/C][C]56112.700687519[/C][C]-13762.700687519[/C][/ROW]
[ROW][C]48[/C][C]113375[/C][C]144126.368495289[/C][C]-30751.3684952894[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112374&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112374&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
134848144449.84561965824031.15438034176
145073048323.60727466992406.39272533011
156869463239.78559634825454.21440365177
16207716203795.047251363920.95274864012
179913296684.35057303822447.64942696178
18104012101130.987228052881.01277195013
19422632531762.040549728-109130.040549728
20364974291666.09387140773307.9061285935
218268777162.85552641825524.14447358181
226683499403.9088480965-32569.9088480965
232840816368.170503108212039.8294968918
249707381749.640491453215323.3595085468
254028447011.1498953909-6727.14989539092
262442149764.1613901154-25343.1613901154
2711634666782.707541542449563.2924584576
2872120206280.335148929-134160.335148929
2910875198153.363296442610597.6367035574
3091738102898.931205069-11160.9312050693
31402216456265.478944045-54049.4789440448
32390070342014.05681583748055.9431841634
3310604580754.014784969225290.9852150308
3411007076718.034650959633351.9653490404
357066824453.807466577346214.1925334227
3616784192100.235379993375740.7646200067
372860742151.4449392437-13544.4449392437
389537132063.251201025163307.7487989749
3930605100751.788392912-70146.7883929115
40131063113518.03699809717544.9630019027
4181214105244.184928501-24030.1849285005
428545194980.832361934-9529.83236193392
43455196418763.13517201436432.864827986
44454570374943.37781346879626.6221865322
456311497980.2139036847-34866.2139036847
467428799504.6461227093-25217.6461227093
474235056112.700687519-13762.700687519
48113375144126.368495289-30751.3684952894







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
4932589.2136220418-58624.6790742502123803.106318334
5075513.169810462-15700.7228858299166727.062506754
5152145.6238916301-39068.2688046619143359.516587922
52125401.07971588934187.1870195966216614.972412181
5388448.9574746405-2764.93522165153179662.850170932
5488187.855030775-3026.03766551698179401.747727067
55443674.931328056352461.038631764534888.824024348
56429649.950534846338436.057838554520863.843231138
5773710.3632191777-17503.5294771143164924.255915470
5881890.3155593935-9323.57713689846173104.208255686
5946399.9179561396-44813.9747401524137613.810652432
60122694.91176031431481.019064022213908.804456606

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
49 & 32589.2136220418 & -58624.6790742502 & 123803.106318334 \tabularnewline
50 & 75513.169810462 & -15700.7228858299 & 166727.062506754 \tabularnewline
51 & 52145.6238916301 & -39068.2688046619 & 143359.516587922 \tabularnewline
52 & 125401.079715889 & 34187.1870195966 & 216614.972412181 \tabularnewline
53 & 88448.9574746405 & -2764.93522165153 & 179662.850170932 \tabularnewline
54 & 88187.855030775 & -3026.03766551698 & 179401.747727067 \tabularnewline
55 & 443674.931328056 & 352461.038631764 & 534888.824024348 \tabularnewline
56 & 429649.950534846 & 338436.057838554 & 520863.843231138 \tabularnewline
57 & 73710.3632191777 & -17503.5294771143 & 164924.255915470 \tabularnewline
58 & 81890.3155593935 & -9323.57713689846 & 173104.208255686 \tabularnewline
59 & 46399.9179561396 & -44813.9747401524 & 137613.810652432 \tabularnewline
60 & 122694.911760314 & 31481.019064022 & 213908.804456606 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=112374&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]32589.2136220418[/C][C]-58624.6790742502[/C][C]123803.106318334[/C][/ROW]
[ROW][C]50[/C][C]75513.169810462[/C][C]-15700.7228858299[/C][C]166727.062506754[/C][/ROW]
[ROW][C]51[/C][C]52145.6238916301[/C][C]-39068.2688046619[/C][C]143359.516587922[/C][/ROW]
[ROW][C]52[/C][C]125401.079715889[/C][C]34187.1870195966[/C][C]216614.972412181[/C][/ROW]
[ROW][C]53[/C][C]88448.9574746405[/C][C]-2764.93522165153[/C][C]179662.850170932[/C][/ROW]
[ROW][C]54[/C][C]88187.855030775[/C][C]-3026.03766551698[/C][C]179401.747727067[/C][/ROW]
[ROW][C]55[/C][C]443674.931328056[/C][C]352461.038631764[/C][C]534888.824024348[/C][/ROW]
[ROW][C]56[/C][C]429649.950534846[/C][C]338436.057838554[/C][C]520863.843231138[/C][/ROW]
[ROW][C]57[/C][C]73710.3632191777[/C][C]-17503.5294771143[/C][C]164924.255915470[/C][/ROW]
[ROW][C]58[/C][C]81890.3155593935[/C][C]-9323.57713689846[/C][C]173104.208255686[/C][/ROW]
[ROW][C]59[/C][C]46399.9179561396[/C][C]-44813.9747401524[/C][C]137613.810652432[/C][/ROW]
[ROW][C]60[/C][C]122694.911760314[/C][C]31481.019064022[/C][C]213908.804456606[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=112374&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=112374&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
4932589.2136220418-58624.6790742502123803.106318334
5075513.169810462-15700.7228858299166727.062506754
5152145.6238916301-39068.2688046619143359.516587922
52125401.07971588934187.1870195966216614.972412181
5388448.9574746405-2764.93522165153179662.850170932
5488187.855030775-3026.03766551698179401.747727067
55443674.931328056352461.038631764534888.824024348
56429649.950534846338436.057838554520863.843231138
5773710.3632191777-17503.5294771143164924.255915470
5881890.3155593935-9323.57713689846173104.208255686
5946399.9179561396-44813.9747401524137613.810652432
60122694.91176031431481.019064022213908.804456606



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