Page 1 of 1

separate value

Posted: Thu Oct 01, 2015 4:21 am
by jompalitan
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

Re: separate value

Posted: Thu Oct 01, 2015 5:56 am
by startz
Look at @replace()