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 computationWed, 29 Dec 2010 09:53:55 +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/29/t1293616307imej6mbgxlhl2hc.htm/, Retrieved Fri, 03 May 2024 07:09:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116661, Retrieved Fri, 03 May 2024 07:09:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Exponential Smoothing] [Exponential Smoot...] [2010-12-28 09:47:16] [ed447cc2ebcc70947ad11d93fa385845]
-    D    [Exponential Smoothing] [] [2010-12-29 09:53:55] [e8bffe463cbaa638f5c41694f8d1de39] [Current]
Feedback Forum

Post a new message
Dataseries X:
548604
563668
586111
604378
600991
544686
537034
551531
563250
574761
580112
575093
557560
564478
580523
596594
586570
536214
523597
536535
536322
532638
528222
516141
501866
506174
517945
533590
528379
477580
469357
490243
492622
507561
516922
514258
509846
527070
541657
564591
555362
498662
511038
525919
531673
548854
560576
557274
565742




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

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







Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.538874295124119
beta0.428829606945443
gamma1

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

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







Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13557560561909.007211539-4349.00721153873
14564478565213.514458388-735.514458387857
15580523579984.398521435538.601478564553
16596594596722.625437075-128.625437075272
17586570588016.660810633-1446.66081063310
18536214538635.347156418-2421.34715641825
19523597517241.2624664176355.73753358313
20536535532801.3069793333733.69302066742
21536322545639.200496777-9317.20049677696
22532638549441.318676276-16803.3186762757
23528222539534.40273163-11312.4027316298
24516141519630.937475008-3489.93747500784
25501866488575.88557227713290.1144277233
26506174498028.8684968138145.1315031866
27517945515201.9503585062743.04964149435
28533590530358.9560582573231.04394174251
29528379521170.554771077208.44522892957
30477580476318.7735782141261.22642178612
31469357462122.4321610987234.56783890235
32490243478316.00800106811926.9919989324
33492622492813.352208155-191.352208155207
34507561503452.3578328214108.64216717862
35516922517550.052181178-628.052181177773
36514258519683.934091286-5425.93409128557
37509846507548.641861492297.35813851003
38527070518390.46847588679.53152419964
39541657543169.019293722-1512.01929372235
40564591565083.354085944-492.35408594436
41555362563687.41856105-8325.4185610502
42498662512097.602450021-13435.6024500211
43511038493714.93904622717323.0609537727
44525919520819.0039169295099.99608307052
45531673527782.0194410543890.98055894650
46548854545279.7380357073574.26196429273
47560576559457.7805651641118.21943483583
48557274563276.317756909-6002.31775690883
49565742557214.703067468527.29693253944

