Skip to contents

The following functions enable the access to different parts of the final model specification, as included in the "SA", "regarima", "SA_spec" and "regarima_spec" S3 class objects.

Usage

s_estimate(object = NA)

s_transform(object = NA)

s_usrdef(object = NA)

s_preOut(object = NA)

s_preVar(object = NA)

s_td(object = NA)

s_easter(object = NA)

s_out(object = NA)

s_arima(object = NA)

s_arimaCoef(object = NA)

s_fcst(object = NA)

s_span(object = NA)

s_x11(object = NA)

s_benchmarking(object = NA)

s_seats(object = NA)

Arguments

object

an object of one of the following classes: c("SA","X13"), c("SA","TRAMO_SEATS"), c("SA_spec","X13"), c("SA_spec","TRAMO_SEATS"), c("regarima","X13"), c("regarima","TRAMO_SEATS"), c("regarima_spec","X13"), c("regarima_spec","TRAMO_SEATS").

Value

  • s_estimate returns a data.frame with the estimate variables

  • s_transform returns a data.frame with the transform variables

  • s_usrdef returns a data.frame with the user-defined regressors (outliers and variables) model specification, indicating if those variables are included in the model and if coefficients are pre-specified

  • s_preOut returns a data.frame with the pre-specified outliers

  • s_preVar returns a list with information on the user-defined variables, including: series - the time series and description - data.frame with the variable type and coefficients

  • s_td returns a data.frame with the trading.days variables

  • s_easter returns a data.frame with the easter variable

  • s_out returns a data.frame with the outliers detection variables

  • s_arima returns a data.frame with the arima variables

  • s_arimaCoef returns a data.frame with the user-specified ARMA coefficients

  • s_fcst returns a data.frame with the forecast horizon

  • s_span returns a data.frame with the span variables

  • s_x11 returns a data.frame with the x11 variables

  • s_seats returns a data.frame with the seats variables

References

More information and examples related to 'JDemetra+' features in the online documentation: https://jdemetra-new-documentation.netlify.app/

Examples

# \donttest{
myseries <- ipi_c_eu[, "FR"]
myreg1 <- regarima_x13(myseries, spec = "RG5c")
myspec1 <- regarima_spec_x13(myreg1,
             estimate.from = "2005-10-01",
             outlier.from = "2010-03-01")

s_estimate(myreg1)
#>  preliminary.check span tolerance
#>               TRUE  All     1e-07
s_estimate(myspec1)
#>  preliminary.check            span tolerance
#>               TRUE From 2005-10-01     1e-07

s_transform(myreg1)
#>  tfunction adjust aicdiff
#>       Auto   None      -2
s_transform(myspec1)
#>  tfunction adjust aicdiff
#>       Auto   None      -2

s_usrdef(myreg1)
#>   outlier outlier.coef variables variables.coef
#> 1   FALSE        FALSE     FALSE          FALSE
s_usrdef(myspec1)
#>  outlier outlier.coef variables variables.coef
#>    FALSE        FALSE     FALSE          FALSE

myspec2 <- regarima_spec_x13(myreg1, usrdef.outliersEnabled = TRUE,
             usrdef.outliersType = c("LS", "AO"),
             usrdef.outliersDate = c("2009-10-01", "2005-02-01"))
myreg2 <- regarima(myseries, myspec2)

s_preOut(myreg2)
#>   type       date coeff
#> 1   LS 2009-10-01    NA
#> 2   AO 2005-02-01    NA
s_preOut(myspec2)
#>   type       date coeff
#> 1   LS 2009-10-01    NA
#> 2   AO 2005-02-01    NA

var1 <- ts(rnorm(length(myseries))*10, start = start(myseries), frequency = 12)
var2 <- ts(rnorm(length(myseries))*100, start = start(myseries), frequency = 12)
var3 <- ts.union(var1, var2)
myspec3 <- regarima_spec_x13(spec = "RG5c",
                             usrdef.varEnabled = TRUE,
                             usrdef.var = var3)
myreg3 <- regarima(myseries, myspec3)

