The specification file is a xml file like the one JDemetra+ would write when defining a specification in the Graphical User Interface.
Arguments
- spec
a specification created with
rjd3tramoseats::tramoseats_spec
- file
xml format
Examples
# creating a spec from default
tramoseats_spec <- rjd3tramoseats::tramoseats_spec("rsa3")
# forcing multiplicative model
tramoseats_spec_d <- rjd3toolkit::set_transform(tramoseats_spec ,
fun = "Log",
outliers = TRUE)
# writing the specification in a xml file
tramoseats_write_spec(tramoseats_spec_d, file = normalizePath("~/tmp.xml", mustWork = FALSE))