Hi,
I want to create 'previous dec=100' index. I create in Excel a dummy series with value 1 if month=January else 0.
My code:
if dummy=1 then
prev_dec=cpi/cpi(-1)*100
else
prev_dec=prev_dec(-1)*(cpi/cpi(-1))
endif
but it does not work
generating series with if condition
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13309
- Joined: Tue Sep 16, 2008 5:38 pm
Re: generating series with if condition
EViews Gareth wrote:http://forums.eviews.com/viewtopic.php?f=5&t=3765
Thanks Gareth
Who is online
Users browsing this forum: No registered users and 8 guests