Page 1 of 1

Re: decomposing into positive and negative series

Posted: Tue Jul 21, 2009 6:53 am
by startz
dear moderator,
i need to seperate the positive values of one series from the negative values( with their corresponding dates) , i think i tried my best but couldnt do it.
please some advice here.
regards

Code: Select all

series pos series neg smpl if x>0 pos=x smpl if x<0 neg=x smpl @all

Re: decomposing into positive and negative series

Posted: Tue Jul 21, 2009 7:34 am
by startz
Just set the series to whatever initial value you prefer to NA.