Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_structuraltimeseries.wasp
Title produced by softwareStructural Time Series Models
Date of computationWed, 14 Dec 2016 14:54:12 +0100
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/Dec/14/t1481723700hrd8ndhgez82s1r.htm/, Retrieved Fri, 03 May 2024 16:54:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=299452, Retrieved Fri, 03 May 2024 16:54:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact66
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Structural Time Series Models] [] [2016-12-14 13:54:12] [349958aef20b862f8399a5ba04d6f6e3] [Current]
Feedback Forum

Post a new message
Dataseries X:
876
80
2492
529
606
164
138
601
789
146
218
939
980
610
583
432
558
281
139
778
517
609
344
809
188
318
201
608
43
622
746
285
757
861
35
267
815
501
977
740
950
616
848
770
887
808
326
932
649
916
857
894
418
464
477
340
327
776
192
819
323
39
207
614
520
801
92
747
412
570




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time5 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299452&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]5 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=299452&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299452&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R ServerBig Analytics Cloud Computing Center







Structural Time Series Model -- Interpolation
tObservedLevelSlopeSeasonalStand. Residuals
1876876000
280739.438749195005-33.3220206605988-33.3220205348117-2.01923066414354
324921087.5830639368438.101825435729338.10182543572954.50939248034477
4529979.97330393283415.869993164405715.8699931644059-1.5570452125706
5606899.7059632356523.473081648206413.47308164820645-0.993162821793446
6164727.0908317746-16.2007259784725-16.2007259784725-1.8228229709314
7138580.922619187341-29.0138563473428-29.0138563473428-1.37296834332832
8601569.724252555796-27.4420240817724-27.44202408177240.193698476976906
9789603.186144293527-22.5784647928153-22.57846479281530.683666790610218
10146491.517914956846-29.0780586781537-29.0780586781537-1.03278837238338
11218417.080997875086-32.1250814214804-32.1250814214804-0.54235916812559
12939505.391078170931-24.6255953456375-24.62559534563751.48237174917282
13980500.007986159133-26.3892987025275290.2822854923940.595319183140863
14610510.88694443126-24.2367947376862-24.23679453976620.405283623316625
15583512.674740060703-22.845765358367-22.84576535836680.303173884835969
16432482.623271389128-23.2041060878576-23.2041060878573-0.0885846930375662
17558483.580241122641-22.0805699488624-22.08056994886240.310072275567726
18281431.018762050732-23.4121881220843-23.4121881220845-0.405073326121314
19139361.609892540563-25.3081488707346-25.3081488707345-0.629104030930546
20778422.070482720478-21.9593146145478-21.95931461454781.20155925323065
21517425.158292189384-21.0296182158756-21.02961821587560.35806642663742
22609444.260310192411-19.6089255308014-19.60892553080150.583687924108384
23344413.949137626832-19.9713304610657-19.9713304610656-0.157981544109141
24809469.374910523672-17.522657185651-17.5226571856511.12737161976886
25188397.569526318746-15.9597770816653175.557547775094-1.19942315525601
26318372.753193421795-16.2617504899261-16.26175035456-0.122494099128302
27201331.302945842809-17.0718490548621-17.0718490548619-0.359129047889253
28608369.244820809619-15.3960112822708-15.39601128227070.803927333770569
2943302.493843449414-16.8835004431474-16.8835004431474-0.765773714497092
30622346.102148770622-15.2114790923615-15.21147909236150.917244524248058
31746403.655709210837-13.2858241001908-13.28582410019071.11891522768868
32285374.96350149249-13.6773646315364-13.6773646315363-0.239726910574469
33757429.162505994994-12.0162400056723-12.01624000567241.06688358826427
34861492.14183284799-10.2445078567249-10.2445078567251.18905149637025
3535410.546997525462-11.8753073717334-11.8753073717333-1.13978943193998
36267379.211833180078-12.3064792401999-12.3064792401999-0.312908945507047
37815406.78087175292-13.0016379975075143.0180177154710.823700986968751
38501414.361401771169-12.5007087160452-12.50070849030390.312260742447803
39977500.815473810528-10.2120647937939-10.21206479379361.52915914829383
40740533.729684845435-9.26051205094414-9.260512050943960.676575126367348
41950595.887283932422-7.75173865542915-7.751738655429141.13452782105867
42616593.93091110045-7.63412139810453-7.634121398104660.0930308931766347
43848629.775652526437-6.78383420404864-6.783834204048530.704124047753677
44770647.651221695587-6.31785595321795-6.317855953217950.402347780858786
45887681.504281143067-5.58254683337235-5.582546833372360.659645203793752
46808697.758220686799-5.19449994117185-5.194499941171920.360560435466249
47326635.489178837268-6.18112513165607-6.18112513165598-0.946933096574282
48932677.906853671835-5.36244430960655-5.362444309606590.80969840757137
49649661.684483622003-5.2267207362828557.4939277881314-0.217677151361998
50916699.896310994554-4.40374000100629-4.403739759785510.691109544151941
51857722.392602919211-3.91747738658874-3.917477386588390.433614143594353
52894747.286577142846-3.41865360070071-3.418653600700510.469462564927615
53418692.513776050799-4.27324179102809-4.273241791028-0.84432119135364
54464653.445621530474-4.83158672494424-4.83158672494443-0.57638564602911
55477622.383264907771-5.2386675113644-5.23866751136427-0.437285520869377
56340574.589108565301-5.87908079950583-5.87908079950584-0.713269556555522
57327531.95483082135-6.41672224546272-6.41672224546273-0.618905130345706
58776565.429335008147-5.84833513489547-5.848335134895530.674393557360561
59192503.582622778907-6.62701163798682-6.6270116379867-0.949978821577287
60819547.696666333649-5.93727181347852-5.937271813478550.863398166868303
61323503.701292498968-5.5667020555942261.2337224716252-0.749830883906042
6239425.642197897141-6.69129166700592-6.69129140694704-1.18737154705147
63207386.444103772255-7.17366894519414-7.17366894519378-0.537847153753431
64614417.291080854246-6.63193025767073-6.631930257670830.634358698285226
65520428.772110710856-6.38325365876926-6.383253658769290.30431928685316
66801482.200341263759-5.58949151554921-5.589491515549261.01079272981744
6792417.990560932672-6.34366069017282-6.34366069017269-0.995563201542281
68747464.293492622501-5.68534349695848-5.685343496958490.89787042813837
69412452.323539293134-5.76190277556422-5.76190277556423-0.107567628715809
70570466.347549748135-5.52659819465074-5.526598194650790.339705909583606