\begin{tabular}{lllllllll}
\hline
Interpolation Forecasts of Exponential Smoothing \tabularnewline
t & Observed & Fitted & Residuals \tabularnewline
13 & 557560 & 561909.007211539 & -4349.00721153873 \tabularnewline
14 & 564478 & 565213.514458388 & -735.514458387857 \tabularnewline
15 & 580523 & 579984.398521435 & 538.601478564553 \tabularnewline
16 & 596594 & 596722.625437075 & -128.625437075272 \tabularnewline
17 & 586570 & 588016.660810633 & -1446.66081063310 \tabularnewline
18 & 536214 & 538635.347156418 & -2421.34715641825 \tabularnewline
19 & 523597 & 517241.262466417 & 6355.73753358313 \tabularnewline
20 & 536535 & 532801.306979333 & 3733.69302066742 \tabularnewline
21 & 536322 & 545639.200496777 & -9317.20049677696 \tabularnewline
22 & 532638 & 549441.318676276 & -16803.3186762757 \tabularnewline
23 & 528222 & 539534.40273163 & -11312.4027316298 \tabularnewline
24 & 516141 & 519630.937475008 & -3489.93747500784 \tabularnewline
25 & 501866 & 488575.885572277 & 13290.1144277233 \tabularnewline
26 & 506174 & 498028.868496813 & 8145.1315031866 \tabularnewline
27 & 517945 & 515201.950358506 & 2743.04964149435 \tabularnewline
28 & 533590 & 530358.956058257 & 3231.04394174251 \tabularnewline
29 & 528379 & 521170.55477107 & 7208.44522892957 \tabularnewline
30 & 477580 & 476318.773578214 & 1261.22642178612 \tabularnewline
31 & 469357 & 462122.432161098 & 7234.56783890235 \tabularnewline
32 & 490243 & 478316.008001068 & 11926.9919989324 \tabularnewline
33 & 492622 & 492813.352208155 & -191.352208155207 \tabularnewline
34 & 507561 & 503452.357832821 & 4108.64216717862 \tabularnewline
35 & 516922 & 517550.052181178 & -628.052181177773 \tabularnewline
36 & 514258 & 519683.934091286 & -5425.93409128557 \tabularnewline
37 & 509846 & 507548.64186149 & 2297.35813851003 \tabularnewline
38 & 527070 & 518390.4684758 & 8679.53152419964 \tabularnewline
39 & 541657 & 543169.019293722 & -1512.01929372235 \tabularnewline
40 & 564591 & 565083.354085944 & -492.35408594436 \tabularnewline
41 & 555362 & 563687.41856105 & -8325.4185610502 \tabularnewline
42 & 498662 & 512097.602450021 & -13435.6024500211 \tabularnewline
43 & 511038 & 493714.939046227 & 17323.0609537727 \tabularnewline
44 & 525919 & 520819.003916929 & 5099.99608307052 \tabularnewline
45 & 531673 & 527782.019441054 & 3890.98055894650 \tabularnewline
46 & 548854 & 545279.738035707 & 3574.26196429273 \tabularnewline
47 & 560576 & 559457.780565164 & 1118.21943483583 \tabularnewline
48 & 557274 & 563276.317756909 & -6002.31775690883 \tabularnewline
49 & 565742 & 557214.70306746 & 8527.29693253944 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116661&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]557560[/C][C]561909.007211539[/C][C]-4349.00721153873[/C][/ROW]
[ROW][C]14[/C][C]564478[/C][C]565213.514458388[/C][C]-735.514458387857[/C][/ROW]
[ROW][C]15[/C][C]580523[/C][C]579984.398521435[/C][C]538.601478564553[/C][/ROW]
[ROW][C]16[/C][C]596594[/C][C]596722.625437075[/C][C]-128.625437075272[/C][/ROW]
[ROW][C]17[/C][C]586570[/C][C]588016.660810633[/C][C]-1446.66081063310[/C][/ROW]
[ROW][C]18[/C][C]536214[/C][C]538635.347156418[/C][C]-2421.34715641825[/C][/ROW]
[ROW][C]19[/C][C]523597[/C][C]517241.262466417[/C][C]6355.73753358313[/C][/ROW]
[ROW][C]20[/C][C]536535[/C][C]532801.306979333[/C][C]3733.69302066742[/C][/ROW]
[ROW][C]21[/C][C]536322[/C][C]545639.200496777[/C][C]-9317.20049677696[/C][/ROW]
[ROW][C]22[/C][C]532638[/C][C]549441.318676276[/C][C]-16803.3186762757[/C][/ROW]
[ROW][C]23[/C][C]528222[/C][C]539534.40273163[/C][C]-11312.4027316298[/C][/ROW]
[ROW][C]24[/C][C]516141[/C][C]519630.937475008[/C][C]-3489.93747500784[/C][/ROW]
[ROW][C]25[/C][C]501866[/C][C]488575.885572277[/C][C]13290.1144277233[/C][/ROW]
[ROW][C]26[/C][C]506174[/C][C]498028.868496813[/C][C]8145.1315031866[/C][/ROW]
[ROW][C]27[/C][C]517945[/C][C]515201.950358506[/C][C]2743.04964149435[/C][/ROW]
[ROW][C]28[/C][C]533590[/C][C]530358.956058257[/C][C]3231.04394174251[/C][/ROW]
[ROW][C]29[/C][C]528379[/C][C]521170.55477107[/C][C]7208.44522892957[/C][/ROW]
[ROW][C]30[/C][C]477580[/C][C]476318.773578214[/C][C]1261.22642178612[/C][/ROW]
[ROW][C]31[/C][C]469357[/C][C]462122.432161098[/C][C]7234.56783890235[/C][/ROW]
[ROW][C]32[/C][C]490243[/C][C]478316.008001068[/C][C]11926.9919989324[/C][/ROW]
[ROW][C]33[/C][C]492622[/C][C]492813.352208155[/C][C]-191.352208155207[/C][/ROW]
[ROW][C]34[/C][C]507561[/C][C]503452.357832821[/C][C]4108.64216717862[/C][/ROW]
[ROW][C]35[/C][C]516922[/C][C]517550.052181178[/C][C]-628.052181177773[/C][/ROW]
[ROW][C]36[/C][C]514258[/C][C]519683.934091286[/C][C]-5425.93409128557[/C][/ROW]
[ROW][C]37[/C][C]509846[/C][C]507548.64186149[/C][C]2297.35813851003[/C][/ROW]
[ROW][C]38[/C][C]527070[/C][C]518390.4684758[/C][C]8679.53152419964[/C][/ROW]
[ROW][C]39[/C][C]541657[/C][C]543169.019293722[/C][C]-1512.01929372235[/C][/ROW]
[ROW][C]40[/C][C]564591[/C][C]565083.354085944[/C][C]-492.35408594436[/C][/ROW]
[ROW][C]41[/C][C]555362[/C][C]563687.41856105[/C][C]-8325.4185610502[/C][/ROW]
[ROW][C]42[/C][C]498662[/C][C]512097.602450021[/C][C]-13435.6024500211[/C][/ROW]
[ROW][C]43[/C][C]511038[/C][C]493714.939046227[/C][C]17323.0609537727[/C][/ROW]
[ROW][C]44[/C][C]525919[/C][C]520819.003916929[/C][C]5099.99608307052[/C][/ROW]
[ROW][C]45[/C][C]531673[/C][C]527782.019441054[/C][C]3890.98055894650[/C][/ROW]
[ROW][C]46[/C][C]548854[/C][C]545279.738035707[/C][C]3574.26196429273[/C][/ROW]
[ROW][C]47[/C][C]560576[/C][C]559457.780565164[/C][C]1118.21943483583[/C][/ROW]
[ROW][C]48[/C][C]557274[/C][C]563276.317756909[/C][C]-6002.31775690883[/C][/ROW]
[ROW][C]49[/C][C]565742[/C][C]557214.70306746[/C][C]8527.29693253944[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116661&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116661&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
13557560561909.007211539-4349.00721153873
14564478565213.514458388-735.514458387857
15580523579984.398521435538.601478564553
16596594596722.625437075-128.625437075272
17586570588016.660810633-1446.66081063310
18536214538635.347156418-2421.34715641825
19523597517241.2624664176355.73753358313
20536535532801.3069793333733.69302066742
21536322545639.200496777-9317.20049677696
22532638549441.318676276-16803.3186762757
23528222539534.40273163-11312.4027316298
24516141519630.937475008-3489.93747500784
25501866488575.88557227713290.1144277233
26506174498028.8684968138145.1315031866
27517945515201.9503585062743.04964149435
28533590530358.9560582573231.04394174251
29528379521170.554771077208.44522892957
30477580476318.7735782141261.22642178612
31469357462122.4321610987234.56783890235
32490243478316.00800106811926.9919989324
33492622492813.352208155-191.352208155207
34507561503452.3578328214108.64216717862
35516922517550.052181178-628.052181177773
36514258519683.934091286-5425.93409128557
37509846507548.641861492297.35813851003
38527070518390.46847588679.53152419964
39541657543169.019293722-1512.01929372235
40564591565083.354085944-492.35408594436
41555362563687.41856105-8325.4185610502
42498662512097.602450021-13435.6024500211
43511038493714.93904622717323.0609537727
44525919520819.0039169295099.99608307052
45531673527782.0194410543890.98055894650
46548854545279.7380357073574.26196429273
47560576559457.7805651641118.21943483583
48557274563276.317756909-6002.31775690883
49565742557214.703067468527.29693253944







Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
50578619.182044869564333.878843265592904.485246473
51596277.772930674578248.623997473614306.921863875
52622083.297806153599071.415097421645095.180514884
53620060.635547424591089.02330541649032.247789437
54575244.601477429539519.711746819610969.491208038
55586034.283926987542882.437366341629186.130487634
56601912.557934125550740.383008735653084.732859515
57608136.805448691548407.487304475667866.123592907
58625059.576249047556278.20839093693840.944107163
59637020.886008914558725.026177877715316.745839952
60637536.866208807549290.157616237725783.574801377
61643380.257646964544767.930215956741992.585077973

\begin{tabular}{lllllllll}
\hline
Extrapolation Forecasts of Exponential Smoothing \tabularnewline
t & Forecast & 95% Lower Bound & 95% Upper Bound \tabularnewline
50 & 578619.182044869 & 564333.878843265 & 592904.485246473 \tabularnewline
51 & 596277.772930674 & 578248.623997473 & 614306.921863875 \tabularnewline
52 & 622083.297806153 & 599071.415097421 & 645095.180514884 \tabularnewline
53 & 620060.635547424 & 591089.02330541 & 649032.247789437 \tabularnewline
54 & 575244.601477429 & 539519.711746819 & 610969.491208038 \tabularnewline
55 & 586034.283926987 & 542882.437366341 & 629186.130487634 \tabularnewline
56 & 601912.557934125 & 550740.383008735 & 653084.732859515 \tabularnewline
57 & 608136.805448691 & 548407.487304475 & 667866.123592907 \tabularnewline
58 & 625059.576249047 & 556278.20839093 & 693840.944107163 \tabularnewline
59 & 637020.886008914 & 558725.026177877 & 715316.745839952 \tabularnewline
60 & 637536.866208807 & 549290.157616237 & 725783.574801377 \tabularnewline
61 & 643380.257646964 & 544767.930215956 & 741992.585077973 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116661&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]50[/C][C]578619.182044869[/C][C]564333.878843265[/C][C]592904.485246473[/C][/ROW]
[ROW][C]51[/C][C]596277.772930674[/C][C]578248.623997473[/C][C]614306.921863875[/C][/ROW]
[ROW][C]52[/C][C]622083.297806153[/C][C]599071.415097421[/C][C]645095.180514884[/C][/ROW]
[ROW][C]53[/C][C]620060.635547424[/C][C]591089.02330541[/C][C]649032.247789437[/C][/ROW]
[ROW][C]54[/C][C]575244.601477429[/C][C]539519.711746819[/C][C]610969.491208038[/C][/ROW]
[ROW][C]55[/C][C]586034.283926987[/C][C]542882.437366341[/C][C]629186.130487634[/C][/ROW]
[ROW][C]56[/C][C]601912.557934125[/C][C]550740.383008735[/C][C]653084.732859515[/C][/ROW]
[ROW][C]57[/C][C]608136.805448691[/C][C]548407.487304475[/C][C]667866.123592907[/C][/ROW]
[ROW][C]58[/C][C]625059.576249047[/C][C]556278.20839093[/C][C]693840.944107163[/C][/ROW]
[ROW][C]59[/C][C]637020.886008914[/C][C]558725.026177877[/C][C]715316.745839952[/C][/ROW]
[ROW][C]60[/C][C]637536.866208807[/C][C]549290.157616237[/C][C]725783.574801377[/C][/ROW]
[ROW][C]61[/C][C]643380.257646964[/C][C]544767.930215956[/C][C]741992.585077973[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116661&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116661&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
50578619.182044869564333.878843265592904.485246473
51596277.772930674578248.623997473614306.921863875
52622083.297806153599071.415097421645095.180514884
53620060.635547424591089.02330541649032.247789437
54575244.601477429539519.711746819610969.491208038
55586034.283926987542882.437366341629186.130487634
56601912.557934125550740.383008735653084.732859515
57608136.805448691548407.487304475667866.123592907
58625059.576249047556278.20839093693840.944107163
59637020.886008914558725.026177877715316.745839952
60637536.866208807549290.157616237725783.574801377
61643380.257646964544767.930215956741992.585077973



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