s_preVar(myspec3)
#> $series
#>                  var1         var2
#> Jan 1990  22.81394917  -11.2629276
#> Feb 1990 -10.42285303   16.2801338
#> Mar 1990   7.12307192   55.5861006
#> Apr 1990  12.20747981   85.3394680
#> May 1990   3.36018683  -19.4899361
#> Jun 1990  -2.79147937   -4.3411909
#> Jul 1990   0.76422131  -52.9438316
#> Aug 1990  -3.54509030  -59.8510599
#> Sep 1990  14.32658547   14.9297682
#> Oct 1990   0.02671474  125.5820916
#> Nov 1990   3.44012511  -23.4369528
#> Dec 1990  -8.30323380  142.2340276
#> Jan 1991   4.82115591   29.2127542
#> Feb 1991  -6.88660369  -73.6886751
#> Mar 1991 -10.93359720  -12.9996552
#> Apr 1991   8.41060978  220.0885652
#> May 1991  14.54136238  161.3081286
#> Jun 1991   1.37240272  -26.7499583
#> Jul 1991   3.25544925   12.7603168
#> Aug 1991  12.23728019  -37.0892736
#> Sep 1991 -10.53314136  -45.2402281
#> Oct 1991  18.40332640  119.7478248
#> Nov 1991 -22.31484275   96.1339696
#> Dec 1991  -5.95844719  109.9244552
#> Jan 1992  -2.30472754    5.3534542
#> Feb 1992  17.56315261   -7.1082557
#> Mar 1992   4.75705566  -26.5212622
#> Apr 1992   7.82644366 -108.7472787
#> May 1992 -11.46245649   11.2995341
#> Jun 1992   9.50180682  -36.8761608
#> Jul 1992  -3.45227990 -181.3818422
#> Aug 1992 -24.73551488  -72.7994368
#> Sep 1992  13.76264164  -32.3343456
#> Oct 1992  24.77145067   11.8178061
#> Nov 1992 -13.37234198   52.2721179
#> Dec 1992  20.24155203  -39.4712044
#> Jan 1993   8.59593181  -73.8262361
#> Feb 1993   7.28471344  131.9700103
#> Mar 1993  17.02971138  -54.7717472
#> Apr 1993 -13.49671966  211.6530743
#> May 1993   0.85960972   23.8889683
#> Jun 1993   2.04207089  -51.5969374
#> Jul 1993  -9.79050445  115.8752180
#> Aug 1993   5.94650797  -63.4357812
#> Sep 1993  10.39317096   86.2710827
#> Oct 1993 -12.78834279 -168.1573026
#> Nov 1993  -3.19978820 -163.6792119
#> Dec 1993 -18.72828606  143.0290161
#> Jan 1994   0.91322657  153.9376495
#> Feb 1994   7.12363770   -7.7210862
#> Mar 1994  -1.10119494   72.2232423
#> Apr 1994 -10.51575816   76.2012389
#> May 1994  -8.91401342 -110.5216744
#> Jun 1994  -6.19138043 -146.1168585
#> Jul 1994   2.55199046   29.5561895
#> Aug 1994  -4.39315917   65.8526506
#> Sep 1994  14.68149212   64.5142725
#> Oct 1994   8.32506126   62.3653458
#> Nov 1994  -9.13787407  231.5849301
#> Dec 1994  -2.72595426  -38.1598877
#> Jan 1995   7.51086555    3.1688164
#> Feb 1995  -0.76856255   77.6625400
#> Mar 1995   1.47101528 -198.3047831
#> Apr 1995  -3.21238201   -0.5446710
#> May 1995 -17.03140073   70.2411713
#> Jun 1995  -7.61038444  122.3164016
#> Jul 1995  -7.59025393  -14.1397453
#> Aug 1995   2.92608648  -49.5379010
#> Sep 1995   3.32236386   84.0522626
#> Oct 1995  -2.31934768   56.0050141
#> Nov 1995  -8.15807168  113.7045939
#> Dec 1995   2.16074797   47.3801310
#> Jan 1996 -11.38865785  -15.0440355
#> Feb 1996   1.40105007  213.8995235
#> Mar 1996  -6.62133906   21.7996549
#> Apr 1996  -5.34391766 -189.5969181
#> May 1996 -14.12830881  -14.2738393
#> Jun 1996  12.17203500  146.2425734
#> Jul 1996   4.25531888  107.4657122
#> Aug 1996  -1.20928613   65.5056672
#> Sep 1996   6.51430723  -12.3133658
#> Oct 1996   4.90205565  -92.9721805
#> Nov 1996   7.05192456  151.6556529
#> Dec 1996   8.05650671   -7.6792959
#> Jan 1997  -1.79990583  -36.9791935
#> Feb 1997  10.72861877   60.6232668
#> Mar 1997  -0.82523465  152.6737997
#> Apr 1997  10.72598758   -8.1510851
#> May 1997  -0.02079741  142.8358850
#> Jun 1997  -8.59905321  101.3571835
#> Jul 1997   7.48074130  -67.6577827
#> Aug 1997  13.56515448  -23.6565665
#> Sep 1997   4.00001599   50.5599115
#> Oct 1997   6.36256611 -252.7752928
#> Nov 1997 -18.66035907  -70.0668673
#> Dec 1997  -5.80927235    9.1607577
#> Jan 1998  10.93896134   85.2173585
#> Feb 1998  -5.32691097  112.3909322
#> Mar 1998   6.83984092   82.7869298
#> Apr 1998  -6.84263667 -136.8112810
#> May 1998  16.25943271   18.9759677
#> Jun 1998  -6.31734454  196.0755931
#> Jul 1998 -13.53779986  -80.6017715
#> Aug 1998   3.87122228   24.7350268
#> Sep 1998  -9.67667515   50.7828231
#> Oct 1998  -3.58785321  -49.5801751
#> Nov 1998  -5.86397434  -90.2102368
#> Dec 1998  16.12913478  101.2532538
#> Jan 1999   5.05671343  163.6540567
#> Feb 1999   0.24106090  -82.5520511
#> Mar 1999   2.95359647 -130.1284005
#> Apr 1999  12.75350360  -48.4042607
#> May 1999   2.04477180  -19.1561941
#> Jun 1999   1.86747913 -120.3991350
#> Jul 1999   7.09749842 -155.4565833
#> Aug 1999   3.75846729  -14.9289700
#> Sep 1999   4.05413237  -98.8248953
#> Oct 1999   3.30985753 -130.0530931
#> Nov 1999  15.93760511   76.4001921
#> Dec 1999   5.55075757  -76.4220023
#> Jan 2000 -12.09478318  105.9842219
#> Feb 2000  -2.25557951   57.4400444
#> Mar 2000  -3.42381835  145.4354816
#> Apr 2000 -17.36559496  192.6606505
#> May 2000   1.63560903   37.7693133
#> Jun 2000   2.98293513   45.7817317
#> Jul 2000   1.75870029  -31.4478166
#> Aug 2000 -14.05601011  -19.6337224
#> Sep 2000  -2.15255891   53.2207247
#> Oct 2000  -5.02680266 -129.6930815
#> Nov 2000  16.83881702  -11.6459881
#> Dec 2000 -17.25036625 -179.1435814
#> Jan 2001  -2.52554758  103.7638450
#> Feb 2001 -16.04868007  -75.1737315
#> Mar 2001  11.53376302  144.3320207
#> Apr 2001 -12.66363058   73.4189087
#> May 2001  -2.50127880 -105.4557986
#> Jun 2001  -5.38988584    3.0424727
#> Jul 2001  -6.11159385  -62.0591656
#> Aug 2001   8.07837347  -19.3502015
#> Sep 2001  13.57967557   39.3606874
#> Oct 2001  10.00928446   -3.3226158
#> Nov 2001 -12.58705305  -52.8722573
#> Dec 2001 -13.95429138  307.1007147
#> Jan 2002   3.26775093 -142.4723774
#> Feb 2002  -5.66269784   33.0701264
#> Mar 2002  -0.40093207 -175.9479023
#> Apr 2002  10.07425936 -101.6384201
#> May 2002 -13.73520862  103.6862040
#> Jun 2002   3.30858231    3.4712279
#> Jul 2002  11.43623543 -169.3691356
#> Aug 2002 -13.81713624  -37.4082127
#> Sep 2002  -8.44069552 -125.8362453
#> Oct 2002 -18.36583479  -60.8105630
#> Nov 2002  10.44170831 -136.8707861
#> Dec 2002   2.15210107  -94.2163446
#> Jan 2003   8.00349614   73.9857730
#> Feb 2003   7.14933031    2.2094341
#> Mar 2003  -3.17171209   54.8882732
#> Apr 2003 -22.52045124 -135.0698058
#> May 2003  15.05248197  -64.4467633
#> Jun 2003  -4.19147872  104.7844734
#> Jul 2003  -2.08179987  -32.1393364
#> Aug 2003  10.25008622    3.4325883
#> Sep 2003 -21.09352248  106.3948370
#> Oct 2003   5.81155983 -158.7608154
#> Nov 2003   4.27476044 -158.3462404
#> Dec 2003   3.09712183   11.0531327
#> Jan 2004  -3.48680801   24.6298837
#> Feb 2004   4.72684011    5.7149917
#> Mar 2004   7.02742649 -108.3303495
#> Apr 2004 -15.43797498   21.6301111
#> May 2004 -11.39419424  -82.3685525
#> Jun 2004   3.70802634 -150.0780397
#> Jul 2004   2.49291812  122.6567010
#> Aug 2004  12.40415284  -21.5867461
#> Sep 2004  -3.71594045  173.3784762
#> Oct 2004   9.08843016 -143.2535684
#> Nov 2004   7.72073385  -17.6478952
#> Dec 2004   3.66647135   75.6314868
#> Jan 2005   2.34063054  -98.0007712
#> Feb 2005  -8.24637494  -38.6424379
#> Mar 2005   7.93613760   38.1516254
#> Apr 2005   8.15375576  134.5768539
#> May 2005  -6.40412559   98.3748677
#> Jun 2005   1.54668564    8.6637298
#> Jul 2005 -13.19062104   46.9669925
#> Aug 2005  -5.59444239  -89.2900170
#> Sep 2005 -12.78683713    0.2229617
#> Oct 2005  -1.61854635   15.0747679
#> Nov 2005 -12.12698055  -57.4554552
#> Dec 2005  13.71345622   23.5160435
#> Jan 2006   0.82627704  126.5858408
#> Feb 2006 -12.65853773 -139.0298039
#> Mar 2006  11.74275795   11.5795724
#> Apr 2006   6.95991675   89.2577296
#> May 2006   8.00070376    3.8752879
#> Jun 2006 -10.02196891   -3.8372698
#> Jul 2006  -6.77115667   81.1453346
#> Aug 2006   7.20963599    3.3486905
#> Sep 2006   9.60168144   66.3318866
#> Oct 2006  -1.45665667  -22.0091795
#> Nov 2006  15.05255540   -1.5736545
#> Dec 2006   6.78180406  208.7713501
#> Jan 2007  -2.65552196  149.6586647
#> Feb 2007  -4.58132537  -30.9764025
#> Mar 2007  17.38431533  158.4290933
#> Apr 2007  -0.13105949 -114.7278380
#> May 2007  -7.94353354   93.7994138
#> Jun 2007   2.55333393 -117.6473378
#> Jul 2007  -8.78777648  140.2133012
#> Aug 2007  -5.02384014  -17.7175377
#> Sep 2007   9.18235108  -65.0604263
#> Oct 2007  -4.15556110 -122.9364408
#> Nov 2007  -4.97454127   25.1325895
#> Dec 2007   1.22983974 -156.3215351
#> Jan 2008  -9.94093841   81.3079991
#> Feb 2008   4.85937859  -11.0848678
#> Mar 2008  -5.51041758  -76.1172061
#> Apr 2008   1.66600822   82.9512582
#> May 2008   0.95564919 -105.5171964
#> Jun 2008   9.37361737   22.2967963
#> Jul 2008  -7.78592244  244.1195038
#> Aug 2008  -3.46014963  200.0641700
#> Sep 2008   1.45927947  -75.4805825
#> Oct 2008  -6.79378277 -130.3238961
#> Nov 2008  -6.13698253   24.6026158
#> Dec 2008  22.02935147   54.8893707
#> Jan 2009  -3.28772531   48.6414289
#> Feb 2009  17.51776850  -85.7244463
#> Mar 2009  -9.71651737  -20.8889627
#> Apr 2009 -16.89546894   -2.1828351
#> May 2009 -14.81386178   37.1728862
#> Jun 2009  24.26894783 -230.0614875
#> Jul 2009  -2.28460020  -68.6391490
#> Aug 2009  11.13283521   82.3954712
#> Sep 2009  -4.37063852   67.1560953
#> Oct 2009  12.64884610  -13.6811085
#> Nov 2009  14.36597731  -32.4855419
#> Dec 2009  -9.18664322  116.5364420
#> Jan 2010 -19.14602512  -90.3741440
#> Feb 2010   1.14969531   98.5612115
#> Mar 2010  15.10348121  -12.6323527
#> Apr 2010  -0.09052613 -144.3967173
#> May 2010  -1.35856744    3.2154077
#> Jun 2010  -3.36250668 -211.7716447
#> Jul 2010   3.57796527  166.5816928
#> Aug 2010   3.40498580   57.5671055
#> Sep 2010  30.97230704   -0.2235961
#> Oct 2010   6.77352741  -72.2014992
#> Nov 2010   3.85994964   44.8672361
#> Dec 2010  -8.38842632    5.1736240
#> Jan 2011  -5.30027590 -125.3649454
#> Feb 2011 -22.93182084   55.8374959
#> Mar 2011  18.55263642   29.8702402
#> Apr 2011  -6.24714964  -41.5528828
#> May 2011   1.75872582 -162.5374469
#> Jun 2011 -13.65788853   29.9647475
#> Jul 2011 -13.45518474  -14.6007948
#> Aug 2011   9.47265271   33.0470436
#> Sep 2011  -1.15739671  -34.4358479
#> Oct 2011  -4.29404494   89.1762344
#> Nov 2011   0.79631976  -13.6294335
#> Dec 2011  10.06463994   28.1191185
#> Jan 2012  17.54518747  -11.0812460
#> Feb 2012  -1.19361311   -3.6247432
#> Mar 2012  16.43998625    2.4977216
#> Apr 2012 -13.10997765   13.1053564
#> May 2012   3.62701424  259.5523922
#> Jun 2012  13.69665491   41.9283992
#> Jul 2012  -3.48512400  -28.1698421
#> Aug 2012  -5.45470652   54.4863114
#> Sep 2012  -0.20519678   86.8230689
#> Oct 2012  -3.38849889  -20.6675268
#> Nov 2012   1.85592100    7.4947320
#> Dec 2012   3.45862657 -225.0901330
#> Jan 2013  -7.93332374  150.0961160
#> Feb 2013  -7.48631612  -48.2768943
#> Mar 2013 -18.46666644   60.5210639
#> Apr 2013 -15.56824415   80.0685483
#> May 2013   0.02354941   31.8362191
#> Jun 2013  14.70206284   10.3472107
#> Jul 2013  -7.77484495  -65.7636600
#> Aug 2013   7.04613433    3.3874701
#> Sep 2013   6.96606398  -64.9756559
#> Oct 2013   9.31972929   91.1239650
#> Nov 2013  26.16178688   -4.7272921
#> Dec 2013 -14.77492275 -117.8515013
#> Jan 2014   0.74677229  224.2660967
#> Feb 2014  -6.40770175  146.7485607
#> Mar 2014   1.14925465   55.2061735
#> Apr 2014   7.47021300   35.9622515
#> May 2014 -11.18479256  183.7521669
#> Jun 2014   3.41004819   88.3273304
#> Jul 2014   1.25031186 -171.3201462
#> Aug 2014   3.11369721   29.3728600
#> Sep 2014   4.26443804  133.0807535
#> Oct 2014 -12.69579318    0.1025496
#> Nov 2014   8.69811052   94.4012124
#> Dec 2014  -0.23574630  -16.3110155
#> Jan 2015   6.46068260    2.0936334
#> Feb 2015  12.32672999   55.1059233
#> Mar 2015 -12.80410543   75.4814726
#> Apr 2015  -1.76086170 -101.7904646
#> May 2015  11.48912321  -32.0525550
#> Jun 2015   1.06409425  -45.7239570
#> Jul 2015  10.52599358 -216.8675688
#> Aug 2015   0.63508668    6.6409650
#> Sep 2015   7.60288668  151.3114967
#> Oct 2015  -5.83391234   24.2563643
#> Nov 2015  -8.33176971   19.6097401
#> Dec 2015  -9.55279258  -65.6023781
#> Jan 2016   4.68197456  -47.8355050
#> Feb 2016  14.89361598   56.8878744
#> Mar 2016   8.45637803 -210.2626810
#> Apr 2016  -0.90330359   -0.3301496
#> May 2016  -7.60974092   41.6918015
#> Jun 2016  -4.22703485   47.3867599
#> Jul 2016 -11.16990551   -6.2925119
#> Aug 2016 -13.73205437 -163.6219349
#> Sep 2016  -4.64627202  116.8229652
#> Oct 2016  -7.51982369  -40.8686195
#> Nov 2016  -4.07974543   -9.4117059
#> Dec 2016   1.77182569   46.7589309
#> Jan 2017   9.99326344  -82.8195377
#> Feb 2017   1.16269256   39.6813229
#> Mar 2017 -18.35065315   24.4475509
#> Apr 2017  -2.98695682   62.7437586
#> May 2017   3.14652720  -80.5206472
#> Jun 2017 -10.82466160 -193.2053070
#> Jul 2017   2.21793014   71.7082011
#> Aug 2017  -0.49851303  179.2486559
#> Sep 2017  11.07534869  112.3194865
#> Oct 2017  -9.93360619  160.9947684
#> Nov 2017  19.24843474  173.2799496
#> Dec 2017  -5.56762404  127.5703717
#> Jan 2018   3.29474662   42.4007988
#> Feb 2018  17.58286351  -13.7778131
#> Mar 2018  12.73909790  -59.7937324
#> Apr 2018  -5.83885195  -72.2073272
#> May 2018  -3.27692378    7.2762483
#> Jun 2018   1.45241262  147.3362511
#> Jul 2018   2.14101138  -31.6206077
#> Aug 2018   0.11554669 -141.4721408
#> Sep 2018  12.19699084 -198.6179040
#> Oct 2018 -10.30643641   70.5734028
#> Nov 2018   7.64734975  -79.0427631
#> Dec 2018  -5.14982604   75.8480158
#> Jan 2019  17.40986972  207.8375621
#> Feb 2019  10.05845241  191.9134900
#> Mar 2019 -11.07352945    7.5529822
#> Apr 2019  -6.27882790   26.7751527
#> May 2019 -14.79501948   43.6290736
#> Jun 2019   1.54343173  120.9748781
#> Jul 2019 -22.99484409 -125.3055561
#> Aug 2019  -4.38727684  176.5028630
#> Sep 2019  -6.49680607  -15.9322027
#> Oct 2019   4.24040947   89.8874217
#> Nov 2019   0.47049728  -70.4995332
#> Dec 2019 -12.85044066  112.6896570
#> Jan 2020   0.45532358 -197.4322214
#> Feb 2020 -14.49429700 -124.4772830
#> Mar 2020 -16.33704403  103.1250388
#> Apr 2020  -5.17284962   57.9097050
#> May 2020  -9.91151430 -103.7890010
#> Jun 2020  -7.28485045  156.1622325
#> Jul 2020   4.51951634   10.1959622
#> Aug 2020   8.87181335  232.4238302
#> Sep 2020  12.64573401  232.5851550
#> Oct 2020 -12.91419391 -129.3149956
#> Nov 2020   1.82510306   -4.5018855
#> Dec 2020  -0.89809675   19.5694234
#> 
#> $description
#>           type coeff
#> var1 Undefined    NA
#> var2 Undefined    NA
#> 
s_preVar(myreg3)
#> $series
#>                  var1         var2
#> Jan 1990  22.81394917  -11.2629276
#> Feb 1990 -10.42285303   16.2801338
#> Mar 1990   7.12307192   55.5861006
#> Apr 1990  12.20747981   85.3394680
#> May 1990   3.36018683  -19.4899361
#> Jun 1990  -2.79147937   -4.3411909
#> Jul 1990   0.76422131  -52.9438316
#> Aug 1990  -3.54509030  -59.8510599
#> Sep 1990  14.32658547   14.9297682
#> Oct 1990   0.02671474  125.5820916
#> Nov 1990   3.44012511  -23.4369528
#> Dec 1990  -8.30323380  142.2340276
#> Jan 1991   4.82115591   29.2127542
#> Feb 1991  -6.88660369  -73.6886751
#> Mar 1991 -10.93359720  -12.9996552
#> Apr 1991   8.41060978  220.0885652
#> May 1991  14.54136238  161.3081286
#> Jun 1991   1.37240272  -26.7499583
#> Jul 1991   3.25544925   12.7603168
#> Aug 1991  12.23728019  -37.0892736
#> Sep 1991 -10.53314136  -45.2402281
#> Oct 1991  18.40332640  119.7478248
#> Nov 1991 -22.31484275   96.1339696
#> Dec 1991  -5.95844719  109.9244552
#> Jan 1992  -2.30472754    5.3534542
#> Feb 1992  17.56315261   -7.1082557
#> Mar 1992   4.75705566  -26.5212622
#> Apr 1992   7.82644366 -108.7472787
#> May 1992 -11.46245649   11.2995341
#> Jun 1992   9.50180682  -36.8761608
#> Jul 1992  -3.45227990 -181.3818422
#> Aug 1992 -24.73551488  -72.7994368
#> Sep 1992  13.76264164  -32.3343456
#> Oct 1992  24.77145067   11.8178061
#> Nov 1992 -13.37234198   52.2721179
#> Dec 1992  20.24155203  -39.4712044
#> Jan 1993   8.59593181  -73.8262361
#> Feb 1993   7.28471344  131.9700103
#> Mar 1993  17.02971138  -54.7717472
#> Apr 1993 -13.49671966  211.6530743
#> May 1993   0.85960972   23.8889683
#> Jun 1993   2.04207089  -51.5969374
#> Jul 1993  -9.79050445  115.8752180
#> Aug 1993   5.94650797  -63.4357812
#> Sep 1993  10.39317096   86.2710827
#> Oct 1993 -12.78834279 -168.1573026
#> Nov 1993  -3.19978820 -163.6792119
#> Dec 1993 -18.72828606  143.0290161
#> Jan 1994   0.91322657  153.9376495
#> Feb 1994   7.12363770   -7.7210862
#> Mar 1994  -1.10119494   72.2232423
#> Apr 1994 -10.51575816   76.2012389
#> May 1994  -8.91401342 -110.5216744
#> Jun 1994  -6.19138043 -146.1168585
#> Jul 1994   2.55199046   29.5561895
#> Aug 1994  -4.39315917   65.8526506
#> Sep 1994  14.68149212   64.5142725
#> Oct 1994   8.32506126   62.3653458
#> Nov 1994  -9.13787407  231.5849301
#> Dec 1994  -2.72595426  -38.1598877
#> Jan 1995   7.51086555    3.1688164
#> Feb 1995  -0.76856255   77.6625400
#> Mar 1995   1.47101528 -198.3047831
#> Apr 1995  -3.21238201   -0.5446710
#> May 1995 -17.03140073   70.2411713
#> Jun 1995  -7.61038444  122.3164016
#> Jul 1995  -7.59025393  -14.1397453
#> Aug 1995   2.92608648  -49.5379010
#> Sep 1995   3.32236386   84.0522626
#> Oct 1995  -2.31934768   56.0050141
#> Nov 1995  -8.15807168  113.7045939
#> Dec 1995   2.16074797   47.3801310
#> Jan 1996 -11.38865785  -15.0440355
#> Feb 1996   1.40105007  213.8995235
#> Mar 1996  -6.62133906   21.7996549
#> Apr 1996  -5.34391766 -189.5969181
#> May 1996 -14.12830881  -14.2738393
#> Jun 1996  12.17203500  146.2425734
#> Jul 1996   4.25531888  107.4657122
#> Aug 1996  -1.20928613   65.5056672
#> Sep 1996   6.51430723  -12.3133658
#> Oct 1996   4.90205565  -92.9721805
#> Nov 1996   7.05192456  151.6556529
#> Dec 1996   8.05650671   -7.6792959
#> Jan 1997  -1.79990583  -36.9791935
#> Feb 1997  10.72861877   60.6232668
#> Mar 1997  -0.82523465  152.6737997
#> Apr 1997  10.72598758   -8.1510851
#> May 1997  -0.02079741  142.8358850
#> Jun 1997  -8.59905321  101.3571835
#> Jul 1997   7.48074130  -67.6577827
#> Aug 1997  13.56515448  -23.6565665
#> Sep 1997   4.00001599   50.5599115
#> Oct 1997   6.36256611 -252.7752928
#> Nov 1997 -18.66035907  -70.0668673
#> Dec 1997  -5.80927235    9.1607577
#> Jan 1998  10.93896134   85.2173585
#> Feb 1998  -5.32691097  112.3909322
#> Mar 1998   6.83984092   82.7869298
#> Apr 1998  -6.84263667 -136.8112810
#> May 1998  16.25943271   18.9759677
#> Jun 1998  -6.31734454  196.0755931
#> Jul 1998 -13.53779986  -80.6017715
#> Aug 1998   3.87122228   24.7350268
#> Sep 1998  -9.67667515   50.7828231
#> Oct 1998  -3.58785321  -49.5801751
#> Nov 1998  -5.86397434  -90.2102368
#> Dec 1998  16.12913478  101.2532538
#> Jan 1999   5.05671343  163.6540567
#> Feb 1999   0.24106090  -82.5520511
#> Mar 1999   2.95359647 -130.1284005
#> Apr 1999  12.75350360  -48.4042607
#> May 1999   2.04477180  -19.1561941
#> Jun 1999   1.86747913 -120.3991350
#> Jul 1999   7.09749842 -155.4565833
#> Aug 1999   3.75846729  -14.9289700
#> Sep 1999   4.05413237  -98.8248953
#> Oct 1999   3.30985753 -130.0530931
#> Nov 1999  15.93760511   76.4001921
#> Dec 1999   5.55075757  -76.4220023
#> Jan 2000 -12.09478318  105.9842219
#> Feb 2000  -2.25557951   57.4400444
#> Mar 2000  -3.42381835  145.4354816
#> Apr 2000 -17.36559496  192.6606505
#> May 2000   1.63560903   37.7693133
#> Jun 2000   2.98293513   45.7817317
#> Jul 2000   1.75870029  -31.4478166
#> Aug 2000 -14.05601011  -19.6337224
#> Sep 2000  -2.15255891   53.2207247
#> Oct 2000  -5.02680266 -129.6930815
#> Nov 2000  16.83881702  -11.6459881
#> Dec 2000 -17.25036625 -179.1435814
#> Jan 2001  -2.52554758  103.7638450
#> Feb 2001 -16.04868007  -75.1737315
#> Mar 2001  11.53376302  144.3320207
#> Apr 2001 -12.66363058   73.4189087
#> May 2001  -2.50127880 -105.4557986
#> Jun 2001  -5.38988584    3.0424727
#> Jul 2001  -6.11159385  -62.0591656
#> Aug 2001   8.07837347  -19.3502015
#> Sep 2001  13.57967557   39.3606874
#> Oct 2001  10.00928446   -3.3226158
#> Nov 2001 -12.58705305  -52.8722573
#> Dec 2001 -13.95429138  307.1007147
#> Jan 2002   3.26775093 -142.4723774
#> Feb 2002  -5.66269784   33.0701264
#> Mar 2002  -0.40093207 -175.9479023
#> Apr 2002  10.07425936 -101.6384201
#> May 2002 -13.73520862  103.6862040
#> Jun 2002   3.30858231    3.4712279
#> Jul 2002  11.43623543 -169.3691356
#> Aug 2002 -13.81713624  -37.4082127
#> Sep 2002  -8.44069552 -125.8362453
#> Oct 2002 -18.36583479  -60.8105630
#> Nov 2002  10.44170831 -136.8707861
#> Dec 2002   2.15210107  -94.2163446
#> Jan 2003   8.00349614   73.9857730
#> Feb 2003   7.14933031    2.2094341
#> Mar 2003  -3.17171209   54.8882732
#> Apr 2003 -22.52045124 -135.0698058
#> May 2003  15.05248197  -64.4467633
#> Jun 2003  -4.19147872  104.7844734
#> Jul 2003  -2.08179987  -32.1393364
#> Aug 2003  10.25008622    3.4325883
#> Sep 2003 -21.09352248  106.3948370
#> Oct 2003   5.81155983 -158.7608154
#> Nov 2003   4.27476044 -158.3462404
#> Dec 2003   3.09712183   11.0531327
#> Jan 2004  -3.48680801   24.6298837
#> Feb 2004   4.72684011    5.7149917
#> Mar 2004   7.02742649 -108.3303495
#> Apr 2004 -15.43797498   21.6301111
#> May 2004 -11.39419424  -82.3685525
#> Jun 2004   3.70802634 -150.0780397
#> Jul 2004   2.49291812  122.6567010
#> Aug 2004  12.40415284  -21.5867461
#> Sep 2004  -3.71594045  173.3784762
#> Oct 2004   9.08843016 -143.2535684
#> Nov 2004   7.72073385  -17.6478952
#> Dec 2004   3.66647135   75.6314868
#> Jan 2005   2.34063054  -98.0007712
#> Feb 2005  -8.24637494  -38.6424379
#> Mar 2005   7.93613760   38.1516254
#> Apr 2005   8.15375576  134.5768539
#> May 2005  -6.40412559   98.3748677
#> Jun 2005   1.54668564    8.6637298
#> Jul 2005 -13.19062104   46.9669925
#> Aug 2005  -5.59444239  -89.2900170
#> Sep 2005 -12.78683713    0.2229617
#> Oct 2005  -1.61854635   15.0747679
#> Nov 2005 -12.12698055  -57.4554552
#> Dec 2005  13.71345622   23.5160435
#> Jan 2006   0.82627704  126.5858408
#> Feb 2006 -12.65853773 -139.0298039
#> Mar 2006  11.74275795   11.5795724
#> Apr 2006   6.95991675   89.2577296
#> May 2006   8.00070376    3.8752879
#> Jun 2006 -10.02196891   -3.8372698
#> Jul 2006  -6.77115667   81.1453346
#> Aug 2006   7.20963599    3.3486905
#> Sep 2006   9.60168144   66.3318866
#> Oct 2006  -1.45665667  -22.0091795
#> Nov 2006  15.05255540   -1.5736545
#> Dec 2006   6.78180406  208.7713501
#> Jan 2007  -2.65552196  149.6586647
#> Feb 2007  -4.58132537  -30.9764025
#> Mar 2007  17.38431533  158.4290933
#> Apr 2007  -0.13105949 -114.7278380
#> May 2007  -7.94353354   93.7994138
#> Jun 2007   2.55333393 -117.6473378
#> Jul 2007  -8.78777648  140.2133012
#> Aug 2007  -5.02384014  -17.7175377
#> Sep 2007   9.18235108  -65.0604263
#> Oct 2007  -4.15556110 -122.9364408
#> Nov 2007  -4.97454127   25.1325895
#> Dec 2007   1.22983974 -156.3215351
#> Jan 2008  -9.94093841   81.3079991
#> Feb 2008   4.85937859  -11.0848678
#> Mar 2008  -5.51041758  -76.1172061
#> Apr 2008   1.66600822   82.9512582
#> May 2008   0.95564919 -105.5171964
#> Jun 2008   9.37361737   22.2967963
#> Jul 2008  -7.78592244  244.1195038
#> Aug 2008  -3.46014963  200.0641700
#> Sep 2008   1.45927947  -75.4805825
#> Oct 2008  -6.79378277 -130.3238961
#> Nov 2008  -6.13698253   24.6026158
#> Dec 2008  22.02935147   54.8893707
#> Jan 2009  -3.28772531   48.6414289
#> Feb 2009  17.51776850  -85.7244463
#> Mar 2009  -9.71651737  -20.8889627
#> Apr 2009 -16.89546894   -2.1828351
#> May 2009 -14.81386178   37.1728862
#> Jun 2009  24.26894783 -230.0614875
#> Jul 2009  -2.28460020  -68.6391490
#> Aug 2009  11.13283521   82.3954712
#> Sep 2009  -4.37063852   67.1560953
#> Oct 2009  12.64884610  -13.6811085
#> Nov 2009  14.36597731  -32.4855419
#> Dec 2009  -9.18664322  116.5364420
#> Jan 2010 -19.14602512  -90.3741440
#> Feb 2010   1.14969531   98.5612115
#> Mar 2010  15.10348121  -12.6323527
#> Apr 2010  -0.09052613 -144.3967173
#> May 2010  -1.35856744    3.2154077
#> Jun 2010  -3.36250668 -211.7716447
#> Jul 2010   3.57796527  166.5816928
#> Aug 2010   3.40498580   57.5671055
#> Sep 2010  30.97230704   -0.2235961
#> Oct 2010   6.77352741  -72.2014992
#> Nov 2010   3.85994964   44.8672361
#> Dec 2010  -8.38842632    5.1736240
#> Jan 2011  -5.30027590 -125.3649454
#> Feb 2011 -22.93182084   55.8374959
#> Mar 2011  18.55263642   29.8702402
#> Apr 2011  -6.24714964  -41.5528828
#> May 2011   1.75872582 -162.5374469
#> Jun 2011 -13.65788853   29.9647475
#> Jul 2011 -13.45518474  -14.6007948
#> Aug 2011   9.47265271   33.0470436
#> Sep 2011  -1.15739671  -34.4358479
#> Oct 2011  -4.29404494   89.1762344
#> Nov 2011   0.79631976  -13.6294335
#> Dec 2011  10.06463994   28.1191185
#> Jan 2012  17.54518747  -11.0812460
#> Feb 2012  -1.19361311   -3.6247432
#> Mar 2012  16.43998625    2.4977216
#> Apr 2012 -13.10997765   13.1053564
#> May 2012   3.62701424  259.5523922
#> Jun 2012  13.69665491   41.9283992
#> Jul 2012  -3.48512400  -28.1698421
#> Aug 2012  -5.45470652   54.4863114
#> Sep 2012  -0.20519678   86.8230689
#> Oct 2012  -3.38849889  -20.6675268
#> Nov 2012   1.85592100    7.4947320
#> Dec 2012   3.45862657 -225.0901330
#> Jan 2013  -7.93332374  150.0961160
#> Feb 2013  -7.48631612  -48.2768943
#> Mar 2013 -18.46666644   60.5210639
#> Apr 2013 -15.56824415   80.0685483
#> May 2013   0.02354941   31.8362191
#> Jun 2013  14.70206284   10.3472107
#> Jul 2013  -7.77484495  -65.7636600
#> Aug 2013   7.04613433    3.3874701
#> Sep 2013   6.96606398  -64.9756559
#> Oct 2013   9.31972929   91.1239650
#> Nov 2013  26.16178688   -4.7272921
#> Dec 2013 -14.77492275 -117.8515013
#> Jan 2014   0.74677229  224.2660967
#> Feb 2014  -6.40770175  146.7485607
#> Mar 2014   1.14925465   55.2061735
#> Apr 2014   7.47021300   35.9622515
#> May 2014 -11.18479256  183.7521669
#> Jun 2014   3.41004819   88.3273304
#> Jul 2014   1.25031186 -171.3201462
#> Aug 2014   3.11369721   29.3728600
#> Sep 2014   4.26443804  133.0807535
#> Oct 2014 -12.69579318    0.1025496
#> Nov 2014   8.69811052   94.4012124
#> Dec 2014  -0.23574630  -16.3110155
#> Jan 2015   6.46068260    2.0936334
#> Feb 2015  12.32672999   55.1059233
#> Mar 2015 -12.80410543   75.4814726
#> Apr 2015  -1.76086170 -101.7904646
#> May 2015  11.48912321  -32.0525550
#> Jun 2015   1.06409425  -45.7239570
#> Jul 2015  10.52599358 -216.8675688
#> Aug 2015   0.63508668    6.6409650
#> Sep 2015   7.60288668  151.3114967
#> Oct 2015  -5.83391234   24.2563643
#> Nov 2015  -8.33176971   19.6097401
#> Dec 2015  -9.55279258  -65.6023781
#> Jan 2016   4.68197456  -47.8355050
#> Feb 2016  14.89361598   56.8878744
#> Mar 2016   8.45637803 -210.2626810
#> Apr 2016  -0.90330359   -0.3301496
#> May 2016  -7.60974092   41.6918015
#> Jun 2016  -4.22703485   47.3867599
#> Jul 2016 -11.16990551   -6.2925119
#> Aug 2016 -13.73205437 -163.6219349
#> Sep 2016  -4.64627202  116.8229652
#> Oct 2016  -7.51982369  -40.8686195
#> Nov 2016  -4.07974543   -9.4117059
#> Dec 2016   1.77182569   46.7589309
#> Jan 2017   9.99326344  -82.8195377
#> Feb 2017   1.16269256   39.6813229
#> Mar 2017 -18.35065315   24.4475509
#> Apr 2017  -2.98695682   62.7437586
#> May 2017   3.14652720  -80.5206472
#> Jun 2017 -10.82466160 -193.2053070
#> Jul 2017   2.21793014   71.7082011
#> Aug 2017  -0.49851303  179.2486559
#> Sep 2017  11.07534869  112.3194865
#> Oct 2017  -9.93360619  160.9947684
#> Nov 2017  19.24843474  173.2799496
#> Dec 2017  -5.56762404  127.5703717
#> Jan 2018   3.29474662   42.4007988
#> Feb 2018  17.58286351  -13.7778131
#> Mar 2018  12.73909790  -59.7937324
#> Apr 2018  -5.83885195  -72.2073272
#> May 2018  -3.27692378    7.2762483
#> Jun 2018   1.45241262  147.3362511
#> Jul 2018   2.14101138  -31.6206077
#> Aug 2018   0.11554669 -141.4721408
#> Sep 2018  12.19699084 -198.6179040
#> Oct 2018 -10.30643641   70.5734028
#> Nov 2018   7.64734975  -79.0427631
#> Dec 2018  -5.14982604   75.8480158
#> Jan 2019  17.40986972  207.8375621
#> Feb 2019  10.05845241  191.9134900
#> Mar 2019 -11.07352945    7.5529822
#> Apr 2019  -6.27882790   26.7751527
#> May 2019 -14.79501948   43.6290736
#> Jun 2019   1.54343173  120.9748781
#> Jul 2019 -22.99484409 -125.3055561
#> Aug 2019  -4.38727684  176.5028630
#> Sep 2019  -6.49680607  -15.9322027
#> Oct 2019   4.24040947   89.8874217
#> Nov 2019   0.47049728  -70.4995332
#> Dec 2019 -12.85044066  112.6896570
#> Jan 2020   0.45532358 -197.4322214
#> Feb 2020 -14.49429700 -124.4772830
#> Mar 2020 -16.33704403  103.1250388
#> Apr 2020  -5.17284962   57.9097050
#> May 2020  -9.91151430 -103.7890010
#> Jun 2020  -7.28485045  156.1622325
#> Jul 2020   4.51951634   10.1959622
#> Aug 2020   8.87181335  232.4238302
#> Sep 2020  12.64573401  232.5851550
#> Oct 2020 -12.91419391 -129.3149956
#> Nov 2020   1.82510306   -4.5018855
#> Dec 2020  -0.89809675   19.5694234
#> 
#> $description
#>           type coeff
#> var1 Undefined    NA
#> var2 Undefined    NA
#> 

