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
decomposing into positive and negative series
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: decomposing into positive and negative series
roger02 wrote: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
how amazing!!
just quite happy to see how its easy in eviews, however, the NA is still in each new series
and i would love to get red of them, please help in here
thanx
just quite happy to see how its easy in eviews, however, the NA is still in each new series
and i would love to get red of them, please help in here
thanx
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: decomposing into positive and negative series
Just set the series to whatever initial value you prefer to NA.
Re: decomposing into positive and negative series
thank you for your quick reply
Who is online
Users browsing this forum: No registered users and 25 guests