Skip to contents

Elements t_filter and s_filter are transformed to input parameters x11.trendma and x11.seasonalma

Usage

filter_input(sa)

Arguments

sa

A x13 output object

Value

list of x11.trendma (numeric) and x11.seasonalma (character)

Examples

myseries <- pickmdl_data("myseries")

a <- x13(myseries, spec = "RSA3")

a$decomposition$t_filter
#> [1] "23-Henderson"
a$decomposition$s_filter
#> [1] "3x9"
filter_input(a)
#> $x11.trendma
#> [1] 23
#> 
#> $x11.seasonalma
#> [1] "S3X9"
#> 

spec_b <- x13_spec(spec = "RSA3", x11.trendma = 13, x11.seasonalma = "Stable", 
                   x11.trendAuto = FALSE)
b <- x13(myseries, spec = spec_b)

b$decomposition$t_filter
#> [1] "13-Henderson"
b$decomposition$s_filter
#> [1] "Stable filter"
filter_input(b)
#> $x11.trendma
#> [1] 13
#> 
#> $x11.seasonalma
#> [1] "Stable"
#>