Group series without NAs after TRAMO-SEATS
Posted: Fri Jul 03, 2020 5:59 am
Hi,
I am dealing with the following issue: I have a big number of different time series and I want to run seasonal adjustment using TRAMO-SEATS. I want my code to seasonally adjust all series, however some of them apparently do not need SA and the TS output is just a string of NAs. I want my code to select and group all series that undergo TRAMO-SEATS (i.e. output is real, no NAs) plus all the rest that do need seasonal adjustment.
To illustrate it better - say I have series:
s1, s2, s3
I run TRAMO-SEATS, I have the following output:
s1_sa (x,x,x...), s2_sa (y,y,y...), s3_sa (NA, NA, NA)
I would like my code to group s1_sa, s2_sa and s3 (not s3_sa, since it gives NAs)
Is there an elegant way to do this? Thank you in advance!
I am dealing with the following issue: I have a big number of different time series and I want to run seasonal adjustment using TRAMO-SEATS. I want my code to seasonally adjust all series, however some of them apparently do not need SA and the TS output is just a string of NAs. I want my code to select and group all series that undergo TRAMO-SEATS (i.e. output is real, no NAs) plus all the rest that do need seasonal adjustment.
To illustrate it better - say I have series:
s1, s2, s3
I run TRAMO-SEATS, I have the following output:
s1_sa (x,x,x...), s2_sa (y,y,y...), s3_sa (NA, NA, NA)
I would like my code to group s1_sa, s2_sa and s3 (not s3_sa, since it gives NAs)
Is there an elegant way to do this? Thank you in advance!