decomposing into positive and negative series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: decomposing into positive and negative series

Postby startz » Tue Jul 21, 2009 6:53 am

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: decomposing into positive and negative series

Postby startz » Tue Jul 21, 2009 7:34 am

Just set the series to whatever initial value you prefer to NA.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests