separate value

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

jompalitan
Posts: 1
Joined: Thu Oct 01, 2015 4:12 am

separate value

Postby jompalitan » Thu Oct 01, 2015 4:21 am

Hi, I am new to eviews,
so i have a series workfile and i want to create 2 workfiles from the one i have
i want to separate positive and negative oil change.
I tried using dlaprice= dlprice>0
but it only shows 1 and 0 value when I need the real value.
I read a paper that the writer using this syintax but it wont work
price= oil price
lprice= log(price)
dlprice= dlog(price)
dlaprice= max(0,dlog(price))
dlapricem= min(0dlog(price))

the dlaprice should contain the positive oil price changes and dlapricem should contain negative oil price changes. I tried but it wont work.
thank you

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

Re: separate value

Postby startz » Thu Oct 01, 2015 5:56 am

Look at @replace()


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: Google [Bot] and 15 guests