s_td(myreg1)
#>       option autoadjust leapyear stocktd   test
#>  TradingDays       TRUE LeapYear       0 Remove
s_td(myspec1)
#>       option autoadjust leapyear stocktd   test
#>  TradingDays       TRUE LeapYear       0 Remove

s_easter(myreg1)
#>  enabled julian duration test
#>     TRUE  FALSE        8  Add
s_easter(myspec1)
#>  enabled julian duration test
#>     TRUE  FALSE        8  Add

s_out(myreg1)
#>  enabled span   ao   tc   ls    so usedefcv cv method tcrate
#>     TRUE  All TRUE TRUE TRUE FALSE     TRUE  4 AddOne    0.7
s_out(myspec1)
#>  enabled            span   ao   tc   ls    so usedefcv cv method tcrate
#>     TRUE From 2010-03-01 TRUE TRUE TRUE FALSE     TRUE  4 AddOne    0.7

s_arima(myreg1)
#>  enabled automdl.acceptdefault automdl.cancel automdl.ub1 automdl.ub2
#>     TRUE                 FALSE            0.1    1.041667        0.88
#>  automdl.mixed automdl.balanced automdl.armalimit automdl.reducecv
#>           TRUE            FALSE                 1          0.14286
#>  automdl.ljungboxlimit automdl.ubfinal arima.mu arima.p arima.d arima.q
#>                   0.95            1.05    FALSE       0       1       1
#>  arima.bp arima.bd arima.bq arima.coef
#>         0        1        1      FALSE
s_arima(myspec1)
#>  enabled automdl.acceptdefault automdl.cancel automdl.ub1 automdl.ub2
#>     TRUE                 FALSE            0.1    1.041667        0.88
#>  automdl.mixed automdl.balanced automdl.armalimit automdl.reducecv
#>           TRUE            FALSE                 1          0.14286
#>  automdl.ljungboxlimit automdl.ubfinal arima.mu arima.p arima.d arima.q
#>                   0.95            1.05    FALSE       0       1       1
#>  arima.bp arima.bd arima.bq arima.coef
#>         0        1        1      FALSE

