i have a problem to make many trend in the series, i use this code but i get not the result (for example the year 2005m10 should start by 1 and finish by 3 not start by 10 and finished by 12), i can use step by step to make many trend (use smpl) but it take a long time because i have many trend...etc, is there an easy way to do this.
Code: Select all
series trends=@recode(@during("2005m01 2005m07") or @during("2005m10 2005m12") or @@during("2007m01 2007m04") or @during("2008m01 2009m02") or.....or......etc,1,0)
series trends=@recode(@during("2005m01 2005m07") or @during("2005m10 2005m12") or @@during("2007m01 2007m04") or @during("2008m01 2009m02") or.... or......etc,@cumsum(1),0)
Best Regards.