statistikat / x12

The R package x12
http://statistikat.github.io/x12
17 stars 2 forks source link

x12 with user defined regressor #17

Closed alexkowa closed 6 years ago

alexkowa commented 6 years ago

how can i use x12 package on R with user defined dummy holiday?

This example might help:

xs <- x12(new("x12Single",ts=AirPassengers))
regressor <- sample(c(0,1),length(AirPassengers)+36,replace=TRUE)
write.table(regressor,row.names=FALSE,file="reg.txt",col.names = FALSE)
x1s <- x12(setP(xs,list(regression.file="reg.txt",regression.user="custreg",regression.usertype="td")))