myspec4 <- regarima_spec_x13(myreg1, automdl.enabled = FALSE,
             arima.coefEnabled = TRUE,
             arima.p = 1,arima.q = 1, arima.bp = 1, arima.bq = 1,
             arima.coef = rep(0.2, 4),
             arima.coefType = rep("Initial", 4))
myreg4 <- regarima(myseries, myspec4)

s_arimaCoef(myreg4)
#>              Type Value
#> Phi(1)    Initial   0.2
#> Theta(1)  Initial   0.2
#> BPhi(1)   Initial   0.2
#> BTheta(1) Initial   0.2
s_arimaCoef(myspec4)
#>              Type Value
#> Phi(1)    Initial   0.2
#> Theta(1)  Initial   0.2
#> BPhi(1)   Initial   0.2
#> BTheta(1) Initial   0.2

s_fcst(myreg1)
#>  horizon
#>       -2
s_fcst(myspec1)
#>  horizon
#>       -2

s_span(myreg1)
#>          type d0 d1 n0 n1
#> estimate  All NA NA  0  0
#> outlier   All NA NA  0  0
s_span(myspec1)
#>          type         d0 d1 n0 n1
#> estimate From 2005-10-01 NA  0  0
#> outlier  From 2010-03-01 NA  0  0

myspec5 <- x13_spec(spec = "RSA5c", x11.seasonalComp = FALSE)
mysa5 <- x13(myseries, myspec5)

