Hi,
I am working on my masters dissertation and I have to analyse the effect of oil price shocks on the stock market returns. I'm trying to build Net Oil Price Increase (NOPI) variable in Eviews and run Var model.
NOPI = max(0, log(op)t - max(log(op)t-1,...,log(op)t-6)
Where op- is oil price
The mode is introduced by Hamilton (1996).
Also, how can I get asymmetric specification of oil price shocks:
dlog(opp)=max(0,dlog(op))
dlog(opn)=min(0,dlog(op))
Where dlog(opp) represents the positive oil price changes, and dlog(opn) represents the negative changes.
How can I translate this into Eviews language?
Kind regards,
Maksim
Net oil price (non-linear specification)
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
Re: Net oil price (non-linear specification)
Yes, I have seen this topic. But it doesn't work and I obtain only zeros
Re: Net oil price (non-linear specification)
Probably no one looking at the thread now but, regardless, see:
viewtopic.php?f=18&t=7967&p=28008&hilit=asymmetric#p28008
viewtopic.php?f=18&t=7967&p=28008&hilit=asymmetric#p28008
Re: Net oil price (non-linear specification)
net oil price increase. It compares the
price of oil each quarter with the maximum value observed during the preceding
four quarters. If the value for the current quarter exceeds the previous year's
maximum, the percentage change over the previous year's maximum is plotted.
If the price of oil in quarter t is lower than it had been at some point during the
previous four quarters, the series is defined to be zero for date t
how is possible to translate that to eviews
price of oil each quarter with the maximum value observed during the preceding
four quarters. If the value for the current quarter exceeds the previous year's
maximum, the percentage change over the previous year's maximum is plotted.
If the price of oil in quarter t is lower than it had been at some point during the
previous four quarters, the series is defined to be zero for date t
how is possible to translate that to eviews
Who is online
Users browsing this forum: No registered users and 15 guests