\begin{tabular}{lllllllll}
\hline
Structural Time Series Model -- Interpolation \tabularnewline
t & Observed & Level & Slope & Seasonal & Stand. Residuals \tabularnewline
1 & 876 & 876 & 0 & 0 & 0 \tabularnewline
2 & 80 & 739.438749195005 & -33.3220206605988 & -33.3220205348117 & -2.01923066414354 \tabularnewline
3 & 2492 & 1087.58306393684 & 38.1018254357293 & 38.1018254357295 & 4.50939248034477 \tabularnewline
4 & 529 & 979.973303932834 & 15.8699931644057 & 15.8699931644059 & -1.5570452125706 \tabularnewline
5 & 606 & 899.705963235652 & 3.47308164820641 & 3.47308164820645 & -0.993162821793446 \tabularnewline
6 & 164 & 727.0908317746 & -16.2007259784725 & -16.2007259784725 & -1.8228229709314 \tabularnewline
7 & 138 & 580.922619187341 & -29.0138563473428 & -29.0138563473428 & -1.37296834332832 \tabularnewline
8 & 601 & 569.724252555796 & -27.4420240817724 & -27.4420240817724 & 0.193698476976906 \tabularnewline
9 & 789 & 603.186144293527 & -22.5784647928153 & -22.5784647928153 & 0.683666790610218 \tabularnewline
10 & 146 & 491.517914956846 & -29.0780586781537 & -29.0780586781537 & -1.03278837238338 \tabularnewline
11 & 218 & 417.080997875086 & -32.1250814214804 & -32.1250814214804 & -0.54235916812559 \tabularnewline
12 & 939 & 505.391078170931 & -24.6255953456375 & -24.6255953456375 & 1.48237174917282 \tabularnewline
13 & 980 & 500.007986159133 & -26.3892987025275 & 290.282285492394 & 0.595319183140863 \tabularnewline
14 & 610 & 510.88694443126 & -24.2367947376862 & -24.2367945397662 & 0.405283623316625 \tabularnewline
15 & 583 & 512.674740060703 & -22.845765358367 & -22.8457653583668 & 0.303173884835969 \tabularnewline
16 & 432 & 482.623271389128 & -23.2041060878576 & -23.2041060878573 & -0.0885846930375662 \tabularnewline
17 & 558 & 483.580241122641 & -22.0805699488624 & -22.0805699488624 & 0.310072275567726 \tabularnewline
18 & 281 & 431.018762050732 & -23.4121881220843 & -23.4121881220845 & -0.405073326121314 \tabularnewline
19 & 139 & 361.609892540563 & -25.3081488707346 & -25.3081488707345 & -0.629104030930546 \tabularnewline
20 & 778 & 422.070482720478 & -21.9593146145478 & -21.9593146145478 & 1.20155925323065 \tabularnewline
21 & 517 & 425.158292189384 & -21.0296182158756 & -21.0296182158756 & 0.35806642663742 \tabularnewline
22 & 609 & 444.260310192411 & -19.6089255308014 & -19.6089255308015 & 0.583687924108384 \tabularnewline
23 & 344 & 413.949137626832 & -19.9713304610657 & -19.9713304610656 & -0.157981544109141 \tabularnewline
24 & 809 & 469.374910523672 & -17.522657185651 & -17.522657185651 & 1.12737161976886 \tabularnewline
25 & 188 & 397.569526318746 & -15.9597770816653 & 175.557547775094 & -1.19942315525601 \tabularnewline
26 & 318 & 372.753193421795 & -16.2617504899261 & -16.26175035456 & -0.122494099128302 \tabularnewline
27 & 201 & 331.302945842809 & -17.0718490548621 & -17.0718490548619 & -0.359129047889253 \tabularnewline
28 & 608 & 369.244820809619 & -15.3960112822708 & -15.3960112822707 & 0.803927333770569 \tabularnewline
29 & 43 & 302.493843449414 & -16.8835004431474 & -16.8835004431474 & -0.765773714497092 \tabularnewline
30 & 622 & 346.102148770622 & -15.2114790923615 & -15.2114790923615 & 0.917244524248058 \tabularnewline
31 & 746 & 403.655709210837 & -13.2858241001908 & -13.2858241001907 & 1.11891522768868 \tabularnewline
32 & 285 & 374.96350149249 & -13.6773646315364 & -13.6773646315363 & -0.239726910574469 \tabularnewline
33 & 757 & 429.162505994994 & -12.0162400056723 & -12.0162400056724 & 1.06688358826427 \tabularnewline
34 & 861 & 492.14183284799 & -10.2445078567249 & -10.244507856725 & 1.18905149637025 \tabularnewline
35 & 35 & 410.546997525462 & -11.8753073717334 & -11.8753073717333 & -1.13978943193998 \tabularnewline
36 & 267 & 379.211833180078 & -12.3064792401999 & -12.3064792401999 & -0.312908945507047 \tabularnewline
37 & 815 & 406.78087175292 & -13.0016379975075 & 143.018017715471 & 0.823700986968751 \tabularnewline
38 & 501 & 414.361401771169 & -12.5007087160452 & -12.5007084903039 & 0.312260742447803 \tabularnewline
39 & 977 & 500.815473810528 & -10.2120647937939 & -10.2120647937936 & 1.52915914829383 \tabularnewline
40 & 740 & 533.729684845435 & -9.26051205094414 & -9.26051205094396 & 0.676575126367348 \tabularnewline
41 & 950 & 595.887283932422 & -7.75173865542915 & -7.75173865542914 & 1.13452782105867 \tabularnewline
42 & 616 & 593.93091110045 & -7.63412139810453 & -7.63412139810466 & 0.0930308931766347 \tabularnewline
43 & 848 & 629.775652526437 & -6.78383420404864 & -6.78383420404853 & 0.704124047753677 \tabularnewline
44 & 770 & 647.651221695587 & -6.31785595321795 & -6.31785595321795 & 0.402347780858786 \tabularnewline
45 & 887 & 681.504281143067 & -5.58254683337235 & -5.58254683337236 & 0.659645203793752 \tabularnewline
46 & 808 & 697.758220686799 & -5.19449994117185 & -5.19449994117192 & 0.360560435466249 \tabularnewline
47 & 326 & 635.489178837268 & -6.18112513165607 & -6.18112513165598 & -0.946933096574282 \tabularnewline
48 & 932 & 677.906853671835 & -5.36244430960655 & -5.36244430960659 & 0.80969840757137 \tabularnewline
49 & 649 & 661.684483622003 & -5.22672073628285 & 57.4939277881314 & -0.217677151361998 \tabularnewline
50 & 916 & 699.896310994554 & -4.40374000100629 & -4.40373975978551 & 0.691109544151941 \tabularnewline
51 & 857 & 722.392602919211 & -3.91747738658874 & -3.91747738658839 & 0.433614143594353 \tabularnewline
52 & 894 & 747.286577142846 & -3.41865360070071 & -3.41865360070051 & 0.469462564927615 \tabularnewline
53 & 418 & 692.513776050799 & -4.27324179102809 & -4.273241791028 & -0.84432119135364 \tabularnewline
54 & 464 & 653.445621530474 & -4.83158672494424 & -4.83158672494443 & -0.57638564602911 \tabularnewline
55 & 477 & 622.383264907771 & -5.2386675113644 & -5.23866751136427 & -0.437285520869377 \tabularnewline
56 & 340 & 574.589108565301 & -5.87908079950583 & -5.87908079950584 & -0.713269556555522 \tabularnewline
57 & 327 & 531.95483082135 & -6.41672224546272 & -6.41672224546273 & -0.618905130345706 \tabularnewline
58 & 776 & 565.429335008147 & -5.84833513489547 & -5.84833513489553 & 0.674393557360561 \tabularnewline
59 & 192 & 503.582622778907 & -6.62701163798682 & -6.6270116379867 & -0.949978821577287 \tabularnewline
60 & 819 & 547.696666333649 & -5.93727181347852 & -5.93727181347855 & 0.863398166868303 \tabularnewline
61 & 323 & 503.701292498968 & -5.56670205559422 & 61.2337224716252 & -0.749830883906042 \tabularnewline
62 & 39 & 425.642197897141 & -6.69129166700592 & -6.69129140694704 & -1.18737154705147 \tabularnewline
63 & 207 & 386.444103772255 & -7.17366894519414 & -7.17366894519378 & -0.537847153753431 \tabularnewline
64 & 614 & 417.291080854246 & -6.63193025767073 & -6.63193025767083 & 0.634358698285226 \tabularnewline
65 & 520 & 428.772110710856 & -6.38325365876926 & -6.38325365876929 & 0.30431928685316 \tabularnewline
66 & 801 & 482.200341263759 & -5.58949151554921 & -5.58949151554926 & 1.01079272981744 \tabularnewline
67 & 92 & 417.990560932672 & -6.34366069017282 & -6.34366069017269 & -0.995563201542281 \tabularnewline
68 & 747 & 464.293492622501 & -5.68534349695848 & -5.68534349695849 & 0.89787042813837 \tabularnewline
69 & 412 & 452.323539293134 & -5.76190277556422 & -5.76190277556423 & -0.107567628715809 \tabularnewline
70 & 570 & 466.347549748135 & -5.52659819465074 & -5.52659819465079 & 0.339705909583606 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299452&T=1