s_x11(mysa5)
#>   x11.mode x11.seasonalComp x11.lsigma x11.usigma x11.trendAuto x11.trendma
#>  Undefined            FALSE        1.5        2.5          TRUE          13
#>  x11.seasonalma x11.fcasts x11.bcasts x11.calendarSigma x11.sigmaVector
#>             Msr         -1          0              None              NA
#>  x11.excludeFcasts
#>              FALSE
s_x11(myspec5)
#>   x11.mode x11.seasonalComp x11.lsigma x11.usigma x11.trendAuto x11.trendma
#>  Undefined            FALSE        1.5        2.5          TRUE          13
#>  x11.seasonalma x11.fcasts x11.bcasts x11.calendarSigma x11.sigmaVector
#>             Msr         -1          0              None              NA
#>  x11.excludeFcasts
#>              FALSE

myspec6 <- tramoseats_spec(spec = "RSAfull", seats.approx = "Noisy")
mysa6 <- tramoseats(myseries, myspec6)

s_seats(mysa6)
#>  seats.predictionLength seats.approx seats.maBoundary seats.trendBoundary
#>                      -1        Noisy             0.95                 0.5
#>  seats.seasdBoundary seats.seasdBoundary1 seats.seasTol seats.method
#>                  0.8                  0.8             2       Burman
s_seats(mysa6)
#>  seats.predictionLength seats.approx seats.maBoundary seats.trendBoundary
#>                      -1        Noisy             0.95                 0.5
#>  seats.seasdBoundary seats.seasdBoundary1 seats.seasTol seats.method
#>                  0.8                  0.8             2       Burman
# }