[TABLE]
[ROW][C]Structural Time Series Model -- Interpolation[/C][/ROW]
[ROW][C]t[/C][C]Observed[/C][C]Level[/C][C]Slope[/C][C]Seasonal[/C][C]Stand. Residuals[/C][/ROW]
[ROW][C]1[/C][C]876[/C][C]876[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]80[/C][C]739.438749195005[/C][C]-33.3220206605988[/C][C]-33.3220205348117[/C][C]-2.01923066414354[/C][/ROW]
[ROW][C]3[/C][C]2492[/C][C]1087.58306393684[/C][C]38.1018254357293[/C][C]38.1018254357295[/C][C]4.50939248034477[/C][/ROW]
[ROW][C]4[/C][C]529[/C][C]979.973303932834[/C][C]15.8699931644057[/C][C]15.8699931644059[/C][C]-1.5570452125706[/C][/ROW]
[ROW][C]5[/C][C]606[/C][C]899.705963235652[/C][C]3.47308164820641[/C][C]3.47308164820645[/C][C]-0.993162821793446[/C][/ROW]
[ROW][C]6[/C][C]164[/C][C]727.0908317746[/C][C]-16.2007259784725[/C][C]-16.2007259784725[/C][C]-1.8228229709314[/C][/ROW]
[ROW][C]7[/C][C]138[/C][C]580.922619187341[/C][C]-29.0138563473428[/C][C]-29.0138563473428[/C][C]-1.37296834332832[/C][/ROW]
[ROW][C]8[/C][C]601[/C][C]569.724252555796[/C][C]-27.4420240817724[/C][C]-27.4420240817724[/C][C]0.193698476976906[/C][/ROW]
[ROW][C]9[/C][C]789[/C][C]603.186144293527[/C][C]-22.5784647928153[/C][C]-22.5784647928153[/C][C]0.683666790610218[/C][/ROW]
[ROW][C]10[/C][C]146[/C][C]491.517914956846[/C][C]-29.0780586781537[/C][C]-29.0780586781537[/C][C]-1.03278837238338[/C][/ROW]
[ROW][C]11[/C][C]218[/C][C]417.080997875086[/C][C]-32.1250814214804[/C][C]-32.1250814214804[/C][C]-0.54235916812559[/C][/ROW]
[ROW][C]12[/C][C]939[/C][C]505.391078170931[/C][C]-24.6255953456375[/C][C]-24.6255953456375[/C][C]1.48237174917282[/C][/ROW]
[ROW][C]13[/C][C]980[/C][C]500.007986159133[/C][C]-26.3892987025275[/C][C]290.282285492394[/C][C]0.595319183140863[/C][/ROW]
[ROW][C]14[/C][C]610[/C][C]510.88694443126[/C][C]-24.2367947376862[/C][C]-24.2367945397662[/C][C]0.405283623316625[/C][/ROW]
[ROW][C]15[/C][C]583[/C][C]512.674740060703[/C][C]-22.845765358367[/C][C]-22.8457653583668[/C][C]0.303173884835969[/C][/ROW]
[ROW][C]16[/C][C]432[/C][C]482.623271389128[/C][C]-23.2041060878576[/C][C]-23.2041060878573[/C][C]-0.0885846930375662[/C][/ROW]
[ROW][C]17[/C][C]558[/C][C]483.580241122641[/C][C]-22.0805699488624[/C][C]-22.0805699488624[/C][C]0.310072275567726[/C][/ROW]
[ROW][C]18[/C][C]281[/C][C]431.018762050732[/C][C]-23.4121881220843[/C][C]-23.4121881220845[/C][C]-0.405073326121314[/C][/ROW]
[ROW][C]19[/C][C]139[/C][C]361.609892540563[/C][C]-25.3081488707346[/C][C]-25.3081488707345[/C][C]-0.629104030930546[/C][/ROW]
[ROW][C]20[/C][C]778[/C][C]422.070482720478[/C][C]-21.9593146145478[/C][C]-21.9593146145478[/C][C]1.20155925323065[/C][/ROW]
[ROW][C]21[/C][C]517[/C][C]425.158292189384[/C][C]-21.0296182158756[/C][C]-21.0296182158756[/C][C]0.35806642663742[/C][/ROW]
[ROW][C]22[/C][C]609[/C][C]444.260310192411[/C][C]-19.6089255308014[/C][C]-19.6089255308015[/C][C]0.583687924108384[/C][/ROW]
[ROW][C]23[/C][C]344[/C][C]413.949137626832[/C][C]-19.9713304610657[/C][C]-19.9713304610656[/C][C]-0.157981544109141[/C][/ROW]
[ROW][C]24[/C][C]809[/C][C]469.374910523672[/C][C]-17.522657185651[/C][C]-17.522657185651[/C][C]1.12737161976886[/C][/ROW]
[ROW][C]25[/C][C]188[/C][C]397.569526318746[/C][C]-15.9597770816653[/C][C]175.557547775094[/C][C]-1.19942315525601[/C][/ROW]
[ROW][C]26[/C][C]318[/C][C]372.753193421795[/C][C]-16.2617504899261[/C][C]-16.26175035456[/C][C]-0.122494099128302[/C][/ROW]
[ROW][C]27[/C][C]201[/C][C]331.302945842809[/C][C]-17.0718490548621[/C][C]-17.0718490548619[/C][C]-0.359129047889253[/C][/ROW]
[ROW][C]28[/C][C]608[/C][C]369.244820809619[/C][C]-15.3960112822708[/C][C]-15.3960112822707[/C][C]0.803927333770569[/C][/ROW]
[ROW][C]29[/C][C]43[/C][C]302.493843449414[/C][C]-16.8835004431474[/C][C]-16.8835004431474[/C][C]-0.765773714497092[/C][/ROW]
[ROW][C]30[/C][C]622[/C][C]346.102148770622[/C][C]-15.2114790923615[/C][C]-15.2114790923615[/C][C]0.917244524248058[/C][/ROW]
[ROW][C]31[/C][C]746[/C][C]403.655709210837[/C][C]-13.2858241001908[/C][C]-13.2858241001907[/C][C]1.11891522768868[/C][/ROW]
[ROW][C]32[/C][C]285[/C][C]374.96350149249[/C][C]-13.6773646315364[/C][C]-13.6773646315363[/C][C]-0.239726910574469[/C][/ROW]
[ROW][C]33[/C][C]757[/C][C]429.162505994994[/C][C]-12.0162400056723[/C][C]-12.0162400056724[/C][C]1.06688358826427[/C][/ROW]
[ROW][C]34[/C][C]861[/C][C]492.14183284799[/C][C]-10.2445078567249[/C][C]-10.244507856725[/C][C]1.18905149637025[/C][/ROW]
[ROW][C]35[/C][C]35[/C][C]410.546997525462[/C][C]-11.8753073717334[/C][C]-11.8753073717333[/C][C]-1.13978943193998[/C][/ROW]
[ROW][C]36[/C][C]267[/C][C]379.211833180078[/C][C]-12.3064792401999[/C][C]-12.3064792401999[/C][C]-0.312908945507047[/C][/ROW]
[ROW][C]37[/C][C]815[/C][C]406.78087175292[/C][C]-13.0016379975075[/C][C]143.018017715471[/C][C]0.823700986968751[/C][/ROW]
[ROW][C]38[/C][C]501[/C][C]414.361401771169[/C][C]-12.5007087160452[/C][C]-12.5007084903039[/C][C]0.312260742447803[/C][/ROW]
[ROW][C]39[/C][C]977[/C][C]500.815473810528[/C][C]-10.2120647937939[/C][C]-10.2120647937936[/C][C]1.52915914829383[/C][/ROW]
[ROW][C]40[/C][C]740[/C][C]533.729684845435[/C][C]-9.26051205094414[/C][C]-9.26051205094396[/C][C]0.676575126367348[/C][/ROW]
[ROW][C]41[/C][C]950[/C][C]595.887283932422[/C][C]-7.75173865542915[/C][C]-7.75173865542914[/C][C]1.13452782105867[/C][/ROW]
[ROW][C]42[/C][C]616[/C][C]593.93091110045[/C][C]-7.63412139810453[/C][C]-7.63412139810466[/C][C]0.0930308931766347[/C][/ROW]
[ROW][C]43[/C][C]848[/C][C]629.775652526437[/C][C]-6.78383420404864[/C][C]-6.78383420404853[/C][C]0.704124047753677[/C][/ROW]
[ROW][C]44[/C][C]770[/C][C]647.651221695587[/C][C]-6.31785595321795[/C][C]-6.31785595321795[/C][C]0.402347780858786[/C][/ROW]
[ROW][C]45[/C][C]887[/C][C]681.504281143067[/C][C]-5.58254683337235[/C][C]-5.58254683337236[/C][C]0.659645203793752[/C][/ROW]
[ROW][C]46[/C][C]808[/C][C]697.758220686799[/C][C]-5.19449994117185[/C][C]-5.19449994117192[/C][C]0.360560435466249[/C][/ROW]
[ROW][C]47[/C][C]326[/C][C]635.489178837268[/C][C]-6.18112513165607[/C][C]-6.18112513165598[/C][C]-0.946933096574282[/C][/ROW]
[ROW][C]48[/C][C]932[/C][C]677.906853671835[/C][C]-5.36244430960655[/C][C]-5.36244430960659[/C][C]0.80969840757137[/C][/ROW]
[ROW][C]49[/C][C]649[/C][C]661.684483622003[/C][C]-5.22672073628285[/C][C]57.4939277881314[/C][C]-0.217677151361998[/C][/ROW]
[ROW][C]50[/C][C]916[/C][C]699.896310994554[/C][C]-4.40374000100629[/C][C]-4.40373975978551[/C][C]0.691109544151941[/C][/ROW]
[ROW][C]51[/C][C]857[/C][C]722.392602919211[/C][C]-3.91747738658874[/C][C]-3.91747738658839[/C][C]0.433614143594353[/C][/ROW]
[ROW][C]52[/C][C]894[/C][C]747.286577142846[/C][C]-3.41865360070071[/C][C]-3.41865360070051[/C][C]0.469462564927615[/C][/ROW]
[ROW][C]53[/C][C]418[/C][C]692.513776050799[/C][C]-4.27324179102809[/C][C]-4.273241791028[/C][C]-0.84432119135364[/C][/ROW]
[ROW][C]54[/C][C]464[/C][C]653.445621530474[/C][C]-4.83158672494424[/C][C]-4.83158672494443[/C][C]-0.57638564602911[/C][/ROW]
[ROW][C]55[/C][C]477[/C][C]622.383264907771[/C][C]-5.2386675113644[/C][C]-5.23866751136427[/C][C]-0.437285520869377[/C][/ROW]
[ROW][C]56[/C][C]340[/C][C]574.589108565301[/C][C]-5.87908079950583[/C][C]-5.87908079950584[/C][C]-0.713269556555522[/C][/ROW]
[ROW][C]57[/C][C]327[/C][C]531.95483082135[/C][C]-6.41672224546272[/C][C]-6.41672224546273[/C][C]-0.618905130345706[/C][/ROW]
[ROW][C]58[/C][C]776[/C][C]565.429335008147[/C][C]-5.84833513489547[/C][C]-5.84833513489553[/C][C]0.674393557360561[/C][/ROW]
[ROW][C]59[/C][C]192[/C][C]503.582622778907[/C][C]-6.62701163798682[/C][C]-6.6270116379867[/C][C]-0.949978821577287[/C][/ROW]
[ROW][C]60[/C][C]819[/C][C]547.696666333649[/C][C]-5.93727181347852[/C][C]-5.93727181347855[/C][C]0.863398166868303[/C][/ROW]
[ROW][C]61[/C][C]323[/C][C]503.701292498968[/C][C]-5.56670205559422[/C][C]61.2337224716252[/C][C]-0.749830883906042[/C][/ROW]
[ROW][C]62[/C][C]39[/C][C]425.642197897141[/C][C]-6.69129166700592[/C][C]-6.69129140694704[/C][C]-1.18737154705147[/C][/ROW]
[ROW][C]63[/C][C]207[/C][C]386.444103772255[/C][C]-7.17366894519414[/C][C]-7.17366894519378[/C][C]-0.537847153753431[/C][/ROW]
[ROW][C]64[/C][C]614[/C][C]417.291080854246[/C][C]-6.63193025767073[/C][C]-6.63193025767083[/C][C]0.634358698285226[/C][/ROW]
[ROW][C]65[/C][C]520[/C][C]428.772110710856[/C][C]-6.38325365876926[/C][C]-6.38325365876929[/C][C]0.30431928685316[/C][/ROW]
[ROW][C]66[/C][C]801[/C][C]482.200341263759[/C][C]-5.58949151554921[/C][C]-5.58949151554926[/C][C]1.01079272981744[/C][/ROW]
[ROW][C]67[/C][C]92[/C][C]417.990560932672[/C][C]-6.34366069017282[/C][C]-6.34366069017269[/C][C]-0.995563201542281[/C][/ROW]
[ROW][C]68[/C][C]747[/C][C]464.293492622501[/C][C]-5.68534349695848[/C][C]-5.68534349695849[/C][C]0.89787042813837[/C][/ROW]
[ROW][C]69[/C][C]412[/C][C]452.323539293134[/C][C]-5.76190277556422[/C][C]-5.76190277556423[/C][C]-0.107567628715809[/C][/ROW]
[ROW][C]70[/C][C]570[/C][C]466.347549748135[/C][C]-5.52659819465074[/C][C]-5.52659819465079[/C][C]0.339705909583606[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299452&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299452&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Structural Time Series Model -- Interpolation
tObservedLevelSlopeSeasonalStand. Residuals
1876876000
280739.438749195005-33.3220206605988-33.3220205348117-2.01923066414354
324921087.5830639368438.101825435729338.10182543572954.50939248034477
4529979.97330393283415.869993164405715.8699931644059-1.5570452125706
5606899.7059632356523.473081648206413.47308164820645-0.993162821793446
6164727.0908317746-16.2007259784725-16.2007259784725-1.8228229709314
7138580.922619187341-29.0138563473428-29.0138563473428-1.37296834332832
8601569.724252555796-27.4420240817724-27.44202408177240.193698476976906
9789603.186144293527-22.5784647928153-22.57846479281530.683666790610218
10146491.517914956846-29.0780586781537-29.0780586781537-1.03278837238338
11218417.080997875086-32.1250814214804-32.1250814214804-0.54235916812559
12939505.391078170931-24.6255953456375-24.62559534563751.48237174917282
13980500.007986159133-26.3892987025275290.2822854923940.595319183140863
14610510.88694443126-24.2367947376862-24.23679453976620.405283623316625
15583512.674740060703-22.845765358367-22.84576535836680.303173884835969
16432482.623271389128-23.2041060878576-23.2041060878573-0.0885846930375662
17558483.580241122641-22.0805699488624-22.08056994886240.310072275567726
18281431.018762050732-23.4121881220843-23.4121881220845-0.405073326121314
19139361.609892540563-25.3081488707346-25.3081488707345-0.629104030930546
20778422.070482720478-21.9593146145478-21.95931461454781.20155925323065
21517425.158292189384-21.0296182158756-21.02961821587560.35806642663742
22609444.260310192411-19.6089255308014-19.60892553080150.583687924108384
23344413.949137626832-19.9713304610657-19.9713304610656-0.157981544109141
24809469.374910523672-17.522657185651-17.5226571856511.12737161976886
25188397.569526318746-15.9597770816653175.557547775094-1.19942315525601
26318372.753193421795-16.2617504899261-16.26175035456-0.122494099128302
27201331.302945842809-17.0718490548621-17.0718490548619-0.359129047889253
28608369.244820809619-15.3960112822708-15.39601128227070.803927333770569
2943302.493843449414-16.8835004431474-16.8835004431474-0.765773714497092
30622346.102148770622-15.2114790923615-15.21147909236150.917244524248058
31746403.655709210837-13.2858241001908-13.28582410019071.11891522768868
32285374.96350149249-13.6773646315364-13.6773646315363-0.239726910574469
33757429.162505994994-12.0162400056723-12.01624000567241.06688358826427
34861492.14183284799-10.2445078567249-10.2445078567251.18905149637025
3535410.546997525462-11.8753073717334-11.8753073717333-1.13978943193998
36267379.211833180078-12.3064792401999-12.3064792401999-0.312908945507047
37815406.78087175292-13.0016379975075143.0180177154710.823700986968751
38501414.361401771169-12.5007087160452-12.50070849030390.312260742447803
39977500.815473810528-10.2120647937939-10.21206479379361.52915914829383
40740533.729684845435-9.26051205094414-9.260512050943960.676575126367348
41950595.887283932422-7.75173865542915-7.751738655429141.13452782105867
42616593.93091110045-7.63412139810453-7.634121398104660.0930308931766347
43848629.775652526437-6.78383420404864-6.783834204048530.704124047753677
44770647.651221695587-6.31785595321795-6.317855953217950.402347780858786
45887681.504281143067-5.58254683337235-5.582546833372360.659645203793752
46808697.758220686799-5.19449994117185-5.194499941171920.360560435466249
47326635.489178837268-6.18112513165607-6.18112513165598-0.946933096574282
48932677.906853671835-5.36244430960655-5.362444309606590.80969840757137
49649661.684483622003-5.2267207362828557.4939277881314-0.217677151361998
50916699.896310994554-4.40374000100629-4.403739759785510.691109544151941
51857722.392602919211-3.91747738658874-3.917477386588390.433614143594353
52894747.286577142846-3.41865360070071-3.418653600700510.469462564927615
53418692.513776050799-4.27324179102809-4.273241791028-0.84432119135364
54464653.445621530474-4.83158672494424-4.83158672494443-0.57638564602911
55477622.383264907771-5.2386675113644-5.23866751136427-0.437285520869377
56340574.589108565301-5.87908079950583-5.87908079950584-0.713269556555522
57327531.95483082135-6.41672224546272-6.41672224546273-0.618905130345706
58776565.429335008147-5.84833513489547-5.848335134895530.674393557360561
59192503.582622778907-6.62701163798682-6.6270116379867-0.949978821577287
60819547.696666333649-5.93727181347852-5.937271813478550.863398166868303
61323503.701292498968-5.5667020555942261.2337224716252-0.749830883906042
6239425.642197897141-6.69129166700592-6.69129140694704-1.18737154705147
63207386.444103772255-7.17366894519414-7.17366894519378-0.537847153753431
64614417.291080854246-6.63193025767073-6.631930257670830.634358698285226
65520428.772110710856-6.38325365876926-6.383253658769290.30431928685316
66801482.200341263759-5.58949151554921-5.589491515549261.01079272981744
6792417.990560932672-6.34366069017282-6.34366069017269-0.995563201542281
68747464.293492622501-5.68534349695848-5.685343496958490.89787042813837
69412452.323539293134-5.76190277556422-5.76190277556423-0.107567628715809
70570466.347549748135-5.52659819465074-5.526598194650790.339705909583606







Structural Time Series Model -- Extrapolation
tObservedLevelSeasonal
1134.948058300343433.291195736969-298.343137436626
2723.514426809191403.976852637933319.537574171258
3356.198016437138374.662509538897-18.464493101759
4204.620106319156345.348166439861-140.728060120705
5294.436058057723316.033823340825-21.5977652831019
6495.972674517191286.719480241789209.253194275402
7216.872440631402257.405137142753-40.5326965113509
8402.018225819967228.090794043717173.927431776251
9-186.321520403759198.776450944681-385.09797134844
10325.4066803707169.462107845645155.944572525055
1145.6432652841833140.147764746609-94.5044994624253
12251.439272164014110.833421647572140.605850516442
13-216.8240588880981.5190785485364-298.343137436626
14371.74230962075852.2047354495003319.537574171258
154.4258992487052222.8903923504642-18.464493101759
16-147.152010869277-6.42395074857185-140.728060120705
17-57.3360591307099-35.7382938476079-21.5977652831019
18144.200557328758-65.052636946644209.253194275402

\begin{tabular}{lllllllll}
\hline
Structural Time Series Model -- Extrapolation \tabularnewline
t & Observed & Level & Seasonal \tabularnewline
1 & 134.948058300343 & 433.291195736969 & -298.343137436626 \tabularnewline
2 & 723.514426809191 & 403.976852637933 & 319.537574171258 \tabularnewline
3 & 356.198016437138 & 374.662509538897 & -18.464493101759 \tabularnewline
4 & 204.620106319156 & 345.348166439861 & -140.728060120705 \tabularnewline
5 & 294.436058057723 & 316.033823340825 & -21.5977652831019 \tabularnewline
6 & 495.972674517191 & 286.719480241789 & 209.253194275402 \tabularnewline
7 & 216.872440631402 & 257.405137142753 & -40.5326965113509 \tabularnewline
8 & 402.018225819967 & 228.090794043717 & 173.927431776251 \tabularnewline
9 & -186.321520403759 & 198.776450944681 & -385.09797134844 \tabularnewline
10 & 325.4066803707 & 169.462107845645 & 155.944572525055 \tabularnewline
11 & 45.6432652841833 & 140.147764746609 & -94.5044994624253 \tabularnewline
12 & 251.439272164014 & 110.833421647572 & 140.605850516442 \tabularnewline
13 & -216.82405888809 & 81.5190785485364 & -298.343137436626 \tabularnewline
14 & 371.742309620758 & 52.2047354495003 & 319.537574171258 \tabularnewline
15 & 4.42589924870522 & 22.8903923504642 & -18.464493101759 \tabularnewline
16 & -147.152010869277 & -6.42395074857185 & -140.728060120705 \tabularnewline
17 & -57.3360591307099 & -35.7382938476079 & -21.5977652831019 \tabularnewline
18 & 144.200557328758 & -65.052636946644 & 209.253194275402 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299452&T=2

[TABLE]
[ROW][C]Structural Time Series Model -- Extrapolation[/C][/ROW]
[ROW][C]t[/C][C]Observed[/C][C]Level[/C][C]Seasonal[/C][/ROW]
[ROW][C]1[/C][C]134.948058300343[/C][C]433.291195736969[/C][C]-298.343137436626[/C][/ROW]
[ROW][C]2[/C][C]723.514426809191[/C][C]403.976852637933[/C][C]319.537574171258[/C][/ROW]
[ROW][C]3[/C][C]356.198016437138[/C][C]374.662509538897[/C][C]-18.464493101759[/C][/ROW]
[ROW][C]4[/C][C]204.620106319156[/C][C]345.348166439861[/C][C]-140.728060120705[/C][/ROW]
[ROW][C]5[/C][C]294.436058057723[/C][C]316.033823340825[/C][C]-21.5977652831019[/C][/ROW]
[ROW][C]6[/C][C]495.972674517191[/C][C]286.719480241789[/C][C]209.253194275402[/C][/ROW]
[ROW][C]7[/C][C]216.872440631402[/C][C]257.405137142753[/C][C]-40.5326965113509[/C][/ROW]
[ROW][C]8[/C][C]402.018225819967[/C][C]228.090794043717[/C][C]173.927431776251[/C][/ROW]
[ROW][C]9[/C][C]-186.321520403759[/C][C]198.776450944681[/C][C]-385.09797134844[/C][/ROW]
[ROW][C]10[/C][C]325.4066803707[/C][C]169.462107845645[/C][C]155.944572525055[/C][/ROW]
[ROW][C]11[/C][C]45.6432652841833[/C][C]140.147764746609[/C][C]-94.5044994624253[/C][/ROW]
[ROW][C]12[/C][C]251.439272164014[/C][C]110.833421647572[/C][C]140.605850516442[/C][/ROW]
[ROW][C]13[/C][C]-216.82405888809[/C][C]81.5190785485364[/C][C]-298.343137436626[/C][/ROW]
[ROW][C]14[/C][C]371.742309620758[/C][C]52.2047354495003[/C][C]319.537574171258[/C][/ROW]
[ROW][C]15[/C][C]4.42589924870522[/C][C]22.8903923504642[/C][C]-18.464493101759[/C][/ROW]
[ROW][C]16[/C][C]-147.152010869277[/C][C]-6.42395074857185[/C][C]-140.728060120705[/C][/ROW]
[ROW][C]17[/C][C]-57.3360591307099[/C][C]-35.7382938476079[/C][C]-21.5977652831019[/C][/ROW]
[ROW][C]18[/C][C]144.200557328758[/C][C]-65.052636946644[/C][C]209.253194275402[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299452&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299452&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Structural Time Series Model -- Extrapolation
tObservedLevelSeasonal
1134.948058300343433.291195736969-298.343137436626
2723.514426809191403.976852637933319.537574171258
3356.198016437138374.662509538897-18.464493101759
4204.620106319156345.348166439861-140.728060120705
5294.436058057723316.033823340825-21.5977652831019
6495.972674517191286.719480241789209.253194275402
7216.872440631402257.405137142753-40.5326965113509
8402.018225819967228.090794043717173.927431776251
9-186.321520403759198.776450944681-385.09797134844
10325.4066803707169.462107845645155.944572525055
1145.6432652841833140.147764746609-94.5044994624253
12251.439272164014110.833421647572140.605850516442
13-216.8240588880981.5190785485364-298.343137436626
14371.74230962075852.2047354495003319.537574171258
154.4258992487052222.8903923504642-18.464493101759
16-147.152010869277-6.42395074857185-140.728060120705
17-57.3360591307099-35.7382938476079-21.5977652831019
18144.200557328758-65.052636946644209.253194275402



Parameters (Session):
par1 = 12 ; par2 = 18 ; par3 = BFGS ;
Parameters (R input):
par1 = 12 ; par2 = 18 ; par3 = BFGS ;
R code (references can be found in the software module):
require('stsm')
require('stsm.class')
require('KFKSDS')
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
nx <- length(x)
x <- ts(x,frequency=par1)
m <- StructTS(x,type='BSM')
print(m$coef)
print(m$fitted)
print(m$resid)
mylevel <- as.numeric(m$fitted[,'level'])
myslope <- as.numeric(m$fitted[,'slope'])
myseas <- as.numeric(m$fitted[,'sea'])
myresid <- as.numeric(m$resid)
myfit <- mylevel+myseas
mm <- stsm.model(model = 'BSM', y = x, transPars = 'StructTS')
fit2 <- stsmFit(mm, stsm.method = 'maxlik.td.optim', method = par3, KF.args = list(P0cov = TRUE))
(fit2.comps <- tsSmooth(fit2, P0cov = FALSE)$states)
m2 <- set.pars(mm, pmax(fit2$par, .Machine$double.eps))
(ss <- char2numeric(m2))
(pred <- predict(ss, x, n.ahead = par2))
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(mylevel,na.action=na.pass,lag.max = mylagmax,main='Level')
acf(myseas,na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(myresid,na.action=na.pass,lag.max = mylagmax,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(mylevel,main='Level')
spectrum(myseas,main='Seasonal')
spectrum(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(mylevel,main='Level')
cpgram(myseas,main='Seasonal')
cpgram(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test1.png')
plot(as.numeric(m$resid),main='Standardized Residuals',ylab='Residuals',xlab='time',type='b')
grid()
dev.off()
bitmap(file='test5.png')
op <- par(mfrow = c(2,2))
hist(m$resid,main='Residual Histogram')
plot(density(m$resid),main='Residual Kernel Density')
qqnorm(m$resid,main='Residual Normal QQ Plot')
qqline(m$resid)
plot(m$resid^2, myfit^2,main='Sq.Resid vs. Sq.Fit',xlab='Squared residuals',ylab='Squared Fit')
par(op)
dev.off()
bitmap(file='test6.png')
par(mfrow = c(3,1), mar = c(3,3,3,3))
plot(cbind(x, pred$pred), type = 'n', plot.type = 'single', ylab = '')
lines(x)
polygon(c(time(pred$pred), rev(time(pred$pred))), c(pred$pred + 2 * pred$se, rev(pred$pred)), col = 'gray85', border = NA)
polygon(c(time(pred$pred), rev(time(pred$pred))), c(pred$pred - 2 * pred$se, rev(pred$pred)), col = ' gray85', border = NA)
lines(pred$pred, col = 'blue', lwd = 1.5)
mtext(text = 'forecasts of the observed series', side = 3, adj = 0)
plot(cbind(x, pred$a[,1]), type = 'n', plot.type = 'single', ylab = '')
lines(x)
polygon(c(time(pred$a[,1]), rev(time(pred$a[,1]))), c(pred$a[,1] + 2 * sqrt(pred$P[,1]), rev(pred$a[,1])), col = 'gray85', border = NA)
polygon(c(time(pred$a[,1]), rev(time(pred$a[,1]))), c(pred$a[,1] - 2 * sqrt(pred$P[,1]), rev(pred$a[,1])), col = ' gray85', border = NA)
lines(pred$a[,1], col = 'blue', lwd = 1.5)
mtext(text = 'forecasts of the level component', side = 3, adj = 0)
plot(cbind(fit2.comps[,3], pred$a[,3]), type = 'n', plot.type = 'single', ylab = '')
lines(fit2.comps[,3])
polygon(c(time(pred$a[,3]), rev(time(pred$a[,3]))), c(pred$a[,3] + 2 * sqrt(pred$P[,3]), rev(pred$a[,3])), col = 'gray85', border = NA)
polygon(c(time(pred$a[,3]), rev(time(pred$a[,3]))), c(pred$a[,3] - 2 * sqrt(pred$P[,3]), rev(pred$a[,3])), col = ' gray85', border = NA)
lines(pred$a[,3], col = 'blue', lwd = 1.5)
mtext(text = 'forecasts of the seasonal component', side = 3, adj = 0)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Structural Time Series Model -- Interpolation',6,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,'Level',header=TRUE)
a<-table.element(a,'Slope',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Stand. Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,mylevel[i])
a<-table.element(a,myslope[i])
a<-table.element(a,myseas[i])
a<-table.element(a,myresid[i])
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,'Structural Time Series Model -- Extrapolation',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,'Level',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.row.end(a)
for (i in 1:par2) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,pred$pred[i])
a<-table.element(a,pred$a[i,1])
a<-table.element(a,pred$a[i,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')